@nowcrew/daemon 0.6.12 → 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.
Files changed (38) hide show
  1. package/README.md +6 -3
  2. package/dist/config.js +4 -2
  3. package/dist/execution-runner.js +4 -1
  4. package/dist/host-execution-coordinator.js +3 -3
  5. package/dist/memory-prune-diagnostics.js +6 -0
  6. package/dist/remote/claude-bridge.js +558 -0
  7. package/dist/remote/claude-channel.js +164 -0
  8. package/dist/remote/codex-client.js +451 -0
  9. package/dist/remote/codex-runtime.js +77 -0
  10. package/dist/remote/config.js +135 -0
  11. package/dist/remote/gateway.js +879 -0
  12. package/dist/remote/identity.js +39 -0
  13. package/dist/remote/owner.js +77 -0
  14. package/dist/remote/protocol.js +211 -0
  15. package/dist/remote/remote-cli.js +254 -0
  16. package/dist/remote/runtime-probe.js +182 -0
  17. package/dist/remote/session-discovery.js +249 -0
  18. package/dist/remote/wrapper.js +40 -0
  19. package/dist/remote-web/assets/index-B_6VM_tw.js +94 -0
  20. package/dist/remote-web/assets/index-L6EiQbJn.css +1 -0
  21. package/dist/remote-web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  22. package/dist/remote-web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  23. package/dist/remote-web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  24. package/dist/remote-web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  25. package/dist/remote-web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  26. package/dist/remote-web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  27. package/dist/remote-web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  28. package/dist/remote-web/icons/nowwork-192.png +0 -0
  29. package/dist/remote-web/icons/nowwork-512.png +0 -0
  30. package/dist/remote-web/icons/nowwork.svg +7 -0
  31. package/dist/remote-web/index.html +20 -0
  32. package/dist/remote-web/manifest.webmanifest +13 -0
  33. package/dist/remote-web/sw.js +12 -0
  34. package/dist/serve.js +9 -3
  35. package/dist/shared-execution-slots.js +17 -9
  36. package/dist/slog.js +11 -0
  37. package/dist/workspace.js +18 -17
  38. package/package.json +2 -2
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
- : "(Who you are and what you're responsible for. Keep it to a few lines.)";
157
+ : "(填写你的身份与职责,保持在几行以内。)";
158
158
  return `# ${handle}
159
159
 
160
160
  ## Role
161
161
  ${role}
162
162
 
163
163
  ## Core Goals
164
- (What you optimize for.)
164
+ (填写长期核心目标和主要优化方向。)
165
165
 
166
166
  ## Knowledge Index
167
- <!-- The map to your detailed notes. Keep one structured entry per durable note. -->
168
- <!-- Use this shape:
169
- ### [Topic label]
167
+ <!-- 长期记忆明细索引。每份可复用记忆对应一个结构化条目。 -->
168
+ <!-- 使用以下格式:
169
+ ### [主题名称]
170
170
  - file: notes/<topic>.md
171
171
  - type: procedural | semantic | episodic | preference
172
172
  - scope: agent_global
173
- - summary: what this note contains and when it matters
174
- - triggers: comma-separated topics, commands, or scenarios
173
+ - summary: 这份记忆包含什么,以及何时需要使用
174
+ - triggers: 触发这份记忆的主题、命令或场景
175
175
  - priority: high | medium | low
176
176
  - updated: YYYY-MM-DD
177
177
  -->
178
- <!-- Example:
179
- ### Testing practices
178
+ <!-- 示例:
179
+ ### 测试实践
180
180
  - file: notes/testing.md
181
181
  - type: procedural
182
182
  - scope: agent_global
183
- - summary: Test strategy, regression coverage, and defect-prevention practices.
184
- - triggers: test, testing, regression, quality, bug, automation
183
+ - summary: 记录测试策略、回归范围和缺陷预防方法,开发或修复功能时使用
184
+ - triggers: 测试、回归、质量、缺陷、自动化
185
185
  - priority: high
186
186
  - updated: YYYY-MM-DD
187
187
  -->
188
188
 
189
- How to maintain this file:
190
- - This is the FIRST file read on every startup (including after context compaction).
191
- - Keep durable identity, goals, and the Knowledge Index here; current task progress belongs in $CREW_TASK_LOG.
192
- - Put details in functional notes/<topic>.md files; keep this file focused on durable identity and the index.
193
- - Every note index entry must include file, type, scope, summary, triggers, priority, and updated.
194
- - Keep notes/lessons.md as an uncategorized compatibility area, not the default destination for all lessons.
189
+ 维护规则:
190
+ - 每次启动时,系统都会优先读取这份文件,包括上下文压缩后的恢复过程。
191
+ - 这里只保留长期身份、核心目标和 Knowledge Index;当前任务进度写入 $CREW_TASK_LOG
192
+ - 详细记忆按功能主题保存到 notes/<topic>.md,保持本文件只包含长期身份和精简索引。
193
+ - 每条索引必须保留 filetypescopesummarytriggerspriority、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.12",
3
+ "version": "0.6.13",
4
4
  "type": "module",
5
5
  "description": "crew daemon — 运行在用户机器:拉起/管理 agent 进程,注入 crew CLI,归一化 runtime 事件",
6
6
  "license": "Apache-2.0",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@agentclientprotocol/sdk": "1.2.1",
21
- "@nowcrew/cli": "^0.4.14",
21
+ "@nowcrew/cli": "^0.4.13",
22
22
  "cross-spawn": "^7.0.6",
23
23
  "ws": "^8",
24
24
  "yaml": "^2.8.1",