@nowcrew/daemon 0.6.11 → 0.6.13
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/README.md +6 -3
- package/dist/agent-ability/materializer.js +4 -3
- package/dist/agent-ability/resolver.js +13 -3
- package/dist/agent-ability/types.js +11 -7
- package/dist/config.js +4 -2
- package/dist/execution-runner.js +4 -1
- package/dist/host-execution-coordinator.js +3 -3
- package/dist/main.js +0 -0
- package/dist/memory-prune-diagnostics.js +6 -0
- package/dist/remote/claude-bridge.js +558 -0
- package/dist/remote/claude-channel.js +164 -0
- package/dist/remote/codex-client.js +451 -0
- package/dist/remote/codex-runtime.js +77 -0
- package/dist/remote/config.js +135 -0
- package/dist/remote/gateway.js +879 -0
- package/dist/remote/identity.js +39 -0
- package/dist/remote/owner.js +77 -0
- package/dist/remote/protocol.js +211 -0
- package/dist/remote/remote-cli.js +254 -0
- package/dist/remote/runtime-probe.js +182 -0
- package/dist/remote/session-discovery.js +249 -0
- package/dist/remote/wrapper.js +40 -0
- package/dist/remote-web/assets/index-B_6VM_tw.js +94 -0
- package/dist/remote-web/assets/index-L6EiQbJn.css +1 -0
- package/dist/remote-web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/remote-web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/remote-web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/remote-web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/remote-web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/remote-web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/remote-web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/remote-web/icons/nowwork-192.png +0 -0
- package/dist/remote-web/icons/nowwork-512.png +0 -0
- package/dist/remote-web/icons/nowwork.svg +7 -0
- package/dist/remote-web/index.html +20 -0
- package/dist/remote-web/manifest.webmanifest +13 -0
- package/dist/remote-web/sw.js +12 -0
- package/dist/serve.js +9 -3
- package/dist/shared-execution-slots.js +17 -9
- package/dist/slog.js +11 -0
- package/dist/workspace.js +18 -17
- package/package.json +9 -10
package/dist/workspace.js
CHANGED
|
@@ -154,43 +154,44 @@ export async function rotateAgentSession(sessionDir) {
|
|
|
154
154
|
function memorySeed(handle, description) {
|
|
155
155
|
const role = description?.trim()
|
|
156
156
|
? description.trim()
|
|
157
|
-
: "
|
|
157
|
+
: "(填写你的身份与职责,保持在几行以内。)";
|
|
158
158
|
return `# ${handle}
|
|
159
159
|
|
|
160
160
|
## Role
|
|
161
161
|
${role}
|
|
162
162
|
|
|
163
163
|
## Core Goals
|
|
164
|
-
|
|
164
|
+
(填写长期核心目标和主要优化方向。)
|
|
165
165
|
|
|
166
166
|
## Knowledge Index
|
|
167
|
-
<!--
|
|
168
|
-
<!--
|
|
169
|
-
### [
|
|
167
|
+
<!-- 长期记忆明细索引。每份可复用记忆对应一个结构化条目。 -->
|
|
168
|
+
<!-- 使用以下格式:
|
|
169
|
+
### [主题名称]
|
|
170
170
|
- file: notes/<topic>.md
|
|
171
171
|
- type: procedural | semantic | episodic | preference
|
|
172
172
|
- scope: agent_global
|
|
173
|
-
- summary:
|
|
174
|
-
- triggers:
|
|
173
|
+
- summary: 这份记忆包含什么,以及何时需要使用
|
|
174
|
+
- triggers: 触发这份记忆的主题、命令或场景
|
|
175
175
|
- priority: high | medium | low
|
|
176
176
|
- updated: YYYY-MM-DD
|
|
177
177
|
-->
|
|
178
|
-
<!--
|
|
179
|
-
###
|
|
178
|
+
<!-- 示例:
|
|
179
|
+
### 测试实践
|
|
180
180
|
- file: notes/testing.md
|
|
181
181
|
- type: procedural
|
|
182
182
|
- scope: agent_global
|
|
183
|
-
- summary:
|
|
184
|
-
- triggers:
|
|
183
|
+
- summary: 记录测试策略、回归范围和缺陷预防方法,开发或修复功能时使用
|
|
184
|
+
- triggers: 测试、回归、质量、缺陷、自动化
|
|
185
185
|
- priority: high
|
|
186
186
|
- updated: YYYY-MM-DD
|
|
187
187
|
-->
|
|
188
188
|
|
|
189
|
-
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
193
|
-
-
|
|
194
|
-
-
|
|
189
|
+
维护规则:
|
|
190
|
+
- 每次启动时,系统都会优先读取这份文件,包括上下文压缩后的恢复过程。
|
|
191
|
+
- 这里只保留长期身份、核心目标和 Knowledge Index;当前任务进度写入 $CREW_TASK_LOG。
|
|
192
|
+
- 详细记忆按功能主题保存到 notes/<topic>.md,保持本文件只包含长期身份和精简索引。
|
|
193
|
+
- 每条索引必须保留 file、type、scope、summary、triggers、priority、updated 这些英文协议字段名。
|
|
194
|
+
- 记忆内容语言必须跟随当前系统提示词的指令语言;标题、summary、triggers 和 notes 正文使用该语言,代码、命令、文件路径、专有名词和协议字段值可按需保留英文。
|
|
195
|
+
- notes/lessons.md 只用于暂时无法分类的内容,不要作为所有新经验的默认保存位置。
|
|
195
196
|
`;
|
|
196
197
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nowcrew/daemon",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "crew daemon — 运行在用户机器:拉起/管理 agent 进程,注入 crew CLI,归一化 runtime 事件",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,16 +16,9 @@
|
|
|
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
|
-
},
|
|
26
19
|
"dependencies": {
|
|
27
20
|
"@agentclientprotocol/sdk": "1.2.1",
|
|
28
|
-
"@nowcrew/cli": "^0.4.
|
|
21
|
+
"@nowcrew/cli": "^0.4.13",
|
|
29
22
|
"cross-spawn": "^7.0.6",
|
|
30
23
|
"ws": "^8",
|
|
31
24
|
"yaml": "^2.8.1",
|
|
@@ -41,5 +34,11 @@
|
|
|
41
34
|
"tsx": "^4.19.0",
|
|
42
35
|
"typescript": "^5.6.0",
|
|
43
36
|
"vitest": "^2.1.0"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"daemon": "pnpm --filter @nowcrew/cli build && tsx src/main.ts",
|
|
40
|
+
"build": "tsc -p tsconfig.json",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"typecheck": "tsc --noEmit"
|
|
44
43
|
}
|
|
45
|
-
}
|
|
44
|
+
}
|