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
package cloudwatch
import (
"embed"
endpointconfig "github.com/asymptote-labs/agent-beacon/cli/beacon/internal/endpoint/config"
"github.com/asymptote-labs/agent-beacon/cli/beacon/internal/endpoint/siempack"
)
//go:embed pack/*
var packFS embed.FS
const (
DefaultOutputDir = "beacon-cloudwatch-pack"
)
// DefaultLogPath is a var rather than a const because the system log location is now
// resolved per platform by one function instead of repeated as a literal in every pack.
var DefaultLogPath = endpointconfig.SystemLogPath()
const configAsset = "pack/vector.toml.tmpl"
// File is the installable pack-file type, shared with siempack.
type File = siempack.File
var pack = siempack.Pack{
Label: "cloudwatch",
FS: packFS,
DefaultLogPath: DefaultLogPath,
DefaultOutputDir: DefaultOutputDir,
Assets: []siempack.Asset{
{Source: "pack/README.md", Name: "README.md"},
{Source: "pack/sample-event.jsonl", Name: "sample-event.jsonl"},
{Source: configAsset, Name: "vector.toml", TemplateLogPath: true},
},
}
// mustRead returns the embedded asset at path or panics. Retained for test use.
func mustRead(path string) string { return pack.MustRead(path) }
// ConfigSnippet returns a rendered Vector configuration for AWS CloudWatch Logs.
func ConfigSnippet(logPath string) (string, error) { return pack.Render(configAsset, logPath) }
// Files returns all pack files, propagating any embedded asset read error.
func Files() ([]File, error) { return pack.Files() }
// InstallPack writes the AWS CloudWatch Logs pack files to outputDir with logPath substituted.
func InstallPack(outputDir, logPath string) error { return pack.Install(outputDir, logPath) }