@linxiraos/pi-messenger 1.1.1 → 1.3.0

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 (66) hide show
  1. package/CHANGELOG.md +741 -676
  2. package/LICENSE +45 -0
  3. package/README.md +424 -424
  4. package/THIRD-PARTY-NOTICES.txt +22951 -0
  5. package/config-overlay.ts +175 -171
  6. package/config.ts +221 -209
  7. package/crew/agents/crew-plan-sync.md +66 -64
  8. package/crew/agents/crew-planner.md +173 -172
  9. package/crew/agents/crew-reviewer.md +58 -58
  10. package/crew/agents/crew-worker.md +130 -129
  11. package/crew/agents.ts +507 -434
  12. package/crew/handlers/coordination.ts +350 -332
  13. package/crew/handlers/plan.ts +988 -906
  14. package/crew/handlers/review.ts +354 -333
  15. package/crew/handlers/revise.ts +400 -376
  16. package/crew/handlers/status.ts +303 -295
  17. package/crew/handlers/sync.ts +237 -233
  18. package/crew/handlers/task.ts +820 -792
  19. package/crew/handlers/team.ts +294 -235
  20. package/crew/handlers/work.ts +467 -425
  21. package/crew/id-allocator.ts +30 -30
  22. package/crew/index.ts +297 -257
  23. package/crew/live-progress.ts +58 -58
  24. package/crew/lobby.ts +504 -473
  25. package/crew/prompt.ts +262 -252
  26. package/crew/registry.ts +114 -114
  27. package/crew/spawn.ts +135 -111
  28. package/crew/state-autonomous.ts +163 -164
  29. package/crew/state-planning.ts +264 -263
  30. package/crew/state.ts +20 -20
  31. package/crew/store.ts +646 -642
  32. package/crew/task-actions.ts +162 -131
  33. package/crew/team/store.ts +572 -479
  34. package/crew/team/subagent-roles.ts +105 -87
  35. package/crew/team/types.ts +50 -50
  36. package/crew/types.ts +194 -194
  37. package/crew/utils/artifacts.ts +57 -62
  38. package/crew/utils/config.ts +158 -156
  39. package/crew/utils/discover.ts +221 -219
  40. package/crew/utils/install.ts +94 -85
  41. package/crew/utils/migrations.ts +126 -0
  42. package/crew/utils/progress.ts +191 -187
  43. package/crew/utils/result.ts +16 -16
  44. package/crew/utils/risk-labels.ts +5 -7
  45. package/crew/utils/task-format.ts +14 -14
  46. package/crew/utils/team-roles.ts +44 -28
  47. package/crew/utils/truncate.ts +76 -79
  48. package/crew/utils/verdict.ts +55 -55
  49. package/editor-binary.ts +150 -0
  50. package/editor-command.ts +107 -0
  51. package/editor-target.ts +40 -0
  52. package/feed.ts +321 -268
  53. package/handlers.ts +1041 -1107
  54. package/index.ts +1314 -1206
  55. package/install.mjs +187 -189
  56. package/lib.ts +587 -467
  57. package/overlay-actions.ts +519 -511
  58. package/overlay-coordinator.ts +150 -150
  59. package/overlay-render.ts +770 -676
  60. package/overlay.ts +872 -830
  61. package/package.json +64 -60
  62. package/paths.ts +60 -0
  63. package/skills/pi-messenger-crew/SKILL.md +375 -347
  64. package/store.ts +1147 -1139
  65. package/teamagent-command.ts +321 -0
  66. package/vitest.config.ts +10 -10
package/config.ts CHANGED
@@ -1,209 +1,221 @@
1
- /**
2
- * Pi Messenger - Configuration
3
- *
4
- * Priority (highest to lowest):
5
- * 1. Project: .pi/pi-messenger.json
6
- * 2. Extension-specific: ~/.pi/agent/pi-messenger.json
7
- * 3. Main settings: ~/.pi/agent/settings.json → "messenger" key
8
- * 4. Defaults
9
- */
10
-
11
- import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs";
12
- import { homedir } from "node:os";
13
- import { join } from "node:path";
14
-
15
- export interface MessengerConfig {
16
- autoRegister: boolean;
17
- autoRegisterPaths: string[];
18
- scopeToFolder: boolean;
19
- contextMode: "full" | "minimal" | "none";
20
- registrationContext: boolean;
21
- replyHint: boolean;
22
- senderDetailsOnFirstContact: boolean;
23
- nameTheme: string;
24
- nameWords?: { adjectives: string[]; nouns: string[] };
25
- feedRetention: number;
26
- stuckThreshold: number;
27
- stuckNotify: boolean;
28
- autoStatus: boolean;
29
- autoOverlay: boolean;
30
- autoOverlayPlanning: boolean;
31
- crewEventsInFeed: boolean;
32
- }
33
-
34
- const DEFAULT_CONFIG: MessengerConfig = {
35
- autoRegister: false,
36
- autoRegisterPaths: [],
37
- scopeToFolder: false,
38
- contextMode: "full",
39
- registrationContext: true,
40
- replyHint: true,
41
- senderDetailsOnFirstContact: true,
42
- nameTheme: "default",
43
- feedRetention: 50,
44
- stuckThreshold: 900,
45
- stuckNotify: true,
46
- autoStatus: true,
47
- autoOverlay: true,
48
- autoOverlayPlanning: true,
49
- crewEventsInFeed: true,
50
- };
51
-
52
- function readJsonFile(path: string): Record<string, unknown> | null {
53
- if (!existsSync(path)) return null;
54
- try {
55
- return JSON.parse(readFileSync(path, "utf-8"));
56
- } catch {
57
- return null;
58
- }
59
- }
60
-
61
- function expandHome(p: string): string {
62
- if (p.startsWith("~/")) {
63
- return join(homedir(), p.slice(2));
64
- }
65
- return p;
66
- }
67
-
68
- export function matchesAutoRegisterPath(cwd: string, paths: string[]): boolean {
69
- const normalizedCwd = cwd.replace(/\/+$/, ""); // Remove trailing slashes
70
-
71
- for (const pattern of paths) {
72
- const expanded = expandHome(pattern).replace(/\/+$/, "");
73
-
74
- // Simple glob support: trailing /* matches any subdirectory
75
- if (expanded.endsWith("/*")) {
76
- const base = expanded.slice(0, -2);
77
- if (normalizedCwd === base || normalizedCwd.startsWith(base + "/")) {
78
- return true;
79
- }
80
- } else if (expanded.endsWith("*")) {
81
- // Prefix match: /path/prefix* matches /path/prefix-anything
82
- const prefix = expanded.slice(0, -1);
83
- if (normalizedCwd.startsWith(prefix)) {
84
- return true;
85
- }
86
- } else {
87
- // Exact match
88
- if (normalizedCwd === expanded) {
89
- return true;
90
- }
91
- }
92
- }
93
-
94
- return false;
95
- }
96
-
97
- export function saveAutoRegisterPaths(paths: string[]): void {
98
- const configPath = join(homedir(), ".pi", "agent", "pi-messenger.json");
99
- let existing: Record<string, unknown> = {};
100
-
101
- if (existsSync(configPath)) {
102
- try {
103
- existing = JSON.parse(readFileSync(configPath, "utf-8"));
104
- } catch {
105
- // Start fresh if malformed
106
- }
107
- }
108
-
109
- existing.autoRegisterPaths = paths;
110
-
111
- const dir = join(homedir(), ".pi", "agent");
112
- mkdirSync(dir, { recursive: true });
113
- writeFileSync(configPath, JSON.stringify(existing, null, 2));
114
- }
115
-
116
- export function getAutoRegisterPaths(): string[] {
117
- const configPath = join(homedir(), ".pi", "agent", "pi-messenger.json");
118
- if (!existsSync(configPath)) return [];
119
-
120
- try {
121
- const config = JSON.parse(readFileSync(configPath, "utf-8"));
122
- return Array.isArray(config.autoRegisterPaths) ? config.autoRegisterPaths : [];
123
- } catch {
124
- return [];
125
- }
126
- }
127
-
128
- function buildConfig(projectConfig?: Partial<MessengerConfig> | null): MessengerConfig {
129
- const extensionGlobalPath = join(homedir(), ".pi", "agent", "pi-messenger.json");
130
- const mainSettingsPath = join(homedir(), ".pi", "agent", "settings.json");
131
-
132
- // Load from main settings.json (lowest priority of the three sources)
133
- let settingsConfig: Partial<MessengerConfig> = {};
134
- const mainSettings = readJsonFile(mainSettingsPath);
135
- if (mainSettings && typeof mainSettings.messenger === "object" && mainSettings.messenger !== null) {
136
- settingsConfig = mainSettings.messenger as Partial<MessengerConfig>;
137
- }
138
-
139
- // Load extension-specific global config
140
- const extensionConfig = readJsonFile(extensionGlobalPath) as Partial<MessengerConfig> | null;
141
-
142
- const merged = {
143
- ...DEFAULT_CONFIG,
144
- ...settingsConfig,
145
- ...(extensionConfig ?? {}),
146
- ...(projectConfig ?? {})
147
- };
148
-
149
- const nameWords = (merged as Record<string, unknown>).nameWords as { adjectives: string[]; nouns: string[] } | undefined;
150
-
151
- const sharedFields = {
152
- nameTheme: typeof merged.nameTheme === "string" ? merged.nameTheme : DEFAULT_CONFIG.nameTheme,
153
- nameWords: nameWords && Array.isArray(nameWords.adjectives) && Array.isArray(nameWords.nouns) ? nameWords : undefined,
154
- feedRetention: typeof merged.feedRetention === "number" ? merged.feedRetention : DEFAULT_CONFIG.feedRetention,
155
- stuckThreshold: typeof merged.stuckThreshold === "number" ? merged.stuckThreshold : DEFAULT_CONFIG.stuckThreshold,
156
- stuckNotify: merged.stuckNotify !== false,
157
- autoStatus: merged.autoStatus !== false,
158
- autoOverlay: merged.autoOverlay !== false,
159
- autoOverlayPlanning: merged.autoOverlayPlanning !== false,
160
- crewEventsInFeed: merged.crewEventsInFeed !== false,
161
- };
162
-
163
- if (merged.contextMode === "none") {
164
- return {
165
- autoRegister: merged.autoRegister === true,
166
- autoRegisterPaths: Array.isArray(merged.autoRegisterPaths) ? merged.autoRegisterPaths : [],
167
- scopeToFolder: merged.scopeToFolder === true,
168
- contextMode: "none",
169
- registrationContext: false,
170
- replyHint: false,
171
- senderDetailsOnFirstContact: false,
172
- ...sharedFields,
173
- };
174
- }
175
-
176
- if (merged.contextMode === "minimal") {
177
- return {
178
- autoRegister: merged.autoRegister === true,
179
- autoRegisterPaths: Array.isArray(merged.autoRegisterPaths) ? merged.autoRegisterPaths : [],
180
- scopeToFolder: merged.scopeToFolder === true,
181
- contextMode: "minimal",
182
- registrationContext: false,
183
- replyHint: true,
184
- senderDetailsOnFirstContact: false,
185
- ...sharedFields,
186
- };
187
- }
188
-
189
- return {
190
- autoRegister: merged.autoRegister === true,
191
- autoRegisterPaths: Array.isArray(merged.autoRegisterPaths) ? merged.autoRegisterPaths : [],
192
- scopeToFolder: merged.scopeToFolder === true,
193
- contextMode: "full",
194
- registrationContext: merged.registrationContext !== false,
195
- replyHint: merged.replyHint !== false,
196
- senderDetailsOnFirstContact: merged.senderDetailsOnFirstContact !== false,
197
- ...sharedFields,
198
- };
199
- }
200
-
201
- export function loadGlobalConfig(): MessengerConfig {
202
- return buildConfig();
203
- }
204
-
205
- export function loadConfig(cwd: string): MessengerConfig {
206
- const projectPath = join(cwd, ".pi", "pi-messenger.json");
207
- const projectConfig = readJsonFile(projectPath) as Partial<MessengerConfig> | null;
208
- return buildConfig(projectConfig);
209
- }
1
+ /**
2
+ * Pi Messenger - Configuration
3
+ *
4
+ * Priority (highest to lowest):
5
+ * 1. Project: <project>/.zeta/pi-messenger.json
6
+ * 2. Extension-specific: ~/.zeta/agent/pi-messenger.json
7
+ * 3. Defaults
8
+ *
9
+ * (The historical third source, the upstream pi "messenger" key in
10
+ * ~/.pi/agent/settings.json, belonged to the pi CLI's own settings file and
11
+ * has no zeta equivalent; it is no longer read.)
12
+ */
13
+
14
+ import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs";
15
+ import { homedir } from "node:os";
16
+ import { dirname, join } from "node:path";
17
+ import { getGlobalConfigPath, getProjectConfigPath } from "./paths.ts";
18
+ import { ensureProjectStateMigrated } from "./crew/utils/migrations.ts";
19
+
20
+ export interface MessengerConfig {
21
+ autoRegister: boolean;
22
+ autoRegisterPaths: string[];
23
+ scopeToFolder: boolean;
24
+ contextMode: "full" | "minimal" | "none";
25
+ registrationContext: boolean;
26
+ replyHint: boolean;
27
+ senderDetailsOnFirstContact: boolean;
28
+ nameTheme: string;
29
+ nameWords?: { adjectives: string[]; nouns: string[] };
30
+ feedRetention: number;
31
+ stuckThreshold: number;
32
+ stuckNotify: boolean;
33
+ autoStatus: boolean;
34
+ autoOverlay: boolean;
35
+ autoOverlayPlanning: boolean;
36
+ crewEventsInFeed: boolean;
37
+ }
38
+
39
+ const DEFAULT_CONFIG: MessengerConfig = {
40
+ autoRegister: false,
41
+ autoRegisterPaths: [],
42
+ scopeToFolder: false,
43
+ contextMode: "full",
44
+ registrationContext: true,
45
+ replyHint: true,
46
+ senderDetailsOnFirstContact: true,
47
+ nameTheme: "default",
48
+ feedRetention: 50,
49
+ stuckThreshold: 900,
50
+ stuckNotify: true,
51
+ autoStatus: true,
52
+ autoOverlay: true,
53
+ autoOverlayPlanning: true,
54
+ crewEventsInFeed: true,
55
+ };
56
+
57
+ function readJsonFile(path: string): Record<string, unknown> | null {
58
+ if (!existsSync(path)) return null;
59
+ try {
60
+ return JSON.parse(readFileSync(path, "utf-8"));
61
+ } catch {
62
+ return null;
63
+ }
64
+ }
65
+
66
+ function expandHome(p: string): string {
67
+ if (p.startsWith("~/")) {
68
+ return join(homedir(), p.slice(2));
69
+ }
70
+ return p;
71
+ }
72
+
73
+ export function matchesAutoRegisterPath(cwd: string, paths: string[]): boolean {
74
+ const normalizedCwd = cwd.replace(/\/+$/, ""); // Remove trailing slashes
75
+
76
+ for (const pattern of paths) {
77
+ const expanded = expandHome(pattern).replace(/\/+$/, "");
78
+
79
+ // Simple glob support: trailing /* matches any subdirectory
80
+ if (expanded.endsWith("/*")) {
81
+ const base = expanded.slice(0, -2);
82
+ if (normalizedCwd === base || normalizedCwd.startsWith(base + "/")) {
83
+ return true;
84
+ }
85
+ } else if (expanded.endsWith("*")) {
86
+ // Prefix match: /path/prefix* matches /path/prefix-anything
87
+ const prefix = expanded.slice(0, -1);
88
+ if (normalizedCwd.startsWith(prefix)) {
89
+ return true;
90
+ }
91
+ } else {
92
+ // Exact match
93
+ if (normalizedCwd === expanded) {
94
+ return true;
95
+ }
96
+ }
97
+ }
98
+
99
+ return false;
100
+ }
101
+
102
+ export function saveAutoRegisterPaths(paths: string[]): void {
103
+ const configPath = getGlobalConfigPath();
104
+ let existing: Record<string, unknown> = {};
105
+
106
+ if (existsSync(configPath)) {
107
+ try {
108
+ existing = JSON.parse(readFileSync(configPath, "utf-8"));
109
+ } catch {
110
+ // Start fresh if malformed
111
+ }
112
+ }
113
+
114
+ existing.autoRegisterPaths = paths;
115
+
116
+ const dir = dirname(configPath);
117
+ mkdirSync(dir, { recursive: true });
118
+ writeFileSync(configPath, JSON.stringify(existing, null, 2));
119
+ }
120
+
121
+ export function getAutoRegisterPaths(): string[] {
122
+ const configPath = getGlobalConfigPath();
123
+ if (!existsSync(configPath)) return [];
124
+
125
+ try {
126
+ const config = JSON.parse(readFileSync(configPath, "utf-8"));
127
+ return Array.isArray(config.autoRegisterPaths) ? config.autoRegisterPaths : [];
128
+ } catch {
129
+ return [];
130
+ }
131
+ }
132
+
133
+ function buildConfig(projectConfig?: Partial<MessengerConfig> | null): MessengerConfig {
134
+ const extensionGlobalPath = getGlobalConfigPath();
135
+
136
+ // Load extension-specific global config
137
+ const extensionConfig = readJsonFile(extensionGlobalPath) as Partial<MessengerConfig> | null;
138
+
139
+ const merged = {
140
+ ...DEFAULT_CONFIG,
141
+ ...extensionConfig,
142
+ ...projectConfig,
143
+ };
144
+
145
+ const nameWords = (merged as Record<string, unknown>).nameWords as
146
+ | { adjectives: string[]; nouns: string[] }
147
+ | undefined;
148
+
149
+ const sharedFields = {
150
+ nameTheme: typeof merged.nameTheme === "string" ? merged.nameTheme : DEFAULT_CONFIG.nameTheme,
151
+ nameWords:
152
+ nameWords && Array.isArray(nameWords.adjectives) && Array.isArray(nameWords.nouns) ? nameWords : undefined,
153
+ feedRetention: typeof merged.feedRetention === "number" ? merged.feedRetention : DEFAULT_CONFIG.feedRetention,
154
+ stuckThreshold: typeof merged.stuckThreshold === "number" ? merged.stuckThreshold : DEFAULT_CONFIG.stuckThreshold,
155
+ stuckNotify: merged.stuckNotify !== false,
156
+ autoStatus: merged.autoStatus !== false,
157
+ autoOverlay: merged.autoOverlay !== false,
158
+ autoOverlayPlanning: merged.autoOverlayPlanning !== false,
159
+ crewEventsInFeed: merged.crewEventsInFeed !== false,
160
+ };
161
+
162
+ if (merged.contextMode === "none") {
163
+ return {
164
+ autoRegister: merged.autoRegister === true,
165
+ autoRegisterPaths: Array.isArray(merged.autoRegisterPaths) ? merged.autoRegisterPaths : [],
166
+ scopeToFolder: merged.scopeToFolder === true,
167
+ contextMode: "none",
168
+ registrationContext: false,
169
+ replyHint: false,
170
+ senderDetailsOnFirstContact: false,
171
+ ...sharedFields,
172
+ };
173
+ }
174
+
175
+ if (merged.contextMode === "minimal") {
176
+ return {
177
+ autoRegister: merged.autoRegister === true,
178
+ autoRegisterPaths: Array.isArray(merged.autoRegisterPaths) ? merged.autoRegisterPaths : [],
179
+ scopeToFolder: merged.scopeToFolder === true,
180
+ contextMode: "minimal",
181
+ registrationContext: false,
182
+ replyHint: true,
183
+ senderDetailsOnFirstContact: false,
184
+ ...sharedFields,
185
+ };
186
+ }
187
+
188
+ return {
189
+ autoRegister: merged.autoRegister === true,
190
+ autoRegisterPaths: Array.isArray(merged.autoRegisterPaths) ? merged.autoRegisterPaths : [],
191
+ scopeToFolder: merged.scopeToFolder === true,
192
+ contextMode: "full",
193
+ registrationContext: merged.registrationContext !== false,
194
+ replyHint: merged.replyHint !== false,
195
+ senderDetailsOnFirstContact: merged.senderDetailsOnFirstContact !== false,
196
+ ...sharedFields,
197
+ };
198
+ }
199
+
200
+ export function loadGlobalConfig(): MessengerConfig {
201
+ return buildConfig();
202
+ }
203
+
204
+ export function loadConfig(cwd: string): MessengerConfig {
205
+ ensureProjectStateMigrated(cwd);
206
+ const projectConfig = readJsonFile(getProjectConfigPath(cwd)) as Partial<MessengerConfig> | null;
207
+ return buildConfig(projectConfig);
208
+ }
209
+
210
+ /**
211
+ * Conservative project-trust gate. Project-supplied crew agents and skills,
212
+ * and project-scope agent registration via /teamagent, only load when the
213
+ * project config (<project>/.zeta/pi-messenger.json) explicitly opts in with
214
+ * `"trustProjectAgents": true`. Defaults to false so cloning an untrusted
215
+ * repository cannot silently register tool-capable subagents. Only the
216
+ * project-level file grants this — a user-global setting must not trust every
217
+ * repository on the machine.
218
+ */
219
+ export function isProjectAgentsTrusted(cwd: string): boolean {
220
+ return readJsonFile(getProjectConfigPath(cwd))?.trustProjectAgents === true;
221
+ }
@@ -1,64 +1,66 @@
1
- ---
2
- name: crew-plan-sync
3
- description: Syncs downstream specs after task completion
4
- tools: read, write, bash, pi_messenger
5
- model: anthropic/claude-haiku-4-5
6
- crewRole: analyst
7
- maxOutput: { bytes: 51200, lines: 500 }
8
- parallel: false
9
- retryable: true
10
- ---
11
-
12
- # Crew Plan Sync
13
-
14
- You update downstream specs when a task is completed, keeping the plan current.
15
-
16
- ## Your Task
17
-
18
- After a task is completed:
19
-
20
- 1. **Read Completed Task**: Understand what was implemented
21
- 2. **Check Dependent Tasks**: Find tasks that depend on this one
22
- 3. **Update Specs**: Update dependent task specs with new information
23
- 4. **Update Epic Spec**: If the implementation affects the overall plan
24
-
25
- ## Process
26
-
27
- 1. Get completed task details:
28
- ```typescript
29
- pi_messenger({ action: "task.show", id: "<COMPLETED_TASK_ID>" })
30
- ```
31
-
32
- 2. Find dependent tasks:
33
- ```typescript
34
- pi_messenger({ action: "task.list", epic: "<EPIC_ID>" })
35
- ```
36
-
37
- 3. Read and update specs that reference the completed task
38
-
39
- ## Output Format
40
-
41
- ```
42
- ## Sync Summary
43
-
44
- ### Updated: [task-id]
45
-
46
- Changes made:
47
- - Updated section X to reflect...
48
- - Added information about...
49
-
50
- ### Updated: [task-id]
51
-
52
- Changes made:
53
- - ...
54
-
55
- ### No Updates Needed
56
-
57
- If no updates needed, explain why.
58
- ```
59
-
60
- ## Important
61
-
62
- - Only update specs, don't change task status
63
- - Preserve existing spec content, add/update relevant sections
64
- - Note if implementation deviated from original plan
1
+ ---
2
+ name: crew-plan-sync
3
+ description: Syncs downstream specs after task completion
4
+ tools: read, write, bash, pi_messenger
5
+ model: anthropic/claude-haiku-4-5
6
+ crewRole: analyst
7
+ maxOutput: { bytes: 51200, lines: 500 }
8
+ parallel: false
9
+ retryable: true
10
+ ---
11
+
12
+ # Crew Plan Sync
13
+
14
+ You update downstream specs when a task is completed, keeping the plan current.
15
+
16
+ ## Your Task
17
+
18
+ After a task is completed:
19
+
20
+ 1. **Read Completed Task**: Understand what was implemented
21
+ 2. **Check Dependent Tasks**: Find tasks that depend on this one
22
+ 3. **Update Specs**: Update dependent task specs with new information
23
+ 4. **Update Epic Spec**: If the implementation affects the overall plan
24
+
25
+ ## Process
26
+
27
+ 1. Get completed task details:
28
+
29
+ ```typescript
30
+ pi_messenger({ action: "task.show", id: "<COMPLETED_TASK_ID>" });
31
+ ```
32
+
33
+ 2. Find dependent tasks:
34
+
35
+ ```typescript
36
+ pi_messenger({ action: "task.list", epic: "<EPIC_ID>" });
37
+ ```
38
+
39
+ 3. Read and update specs that reference the completed task
40
+
41
+ ## Output Format
42
+
43
+ ```
44
+ ## Sync Summary
45
+
46
+ ### Updated: [task-id]
47
+
48
+ Changes made:
49
+ - Updated section X to reflect...
50
+ - Added information about...
51
+
52
+ ### Updated: [task-id]
53
+
54
+ Changes made:
55
+ - ...
56
+
57
+ ### No Updates Needed
58
+
59
+ If no updates needed, explain why.
60
+ ```
61
+
62
+ ## Important
63
+
64
+ - Only update specs, don't change task status
65
+ - Preserve existing spec content, add/update relevant sections
66
+ - Note if implementation deviated from original plan