@goplus/agentguard 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -12
- package/dist/cli.js +518 -54
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +6 -0
- package/dist/config.js.map +1 -1
- package/dist/feed/cron.d.ts +32 -2
- package/dist/feed/cron.d.ts.map +1 -1
- package/dist/feed/cron.js +398 -30
- package/dist/feed/cron.js.map +1 -1
- package/dist/feed/selfcheck.d.ts +10 -1
- package/dist/feed/selfcheck.d.ts.map +1 -1
- package/dist/feed/selfcheck.js +220 -37
- package/dist/feed/selfcheck.js.map +1 -1
- package/dist/feed/types.d.ts +1 -1
- package/dist/feed/types.d.ts.map +1 -1
- package/dist/installers.d.ts +1 -1
- package/dist/installers.d.ts.map +1 -1
- package/dist/installers.js +57 -0
- package/dist/installers.js.map +1 -1
- package/dist/postinstall.js +9 -0
- package/dist/postinstall.js.map +1 -1
- package/dist/runtime/types.d.ts +1 -1
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/tests/cli-checkup.test.d.ts +2 -0
- package/dist/tests/cli-checkup.test.d.ts.map +1 -0
- package/dist/tests/cli-checkup.test.js +63 -0
- package/dist/tests/cli-checkup.test.js.map +1 -0
- package/dist/tests/cli-init.test.d.ts +2 -0
- package/dist/tests/cli-init.test.d.ts.map +1 -0
- package/dist/tests/cli-init.test.js +40 -0
- package/dist/tests/cli-init.test.js.map +1 -0
- package/dist/tests/cli-policy.test.js +47 -0
- package/dist/tests/cli-policy.test.js.map +1 -1
- package/dist/tests/cli-subscribe.test.d.ts +2 -0
- package/dist/tests/cli-subscribe.test.d.ts.map +1 -0
- package/dist/tests/cli-subscribe.test.js +123 -0
- package/dist/tests/cli-subscribe.test.js.map +1 -0
- package/dist/tests/feed-cron.test.js +266 -13
- package/dist/tests/feed-cron.test.js.map +1 -1
- package/dist/tests/feed-selfcheck.test.js +65 -3
- package/dist/tests/feed-selfcheck.test.js.map +1 -1
- package/dist/tests/feed-state.test.d.ts +2 -0
- package/dist/tests/feed-state.test.d.ts.map +1 -0
- package/dist/tests/feed-state.test.js +40 -0
- package/dist/tests/feed-state.test.js.map +1 -0
- package/dist/tests/installer.test.js +13 -0
- package/dist/tests/installer.test.js.map +1 -1
- package/dist/tests/postinstall.test.d.ts +2 -0
- package/dist/tests/postinstall.test.d.ts.map +1 -0
- package/dist/tests/postinstall.test.js +27 -0
- package/dist/tests/postinstall.test.js.map +1 -0
- package/package.json +2 -1
- package/skills/agentguard/SKILL.md +37 -9
package/README.md
CHANGED
|
@@ -68,20 +68,37 @@ printf '{"tool_name":"Bash","tool_input":{"command":"curl https://example.com/in
|
|
|
68
68
|
AGENTGUARD_API_KEY=ag_live_xxxxx agentguard connect --url https://agentguard.gopluslabs.io
|
|
69
69
|
|
|
70
70
|
# Optional: subscribe to AgentGuard's threat-intelligence feed. Pulls newly
|
|
71
|
-
# published advisories from Cloud
|
|
72
|
-
# skills, and reports matches back. Run in cron / on boot.
|
|
71
|
+
# published advisories from Cloud and asks you to review them.
|
|
73
72
|
agentguard subscribe
|
|
74
73
|
|
|
75
|
-
#
|
|
76
|
-
#
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
#
|
|
81
|
-
agentguard
|
|
82
|
-
|
|
83
|
-
#
|
|
84
|
-
agentguard
|
|
74
|
+
# Run the full quiet flow once: pull advisories, self-check local skills, and
|
|
75
|
+
# report local matches back to Cloud.
|
|
76
|
+
agentguard subscribe --quiet
|
|
77
|
+
|
|
78
|
+
# Optional: run once, then install a cron job that checks every hour and asks
|
|
79
|
+
# you to review newly published advisories. Auto uses the agent host saved by
|
|
80
|
+
# `agentguard init --agent`: OpenClaw uses native OpenClaw cron with Gateway
|
|
81
|
+
# fallback at 127.0.0.1:18789, QClaw uses QClaw Gateway at 127.0.0.1:28789,
|
|
82
|
+
# Hermes uses native Hermes cron, while Claude Code/Codex use system crontab.
|
|
83
|
+
# If no agent host is saved, run `agentguard init --agent <agent>` first or
|
|
84
|
+
# pass --cron-target explicitly.
|
|
85
|
+
agentguard subscribe --cron "0 * * * *"
|
|
86
|
+
|
|
87
|
+
# Override cron backend selection when needed.
|
|
88
|
+
agentguard subscribe --cron "0 * * * *" --cron-target system
|
|
89
|
+
agentguard subscribe --cron "0 * * * *" --cron-target openclaw
|
|
90
|
+
agentguard subscribe --cron "0 * * * *" --cron-target qclaw
|
|
91
|
+
agentguard subscribe --cron "0 * * * *" --cron-target hermes
|
|
92
|
+
# System cron writes output to ~/.agentguard/feed-cron.log.
|
|
93
|
+
# Hermes cron writes a no-agent script under ~/.hermes/scripts/ and requires
|
|
94
|
+
# Hermes Gateway for automatic scheduled execution.
|
|
95
|
+
|
|
96
|
+
# Or install the hourly cron in quiet mode so matches are self-checked and
|
|
97
|
+
# reported automatically.
|
|
98
|
+
agentguard subscribe --cron "0 * * * *" --quiet
|
|
99
|
+
|
|
100
|
+
# Replace an existing cron job with the same name
|
|
101
|
+
agentguard subscribe --cron "0 * * * *" --force
|
|
85
102
|
|
|
86
103
|
# Machine-readable output always includes a cron status object:
|
|
87
104
|
# cron.requested, cron.installed, and optional cron.result when installation succeeds.
|
|
@@ -95,6 +112,8 @@ agentguard checkup --against-advisory AGS-2026-0042
|
|
|
95
112
|
agentguard init --agent claude-code
|
|
96
113
|
agentguard init --agent codex
|
|
97
114
|
agentguard init --agent openclaw
|
|
115
|
+
agentguard init --agent hermes
|
|
116
|
+
agentguard init --agent qclaw
|
|
98
117
|
```
|
|
99
118
|
|
|
100
119
|
<details>
|