@nowcrew/daemon 0.6.88-beta.21 → 0.6.88-beta.22
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/main.js
CHANGED
|
File without changes
|
|
@@ -180,7 +180,7 @@ export async function runHarness(input, bin, patchPath) {
|
|
|
180
180
|
if (!cancelled)
|
|
181
181
|
process.stderr.write(spawnError
|
|
182
182
|
? "DeepSeek Harness launch failed; verify the installed dsh executable.\n"
|
|
183
|
-
: `DeepSeek Harness ACP execution failed at ${stage}; verify the pinned version
|
|
183
|
+
: `DeepSeek Harness ACP execution failed at ${stage}; verify DEEPSEEK_API_KEY, model access, the pinned version and profile patch.\n`);
|
|
184
184
|
}
|
|
185
185
|
finally {
|
|
186
186
|
try {
|
|
@@ -13,7 +13,12 @@ import { prepareThreadDelivery } from "../thread-input-delivery.js";
|
|
|
13
13
|
import { startFirstProgressWatchdog } from "./progress-watchdog.js";
|
|
14
14
|
import { assertKimiLegacyPromptFits, buildKimiArgs } from "./kimi.js";
|
|
15
15
|
const ERROR_MESSAGE_CAP = 2_000;
|
|
16
|
-
|
|
16
|
+
// macOS launchd cold-starts ACP runtimes materially slower than an interactive
|
|
17
|
+
// shell. DeepSeek Harness was measured at ~4.4s before returning initialize
|
|
18
|
+
// under launchd, while the daemon also creates an isolated profile. Keep this
|
|
19
|
+
// bounded below the control-plane request budget, with the existing 1s/2s
|
|
20
|
+
// Harness retries providing the outer bound.
|
|
21
|
+
export const ACP_PROBE_TIMEOUT_MS = 10_000;
|
|
17
22
|
function jsonLine(event) {
|
|
18
23
|
if (process.stdout.write(`${JSON.stringify(event)}\n`))
|
|
19
24
|
return Promise.resolve();
|
|
@@ -262,7 +267,7 @@ export async function probeKimiAcp(options, spawnProcess = spawn) {
|
|
|
262
267
|
reason = "timeout";
|
|
263
268
|
void stopChild(child);
|
|
264
269
|
resolve(false);
|
|
265
|
-
},
|
|
270
|
+
}, ACP_PROBE_TIMEOUT_MS);
|
|
266
271
|
}),
|
|
267
272
|
new Promise((resolve) => {
|
|
268
273
|
onAbort = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nowcrew/daemon",
|
|
3
|
-
"version": "0.6.88-beta.
|
|
3
|
+
"version": "0.6.88-beta.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "crew daemon — 运行在用户机器:拉起/管理 agent 进程,注入 crew CLI,归一化 runtime 事件",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,6 +16,13 @@
|
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"daemon": "pnpm --filter @nowcrew/cli build && tsx src/main.ts",
|
|
21
|
+
"build": "tsc -p tsconfig.json",
|
|
22
|
+
"prepublishOnly": "pnpm build && node ../scripts/daemon-release-artifact.mjs --strict-registry",
|
|
23
|
+
"test": "vitest run",
|
|
24
|
+
"typecheck": "tsc --noEmit"
|
|
25
|
+
},
|
|
19
26
|
"dependencies": {
|
|
20
27
|
"@agentclientprotocol/sdk": "1.2.1",
|
|
21
28
|
"@nowcrew/cli": "0.4.14",
|
|
@@ -36,11 +43,5 @@
|
|
|
36
43
|
"tsx": "^4.19.0",
|
|
37
44
|
"typescript": "^5.6.0",
|
|
38
45
|
"vitest": "^2.1.0"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"daemon": "pnpm --filter @nowcrew/cli build && tsx src/main.ts",
|
|
42
|
-
"build": "tsc -p tsconfig.json",
|
|
43
|
-
"test": "vitest run",
|
|
44
|
-
"typecheck": "tsc --noEmit"
|
|
45
46
|
}
|
|
46
|
-
}
|
|
47
|
+
}
|