@archme/cli 0.25.1 → 0.25.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
@@ -24565,7 +24565,7 @@ async function completeClaudeRun(ctx, job, deviceId, run) {
24565
24565
  }
24566
24566
  async function spawnTriage(jobId, mcpConfigPath, cwd, opts) {
24567
24567
  if (shuttingDown) return { ok: false, summary: "skipped: the daemon is shutting down" };
24568
- const proc = spawnClaude({
24568
+ const proc = spawnClaude(hostSpawnOpts({
24569
24569
  prompt: opts.prompt,
24570
24570
  mcpConfigPath,
24571
24571
  cwd,
@@ -24574,10 +24574,9 @@ async function spawnTriage(jobId, mcpConfigPath, cwd, opts) {
24574
24574
  allowedTools: TRIAGE_ALLOWED_TOOLS,
24575
24575
  builtinTools: TRIAGE_BUILTIN_TOOLS,
24576
24576
  jsonOutput: true,
24577
- settingSources: "user",
24577
+ settingSources: "user"
24578
24578
  // the checkout is the customer's; see runJob's spawn
24579
- agentEnv: true
24580
- });
24579
+ }));
24581
24580
  inFlight.set(jobId, proc);
24582
24581
  const result = await proc;
24583
24582
  const parsed = parseClaudeResult(result.stdout ? String(result.stdout) : "");
@@ -24615,8 +24614,11 @@ async function rpcStoreLogs(ctx, jobId, deviceId, logs) {
24615
24614
  }), ctx.reLogin);
24616
24615
  if (error) console.error(`[${jobId}] store logs error:`, error.message);
24617
24616
  }
24617
+ function hostSpawnOpts(opts) {
24618
+ return { ...opts, agentEnv: true, promptViaStdin: true };
24619
+ }
24618
24620
  function hostDigestSpawnOpts(o2) {
24619
- return { ...digestSpawnOpts(o2), agentEnv: true };
24621
+ return hostSpawnOpts(digestSpawnOpts(o2));
24620
24622
  }
24621
24623
  async function runDigest(ctx, job, claimDeviceId) {
24622
24624
  const log = (msg) => console.log(`[${job.id}] ${msg}`);
@@ -25179,7 +25181,7 @@ async function runJob(ctx, job, claimDeviceId) {
25179
25181
  return;
25180
25182
  }
25181
25183
  log(`spawning claude (mcp config at ${configPath}, model ${model})`);
25182
- const proc = spawnClaude({
25184
+ const proc = spawnClaude(hostSpawnOpts({
25183
25185
  prompt,
25184
25186
  mcpConfigPath: configPath,
25185
25187
  cwd: worktreeDir,
@@ -25194,11 +25196,8 @@ async function runJob(ctx, job, claimDeviceId) {
25194
25196
  jsonOutput: true,
25195
25197
  // The checkout is the customer's: never load its .claude/settings.json
25196
25198
  // (hooks there would run as shell commands on this host).
25197
- settingSources: "user",
25198
- // Unboxed (sandbox off, a shadow/infra fallback, local poll): the agent
25199
- // sees only the agent env, never the daemon's other tokens.
25200
- agentEnv: true
25201
- });
25199
+ settingSources: "user"
25200
+ }));
25202
25201
  inFlight.set(job.id, proc);
25203
25202
  const getStdout = teeStream(proc.stdout, `[${job.id}] claude> `, { silent: true });
25204
25203
  const getStderr = teeStream(proc.stderr, `[${job.id}] claude! `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archme/cli",
3
- "version": "0.25.1",
3
+ "version": "0.25.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:876b10d1bf99da05e28b73fcbc1e43898d6aa0a5665ba388250cd10eb5a384e3"
3
+ "digest": "sha256:8c54e1436285bb4f661a4088911b80c9050289333ebab063c207292f3c6b5fbc"
4
4
  }