@goplus/agentguard 1.1.8 → 1.1.9
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 +12 -8
- package/dist/cli.js +455 -46
- package/dist/cli.js.map +1 -1
- package/dist/feed/cron.d.ts +6 -2
- package/dist/feed/cron.d.ts.map +1 -1
- package/dist/feed/cron.js +32 -15
- 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/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-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 +28 -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/package.json +2 -1
- package/skills/agentguard/SKILL.md +10 -7
|
@@ -87,7 +87,7 @@ Supported CLI commands and options:
|
|
|
87
87
|
| `agentguard policy pull` | `--json` | Pulls Cloud effective runtime policy into the local cache |
|
|
88
88
|
| `agentguard doctor` | none | Checks local setup and Cloud reachability when connected |
|
|
89
89
|
| `agentguard protect` | `--agent <agent>`, `--action-type <type>`, `--tool-name <name>`, `--session-id <id>`, `--decision-mode <local-first|cloud>`, `--json` | Evaluates one runtime action from stdin or hook environment |
|
|
90
|
-
| `agentguard subscribe` | `--since <iso>`, `--json`, `--
|
|
90
|
+
| `agentguard subscribe` | `--since <iso>`, `--json`, `--quiet`, `--no-report`, `--cron <expr>`, `--cron-name <name>`, `--force`, `--cron-run` | Pulls Cloud threat advisories and optionally self-checks local skills |
|
|
91
91
|
| `agentguard checkup --against-advisory <id>` | `--json` | CLI threat-feed self-check for one advisory; this is a targeted mode, not the default health-check workflow |
|
|
92
92
|
|
|
93
93
|
If the user writes `/agentguard cli <args...>`, execute `agentguard <args...>` directly.
|
|
@@ -180,20 +180,23 @@ Examples:
|
|
|
180
180
|
|
|
181
181
|
```bash
|
|
182
182
|
agentguard subscribe
|
|
183
|
+
agentguard subscribe --quiet
|
|
183
184
|
agentguard subscribe --json
|
|
184
185
|
agentguard subscribe --since 2026-05-01T00:00:00.000Z
|
|
185
186
|
agentguard subscribe --no-report
|
|
186
|
-
agentguard subscribe --
|
|
187
|
-
agentguard subscribe --
|
|
188
|
-
agentguard subscribe --
|
|
189
|
-
agentguard subscribe --
|
|
187
|
+
agentguard subscribe --cron "0 * * * *"
|
|
188
|
+
agentguard subscribe --cron "0 * * * *" --quiet
|
|
189
|
+
agentguard subscribe --cron "0 * * * *" --cron-name agentguard-threat-feed
|
|
190
|
+
agentguard subscribe --cron "0 * * * *" --force
|
|
190
191
|
```
|
|
191
192
|
|
|
192
|
-
|
|
193
|
+
Without `--quiet`, `agentguard subscribe` pulls new threat-feed advisories and notifies the user to review them manually. With `--quiet`, it runs the full automated flow: pull new advisories, self-check local skills, report local matches back to Cloud, and notify only when local matches are found.
|
|
194
|
+
|
|
195
|
+
When `--cron <expr>` is used, the CLI registers an OpenClaw isolated cron job through the local OpenClaw Gateway at `127.0.0.1:18789` using a standard five-field crontab expression such as `"0 * * * *"`. Pass `--cron-name <name>` to choose the job name. If a job with the same name already exists, the CLI leaves it untouched unless `--force` is passed. The cron delivery is intentionally silent (`delivery.mode = "none"`); the isolated turn executes `agentguard subscribe --json --cron-run` or `agentguard subscribe --quiet --json --cron-run` depending on whether `--quiet` was used during installation. Non-quiet cron sends the configured notification when new advisories are found; quiet cron sends it when local matches are found.
|
|
193
196
|
|
|
194
197
|
`agentguard subscribe --json` always includes a stable `cron` object with `requested`, `installed`, and optional `result` fields. If cron installation fails, the command exits non-zero instead of printing a misleading success summary.
|
|
195
198
|
|
|
196
|
-
`--since <iso>` overrides the persisted feed cursor for one run. `--no-report` skips uploading local matches back to Cloud. `--cron-run` is internal and should only be used by the OpenClaw cron prompt unless the user explicitly asks to reproduce cron behavior.
|
|
199
|
+
`--since <iso>` overrides the persisted feed cursor for one run. `--no-report` skips uploading local matches back to Cloud in quiet mode. `--cron-run` is internal and should only be used by the OpenClaw cron prompt unless the user explicitly asks to reproduce cron behavior.
|
|
197
200
|
|
|
198
201
|
---
|
|
199
202
|
|