@giladbarnea/pi-simple-team 2.0.9 → 2.0.11
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/README.md +13 -20
- package/child-tools.ts +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
@@ -6,14 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
> **The team extension with no features.**
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<a href="https://bun.sh/"><img alt="tested with Bun" src="https://shieldcn.dev/badge/tested_with-Bun.svg?logo=bun&variant=outline" /></a>
|
|
16
|
-
</p>
|
|
9
|
+
[](https://github.com/earendil-works/pi)
|
|
10
|
+
[](https://www.npmjs.com/package/@giladbarnea/pi-simple-team)
|
|
11
|
+
[](https://github.com/giladbarnea/pi-simple-team/actions/workflows/test.yml)
|
|
12
|
+
[](https://github.com/giladbarnea/pi-simple-team/blob/main/LICENSE)
|
|
13
|
+
[](https://www.typescriptlang.org/)
|
|
14
|
+
[](https://bun.sh/)
|
|
17
15
|
|
|
18
16
|
**No roles. No org chart. No mailboxes. No routing rules.**
|
|
19
17
|
|
|
@@ -63,7 +61,7 @@ Main agent:
|
|
|
63
61
|
> - `implementer` will keep fixing until `reviewer` is satisfied.
|
|
64
62
|
> - I will let you know when they are done.
|
|
65
63
|
|
|
66
|
-
[](screenshots/abstract-tool-output-preview.png)
|
|
64
|
+
[](https://raw.githubusercontent.com/giladbarnea/pi-simple-team/main/screenshots/abstract-tool-output-preview.png)
|
|
67
65
|
|
|
68
66
|
<div align="center"><em>Spawn, direct, and follow a team from the normal Pi conversation.</em></div>
|
|
69
67
|
|
|
@@ -74,12 +72,9 @@ Main agent:
|
|
|
74
72
|
|
|
75
73
|
<br>
|
|
76
74
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<p align="center">
|
|
81
|
-
<a href="screenshots/team-log-multiple.png"><img src="screenshots/team-log-multiple.png" width="100%" alt="Event log outputs for two parallel teams"></a>
|
|
82
|
-
</p>
|
|
75
|
+
[](https://raw.githubusercontent.com/giladbarnea/pi-simple-team/main/screenshots/team-status-multiple.png)
|
|
76
|
+
|
|
77
|
+
[](https://raw.githubusercontent.com/giladbarnea/pi-simple-team/main/screenshots/team-log-multiple.png)
|
|
83
78
|
|
|
84
79
|
</details>
|
|
85
80
|
|
|
@@ -91,9 +86,7 @@ The command opens an overlay rolling recent statuses, messages, and a separate e
|
|
|
91
86
|
|
|
92
87
|
Up/Down select the messages or log widget. Enter zooms it to the full overlay. Esc goes back.
|
|
93
88
|
|
|
94
|
-
|
|
95
|
-
<img src="screenshots/team-view.png" width="100%" alt="The live team dashboard showing statuses, messages, and recent events">
|
|
96
|
-
</a>
|
|
89
|
+
[](https://raw.githubusercontent.com/giladbarnea/pi-simple-team/main/screenshots/team-view.png)
|
|
97
90
|
|
|
98
91
|
<div align="center"><em>The live, read-only <code>/team</code> dashboard.</em></div>
|
|
99
92
|
|
|
@@ -212,7 +205,7 @@ Or give main a concrete team goal:
|
|
|
212
205
|
|
|
213
206
|
That prompt creates this graph:
|
|
214
207
|
|
|
215
|
-

|
|
208
|
+

|
|
216
209
|
|
|
217
210
|
## Tools
|
|
218
211
|
|
package/child-tools.ts
CHANGED
|
@@ -65,8 +65,13 @@ function readRequiredChildRuntimeConfig(): ChildRuntimeConfig {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Main marks only the process it starts with PI_SIMPLE_TEAM_CHILD=1. That process claims the teammate identity for its PID, which
|
|
70
|
+
* survives Pi's in-process reloads and session replacements. Subprocesses inherit the environment, not the claim, so they run as main.
|
|
71
|
+
*/
|
|
68
72
|
export function readChildRuntimeConfig(): ChildRuntimeConfig | undefined {
|
|
69
|
-
if (process.env.PI_SIMPLE_TEAM_CHILD
|
|
73
|
+
if (process.env.PI_SIMPLE_TEAM_CHILD === "1") process.env.PI_SIMPLE_TEAM_CHILD = String(process.pid);
|
|
74
|
+
if (process.env.PI_SIMPLE_TEAM_CHILD !== String(process.pid)) return undefined;
|
|
70
75
|
return readRequiredChildRuntimeConfig();
|
|
71
76
|
}
|
|
72
77
|
|