@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.
Files changed (55) hide show
  1. package/README.md +31 -12
  2. package/dist/cli.js +518 -54
  3. package/dist/cli.js.map +1 -1
  4. package/dist/config.d.ts +1 -0
  5. package/dist/config.d.ts.map +1 -1
  6. package/dist/config.js +6 -0
  7. package/dist/config.js.map +1 -1
  8. package/dist/feed/cron.d.ts +32 -2
  9. package/dist/feed/cron.d.ts.map +1 -1
  10. package/dist/feed/cron.js +398 -30
  11. package/dist/feed/cron.js.map +1 -1
  12. package/dist/feed/selfcheck.d.ts +10 -1
  13. package/dist/feed/selfcheck.d.ts.map +1 -1
  14. package/dist/feed/selfcheck.js +220 -37
  15. package/dist/feed/selfcheck.js.map +1 -1
  16. package/dist/feed/types.d.ts +1 -1
  17. package/dist/feed/types.d.ts.map +1 -1
  18. package/dist/installers.d.ts +1 -1
  19. package/dist/installers.d.ts.map +1 -1
  20. package/dist/installers.js +57 -0
  21. package/dist/installers.js.map +1 -1
  22. package/dist/postinstall.js +9 -0
  23. package/dist/postinstall.js.map +1 -1
  24. package/dist/runtime/types.d.ts +1 -1
  25. package/dist/runtime/types.d.ts.map +1 -1
  26. package/dist/tests/cli-checkup.test.d.ts +2 -0
  27. package/dist/tests/cli-checkup.test.d.ts.map +1 -0
  28. package/dist/tests/cli-checkup.test.js +63 -0
  29. package/dist/tests/cli-checkup.test.js.map +1 -0
  30. package/dist/tests/cli-init.test.d.ts +2 -0
  31. package/dist/tests/cli-init.test.d.ts.map +1 -0
  32. package/dist/tests/cli-init.test.js +40 -0
  33. package/dist/tests/cli-init.test.js.map +1 -0
  34. package/dist/tests/cli-policy.test.js +47 -0
  35. package/dist/tests/cli-policy.test.js.map +1 -1
  36. package/dist/tests/cli-subscribe.test.d.ts +2 -0
  37. package/dist/tests/cli-subscribe.test.d.ts.map +1 -0
  38. package/dist/tests/cli-subscribe.test.js +123 -0
  39. package/dist/tests/cli-subscribe.test.js.map +1 -0
  40. package/dist/tests/feed-cron.test.js +266 -13
  41. package/dist/tests/feed-cron.test.js.map +1 -1
  42. package/dist/tests/feed-selfcheck.test.js +65 -3
  43. package/dist/tests/feed-selfcheck.test.js.map +1 -1
  44. package/dist/tests/feed-state.test.d.ts +2 -0
  45. package/dist/tests/feed-state.test.d.ts.map +1 -0
  46. package/dist/tests/feed-state.test.js +40 -0
  47. package/dist/tests/feed-state.test.js.map +1 -0
  48. package/dist/tests/installer.test.js +13 -0
  49. package/dist/tests/installer.test.js.map +1 -1
  50. package/dist/tests/postinstall.test.d.ts +2 -0
  51. package/dist/tests/postinstall.test.d.ts.map +1 -0
  52. package/dist/tests/postinstall.test.js +27 -0
  53. package/dist/tests/postinstall.test.js.map +1 -0
  54. package/package.json +2 -1
  55. 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, runs a self-check against your installed
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
- # Optional: after one subscribe run, install an OpenClaw isolated cron job that
76
- # repeats the feed self-check every 15 minutes and only notifies on matches.
77
- # Requires the local OpenClaw Gateway at 127.0.0.1:18789.
78
- agentguard subscribe --install-cron
79
-
80
- # Override the interval if needed
81
- agentguard subscribe --install-cron --interval-minutes 5
82
-
83
- # Replace an existing OpenClaw cron job with the same name
84
- agentguard subscribe --install-cron --force
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>