@archme/cli 0.18.1 → 0.18.2

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/dist/cli.js CHANGED
@@ -22853,9 +22853,20 @@ async function runAgentStep(input, deps = {}) {
22853
22853
  cwd: repoDir,
22854
22854
  timeoutMs: input.timeoutMs,
22855
22855
  model: input.model,
22856
- // Diff/PR: no Bash. `-p` mode does not bind built-ins to --allowedTools,
22857
- // and a build step run through Bash can forge claude's stderr (BUG-143).
22858
- ...firstScan ? { allowedTools: FIRST_SCAN_ALLOWED_TOOLS } : { builtinTools: ["Read", "Glob", "Grep", "Agent"] },
22856
+ // Diff/PR: no allowedTools override, as unboxed (run.ts), so the list is
22857
+ // DEFAULT_ALLOWED_TOOLS, which omits Bash/Write/Edit. The agent still gets
22858
+ // them only because `claude -p` allows built-ins whatever --allowedTools
22859
+ // says (spawn-claude.ts); the prompt needs them (`archme analyze`, git,
22860
+ // findings files). If claude starts enforcing the list, both paths lose
22861
+ // Bash together. Its stderr is not trusted either way
22862
+ // (BUG-143). Known risk, accepted for now (QUICK-164): with Bash a hostile
22863
+ // diff can call the gatekeeper itself and provoke a counted upstream
22864
+ // 429/401/403, which pauses the whole ACCOUNT (daemon_pauses), and a defer
22865
+ // nets zero, so the same job can re-pause it on every return. Symptom: one
22866
+ // job deferring over and over on /admin → Daemon with claude_rate_limit /
22867
+ // upstream_auth_failure. Remedy: cancel it. Planned fix: the first-scan
22868
+ // rule (defer alone, never pause the account; firstScanPauseUntilMs).
22869
+ ...firstScan ? { allowedTools: FIRST_SCAN_ALLOWED_TOOLS } : {},
22859
22870
  jsonOutput: true,
22860
22871
  settingSources: "user",
22861
22872
  // A box is Linux: a prompt over 128 KiB cannot be one argv string.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archme/cli",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "Map your codebase into a living architecture diagram: run `archme init` in a repo to scan it, `archme daemon start` to keep it current on every commit.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "image": "ghcr.io/architectme/archme-job",
3
- "digest": "sha256:48e9e346c560f8e95b3cca0dad5fefb400eca7164410a2a8f736cd97350df99c"
3
+ "digest": "sha256:8a4da96f78e86b7fe5410743c5620622212127cb14d88cd6f1020c956900ea0b"
4
4
  }