From aead637d1014406ce8bf9c44f7913a063ed7bfe4 Mon Sep 17 00:00:00 2001 From: mingmxren Date: Wed, 4 Mar 2026 01:22:09 +0800 Subject: [PATCH] style: fix gci import grouping and godoc formatting Co-Authored-By: Claude Opus 4.6 --- pkg/channels/interfaces.go | 6 ++++-- pkg/commands/definition.go | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pkg/channels/interfaces.go b/pkg/channels/interfaces.go index 42f18405c..b3a493761 100644 --- a/pkg/channels/interfaces.go +++ b/pkg/channels/interfaces.go @@ -1,8 +1,10 @@ package channels -import "context" +import ( + "context" -import "github.com/sipeed/picoclaw/pkg/commands" + "github.com/sipeed/picoclaw/pkg/commands" +) // TypingCapable — channels that can show a typing/thinking indicator. // StartTyping begins the indicator and returns a stop function. diff --git a/pkg/commands/definition.go b/pkg/commands/definition.go index ab3d48926..7309df317 100644 --- a/pkg/commands/definition.go +++ b/pkg/commands/definition.go @@ -16,14 +16,14 @@ type SubCommand struct { // Definition is the single-source metadata and behavior contract for a slash command. // // Design notes (phase 1): -// - Every channel reads command shape from this type instead of keeping local copies. -// - Visibility is global: all definitions are considered available to all channels. -// - Platform menu registration (for example Telegram BotCommand) also derives from this -// same definition so UI labels and runtime behavior stay aligned. +// - Every channel reads command shape from this type instead of keeping local copies. +// - Visibility is global: all definitions are considered available to all channels. +// - Platform menu registration (for example Telegram BotCommand) also derives from this +// same definition so UI labels and runtime behavior stay aligned. type Definition struct { Name string Description string - Usage string // for simple commands; ignored when SubCommands is set + Usage string // for simple commands; ignored when SubCommands is set Aliases []string SubCommands []SubCommand // optional; when set, Executor routes to sub-command handlers Handler Handler // for simple commands without sub-commands