@archme/cli 0.14.0 → 0.14.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
@@ -10807,7 +10807,9 @@ function digestSpawnOpts(o2) {
10807
10807
  // tool-less unless the caller wired MCP reads
10808
10808
  builtinTools: [],
10809
10809
  timeoutMs: DIGEST_TIMEOUT_MS,
10810
- model: o2.model
10810
+ model: o2.model,
10811
+ settingSources: "user"
10812
+ // never a project's .claude/settings.json hooks on the host
10811
10813
  };
10812
10814
  }
10813
10815
  function isCleanDigestExit(res) {
@@ -17243,7 +17245,9 @@ function observeGithubPull(p) {
17243
17245
  mergedAt: p.merged_at ?? null,
17244
17246
  closedAt: p.closed_at ?? null,
17245
17247
  // Before the merge it is GitHub's throwaway test merge.
17246
- mergeCommitSha: p.merged_at ? p.merge_commit_sha ?? null : null
17248
+ mergeCommitSha: p.merged_at ? p.merge_commit_sha ?? null : null,
17249
+ headRepo: p.head.repo?.full_name ?? null,
17250
+ baseRepo: p.base.repo?.full_name ?? null
17247
17251
  };
17248
17252
  }
17249
17253
  function metaKey(o2) {
@@ -17280,6 +17284,8 @@ function toItem(o2, action, sent) {
17280
17284
  closed_at: o2.closedAt,
17281
17285
  merge_commit_sha: o2.mergeCommitSha,
17282
17286
  body: o2.body,
17287
+ head_repo: o2.headRepo,
17288
+ ...o2.baseRepo ? { base_repo: o2.baseRepo } : {},
17283
17289
  ...action === "synchronize" && sent.seq !== void 0 ? { seq: sent.seq } : {}
17284
17290
  };
17285
17291
  }
@@ -18007,7 +18013,12 @@ async function pollPrsOnce(entry, deps) {
18007
18013
  const kinds = new Map(results.map((r) => [r.number, r.kind]));
18008
18014
  for (const item of plan.send) {
18009
18015
  const kind = kinds.get(item.number);
18010
- if (kind !== void 0) {
18016
+ if (kind === "held") {
18017
+ const fork = !!item.head_repo && !!item.base_repo && item.head_repo.toLowerCase() !== item.base_repo.toLowerCase();
18018
+ deps.log(
18019
+ fork ? ` ${repo}: PR #${item.number} ${item.action} \u2192 held: it comes from a fork, and a locally watched repo does not review fork pull requests (there is no way to approve one without the GitHub App).` : ` ${repo}: PR #${item.number} ${item.action} \u2192 held: the server did not approve it for review (its head repo could not be confirmed as this repo, e.g. GitHub did not report it).`
18020
+ );
18021
+ } else if (kind !== void 0) {
18011
18022
  deps.log(` ${repo}: PR #${item.number} ${item.action} \u2192 ${kind}`);
18012
18023
  }
18013
18024
  if (kind !== void 0 && !UNDELIVERED.has(kind)) continue;
@@ -19027,7 +19038,7 @@ var init_appleContainer = __esm({
19027
19038
  STDERR_CAP_BYTES = 1024 * 1024;
19028
19039
  INIT_MEMORY_MIB = 256;
19029
19040
  NAME_RE = /^[a-z0-9][a-z0-9_.-]*$/;
19030
- ENV_KEY_RE = /^[A-Z_][A-Z0-9_]*$/;
19041
+ ENV_KEY_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
19031
19042
  LABEL_KEY_RE = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
19032
19043
  CONTROL_RE = /[\u0000\n\r]/;
19033
19044
  obj = (v) => v && typeof v === "object" ? v : {};
@@ -22104,7 +22115,9 @@ async function spawnTriage(jobId, mcpConfigPath, cwd, opts) {
22104
22115
  model: opts.model,
22105
22116
  allowedTools: TRIAGE_ALLOWED_TOOLS,
22106
22117
  builtinTools: TRIAGE_BUILTIN_TOOLS,
22107
- jsonOutput: true
22118
+ jsonOutput: true,
22119
+ settingSources: "user"
22120
+ // the checkout is the customer's; see runJob's spawn
22108
22121
  });
22109
22122
  inFlight.set(jobId, proc);
22110
22123
  const result = await proc;
@@ -22466,7 +22479,10 @@ async function runJob(ctx, job, claimDeviceId) {
22466
22479
  // Single-object JSON so we can read the served model + usage/cost. stdout
22467
22480
  // is then one raw JSON blob — tee it SILENTLY (unreadable in `daemon -f`)
22468
22481
  // and log the parsed `.result` after exit instead.
22469
- jsonOutput: true
22482
+ jsonOutput: true,
22483
+ // The checkout is the customer's: never load its .claude/settings.json
22484
+ // (hooks there would run as shell commands on this host).
22485
+ settingSources: "user"
22470
22486
  });
22471
22487
  inFlight.set(job.id, proc);
22472
22488
  const getStdout = teeStream(proc.stdout, `[${job.id}] claude> `, { silent: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archme/cli",
3
- "version": "0.14.0",
3
+ "version": "0.14.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:05ee7b0ceb0e47fd134b77c47cb05bb1a625da38e886700fd0cee50a547f7256"
3
+ "digest": "sha256:e65cbf5dbcd3e9289e54c140922a98904ce2c7fa28402bec6a909202bc1b7b78"
4
4
  }