-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add CLI support for Agent Hub #82
base: main
Are you sure you want to change the base?
Conversation
6247ab4
to
8b99231
Compare
be296f0
to
fcd0ecd
Compare
@matewolf As discussed, I think we could improve the PR with the following suggestions:
|
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: Zsolt Rappi <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
Signed-off-by: matewolf <[email protected]>
plugins: | ||
- remote: buf.build/grpc/go:v1.5.1 | ||
out: . | ||
opt: paths=source_relative | ||
- remote: buf.build/protocolbuffers/go:v1.36.5 | ||
out: . | ||
opt: paths=source_relative |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here you are using the same plugins that we use for the core/store/routing APIs, so we could generate hub code with the same api/buf.gen.yaml
file. this would also avoid simplify the changes in Taskfile.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't like to use the same buf file and integrate deps:api:gen
task because running this task would need a permission to reach the private hub repo. Maybe it is possible to exclude some module from buf generate
command.
@@ -39,6 +39,8 @@ vars: | |||
GOLANGCI_LINT_BIN: '{{ .BIN_DIR }}/golangci-lint-{{.GOLANGCI_LINT_VERSION}}' | |||
LICENSEI_VERSION: '0.9.0' | |||
LICENSEI_BIN: '{{ .BIN_DIR }}/licensei-{{.LICENSEI_VERSION}}' | |||
HUB_API_VERSION: 'main' | |||
HUB_REPO_URL: 'https://github.com/cisco-eti/phoenix-saas-be.git' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we keep this reference to an internal repo in the open repo? the git clone
below will fail for users without access
unpublish.Command, | ||
publish.NewCommand(baseOption), | ||
list.NewCommand(baseOption), | ||
unpublish.NewCommand(baseOption), | ||
network.Command, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this new command needs to be refactored as well
@@ -17,7 +16,6 @@ func main() { | |||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGHUP, syscall.SIGTERM) | |||
|
|||
if err := cmd.Run(ctx); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this print removed by mistake?
This command handles the build process for agent data models | ||
from source code. It generates a JSON object that | ||
describes an agent and satisfies the **Open Agent Schema Framework** specification. | ||
Usage examples: | ||
1. When build config is present under the agent source code: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep the formatting here, since the same numbered formatting is used in the push and pull commands
# List summary about our published data. | ||
dir list info | ||
2. List summary about published data across the network: | ||
# List summary about published data by a specific peer. | ||
dir list info --peer <peer-id> | ||
# List summary about published data by the whole network. | ||
# NOTE: This starts a DHT walk, so it may take a while. | ||
# NOTE: Results are not guaranteed to be complete and up-to-date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there might have been a merge conflict issue here, please check
No description provided.