chore: replace 607 em-dashes with double hyphens project-wide
Includes MCP crash-after-init test fix (crash moved from handle() to serve() entry point so transport sees immediate subprocess death).
This commit is contained in:
1 parent
16d6cd62b7
commit
f6d51416f0
112 files changed
+587
-582
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// Package skillscript runs skill-bundled Go scripts (.agents/skills/<skill>/scripts/*.go)
|
||||
// via Yaegi. Unlike the gate and workflow-stage extension surfaces, these
|
||||
// scripts only need the Go standard library — they wrap external tools
|
||||
// (gitleaks, trivy, ...) the way a shell script would — so no
|
||||
// scripts only need the Go standard library -- they wrap external tools
|
||||
// (gitleaks, trivy, ...) the way a shell script would -- so no
|
||||
// archie-core-specific symbol table is required here.
|
||||
package skillscript
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
// Run interprets the Go script at path and executes its main function,
|
||||
// returning everything it wrote to stdout and stderr. The script runs
|
||||
// in-process (interpreted, not sandboxed) with unrestricted symbols
|
||||
// (os/exec included — these scripts wrap external tools the way a shell
|
||||
// (os/exec included -- these scripts wrap external tools the way a shell
|
||||
// script would), so a panic inside it is recovered and returned as an
|
||||
// error rather than taking down the daemon.
|
||||
func Run(path string) (string, error) {
|
||||
@@ -36,7 +36,7 @@ func Run(path string) (string, error) {
|
||||
|
||||
// EvalPath treats a package-main source file the way `go run` does:
|
||||
// evaluating it executes its main() directly. Unlike `go build`, it
|
||||
// does not complain about a missing main() — such a script simply
|
||||
// does not complain about a missing main() -- such a script simply
|
||||
// produces no output.
|
||||
if _, err := i.EvalPath(path); err != nil {
|
||||
return "", fmt.Errorf("yaegi: run %s: %w", path, err)
|
||||
|
||||
@@ -71,7 +71,7 @@ func main() {
|
||||
|
||||
func TestRunMissingMain(t *testing.T) {
|
||||
// Yaegi's EvalPath, like `go build` without `go run`, doesn't
|
||||
// complain about a missing main() — it just never gets called.
|
||||
// complain about a missing main() -- it just never gets called.
|
||||
path := writeScript(t, `package main
|
||||
|
||||
func notMain() {}
|
||||
|
||||
Reference in new issue
Block a user