@clawos-dev/clawd 0.2.668 → 0.2.671
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.cjs
CHANGED
|
@@ -45642,10 +45642,14 @@ var import_node_crypto = require("crypto");
|
|
|
45642
45642
|
|
|
45643
45643
|
// src/tools/codex-app-server-client.ts
|
|
45644
45644
|
var import_node_readline = require("readline");
|
|
45645
|
-
function stdioLineStream(proc) {
|
|
45645
|
+
function stdioLineStream(proc, opts = {}) {
|
|
45646
45646
|
const rl = (0, import_node_readline.createInterface)({ input: proc.stdout, crlfDelay: Infinity });
|
|
45647
45647
|
const lineCbs = [];
|
|
45648
45648
|
const closeCbs = [];
|
|
45649
|
+
proc.stdin?.on(
|
|
45650
|
+
"error",
|
|
45651
|
+
(err) => opts.logger?.warn("codex stdin error (write dropped)", { code: err.code, message: err.message })
|
|
45652
|
+
);
|
|
45649
45653
|
rl.on("line", (l2) => {
|
|
45650
45654
|
for (const cb of lineCbs) cb(l2);
|
|
45651
45655
|
});
|
|
@@ -54801,7 +54805,7 @@ function createCodexSession(ctx, sink, deps = {}) {
|
|
|
54801
54805
|
ctx,
|
|
54802
54806
|
sink,
|
|
54803
54807
|
logger: deps.logger,
|
|
54804
|
-
stream: stdioLineStream(proc),
|
|
54808
|
+
stream: stdioLineStream(proc, { logger: deps.logger }),
|
|
54805
54809
|
threadParams: threadStartParams(ctx),
|
|
54806
54810
|
// persona 惯例装在 <cwd>/.claude/skills/,经 extraRoots 注入 discovery
|
|
54807
54811
|
// (skills:list RPC 侧 codex-skills.ts 同款注入,两处保持一致)。
|
|
@@ -66083,7 +66087,7 @@ function buildPersonaDispatchHandlers(deps) {
|
|
|
66083
66087
|
await deps.getCapabilities(args.tool);
|
|
66084
66088
|
}
|
|
66085
66089
|
if (args.model !== void 0) {
|
|
66086
|
-
const caps = await deps.getCapabilities?.(effectiveTool);
|
|
66090
|
+
const caps = await deps.getCapabilities?.(effectiveTool, { refresh: true });
|
|
66087
66091
|
const allowed = caps ? caps.models.map((m3) => m3.id).filter((id) => id !== "") : effectiveTool === "claude" ? CLAUDE_MODEL_IDS : [];
|
|
66088
66092
|
if (!allowed.includes(args.model)) {
|
|
66089
66093
|
throw new ClawdError(
|
|
@@ -74944,7 +74948,7 @@ function computeMethodAccess(args) {
|
|
|
74944
74948
|
}
|
|
74945
74949
|
|
|
74946
74950
|
// src/version.ts
|
|
74947
|
-
var version = "0.2.
|
|
74951
|
+
var version = "0.2.671".length > 0 ? "0.2.671" : "dev";
|
|
74948
74952
|
|
|
74949
74953
|
// src/cli-probe/probe.ts
|
|
74950
74954
|
var fs86 = __toESM(require("fs"), 1);
|
|
@@ -78540,7 +78544,7 @@ async function startDaemon(config) {
|
|
|
78540
78544
|
},
|
|
78541
78545
|
getPersonaPublic: (personaId2) => personaRegistry.get(personaId2)?.public ?? false,
|
|
78542
78546
|
getPersonaDefaults: (personaId2) => personaRegistry.get(personaId2),
|
|
78543
|
-
getCapabilities: (tool) => manager.getCapabilities(tool)
|
|
78547
|
+
getCapabilities: (tool, opts) => manager.getCapabilities(tool, opts)
|
|
78544
78548
|
});
|
|
78545
78549
|
Object.assign(handlers, dispatchHandlers);
|
|
78546
78550
|
const shiftHandlers = buildShiftInternalHandlers({
|