@linxiraos/pi-messenger 1.1.0 → 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/package.json
CHANGED
|
@@ -1,62 +1,66 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
2
|
+
"name": "@linxiraos/pi-messenger",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Inter-agent messaging and file reservation system for pi coding agent",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agents",
|
|
7
|
+
"ai",
|
|
8
|
+
"cli",
|
|
9
|
+
"coordination",
|
|
10
|
+
"extension",
|
|
11
|
+
"messaging",
|
|
12
|
+
"multi-agent",
|
|
13
|
+
"pi",
|
|
14
|
+
"pi-coding-agent",
|
|
15
|
+
"pi-package"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://github.com/Linxira-OS/linxira-zeta/tree/main/plugins/official/pi-messenger#readme",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/nicobailon/pi-messenger/issues"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": "Nico Bailon",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/Linxira-OS/linxira-zeta.git",
|
|
26
|
+
"directory": "plugins/official/pi-messenger"
|
|
27
|
+
},
|
|
28
|
+
"bin": {
|
|
29
|
+
"pi-messenger": "install.mjs"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"*.ts",
|
|
33
|
+
"*.mjs",
|
|
34
|
+
"crew/**",
|
|
35
|
+
"skills/**",
|
|
36
|
+
"README.md",
|
|
37
|
+
"CHANGELOG.md",
|
|
38
|
+
"LICENSE",
|
|
39
|
+
"THIRD-PARTY-NOTICES.txt"
|
|
40
|
+
],
|
|
41
|
+
"type": "module",
|
|
42
|
+
"main": "index.ts",
|
|
43
|
+
"scripts": {
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"test:watch": "vitest"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"vitest": "^2.1.8"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@linxiraos/pi-agent-core": "*",
|
|
52
|
+
"@linxiraos/pi-ai": "*",
|
|
53
|
+
"@linxiraos/pi-tui": "*",
|
|
54
|
+
"@linxiraos/pi-utils": "*",
|
|
55
|
+
"@linxiraos/zeta": "*",
|
|
56
|
+
"typebox": "*"
|
|
57
|
+
},
|
|
58
|
+
"pi": {
|
|
59
|
+
"extensions": [
|
|
60
|
+
"./index.ts"
|
|
61
|
+
],
|
|
62
|
+
"skills": [
|
|
63
|
+
"./skills"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
62
66
|
}
|
package/paths.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pi Messenger - Path Resolution
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for every directory this extension owns. State lives
|
|
5
|
+
* in the zeta tree (getAgentDir() = ~/.zeta/agent), never in the legacy ~/.pi
|
|
6
|
+
* tree — one-time migrations for pre-existing state live in
|
|
7
|
+
* ./crew/utils/migrations.ts.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import * as os from "node:os";
|
|
11
|
+
import * as path from "node:path";
|
|
12
|
+
import { getAgentDir } from "@linxiraos/pi-utils/dirs";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Global messenger state (~/.zeta/agent/messenger by default).
|
|
16
|
+
* PI_MESSENGER_DIR overrides — kept for test isolation and exotic setups.
|
|
17
|
+
*/
|
|
18
|
+
export function getGlobalMessengerDir(): string {
|
|
19
|
+
return process.env.PI_MESSENGER_DIR || path.join(getAgentDir(), "messenger");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Global extension config (~/.zeta/agent/pi-messenger.json). */
|
|
23
|
+
export function getGlobalConfigPath(): string {
|
|
24
|
+
return path.join(getAgentDir(), "pi-messenger.json");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Project messenger state (<project>/.zeta/messenger). */
|
|
28
|
+
export function getProjectMessengerDir(cwd: string): string {
|
|
29
|
+
return path.join(cwd, ".zeta", "messenger");
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Project crew state (<project>/.zeta/messenger/crew). */
|
|
33
|
+
export function getProjectCrewDir(cwd: string): string {
|
|
34
|
+
return path.join(getProjectMessengerDir(cwd), "crew");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Project extension config (<project>/.zeta/pi-messenger.json). */
|
|
38
|
+
export function getProjectConfigPath(cwd: string): string {
|
|
39
|
+
return path.join(cwd, ".zeta", "pi-messenger.json");
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Legacy trees this extension owned before the zeta migration. Read only by
|
|
44
|
+
* crew/utils/migrations.ts to move pre-existing state out of them.
|
|
45
|
+
*/
|
|
46
|
+
export function getLegacyGlobalMessengerDir(homeDir = os.homedir()): string {
|
|
47
|
+
return path.join(homeDir, ".pi", "agent", "messenger");
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function getLegacyGlobalConfigPath(homeDir = os.homedir()): string {
|
|
51
|
+
return path.join(homeDir, ".pi", "agent", "pi-messenger.json");
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function getLegacyProjectMessengerDir(cwd: string): string {
|
|
55
|
+
return path.join(cwd, ".pi", "messenger");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function getLegacyProjectConfigPath(cwd: string): string {
|
|
59
|
+
return path.join(cwd, ".pi", "pi-messenger.json");
|
|
60
|
+
}
|