The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
Merge pull request #75 from Asymptote-Labs/add-sentinel-support
Justin D'Souzad4f7769e951f
diff --cc cli/beacon/internal/endpoint/rapid7/rapid7.goindex 2c71fc66,cb46102d..574149ef--- a/cli/beacon/internal/endpoint/rapid7/rapid7.go+++ b/cli/beacon/internal/endpoint/rapid7/rapid7.go@@@ -20,30 -19,19 +20,31 @@@ type File structName stringContent stringTemplateLogPath bool+ JSONEscape bool}-func Files() []File {- return []File{- {Name: "README.md", Content: mustRead("pack/README.md")},- {Name: "rapid7-upload-smoke-test.sh", Content: mustRead("pack/rapid7-upload-smoke-test.sh.tmpl"), TemplateLogPath: true},- {Name: "sample-event.jsonl", Content: mustRead("pack/sample-event.jsonl")},- {Name: "vector.toml", Content: mustRead("pack/vector.toml.tmpl"), TemplateLogPath: true},+// readAsset reads an embedded asset using the module-level packFS and returns its+// contents or an error.+func readAsset(path string) (string, error) {+ data, err := siempack.ReadFile(packFS, path)+ if err != nil {+ return "", fmt.Errorf("rapid7 pack asset %q: %w", path, err)+ }+ return data, nil+}++// mustRead returns the embedded asset at path or panics. Retained for test use+// where the embedded FS is always present; all production code uses readAsset.+func mustRead(path string) string {+ s, err := readAsset(path)+ if err != nil {+ panic(err.Error())}+ return s}-func UploadSmokeTest(logPath string) string {+// uploadSmokeTestFromFS renders the Rapid7 upload smoke-test script using the supplied FS.+func uploadSmokeTestFromFS(fsys fs.FS, logPath string) (string, error) {if logPath == "" {logPath = DefaultLogPath}diff --cc cli/beacon/internal/endpoint/sumo/sumo.goindex e32fa064,cc6149a3..8c275c6b--- a/cli/beacon/internal/endpoint/sumo/sumo.go+++ b/cli/beacon/internal/endpoint/sumo/sumo.go@@@ -20,30 -19,19 +20,31 @@@ type File structName stringContent stringTemplateLogPath bool+ JSONEscape bool}-func Files() []File {- return []File{- {Name: "README.md", Content: mustRead("pack/README.md")},- {Name: "sumo-upload-smoke-test.sh", Content: mustRead("pack/sumo-upload-smoke-test.sh.tmpl"), TemplateLogPath: true},- {Name: "sample-event.jsonl", Content: mustRead("pack/sample-event.jsonl")},- {Name: "vector.toml", Content: mustRead("pack/vector.toml.tmpl"), TemplateLogPath: true},+// readAsset reads an embedded asset using the module-level packFS and returns its+// contents or an error.+func readAsset(path string) (string, error) {+ data, err := siempack.ReadFile(packFS, path)+ if err != nil {+ return "", fmt.Errorf("sumo pack asset %q: %w", path, err)+ }+ return data, nil+}++// mustRead returns the embedded asset at path or panics. Retained for test use+// where the embedded FS is always present; all production code uses readAsset.+func mustRead(path string) string {+ s, err := readAsset(path)+ if err != nil {+ panic(err.Error())}+ return s}-func UploadSmokeTest(logPath string) string {+// uploadSmokeTestFromFS renders the Sumo upload smoke-test script using the supplied FS.+func uploadSmokeTestFromFS(fsys fs.FS, logPath string) (string, error) {if logPath == "" {logPath = DefaultLogPath}