@agimon-ai/po 0.0.0-alpha.146 → 0.0.0-alpha.147
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/dist/catalog/index.json +63 -63
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/dist/src/builders/server/capabilities.cjs +23 -2
- package/dist/src/builders/server/capabilities.cjs.map +1 -1
- package/dist/src/builders/server/capabilities.mjs +23 -2
- package/dist/src/builders/server/capabilities.mjs.map +1 -1
- package/dist/src/builders/server/federation.cjs +7 -7
- package/dist/src/builders/server/federation.cjs.map +1 -1
- package/dist/src/builders/server/federation.mjs +7 -7
- package/dist/src/builders/server/federation.mjs.map +1 -1
- package/dist/src/builders/server/network.cjs +1 -0
- package/dist/src/builders/server/network.cjs.map +1 -1
- package/dist/src/builders/server/network.mjs +1 -0
- package/dist/src/builders/server/network.mjs.map +1 -1
- package/dist/src/builders/server/runtime.cjs +1 -1
- package/dist/src/builders/server/runtime.cjs.map +1 -1
- package/dist/src/builders/server/runtime.mjs +1 -1
- package/dist/src/builders/server/runtime.mjs.map +1 -1
- package/dist/src/builders/web/webPluginGenerate.cjs +27 -1
- package/dist/src/builders/web/webPluginGenerate.cjs.map +1 -1
- package/dist/src/builders/web/webPluginGenerate.d.mts +9 -0
- package/dist/src/builders/web/webPluginGenerate.d.mts.map +1 -1
- package/dist/src/builders/web/webPluginGenerate.mjs +27 -2
- package/dist/src/builders/web/webPluginGenerate.mjs.map +1 -1
- package/dist/webBuilder.cjs +1 -0
- package/dist/webBuilder.d.mts +2 -2
- package/dist/webBuilder.mjs +2 -2
- package/package.json +27 -27
package/dist/catalog/index.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": 1,
|
|
3
3
|
"packages": {
|
|
4
4
|
"@agimon-ai/po": {
|
|
5
|
-
"version": "0.0.0-alpha.
|
|
5
|
+
"version": "0.0.0-alpha.147",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"@agimon-ai/po-approval",
|
|
8
8
|
"@agimon-ai/po-artifact",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
"@agimon-ai/po-approval": {
|
|
31
|
-
"version": "0.0.0-alpha.
|
|
31
|
+
"version": "0.0.0-alpha.146",
|
|
32
32
|
"dependencies": [
|
|
33
33
|
"@agimon-ai/po-core",
|
|
34
34
|
"@agimon-ai/po-web-components"
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
37
|
"@agimon-ai/po-artifact": {
|
|
38
|
-
"version": "0.0.0-alpha.
|
|
38
|
+
"version": "0.0.0-alpha.145",
|
|
39
39
|
"dependencies": [
|
|
40
40
|
"@agimon-ai/po-core",
|
|
41
41
|
"@agimon-ai/po-web-components",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
45
|
"@agimon-ai/po-author": {
|
|
46
|
-
"version": "0.0.0-alpha.
|
|
46
|
+
"version": "0.0.0-alpha.146",
|
|
47
47
|
"dependencies": [
|
|
48
48
|
"@agimon-ai/po-artifact",
|
|
49
49
|
"@agimon-ai/po-core",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
55
|
"@agimon-ai/po-autocompact": {
|
|
56
|
-
"version": "0.0.0-alpha.
|
|
56
|
+
"version": "0.0.0-alpha.146",
|
|
57
57
|
"dependencies": [
|
|
58
58
|
"@agimon-ai/po-artifact",
|
|
59
59
|
"@agimon-ai/po-config",
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
"@agimon-ai/po-autostop": {
|
|
65
|
-
"version": "0.0.0-alpha.
|
|
65
|
+
"version": "0.0.0-alpha.146",
|
|
66
66
|
"dependencies": [
|
|
67
67
|
"@agimon-ai/po-core"
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"@agimon-ai/po-backdrop-meadow": {
|
|
71
|
-
"version": "0.0.0-alpha.
|
|
71
|
+
"version": "0.0.0-alpha.6",
|
|
72
72
|
"dependencies": [
|
|
73
73
|
"@agimon-ai/po-core"
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
"@agimon-ai/po-browse": {
|
|
77
|
-
"version": "0.0.1-alpha.
|
|
77
|
+
"version": "0.0.1-alpha.144",
|
|
78
78
|
"dependencies": [
|
|
79
79
|
"@agimon-ai/po-config",
|
|
80
80
|
"@agimon-ai/po-core",
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
]
|
|
83
83
|
},
|
|
84
84
|
"@agimon-ai/po-build": {
|
|
85
|
-
"version": "0.0.0-alpha.
|
|
85
|
+
"version": "0.0.0-alpha.146",
|
|
86
86
|
"dependencies": []
|
|
87
87
|
},
|
|
88
88
|
"@agimon-ai/po-cache": {
|
|
89
|
-
"version": "0.0.0-alpha.
|
|
89
|
+
"version": "0.0.0-alpha.146",
|
|
90
90
|
"dependencies": [
|
|
91
91
|
"@agimon-ai/po-config",
|
|
92
92
|
"@agimon-ai/po-core",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
]
|
|
95
95
|
},
|
|
96
96
|
"@agimon-ai/po-calendar": {
|
|
97
|
-
"version": "0.0.1-alpha.
|
|
97
|
+
"version": "0.0.1-alpha.105",
|
|
98
98
|
"dependencies": [
|
|
99
99
|
"@agimon-ai/po-config",
|
|
100
100
|
"@agimon-ai/po-core",
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
]
|
|
107
107
|
},
|
|
108
108
|
"@agimon-ai/po-claude-bridge": {
|
|
109
|
-
"version": "0.1.1-alpha.
|
|
109
|
+
"version": "0.1.1-alpha.126",
|
|
110
110
|
"dependencies": []
|
|
111
111
|
},
|
|
112
112
|
"@agimon-ai/po-codemode": {
|
|
113
|
-
"version": "0.0.1-alpha.
|
|
113
|
+
"version": "0.0.1-alpha.119",
|
|
114
114
|
"dependencies": [
|
|
115
115
|
"@agimon-ai/po-config",
|
|
116
116
|
"@agimon-ai/po-core",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
120
|
"@agimon-ai/po-computer-use": {
|
|
121
|
-
"version": "0.0.0-alpha.
|
|
121
|
+
"version": "0.0.0-alpha.146",
|
|
122
122
|
"dependencies": [
|
|
123
123
|
"@agimon-ai/po-config",
|
|
124
124
|
"@agimon-ai/po-core",
|
|
@@ -128,26 +128,26 @@
|
|
|
128
128
|
]
|
|
129
129
|
},
|
|
130
130
|
"@agimon-ai/po-config": {
|
|
131
|
-
"version": "0.0.0-alpha.
|
|
131
|
+
"version": "0.0.0-alpha.146",
|
|
132
132
|
"dependencies": [
|
|
133
133
|
"@agimon-ai/po-core",
|
|
134
134
|
"@agimon-ai/po-web-components"
|
|
135
135
|
]
|
|
136
136
|
},
|
|
137
137
|
"@agimon-ai/po-core": {
|
|
138
|
-
"version": "0.0.0-alpha.
|
|
138
|
+
"version": "0.0.0-alpha.146",
|
|
139
139
|
"dependencies": [
|
|
140
140
|
"@agimon-ai/po-web-security"
|
|
141
141
|
]
|
|
142
142
|
},
|
|
143
143
|
"@agimon-ai/po-db": {
|
|
144
|
-
"version": "0.0.0-alpha.
|
|
144
|
+
"version": "0.0.0-alpha.146",
|
|
145
145
|
"dependencies": [
|
|
146
146
|
"@agimon-ai/po-core"
|
|
147
147
|
]
|
|
148
148
|
},
|
|
149
149
|
"@agimon-ai/po-domain": {
|
|
150
|
-
"version": "0.0.0-alpha.
|
|
150
|
+
"version": "0.0.0-alpha.146",
|
|
151
151
|
"dependencies": [
|
|
152
152
|
"@agimon-ai/po-config",
|
|
153
153
|
"@agimon-ai/po-core",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
]
|
|
158
158
|
},
|
|
159
159
|
"@agimon-ai/po-edit": {
|
|
160
|
-
"version": "0.0.0-alpha.
|
|
160
|
+
"version": "0.0.0-alpha.146",
|
|
161
161
|
"dependencies": [
|
|
162
162
|
"@agimon-ai/po-core",
|
|
163
163
|
"@agimon-ai/po-hashline",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
]
|
|
167
167
|
},
|
|
168
168
|
"@agimon-ai/po-file-edit": {
|
|
169
|
-
"version": "0.0.0-alpha.
|
|
169
|
+
"version": "0.0.0-alpha.146",
|
|
170
170
|
"dependencies": [
|
|
171
171
|
"@agimon-ai/po-config",
|
|
172
172
|
"@agimon-ai/po-core",
|
|
@@ -176,13 +176,13 @@
|
|
|
176
176
|
]
|
|
177
177
|
},
|
|
178
178
|
"@agimon-ai/po-gateway": {
|
|
179
|
-
"version": "0.0.1-alpha.
|
|
179
|
+
"version": "0.0.1-alpha.25",
|
|
180
180
|
"dependencies": [
|
|
181
181
|
"@agimon-ai/po-core"
|
|
182
182
|
]
|
|
183
183
|
},
|
|
184
184
|
"@agimon-ai/po-git": {
|
|
185
|
-
"version": "0.0.0-alpha.
|
|
185
|
+
"version": "0.0.0-alpha.146",
|
|
186
186
|
"dependencies": [
|
|
187
187
|
"@agimon-ai/po-core",
|
|
188
188
|
"@agimon-ai/po-session",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
]
|
|
192
192
|
},
|
|
193
193
|
"@agimon-ai/po-goal": {
|
|
194
|
-
"version": "0.0.0-alpha.
|
|
194
|
+
"version": "0.0.0-alpha.146",
|
|
195
195
|
"dependencies": [
|
|
196
196
|
"@agimon-ai/po-core",
|
|
197
197
|
"@agimon-ai/po-minor-mode",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
]
|
|
201
201
|
},
|
|
202
202
|
"@agimon-ai/po-grep": {
|
|
203
|
-
"version": "0.0.0-alpha.
|
|
203
|
+
"version": "0.0.0-alpha.146",
|
|
204
204
|
"dependencies": [
|
|
205
205
|
"@agimon-ai/po-core",
|
|
206
206
|
"@agimon-ai/po-hashline",
|
|
@@ -209,11 +209,11 @@
|
|
|
209
209
|
]
|
|
210
210
|
},
|
|
211
211
|
"@agimon-ai/po-hashline": {
|
|
212
|
-
"version": "0.0.0-alpha.
|
|
212
|
+
"version": "0.0.0-alpha.146",
|
|
213
213
|
"dependencies": []
|
|
214
214
|
},
|
|
215
215
|
"@agimon-ai/po-help": {
|
|
216
|
-
"version": "0.0.0-alpha.
|
|
216
|
+
"version": "0.0.0-alpha.146",
|
|
217
217
|
"dependencies": [
|
|
218
218
|
"@agimon-ai/po-core",
|
|
219
219
|
"@agimon-ai/po-minor-mode",
|
|
@@ -222,14 +222,14 @@
|
|
|
222
222
|
]
|
|
223
223
|
},
|
|
224
224
|
"@agimon-ai/po-identity": {
|
|
225
|
-
"version": "0.0.2-alpha.
|
|
225
|
+
"version": "0.0.2-alpha.93",
|
|
226
226
|
"dependencies": [
|
|
227
227
|
"@agimon-ai/po-core",
|
|
228
228
|
"@agimon-ai/po-web-security"
|
|
229
229
|
]
|
|
230
230
|
},
|
|
231
231
|
"@agimon-ai/po-image-gen": {
|
|
232
|
-
"version": "0.0.0-alpha.
|
|
232
|
+
"version": "0.0.0-alpha.145",
|
|
233
233
|
"dependencies": [
|
|
234
234
|
"@agimon-ai/po-core",
|
|
235
235
|
"@agimon-ai/po-web-components",
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
]
|
|
238
238
|
},
|
|
239
239
|
"@agimon-ai/po-ios": {
|
|
240
|
-
"version": "0.0.1-alpha.
|
|
240
|
+
"version": "0.0.1-alpha.81",
|
|
241
241
|
"dependencies": [
|
|
242
242
|
"@agimon-ai/po-artifact",
|
|
243
243
|
"@agimon-ai/po-config",
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
]
|
|
248
248
|
},
|
|
249
249
|
"@agimon-ai/po-log": {
|
|
250
|
-
"version": "0.0.0-alpha.
|
|
250
|
+
"version": "0.0.0-alpha.146",
|
|
251
251
|
"dependencies": [
|
|
252
252
|
"@agimon-ai/po-core",
|
|
253
253
|
"@agimon-ai/po-web-components",
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
]
|
|
256
256
|
},
|
|
257
257
|
"@agimon-ai/po-major-mode": {
|
|
258
|
-
"version": "0.0.0-alpha.
|
|
258
|
+
"version": "0.0.0-alpha.146",
|
|
259
259
|
"dependencies": [
|
|
260
260
|
"@agimon-ai/po-config",
|
|
261
261
|
"@agimon-ai/po-core",
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
]
|
|
264
264
|
},
|
|
265
265
|
"@agimon-ai/po-mcp": {
|
|
266
|
-
"version": "0.0.0-alpha.
|
|
266
|
+
"version": "0.0.0-alpha.146",
|
|
267
267
|
"dependencies": [
|
|
268
268
|
"@agimon-ai/po-config",
|
|
269
269
|
"@agimon-ai/po-core",
|
|
@@ -274,30 +274,30 @@
|
|
|
274
274
|
]
|
|
275
275
|
},
|
|
276
276
|
"@agimon-ai/po-mcp-proxy": {
|
|
277
|
-
"version": "0.0.1-alpha.
|
|
277
|
+
"version": "0.0.1-alpha.125",
|
|
278
278
|
"dependencies": []
|
|
279
279
|
},
|
|
280
280
|
"@agimon-ai/po-minor-mode": {
|
|
281
|
-
"version": "0.0.0-alpha.
|
|
281
|
+
"version": "0.0.0-alpha.146",
|
|
282
282
|
"dependencies": [
|
|
283
283
|
"@agimon-ai/po-core"
|
|
284
284
|
]
|
|
285
285
|
},
|
|
286
286
|
"@agimon-ai/po-model-guidance": {
|
|
287
|
-
"version": "0.0.0-alpha.
|
|
287
|
+
"version": "0.0.0-alpha.146",
|
|
288
288
|
"dependencies": [
|
|
289
289
|
"@agimon-ai/po-config",
|
|
290
290
|
"@agimon-ai/po-core"
|
|
291
291
|
]
|
|
292
292
|
},
|
|
293
293
|
"@agimon-ai/po-native-components": {
|
|
294
|
-
"version": "0.0.0-alpha.
|
|
294
|
+
"version": "0.0.0-alpha.146",
|
|
295
295
|
"dependencies": [
|
|
296
296
|
"@agimon-ai/po-web-components"
|
|
297
297
|
]
|
|
298
298
|
},
|
|
299
299
|
"@agimon-ai/po-native-dashboard": {
|
|
300
|
-
"version": "0.0.0-alpha.
|
|
300
|
+
"version": "0.0.0-alpha.18",
|
|
301
301
|
"dependencies": [
|
|
302
302
|
"@agimon-ai/po-core",
|
|
303
303
|
"@agimon-ai/po-native-components",
|
|
@@ -305,21 +305,21 @@
|
|
|
305
305
|
]
|
|
306
306
|
},
|
|
307
307
|
"@agimon-ai/po-network": {
|
|
308
|
-
"version": "0.0.2-alpha.
|
|
308
|
+
"version": "0.0.2-alpha.93",
|
|
309
309
|
"dependencies": [
|
|
310
310
|
"@agimon-ai/po-core",
|
|
311
311
|
"@agimon-ai/po-web-security"
|
|
312
312
|
]
|
|
313
313
|
},
|
|
314
314
|
"@agimon-ai/po-notification": {
|
|
315
|
-
"version": "0.0.0-alpha.
|
|
315
|
+
"version": "0.0.0-alpha.146",
|
|
316
316
|
"dependencies": [
|
|
317
317
|
"@agimon-ai/po-autostop",
|
|
318
318
|
"@agimon-ai/po-core"
|
|
319
319
|
]
|
|
320
320
|
},
|
|
321
321
|
"@agimon-ai/po-plan": {
|
|
322
|
-
"version": "0.0.0-alpha.
|
|
322
|
+
"version": "0.0.0-alpha.146",
|
|
323
323
|
"dependencies": [
|
|
324
324
|
"@agimon-ai/po-config",
|
|
325
325
|
"@agimon-ai/po-core",
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
]
|
|
330
330
|
},
|
|
331
331
|
"@agimon-ai/po-profile": {
|
|
332
|
-
"version": "0.0.0-alpha.
|
|
332
|
+
"version": "0.0.0-alpha.146",
|
|
333
333
|
"dependencies": [
|
|
334
334
|
"@agimon-ai/po-config",
|
|
335
335
|
"@agimon-ai/po-core",
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
]
|
|
338
338
|
},
|
|
339
339
|
"@agimon-ai/po-prompt": {
|
|
340
|
-
"version": "0.0.0-alpha.
|
|
340
|
+
"version": "0.0.0-alpha.146",
|
|
341
341
|
"dependencies": [
|
|
342
342
|
"@agimon-ai/po-core",
|
|
343
343
|
"@agimon-ai/po-web-components",
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
]
|
|
346
346
|
},
|
|
347
347
|
"@agimon-ai/po-read": {
|
|
348
|
-
"version": "0.0.0-alpha.
|
|
348
|
+
"version": "0.0.0-alpha.146",
|
|
349
349
|
"dependencies": [
|
|
350
350
|
"@agimon-ai/po-config",
|
|
351
351
|
"@agimon-ai/po-core",
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
]
|
|
356
356
|
},
|
|
357
357
|
"@agimon-ai/po-runner": {
|
|
358
|
-
"version": "0.0.0-alpha.
|
|
358
|
+
"version": "0.0.0-alpha.146",
|
|
359
359
|
"dependencies": [
|
|
360
360
|
"@agimon-ai/po-core",
|
|
361
361
|
"@agimon-ai/po-ui",
|
|
@@ -364,13 +364,13 @@
|
|
|
364
364
|
]
|
|
365
365
|
},
|
|
366
366
|
"@agimon-ai/po-sandbox": {
|
|
367
|
-
"version": "0.0.0-alpha.
|
|
367
|
+
"version": "0.0.0-alpha.146",
|
|
368
368
|
"dependencies": [
|
|
369
369
|
"@agimon-ai/po-core"
|
|
370
370
|
]
|
|
371
371
|
},
|
|
372
372
|
"@agimon-ai/po-session": {
|
|
373
|
-
"version": "0.0.0-alpha.
|
|
373
|
+
"version": "0.0.0-alpha.146",
|
|
374
374
|
"dependencies": [
|
|
375
375
|
"@agimon-ai/po-config",
|
|
376
376
|
"@agimon-ai/po-core",
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
]
|
|
380
380
|
},
|
|
381
381
|
"@agimon-ai/po-skill": {
|
|
382
|
-
"version": "0.0.0-alpha.
|
|
382
|
+
"version": "0.0.0-alpha.146",
|
|
383
383
|
"dependencies": [
|
|
384
384
|
"@agimon-ai/po-config",
|
|
385
385
|
"@agimon-ai/po-core",
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
]
|
|
389
389
|
},
|
|
390
390
|
"@agimon-ai/po-style-system": {
|
|
391
|
-
"version": "0.0.0-alpha.
|
|
391
|
+
"version": "0.0.0-alpha.146",
|
|
392
392
|
"dependencies": [
|
|
393
393
|
"@agimon-ai/po-core",
|
|
394
394
|
"@agimon-ai/po-web-components",
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
]
|
|
397
397
|
},
|
|
398
398
|
"@agimon-ai/po-task": {
|
|
399
|
-
"version": "0.0.0-alpha.
|
|
399
|
+
"version": "0.0.0-alpha.146",
|
|
400
400
|
"dependencies": [
|
|
401
401
|
"@agimon-ai/po-core",
|
|
402
402
|
"@agimon-ai/po-ui",
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
]
|
|
405
405
|
},
|
|
406
406
|
"@agimon-ai/po-team": {
|
|
407
|
-
"version": "0.0.0-alpha.
|
|
407
|
+
"version": "0.0.0-alpha.146",
|
|
408
408
|
"dependencies": [
|
|
409
409
|
"@agimon-ai/po-cache",
|
|
410
410
|
"@agimon-ai/po-config",
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
]
|
|
417
417
|
},
|
|
418
418
|
"@agimon-ai/po-template-advanced": {
|
|
419
|
-
"version": "0.0.0-alpha.
|
|
419
|
+
"version": "0.0.0-alpha.146",
|
|
420
420
|
"dependencies": [
|
|
421
421
|
"@agimon-ai/po-core",
|
|
422
422
|
"@agimon-ai/po-web-components",
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
]
|
|
425
425
|
},
|
|
426
426
|
"@agimon-ai/po-template-desktop": {
|
|
427
|
-
"version": "0.0.0-alpha.
|
|
427
|
+
"version": "0.0.0-alpha.145",
|
|
428
428
|
"dependencies": [
|
|
429
429
|
"@agimon-ai/po-core",
|
|
430
430
|
"@agimon-ai/po-web-components",
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
]
|
|
433
433
|
},
|
|
434
434
|
"@agimon-ai/po-template-elegant": {
|
|
435
|
-
"version": "0.0.0-alpha.
|
|
435
|
+
"version": "0.0.0-alpha.146",
|
|
436
436
|
"dependencies": [
|
|
437
437
|
"@agimon-ai/po-core",
|
|
438
438
|
"@agimon-ai/po-web-components",
|
|
@@ -440,7 +440,7 @@
|
|
|
440
440
|
]
|
|
441
441
|
},
|
|
442
442
|
"@agimon-ai/po-ui": {
|
|
443
|
-
"version": "0.0.0-alpha.
|
|
443
|
+
"version": "0.0.0-alpha.146",
|
|
444
444
|
"dependencies": [
|
|
445
445
|
"@agimon-ai/po-core",
|
|
446
446
|
"@agimon-ai/po-hashline",
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
]
|
|
450
450
|
},
|
|
451
451
|
"@agimon-ai/po-user-feedback": {
|
|
452
|
-
"version": "0.0.0-alpha.
|
|
452
|
+
"version": "0.0.0-alpha.146",
|
|
453
453
|
"dependencies": [
|
|
454
454
|
"@agimon-ai/po-core",
|
|
455
455
|
"@agimon-ai/po-minor-mode",
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
]
|
|
459
459
|
},
|
|
460
460
|
"@agimon-ai/po-vault": {
|
|
461
|
-
"version": "0.0.0-alpha.
|
|
461
|
+
"version": "0.0.0-alpha.146",
|
|
462
462
|
"dependencies": [
|
|
463
463
|
"@agimon-ai/po-core",
|
|
464
464
|
"@agimon-ai/po-db",
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
]
|
|
468
468
|
},
|
|
469
469
|
"@agimon-ai/po-vibe-lint": {
|
|
470
|
-
"version": "0.0.1-alpha.
|
|
470
|
+
"version": "0.0.1-alpha.115",
|
|
471
471
|
"dependencies": [
|
|
472
472
|
"@agimon-ai/po-config",
|
|
473
473
|
"@agimon-ai/po-core",
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
]
|
|
478
478
|
},
|
|
479
479
|
"@agimon-ai/po-voice": {
|
|
480
|
-
"version": "0.0.0-alpha.
|
|
480
|
+
"version": "0.0.0-alpha.146",
|
|
481
481
|
"dependencies": [
|
|
482
482
|
"@agimon-ai/po-config",
|
|
483
483
|
"@agimon-ai/po-core",
|
|
@@ -490,11 +490,11 @@
|
|
|
490
490
|
]
|
|
491
491
|
},
|
|
492
492
|
"@agimon-ai/po-web-components": {
|
|
493
|
-
"version": "0.0.0-alpha.
|
|
493
|
+
"version": "0.0.0-alpha.146",
|
|
494
494
|
"dependencies": []
|
|
495
495
|
},
|
|
496
496
|
"@agimon-ai/po-web-dashboard": {
|
|
497
|
-
"version": "0.0.0-alpha.
|
|
497
|
+
"version": "0.0.0-alpha.146",
|
|
498
498
|
"dependencies": [
|
|
499
499
|
"@agimon-ai/po-core",
|
|
500
500
|
"@agimon-ai/po-web-components",
|
|
@@ -502,18 +502,18 @@
|
|
|
502
502
|
]
|
|
503
503
|
},
|
|
504
504
|
"@agimon-ai/po-web-search": {
|
|
505
|
-
"version": "0.0.0-alpha.
|
|
505
|
+
"version": "0.0.0-alpha.145",
|
|
506
506
|
"dependencies": [
|
|
507
507
|
"@agimon-ai/po-core",
|
|
508
508
|
"@agimon-ai/po-web-components"
|
|
509
509
|
]
|
|
510
510
|
},
|
|
511
511
|
"@agimon-ai/po-web-security": {
|
|
512
|
-
"version": "0.0.0-alpha.
|
|
512
|
+
"version": "0.0.0-alpha.146",
|
|
513
513
|
"dependencies": []
|
|
514
514
|
},
|
|
515
515
|
"@agimon-ai/po-workflow": {
|
|
516
|
-
"version": "0.0.0-alpha.
|
|
516
|
+
"version": "0.0.0-alpha.146",
|
|
517
517
|
"dependencies": [
|
|
518
518
|
"@agimon-ai/po-core",
|
|
519
519
|
"@agimon-ai/po-ui",
|
package/dist/package.cjs
CHANGED
package/dist/package.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_webPluginScan = require("../web/webPluginScan.cjs");
|
|
3
|
+
const require_webPluginGenerate = require("../web/webPluginGenerate.cjs");
|
|
2
4
|
const require_index = require("./index.cjs");
|
|
3
5
|
const require_package = require("../../../package.cjs");
|
|
4
6
|
let _agimon_ai_po_core_apiContracts = require("@agimon-ai/po-core/apiContracts");
|
|
@@ -12,11 +14,13 @@ let _agimon_ai_po_network = require("@agimon-ai/po-network");
|
|
|
12
14
|
//#region src/builders/server/capabilities.ts
|
|
13
15
|
const digest = (text) => (0, node_crypto.createHash)("sha256").update(text).digest("hex");
|
|
14
16
|
/** Reads installed metadata in-process. No server plugin is imported to discover its operations. */
|
|
15
|
-
async function collectNodeCapabilities(roots, files, notice, templateIds = []) {
|
|
17
|
+
async function collectNodeCapabilities(roots, files, notice, templateIds = [], webPluginRoots = []) {
|
|
16
18
|
const packages = [];
|
|
19
|
+
const pluginRoots = new Set(webPluginRoots);
|
|
17
20
|
const inventory = /* @__PURE__ */ new Map();
|
|
18
21
|
for (const selection of roots) for (const { declaration } of await require_index.serverPackageCandidates(selection.compositions, notice, files)) {
|
|
19
22
|
const root = declaration.packageDir;
|
|
23
|
+
pluginRoots.add(root);
|
|
20
24
|
const manifest = JSON.parse((0, _agimon_ai_po_core_platform.getOrThrow)(await files.readTextFile(node_path.default.join(root, "package.json"), _agimon_ai_po_core_platform.BACKGROUND_CONTEXT)));
|
|
21
25
|
const name = declaration.packageName;
|
|
22
26
|
const version = typeof manifest.version === "string" ? manifest.version : "unknown";
|
|
@@ -71,9 +75,26 @@ async function collectNodeCapabilities(roots, files, notice, templateIds = []) {
|
|
|
71
75
|
id,
|
|
72
76
|
fingerprint: digest(`${id}@${require_package.version}`)
|
|
73
77
|
}));
|
|
78
|
+
const pluginInventory = /* @__PURE__ */ new Map();
|
|
79
|
+
for (const plugin of await require_webPluginScan.scanWebPlugins(void 0, [...pluginRoots], notice)) {
|
|
80
|
+
const fingerprint = await require_webPluginGenerate.webPluginPackageFingerprint(plugin);
|
|
81
|
+
const previous = pluginInventory.get(plugin.packageName);
|
|
82
|
+
if (previous) previous.conflict ||= previous.fingerprint !== fingerprint || previous.pluginId !== plugin.pluginId;
|
|
83
|
+
else pluginInventory.set(plugin.packageName, {
|
|
84
|
+
pluginId: plugin.pluginId,
|
|
85
|
+
fingerprint,
|
|
86
|
+
conflict: false
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
const webPlugins = [...pluginInventory].filter(([, entry]) => !entry.conflict).map(([packageName, { pluginId, fingerprint }]) => ({
|
|
90
|
+
packageName,
|
|
91
|
+
pluginId,
|
|
92
|
+
fingerprint
|
|
93
|
+
})).sort((a, b) => a.packageName.localeCompare(b.packageName));
|
|
74
94
|
return {
|
|
75
95
|
packages: packages.sort((a, b) => a.name.localeCompare(b.name)),
|
|
76
|
-
templates
|
|
96
|
+
templates,
|
|
97
|
+
webPlugins
|
|
77
98
|
};
|
|
78
99
|
}
|
|
79
100
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.cjs","names":["createHash","serverPackageCandidates","getOrThrow","path","BACKGROUND_CONTEXT","validCapabilityOperations","normalizeFederationOperations","pathToFileURL","canonicalContractJson","parseApiContract","poCliVersion"],"sources":["../../../../src/builders/server/capabilities.ts"],"sourcesContent":["import { createHash } from 'node:crypto';\nimport path from 'node:path';\nimport { pathToFileURL } from 'node:url';\n\nimport { normalizeFederationOperations, type FederationCapabilities } from '@agimon-ai/po-core';\nimport { canonicalContractJson, parseApiContract } from '@agimon-ai/po-core/apiContracts';\nimport { BACKGROUND_CONTEXT, getOrThrow, type FileSystem } from '@agimon-ai/po-core/platform';\nimport { validCapabilityOperations } from '@agimon-ai/po-network';\n\nimport { version as poCliVersion } from '../../../package.json';\nimport type { ExtensionComposition } from '../cli/extensionAssembler';\nimport { serverPackageCandidates } from './index';\n\nconst digest = (text: string) => createHash('sha256').update(text).digest('hex');\n\n/** Reads installed metadata in-process. No server plugin is imported to discover its operations. */\nexport async function collectNodeCapabilities(\n roots: readonly { root: string; compositions: readonly ExtensionComposition[] }[],\n files: FileSystem,\n notice: (message: string) => void,\n templateIds: readonly string[] = [],\n): Promise<Pick<FederationCapabilities, 'packages' | 'templates'>> {\n // ponytail: this host inventory includes selected packages even when no session mounts them.\n // Phase 7 C8 execution must return a typed unavailable error for an unmounted package.\n const packages: FederationCapabilities['packages'] = [];\n const inventory = new Map<\n string,\n { pkg: FederationCapabilities['packages'][number]; roots: Set<string>; identity: string; conflict: boolean }\n >();\n for (const selection of roots) {\n for (const { declaration } of await serverPackageCandidates(selection.compositions, notice, files)) {\n const root = declaration.packageDir;\n const manifest = JSON.parse(\n getOrThrow(await files.readTextFile(path.join(root, 'package.json'), BACKGROUND_CONTEXT)),\n );\n const name = declaration.packageName;\n const version = typeof manifest.version === 'string' ? manifest.version : 'unknown';\n const operations: FederationCapabilities['packages'][number]['operations'] = [];\n const declared: unknown = manifest.poServer?.federation?.operations;\n if (declared !== undefined) {\n const rows =\n declared && typeof declared === 'object' && !Array.isArray(declared)\n ? Object.entries(declared).map(([scope, names]) => ({ scope, names }))\n : undefined;\n // A package synced before the rename keys its allowlist 'global'; hosts advertise 'host'.\n if (validCapabilityOperations(rows)) operations.push(...normalizeFederationOperations(rows));\n else notice(`Invalid federation operation allowlist for '${name}'; operations omitted.`);\n }\n let contractFingerprint = digest(`${name}@${version}`);\n try {\n const entry: unknown = manifest.poServer?.contracts?.dist;\n if (typeof entry !== 'string' || !entry.startsWith('./') || entry.includes('..') || /[\\\\%?#]/u.test(entry))\n throw new Error('No contained contract entry');\n const built = getOrThrow(await files.canonicalPath(path.join(root, entry), BACKGROUND_CONTEXT));\n const relative = path.relative(getOrThrow(await files.canonicalPath(root, BACKGROUND_CONTEXT)), built);\n if (relative.startsWith('..') || path.isAbsolute(relative)) throw new Error('Contract escapes package');\n const bytes = getOrThrow(await files.readTextFile(built, BACKGROUND_CONTEXT));\n const contract = await import(`${pathToFileURL(built).href}?sha256=${digest(bytes)}`);\n contractFingerprint = digest(canonicalContractJson(parseApiContract(contract.default)));\n } catch {\n // An unreadable contract uses the specified name/version fingerprint, not an executable fallback.\n contractFingerprint = digest(`${name}@${version}`);\n }\n const pkg = { name, version, contractFingerprint, operations };\n const identity = JSON.stringify([\n version,\n ['host', 'workspace', 'session'].map((scope) => [\n scope,\n [...(operations.find((row) => row.scope === scope)?.names ?? [])].sort(),\n ]),\n ]);\n const previous = inventory.get(name);\n if (previous) {\n previous.roots.add(selection.root);\n previous.conflict ||= previous.identity !== identity;\n } else inventory.set(name, { pkg, identity, roots: new Set([selection.root]), conflict: false });\n }\n }\n // ponytail: conflicting per-workspace package versions/operations are not advertised.\n // Phase 7 can add per-workspace package entries to C7 instead of dropping these packages.\n for (const [name, entry] of inventory) {\n if (entry.conflict)\n notice(\n `Conflicting federation package '${name}' in roots: ${[...entry.roots].sort().join(', ')}; package omitted.`,\n );\n else packages.push(entry.pkg);\n }\n // ponytail: only configured templates are advertised, not every installed template.\n // Phase 7 remote UI can replace this ceiling with a package.json template declaration.\n const templates = [...new Set(templateIds)]\n .sort()\n .map((id) => ({ id, fingerprint: digest(`${id}@${poCliVersion}`) }));\n return { packages: packages.sort((a, b) => a.name.localeCompare(b.name)), templates };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"capabilities.cjs","names":["createHash","serverPackageCandidates","getOrThrow","path","BACKGROUND_CONTEXT","validCapabilityOperations","normalizeFederationOperations","pathToFileURL","canonicalContractJson","parseApiContract","poCliVersion","scanWebPlugins","webPluginPackageFingerprint"],"sources":["../../../../src/builders/server/capabilities.ts"],"sourcesContent":["import { createHash } from 'node:crypto';\nimport path from 'node:path';\nimport { pathToFileURL } from 'node:url';\n\nimport { normalizeFederationOperations, type FederationCapabilities } from '@agimon-ai/po-core';\nimport { canonicalContractJson, parseApiContract } from '@agimon-ai/po-core/apiContracts';\nimport { BACKGROUND_CONTEXT, getOrThrow, type FileSystem } from '@agimon-ai/po-core/platform';\nimport { validCapabilityOperations } from '@agimon-ai/po-network';\n\nimport { version as poCliVersion } from '../../../package.json';\nimport type { ExtensionComposition } from '../cli/extensionAssembler';\nimport { webPluginPackageFingerprint } from '../web/webPluginGenerate';\nimport { scanWebPlugins } from '../web/webPluginScan';\nimport { serverPackageCandidates } from './index';\n\nconst digest = (text: string) => createHash('sha256').update(text).digest('hex');\n\n/** Reads installed metadata in-process. No server plugin is imported to discover its operations. */\nexport async function collectNodeCapabilities(\n roots: readonly { root: string; compositions: readonly ExtensionComposition[] }[],\n files: FileSystem,\n notice: (message: string) => void,\n templateIds: readonly string[] = [],\n webPluginRoots: readonly string[] = [],\n): Promise<Pick<FederationCapabilities, 'packages' | 'templates' | 'webPlugins'>> {\n // ponytail: this host inventory includes selected packages even when no session mounts them.\n // Phase 7 C8 execution must return a typed unavailable error for an unmounted package.\n const packages: FederationCapabilities['packages'] = [];\n const pluginRoots = new Set(webPluginRoots);\n const inventory = new Map<\n string,\n { pkg: FederationCapabilities['packages'][number]; roots: Set<string>; identity: string; conflict: boolean }\n >();\n for (const selection of roots) {\n for (const { declaration } of await serverPackageCandidates(selection.compositions, notice, files)) {\n const root = declaration.packageDir;\n pluginRoots.add(root);\n const manifest = JSON.parse(\n getOrThrow(await files.readTextFile(path.join(root, 'package.json'), BACKGROUND_CONTEXT)),\n );\n const name = declaration.packageName;\n const version = typeof manifest.version === 'string' ? manifest.version : 'unknown';\n const operations: FederationCapabilities['packages'][number]['operations'] = [];\n const declared: unknown = manifest.poServer?.federation?.operations;\n if (declared !== undefined) {\n const rows =\n declared && typeof declared === 'object' && !Array.isArray(declared)\n ? Object.entries(declared).map(([scope, names]) => ({ scope, names }))\n : undefined;\n // A package synced before the rename keys its allowlist 'global'; hosts advertise 'host'.\n if (validCapabilityOperations(rows)) operations.push(...normalizeFederationOperations(rows));\n else notice(`Invalid federation operation allowlist for '${name}'; operations omitted.`);\n }\n let contractFingerprint = digest(`${name}@${version}`);\n try {\n const entry: unknown = manifest.poServer?.contracts?.dist;\n if (typeof entry !== 'string' || !entry.startsWith('./') || entry.includes('..') || /[\\\\%?#]/u.test(entry))\n throw new Error('No contained contract entry');\n const built = getOrThrow(await files.canonicalPath(path.join(root, entry), BACKGROUND_CONTEXT));\n const relative = path.relative(getOrThrow(await files.canonicalPath(root, BACKGROUND_CONTEXT)), built);\n if (relative.startsWith('..') || path.isAbsolute(relative)) throw new Error('Contract escapes package');\n const bytes = getOrThrow(await files.readTextFile(built, BACKGROUND_CONTEXT));\n const contract = await import(`${pathToFileURL(built).href}?sha256=${digest(bytes)}`);\n contractFingerprint = digest(canonicalContractJson(parseApiContract(contract.default)));\n } catch {\n // An unreadable contract uses the specified name/version fingerprint, not an executable fallback.\n contractFingerprint = digest(`${name}@${version}`);\n }\n const pkg = { name, version, contractFingerprint, operations };\n const identity = JSON.stringify([\n version,\n ['host', 'workspace', 'session'].map((scope) => [\n scope,\n [...(operations.find((row) => row.scope === scope)?.names ?? [])].sort(),\n ]),\n ]);\n const previous = inventory.get(name);\n if (previous) {\n previous.roots.add(selection.root);\n previous.conflict ||= previous.identity !== identity;\n } else inventory.set(name, { pkg, identity, roots: new Set([selection.root]), conflict: false });\n }\n }\n // ponytail: conflicting per-workspace package versions/operations are not advertised.\n // Phase 7 can add per-workspace package entries to C7 instead of dropping these packages.\n for (const [name, entry] of inventory) {\n if (entry.conflict)\n notice(\n `Conflicting federation package '${name}' in roots: ${[...entry.roots].sort().join(', ')}; package omitted.`,\n );\n else packages.push(entry.pkg);\n }\n // ponytail: only configured templates are advertised, not every installed template.\n // Phase 7 remote UI can replace this ceiling with a package.json template declaration.\n const templates = [...new Set(templateIds)]\n .sort()\n .map((id) => ({ id, fingerprint: digest(`${id}@${poCliVersion}`) }));\n const pluginInventory = new Map<string, { pluginId: string; fingerprint: string; conflict: boolean }>();\n for (const plugin of await scanWebPlugins(undefined, [...pluginRoots], notice)) {\n const fingerprint = await webPluginPackageFingerprint(plugin);\n const previous = pluginInventory.get(plugin.packageName);\n if (previous) previous.conflict ||= previous.fingerprint !== fingerprint || previous.pluginId !== plugin.pluginId;\n else pluginInventory.set(plugin.packageName, { pluginId: plugin.pluginId, fingerprint, conflict: false });\n }\n const webPlugins = [...pluginInventory]\n .filter(([, entry]) => !entry.conflict)\n .map(([packageName, { pluginId, fingerprint }]) => ({ packageName, pluginId, fingerprint }))\n .sort((a, b) => a.packageName.localeCompare(b.packageName));\n return { packages: packages.sort((a, b) => a.name.localeCompare(b.name)),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 -1,3 +1,5 @@
|
|
|
1
|
+
import { scanWebPlugins } from "../web/webPluginScan.mjs";
|
|
2
|
+
import { webPluginPackageFingerprint } from "../web/webPluginGenerate.mjs";
|
|
1
3
|
import { serverPackageCandidates } from "./index.mjs";
|
|
2
4
|
import { version } from "../../../package.mjs";
|
|
3
5
|
import { canonicalContractJson, parseApiContract } from "@agimon-ai/po-core/apiContracts";
|
|
@@ -10,11 +12,13 @@ import { validCapabilityOperations } from "@agimon-ai/po-network";
|
|
|
10
12
|
//#region src/builders/server/capabilities.ts
|
|
11
13
|
const digest = (text) => createHash("sha256").update(text).digest("hex");
|
|
12
14
|
/** Reads installed metadata in-process. No server plugin is imported to discover its operations. */
|
|
13
|
-
async function collectNodeCapabilities(roots, files, notice, templateIds = []) {
|
|
15
|
+
async function collectNodeCapabilities(roots, files, notice, templateIds = [], webPluginRoots = []) {
|
|
14
16
|
const packages = [];
|
|
17
|
+
const pluginRoots = new Set(webPluginRoots);
|
|
15
18
|
const inventory = /* @__PURE__ */ new Map();
|
|
16
19
|
for (const selection of roots) for (const { declaration } of await serverPackageCandidates(selection.compositions, notice, files)) {
|
|
17
20
|
const root = declaration.packageDir;
|
|
21
|
+
pluginRoots.add(root);
|
|
18
22
|
const manifest = JSON.parse(getOrThrow(await files.readTextFile(path.join(root, "package.json"), BACKGROUND_CONTEXT)));
|
|
19
23
|
const name = declaration.packageName;
|
|
20
24
|
const version = typeof manifest.version === "string" ? manifest.version : "unknown";
|
|
@@ -69,9 +73,26 @@ async function collectNodeCapabilities(roots, files, notice, templateIds = []) {
|
|
|
69
73
|
id,
|
|
70
74
|
fingerprint: digest(`${id}@${version}`)
|
|
71
75
|
}));
|
|
76
|
+
const pluginInventory = /* @__PURE__ */ new Map();
|
|
77
|
+
for (const plugin of await scanWebPlugins(void 0, [...pluginRoots], notice)) {
|
|
78
|
+
const fingerprint = await webPluginPackageFingerprint(plugin);
|
|
79
|
+
const previous = pluginInventory.get(plugin.packageName);
|
|
80
|
+
if (previous) previous.conflict ||= previous.fingerprint !== fingerprint || previous.pluginId !== plugin.pluginId;
|
|
81
|
+
else pluginInventory.set(plugin.packageName, {
|
|
82
|
+
pluginId: plugin.pluginId,
|
|
83
|
+
fingerprint,
|
|
84
|
+
conflict: false
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
const webPlugins = [...pluginInventory].filter(([, entry]) => !entry.conflict).map(([packageName, { pluginId, fingerprint }]) => ({
|
|
88
|
+
packageName,
|
|
89
|
+
pluginId,
|
|
90
|
+
fingerprint
|
|
91
|
+
})).sort((a, b) => a.packageName.localeCompare(b.packageName));
|
|
72
92
|
return {
|
|
73
93
|
packages: packages.sort((a, b) => a.name.localeCompare(b.name)),
|
|
74
|
-
templates
|
|
94
|
+
templates,
|
|
95
|
+
webPlugins
|
|
75
96
|
};
|
|
76
97
|
}
|
|
77
98
|
//#endregion
|