From 1bcc701fbbfe0e2f476a19c6b7bfeeb0a99d38b4 Mon Sep 17 00:00:00 2001 From: Dimitrios Philliou Date: Fri, 20 Sep 2024 12:10:07 -0700 Subject: [PATCH 1/6] Adding docs links to README.md Adding links to builder docs --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e74cdf6..029a1b1 100644 --- a/README.md +++ b/README.md @@ -126,3 +126,10 @@ Be ye sure ye want a custom limerick 'bout petals ? Reply: [y/N] ``` 8. Currently, the supported event types for debug mode are references, errors, and confirmations! Have fun chatting with your assistant! + +## Copilot Extensions Documentation +- [Using Copilot Extensions](https://docs.github.com/en/copilot/using-github-copilot/using-extensions-to-integrate-external-tools-with-copilot-chat) +- [About building Copilot Extensions](https://docs.github.com/en/copilot/building-copilot-extensions/about-building-copilot-extensions) +- [Set up process](https://docs.github.com/en/copilot/building-copilot-extensions/setting-up-copilot-extensions) +- [Communicating with the Copilot platform](https://docs.github.com/en/copilot/building-copilot-extensions/building-a-copilot-agent-for-your-copilot-extension/configuring-your-copilot-agent-to-communicate-with-the-copilot-platform) +- [Communicating with GitHub](https://docs.github.com/en/copilot/building-copilot-extensions/building-a-copilot-agent-for-your-copilot-extension/configuring-your-copilot-agent-to-communicate-with-github) From cfbacdbf988ee6494c4f3bd0f98b54cfaefec666 Mon Sep 17 00:00:00 2001 From: calvinmvrk Date: Tue, 19 Nov 2024 15:55:43 -0600 Subject: [PATCH 2/6] refactor stream cmd --- cmd/stream.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cmd/stream.go b/cmd/stream.go index b0585dc..3083a44 100644 --- a/cmd/stream.go +++ b/cmd/stream.go @@ -15,20 +15,25 @@ const ( // streamCmd represents the new command for streaming functionality var streamCmd = &cobra.Command{ - Use: "stream [file]", - Short: "Stream data to your agent", - Long: `The stream command allows you to initiate a data stream to your agent.`, + Use: "stream --file [filename]", + Short: "Parse stream data from agent", + Long: `Allows you to parse a data stream to your agent response.`, Run: agentStream, } func init() { streamCmd.PersistentFlags().String(streamCmdFileFlag, "", "Parse agent responses from a file") + rootCmd.AddCommand(streamCmd) } func agentStream(cmd *cobra.Command, args []string) { fmt.Println("stream command executed successfully") - file := args[0] + file, _ := cmd.Flags().GetString(streamCmdFileFlag) + if file == "" { + fmt.Fprintln(os.Stderr, "Error: --file [file] is required") + os.Exit(1) + } result, err := stream.ParseFile(file) if err != nil { From fa038cd265fb185bba9b3ec68ba50b0005a14bff Mon Sep 17 00:00:00 2001 From: calvinmvrk Date: Wed, 20 Nov 2024 10:16:10 -0600 Subject: [PATCH 3/6] remove unused cmd --- cmd/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/stream.go b/cmd/stream.go index 3083a44..6677a16 100644 --- a/cmd/stream.go +++ b/cmd/stream.go @@ -23,7 +23,7 @@ var streamCmd = &cobra.Command{ func init() { streamCmd.PersistentFlags().String(streamCmdFileFlag, "", "Parse agent responses from a file") - rootCmd.AddCommand(streamCmd) + // rootCmd.AddCommand(streamCmd) } func agentStream(cmd *cobra.Command, args []string) { From 9db4d49b6429bfdd278b57e31a41ee0613eefb6d Mon Sep 17 00:00:00 2001 From: calvinmvrk Date: Wed, 20 Nov 2024 16:22:56 -0600 Subject: [PATCH 4/6] remove commented line --- cmd/stream.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/stream.go b/cmd/stream.go index 6677a16..1d90fda 100644 --- a/cmd/stream.go +++ b/cmd/stream.go @@ -23,7 +23,6 @@ var streamCmd = &cobra.Command{ func init() { streamCmd.PersistentFlags().String(streamCmdFileFlag, "", "Parse agent responses from a file") - // rootCmd.AddCommand(streamCmd) } func agentStream(cmd *cobra.Command, args []string) { From 7481688a505af5b580952c79e29d784bf289964e Mon Sep 17 00:00:00 2001 From: calvinmvrk Date: Thu, 21 Nov 2024 14:05:45 -0600 Subject: [PATCH 5/6] update help logic --- cmd/rootCmd.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/rootCmd.go b/cmd/rootCmd.go index 64b6c1a..dfc28b3 100644 --- a/cmd/rootCmd.go +++ b/cmd/rootCmd.go @@ -9,11 +9,10 @@ import ( ) var rootCmd = &cobra.Command{ - Use: "gh-debug-cli", Short: "A CLI tool for debugging", Long: `This CLI tool allows you to debug your agent by chatting with it locally.`, Run: func(cmd *cobra.Command, args []string) { - fmt.Println("Use 'gh-debug-cli --help' to see available commands") + // fmt.Println("Use 'gh debug-cli --help' to see available commands") }, } From 9470d1ffab070f955bb3afbc49aa8321d2619460 Mon Sep 17 00:00:00 2001 From: calvinmvrk Date: Thu, 21 Nov 2024 14:09:06 -0600 Subject: [PATCH 6/6] remove commented line in run cmd --- cmd/rootCmd.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/rootCmd.go b/cmd/rootCmd.go index dfc28b3..f7cb407 100644 --- a/cmd/rootCmd.go +++ b/cmd/rootCmd.go @@ -12,7 +12,6 @@ var rootCmd = &cobra.Command{ Short: "A CLI tool for debugging", Long: `This CLI tool allows you to debug your agent by chatting with it locally.`, Run: func(cmd *cobra.Command, args []string) { - // fmt.Println("Use 'gh debug-cli --help' to see available commands") }, }