@archme/cli 0.18.0 → 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.
@@ -28694,6 +28705,7 @@ function buildRunSheet(opts) {
28694
28705
  "## Session brief",
28695
28706
  "",
28696
28707
  `Project \`${opts.project}\`, branch \`${opts.scanBranch}\`; the clones are under \`${opts.workspace}\`.`,
28708
+ opts.interactive ? "The user is at this terminal." : "No one is at this terminal: never wait for the user.",
28697
28709
  "",
28698
28710
  "Scan these repos. Launch each once; resume a scan rather than relaunch it.",
28699
28711
  ...opts.scan.flatMap((r) => [
@@ -28989,6 +29001,7 @@ async function runPreparedAddRepos(prepared, run, deps = {}) {
28989
29001
  workspace,
28990
29002
  archme: deps.archmeCommand ?? `${shellQuote(nodeBin)} ${shellQuote(cliEntry)}`,
28991
29003
  local: opts.local,
29004
+ interactive,
28992
29005
  scan: todo.map((c3) => ({ repo: c3.target.repo, root: c3.root, containerId: containerFor(c3.target.repo) })),
28993
29006
  context: [
28994
29007
  ...done.map((c3) => ({ repo: c3.target.repo, containerId: containerFor(c3.target.repo), why: "already scanned" })),
@@ -29653,6 +29666,8 @@ function setupDonePreface(facts) {
29653
29666
  `- Agent config (\`.mcp.json\`, a CLAUDE.md block, the architecture skill) is in ${facts.repos.length > 1 ? "each clone" : "the clone"}.`,
29654
29667
  facts.access === "local" ? `- Local watch: this machine checks ${facts.repos.join(", ")} for new commits once ${facts.repos.length > 1 ? "each scan finishes" : "the scan finishes"}.` : `- GitHub watch: the ArchMe GitHub App reports pushes to ${facts.repos.join(", ")}.`,
29655
29668
  "",
29669
+ "Discovery's read-only rule ends here: you and your sub-agents now write to the board and to findings files. Still never change a clone's tracked files, commit or push.",
29670
+ "",
29656
29671
  facts.multi ? "Tell the user setup is done, then run the multi-repo bootstrap below." : "Tell the user setup is done, then scan the repo as below."
29657
29672
  ];
29658
29673
  return lines.join("\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archme/cli",
3
- "version": "0.18.0",
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:5c478f98c377d3c494b1c3629c248a789e4ff6918b9bc1f372c7429b65de7cbc"
3
+ "digest": "sha256:8a4da96f78e86b7fe5410743c5620622212127cb14d88cd6f1020c956900ea0b"
4
4
  }