@agimon-ai/po-config 0.0.0-alpha.16 → 0.0.0-alpha.161
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 +149 -21
- package/README.md +33 -131
- package/dist/agentPluginMcp.cjs +67 -0
- package/dist/agentPluginMcp.cjs.map +1 -1
- package/dist/agentPluginMcp.d.mts +4 -1
- package/dist/agentPluginMcp.d.mts.map +1 -1
- package/dist/agentPluginMcp.mjs +67 -1
- package/dist/agentPluginMcp.mjs.map +1 -1
- package/dist/apiContracts.cjs +10 -9
- package/dist/apiContracts.cjs.map +1 -1
- package/dist/apiContracts.d.mts +2 -2
- package/dist/apiContracts.d.mts.map +1 -1
- package/dist/apiContracts.mjs +10 -9
- package/dist/apiContracts.mjs.map +1 -1
- package/dist/{completion-Ba0TiBHa.d.mts → completion-Cm4YbJ9H.d.mts} +3 -93
- package/dist/completion-Cm4YbJ9H.d.mts.map +1 -0
- package/dist/config-B6XtWQfF.cjs +279 -0
- package/dist/config-B6XtWQfF.cjs.map +1 -0
- package/dist/config-BoUcpYZT.mjs +223 -0
- package/dist/config-BoUcpYZT.mjs.map +1 -0
- package/dist/{config-pxC7FyUJ.d.mts → config-CVYzn7z_.d.mts} +83 -16
- package/dist/config-CVYzn7z_.d.mts.map +1 -0
- package/dist/config.cjs +22 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +4 -4
- package/dist/{configPolicy-DueX0k6i.mjs → configPolicy-C5n1_TYu.mjs} +240 -14
- package/dist/configPolicy-C5n1_TYu.mjs.map +1 -0
- package/dist/{configPolicy-CowlLhK1.cjs → configPolicy-DT_C-QJF.cjs} +251 -13
- package/dist/configPolicy-DT_C-QJF.cjs.map +1 -0
- package/dist/{configWriter-DGO0gmXo.cjs → configWriter-BiEqabZY.cjs} +4 -4
- package/dist/configWriter-BiEqabZY.cjs.map +1 -0
- package/dist/{configWriter-DCASRzr-.mjs → configWriter-SfJsJGsE.mjs} +4 -4
- package/dist/configWriter-SfJsJGsE.mjs.map +1 -0
- package/dist/configWriter.cjs +1 -1
- package/dist/configWriter.d.mts +1 -1
- package/dist/configWriter.mjs +1 -1
- package/dist/{core-B0Qg0Qq2.cjs → core-BKsgmUun.cjs} +139 -13
- package/dist/core-BKsgmUun.cjs.map +1 -0
- package/dist/core-DcQ3STS9.mjs +217 -0
- package/dist/core-DcQ3STS9.mjs.map +1 -0
- package/dist/{domains-CiDUsRiX.cjs → domains-BBvCNpkD.cjs} +51 -15
- package/dist/domains-BBvCNpkD.cjs.map +1 -0
- package/dist/domains-DQBJLW8S.d.mts +97 -0
- package/dist/domains-DQBJLW8S.d.mts.map +1 -0
- package/dist/{domains-IlieGHaY.mjs → domains-DrD5Oi6h.mjs} +51 -15
- package/dist/domains-DrD5Oi6h.mjs.map +1 -0
- package/dist/domains.cjs +2 -2
- package/dist/domains.d.mts +2 -1
- package/dist/domains.mjs +2 -2
- package/dist/extensions/mcp.cjs +5 -5
- package/dist/extensions/mcp.cjs.map +1 -1
- package/dist/extensions/mcp.mjs +5 -5
- package/dist/extensions/mcp.mjs.map +1 -1
- package/dist/extensions/server.cjs +12 -357
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.mjs +10 -355
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/{harnessState-BrmH0lG5.cjs → harnessState-CQBNDL1D.cjs} +5 -27
- package/dist/harnessState-CQBNDL1D.cjs.map +1 -0
- package/dist/{harnessState-8lZda_8r.mjs → harnessState-ufE-npBa.mjs} +5 -27
- package/dist/harnessState-ufE-npBa.mjs.map +1 -0
- package/dist/harnessState.cjs +1 -1
- package/dist/harnessState.d.mts +1 -1
- package/dist/harnessState.mjs +1 -1
- package/dist/{harnessStore-BinxGITh.cjs → harnessStore-Dgn3T4sR.cjs} +2 -2
- package/dist/harnessStore-Dgn3T4sR.cjs.map +1 -0
- package/dist/{harnessStore-w8zHmJ_H.mjs → harnessStore-yqKUx-kP.mjs} +2 -2
- package/dist/harnessStore-yqKUx-kP.mjs.map +1 -0
- package/dist/harnessStore.cjs +1 -1
- package/dist/harnessStore.d.mts +1 -1
- package/dist/harnessStore.mjs +1 -1
- package/dist/index-7RuIAWX1.d.mts.map +1 -1
- package/dist/{index-BTOU4XiI.d.mts → index-Bg4cw4Lq.d.mts} +5 -8
- package/dist/index-Bg4cw4Lq.d.mts.map +1 -0
- package/dist/index-BmY30wlf.d.mts +158 -0
- package/dist/index-BmY30wlf.d.mts.map +1 -0
- package/dist/{index-dYgF03lE.d.mts → index-CW2A--aK.d.mts} +3 -3
- package/dist/{index-dYgF03lE.d.mts.map → index-CW2A--aK.d.mts.map} +1 -1
- package/dist/{index-CE5g27J6.d.mts → index-DeP6F4Rv.d.mts} +15 -14
- package/dist/index-DeP6F4Rv.d.mts.map +1 -0
- package/dist/{index-D_OtYtsl.d.mts → index-Dm0JKpCH.d.mts} +2 -2
- package/dist/{index-D_OtYtsl.d.mts.map → index-Dm0JKpCH.d.mts.map} +1 -1
- package/dist/{index-COokUToB.d.mts → index-N_GmmWJz.d.mts} +3 -3
- package/dist/{index-COokUToB.d.mts.map → index-N_GmmWJz.d.mts.map} +1 -1
- package/dist/index-fTuf8tVH.d.mts.map +1 -1
- package/dist/index-nVcEC1jO.d.mts.map +1 -1
- package/dist/{index-D3vGEYup.d.mts → index-rnJ2xxwU.d.mts} +46 -9
- package/dist/index-rnJ2xxwU.d.mts.map +1 -0
- package/dist/index.cjs +31 -13
- package/dist/index.d.mts +22 -11
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +14 -13
- package/dist/{init-BdZ-gqqk.cjs → init-BVZUmsOf.cjs} +65 -18
- package/dist/init-BVZUmsOf.cjs.map +1 -0
- package/dist/{init-DG7MxGxC.mjs → init-Dy0bJjQe.mjs} +65 -18
- package/dist/init-Dy0bJjQe.mjs.map +1 -0
- package/dist/init.cjs +1 -1
- package/dist/init.mjs +1 -1
- package/dist/{layeredConfig-Bs18dXQG.cjs → layeredConfig-BwXujCB3.cjs} +2 -2
- package/dist/{layeredConfig-Bs18dXQG.cjs.map → layeredConfig-BwXujCB3.cjs.map} +1 -1
- package/dist/{layeredConfig-BbkoIEfM.mjs → layeredConfig-_8QSsAfl.mjs} +2 -2
- package/dist/{layeredConfig-BbkoIEfM.mjs.map → layeredConfig-_8QSsAfl.mjs.map} +1 -1
- package/dist/layeredConfig.cjs +1 -1
- package/dist/layeredConfig.d.mts.map +1 -1
- package/dist/layeredConfig.mjs +1 -1
- package/dist/{majorModes-Ddx975MG.mjs → majorModes-BX0x_b_n.mjs} +35 -22
- package/dist/majorModes-BX0x_b_n.mjs.map +1 -0
- package/dist/{majorModes-Ctsdi8QW.cjs → majorModes-Dr7-dmxR.cjs} +54 -29
- package/dist/majorModes-Dr7-dmxR.cjs.map +1 -0
- package/dist/majorModes.cjs +5 -3
- package/dist/majorModes.d.mts +91 -2
- package/dist/majorModes.d.mts.map +1 -0
- package/dist/majorModes.mjs +3 -1
- package/dist/piConfig-Bq36PQFF.mjs.map +1 -1
- package/dist/piConfig-cluCie5i.cjs.map +1 -1
- package/dist/piContext.cjs +1 -1
- package/dist/piContext.d.mts +2 -2
- package/dist/piContext.mjs +1 -1
- package/dist/presets-CPhYuCAy.mjs +208 -0
- package/dist/presets-CPhYuCAy.mjs.map +1 -0
- package/dist/presets-D5ffEV3N.cjs +227 -0
- package/dist/presets-D5ffEV3N.cjs.map +1 -0
- package/dist/{profiles-CTrUCmIh.d.mts → profiles-BPaJfNIs.d.mts} +7 -1
- package/dist/profiles-BPaJfNIs.d.mts.map +1 -0
- package/dist/{profiles-t2EUj0aB.cjs → profiles-CVSlok0p.cjs} +440 -46
- package/dist/profiles-CVSlok0p.cjs.map +1 -0
- package/dist/{profiles-CHict0x-.mjs → profiles-mTOkHXOB.mjs} +411 -53
- package/dist/profiles-mTOkHXOB.mjs.map +1 -0
- package/dist/profiles.cjs +7 -1
- package/dist/profiles.d.mts +8 -4
- package/dist/profiles.d.mts.map +1 -1
- package/dist/profiles.mjs +1 -1
- package/dist/selectionSwitch.cjs +13 -14
- package/dist/selectionSwitch.cjs.map +1 -1
- package/dist/selectionSwitch.d.mts +5 -4
- package/dist/selectionSwitch.d.mts.map +1 -1
- package/dist/selectionSwitch.mjs +13 -14
- package/dist/selectionSwitch.mjs.map +1 -1
- package/dist/{sessionConfig-DFQF618G.mjs → sessionConfig-ClhEl9wW.mjs} +17 -9
- package/dist/sessionConfig-ClhEl9wW.mjs.map +1 -0
- package/dist/{sessionConfig-DeP6pplT.cjs → sessionConfig-DeIHioVH.cjs} +17 -9
- package/dist/sessionConfig-DeIHioVH.cjs.map +1 -0
- package/dist/settingsApi-D7-UoUVf.mjs +479 -0
- package/dist/settingsApi-D7-UoUVf.mjs.map +1 -0
- package/dist/settingsApi-DXrYnHkG.cjs +484 -0
- package/dist/settingsApi-DXrYnHkG.cjs.map +1 -0
- package/dist/sync-BJ8gCP9s.mjs.map +1 -1
- package/dist/{sync-CC_15kkB.d.mts → sync-CIeHcR-h.d.mts} +6 -5
- package/dist/sync-CIeHcR-h.d.mts.map +1 -0
- package/dist/sync-Dlxz2msM.cjs.map +1 -1
- package/dist/types.d.mts +2 -2
- package/llms.txt +2 -2
- package/package.json +16 -13
- package/src/prompts/help-how-to-config/SKILL.md +47 -0
- package/src/prompts/{po-author-config → help-how-to-config}/agents/openai.yaml +1 -1
- package/src/prompts/{po-author-config → help-how-to-config}/references/config-contract.md +88 -2
- package/dist/completion-Ba0TiBHa.d.mts.map +0 -1
- package/dist/config-Cdybp9rT.cjs +0 -155
- package/dist/config-Cdybp9rT.cjs.map +0 -1
- package/dist/config-Cxc2xw54.mjs +0 -112
- package/dist/config-Cxc2xw54.mjs.map +0 -1
- package/dist/config-pxC7FyUJ.d.mts.map +0 -1
- package/dist/configPolicy-CowlLhK1.cjs.map +0 -1
- package/dist/configPolicy-DueX0k6i.mjs.map +0 -1
- package/dist/configWriter-DCASRzr-.mjs.map +0 -1
- package/dist/configWriter-DGO0gmXo.cjs.map +0 -1
- package/dist/core-B0Qg0Qq2.cjs.map +0 -1
- package/dist/core-DKWW9gkh.mjs +0 -139
- package/dist/core-DKWW9gkh.mjs.map +0 -1
- package/dist/domains-CiDUsRiX.cjs.map +0 -1
- package/dist/domains-IlieGHaY.mjs.map +0 -1
- package/dist/harnessState-8lZda_8r.mjs.map +0 -1
- package/dist/harnessState-BrmH0lG5.cjs.map +0 -1
- package/dist/harnessStore-BinxGITh.cjs.map +0 -1
- package/dist/harnessStore-w8zHmJ_H.mjs.map +0 -1
- package/dist/index-BTOU4XiI.d.mts.map +0 -1
- package/dist/index-CE5g27J6.d.mts.map +0 -1
- package/dist/index-D3vGEYup.d.mts.map +0 -1
- package/dist/index-Nbj2iQWw.d.mts +0 -75
- package/dist/index-Nbj2iQWw.d.mts.map +0 -1
- package/dist/init-BdZ-gqqk.cjs.map +0 -1
- package/dist/init-DG7MxGxC.mjs.map +0 -1
- package/dist/majorModes-Ctsdi8QW.cjs.map +0 -1
- package/dist/majorModes-Ddx975MG.mjs.map +0 -1
- package/dist/profiles-CHict0x-.mjs.map +0 -1
- package/dist/profiles-CTrUCmIh.d.mts.map +0 -1
- package/dist/profiles-t2EUj0aB.cjs.map +0 -1
- package/dist/sessionConfig-DFQF618G.mjs.map +0 -1
- package/dist/sessionConfig-DeP6pplT.cjs.map +0 -1
- package/dist/sync-CC_15kkB.d.mts.map +0 -1
- package/src/prompts/po-author-config/SKILL.md +0 -26
package/LICENSE
CHANGED
|
@@ -1,21 +1,149 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,170 +1,72 @@
|
|
|
1
1
|
# @agimon-ai/po-config
|
|
2
2
|
|
|
3
|
-
Typed
|
|
4
|
-
[Po](https://www.npmjs.com/package/@agimon-ai/po).
|
|
3
|
+
Typed configuration loading, validation, and session selection state for Po. The distribution loads Config before selectable packages; do not add it to a layer.
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
runtime settings, publishes the `po/config` Cordis service, and maintains selection state shared
|
|
8
|
-
by the major-mode, domain, and profile transition flows.
|
|
5
|
+
Requires Node.js 24 or newer. Pi consumers use the peer version declared in `package.json`.
|
|
9
6
|
|
|
10
|
-
|
|
7
|
+
## Runtime settings
|
|
11
8
|
|
|
12
|
-
|
|
9
|
+
Po reads host settings from `~/.po/config.yaml` and repository settings from `<repoRoot>/.po/config.yaml`. The strict runtime reader also applies the selected person's cached issuer-global settings beneath the host file, for portable keys only. It uses the session starter's identity when supplied, otherwise the host owner's. A missing cache contributes nothing. See [Hierarchy](../../../docs/architecture.md#hierarchy).
|
|
13
10
|
|
|
14
|
-
-
|
|
15
|
-
- Pi 1.0.0 as a peer dependency
|
|
16
|
-
|
|
17
|
-
## Install
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npm install @agimon-ai/po-config
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Do not add this package to a Po layer. The distribution activates it before selectable packages
|
|
24
|
-
so the rest of the parent session can consume one resolved configuration snapshot.
|
|
25
|
-
|
|
26
|
-
## Runtime configuration
|
|
27
|
-
|
|
28
|
-
Po reads `~/.po/config.yaml` first and `<repoRoot>/.po/config.yaml` second. Merge policy
|
|
29
|
-
is field-specific because some settings are personal and others are repository policy:
|
|
30
|
-
|
|
31
|
-
| Setting | Effective source policy |
|
|
32
|
-
| ------------------- | -------------------------------------------------------------------- |
|
|
33
|
-
| `projectTrust` | Repository value, defaulting to `ask` |
|
|
34
|
-
| `editor` | Personal config only |
|
|
35
|
-
| `modes.planning` | Personal and repository fields merge, with repository values winning |
|
|
36
|
-
| `voice` | Personal and repository fields merge, with repository values winning |
|
|
37
|
-
| `voice.autoCapture` | Personal config only |
|
|
38
|
-
| `selection` | Per-axis merge, with repository values winning |
|
|
39
|
-
|
|
40
|
-
Supported root keys are `modes`, `projectTrust`, `editor`, `voice`, and `selection`. Unknown keys and
|
|
41
|
-
invalid values fail during loading.
|
|
11
|
+
Merge rules depend on the field: repository trust policy defaults to `ask`; editor choice and autonomous voice capture are host-only; planning, voice, and default selection merge where supported. Unknown keys and invalid values fail loading. The settings inspection reader `readPoConfigLayers` currently reports host and repository layers, not the cached global layer.
|
|
42
12
|
|
|
43
13
|
```yaml
|
|
44
14
|
projectTrust: ask
|
|
45
|
-
modes:
|
|
46
|
-
planning:
|
|
47
|
-
main:
|
|
48
|
-
model: openai/gpt-5.4
|
|
49
|
-
thinking: high
|
|
50
|
-
plansDirectory: .po/plans
|
|
51
|
-
voice:
|
|
52
|
-
engine: auto
|
|
53
|
-
language: en
|
|
54
15
|
selection:
|
|
55
16
|
majorMode: copilot
|
|
56
17
|
domains: [default]
|
|
57
18
|
profile: reviewer
|
|
58
19
|
```
|
|
59
20
|
|
|
60
|
-
|
|
61
|
-
`domains.yaml`, and `profiles.yaml` and are documented by their owning package Help skills.
|
|
62
|
-
|
|
63
|
-
See the shipped [configuration contract](./src/prompts/po-author-config/references/config-contract.md) for
|
|
64
|
-
the complete runtime schema and additional configuration details.
|
|
21
|
+
Selection names defaults. Definitions belong in `modes.yaml`, `domains.yaml`, and `profiles.yaml`, whose owning packages provide Help guidance. The [configuration contract](./src/prompts/help-how-to-config/references/config-contract.md) gives authoring examples; the parser in `src/services/configPolicy` owns accepted fields and merge behavior.
|
|
65
22
|
|
|
66
|
-
##
|
|
23
|
+
## Workspace declarations
|
|
67
24
|
|
|
68
|
-
|
|
69
|
-
`PO_CONFIG_SERVICE`. Consumers must access it under an owning service injection:
|
|
25
|
+
Declare workspaces in repository `.po/workspaces.yaml`:
|
|
70
26
|
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
27
|
+
```yaml
|
|
28
|
+
workspaces:
|
|
29
|
+
- name: Product
|
|
30
|
+
path: .
|
|
31
|
+
alias: product
|
|
32
|
+
instructions: Focus on this product.
|
|
33
|
+
metadata:
|
|
34
|
+
'@example/plugin': { projectId: product }
|
|
80
35
|
```
|
|
81
36
|
|
|
82
|
-
|
|
83
|
-
`pendingSelection`, and `requiresRelaunch`. Do not mutate it or retain it across provider or session
|
|
84
|
-
replacement. The next session publishes a new snapshot.
|
|
85
|
-
|
|
86
|
-
## Plugin structure and lifecycle
|
|
37
|
+
Paths currently must resolve to the repository root, including equivalent symlinks. Declarations can share that root while receiving distinct workspace IDs. Names and aliases must be unique within the file. Metadata is JSON, not a credential store or an authorization boundary; each consuming plugin validates its own fields.
|
|
87
38
|
|
|
88
|
-
|
|
39
|
+
An existing declaration file is authoritative, including `workspaces: []`. Invalid or blank files fail rather than falling back. Only an absent file permits the deprecated repository `config.yaml` list. Personal declarations are ignored; Po does not migrate files automatically. Instructions are copied on initial admission, not overwritten later.
|
|
89
40
|
|
|
90
|
-
|
|
41
|
+
Hosts read declarations at composition boundaries with `readWorkspaceDeclarations`. Plugins inject `po/workspace-registry` instead of rereading YAML. Resolve the current workspace ID; path lookup can be ambiguous when declarations share a root.
|
|
91
42
|
|
|
92
|
-
|
|
43
|
+
## Consume the session snapshot
|
|
93
44
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
Major-mode, domain, and profile packages resolve their own requested changes, then use the shared
|
|
97
|
-
transition coordinator. Config owns the persisted selection and transition journal records used to
|
|
98
|
-
distinguish active state from pending intent.
|
|
99
|
-
|
|
100
|
-
Native session selection is serialized by the kernel and applied to retained server package candidates. Config owns persisted selection and pending transition records; Po factory reload and terminal relaunch are not native authoring mechanisms.
|
|
101
|
-
|
|
102
|
-
Consumers must not edit `snapshot.harness`, bypass the coordinator, or cache launcher environment
|
|
103
|
-
state at module scope.
|
|
104
|
-
|
|
105
|
-
## Public API
|
|
106
|
-
|
|
107
|
-
The root and focused `/config` and `/piContext` exports provide runtime parsing, merge policy, and
|
|
108
|
-
session integration:
|
|
45
|
+
Inject `PO_CONFIG_SERVICE` and call `requirePoConfigContext` inside the owning service fiber:
|
|
109
46
|
|
|
110
47
|
```ts
|
|
111
|
-
import {
|
|
48
|
+
import { PO_CONFIG_SERVICE, requirePoConfigContext } from '@agimon-ai/po-config';
|
|
112
49
|
|
|
113
|
-
|
|
50
|
+
context.inject([PO_CONFIG_SERVICE], (context) => {
|
|
51
|
+
const snapshot = requirePoConfigContext(context);
|
|
52
|
+
// Consume snapshot.settings without mutating it.
|
|
53
|
+
});
|
|
114
54
|
```
|
|
115
55
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
The package also exposes lower-level loaders used by the fixed axis packages. User-facing guidance
|
|
119
|
-
for defining modes, domains, and profiles is intentionally owned by those packages instead of this
|
|
120
|
-
runtime Config authoring skill.
|
|
56
|
+
Snapshots are deeply frozen. Do not retain one across provider or session replacement. Selection changes go through the shared coordinator, not direct edits to harness state. Runtime packages use injected configuration; host composition code can use the FileSystem-based `readPoConfig` with explicit environment and home directory. Node-only loaders are compatibility shims, not portable runtime APIs.
|
|
121
57
|
|
|
122
|
-
|
|
58
|
+
Focused exports include `/config`, `/piConfig`, `/configSchema`, and `/piContext`; inspect `package.json` for the current public surface.
|
|
123
59
|
|
|
124
|
-
|
|
125
|
-
`po-author-config` with the `po/help` Cordis service. The guidance is visible to the AI only
|
|
126
|
-
while the parent Help minor mode is active.
|
|
60
|
+
## Remote session summary
|
|
127
61
|
|
|
128
|
-
|
|
62
|
+
The remote `show_session` tool returns a read-only summary and an MCP App for compatible hosts. It exposes session identity and selection, not credentials, instruction text, or absolute repository paths. Conversation-routed callers must preserve host-supplied conversation metadata on every call, including refresh. Otherwise use a dedicated-session connection; there is no shared-session fallback.
|
|
129
63
|
|
|
130
|
-
|
|
131
|
-
Compatible hosts render the repository name, session identity, revision, profile, domains, layers,
|
|
132
|
-
and modes. Text-only clients receive the same information as readable text. `load_context` remains
|
|
133
|
-
separate and does not open a widget.
|
|
134
|
-
|
|
135
|
-
The component refreshes through the host's `tools/call` bridge. It receives no access token, does
|
|
136
|
-
not contact localhost or an external asset server, and does not include instructions, persona text,
|
|
137
|
-
or absolute repository paths. Conversation-routed connections still require host-supplied
|
|
138
|
-
conversation metadata on every tool call, including refresh. A host that cannot preserve that
|
|
139
|
-
metadata must use a dedicated-session connection; there is no fallback to a shared session.
|
|
140
|
-
|
|
141
|
-
`build:mcp` first runs `build:app`. The browser SDK and HTML are bundled into
|
|
142
|
-
`generated/mcp-apps/session.ts`, then embedded in the published MCP facet. The `ui://` resource URI
|
|
143
|
-
contains a hash of the complete HTML. Do not edit generated assets or reuse an old URI for changed
|
|
144
|
-
content. Resource reads are authorized static prefetches and never create a child session.
|
|
145
|
-
|
|
146
|
-
Connect an MCP Apps host to the existing session MCP URL. After rebuilding and restarting the
|
|
147
|
-
server, refresh the host's tool catalog and invoke `show_session`. ChatGPT developer-mode
|
|
148
|
-
connections use the same endpoint. Public app submission, a stable production widget origin, and
|
|
149
|
-
upstream third-party widget forwarding are separate deployment work.
|
|
64
|
+
MCP UI assets are generated by the build. Do not edit them or reuse an old content-hashed resource URI. Source tests do not establish behavior inside a third-party MCP App host.
|
|
150
65
|
|
|
151
66
|
## Development
|
|
152
67
|
|
|
153
|
-
|
|
154
|
-
pnpm build
|
|
155
|
-
pnpm typecheck
|
|
156
|
-
pnpm test
|
|
157
|
-
pnpm lint
|
|
158
|
-
pnpm test:app
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
The browser tests require Playwright Chromium (`pnpm exec playwright install chromium`). They
|
|
162
|
-
exercise the packaged HTML in a sandboxed iframe using the standard SDK's `AppBridge`, including
|
|
163
|
-
refresh, theme changes, errors, text safety, and teardown. They do not substitute for testing the
|
|
164
|
-
connection inside ChatGPT itself.
|
|
165
|
-
|
|
166
|
-
Maintained by [Agimon](https://agimon.ai/about).
|
|
68
|
+
Run `pnpm build`, `pnpm typecheck`, `pnpm test`, and `pnpm lint` from this package. Help guidance is published through `llms.txt` and `src/prompts`.
|
|
167
69
|
|
|
168
70
|
## License
|
|
169
71
|
|
|
170
|
-
|
|
72
|
+
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.
|
package/dist/agentPluginMcp.cjs
CHANGED
|
@@ -377,6 +377,72 @@ function normalizeAgentPluginMcpSource(source, options) {
|
|
|
377
377
|
return disabledResult(label, error);
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
+
const AGENT_PLUGIN_SCHEMA = "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json";
|
|
381
|
+
function isPlainObject(value) {
|
|
382
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
383
|
+
}
|
|
384
|
+
async function stablePluginIdentity(entry) {
|
|
385
|
+
const source = entry.source;
|
|
386
|
+
const identity = source?.type === "git" ? [
|
|
387
|
+
"git",
|
|
388
|
+
source.url,
|
|
389
|
+
source.path ?? ""
|
|
390
|
+
] : source?.type === "npm" ? [
|
|
391
|
+
"npm",
|
|
392
|
+
source.registry ?? "",
|
|
393
|
+
source.package
|
|
394
|
+
] : ["local", await node_fs.default.promises.realpath(entry.directory)];
|
|
395
|
+
return (0, node_crypto.createHash)("sha256").update(JSON.stringify(identity)).digest("hex");
|
|
396
|
+
}
|
|
397
|
+
async function rootAgentPluginSchema(entry) {
|
|
398
|
+
const manifestPath = node_path.default.join(entry.directory, "plugin.json");
|
|
399
|
+
if (entry.manifest?.path === manifestPath && entry.manifest.agentPluginSchema === AGENT_PLUGIN_SCHEMA) return AGENT_PLUGIN_SCHEMA;
|
|
400
|
+
try {
|
|
401
|
+
const stat = await node_fs.default.promises.lstat(manifestPath);
|
|
402
|
+
if (stat.isSymbolicLink() || !stat.isFile()) return void 0;
|
|
403
|
+
const parsed = JSON.parse(await node_fs.default.promises.readFile(manifestPath, "utf8"));
|
|
404
|
+
return isPlainObject(parsed) && parsed.$schema === AGENT_PLUGIN_SCHEMA ? AGENT_PLUGIN_SCHEMA : void 0;
|
|
405
|
+
} catch {
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
/** One plugin's MCP config as a projection source, or nothing when it ships none. Shared by sync and settings. */
|
|
410
|
+
async function pluginMcpSource(entry, pluginDataRoot) {
|
|
411
|
+
if (entry.mcp === false) return void 0;
|
|
412
|
+
const pluginRoot = await node_fs.default.promises.realpath(entry.directory);
|
|
413
|
+
const agentPlugin = await rootAgentPluginSchema(entry) === AGENT_PLUGIN_SCHEMA;
|
|
414
|
+
const configPath = node_path.default.join(pluginRoot, agentPlugin ? "mcp.json" : ".mcp.json");
|
|
415
|
+
let stat;
|
|
416
|
+
try {
|
|
417
|
+
stat = await node_fs.default.promises.lstat(configPath);
|
|
418
|
+
} catch (error) {
|
|
419
|
+
if (error.code === "ENOENT") return void 0;
|
|
420
|
+
throw error;
|
|
421
|
+
}
|
|
422
|
+
if (!stat.isFile() || stat.isSymbolicLink()) return void 0;
|
|
423
|
+
const content = await node_fs.default.promises.readFile(configPath);
|
|
424
|
+
const contentDigest = (0, node_crypto.createHash)("sha256").update(content).digest("hex");
|
|
425
|
+
const pluginId = await stablePluginIdentity(entry);
|
|
426
|
+
const sourceId = `plugin:${pluginId}`;
|
|
427
|
+
if (!agentPlugin) return {
|
|
428
|
+
sourceId,
|
|
429
|
+
owner: "plugin",
|
|
430
|
+
format: "native",
|
|
431
|
+
configPath,
|
|
432
|
+
contentDigest
|
|
433
|
+
};
|
|
434
|
+
return {
|
|
435
|
+
sourceId,
|
|
436
|
+
owner: "plugin",
|
|
437
|
+
format: "agent-plugin-v1",
|
|
438
|
+
configPath,
|
|
439
|
+
contentDigest,
|
|
440
|
+
pluginId,
|
|
441
|
+
pluginRoot,
|
|
442
|
+
pluginDataDirectory: node_path.default.join(pluginDataRoot, pluginId),
|
|
443
|
+
mcpSchemaUrl: _agimon_ai_po_core_mcpProjection.AGENT_PLUGIN_MCP_SCHEMA_URL
|
|
444
|
+
};
|
|
445
|
+
}
|
|
380
446
|
//#endregion
|
|
381
447
|
//#region src/services/agentPluginMcp/index.ts
|
|
382
448
|
async function realContainedPath(fs, root, candidate, label, context) {
|
|
@@ -497,5 +563,6 @@ async function normalizeAgentPluginMcpSourceAsync(fs, source, options, context)
|
|
|
497
563
|
//#endregion
|
|
498
564
|
exports.normalizeAgentPluginMcpSource = normalizeAgentPluginMcpSource;
|
|
499
565
|
exports.normalizeAgentPluginMcpSourceAsync = normalizeAgentPluginMcpSourceAsync;
|
|
566
|
+
exports.pluginMcpSource = pluginMcpSource;
|
|
500
567
|
|
|
501
568
|
//# sourceMappingURL=agentPluginMcp.cjs.map
|