@yeaft/webchat-agent 0.1.80 → 0.1.81

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/crew/routing.js CHANGED
@@ -161,7 +161,7 @@ export async function dispatchToRole(session, roleName, content, fromSource, tas
161
161
  if (effectiveTaskId && typeof content === 'string') {
162
162
  const taskContent = await readTaskFile(session, effectiveTaskId);
163
163
  if (taskContent) {
164
- content = `${content}\n\n---\n<task-context file="context/features/${effectiveTaskId}.md">\n${taskContent}\n</task-context>`;
164
+ content = `${content}\n\n---\n<task-context file=".crew/context/features/${effectiveTaskId}.md">\n${taskContent}\n</task-context>`;
165
165
  }
166
166
  }
167
167
 
@@ -169,7 +169,7 @@ export async function dispatchToRole(session, roleName, content, fromSource, tas
169
169
  if (typeof content === 'string') {
170
170
  const kanbanContent = await readKanban(session);
171
171
  if (kanbanContent) {
172
- content = `${content}\n\n---\n<kanban file="context/kanban.md">\n${kanbanContent}\n</kanban>`;
172
+ content = `${content}\n\n---\n<kanban file=".crew/context/kanban.md">\n${kanbanContent}\n</kanban>`;
173
173
  }
174
174
  }
175
175
 
@@ -106,7 +106,7 @@ export function parseCompletedTasks(text) {
106
106
  }
107
107
 
108
108
  /**
109
- * 更新 feature 索引文件 context/features/index.md
109
+ * 更新 feature 索引文件 .crew/context/features/index.md
110
110
  */
111
111
  export async function updateFeatureIndex(session) {
112
112
  const featuresDir = join(session.sharedDir, 'context', 'features');
@@ -148,7 +148,7 @@ export async function updateFeatureIndex(session) {
148
148
  }
149
149
 
150
150
  /**
151
- * 追加完成汇总到 context/changelog.md
151
+ * 追加完成汇总到 .crew/context/changelog.md
152
152
  */
153
153
  export async function appendChangelog(session, taskId, taskTitle) {
154
154
  const contextDir = join(session.sharedDir, 'context');
@@ -218,7 +218,7 @@ export async function saveRoleWorkSummary(session, roleName, accumulatedText) {
218
218
  let _kanbanWriteLock = Promise.resolve();
219
219
 
220
220
  /**
221
- * 更新工作看板 context/kanban.md
221
+ * 更新工作看板 .crew/context/kanban.md
222
222
  *
223
223
  * @param {object} session
224
224
  * @param {object} [opts]
package/crew-i18n.js CHANGED
@@ -87,15 +87,15 @@ ${isDevTeam ? '3' : '2'}. **任务完成** - 所有任务已完成,给出完
87
87
  ---END_TASKS---`,
88
88
 
89
89
  featureRecordTitle: '# Feature 工作记录',
90
- featureRecordContent: `系统会自动管理 \`context/features/{task-id}.md\` 工作记录文件:
90
+ featureRecordContent: `系统会自动管理 \`.crew/context/features/{task-id}.md\` 工作记录文件:
91
91
  - PM 分配任务时自动创建文件(包含 task-id、标题、需求描述)
92
92
  - 每次 ROUTE 传递时自动追加工作记录(角色名、时间、summary)
93
93
  - 你收到的消息中会包含 <task-context> 标签,里面是该任务的完整工作记录
94
94
 
95
95
  系统还维护以下文件(自动更新,无需手动管理):
96
- - \`context/features/index.md\`:所有 feature 的索引(进行中/已完成分类),快速查看项目状态
97
- - \`context/changelog.md\`:已完成任务的变更记录,每个任务完成时自动追加摘要
98
- - \`context/kanban.md\`:工作看板,记录每个 feature 的负责人、当前状态和最新进展
96
+ - \`.crew/context/features/index.md\`:所有 feature 的索引(进行中/已完成分类),快速查看项目状态
97
+ - \`.crew/context/changelog.md\`:已完成任务的变更记录,每个任务完成时自动追加摘要
98
+ - \`.crew/context/kanban.md\`:工作看板,记录每个 feature 的负责人、当前状态和最新进展
99
99
  你收到的消息中还会包含 <kanban> 标签,里面是工作看板的实时快照。
100
100
  你不需要手动创建或更新这些文件,专注于你的本职工作即可。`,
101
101
 
@@ -172,8 +172,8 @@ UI/交互方案不确定时找设计师确认。需求不明确时找决策者 "
172
172
  teamMembersTitle: '# 团队成员',
173
173
  noMembers: '_暂无成员_',
174
174
  workConventions: '# 工作约定',
175
- workConventionsContent: `- 文档产出写入 context/ 目录
176
- - 重要决策记录在 context/decisions.md
175
+ workConventionsContent: `- 文档产出写入 .crew/context/ 目录
176
+ - 重要决策记录在 .crew/context/decisions.md
177
177
  - 代码修改使用项目代码路径的绝对路径`,
178
178
  stuckRules: '# 卡住上报规则',
179
179
  stuckRulesContent: `当你遇到以下情况时,不要自己空转或反复重试,立即 ROUTE 给 PM(pm)请求协调:
@@ -192,11 +192,11 @@ UI/交互方案不确定时找设计师确认。需求不明确时找决策者 "
192
192
  - PM 不做 cherry-pick,只负责打 tag
193
193
  - 每次新任务/新 feature 必须基于最新的 main 分支创建新的 worktree,确保在最新代码上开发`,
194
194
  featureRecordShared: `# Feature 工作记录
195
- 系统自动管理 \`context/features/{task-id}.md\` 工作记录文件:
195
+ 系统自动管理 \`.crew/context/features/{task-id}.md\` 工作记录文件:
196
196
  - PM 通过 ROUTE 分配任务(带 task + taskTitle 字段)时自动创建
197
197
  - 每次角色 ROUTE 传递时自动追加工作记录
198
198
  - 角色收到消息时自动注入对应 task 文件内容作为上下文
199
- - \`context/kanban.md\`:工作看板,记录所有任务的负责人、状态和最新进展
199
+ - \`.crew/context/kanban.md\`:工作看板,记录所有任务的负责人、状态和最新进展
200
200
  角色不需要手动创建或更新这些文件。`,
201
201
  sharedMemoryTitle: '# 共享记忆',
202
202
  sharedMemoryDefault: '_团队共同维护,记录重要的共识、决策和信息。_',
@@ -329,15 +329,15 @@ Important: Do not loop endlessly between roles. When work is substantively compl
329
329
  ---END_TASKS---`,
330
330
 
331
331
  featureRecordTitle: '# Feature Work Records',
332
- featureRecordContent: `The system automatically manages \`context/features/{task-id}.md\` work record files:
332
+ featureRecordContent: `The system automatically manages \`.crew/context/features/{task-id}.md\` work record files:
333
333
  - Automatically created when PM assigns tasks (includes task-id, title, requirement description)
334
334
  - Work records are appended automatically on each ROUTE handoff (role name, time, summary)
335
335
  - Your received messages will include <task-context> tags containing the complete work record for that task
336
336
 
337
337
  The system also maintains these files (auto-updated, no manual management needed):
338
- - \`context/features/index.md\`: Index of all features (categorized as in-progress/completed) for quick project status overview
339
- - \`context/changelog.md\`: Change log of completed tasks, with summary appended when each task completes
340
- - \`context/kanban.md\`: Work kanban board recording each feature's assignee, current status, and latest progress
338
+ - \`.crew/context/features/index.md\`: Index of all features (categorized as in-progress/completed) for quick project status overview
339
+ - \`.crew/context/changelog.md\`: Change log of completed tasks, with summary appended when each task completes
340
+ - \`.crew/context/kanban.md\`: Work kanban board recording each feature's assignee, current status, and latest progress
341
341
  Your received messages will also include <kanban> tags with a real-time snapshot of the work kanban.
342
342
  You don't need to manually create or update these files — focus on your core work.`,
343
343
 
@@ -414,8 +414,8 @@ After development is complete, send two ROUTE blocks simultaneously to ${revName
414
414
  teamMembersTitle: '# Team Members',
415
415
  noMembers: '_No members yet_',
416
416
  workConventions: '# Work Conventions',
417
- workConventionsContent: `- Write documentation output to context/ directory
418
- - Record important decisions in context/decisions.md
417
+ workConventionsContent: `- Write documentation output to .crew/context/ directory
418
+ - Record important decisions in .crew/context/decisions.md
419
419
  - Use the project code path (absolute path) for code changes`,
420
420
  stuckRules: '# Escalation Rules',
421
421
  stuckRulesContent: `When you encounter the following situations, do not spin or retry repeatedly — immediately ROUTE to PM (pm) for coordination:
@@ -434,11 +434,11 @@ When escalating, explain: what task you're working on, where you're stuck, and w
434
434
  - PM doesn't cherry-pick, only manages tags
435
435
  - Each new task/feature must create a new worktree based on the latest main branch to ensure development on latest code`,
436
436
  featureRecordShared: `# Feature Work Records
437
- The system automatically manages \`context/features/{task-id}.md\` work record files:
437
+ The system automatically manages \`.crew/context/features/{task-id}.md\` work record files:
438
438
  - Automatically created when PM assigns tasks via ROUTE (with task + taskTitle fields)
439
439
  - Work records are appended on each role ROUTE handoff
440
440
  - Task file content is auto-injected as context when a role receives a message
441
- - \`context/kanban.md\`: Work kanban board recording all tasks' assignees, statuses, and latest progress
441
+ - \`.crew/context/kanban.md\`: Work kanban board recording all tasks' assignees, statuses, and latest progress
442
442
  Roles don't need to manually create or update these files.`,
443
443
  sharedMemoryTitle: '# Shared Memory',
444
444
  sharedMemoryDefault: '_Team-maintained shared knowledge, decisions, and information._',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.1.80",
3
+ "version": "0.1.81",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",