Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/agentsight-runner-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ jobs:
working-directory: src/agentsight
run: cargo clippy --workspace --all-targets -- -D warnings

- name: Test raw packaging
working-directory: src/agentsight
run: make test-raw-package

- name: Run tests with coverage
working-directory: src/agentsight
run: |
Expand Down Expand Up @@ -163,4 +167,3 @@ jobs:
exec "$CARGO_BIN" test --test bpf_load -- \
--ignored --nocapture --test-threads=1
'

4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,10 @@ jobs:
cd src/agentsight
cargo clippy --workspace --all-targets -- -D warnings

- name: Test raw packaging
working-directory: src/agentsight
run: make test-raw-package

- name: Run tests with coverage
run: |
cd src/agentsight
Expand Down
2 changes: 2 additions & 0 deletions scripts/check-component-versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
TOML_CONTRACTS = (
("src/agent-sec-core/openclaw-plugin/package.json", "src/agent-sec-core/.anolisa/component.toml"),
("src/agentsight/Cargo.toml", "src/agentsight/component.toml"),
("src/agentsight/Cargo.toml", "src/agentsight/.anolisa/component.toml"),
("src/agentsight/Cargo.toml", "src/agentsight/.anolisa/component.macos.toml"),
("src/copilot-shell/package.json", "src/copilot-shell/component.toml"),
("src/cosh-ng/Cargo.toml", "src/cosh-ng/component.toml"),
("src/cosh-ng/Cargo.toml", "src/cosh-ng/.anolisa/component.toml"),
Expand Down
37 changes: 37 additions & 0 deletions src/agentsight/.anolisa/component.macos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[component]
name = "agentsight"
version = "0.10.1"
layer = "runtime"
domain = "observability"
display_name = "AgentSight"
description = "Agent observability with Linux eBPF tracing and cross-platform trajectory collection and analysis"
owner = "agentsight-team"
license = "Apache-2.0"
repository = "https://github.com/alibaba/anolisa"

[component.contract]
schema_version = "1.0"
min_anolisa_version = "0.1.16"

[component.platform]
os = ["macos"]
arch = ["aarch64"]

[component.layout]
modes = ["user", "system"]

[[component.layout.files]]
source = ".anolisa/component.toml"
target = "{datadir}/components/agentsight/component.toml"
mode = "0644"

[[component.layout.files]]
source = "bin/agentsight"
target = "{bindir}/agentsight"
mode = "0755"
type = "executable"

[component.health_check]
type = "binary_version"
binary = "{bindir}/agentsight"
timeout_secs = 5
92 changes: 92 additions & 0 deletions src/agentsight/.anolisa/component.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[component]
name = "agentsight"
version = "0.10.1"
layer = "runtime"
domain = "observability"
display_name = "AgentSight"
description = "Agent observability with Linux eBPF tracing and cross-platform trajectory collection and analysis"
owner = "agentsight-team"
license = "Apache-2.0"
repository = "https://github.com/alibaba/anolisa"

[component.contract]
schema_version = "1.0"
min_anolisa_version = "0.1.16"

[backends.rpm]
package = "agentsight"

[component.platform]
os = ["linux"]
arch = ["x86_64"]
min_kernel = "5.8"

[[component.dependencies]]
name = "elfutils-libelf"
kind = "system-package"
probe = "grep -aqF libelf.so.1 /etc/ld.so.cache"
packages = { rpm = "elfutils-libelf", deb = "libelf1" }

[[component.dependencies]]
name = "ebpf-btf"
kind = "platform-capability"
check = "btf"
min_kernel = "5.8"

[component.layout]
modes = ["system"]

[[component.layout.files]]
source = ".anolisa/component.toml"
target = "{datadir}/components/agentsight/component.toml"
mode = "0644"

[[component.layout.files]]
source = "bin/agentsight"
target = "{bindir}/agentsight"
mode = "0755"
type = "executable"

[[component.layout.files]]
source = "bin/agentsight-enforcer"
target = "{bindir}/agentsight-enforcer"
mode = "0755"
type = "executable"

[[component.layout.files]]
source = "bin/agentsight-start"
target = "{bindir}/agentsight-start"
mode = "0755"
type = "executable"

[[component.layout.files]]
source = "share/anolisa/agentsight/agentsight.service"
target = "{unitdir}/agentsight.service"
mode = "0644"

[[component.layout.files]]
source = "share/anolisa/agentsight/agentsight-enforcer.service"
target = "{unitdir}/agentsight-enforcer.service"
mode = "0644"

[[component.capabilities]]
path = "{bindir}/agentsight"
caps = ["cap_bpf", "cap_perfmon"]
optional = true

[[component.services]]
unit = "agentsight-enforcer.service"
scope = "system"
enable = false
start = false

[[component.services]]
unit = "agentsight.service"
scope = "system"
enable = false
start = false

[component.health_check]
type = "binary_version"
binary = "{bindir}/agentsight"
timeout_secs = 5
12 changes: 11 additions & 1 deletion src/agentsight/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,18 @@ uninstall:
# TEST & QUALITY
# =============================================================================

.PHONY: package-raw stage-raw test-raw-package
package-raw: ## Package prebuilt AgentSight binaries for one raw target
@./packaging/raw/package.sh package

stage-raw: ## Stage one raw payload into DESTDIR
@./packaging/raw/package.sh stage

test-raw-package: ## Validate Linux and macOS raw package assembly
@bash scripts/test-package-raw.sh

.PHONY: test
test: test-rpm-packaging ## Run unit tests (fast, no coverage)
test: test-rpm-packaging test-raw-package ## Run unit tests (fast, no coverage)
cd $(CURDIR) && cargo test

.PHONY: test-rpm-packaging
Expand Down
Loading
Loading