@agimon-ai/po-team 0.0.0-alpha.22 → 0.0.0-alpha.220

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 (113) hide show
  1. package/LICENSE +95 -171
  2. package/NOTICE +35 -0
  3. package/README.md +26 -109
  4. package/dist/{agentDiscovery-ZNG8iZXV.mjs → agentDiscovery-BiMO2Ibu.mjs} +190 -193
  5. package/dist/agentDiscovery-BiMO2Ibu.mjs.map +1 -0
  6. package/dist/{agentDiscovery-DTTlM_LT.cjs → agentDiscovery-D0VcSETk.cjs} +268 -227
  7. package/dist/agentDiscovery-D0VcSETk.cjs.map +1 -0
  8. package/dist/apiContracts.cjs +1 -1
  9. package/dist/apiContracts.cjs.map +1 -1
  10. package/dist/apiContracts.d.mts +2 -2
  11. package/dist/apiContracts.mjs +1 -1
  12. package/dist/apiContracts.mjs.map +1 -1
  13. package/dist/{capabilityCeiling-BaHT9v9S.mjs → capabilityCeiling-DFcqYSTc.mjs} +3 -22
  14. package/dist/capabilityCeiling-DFcqYSTc.mjs.map +1 -0
  15. package/dist/{capabilityCeiling-CO3ZjYmY.cjs → capabilityCeiling-x2WmB2TL.cjs} +3 -22
  16. package/dist/capabilityCeiling-x2WmB2TL.cjs.map +1 -0
  17. package/dist/capabilityCeiling.cjs +2 -2
  18. package/dist/capabilityCeiling.d.mts +2 -4
  19. package/dist/capabilityCeiling.d.mts.map +1 -1
  20. package/dist/capabilityCeiling.mjs +2 -2
  21. package/dist/coordinatorSessions.cjs +14 -0
  22. package/dist/coordinatorSessions.d.mts +2 -0
  23. package/dist/coordinatorSessions.mjs +1 -0
  24. package/dist/env.cjs +1 -2
  25. package/dist/env.d.mts +2 -2
  26. package/dist/env.mjs +1 -1
  27. package/dist/{environment-BtvJI2S-.mjs → environment-BKQikJyW.mjs} +2 -11
  28. package/dist/environment-BKQikJyW.mjs.map +1 -0
  29. package/dist/{environment-Bz1OlWIT.d.mts → environment-CE9zbaE4.d.mts} +2 -9
  30. package/dist/environment-CE9zbaE4.d.mts.map +1 -0
  31. package/dist/{environment-Cqs7vHJL.cjs → environment-COaoVl5M.cjs} +1 -16
  32. package/dist/environment-COaoVl5M.cjs.map +1 -0
  33. package/dist/extensions/native.mjs +2881 -269
  34. package/dist/extensions/native.mjs.map +1 -1
  35. package/dist/extensions/server.cjs +3897 -2789
  36. package/dist/extensions/server.cjs.map +1 -1
  37. package/dist/extensions/server.d.mts.map +1 -1
  38. package/dist/extensions/server.mjs +3901 -2791
  39. package/dist/extensions/server.mjs.map +1 -1
  40. package/dist/extensions/web.mjs +2490 -1194
  41. package/dist/extensions/web.mjs.map +1 -1
  42. package/dist/index.cjs +3 -4
  43. package/dist/index.cjs.map +1 -1
  44. package/dist/index.d.mts +3 -3
  45. package/dist/index.mjs +2 -2
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/po-runtime-identity.json +1 -0
  48. package/dist/runtimeSubagentPolicy.cjs +1 -1
  49. package/dist/runtimeSubagentPolicy.d.mts +1 -1
  50. package/dist/runtimeSubagentPolicy.mjs +1 -1
  51. package/dist/runtimeSubagentTool.cjs +1 -1
  52. package/dist/runtimeSubagentTool.d.mts +1 -1
  53. package/dist/runtimeSubagentTool.mjs +1 -1
  54. package/dist/{subagentPolicy-BE-OZoa-.d.mts → subagentPolicy-CN-AYfeB.d.mts} +1 -2
  55. package/dist/subagentPolicy-CN-AYfeB.d.mts.map +1 -0
  56. package/dist/{subagentPolicy-LfcXuqO5.mjs → subagentPolicy-CXqAT9aI.mjs} +1 -5
  57. package/dist/subagentPolicy-CXqAT9aI.mjs.map +1 -0
  58. package/dist/{subagentPolicy-DIpaKHO8.cjs → subagentPolicy-DYj_SOTG.cjs} +1 -5
  59. package/dist/subagentPolicy-DYj_SOTG.cjs.map +1 -0
  60. package/dist/subagentPolicy.cjs +1 -1
  61. package/dist/subagentPolicy.d.mts +1 -1
  62. package/dist/subagentPolicy.mjs +1 -1
  63. package/dist/{subagentTool-BueNPGHo.cjs → subagentTool-CXBB6f9e.cjs} +4 -3
  64. package/dist/subagentTool-CXBB6f9e.cjs.map +1 -0
  65. package/dist/{subagentTool-a2oh2v5B.mjs → subagentTool-DDZoy8dD.mjs} +4 -3
  66. package/dist/subagentTool-DDZoy8dD.mjs.map +1 -0
  67. package/dist/{subagentTool-UdB3s6Mn.d.mts → subagentTool-DkafHMuZ.d.mts} +7 -3
  68. package/dist/subagentTool-DkafHMuZ.d.mts.map +1 -0
  69. package/dist/subagentTool.cjs +1 -1
  70. package/dist/subagentTool.d.mts +1 -1
  71. package/dist/subagentTool.mjs +1 -1
  72. package/dist/teamSnapshot.d.mts.map +1 -1
  73. package/llms.txt +12 -0
  74. package/locales/vi.json +338 -0
  75. package/locales/zh-CN.json +338 -0
  76. package/package.json +147 -43
  77. package/src/prompts/codemode-how-to-team/SKILL.md +91 -0
  78. package/src/prompts/help-how-to-team/SKILL.md +91 -0
  79. package/dist/agentDiscovery-DTTlM_LT.cjs.map +0 -1
  80. package/dist/agentDiscovery-ZNG8iZXV.mjs.map +0 -1
  81. package/dist/atomicJson-DRT03Ql5.cjs +0 -824
  82. package/dist/atomicJson-DRT03Ql5.cjs.map +0 -1
  83. package/dist/atomicJson-VVM1iAPu.mjs +0 -712
  84. package/dist/atomicJson-VVM1iAPu.mjs.map +0 -1
  85. package/dist/capabilityCeiling-BaHT9v9S.mjs.map +0 -1
  86. package/dist/capabilityCeiling-CO3ZjYmY.cjs.map +0 -1
  87. package/dist/environment-BtvJI2S-.mjs.map +0 -1
  88. package/dist/environment-Bz1OlWIT.d.mts.map +0 -1
  89. package/dist/environment-Cqs7vHJL.cjs.map +0 -1
  90. package/dist/fablePlan.cjs +0 -17
  91. package/dist/fablePlan.d.mts +0 -2
  92. package/dist/fablePlan.mjs +0 -1
  93. package/dist/fablePlanApi-BTNKjLni.d.mts +0 -97
  94. package/dist/fablePlanApi-BTNKjLni.d.mts.map +0 -1
  95. package/dist/fablePlanApi-BhI4jnDP.cjs +0 -207
  96. package/dist/fablePlanApi-BhI4jnDP.cjs.map +0 -1
  97. package/dist/fablePlanApi-DuMg43Hu.mjs +0 -118
  98. package/dist/fablePlanApi-DuMg43Hu.mjs.map +0 -1
  99. package/dist/fablePlanApi.cjs +0 -17
  100. package/dist/fablePlanApi.d.mts +0 -2
  101. package/dist/fablePlanApi.mjs +0 -1
  102. package/dist/rolldown-runtime-VH7oDXx4.cjs +0 -28
  103. package/dist/runs/background/cliRunnerEntry.cjs +0 -540
  104. package/dist/runs/background/cliRunnerEntry.cjs.map +0 -1
  105. package/dist/runs/background/cliRunnerEntry.d.mts +0 -1
  106. package/dist/runs/background/cliRunnerEntry.mjs +0 -537
  107. package/dist/runs/background/cliRunnerEntry.mjs.map +0 -1
  108. package/dist/subagentPolicy-BE-OZoa-.d.mts.map +0 -1
  109. package/dist/subagentPolicy-DIpaKHO8.cjs.map +0 -1
  110. package/dist/subagentPolicy-LfcXuqO5.mjs.map +0 -1
  111. package/dist/subagentTool-BueNPGHo.cjs.map +0 -1
  112. package/dist/subagentTool-UdB3s6Mn.d.mts.map +0 -1
  113. package/dist/subagentTool-a2oh2v5B.mjs.map +0 -1
package/LICENSE CHANGED
@@ -1,178 +1,102 @@
1
- License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved.
2
- "Business Source License" is a trademark of MariaDB Corporation Ab.
3
-
4
- Parameters
5
-
6
- Licensor: Agimon Pty Ltd
7
- Licensed Work: Po, the software in the Po source repository and the
8
- packages released from it, in each version released by
9
- the Licensor.
10
- The Licensed Work is (c) 2026 Agimon Pty Ltd.
11
- Material identified as third-party in the "Third-party
12
- components" section at the end of this file or in a
13
- NOTICE file, and any package or directory whose own
14
- license file grants a different license, is not part of
15
- the Licensed Work and remains under its own license.
16
- Additional Use Grant: You may make production use of the Licensed Work if
17
- your use is Eligible Use. "Eligible Use" is production use that falls
18
- within at least one of the following:
19
-
20
- (a) Personal Use. Use by an individual for their own personal purposes,
21
- and not on behalf of, or for the benefit of, an employer, client, or
22
- other Organization. Use by an individual in the course of employment
23
- or engagement by an Organization is use by that Organization.
24
-
25
- (b) Small Organization Use. Use by or on behalf of an Organization whose
26
- Annual Revenue is less than USD 1,000,000.
27
-
28
- (c) Non-profit, Education and Research Use. Use, regardless of Annual
29
- Revenue, by (i) an Organization registered or recognized as a
30
- non-profit or charitable organization under the laws of its
31
- jurisdiction, for its non-profit purposes; (ii) an accredited school,
32
- college, or university, for teaching, learning, or academic research;
33
- or (iii) a publicly funded research institution, for its research.
34
-
35
- (d) Service Provider Use. Use by a consultant, contractor, agency, or other
36
- service provider, regardless of its own Annual Revenue, solely to
37
- build, deploy, host, operate, or support the Licensed Work for a client
38
- whose own use would be Eligible Use under (a), (b), or (c). A service
39
- provider's use for its own purposes is Eligible Use only if the service
40
- provider itself qualifies under (b) or (c).
41
-
42
-
43
- Hosted services. Offering the Licensed Work to third parties as a hosted
44
- or managed service whose primary value is the Licensed Work is Eligible
45
- Use only if each such third party's own use would be Eligible Use.
46
-
47
- Definitions. "Organization" means any company, partnership, sole
48
- proprietorship, trust, association, government body, or other entity, and
49
- includes an individual acting in a business or professional capacity.
50
- "Affiliate" means any entity that directly or indirectly controls, is
51
- controlled by, or is under common control with an Organization, where
52
- "control" means ownership of more than 50% of the voting interests of an
53
- entity or the power to direct its management and policies by contract or
54
- otherwise. "Annual Revenue" means the total gross revenue of an
55
- Organization and all of its Affiliates combined, from all sources and
56
- whether or not related to the Licensed Work, for its most recently
57
- completed fiscal year, or, if it has not completed a fiscal year, for the
58
- twelve months before the use (or since its formation, if shorter),
59
- converted into US dollars at the average exchange rate for that period.
60
- Proceeds of equity or debt financing are not revenue.
61
-
62
- Threshold. If an Organization stops qualifying under (b), its existing
63
- production use remains Eligible Use for 90 days after it stops
64
- qualifying, after which it must obtain a commercial license or stop
65
- production use. Use that was Eligible Use when it occurred never requires
66
- a commercial license after the fact.
67
- Change Date: Four years from the date a version of the Licensed Work
68
- is first publicly released by the Licensor.
69
- Change License: Apache License, Version 2.0
70
-
71
- For information about alternative licensing arrangements for the Licensed
72
- Work, please visit: https://agimon.ai/licensing
73
-
74
- Notice
75
-
76
- The Business Source License (this document, or the "License") is not an Open
77
- Source license. However, the Licensed Work will eventually be made available
78
- under an Open Source License, as stated in this License.
79
-
80
- -----------------------------------------------------------------------------
81
-
82
- Business Source License 1.1
83
-
84
- Terms
85
-
86
- The Licensor hereby grants you the right to copy, modify, create derivative
87
- works, redistribute, and make non-production use of the Licensed Work. The
88
- Licensor may make an Additional Use Grant, above, permitting limited
89
- production use.
90
-
91
- Effective on the Change Date, or the fourth anniversary of the first publicly
92
- available distribution of a specific version of the Licensed Work under this
93
- License, whichever comes first, the Licensor hereby grants you rights under
94
- the terms of the Change License, and the rights granted in the paragraph
95
- above terminate.
96
-
97
- If your use of the Licensed Work does not comply with the requirements
98
- currently in effect as described in this License, you must purchase a
99
- commercial license from the Licensor, its affiliated entities, or authorized
100
- resellers, or you must refrain from using the Licensed Work.
101
-
102
- All copies of the original and modified Licensed Work, and derivative works
103
- of the Licensed Work, are subject to this License. This License applies
104
- separately for each version of the Licensed Work and the Change Date may vary
105
- for each version of the Licensed Work released by Licensor.
106
-
107
- You must conspicuously display this License on each original or modified copy
108
- of the Licensed Work. If you receive the Licensed Work in original or
109
- modified form from a third party, the terms and conditions set forth in this
110
- License apply to your use of that work.
111
-
112
- Any use of the Licensed Work in violation of this License will automatically
113
- terminate your rights under this License for the current and all other
114
- versions of the Licensed Work.
115
-
116
- This License does not grant you any right in any trademark or logo of
117
- Licensor or its affiliates (provided that you may use a trademark or logo of
118
- Licensor as expressly required by this License).
119
-
120
- TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
121
- AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
122
- EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
123
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
124
- TITLE.
125
-
126
- MariaDB hereby grants you permission to use this License’s text to license
127
- your works, and to refer to it using the trademark “Business Source License”,
128
- as long as you comply with the Covenants of Licensor below.
129
-
130
- Covenants of Licensor
131
-
132
- In consideration of the right to use this License’s text and the “Business
133
- Source License” name and trademark, Licensor covenants to MariaDB, and to all
134
- other recipients of the licensed work to be provided by Licensor:
135
-
136
- 1. To specify as the Change License the GPL Version 2.0 or any later version,
137
- or a license that is compatible with GPL Version 2.0 or a later version,
138
- where “compatible” means that software provided under the Change License can
139
- be included in a program with software provided under GPL Version 2.0 or a
140
- later version. Licensor may specify additional Change Licenses without
141
- limitation.
142
-
143
- 2. To either: (a) specify an additional grant of rights to use that does not
144
- impose any additional restriction on the right granted in this License, as
145
- the Additional Use Grant; or (b) insert the text “None”.
146
-
147
- 3. To specify a Change Date.
148
-
149
- 4. Not to modify this License in any other way.
150
-
151
- -----------------------------------------------------------------------------
152
-
153
- Third-party components
154
-
155
- The following material in this package was written by third parties. It is
156
- not part of the Licensed Work, is not licensed under the Business Source
157
- License above, and remains under its own license, reproduced below. Where a
158
- file combines third-party material with changes by Agimon Pty Ltd, the
159
- third-party portions remain under their original license and the changes
160
- are part of the Licensed Work.
1
+ # Functional Source License, Version 1.1, MIT Future License
161
2
 
162
- 1. pi-subagents (https://github.com/nicobailon/pi-subagents)
163
- Used in: team delegation schemas and services, environment and run types
164
- License: MIT
3
+ ## Abbreviation
165
4
 
166
- MIT License
5
+ FSL-1.1-MIT
167
6
 
168
- Copyright (c) 2026 Nico Bailon
7
+ ## Notice
169
8
 
170
- Permission is hereby granted, free of charge, to any person obtaining a copy
171
- of this software and associated documentation files (the "Software"), to deal
172
- in the Software without restriction, including without limitation the rights
173
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
174
- copies of the Software, and to permit persons to whom the Software is
175
- furnished to do so, subject to the following conditions:
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:
176
100
 
177
101
  The above copyright notice and this permission notice shall be included in all
178
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 enforce model and tool policy.
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
- Part of the [Po distribution](https://www.npmjs.com/package/@agimon-ai/po).
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
- Team does not own Task's graph. When both packages are loaded, Team fulfills Task delegation
8
- requests while Task remains the source of truth for task status and dependencies.
7
+ ## Enable
9
8
 
10
- > **Alpha:** run, policy, and intercom contracts may change between releases.
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,54 @@ 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: Development with tasks and delegated agents.
24
+ description: Tasks and delegated agents.
37
25
  layers: [coordination]
38
26
  ```
39
27
 
40
- Team-only sessions can launch and manage agents directly; they simply have no Task-owned graph to
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.
60
-
61
- The `subagent` tool exposes `agents`, `run`, `status`, `steer`, and `stop`.
62
- The `intercom` tool exposes `members`, `send`, `ask`, `pending`, and `reply`.
28
+ Task is optional. Team-only sessions can launch and manage agents directly without a stored task graph.
63
29
 
64
- `ask` is asynchronous in every direction (child to main, main to child, child to sibling). It
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.
30
+ ## Run and communicate
70
31
 
71
- ## Run lifecycle
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.
72
33
 
73
- Runs are asynchronous. The parent receives a run identifier and later completion or failure rather
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.
34
+ The [Team code-mode guide](src/prompts/codemode-how-to-team/SKILL.md) explains how to inspect state before choosing a control action. In Help mode, `help-how-to-team` (`src/prompts/help-how-to-team/SKILL.md`) documents the `teamConfig` namespace for managing agent files and model defaults.
78
35
 
79
- ## Agent identity
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.
80
37
 
81
- Every spawned agent is given a generated identity of the form `{name}-{role}-{number}`, for example
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)`.
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.
85
39
 
86
- The identity is the intercom member id, not a label beside one, so a peer can address exactly what it
87
- is shown:
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.
88
41
 
89
- ```text
90
- intercom({ action: "send", to: "alan-reviewer-3", message: "..." })
91
- subagent({ action: "status", id: "alan-reviewer-3" })
92
- ```
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.
93
43
 
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.
44
+ ## Model, tool and trust policy
101
45
 
102
- ## Model and tool policy
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.
103
47
 
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.
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.
107
49
 
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.
50
+ Treat agent definitions, inherited environments and granted MCP tools as trusted executable configuration. Tool restrictions are not operating-system isolation.
112
51
 
113
- ## Task delegation bridge
52
+ ## Task integration and inspection
114
53
 
115
- With Task installed:
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.
116
55
 
117
- 1. Task selects a pending, unblocked task and sends a delegation request.
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.
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. On hosts with live objects, the `team` namespace also carries every `subagent` action (`team.agents`, `team.start`, `team.status`, `team.steer`, `team.stop`), the team `intercom` actions (`team.send`, `team.ask`, `team.reply`, `team.pending`), and `team.startSession` (a main-agent-only compatibility forwarder to `start_session`; prefer `sessions.start`), so the main agent's direct `subagent` and `intercom` tools are withdrawn. Each member calls the tool's own implementation and stays main-agent-only. Hosts without live objects keep the direct tools.
121
57
 
122
- This is a named Cordis service relationship, not shared persistence. Team provides
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.
58
+ ## Web and native surfaces
125
59
 
126
- ## Public API
127
-
128
- ```ts
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`.
60
+ The package ships `poWeb` and `poNative` extensions. Both surfaces provide the Activity agents section, subagent run and catalog channels, help guides, and timeline renderers for `subagent`, `intercom`, and `start_session`. The web extension also adds agent catalog and fleet leader views, launch actions, and host/repository agent model settings.
135
61
 
136
62
  ## Development
137
63
 
138
- Run from this package directory in the workspace:
139
-
140
64
  ```bash
141
- pnpm build
142
- pnpm typecheck
143
- pnpm test
144
- pnpm lint
65
+ pnpm exec nx run-many -t lint typecheck build test -p @agimon-ai/po-team
145
66
  ```
146
67
 
147
- Maintained by [Agimon](https://agimon.ai/about).
68
+ 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
69
 
149
70
  ## License
150
71
 
151
- Business Source License 1.1: free for personal use, organisations under USD 1M revenue, non-profits and education. See [LICENSE](LICENSE) and https://agimon.ai/licensing.
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.
72
+ 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).