@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.
- package/CHANGELOG.md +741 -676
- package/LICENSE +45 -0
- package/README.md +424 -424
- package/THIRD-PARTY-NOTICES.txt +22951 -0
- package/config-overlay.ts +175 -171
- package/config.ts +221 -209
- package/crew/agents/crew-plan-sync.md +66 -64
- package/crew/agents/crew-planner.md +173 -172
- package/crew/agents/crew-reviewer.md +58 -58
- package/crew/agents/crew-worker.md +130 -129
- package/crew/agents.ts +507 -434
- package/crew/handlers/coordination.ts +350 -332
- package/crew/handlers/plan.ts +988 -906
- package/crew/handlers/review.ts +354 -333
- package/crew/handlers/revise.ts +400 -376
- package/crew/handlers/status.ts +303 -295
- package/crew/handlers/sync.ts +237 -233
- package/crew/handlers/task.ts +820 -792
- package/crew/handlers/team.ts +294 -235
- package/crew/handlers/work.ts +467 -425
- package/crew/id-allocator.ts +30 -30
- package/crew/index.ts +297 -257
- package/crew/live-progress.ts +58 -58
- package/crew/lobby.ts +504 -473
- package/crew/prompt.ts +262 -252
- package/crew/registry.ts +114 -114
- package/crew/spawn.ts +135 -111
- package/crew/state-autonomous.ts +163 -164
- package/crew/state-planning.ts +264 -263
- package/crew/state.ts +20 -20
- package/crew/store.ts +646 -642
- package/crew/task-actions.ts +162 -131
- package/crew/team/store.ts +572 -479
- package/crew/team/subagent-roles.ts +105 -87
- package/crew/team/types.ts +50 -50
- package/crew/types.ts +194 -194
- package/crew/utils/artifacts.ts +57 -62
- package/crew/utils/config.ts +158 -156
- package/crew/utils/discover.ts +221 -219
- package/crew/utils/install.ts +94 -85
- package/crew/utils/migrations.ts +126 -0
- package/crew/utils/progress.ts +191 -187
- package/crew/utils/result.ts +16 -16
- package/crew/utils/risk-labels.ts +5 -7
- package/crew/utils/task-format.ts +14 -14
- package/crew/utils/team-roles.ts +44 -28
- package/crew/utils/truncate.ts +76 -79
- package/crew/utils/verdict.ts +55 -55
- package/editor-binary.ts +150 -0
- package/editor-command.ts +107 -0
- package/editor-target.ts +40 -0
- package/feed.ts +321 -268
- package/handlers.ts +1041 -1107
- package/index.ts +1314 -1206
- package/install.mjs +187 -189
- package/lib.ts +587 -467
- package/overlay-actions.ts +519 -511
- package/overlay-coordinator.ts +150 -150
- package/overlay-render.ts +770 -676
- package/overlay.ts +872 -830
- package/package.json +64 -60
- package/paths.ts +60 -0
- package/skills/pi-messenger-crew/SKILL.md +375 -347
- package/store.ts +1147 -1139
- package/teamagent-command.ts +321 -0
- 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:
|
|
6
|
-
* 2. Extension-specific: ~/.
|
|
7
|
-
* 3.
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
-
|
|
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
|