@agimon-ai/po 0.0.0-alpha.133 → 0.0.0-alpha.134
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 +69 -60
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/dist/src/builders/isolate/compile.cjs +97 -5
- package/dist/src/builders/isolate/compile.cjs.map +1 -1
- package/dist/src/builders/isolate/compile.mjs +97 -5
- package/dist/src/builders/isolate/compile.mjs.map +1 -1
- package/dist/src/builders/server/nativePush.cjs +4 -3
- package/dist/src/builders/server/nativePush.cjs.map +1 -1
- package/dist/src/builders/server/nativePush.mjs +4 -3
- package/dist/src/builders/server/nativePush.mjs.map +1 -1
- package/dist/src/builders/web/webPluginGenerate.cjs +6 -2
- package/dist/src/builders/web/webPluginGenerate.cjs.map +1 -1
- package/dist/src/builders/web/webPluginGenerate.d.mts.map +1 -1
- package/dist/src/builders/web/webPluginGenerate.mjs +6 -2
- package/dist/src/builders/web/webPluginGenerate.mjs.map +1 -1
- 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.134",
|
|
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.133",
|
|
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.132",
|
|
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.133",
|
|
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.133",
|
|
57
57
|
"dependencies": [
|
|
58
58
|
"@agimon-ai/po-artifact",
|
|
59
59
|
"@agimon-ai/po-config",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
"@agimon-ai/po-autostop": {
|
|
65
|
-
"version": "0.0.0-alpha.
|
|
65
|
+
"version": "0.0.0-alpha.133",
|
|
66
66
|
"dependencies": [
|
|
67
67
|
"@agimon-ai/po-core"
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"@agimon-ai/po-browse": {
|
|
71
|
-
"version": "0.0.1-alpha.
|
|
71
|
+
"version": "0.0.1-alpha.131",
|
|
72
72
|
"dependencies": [
|
|
73
73
|
"@agimon-ai/po-config",
|
|
74
74
|
"@agimon-ai/po-core",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
]
|
|
77
77
|
},
|
|
78
78
|
"@agimon-ai/po-build": {
|
|
79
|
-
"version": "0.0.0-alpha.
|
|
79
|
+
"version": "0.0.0-alpha.133",
|
|
80
80
|
"dependencies": []
|
|
81
81
|
},
|
|
82
82
|
"@agimon-ai/po-cache": {
|
|
83
|
-
"version": "0.0.0-alpha.
|
|
83
|
+
"version": "0.0.0-alpha.133",
|
|
84
84
|
"dependencies": [
|
|
85
85
|
"@agimon-ai/po-config",
|
|
86
86
|
"@agimon-ai/po-core",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
]
|
|
89
89
|
},
|
|
90
90
|
"@agimon-ai/po-calendar": {
|
|
91
|
-
"version": "0.0.1-alpha.
|
|
91
|
+
"version": "0.0.1-alpha.92",
|
|
92
92
|
"dependencies": [
|
|
93
93
|
"@agimon-ai/po-config",
|
|
94
94
|
"@agimon-ai/po-core",
|
|
@@ -100,11 +100,11 @@
|
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
102
|
"@agimon-ai/po-claude-bridge": {
|
|
103
|
-
"version": "0.1.1-alpha.
|
|
103
|
+
"version": "0.1.1-alpha.113",
|
|
104
104
|
"dependencies": []
|
|
105
105
|
},
|
|
106
106
|
"@agimon-ai/po-codemode": {
|
|
107
|
-
"version": "0.0.1-alpha.
|
|
107
|
+
"version": "0.0.1-alpha.106",
|
|
108
108
|
"dependencies": [
|
|
109
109
|
"@agimon-ai/po-config",
|
|
110
110
|
"@agimon-ai/po-core",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
]
|
|
113
113
|
},
|
|
114
114
|
"@agimon-ai/po-computer-use": {
|
|
115
|
-
"version": "0.0.0-alpha.
|
|
115
|
+
"version": "0.0.0-alpha.133",
|
|
116
116
|
"dependencies": [
|
|
117
117
|
"@agimon-ai/po-config",
|
|
118
118
|
"@agimon-ai/po-core",
|
|
@@ -122,26 +122,26 @@
|
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
124
|
"@agimon-ai/po-config": {
|
|
125
|
-
"version": "0.0.0-alpha.
|
|
125
|
+
"version": "0.0.0-alpha.133",
|
|
126
126
|
"dependencies": [
|
|
127
127
|
"@agimon-ai/po-core",
|
|
128
128
|
"@agimon-ai/po-web-components"
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
131
|
"@agimon-ai/po-core": {
|
|
132
|
-
"version": "0.0.0-alpha.
|
|
132
|
+
"version": "0.0.0-alpha.133",
|
|
133
133
|
"dependencies": [
|
|
134
134
|
"@agimon-ai/po-web-security"
|
|
135
135
|
]
|
|
136
136
|
},
|
|
137
137
|
"@agimon-ai/po-db": {
|
|
138
|
-
"version": "0.0.0-alpha.
|
|
138
|
+
"version": "0.0.0-alpha.133",
|
|
139
139
|
"dependencies": [
|
|
140
140
|
"@agimon-ai/po-core"
|
|
141
141
|
]
|
|
142
142
|
},
|
|
143
143
|
"@agimon-ai/po-domain": {
|
|
144
|
-
"version": "0.0.0-alpha.
|
|
144
|
+
"version": "0.0.0-alpha.133",
|
|
145
145
|
"dependencies": [
|
|
146
146
|
"@agimon-ai/po-config",
|
|
147
147
|
"@agimon-ai/po-core",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
]
|
|
152
152
|
},
|
|
153
153
|
"@agimon-ai/po-edit": {
|
|
154
|
-
"version": "0.0.0-alpha.
|
|
154
|
+
"version": "0.0.0-alpha.133",
|
|
155
155
|
"dependencies": [
|
|
156
156
|
"@agimon-ai/po-core",
|
|
157
157
|
"@agimon-ai/po-hashline",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
]
|
|
161
161
|
},
|
|
162
162
|
"@agimon-ai/po-file-edit": {
|
|
163
|
-
"version": "0.0.0-alpha.
|
|
163
|
+
"version": "0.0.0-alpha.133",
|
|
164
164
|
"dependencies": [
|
|
165
165
|
"@agimon-ai/po-config",
|
|
166
166
|
"@agimon-ai/po-core",
|
|
@@ -170,13 +170,13 @@
|
|
|
170
170
|
]
|
|
171
171
|
},
|
|
172
172
|
"@agimon-ai/po-gateway": {
|
|
173
|
-
"version": "0.0.1-alpha.
|
|
173
|
+
"version": "0.0.1-alpha.12",
|
|
174
174
|
"dependencies": [
|
|
175
175
|
"@agimon-ai/po-core"
|
|
176
176
|
]
|
|
177
177
|
},
|
|
178
178
|
"@agimon-ai/po-git": {
|
|
179
|
-
"version": "0.0.0-alpha.
|
|
179
|
+
"version": "0.0.0-alpha.133",
|
|
180
180
|
"dependencies": [
|
|
181
181
|
"@agimon-ai/po-core",
|
|
182
182
|
"@agimon-ai/po-session",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
]
|
|
186
186
|
},
|
|
187
187
|
"@agimon-ai/po-goal": {
|
|
188
|
-
"version": "0.0.0-alpha.
|
|
188
|
+
"version": "0.0.0-alpha.133",
|
|
189
189
|
"dependencies": [
|
|
190
190
|
"@agimon-ai/po-core",
|
|
191
191
|
"@agimon-ai/po-minor-mode",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
]
|
|
195
195
|
},
|
|
196
196
|
"@agimon-ai/po-grep": {
|
|
197
|
-
"version": "0.0.0-alpha.
|
|
197
|
+
"version": "0.0.0-alpha.133",
|
|
198
198
|
"dependencies": [
|
|
199
199
|
"@agimon-ai/po-core",
|
|
200
200
|
"@agimon-ai/po-hashline",
|
|
@@ -203,11 +203,11 @@
|
|
|
203
203
|
]
|
|
204
204
|
},
|
|
205
205
|
"@agimon-ai/po-hashline": {
|
|
206
|
-
"version": "0.0.0-alpha.
|
|
206
|
+
"version": "0.0.0-alpha.133",
|
|
207
207
|
"dependencies": []
|
|
208
208
|
},
|
|
209
209
|
"@agimon-ai/po-help": {
|
|
210
|
-
"version": "0.0.0-alpha.
|
|
210
|
+
"version": "0.0.0-alpha.133",
|
|
211
211
|
"dependencies": [
|
|
212
212
|
"@agimon-ai/po-core",
|
|
213
213
|
"@agimon-ai/po-minor-mode",
|
|
@@ -216,14 +216,14 @@
|
|
|
216
216
|
]
|
|
217
217
|
},
|
|
218
218
|
"@agimon-ai/po-identity": {
|
|
219
|
-
"version": "0.0.2-alpha.
|
|
219
|
+
"version": "0.0.2-alpha.80",
|
|
220
220
|
"dependencies": [
|
|
221
221
|
"@agimon-ai/po-core",
|
|
222
222
|
"@agimon-ai/po-web-security"
|
|
223
223
|
]
|
|
224
224
|
},
|
|
225
225
|
"@agimon-ai/po-image-gen": {
|
|
226
|
-
"version": "0.0.0-alpha.
|
|
226
|
+
"version": "0.0.0-alpha.132",
|
|
227
227
|
"dependencies": [
|
|
228
228
|
"@agimon-ai/po-core",
|
|
229
229
|
"@agimon-ai/po-web-components",
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
]
|
|
232
232
|
},
|
|
233
233
|
"@agimon-ai/po-ios": {
|
|
234
|
-
"version": "0.0.1-alpha.
|
|
234
|
+
"version": "0.0.1-alpha.68",
|
|
235
235
|
"dependencies": [
|
|
236
236
|
"@agimon-ai/po-artifact",
|
|
237
237
|
"@agimon-ai/po-config",
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
]
|
|
242
242
|
},
|
|
243
243
|
"@agimon-ai/po-log": {
|
|
244
|
-
"version": "0.0.0-alpha.
|
|
244
|
+
"version": "0.0.0-alpha.133",
|
|
245
245
|
"dependencies": [
|
|
246
246
|
"@agimon-ai/po-core",
|
|
247
247
|
"@agimon-ai/po-web-components",
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
]
|
|
250
250
|
},
|
|
251
251
|
"@agimon-ai/po-major-mode": {
|
|
252
|
-
"version": "0.0.0-alpha.
|
|
252
|
+
"version": "0.0.0-alpha.133",
|
|
253
253
|
"dependencies": [
|
|
254
254
|
"@agimon-ai/po-config",
|
|
255
255
|
"@agimon-ai/po-core",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
]
|
|
258
258
|
},
|
|
259
259
|
"@agimon-ai/po-mcp": {
|
|
260
|
-
"version": "0.0.0-alpha.
|
|
260
|
+
"version": "0.0.0-alpha.133",
|
|
261
261
|
"dependencies": [
|
|
262
262
|
"@agimon-ai/po-config",
|
|
263
263
|
"@agimon-ai/po-core",
|
|
@@ -268,30 +268,30 @@
|
|
|
268
268
|
]
|
|
269
269
|
},
|
|
270
270
|
"@agimon-ai/po-mcp-proxy": {
|
|
271
|
-
"version": "0.0.1-alpha.
|
|
271
|
+
"version": "0.0.1-alpha.112",
|
|
272
272
|
"dependencies": []
|
|
273
273
|
},
|
|
274
274
|
"@agimon-ai/po-minor-mode": {
|
|
275
|
-
"version": "0.0.0-alpha.
|
|
275
|
+
"version": "0.0.0-alpha.133",
|
|
276
276
|
"dependencies": [
|
|
277
277
|
"@agimon-ai/po-core"
|
|
278
278
|
]
|
|
279
279
|
},
|
|
280
280
|
"@agimon-ai/po-model-guidance": {
|
|
281
|
-
"version": "0.0.0-alpha.
|
|
281
|
+
"version": "0.0.0-alpha.133",
|
|
282
282
|
"dependencies": [
|
|
283
283
|
"@agimon-ai/po-config",
|
|
284
284
|
"@agimon-ai/po-core"
|
|
285
285
|
]
|
|
286
286
|
},
|
|
287
287
|
"@agimon-ai/po-native-components": {
|
|
288
|
-
"version": "0.0.0-alpha.
|
|
288
|
+
"version": "0.0.0-alpha.133",
|
|
289
289
|
"dependencies": [
|
|
290
290
|
"@agimon-ai/po-web-components"
|
|
291
291
|
]
|
|
292
292
|
},
|
|
293
293
|
"@agimon-ai/po-native-dashboard": {
|
|
294
|
-
"version": "0.0.0-alpha.
|
|
294
|
+
"version": "0.0.0-alpha.5",
|
|
295
295
|
"dependencies": [
|
|
296
296
|
"@agimon-ai/po-core",
|
|
297
297
|
"@agimon-ai/po-native-components",
|
|
@@ -299,21 +299,21 @@
|
|
|
299
299
|
]
|
|
300
300
|
},
|
|
301
301
|
"@agimon-ai/po-network": {
|
|
302
|
-
"version": "0.0.2-alpha.
|
|
302
|
+
"version": "0.0.2-alpha.80",
|
|
303
303
|
"dependencies": [
|
|
304
304
|
"@agimon-ai/po-core",
|
|
305
305
|
"@agimon-ai/po-web-security"
|
|
306
306
|
]
|
|
307
307
|
},
|
|
308
308
|
"@agimon-ai/po-notification": {
|
|
309
|
-
"version": "0.0.0-alpha.
|
|
309
|
+
"version": "0.0.0-alpha.133",
|
|
310
310
|
"dependencies": [
|
|
311
311
|
"@agimon-ai/po-autostop",
|
|
312
312
|
"@agimon-ai/po-core"
|
|
313
313
|
]
|
|
314
314
|
},
|
|
315
315
|
"@agimon-ai/po-plan": {
|
|
316
|
-
"version": "0.0.0-alpha.
|
|
316
|
+
"version": "0.0.0-alpha.133",
|
|
317
317
|
"dependencies": [
|
|
318
318
|
"@agimon-ai/po-config",
|
|
319
319
|
"@agimon-ai/po-core",
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
]
|
|
324
324
|
},
|
|
325
325
|
"@agimon-ai/po-profile": {
|
|
326
|
-
"version": "0.0.0-alpha.
|
|
326
|
+
"version": "0.0.0-alpha.133",
|
|
327
327
|
"dependencies": [
|
|
328
328
|
"@agimon-ai/po-config",
|
|
329
329
|
"@agimon-ai/po-core",
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
]
|
|
332
332
|
},
|
|
333
333
|
"@agimon-ai/po-prompt": {
|
|
334
|
-
"version": "0.0.0-alpha.
|
|
334
|
+
"version": "0.0.0-alpha.133",
|
|
335
335
|
"dependencies": [
|
|
336
336
|
"@agimon-ai/po-core",
|
|
337
337
|
"@agimon-ai/po-web-components",
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
]
|
|
340
340
|
},
|
|
341
341
|
"@agimon-ai/po-read": {
|
|
342
|
-
"version": "0.0.0-alpha.
|
|
342
|
+
"version": "0.0.0-alpha.133",
|
|
343
343
|
"dependencies": [
|
|
344
344
|
"@agimon-ai/po-config",
|
|
345
345
|
"@agimon-ai/po-core",
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
]
|
|
350
350
|
},
|
|
351
351
|
"@agimon-ai/po-runner": {
|
|
352
|
-
"version": "0.0.0-alpha.
|
|
352
|
+
"version": "0.0.0-alpha.133",
|
|
353
353
|
"dependencies": [
|
|
354
354
|
"@agimon-ai/po-core",
|
|
355
355
|
"@agimon-ai/po-ui",
|
|
@@ -358,13 +358,13 @@
|
|
|
358
358
|
]
|
|
359
359
|
},
|
|
360
360
|
"@agimon-ai/po-sandbox": {
|
|
361
|
-
"version": "0.0.0-alpha.
|
|
361
|
+
"version": "0.0.0-alpha.133",
|
|
362
362
|
"dependencies": [
|
|
363
363
|
"@agimon-ai/po-core"
|
|
364
364
|
]
|
|
365
365
|
},
|
|
366
366
|
"@agimon-ai/po-session": {
|
|
367
|
-
"version": "0.0.0-alpha.
|
|
367
|
+
"version": "0.0.0-alpha.133",
|
|
368
368
|
"dependencies": [
|
|
369
369
|
"@agimon-ai/po-config",
|
|
370
370
|
"@agimon-ai/po-core",
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
]
|
|
373
373
|
},
|
|
374
374
|
"@agimon-ai/po-skill": {
|
|
375
|
-
"version": "0.0.0-alpha.
|
|
375
|
+
"version": "0.0.0-alpha.133",
|
|
376
376
|
"dependencies": [
|
|
377
377
|
"@agimon-ai/po-config",
|
|
378
378
|
"@agimon-ai/po-core",
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
]
|
|
382
382
|
},
|
|
383
383
|
"@agimon-ai/po-style-system": {
|
|
384
|
-
"version": "0.0.0-alpha.
|
|
384
|
+
"version": "0.0.0-alpha.133",
|
|
385
385
|
"dependencies": [
|
|
386
386
|
"@agimon-ai/po-core",
|
|
387
387
|
"@agimon-ai/po-web-components",
|
|
@@ -389,7 +389,7 @@
|
|
|
389
389
|
]
|
|
390
390
|
},
|
|
391
391
|
"@agimon-ai/po-task": {
|
|
392
|
-
"version": "0.0.0-alpha.
|
|
392
|
+
"version": "0.0.0-alpha.133",
|
|
393
393
|
"dependencies": [
|
|
394
394
|
"@agimon-ai/po-core",
|
|
395
395
|
"@agimon-ai/po-ui",
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
]
|
|
398
398
|
},
|
|
399
399
|
"@agimon-ai/po-team": {
|
|
400
|
-
"version": "0.0.0-alpha.
|
|
400
|
+
"version": "0.0.0-alpha.133",
|
|
401
401
|
"dependencies": [
|
|
402
402
|
"@agimon-ai/po-cache",
|
|
403
403
|
"@agimon-ai/po-config",
|
|
@@ -409,6 +409,14 @@
|
|
|
409
409
|
]
|
|
410
410
|
},
|
|
411
411
|
"@agimon-ai/po-template-advanced": {
|
|
412
|
+
"version": "0.0.0-alpha.133",
|
|
413
|
+
"dependencies": [
|
|
414
|
+
"@agimon-ai/po-core",
|
|
415
|
+
"@agimon-ai/po-web-components",
|
|
416
|
+
"@agimon-ai/po-web-dashboard"
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
"@agimon-ai/po-template-desktop": {
|
|
412
420
|
"version": "0.0.0-alpha.132",
|
|
413
421
|
"dependencies": [
|
|
414
422
|
"@agimon-ai/po-core",
|
|
@@ -417,7 +425,7 @@
|
|
|
417
425
|
]
|
|
418
426
|
},
|
|
419
427
|
"@agimon-ai/po-template-elegant": {
|
|
420
|
-
"version": "0.0.0-alpha.
|
|
428
|
+
"version": "0.0.0-alpha.133",
|
|
421
429
|
"dependencies": [
|
|
422
430
|
"@agimon-ai/po-core",
|
|
423
431
|
"@agimon-ai/po-web-components",
|
|
@@ -425,7 +433,7 @@
|
|
|
425
433
|
]
|
|
426
434
|
},
|
|
427
435
|
"@agimon-ai/po-ui": {
|
|
428
|
-
"version": "0.0.0-alpha.
|
|
436
|
+
"version": "0.0.0-alpha.133",
|
|
429
437
|
"dependencies": [
|
|
430
438
|
"@agimon-ai/po-core",
|
|
431
439
|
"@agimon-ai/po-hashline",
|
|
@@ -434,7 +442,7 @@
|
|
|
434
442
|
]
|
|
435
443
|
},
|
|
436
444
|
"@agimon-ai/po-user-feedback": {
|
|
437
|
-
"version": "0.0.0-alpha.
|
|
445
|
+
"version": "0.0.0-alpha.133",
|
|
438
446
|
"dependencies": [
|
|
439
447
|
"@agimon-ai/po-core",
|
|
440
448
|
"@agimon-ai/po-minor-mode",
|
|
@@ -443,7 +451,7 @@
|
|
|
443
451
|
]
|
|
444
452
|
},
|
|
445
453
|
"@agimon-ai/po-vault": {
|
|
446
|
-
"version": "0.0.0-alpha.
|
|
454
|
+
"version": "0.0.0-alpha.133",
|
|
447
455
|
"dependencies": [
|
|
448
456
|
"@agimon-ai/po-core",
|
|
449
457
|
"@agimon-ai/po-db",
|
|
@@ -452,7 +460,7 @@
|
|
|
452
460
|
]
|
|
453
461
|
},
|
|
454
462
|
"@agimon-ai/po-vibe-lint": {
|
|
455
|
-
"version": "0.0.1-alpha.
|
|
463
|
+
"version": "0.0.1-alpha.102",
|
|
456
464
|
"dependencies": [
|
|
457
465
|
"@agimon-ai/po-config",
|
|
458
466
|
"@agimon-ai/po-core",
|
|
@@ -462,7 +470,7 @@
|
|
|
462
470
|
]
|
|
463
471
|
},
|
|
464
472
|
"@agimon-ai/po-voice": {
|
|
465
|
-
"version": "0.0.0-alpha.
|
|
473
|
+
"version": "0.0.0-alpha.133",
|
|
466
474
|
"dependencies": [
|
|
467
475
|
"@agimon-ai/po-config",
|
|
468
476
|
"@agimon-ai/po-core",
|
|
@@ -475,11 +483,11 @@
|
|
|
475
483
|
]
|
|
476
484
|
},
|
|
477
485
|
"@agimon-ai/po-web-components": {
|
|
478
|
-
"version": "0.0.0-alpha.
|
|
486
|
+
"version": "0.0.0-alpha.133",
|
|
479
487
|
"dependencies": []
|
|
480
488
|
},
|
|
481
489
|
"@agimon-ai/po-web-dashboard": {
|
|
482
|
-
"version": "0.0.0-alpha.
|
|
490
|
+
"version": "0.0.0-alpha.133",
|
|
483
491
|
"dependencies": [
|
|
484
492
|
"@agimon-ai/po-core",
|
|
485
493
|
"@agimon-ai/po-web-components",
|
|
@@ -487,18 +495,18 @@
|
|
|
487
495
|
]
|
|
488
496
|
},
|
|
489
497
|
"@agimon-ai/po-web-search": {
|
|
490
|
-
"version": "0.0.0-alpha.
|
|
498
|
+
"version": "0.0.0-alpha.132",
|
|
491
499
|
"dependencies": [
|
|
492
500
|
"@agimon-ai/po-core",
|
|
493
501
|
"@agimon-ai/po-web-components"
|
|
494
502
|
]
|
|
495
503
|
},
|
|
496
504
|
"@agimon-ai/po-web-security": {
|
|
497
|
-
"version": "0.0.0-alpha.
|
|
505
|
+
"version": "0.0.0-alpha.133",
|
|
498
506
|
"dependencies": []
|
|
499
507
|
},
|
|
500
508
|
"@agimon-ai/po-workflow": {
|
|
501
|
-
"version": "0.0.0-alpha.
|
|
509
|
+
"version": "0.0.0-alpha.133",
|
|
502
510
|
"dependencies": [
|
|
503
511
|
"@agimon-ai/po-core",
|
|
504
512
|
"@agimon-ai/po-ui",
|
|
@@ -536,6 +544,7 @@
|
|
|
536
544
|
"@agimon-ai/po-task",
|
|
537
545
|
"@agimon-ai/po-team",
|
|
538
546
|
"@agimon-ai/po-template-advanced",
|
|
547
|
+
"@agimon-ai/po-template-desktop",
|
|
539
548
|
"@agimon-ai/po-template-elegant",
|
|
540
549
|
"@agimon-ai/po-user-feedback",
|
|
541
550
|
"@agimon-ai/po-vibe-lint",
|
package/dist/package.cjs
CHANGED
package/dist/package.mjs
CHANGED
|
@@ -19,6 +19,26 @@ const FUNCTION_TYPES = /* @__PURE__ */ new Set([
|
|
|
19
19
|
"FunctionExpression",
|
|
20
20
|
"ArrowFunctionExpression"
|
|
21
21
|
]);
|
|
22
|
+
/**
|
|
23
|
+
* The `node:fs` sync calls a script may make. Code mode's fs is async (po/fs), so each call is awaited where it is
|
|
24
|
+
* made; keep in step with the `*Sync` names of po-codemode's fsModule.
|
|
25
|
+
*/
|
|
26
|
+
const FS_SYNC_CALLS = new Set([
|
|
27
|
+
"readFile",
|
|
28
|
+
"writeFile",
|
|
29
|
+
"appendFile",
|
|
30
|
+
"readdir",
|
|
31
|
+
"stat",
|
|
32
|
+
"lstat",
|
|
33
|
+
"mkdir",
|
|
34
|
+
"rm",
|
|
35
|
+
"unlink",
|
|
36
|
+
"rename",
|
|
37
|
+
"copyFile",
|
|
38
|
+
"realpath",
|
|
39
|
+
"access",
|
|
40
|
+
"exists"
|
|
41
|
+
].map((name) => `${name}Sync`));
|
|
22
42
|
const BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
23
43
|
/** How a body is wrapped: the exec script runs at once, an imported one becomes a function of `args`. */
|
|
24
44
|
const WRAPPERS = {
|
|
@@ -59,10 +79,76 @@ function sourceLines(mappings) {
|
|
|
59
79
|
}
|
|
60
80
|
return lines;
|
|
61
81
|
}
|
|
82
|
+
/** The fs sync call a node makes, `fs.readFileSync(...)` or a destructured `readFileSync(...)`, if any. */
|
|
83
|
+
function fsSyncName(node) {
|
|
84
|
+
if (!node) return void 0;
|
|
85
|
+
const name = node.type === "Identifier" ? node.name : node.type === "MemberExpression" && !node.computed && isNode(node.property) ? node.property.name : void 0;
|
|
86
|
+
return typeof name === "string" && FS_SYNC_CALLS.has(name) ? name : void 0;
|
|
87
|
+
}
|
|
88
|
+
/** Whether a function's own body (not a nested function) makes an fs sync call. */
|
|
89
|
+
function hasDirectSyncCall(fn) {
|
|
90
|
+
const scan = (node) => {
|
|
91
|
+
if (node !== fn && FUNCTION_TYPES.has(node.type)) return false;
|
|
92
|
+
if (node.type === "CallExpression" && fsSyncName(isNode(node.callee) ? node.callee : void 0)) return true;
|
|
93
|
+
return Object.entries(node).some(([key, value]) => key === "parent" ? false : Array.isArray(value) ? value.some((child) => isNode(child) && scan(child)) : isNode(value) && scan(value));
|
|
94
|
+
};
|
|
95
|
+
return scan(fn);
|
|
96
|
+
}
|
|
97
|
+
const ARRAY_ONLY = "if (!Array.isArray(a)) throw new TypeError('An fs sync call inside a callback works only on arrays; use a for loop.');";
|
|
98
|
+
/** Sequential, awaited versions of array methods, so an fs sync call inside their callback stays in order. */
|
|
99
|
+
const ARRAY_HELPERS = Object.fromEntries(Object.entries({
|
|
100
|
+
map: "const r = []; for (let i = 0; i < a.length; i++) r.push(await f(a[i], i, a)); return r;",
|
|
101
|
+
flatMap: "const r = []; for (let i = 0; i < a.length; i++) r.push(await f(a[i], i, a)); return r.flat();",
|
|
102
|
+
forEach: "for (let i = 0; i < a.length; i++) await f(a[i], i, a);",
|
|
103
|
+
filter: "const r = []; for (let i = 0; i < a.length; i++) if (await f(a[i], i, a)) r.push(a[i]); return r;",
|
|
104
|
+
some: "for (let i = 0; i < a.length; i++) if (await f(a[i], i, a)) return true; return false;",
|
|
105
|
+
every: "for (let i = 0; i < a.length; i++) if (!(await f(a[i], i, a))) return false; return true;",
|
|
106
|
+
find: "for (let i = 0; i < a.length; i++) if (await f(a[i], i, a)) return a[i]; return undefined;",
|
|
107
|
+
findIndex: "for (let i = 0; i < a.length; i++) if (await f(a[i], i, a)) return i; return -1;"
|
|
108
|
+
}).map(([name, body]) => [name, `async (a, f) => { ${ARRAY_ONLY} ${body} }`]));
|
|
109
|
+
/**
|
|
110
|
+
* Rewrites `xs.filter(f => fs.existsSync(f))` and the other ARRAY_HELPERS methods to an awaited sequential helper with
|
|
111
|
+
* an async callback, so fs sync calls inside array callbacks stay non-blocking. Adds no lines, so mappings hold.
|
|
112
|
+
*/
|
|
113
|
+
function convertArrayCallbacks(code, program) {
|
|
114
|
+
const output = new magic_string.default(code);
|
|
115
|
+
const madeAsync = /* @__PURE__ */ new Set();
|
|
116
|
+
const visit = (node, inAsync) => {
|
|
117
|
+
const callee = isNode(node.callee) ? node.callee : void 0;
|
|
118
|
+
const args = Array.isArray(node.arguments) ? node.arguments : [];
|
|
119
|
+
const [callback] = args;
|
|
120
|
+
const method = node.type === "CallExpression" && callee?.type === "MemberExpression" && !callee.computed && isNode(callee.property) ? callee.property.name : void 0;
|
|
121
|
+
if (inAsync && typeof method === "string" && ARRAY_HELPERS[method] && args.length === 1 && callback && FUNCTION_TYPES.has(callback.type) && callback.async !== true && callback.generator !== true && isNode(callee?.object) && hasDirectSyncCall(callback)) {
|
|
122
|
+
output.appendLeft(node.start, `(await (${ARRAY_HELPERS[method]})(`);
|
|
123
|
+
output.overwrite(callee.object.end, callback.start, ", async ");
|
|
124
|
+
output.overwrite(callback.end, node.end, "))");
|
|
125
|
+
madeAsync.add(callback);
|
|
126
|
+
}
|
|
127
|
+
const childAsync = FUNCTION_TYPES.has(node.type) ? node.async === true || madeAsync.has(node) : inAsync;
|
|
128
|
+
for (const [key, value] of Object.entries(node)) {
|
|
129
|
+
if (key === "parent") continue;
|
|
130
|
+
if (Array.isArray(value)) {
|
|
131
|
+
for (const child of value) if (isNode(child)) visit(child, childAsync);
|
|
132
|
+
}
|
|
133
|
+
if (isNode(value)) visit(value, childAsync);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
visit(program, false);
|
|
137
|
+
return output.toString();
|
|
138
|
+
}
|
|
62
139
|
function insertGuards(code, program) {
|
|
63
140
|
const output = new magic_string.default(code);
|
|
64
|
-
const
|
|
141
|
+
const awaited = /* @__PURE__ */ new Set();
|
|
142
|
+
const visit = (node, inAsync) => {
|
|
65
143
|
if (node.type === "ImportExpression") output.overwrite(node.start, node.start + 6, require_names.IMPORT_NAME, { contentOnly: true });
|
|
144
|
+
const callee = isNode(node.callee) ? node.callee : void 0;
|
|
145
|
+
const syncCall = node.type === "CallExpression" ? fsSyncName(callee) : void 0;
|
|
146
|
+
if (syncCall && callee) {
|
|
147
|
+
if (!inAsync) throw new ScriptCompileError(`${syncCall} cannot run in this non-async function: code mode's fs is async and never blocks. Callbacks of ${Object.keys(ARRAY_HELPERS).join(", ")} are converted for you; anywhere else, make the function async and await its calls, or use a for loop.`);
|
|
148
|
+
awaited.add(callee);
|
|
149
|
+
output.prependRight(node.start, "(await ");
|
|
150
|
+
output.appendLeft(node.end, ")");
|
|
151
|
+
} else if (node.type === "MemberExpression" && !awaited.has(node) && fsSyncName(node)) throw new ScriptCompileError(`Call ${fsSyncName(node)} directly, e.g. xs.filter((x) => fs.${fsSyncName(node)}(x)), instead of passing it as a value: code mode's fs is async.`);
|
|
66
152
|
if (LOOP_TYPES.has(node.type) && isNode(node.body)) {
|
|
67
153
|
const body = node.body;
|
|
68
154
|
if (body.type === "BlockStatement") output.appendLeft(body.start + 1, GUARD_CALL);
|
|
@@ -78,15 +164,16 @@ function insertGuards(code, program) {
|
|
|
78
164
|
output.appendLeft(body.end, ")");
|
|
79
165
|
} else output.appendLeft(body.start + 1, GUARD_CALL);
|
|
80
166
|
}
|
|
167
|
+
const childAsync = FUNCTION_TYPES.has(node.type) ? node.async === true : inAsync;
|
|
81
168
|
for (const [key, value] of Object.entries(node)) {
|
|
82
169
|
if (key === "parent") continue;
|
|
83
170
|
if (Array.isArray(value)) {
|
|
84
|
-
for (const child of value) if (isNode(child)) visit(child);
|
|
171
|
+
for (const child of value) if (isNode(child)) visit(child, childAsync);
|
|
85
172
|
}
|
|
86
|
-
if (isNode(value)) visit(value);
|
|
173
|
+
if (isNode(value)) visit(value, childAsync);
|
|
87
174
|
}
|
|
88
175
|
};
|
|
89
|
-
visit(program);
|
|
176
|
+
visit(program, false);
|
|
90
177
|
return output.toString();
|
|
91
178
|
}
|
|
92
179
|
/**
|
|
@@ -117,8 +204,13 @@ function compileModule(source, kind = "main") {
|
|
|
117
204
|
throw new ScriptCompileError(message);
|
|
118
205
|
}
|
|
119
206
|
const lines = sourceLines(stripped.map?.mappings ?? "");
|
|
207
|
+
const converted = convertArrayCallbacks(stripped.code, program);
|
|
208
|
+
if (converted !== stripped.code) program = (0, rolldown_parseAst.parseAst)(converted, {
|
|
209
|
+
lang: "js",
|
|
210
|
+
sourceType: "script"
|
|
211
|
+
}, "script.js");
|
|
120
212
|
return {
|
|
121
|
-
code: insertGuards(
|
|
213
|
+
code: insertGuards(converted, program),
|
|
122
214
|
lineOf: (line) => lines[line - 1]
|
|
123
215
|
};
|
|
124
216
|
}
|