-
Notifications
You must be signed in to change notification settings - Fork 299
chore: replace mcp-go with nanobot #980
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
chore: replace mcp-go with nanobot #980
Conversation
@@ -49,7 +49,7 @@ serve-docs: | |||
|
|||
# This will initialize the node_modules needed to run the docs dev server. Run this before running serve-docs | |||
init-docs: | |||
docker run --rm --workdir=/docs -v $${PWD}/docs:/docs node:18-buster yarn install | |||
docker run --rm --workdir=/docs -v $${PWD}/docs:/docs node:18-buster npm install |
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.
Is this OK? It looked like we are using npm everywhere else.
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 be fine I think
Looks like there's an issue here. Moving to draft while I figure it out. |
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.
Nice, this is a lot cleaner
@@ -49,7 +49,7 @@ serve-docs: | |||
|
|||
# This will initialize the node_modules needed to run the docs dev server. Run this before running serve-docs | |||
init-docs: | |||
docker run --rm --workdir=/docs -v $${PWD}/docs:/docs node:18-buster yarn install | |||
docker run --rm --workdir=/docs -v $${PWD}/docs:/docs node:18-buster npm install |
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 be fine I think
be9260e
to
cd80db5
Compare
if err := daemon.SysDaemon(); err != nil { | ||
log.Debugf("failed running daemon: %v", err) | ||
if os.Args[1] == "_exec" { | ||
if err := supervise.Daemon(); 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.
should we print the error?
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.
Added.
if os.Args[1] == "sys.daemon" { | ||
if os.Getenv("GPTSCRIPT_DEBUG") == "true" { | ||
mvl.SetDebug() | ||
} | ||
if err := daemon.SysDaemon(); err != nil { | ||
log.Debugf("failed running daemon: %v", err) | ||
} | ||
os.Exit(0) | ||
} | ||
if err := daemon.SysDaemon(); err != nil { | ||
log.Debugf("failed running daemon: %v", err) | ||
if os.Args[1] == "_exec" { | ||
if err := supervise.Daemon(); err != nil { | ||
_, _ = fmt.Fprintf(os.Stderr, "failed running _exec: %v\n", err) | ||
os.Exit(1) | ||
} | ||
os.Exit(0) | ||
} |
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.
nano-nit: could use a switch statement here.
Signed-off-by: Donnie Adams <[email protected]>
Signed-off-by: Donnie Adams <[email protected]>
bcc5b87
to
afb3675
Compare
The final pushes were removing the replace directive and rebasing. So, merging. |
No description provided.