@clawos-dev/clawd 0.2.668 → 0.2.670
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 +7 -3
- package/package.json +1 -1
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 同款注入,两处保持一致)。
|
|
@@ -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.670".length > 0 ? "0.2.670" : "dev";
|
|
74948
74952
|
|
|
74949
74953
|
// src/cli-probe/probe.ts
|
|
74950
74954
|
var fs86 = __toESM(require("fs"), 1);
|