@archme/cli 0.9.0 → 0.9.1
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 +19 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -10399,6 +10399,9 @@ function buildClaudeArgs(opts) {
|
|
|
10399
10399
|
"--allowedTools",
|
|
10400
10400
|
tools
|
|
10401
10401
|
];
|
|
10402
|
+
if (opts.builtinTools) {
|
|
10403
|
+
args.push("--tools", opts.builtinTools.join(","));
|
|
10404
|
+
}
|
|
10402
10405
|
if (opts.jsonOutput && !opts.interactive) {
|
|
10403
10406
|
args.push("--output-format", "json");
|
|
10404
10407
|
}
|
|
@@ -10682,6 +10685,18 @@ var init_digestPrompt = __esm({
|
|
|
10682
10685
|
import { mkdtemp as mkdtemp2, rm as rm6, writeFile as writeFile5 } from "node:fs/promises";
|
|
10683
10686
|
import { tmpdir as tmpdir2 } from "node:os";
|
|
10684
10687
|
import { join as join8 } from "node:path";
|
|
10688
|
+
function digestSpawnOpts(o2) {
|
|
10689
|
+
return {
|
|
10690
|
+
prompt: o2.prompt,
|
|
10691
|
+
mcpConfigPath: o2.mcpConfigPath,
|
|
10692
|
+
cwd: o2.cwd,
|
|
10693
|
+
allowedTools: o2.mcp?.allowedTools ?? [],
|
|
10694
|
+
// tool-less unless the caller wired MCP reads
|
|
10695
|
+
builtinTools: [],
|
|
10696
|
+
timeoutMs: DIGEST_TIMEOUT_MS,
|
|
10697
|
+
model: o2.model
|
|
10698
|
+
};
|
|
10699
|
+
}
|
|
10685
10700
|
function isCleanDigestExit(res) {
|
|
10686
10701
|
return !res.timedOut && res.signal == null && res.exitCode === 0;
|
|
10687
10702
|
}
|
|
@@ -10724,15 +10739,13 @@ async function runDigestJob(ctx, job, deviceId, inFlight2, mcp) {
|
|
|
10724
10739
|
await writeFile5(mcpConfigPath, JSON.stringify({ mcpServers: {} }));
|
|
10725
10740
|
}
|
|
10726
10741
|
const model = await resolveRunnableModel(ctx.supabase);
|
|
10727
|
-
const proc = spawnClaude({
|
|
10742
|
+
const proc = spawnClaude(digestSpawnOpts({
|
|
10728
10743
|
prompt: buildDigestPrompt(payload),
|
|
10729
10744
|
mcpConfigPath,
|
|
10730
10745
|
cwd: dir,
|
|
10731
|
-
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
model
|
|
10735
|
-
});
|
|
10746
|
+
model,
|
|
10747
|
+
mcp
|
|
10748
|
+
}));
|
|
10736
10749
|
inFlight2?.set(job.id, proc);
|
|
10737
10750
|
const res = await proc;
|
|
10738
10751
|
const narrative = (typeof res.stdout === "string" ? res.stdout : "").trim();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archme/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
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",
|