agentix-cli 0.189.1 → 0.191.0
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/{App-6AHOJ2PO.js → App-Z4OZ4VAI.js} +2 -2
- package/dist/{ChatApp-MVSQX44C.js → ChatApp-7VLNOH2N.js} +2 -2
- package/dist/{absorb-eval-PHA44MPA.js → absorb-eval-QR3EEHDE.js} +2 -2
- package/dist/{adapter-RXZGBGFY.js → adapter-VWMQAALK.js} +2 -2
- package/dist/{agent-4CGWR2XJ.js → agent-RS4W545P.js} +2 -2
- package/dist/{board-dashboard-WCRDEXEC.js → board-dashboard-RXOSENTD.js} +452 -361
- package/dist/board-dashboard-RXOSENTD.js.map +1 -0
- package/dist/chunk-2HBEZV7L.js +24 -0
- package/dist/chunk-2HBEZV7L.js.map +1 -0
- package/dist/{chunk-YHRQQ4DB.js → chunk-34O2GH4J.js} +2 -2
- package/dist/{chunk-SOVWD6TL.js → chunk-3NMBTBNW.js} +2 -2
- package/dist/{chunk-EGKOB3ZM.js → chunk-54J6PXBG.js} +2 -2
- package/dist/{chunk-PE5V2LI7.js → chunk-5ONH4ITT.js} +2 -2
- package/dist/{chunk-ZJNEJRUU.js → chunk-6MU3OEII.js} +2 -2
- package/dist/chunk-A7JSRDJL.js +3 -0
- package/dist/chunk-A7JSRDJL.js.map +1 -0
- package/dist/{chunk-OBVLO6FV.js → chunk-AS4NDKUJ.js} +2 -2
- package/dist/{chunk-URWRA3EO.js → chunk-BWBTNBPS.js} +2 -2
- package/dist/{chunk-U2OGZDAN.js → chunk-CKHLBNMN.js} +2 -2
- package/dist/{chunk-ZYZ4VQUD.js → chunk-FRTU3ICQ.js} +2 -2
- package/dist/{chunk-FKT34MQ7.js → chunk-IGLJXEXX.js} +2 -2
- package/dist/chunk-JRAG37V5.js +3 -0
- package/dist/chunk-JRAG37V5.js.map +1 -0
- package/dist/{chunk-H7VI7OTS.js → chunk-KTGTKOLV.js} +2 -2
- package/dist/{chunk-A5KZSTYI.js → chunk-L3CWRXKQ.js} +2 -2
- package/dist/{chunk-POK4IPY3.js → chunk-MW75GECE.js} +94 -92
- package/dist/chunk-MW75GECE.js.map +1 -0
- package/dist/{chunk-WXJ25XH2.js → chunk-OTCMYGQR.js} +2 -2
- package/dist/{chunk-7BA4KCRW.js → chunk-RA4WCDGV.js} +2 -2
- package/dist/{chunk-QBR6TGRW.js → chunk-RQKLUGMS.js} +3 -3
- package/dist/{chunk-YLCMN4OA.js → chunk-RRGC6Y4L.js} +2 -2
- package/dist/{chunk-JE5KSD6Z.js → chunk-S3XUIVC2.js} +2 -2
- package/dist/{chunk-WILRVP4X.js → chunk-T2NPSEPJ.js} +2 -2
- package/dist/chunk-U5B275AU.js +143 -0
- package/dist/chunk-U5B275AU.js.map +1 -0
- package/dist/{chunk-IXUG76KI.js → chunk-WXSS7VIW.js} +302 -297
- package/dist/chunk-WXSS7VIW.js.map +1 -0
- package/dist/{chunk-J522P3Z3.js → chunk-XJEBJZLX.js} +2 -2
- package/dist/{chunk-Z55PWDYH.js → chunk-XJUBFPOM.js} +2 -2
- package/dist/chunk-XVV7ZZ77.js +6 -0
- package/dist/{chunk-4ZWZ42YE.js.map → chunk-XVV7ZZ77.js.map} +1 -1
- package/dist/{chunk-2MFBCDWL.js → chunk-YFJVQOWI.js} +2 -2
- package/dist/{chunk-FM5VBO3D.js → chunk-YMDGKFIG.js} +2 -2
- package/dist/{chunk-V2O4OQZC.js → chunk-YOMLHG33.js} +2 -2
- package/dist/{chunk-XIGFRLU5.js → chunk-ZCBTTYQN.js} +20 -20
- package/dist/chunk-ZCBTTYQN.js.map +1 -0
- package/dist/{chunk-YJDQK22T.js → chunk-ZJ74H5SV.js} +2 -2
- package/dist/{chunk-BSQIPD6F.js → chunk-ZU6W3CXO.js} +36 -36
- package/dist/chunk-ZU6W3CXO.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/{client-YDESLBEL.js → client-N5YTG2K6.js} +2 -2
- package/dist/{compaction-R7VWQB6X.js → compaction-ZE2WYXHQ.js} +2 -2
- package/dist/{config-J7LIYG6O.js → config-WUB5SJPH.js} +2 -2
- package/dist/{config-mutate-WNWJL2BY.js → config-mutate-ZLPUEIVN.js} +2 -2
- package/dist/config-mutator-S5X4DOJK.js +2 -0
- package/dist/{contributions-VVKFLXVL.js → contributions-C4DKQJY6.js} +2 -2
- package/dist/{contributions-VVKFLXVL.js.map → contributions-C4DKQJY6.js.map} +1 -1
- package/dist/{doctor-IPU5KA2L.js → doctor-ND3OS575.js} +2 -2
- package/dist/fact-proposals-Z7HJG7QJ.js +2 -0
- package/dist/{follow-up-tool-NUXHITTB.js → follow-up-tool-TWOEAWOL.js} +2 -2
- package/dist/{hub-4SPXWMRT.js → hub-FUM7UY5S.js} +2 -2
- package/dist/index.d.ts +216 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ledger-5GMBLR7W.js +2 -0
- package/dist/memory-extract-QYSXPK22.js +2 -0
- package/dist/memory-migrate-SO7RC5OU.js +2 -0
- package/dist/{memory-migrate-ED37IBEL.js.map → memory-migrate-SO7RC5OU.js.map} +1 -1
- package/dist/{program-UQUMJH2Q.js → program-JLUZINRR.js} +201 -201
- package/dist/program-JLUZINRR.js.map +1 -0
- package/dist/{promote-A7VZBQUZ.js → promote-M5AJSWHZ.js} +2 -2
- package/dist/{query-5I6RBPPK.js → query-NPDKXBTN.js} +2 -2
- package/dist/{query-settings-QLLC46BO.js → query-settings-HXKZYIEV.js} +2 -2
- package/dist/registry-A2FFL4EA.js +2 -0
- package/dist/{request-planner-SF4GYBQE.js → request-planner-ANGZP4JL.js} +2 -2
- package/dist/{review-candidates-KPAZ3FYG.js → review-candidates-B7T2QA3R.js} +2 -2
- package/dist/{rotation-memo-6RP4Z3S5.js → rotation-memo-26CFE4JN.js} +4 -3
- package/dist/rotation-memo-26CFE4JN.js.map +1 -0
- package/dist/rotation-memo-store-WMDI7NND.js +2 -0
- package/dist/{rotation-memo-store-Z4D5KRA6.js.map → rotation-memo-store-WMDI7NND.js.map} +1 -1
- package/dist/{routing-RUJNJHM6.js → routing-2KWP5TAT.js} +2 -2
- package/dist/schedule-tool-2UNMXEBQ.js +2 -0
- package/dist/{scheduler-C44WJX4C.js → scheduler-VN7WDAKE.js} +2 -2
- package/dist/{seat-QY2GW3FI.js → seat-MAC3QGGD.js} +2 -2
- package/dist/{select-XJMJ2XVP.js → select-UYKEN4N4.js} +2 -2
- package/dist/{set-enabled-JC3TJ6VZ.js → set-enabled-JEUIINT3.js} +2 -2
- package/dist/{sprint-tool-NP4WN7KL.js → sprint-tool-MB2MPR4K.js} +2 -2
- package/dist/{tool-23ODBVYF.js → tool-L4CQCPRF.js} +2 -2
- package/dist/{tool-LZR4EOQJ.js → tool-SZ6C6EBP.js} +2 -2
- package/dist/{tool-KHD45TSF.js → tool-TLXKW55S.js} +2 -2
- package/dist/web/workflow-editor.global.js +457 -328
- package/dist/web/workflow-editor.global.js.map +1 -1
- package/dist/{wiki-N3JOY2NN.js → wiki-ZAHFGDKE.js} +2 -2
- package/dist/wiki-enrich-QLCQHV6B.js +2 -0
- package/package.json +1 -1
- package/dist/board-dashboard-WCRDEXEC.js.map +0 -1
- package/dist/chunk-4ZWZ42YE.js +0 -5
- package/dist/chunk-BSQIPD6F.js.map +0 -1
- package/dist/chunk-C5OCJCDC.js +0 -137
- package/dist/chunk-C5OCJCDC.js.map +0 -1
- package/dist/chunk-GQ76J72O.js +0 -3
- package/dist/chunk-GQ76J72O.js.map +0 -1
- package/dist/chunk-IXUG76KI.js.map +0 -1
- package/dist/chunk-LE3BXIUF.js +0 -23
- package/dist/chunk-LE3BXIUF.js.map +0 -1
- package/dist/chunk-POK4IPY3.js.map +0 -1
- package/dist/chunk-XIGFRLU5.js.map +0 -1
- package/dist/config-mutator-V3PSCM6Q.js +0 -2
- package/dist/fact-proposals-X2O4W7VN.js +0 -2
- package/dist/ledger-P62U3FHT.js +0 -2
- package/dist/memory-extract-NLVLQE7V.js +0 -2
- package/dist/memory-migrate-ED37IBEL.js +0 -2
- package/dist/program-UQUMJH2Q.js.map +0 -1
- package/dist/registry-J724YF5H.js +0 -2
- package/dist/rotation-memo-6RP4Z3S5.js.map +0 -1
- package/dist/rotation-memo-store-Z4D5KRA6.js +0 -2
- package/dist/schedule-tool-PX5YULLG.js +0 -2
- package/dist/wiki-enrich-ZNFEO7BX.js +0 -2
- /package/dist/{App-6AHOJ2PO.js.map → App-Z4OZ4VAI.js.map} +0 -0
- /package/dist/{ChatApp-MVSQX44C.js.map → ChatApp-7VLNOH2N.js.map} +0 -0
- /package/dist/{absorb-eval-PHA44MPA.js.map → absorb-eval-QR3EEHDE.js.map} +0 -0
- /package/dist/{adapter-RXZGBGFY.js.map → adapter-VWMQAALK.js.map} +0 -0
- /package/dist/{agent-4CGWR2XJ.js.map → agent-RS4W545P.js.map} +0 -0
- /package/dist/{chunk-YHRQQ4DB.js.map → chunk-34O2GH4J.js.map} +0 -0
- /package/dist/{chunk-SOVWD6TL.js.map → chunk-3NMBTBNW.js.map} +0 -0
- /package/dist/{chunk-EGKOB3ZM.js.map → chunk-54J6PXBG.js.map} +0 -0
- /package/dist/{chunk-PE5V2LI7.js.map → chunk-5ONH4ITT.js.map} +0 -0
- /package/dist/{chunk-ZJNEJRUU.js.map → chunk-6MU3OEII.js.map} +0 -0
- /package/dist/{chunk-OBVLO6FV.js.map → chunk-AS4NDKUJ.js.map} +0 -0
- /package/dist/{chunk-URWRA3EO.js.map → chunk-BWBTNBPS.js.map} +0 -0
- /package/dist/{chunk-U2OGZDAN.js.map → chunk-CKHLBNMN.js.map} +0 -0
- /package/dist/{chunk-ZYZ4VQUD.js.map → chunk-FRTU3ICQ.js.map} +0 -0
- /package/dist/{chunk-FKT34MQ7.js.map → chunk-IGLJXEXX.js.map} +0 -0
- /package/dist/{chunk-H7VI7OTS.js.map → chunk-KTGTKOLV.js.map} +0 -0
- /package/dist/{chunk-A5KZSTYI.js.map → chunk-L3CWRXKQ.js.map} +0 -0
- /package/dist/{chunk-WXJ25XH2.js.map → chunk-OTCMYGQR.js.map} +0 -0
- /package/dist/{chunk-7BA4KCRW.js.map → chunk-RA4WCDGV.js.map} +0 -0
- /package/dist/{chunk-QBR6TGRW.js.map → chunk-RQKLUGMS.js.map} +0 -0
- /package/dist/{chunk-YLCMN4OA.js.map → chunk-RRGC6Y4L.js.map} +0 -0
- /package/dist/{chunk-JE5KSD6Z.js.map → chunk-S3XUIVC2.js.map} +0 -0
- /package/dist/{chunk-WILRVP4X.js.map → chunk-T2NPSEPJ.js.map} +0 -0
- /package/dist/{chunk-J522P3Z3.js.map → chunk-XJEBJZLX.js.map} +0 -0
- /package/dist/{chunk-Z55PWDYH.js.map → chunk-XJUBFPOM.js.map} +0 -0
- /package/dist/{chunk-2MFBCDWL.js.map → chunk-YFJVQOWI.js.map} +0 -0
- /package/dist/{chunk-FM5VBO3D.js.map → chunk-YMDGKFIG.js.map} +0 -0
- /package/dist/{chunk-V2O4OQZC.js.map → chunk-YOMLHG33.js.map} +0 -0
- /package/dist/{chunk-YJDQK22T.js.map → chunk-ZJ74H5SV.js.map} +0 -0
- /package/dist/{client-YDESLBEL.js.map → client-N5YTG2K6.js.map} +0 -0
- /package/dist/{compaction-R7VWQB6X.js.map → compaction-ZE2WYXHQ.js.map} +0 -0
- /package/dist/{config-J7LIYG6O.js.map → config-WUB5SJPH.js.map} +0 -0
- /package/dist/{config-mutate-WNWJL2BY.js.map → config-mutate-ZLPUEIVN.js.map} +0 -0
- /package/dist/{config-mutator-V3PSCM6Q.js.map → config-mutator-S5X4DOJK.js.map} +0 -0
- /package/dist/{doctor-IPU5KA2L.js.map → doctor-ND3OS575.js.map} +0 -0
- /package/dist/{fact-proposals-X2O4W7VN.js.map → fact-proposals-Z7HJG7QJ.js.map} +0 -0
- /package/dist/{follow-up-tool-NUXHITTB.js.map → follow-up-tool-TWOEAWOL.js.map} +0 -0
- /package/dist/{hub-4SPXWMRT.js.map → hub-FUM7UY5S.js.map} +0 -0
- /package/dist/{ledger-P62U3FHT.js.map → ledger-5GMBLR7W.js.map} +0 -0
- /package/dist/{memory-extract-NLVLQE7V.js.map → memory-extract-QYSXPK22.js.map} +0 -0
- /package/dist/{promote-A7VZBQUZ.js.map → promote-M5AJSWHZ.js.map} +0 -0
- /package/dist/{query-5I6RBPPK.js.map → query-NPDKXBTN.js.map} +0 -0
- /package/dist/{query-settings-QLLC46BO.js.map → query-settings-HXKZYIEV.js.map} +0 -0
- /package/dist/{registry-J724YF5H.js.map → registry-A2FFL4EA.js.map} +0 -0
- /package/dist/{request-planner-SF4GYBQE.js.map → request-planner-ANGZP4JL.js.map} +0 -0
- /package/dist/{review-candidates-KPAZ3FYG.js.map → review-candidates-B7T2QA3R.js.map} +0 -0
- /package/dist/{routing-RUJNJHM6.js.map → routing-2KWP5TAT.js.map} +0 -0
- /package/dist/{schedule-tool-PX5YULLG.js.map → schedule-tool-2UNMXEBQ.js.map} +0 -0
- /package/dist/{scheduler-C44WJX4C.js.map → scheduler-VN7WDAKE.js.map} +0 -0
- /package/dist/{seat-QY2GW3FI.js.map → seat-MAC3QGGD.js.map} +0 -0
- /package/dist/{select-XJMJ2XVP.js.map → select-UYKEN4N4.js.map} +0 -0
- /package/dist/{set-enabled-JC3TJ6VZ.js.map → set-enabled-JEUIINT3.js.map} +0 -0
- /package/dist/{sprint-tool-NP4WN7KL.js.map → sprint-tool-MB2MPR4K.js.map} +0 -0
- /package/dist/{tool-23ODBVYF.js.map → tool-L4CQCPRF.js.map} +0 -0
- /package/dist/{tool-LZR4EOQJ.js.map → tool-SZ6C6EBP.js.map} +0 -0
- /package/dist/{tool-KHD45TSF.js.map → tool-TLXKW55S.js.map} +0 -0
- /package/dist/{wiki-N3JOY2NN.js.map → wiki-ZAHFGDKE.js.map} +0 -0
- /package/dist/{wiki-enrich-ZNFEO7BX.js.map → wiki-enrich-QLCQHV6B.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -2234,7 +2234,7 @@ declare const agentConfigSchema: z.ZodObject<{
|
|
|
2234
2234
|
allowActions?: boolean | undefined;
|
|
2235
2235
|
} | undefined;
|
|
2236
2236
|
}>;
|
|
2237
|
-
declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2237
|
+
declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2238
2238
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2239
2239
|
/** Why the job runs and the number that proves it (#1183). Optional;
|
|
2240
2240
|
* shown as written on the Wall and Settings › Schedules. */
|
|
@@ -2314,6 +2314,11 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2314
2314
|
* fact must carry a source link, or the owner is told which do not
|
|
2315
2315
|
* (#1288). See src/sales/sources.ts. */
|
|
2316
2316
|
requireSources: z.ZodOptional<z.ZodBoolean>;
|
|
2317
|
+
/** For a prompt that tells the agent to run a shell command: the agent
|
|
2318
|
+
* is asked to end its answer with `EXIT=<code>`, and the run fails when
|
|
2319
|
+
* that line is missing or not 0 (#1540). The agent run alone succeeds
|
|
2320
|
+
* even when the command it ran failed. See src/crons/exit-check.ts. */
|
|
2321
|
+
expectExitZero: z.ZodOptional<z.ZodBoolean>;
|
|
2317
2322
|
/** Secret that lets an external system fire this job now via
|
|
2318
2323
|
* `POST /routines/<id>/fire`. Reference an env var (`"${MY_TOKEN}"`);
|
|
2319
2324
|
* a job without one cannot be fired. See src/daemon/routine-fire.ts. */
|
|
@@ -2370,6 +2375,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2370
2375
|
autonomy?: "report" | "propose" | "act" | undefined;
|
|
2371
2376
|
deliverResult?: boolean | undefined;
|
|
2372
2377
|
requireSources?: boolean | undefined;
|
|
2378
|
+
expectExitZero?: boolean | undefined;
|
|
2373
2379
|
fireToken?: string | undefined;
|
|
2374
2380
|
}, {
|
|
2375
2381
|
agent: string;
|
|
@@ -2402,6 +2408,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2402
2408
|
onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
|
|
2403
2409
|
deliverResult?: boolean | undefined;
|
|
2404
2410
|
requireSources?: boolean | undefined;
|
|
2411
|
+
expectExitZero?: boolean | undefined;
|
|
2405
2412
|
fireToken?: string | undefined;
|
|
2406
2413
|
}>, {
|
|
2407
2414
|
enabled: boolean;
|
|
@@ -2434,6 +2441,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2434
2441
|
autonomy?: "report" | "propose" | "act" | undefined;
|
|
2435
2442
|
deliverResult?: boolean | undefined;
|
|
2436
2443
|
requireSources?: boolean | undefined;
|
|
2444
|
+
expectExitZero?: boolean | undefined;
|
|
2437
2445
|
fireToken?: string | undefined;
|
|
2438
2446
|
}, {
|
|
2439
2447
|
agent: string;
|
|
@@ -2466,6 +2474,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2466
2474
|
onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
|
|
2467
2475
|
deliverResult?: boolean | undefined;
|
|
2468
2476
|
requireSources?: boolean | undefined;
|
|
2477
|
+
expectExitZero?: boolean | undefined;
|
|
2469
2478
|
fireToken?: string | undefined;
|
|
2470
2479
|
}>, {
|
|
2471
2480
|
enabled: boolean;
|
|
@@ -2498,6 +2507,7 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2498
2507
|
autonomy?: "report" | "propose" | "act" | undefined;
|
|
2499
2508
|
deliverResult?: boolean | undefined;
|
|
2500
2509
|
requireSources?: boolean | undefined;
|
|
2510
|
+
expectExitZero?: boolean | undefined;
|
|
2501
2511
|
fireToken?: string | undefined;
|
|
2502
2512
|
}, {
|
|
2503
2513
|
agent: string;
|
|
@@ -2530,6 +2540,73 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2530
2540
|
onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
|
|
2531
2541
|
deliverResult?: boolean | undefined;
|
|
2532
2542
|
requireSources?: boolean | undefined;
|
|
2543
|
+
expectExitZero?: boolean | undefined;
|
|
2544
|
+
fireToken?: string | undefined;
|
|
2545
|
+
}>, {
|
|
2546
|
+
enabled: boolean;
|
|
2547
|
+
agent: string;
|
|
2548
|
+
prompt: string;
|
|
2549
|
+
timeout: number;
|
|
2550
|
+
schedule: string;
|
|
2551
|
+
timezone: string;
|
|
2552
|
+
onError: ("notify" | "disable" | "log")[];
|
|
2553
|
+
model?: string | undefined;
|
|
2554
|
+
value?: {
|
|
2555
|
+
why: string;
|
|
2556
|
+
metric: string;
|
|
2557
|
+
} | undefined;
|
|
2558
|
+
report?: "always" | "exceptions" | undefined;
|
|
2559
|
+
command?: string | undefined;
|
|
2560
|
+
notify?: {
|
|
2561
|
+
channel: string;
|
|
2562
|
+
chatId: string;
|
|
2563
|
+
accountId?: string | undefined;
|
|
2564
|
+
} | undefined;
|
|
2565
|
+
taskType?: string | undefined;
|
|
2566
|
+
createdBy?: string | undefined;
|
|
2567
|
+
approval?: {
|
|
2568
|
+
action: "delete" | "create";
|
|
2569
|
+
requestedBy: string;
|
|
2570
|
+
requestedAt: string;
|
|
2571
|
+
} | undefined;
|
|
2572
|
+
maxOutputTokens?: number | undefined;
|
|
2573
|
+
autonomy?: "report" | "propose" | "act" | undefined;
|
|
2574
|
+
deliverResult?: boolean | undefined;
|
|
2575
|
+
requireSources?: boolean | undefined;
|
|
2576
|
+
expectExitZero?: boolean | undefined;
|
|
2577
|
+
fireToken?: string | undefined;
|
|
2578
|
+
}, {
|
|
2579
|
+
agent: string;
|
|
2580
|
+
schedule: string;
|
|
2581
|
+
model?: string | undefined;
|
|
2582
|
+
value?: {
|
|
2583
|
+
why: string;
|
|
2584
|
+
metric: string;
|
|
2585
|
+
} | undefined;
|
|
2586
|
+
enabled?: boolean | undefined;
|
|
2587
|
+
report?: "always" | "exceptions" | undefined;
|
|
2588
|
+
command?: string | undefined;
|
|
2589
|
+
prompt?: string | undefined;
|
|
2590
|
+
timeout?: number | undefined;
|
|
2591
|
+
timezone?: string | undefined;
|
|
2592
|
+
notify?: {
|
|
2593
|
+
channel: string;
|
|
2594
|
+
chatId: string;
|
|
2595
|
+
accountId?: string | undefined;
|
|
2596
|
+
} | undefined;
|
|
2597
|
+
taskType?: string | undefined;
|
|
2598
|
+
createdBy?: string | undefined;
|
|
2599
|
+
approval?: {
|
|
2600
|
+
action: "delete" | "create";
|
|
2601
|
+
requestedBy: string;
|
|
2602
|
+
requestedAt: string;
|
|
2603
|
+
} | undefined;
|
|
2604
|
+
maxOutputTokens?: number | undefined;
|
|
2605
|
+
autonomy?: "report" | "propose" | "act" | undefined;
|
|
2606
|
+
onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
|
|
2607
|
+
deliverResult?: boolean | undefined;
|
|
2608
|
+
requireSources?: boolean | undefined;
|
|
2609
|
+
expectExitZero?: boolean | undefined;
|
|
2533
2610
|
fireToken?: string | undefined;
|
|
2534
2611
|
}>;
|
|
2535
2612
|
declare const meshPeerSchema: z.ZodObject<{
|
|
@@ -5129,7 +5206,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5129
5206
|
defaultTitle?: string | undefined;
|
|
5130
5207
|
} | undefined;
|
|
5131
5208
|
}>>;
|
|
5132
|
-
crons: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
5209
|
+
crons: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
5133
5210
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5134
5211
|
/** Why the job runs and the number that proves it (#1183). Optional;
|
|
5135
5212
|
* shown as written on the Wall and Settings › Schedules. */
|
|
@@ -5209,6 +5286,11 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5209
5286
|
* fact must carry a source link, or the owner is told which do not
|
|
5210
5287
|
* (#1288). See src/sales/sources.ts. */
|
|
5211
5288
|
requireSources: z.ZodOptional<z.ZodBoolean>;
|
|
5289
|
+
/** For a prompt that tells the agent to run a shell command: the agent
|
|
5290
|
+
* is asked to end its answer with `EXIT=<code>`, and the run fails when
|
|
5291
|
+
* that line is missing or not 0 (#1540). The agent run alone succeeds
|
|
5292
|
+
* even when the command it ran failed. See src/crons/exit-check.ts. */
|
|
5293
|
+
expectExitZero: z.ZodOptional<z.ZodBoolean>;
|
|
5212
5294
|
/** Secret that lets an external system fire this job now via
|
|
5213
5295
|
* `POST /routines/<id>/fire`. Reference an env var (`"${MY_TOKEN}"`);
|
|
5214
5296
|
* a job without one cannot be fired. See src/daemon/routine-fire.ts. */
|
|
@@ -5265,6 +5347,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5265
5347
|
autonomy?: "report" | "propose" | "act" | undefined;
|
|
5266
5348
|
deliverResult?: boolean | undefined;
|
|
5267
5349
|
requireSources?: boolean | undefined;
|
|
5350
|
+
expectExitZero?: boolean | undefined;
|
|
5268
5351
|
fireToken?: string | undefined;
|
|
5269
5352
|
}, {
|
|
5270
5353
|
agent: string;
|
|
@@ -5297,6 +5380,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5297
5380
|
onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
|
|
5298
5381
|
deliverResult?: boolean | undefined;
|
|
5299
5382
|
requireSources?: boolean | undefined;
|
|
5383
|
+
expectExitZero?: boolean | undefined;
|
|
5300
5384
|
fireToken?: string | undefined;
|
|
5301
5385
|
}>, {
|
|
5302
5386
|
enabled: boolean;
|
|
@@ -5329,6 +5413,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5329
5413
|
autonomy?: "report" | "propose" | "act" | undefined;
|
|
5330
5414
|
deliverResult?: boolean | undefined;
|
|
5331
5415
|
requireSources?: boolean | undefined;
|
|
5416
|
+
expectExitZero?: boolean | undefined;
|
|
5332
5417
|
fireToken?: string | undefined;
|
|
5333
5418
|
}, {
|
|
5334
5419
|
agent: string;
|
|
@@ -5361,6 +5446,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5361
5446
|
onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
|
|
5362
5447
|
deliverResult?: boolean | undefined;
|
|
5363
5448
|
requireSources?: boolean | undefined;
|
|
5449
|
+
expectExitZero?: boolean | undefined;
|
|
5364
5450
|
fireToken?: string | undefined;
|
|
5365
5451
|
}>, {
|
|
5366
5452
|
enabled: boolean;
|
|
@@ -5393,6 +5479,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5393
5479
|
autonomy?: "report" | "propose" | "act" | undefined;
|
|
5394
5480
|
deliverResult?: boolean | undefined;
|
|
5395
5481
|
requireSources?: boolean | undefined;
|
|
5482
|
+
expectExitZero?: boolean | undefined;
|
|
5396
5483
|
fireToken?: string | undefined;
|
|
5397
5484
|
}, {
|
|
5398
5485
|
agent: string;
|
|
@@ -5425,6 +5512,73 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
5425
5512
|
onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
|
|
5426
5513
|
deliverResult?: boolean | undefined;
|
|
5427
5514
|
requireSources?: boolean | undefined;
|
|
5515
|
+
expectExitZero?: boolean | undefined;
|
|
5516
|
+
fireToken?: string | undefined;
|
|
5517
|
+
}>, {
|
|
5518
|
+
enabled: boolean;
|
|
5519
|
+
agent: string;
|
|
5520
|
+
prompt: string;
|
|
5521
|
+
timeout: number;
|
|
5522
|
+
schedule: string;
|
|
5523
|
+
timezone: string;
|
|
5524
|
+
onError: ("notify" | "disable" | "log")[];
|
|
5525
|
+
model?: string | undefined;
|
|
5526
|
+
value?: {
|
|
5527
|
+
why: string;
|
|
5528
|
+
metric: string;
|
|
5529
|
+
} | undefined;
|
|
5530
|
+
report?: "always" | "exceptions" | undefined;
|
|
5531
|
+
command?: string | undefined;
|
|
5532
|
+
notify?: {
|
|
5533
|
+
channel: string;
|
|
5534
|
+
chatId: string;
|
|
5535
|
+
accountId?: string | undefined;
|
|
5536
|
+
} | undefined;
|
|
5537
|
+
taskType?: string | undefined;
|
|
5538
|
+
createdBy?: string | undefined;
|
|
5539
|
+
approval?: {
|
|
5540
|
+
action: "delete" | "create";
|
|
5541
|
+
requestedBy: string;
|
|
5542
|
+
requestedAt: string;
|
|
5543
|
+
} | undefined;
|
|
5544
|
+
maxOutputTokens?: number | undefined;
|
|
5545
|
+
autonomy?: "report" | "propose" | "act" | undefined;
|
|
5546
|
+
deliverResult?: boolean | undefined;
|
|
5547
|
+
requireSources?: boolean | undefined;
|
|
5548
|
+
expectExitZero?: boolean | undefined;
|
|
5549
|
+
fireToken?: string | undefined;
|
|
5550
|
+
}, {
|
|
5551
|
+
agent: string;
|
|
5552
|
+
schedule: string;
|
|
5553
|
+
model?: string | undefined;
|
|
5554
|
+
value?: {
|
|
5555
|
+
why: string;
|
|
5556
|
+
metric: string;
|
|
5557
|
+
} | undefined;
|
|
5558
|
+
enabled?: boolean | undefined;
|
|
5559
|
+
report?: "always" | "exceptions" | undefined;
|
|
5560
|
+
command?: string | undefined;
|
|
5561
|
+
prompt?: string | undefined;
|
|
5562
|
+
timeout?: number | undefined;
|
|
5563
|
+
timezone?: string | undefined;
|
|
5564
|
+
notify?: {
|
|
5565
|
+
channel: string;
|
|
5566
|
+
chatId: string;
|
|
5567
|
+
accountId?: string | undefined;
|
|
5568
|
+
} | undefined;
|
|
5569
|
+
taskType?: string | undefined;
|
|
5570
|
+
createdBy?: string | undefined;
|
|
5571
|
+
approval?: {
|
|
5572
|
+
action: "delete" | "create";
|
|
5573
|
+
requestedBy: string;
|
|
5574
|
+
requestedAt: string;
|
|
5575
|
+
} | undefined;
|
|
5576
|
+
maxOutputTokens?: number | undefined;
|
|
5577
|
+
autonomy?: "report" | "propose" | "act" | undefined;
|
|
5578
|
+
onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
|
|
5579
|
+
deliverResult?: boolean | undefined;
|
|
5580
|
+
requireSources?: boolean | undefined;
|
|
5581
|
+
expectExitZero?: boolean | undefined;
|
|
5428
5582
|
fireToken?: string | undefined;
|
|
5429
5583
|
}>>>;
|
|
5430
5584
|
/** One message a day that lists only what is wrong: failed or missed
|
|
@@ -6945,6 +7099,41 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
6945
7099
|
channels?: string[] | undefined;
|
|
6946
7100
|
}> | undefined;
|
|
6947
7101
|
}>>;
|
|
7102
|
+
/** What the node reports about its own environment (src/node-env,
|
|
7103
|
+
* #1531): GET /api/node, `agentx node` and the MCP tool `agentx_node`. */
|
|
7104
|
+
environment: z.ZodDefault<z.ZodObject<{
|
|
7105
|
+
/** The programs agents depend on; their versions are read at boot and
|
|
7106
|
+
* every `toolsRefreshHours`. A name runs `<name> --version`; an object
|
|
7107
|
+
* names the command and arguments to run instead. */
|
|
7108
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
7109
|
+
name: z.ZodString;
|
|
7110
|
+
command: z.ZodOptional<z.ZodString>;
|
|
7111
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7112
|
+
}, "strip", z.ZodTypeAny, {
|
|
7113
|
+
name: string;
|
|
7114
|
+
args: string[];
|
|
7115
|
+
command?: string | undefined;
|
|
7116
|
+
}, {
|
|
7117
|
+
name: string;
|
|
7118
|
+
command?: string | undefined;
|
|
7119
|
+
args?: string[] | undefined;
|
|
7120
|
+
}>]>, "many">>;
|
|
7121
|
+
toolsRefreshHours: z.ZodDefault<z.ZodNumber>;
|
|
7122
|
+
}, "strip", z.ZodTypeAny, {
|
|
7123
|
+
tools: (string | {
|
|
7124
|
+
name: string;
|
|
7125
|
+
args: string[];
|
|
7126
|
+
command?: string | undefined;
|
|
7127
|
+
})[];
|
|
7128
|
+
toolsRefreshHours: number;
|
|
7129
|
+
}, {
|
|
7130
|
+
tools?: (string | {
|
|
7131
|
+
name: string;
|
|
7132
|
+
command?: string | undefined;
|
|
7133
|
+
args?: string[] | undefined;
|
|
7134
|
+
})[] | undefined;
|
|
7135
|
+
toolsRefreshHours?: number | undefined;
|
|
7136
|
+
}>>;
|
|
6948
7137
|
/** Stop and resume signals (agents/signals, #857): stop a running task
|
|
6949
7138
|
* cleanly, keep the agent's resume plan, resume it later. The owner may
|
|
6950
7139
|
* always signal; an agent may signal tasks it dispatched, or any task
|
|
@@ -11248,6 +11437,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11248
11437
|
autonomy?: "report" | "propose" | "act" | undefined;
|
|
11249
11438
|
deliverResult?: boolean | undefined;
|
|
11250
11439
|
requireSources?: boolean | undefined;
|
|
11440
|
+
expectExitZero?: boolean | undefined;
|
|
11251
11441
|
fireToken?: string | undefined;
|
|
11252
11442
|
}>;
|
|
11253
11443
|
graph: {
|
|
@@ -11520,6 +11710,14 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11520
11710
|
channels?: string[] | undefined;
|
|
11521
11711
|
}>;
|
|
11522
11712
|
};
|
|
11713
|
+
environment: {
|
|
11714
|
+
tools: (string | {
|
|
11715
|
+
name: string;
|
|
11716
|
+
args: string[];
|
|
11717
|
+
command?: string | undefined;
|
|
11718
|
+
})[];
|
|
11719
|
+
toolsRefreshHours: number;
|
|
11720
|
+
};
|
|
11523
11721
|
signals: {
|
|
11524
11722
|
enabled: boolean;
|
|
11525
11723
|
windDownSeconds: number;
|
|
@@ -12647,6 +12845,7 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
12647
12845
|
onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
|
|
12648
12846
|
deliverResult?: boolean | undefined;
|
|
12649
12847
|
requireSources?: boolean | undefined;
|
|
12848
|
+
expectExitZero?: boolean | undefined;
|
|
12650
12849
|
fireToken?: string | undefined;
|
|
12651
12850
|
}> | undefined;
|
|
12652
12851
|
graph?: {
|
|
@@ -12919,6 +13118,14 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
12919
13118
|
channels?: string[] | undefined;
|
|
12920
13119
|
}> | undefined;
|
|
12921
13120
|
} | undefined;
|
|
13121
|
+
environment?: {
|
|
13122
|
+
tools?: (string | {
|
|
13123
|
+
name: string;
|
|
13124
|
+
command?: string | undefined;
|
|
13125
|
+
args?: string[] | undefined;
|
|
13126
|
+
})[] | undefined;
|
|
13127
|
+
toolsRefreshHours?: number | undefined;
|
|
13128
|
+
} | undefined;
|
|
12922
13129
|
signals?: {
|
|
12923
13130
|
enabled?: boolean | undefined;
|
|
12924
13131
|
windDownSeconds?: number | undefined;
|
|
@@ -13870,6 +14077,8 @@ declare class AgentXDaemon {
|
|
|
13870
14077
|
* reload that changes native.adapter or reminders.command applies. */
|
|
13871
14078
|
private get native();
|
|
13872
14079
|
private registry;
|
|
14080
|
+
/** What the node reports about its own environment (#1531). */
|
|
14081
|
+
private nodeEnv;
|
|
13873
14082
|
private router;
|
|
13874
14083
|
private cron;
|
|
13875
14084
|
/** Per-project webhook rules. Hot-reloaded from .agentx/projects/.
|
|
@@ -15270,8 +15479,9 @@ declare class MemoryStore {
|
|
|
15270
15479
|
private ledger;
|
|
15271
15480
|
constructor(baseDir?: string);
|
|
15272
15481
|
private filePath;
|
|
15273
|
-
/** Store a fact. Refuses secrets
|
|
15274
|
-
*
|
|
15482
|
+
/** Store a fact. Refuses secrets, and usage-limit, reset and hold notes
|
|
15483
|
+
* (the node reports those live, #1531): returns false. Stamps the
|
|
15484
|
+
* source's trust, and holds facts from external sources for review. */
|
|
15275
15485
|
addMemory(agentId: string, fact: Omit<MemoryFact, "id" | "createdAt">): boolean;
|
|
15276
15486
|
/** Parsed facts per file, valid while the file's mtime and size hold.
|
|
15277
15487
|
* The store is read on every turn and the file only grows, so without
|
|
@@ -21118,6 +21328,8 @@ interface CronJobState {
|
|
|
21118
21328
|
report?: CronReportMode;
|
|
21119
21329
|
/** Flag answer lines that state a fact without a source (#1288). */
|
|
21120
21330
|
requireSources?: boolean;
|
|
21331
|
+
/** Fail the run unless the answer ends with `EXIT=0` (#1540). */
|
|
21332
|
+
expectExitZero?: boolean;
|
|
21121
21333
|
lastRun?: Date;
|
|
21122
21334
|
nextRun?: Date;
|
|
21123
21335
|
lastSuccess?: Date;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ka as Tt,La as Mt,a as St,b as kt,c as vt,d as xt,e as $t,f as Ct,g as Pt,h as bt}from"./chunk-WXSS7VIW.js";import"./chunk-RA4WCDGV.js";import"./chunk-GTJIKXDB.js";import"./chunk-S3XUIVC2.js";import"./chunk-ZVP6GB4G.js";import"./chunk-XJEBJZLX.js";import"./chunk-IMLAPB7G.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-KTGTKOLV.js";import"./chunk-6V5JBHUN.js";import"./chunk-2VDO2HEK.js";import"./chunk-5HLD66CW.js";import"./chunk-IS2IWRP7.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-MRIVENBY.js";import"./chunk-BIYEGA7Q.js";import"./chunk-XPZSEDE3.js";import"./chunk-PPUN7YHA.js";import"./chunk-A5GYG56I.js";import"./chunk-54J6PXBG.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-UKUH662W.js";import"./chunk-JWDJMFU6.js";import"./chunk-MNG2AMKZ.js";import"./chunk-RX5O5637.js";import"./chunk-5ELIX7BQ.js";import"./chunk-X7UQY7CH.js";import"./chunk-QPABR72X.js";import"./chunk-OTCMYGQR.js";import"./chunk-AJ5HMDRW.js";import"./chunk-KP7KDLZ2.js";import{Aa as yt,m as lt,n as ct,o as dt,p as mt,q as pt}from"./chunk-MW75GECE.js";import"./chunk-ZU6W3CXO.js";import"./chunk-MEFPXHQJ.js";import{a as L}from"./chunk-BAXGL6TY.js";import{A as D,B as z,C as V,a as ye,b as we,c as Se,d as Ae,e as Ie,f as Oe,g as Ne,h as He,i as je,j as Ue,k as _e,l as I,m as q,n as Be,o as qe,p as Ye,q as O,r as ze,s as Ve,t as Xe,u as x,v as Y,w as Qe,x as Ze,y as et,z as wt}from"./chunk-T2NPSEPJ.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-6TTGRTDO.js";import"./chunk-SZDACK6O.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-VJVXEVZ7.js";import{t as ut}from"./chunk-U5B275AU.js";import"./chunk-YFJVQOWI.js";import"./chunk-3UOTLMXD.js";import"./chunk-BE64IJWM.js";import"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-VWTBHLMX.js";import"./chunk-6MU3OEII.js";import{a as ht}from"./chunk-FRTU3ICQ.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-RQKLUGMS.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-BWBTNBPS.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-34O2GH4J.js";import{j as it,k as rt,l as at}from"./chunk-3NMBTBNW.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-MYVHVJWZ.js";import"./chunk-QUFIUXMQ.js";import"./chunk-AV7T3SYT.js";import"./chunk-2HBEZV7L.js";import"./chunk-A7JSRDJL.js";import"./chunk-BERWTVG2.js";import"./chunk-AHWWJ7AF.js";import{a as ke,b as ve,c as xe,d as $e,e as Ce,f as Pe,g as be,h as Te,i as Me,j as Re,l as Ee,m as Ge,o as T,p as W}from"./chunk-DCIYOPJF.js";import{a as m,b as G}from"./chunk-7I7IEX4S.js";import{b as Fe,c as Le,d as A,e as De}from"./chunk-JHCI6XCJ.js";import{a as Ke,b as Je,e as We}from"./chunk-DSYKYZMT.js";import{Gb as nt,vb as tt,xb as st,zb as ot}from"./chunk-ZCBTTYQN.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";W();G();import{execa as Rt}from"execa";import{existsSync as se,promises as X}from"fs";import S from"path";import ie from"node-fetch";async function Et(o,e){let t=o.split("/");if(t.length<2)throw new Error(`Invalid skill package ID: ${o}. Expected format: owner/repo`);let s=t[0],i=t[1],n=t[2];try{let a=n?`${s}/${i}/${n}`:`${s}/${i}`;await Rt("npx",["-y","skills","add",a],{cwd:e,stdio:"pipe"}),m.success(`Installed skill package: ${o}`);let r=S.resolve(e,".skills",`${s}_${i}`);if(se(r))return await ne(r,o);let d=S.resolve(e,".skills");return se(d)?await ne(d,o):[]}catch{return m.info(`Fetching skills directly from GitHub: ${s}/${i}`),await Gt(s,i,n,e)}}async function Gt(o,e,t,s){let i=[];try{let n=`https://api.github.com/repos/${o}/${e}/git/trees/main?recursive=1`,a=await ie(n);if(!a.ok)throw new Error(`GitHub API error: ${a.status}`);let d=(await a.json()).tree.filter(p=>p.type==="blob"&&p.path.endsWith("SKILL.md"));if(t){let p=d.find(f=>f.path.includes(`/${t}/`)||f.path===`${t}/SKILL.md`);if(p){let f=await oe(o,e,p.path,s);f&&i.push(f)}}else for(let p of d){let f=await oe(o,e,p.path,s);f&&i.push(f)}}catch(n){m.error(`Failed to fetch skills from GitHub: ${n.message}`)}return i}async function oe(o,e,t,s){try{let i=`https://raw.githubusercontent.com/${o}/${e}/main/${t}`,n=await ie(i);if(!n.ok)return null;let a=await n.text(),r=A(a);if(r){r.source="remote",r.packageId=`${o}/${e}`;let d=S.dirname(t),p=S.resolve(s,".skills",`${o}_${e}`,d);await X.mkdir(p,{recursive:!0}),await X.writeFile(S.resolve(p,"SKILL.md"),a),r.path=S.resolve(p,"SKILL.md")}return r}catch{return null}}async function ne(o,e){let t=[],{default:s}=await import("fast-glob"),i=await s.glob("**/SKILL.md",{cwd:o,deep:5});for(let n of i)try{let a=S.resolve(o,n),r=await X.readFile(a,"utf8"),d=A(r);d&&(d.source="remote",d.path=a,d.packageId=e,t.push(d))}catch{}return t}async function At(o,e,t,s,i){let n=["---",`name: ${o}`,`description: ${e}`];if(s?.length){n.push("tags:");for(let a of s)n.push(` - ${a}`)}if(i?.length){n.push("globs:");for(let a of i)n.push(` - ${a}`)}return n.push("---"),`${n.join(`
|
|
2
2
|
`)}
|
|
3
3
|
|
|
4
4
|
${t}`}async function It(o){let{loadLocalSkills:e}=await import("./loader-YFVSSYSL.js");return e(o)}async function Ot(o,e,t,s,i){let a=[{role:"system",content:`You are a skill author for the Agent Skills ecosystem (skills.sh).
|