@agimon-ai/po-team 0.0.0-alpha.20 → 0.0.0-alpha.200
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/LICENSE +96 -11
- package/NOTICE +35 -0
- package/README.md +24 -111
- package/dist/{agentDiscovery-ZNG8iZXV.mjs → agentDiscovery-BiMO2Ibu.mjs} +190 -193
- package/dist/agentDiscovery-BiMO2Ibu.mjs.map +1 -0
- package/dist/{agentDiscovery-DTTlM_LT.cjs → agentDiscovery-D0VcSETk.cjs} +268 -227
- package/dist/agentDiscovery-D0VcSETk.cjs.map +1 -0
- package/dist/apiContracts.cjs +1 -1
- package/dist/apiContracts.cjs.map +1 -1
- package/dist/apiContracts.d.mts +2 -2
- package/dist/apiContracts.mjs +1 -1
- package/dist/apiContracts.mjs.map +1 -1
- package/dist/{capabilityCeiling-BaHT9v9S.mjs → capabilityCeiling-DFcqYSTc.mjs} +3 -22
- package/dist/capabilityCeiling-DFcqYSTc.mjs.map +1 -0
- package/dist/{capabilityCeiling-CO3ZjYmY.cjs → capabilityCeiling-x2WmB2TL.cjs} +3 -22
- package/dist/capabilityCeiling-x2WmB2TL.cjs.map +1 -0
- package/dist/capabilityCeiling.cjs +2 -2
- package/dist/capabilityCeiling.d.mts +2 -4
- package/dist/capabilityCeiling.d.mts.map +1 -1
- package/dist/capabilityCeiling.mjs +2 -2
- package/dist/coordinatorSessions.cjs +14 -0
- package/dist/coordinatorSessions.d.mts +2 -0
- package/dist/coordinatorSessions.mjs +1 -0
- package/dist/env.cjs +1 -2
- package/dist/env.d.mts +2 -2
- package/dist/env.mjs +1 -1
- package/dist/{environment-BtvJI2S-.mjs → environment-BKQikJyW.mjs} +2 -11
- package/dist/environment-BKQikJyW.mjs.map +1 -0
- package/dist/{environment-Bz1OlWIT.d.mts → environment-CE9zbaE4.d.mts} +2 -9
- package/dist/environment-CE9zbaE4.d.mts.map +1 -0
- package/dist/{environment-Cqs7vHJL.cjs → environment-COaoVl5M.cjs} +1 -16
- package/dist/environment-COaoVl5M.cjs.map +1 -0
- package/dist/extensions/native.mjs +2432 -204
- package/dist/extensions/native.mjs.map +1 -1
- package/dist/extensions/server.cjs +4555 -3678
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.d.mts.map +1 -1
- package/dist/extensions/server.mjs +5207 -4328
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/extensions/web.mjs +1522 -567
- package/dist/extensions/web.mjs.map +1 -1
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/po-runtime-identity.json +1 -0
- package/dist/runtimeSubagentPolicy.cjs +1 -1
- package/dist/runtimeSubagentPolicy.d.mts +1 -1
- package/dist/runtimeSubagentPolicy.mjs +1 -1
- package/dist/runtimeSubagentTool.cjs +1 -1
- package/dist/runtimeSubagentTool.d.mts +1 -1
- package/dist/runtimeSubagentTool.mjs +1 -1
- package/dist/{subagentPolicy-BE-OZoa-.d.mts → subagentPolicy-CN-AYfeB.d.mts} +1 -2
- package/dist/subagentPolicy-CN-AYfeB.d.mts.map +1 -0
- package/dist/{subagentPolicy-LfcXuqO5.mjs → subagentPolicy-CXqAT9aI.mjs} +1 -5
- package/dist/subagentPolicy-CXqAT9aI.mjs.map +1 -0
- package/dist/{subagentPolicy-DIpaKHO8.cjs → subagentPolicy-DYj_SOTG.cjs} +1 -5
- package/dist/subagentPolicy-DYj_SOTG.cjs.map +1 -0
- package/dist/subagentPolicy.cjs +1 -1
- package/dist/subagentPolicy.d.mts +1 -1
- package/dist/subagentPolicy.mjs +1 -1
- package/dist/{subagentTool-UdB3s6Mn.d.mts → subagentTool-BHY7OcDf.d.mts} +3 -3
- package/dist/{subagentTool-UdB3s6Mn.d.mts.map → subagentTool-BHY7OcDf.d.mts.map} +1 -1
- package/dist/{subagentTool-a2oh2v5B.mjs → subagentTool-CCeGXaPL.mjs} +3 -4
- package/dist/subagentTool-CCeGXaPL.mjs.map +1 -0
- package/dist/{subagentTool-BueNPGHo.cjs → subagentTool-CqXgI3iD.cjs} +3 -4
- package/dist/subagentTool-CqXgI3iD.cjs.map +1 -0
- package/dist/subagentTool.cjs +1 -1
- package/dist/subagentTool.d.mts +1 -1
- package/dist/subagentTool.mjs +1 -1
- package/dist/teamSnapshot.d.mts.map +1 -1
- package/llms.txt +12 -0
- package/package.json +114 -43
- package/src/prompts/codemode-how-to-team/SKILL.md +56 -0
- package/src/prompts/help-how-to-team/SKILL.md +91 -0
- package/dist/agentDiscovery-DTTlM_LT.cjs.map +0 -1
- package/dist/agentDiscovery-ZNG8iZXV.mjs.map +0 -1
- package/dist/atomicJson-DRT03Ql5.cjs +0 -824
- package/dist/atomicJson-DRT03Ql5.cjs.map +0 -1
- package/dist/atomicJson-VVM1iAPu.mjs +0 -712
- package/dist/atomicJson-VVM1iAPu.mjs.map +0 -1
- package/dist/capabilityCeiling-BaHT9v9S.mjs.map +0 -1
- package/dist/capabilityCeiling-CO3ZjYmY.cjs.map +0 -1
- package/dist/environment-BtvJI2S-.mjs.map +0 -1
- package/dist/environment-Bz1OlWIT.d.mts.map +0 -1
- package/dist/environment-Cqs7vHJL.cjs.map +0 -1
- package/dist/fablePlan.cjs +0 -17
- package/dist/fablePlan.d.mts +0 -2
- package/dist/fablePlan.mjs +0 -1
- package/dist/fablePlanApi-BTNKjLni.d.mts +0 -97
- package/dist/fablePlanApi-BTNKjLni.d.mts.map +0 -1
- package/dist/fablePlanApi-BhI4jnDP.cjs +0 -207
- package/dist/fablePlanApi-BhI4jnDP.cjs.map +0 -1
- package/dist/fablePlanApi-DuMg43Hu.mjs +0 -118
- package/dist/fablePlanApi-DuMg43Hu.mjs.map +0 -1
- package/dist/fablePlanApi.cjs +0 -17
- package/dist/fablePlanApi.d.mts +0 -2
- package/dist/fablePlanApi.mjs +0 -1
- package/dist/rolldown-runtime-VH7oDXx4.cjs +0 -28
- package/dist/runs/background/cliRunnerEntry.cjs +0 -540
- package/dist/runs/background/cliRunnerEntry.cjs.map +0 -1
- package/dist/runs/background/cliRunnerEntry.d.mts +0 -1
- package/dist/runs/background/cliRunnerEntry.mjs +0 -537
- package/dist/runs/background/cliRunnerEntry.mjs.map +0 -1
- package/dist/subagentPolicy-BE-OZoa-.d.mts.map +0 -1
- package/dist/subagentPolicy-DIpaKHO8.cjs.map +0 -1
- package/dist/subagentPolicy-LfcXuqO5.mjs.map +0 -1
- package/dist/subagentTool-BueNPGHo.cjs.map +0 -1
- package/dist/subagentTool-a2oh2v5B.mjs.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,17 +1,102 @@
|
|
|
1
|
-
MIT License
|
|
1
|
+
# Functional Source License, Version 1.1, MIT Future License
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Abbreviation
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
(https://github.com/nicobailon/pi-subagents), Copyright (c) 2026 Nico Bailon,
|
|
7
|
-
distributed under the MIT License.
|
|
5
|
+
FSL-1.1-MIT
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 Agimon Pty Ltd
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the MIT license that is effective on the second anniversary of the date we make
|
|
91
|
+
the Software available. On or after that date, you may use the Software under
|
|
92
|
+
the MIT license, in which case the following will apply:
|
|
93
|
+
|
|
94
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
95
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
96
|
+
the Software without restriction, including without limitation the rights to
|
|
97
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
98
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
99
|
+
so, subject to the following conditions:
|
|
15
100
|
|
|
16
101
|
The above copyright notice and this permission notice shall be included in all
|
|
17
102
|
copies or substantial portions of the Software.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
This package is licensed under the Functional Source License, Version 1.1, MIT Future License (FSL-1.1-MIT), see LICENSE.
|
|
2
|
+
|
|
3
|
+
Third-party components
|
|
4
|
+
|
|
5
|
+
The following material in this package was written by third parties. It is
|
|
6
|
+
not covered by this package's LICENSE and remains under its own license,
|
|
7
|
+
reproduced below. Where a file combines third-party material with changes by
|
|
8
|
+
Agimon Pty Ltd, the third-party portions remain under their original license
|
|
9
|
+
and the changes are licensed under this package's LICENSE.
|
|
10
|
+
|
|
11
|
+
1. pi-subagents (https://github.com/nicobailon/pi-subagents)
|
|
12
|
+
Used in: team delegation schemas and services, environment and run types
|
|
13
|
+
License: MIT
|
|
14
|
+
|
|
15
|
+
MIT License
|
|
16
|
+
|
|
17
|
+
Copyright (c) 2026 Nico Bailon
|
|
18
|
+
|
|
19
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
20
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
21
|
+
in the Software without restriction, including without limitation the rights
|
|
22
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
23
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
24
|
+
furnished to do so, subject to the following conditions:
|
|
25
|
+
|
|
26
|
+
The above copyright notice and this permission notice shall be included in all
|
|
27
|
+
copies or substantial portions of the Software.
|
|
28
|
+
|
|
29
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
30
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
31
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
32
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
33
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
34
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
# @agimon-ai/po-team
|
|
2
2
|
|
|
3
|
-
Discover agents, run them in the background, exchange messages, and
|
|
3
|
+
Discover agents, run them in the background, exchange messages, and apply model and tool policy. Requires Node.js 24 or newer and a Po server host. Run and policy contracts are alpha.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Team owns agents and runs, not Task's graph. With both selected, Team fulfills delegation requests while Task remains the source of truth for task status and dependencies.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
requests while Task remains the source of truth for task status and dependencies.
|
|
7
|
+
## Enable
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
## Requirements
|
|
13
|
-
|
|
14
|
-
- Node.js 24 or newer
|
|
15
|
-
- `@earendil-works/pi-agent-core`, `@earendil-works/pi-ai`,
|
|
16
|
-
`@earendil-works/pi-coding-agent` 1.0.2
|
|
17
|
-
|
|
18
|
-
## Install
|
|
19
|
-
|
|
20
|
-
Define a layer and select it in `.po/modes.yaml`. Add Task separately for graph-backed delegation:
|
|
9
|
+
Define a layer in `.po/presets.yaml` and select it in a preset, then run `po sync`:
|
|
21
10
|
|
|
22
11
|
```yaml
|
|
23
12
|
layers:
|
|
@@ -30,126 +19,50 @@ layers:
|
|
|
30
19
|
- model: provider/model-id
|
|
31
20
|
thinking: high
|
|
32
21
|
excludeTools: [ask_user_question]
|
|
33
|
-
|
|
34
|
-
majorMode:
|
|
22
|
+
preset:
|
|
35
23
|
development:
|
|
36
|
-
description:
|
|
24
|
+
description: Tasks and delegated agents.
|
|
37
25
|
layers: [coordination]
|
|
38
26
|
```
|
|
39
27
|
|
|
40
|
-
Team-only sessions can launch and manage agents directly
|
|
41
|
-
update.
|
|
42
|
-
|
|
43
|
-
## Commands and tools
|
|
44
|
-
|
|
45
|
-
Slash commands include:
|
|
46
|
-
|
|
47
|
-
```text
|
|
48
|
-
/run
|
|
49
|
-
/parallel
|
|
50
|
-
/subagents-doctor
|
|
51
|
-
/subagents-steer <run-id> <message>
|
|
52
|
-
/subagents-stop
|
|
53
|
-
/subagents-list
|
|
54
|
-
/subagents-fleet
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Use `/run` for one agent and `/parallel` for several. `/subagents-doctor` reports diagnostics,
|
|
58
|
-
`/subagents-steer` sends guidance to a running agent, and `/subagents-stop` requests a stop.
|
|
59
|
-
`/subagents-list` shows available agents, and `/subagents-fleet` shows current runs.
|
|
28
|
+
Task is optional. Team-only sessions can launch and manage agents directly without a stored task graph.
|
|
60
29
|
|
|
61
|
-
|
|
62
|
-
The `intercom` tool exposes `members`, `send`, `ask`, `pending`, and `reply`.
|
|
30
|
+
## Run and communicate
|
|
63
31
|
|
|
64
|
-
`
|
|
65
|
-
returns at once with a `requestId`. The answer arrives later as an intercom message that wakes the
|
|
66
|
-
asker. A child with an open ask stays alive after its turn ends. If no reply lands within 180
|
|
67
|
-
seconds, the asker gets one notice and a turn to decide: keep working, ask again, or finish. The ask
|
|
68
|
-
stays open, so a late reply still lands while the asker is alive. If the target finishes without
|
|
69
|
-
replying, the asker is told right away.
|
|
32
|
+
The `subagent` tool discovers agents, starts runs, reads status, steers and stops them. Runs return an ID immediately; completion or failure arrives later. Check status before retrying an interrupted operation so work is not launched twice.
|
|
70
33
|
|
|
71
|
-
|
|
34
|
+
Slash commands include `/run`, `/parallel`, `/subagents-doctor`, `/subagents-steer`, `/subagents-stop`, `/subagents-list` and `/subagents-fleet`. The [Team code-mode guide](src/prompts/codemode-how-to-team/SKILL.md) explains how to inspect state before choosing a control action.
|
|
72
35
|
|
|
73
|
-
|
|
74
|
-
than an inline child transcript. A native child is a conversation in its parent session's own
|
|
75
|
-
storage, so it survives a restart: when the session reopens, the child resumes where it stopped and
|
|
76
|
-
its completion still reaches the parent once. An external runtime is a separate process, and a
|
|
77
|
-
session that ends stops it.
|
|
36
|
+
Each agent receives a unique identity such as `alan-reviewer-3`. Use the exact identity returned by discovery or status, not a guessed label. Run IDs remain valid and take precedence if a name collides. The root session owns results, membership and control messages.
|
|
78
37
|
|
|
79
|
-
|
|
38
|
+
`intercom` exchanges messages with native team members. `ask` returns immediately with a request ID; the reply wakes the asker later. An open ask keeps a child alive after its turn. After 180 seconds without an answer, one reminder lets it decide whether to continue, ask again or finish. A late answer can still arrive while the asker is alive. If the recipient finishes without answering, the asker is notified.
|
|
80
39
|
|
|
81
|
-
|
|
82
|
-
`alan-reviewer-3`. The role comes from the agent name with its package prefix dropped, and the number
|
|
83
|
-
counts every agent in the session, so no two agents share an identity. An agent defined inline, with
|
|
84
|
-
no agent file on disk, is shown as `bea-developer-2 (inline)`.
|
|
40
|
+
When code mode supplies `network`, use that namespace to message other sessions; intercom then reaches only the current team. Session peers use durable sends rather than team ask/reply semantics outside that namespace.
|
|
85
41
|
|
|
86
|
-
|
|
87
|
-
is shown:
|
|
42
|
+
Native child conversations live in the parent session's storage and resume after reopening, with completion delivered to the parent. External CLI execution is retired.
|
|
88
43
|
|
|
89
|
-
|
|
90
|
-
intercom({ action: "send", to: "alan-reviewer-3", message: "..." })
|
|
91
|
-
subagent({ action: "status", id: "alan-reviewer-3" })
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
Run ids keep working everywhere, and they win when a name and an id collide. Identities are unique
|
|
95
|
-
within one root session and are not reused when a run ends.
|
|
96
|
-
The root session scopes run results, transcripts, control inboxes, membership, and intercom. State
|
|
97
|
-
is stored in private, per-user temporary directories with per-session subdirectories. Launch
|
|
98
|
-
contracts can contain full prompts and are written with private permissions, then removed after
|
|
99
|
-
handoff. Intercom messages expire after 24 hours; liveness checks remove stale membership and run
|
|
100
|
-
state.
|
|
101
|
-
|
|
102
|
-
## Model and tool policy
|
|
103
|
-
|
|
104
|
-
Package configuration belongs on the Team package entry. When several selected entries contribute
|
|
105
|
-
configuration, later entries replace the `models` list and `excludeTools` values are combined in
|
|
106
|
-
layer order.
|
|
107
|
-
|
|
108
|
-
Agent configuration, explicit launch options, Team policy, and provider availability determine the
|
|
109
|
-
final model and tools. A child cannot exceed the capability ceiling supplied by its parent or
|
|
110
|
-
provider policy. Allowed MCP and stdio tools can execute commands, so treat agent definitions and
|
|
111
|
-
the inherited environment as trusted configuration.
|
|
44
|
+
## Model, tool and trust policy
|
|
112
45
|
|
|
113
|
-
|
|
46
|
+
Package configuration belongs on the Team entry. Later selected entries replace `models`; `excludeTools` values combine in layer order. Agent definitions, explicit launch options, Team policy and provider availability determine the final model and tools.
|
|
114
47
|
|
|
115
|
-
|
|
48
|
+
Children cannot exceed the parent's capability ceiling. They borrow permitted Po capabilities, including code mode and skill loading, but not tools marked `mainAgentOnly`. Planning restrictions apply to children too. An agent definition with an explicit `tools` list narrows its tool set further. Code-mode calls share parent-session namespaces, including browser state; they are not separate sandboxed environments.
|
|
116
49
|
|
|
117
|
-
|
|
118
|
-
2. Team resolves the named agent, context, model, skills, and capability policy.
|
|
119
|
-
3. Team owns the background run, messaging, steering, and suspension.
|
|
120
|
-
4. Task records the terminal result on its own task.
|
|
50
|
+
Treat agent definitions, inherited environments and granted MCP tools as trusted executable configuration. Tool restrictions are not operating-system isolation.
|
|
121
51
|
|
|
122
|
-
|
|
123
|
-
`po/delegation`, `po/background-work`, `po/subagent-policy`, and `po/fable-plan` for the
|
|
124
|
-
active session. Consumers disconnect and reconnect automatically when that provider changes.
|
|
52
|
+
## Task integration and inspection
|
|
125
53
|
|
|
126
|
-
|
|
54
|
+
Task submits pending, unblocked assignments. Team resolves the agent and policy, owns execution and cancellation, and returns the terminal result to Task. The Cordis `po/delegation`, `po/background-work` and `po/subagent-policy` connections disconnect and reconnect with their provider; they do not imply shared persistence.
|
|
127
55
|
|
|
128
|
-
|
|
129
|
-
import { resolveSubagentLaunchContract } from '@agimon-ai/po-team';
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
Focused subpaths include `/api/capability-ceiling`, `/api/delegation`, `/api/team-snapshot`,
|
|
133
|
-
and `/env`. Live cross-extension collaboration contracts come from
|
|
134
|
-
`@agimon-ai/po-core`.
|
|
56
|
+
When code mode is loaded, `team.members()` returns native members and `team.runs()` returns tracked runs. These detached snapshots omit capability tokens and delegation prompts. Finished runs drop off ten minutes after acknowledgement; token counts remain available while retained. The direct `subagent` and `intercom` tools remain available.
|
|
135
57
|
|
|
136
58
|
## Development
|
|
137
59
|
|
|
138
|
-
Run from this package directory in the workspace:
|
|
139
|
-
|
|
140
60
|
```bash
|
|
141
|
-
pnpm build
|
|
142
|
-
pnpm typecheck
|
|
143
|
-
pnpm test
|
|
144
|
-
pnpm lint
|
|
61
|
+
pnpm exec nx run-many -t lint typecheck build test -p @agimon-ai/po-team
|
|
145
62
|
```
|
|
146
63
|
|
|
147
|
-
|
|
64
|
+
Routed declarations own contributions; the session's collaboration fiber owns registration and disposal. Public exports are declared in `package.json`, not an independent runtime entry.
|
|
148
65
|
|
|
149
66
|
## License
|
|
150
67
|
|
|
151
|
-
MIT
|
|
152
|
-
|
|
153
|
-
## Source and lifecycle
|
|
154
|
-
|
|
155
|
-
The routed files own contribution registration. Team's collaboration service replaces session fibers explicitly, uses the injected session only when its session manager matches, and otherwise mounts in the standalone plugin context. Losing that injected session disposes its collaboration fiber.
|
|
68
|
+
Functional Source License 1.1, MIT Future License (FSL-1.1-MIT): free for any purpose except a Competing Use; each version converts to MIT two years after release. See [LICENSE](LICENSE).
|