agentix-cli 0.208.0 → 0.209.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-MUIJBF7T.js → App-BECRIPJ2.js} +2 -2
- package/dist/{ChatApp-RZK7WH6X.js → ChatApp-WBR7IQMG.js} +2 -2
- package/dist/{absorb-eval-VDH4DJAU.js → absorb-eval-RJWKCNR5.js} +2 -2
- package/dist/{adapter-TG7D3YCC.js → adapter-CO4TVLNV.js} +2 -2
- package/dist/{agent-AG2FLW4B.js → agent-ISULBG63.js} +2 -2
- package/dist/{board-dashboard-6KGRVAK6.js → board-dashboard-XUY4O2RU.js} +312 -312
- package/dist/board-dashboard-XUY4O2RU.js.map +1 -0
- package/dist/{chunk-WXYO7JFL.js → chunk-43I75G74.js} +2 -2
- package/dist/{chunk-N2E73XNT.js → chunk-5A2GI4NQ.js} +286 -281
- package/dist/chunk-5A2GI4NQ.js.map +1 -0
- package/dist/{chunk-Y6WVNIIQ.js → chunk-6KSMSSPT.js} +2 -2
- package/dist/{chunk-T3CJNUE3.js → chunk-7EEWOBIM.js} +2 -2
- package/dist/{chunk-OW4XJDFO.js → chunk-AI4JHUOZ.js} +2 -2
- package/dist/{chunk-DPN3EYW3.js → chunk-BSDOKMKX.js} +2 -2
- package/dist/{chunk-TTAKAN5L.js → chunk-CPOTYJWY.js} +2 -2
- package/dist/{chunk-YQNZ26HG.js → chunk-CT3OYNNI.js} +2 -2
- package/dist/{chunk-KN5LZ3JS.js → chunk-DADIYSFN.js} +2 -2
- package/dist/{chunk-2BWTUD6Z.js → chunk-DXXJL4TT.js} +76 -76
- package/dist/chunk-DXXJL4TT.js.map +1 -0
- package/dist/{chunk-IJXCGKAB.js → chunk-ECN4ZCMT.js} +104 -102
- package/dist/chunk-ECN4ZCMT.js.map +1 -0
- package/dist/{chunk-XPKDQDBH.js → chunk-HLKQGEIA.js} +2 -2
- package/dist/{chunk-PAMMBHB2.js → chunk-I5DAFRWA.js} +3 -3
- package/dist/{chunk-YNYYFDFA.js → chunk-I6FDSWP3.js} +2 -2
- package/dist/{chunk-7GCB4HDJ.js → chunk-ITUBW7TE.js} +2 -2
- package/dist/{chunk-NXOBCFUJ.js → chunk-IYTCKPZI.js} +2 -2
- package/dist/{chunk-WD4HZAYI.js → chunk-NBEWP5UP.js} +2 -2
- package/dist/{chunk-GVFLCK6T.js → chunk-QLHEESVA.js} +2 -2
- package/dist/{chunk-E2JKO262.js → chunk-SWZC5ZT3.js} +2 -2
- package/dist/{chunk-LWVALEWQ.js → chunk-TXGUBSM3.js} +2 -2
- package/dist/chunk-U6CU5MIQ.js +123 -0
- package/dist/chunk-U6CU5MIQ.js.map +1 -0
- package/dist/{chunk-5Q62AXJG.js → chunk-UPNH6RAZ.js} +2 -2
- package/dist/{chunk-D4QTZJ4G.js → chunk-WNBGBOBJ.js} +2 -2
- package/dist/{chunk-TWWHZNHZ.js → chunk-XBON7H4I.js} +2 -2
- package/dist/{chunk-C5VFABFI.js → chunk-Y24J3MOQ.js} +2 -2
- package/dist/{chunk-IANIJUL5.js → chunk-Y3YQ3IOG.js} +2 -2
- package/dist/{chunk-2GEO3AWE.js → chunk-YBYF223R.js} +2 -2
- package/dist/{chunk-XVGSUY5K.js → chunk-YYXE2HSO.js} +2 -2
- package/dist/{chunk-M6TLZQTE.js → chunk-ZWJ2SUM5.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/{client-6HIRHQAT.js → client-LU6JWHHR.js} +2 -2
- package/dist/{config-4OPTVIWN.js → config-6BK3H63H.js} +2 -2
- package/dist/{config-mutate-TYYCXHAA.js → config-mutate-6ZMNQOLS.js} +2 -2
- package/dist/{config-mutator-IXTJ5QV2.js → config-mutator-RS4ORSMF.js} +2 -2
- package/dist/{contributions-WMYA72NP.js → contributions-VA2JWVXU.js} +2 -2
- package/dist/{doctor-UBTQYJYX.js → doctor-A47S3SH6.js} +2 -2
- package/dist/{follow-up-tool-THIJR5QT.js → follow-up-tool-42BUNUGF.js} +2 -2
- package/dist/{hub-J3FQFTAX.js → hub-ZC6J5Y2Q.js} +2 -2
- package/dist/index.d.ts +92 -6
- package/dist/index.js +1 -1
- package/dist/{org-tool-ETC5O2DO.js → org-tool-TXWIFVG6.js} +2 -2
- package/dist/{program-AJVTYLTY.js → program-435UQJ3G.js} +212 -212
- package/dist/program-435UQJ3G.js.map +1 -0
- package/dist/{promote-2QTQQ6DI.js → promote-D6CRK7QJ.js} +2 -2
- package/dist/{query-Q27VDF4B.js → query-KI7HTDKX.js} +2 -2
- package/dist/{query-settings-VKXXSCJI.js → query-settings-N7BMIFMM.js} +2 -2
- package/dist/{registry-T2SZPIUE.js → registry-NDJ4W62V.js} +2 -2
- package/dist/{request-planner-SGCMQ3OE.js → request-planner-UD23KDKU.js} +2 -2
- package/dist/{review-candidates-WTDIPOIN.js → review-candidates-LKY3BRHH.js} +2 -2
- package/dist/{routing-NXSITNLI.js → routing-UAIHQHP2.js} +2 -2
- package/dist/schedule-tool-B573TNKM.js +2 -0
- package/dist/{scheduler-CW4DD2BV.js → scheduler-ORNTT5P6.js} +2 -2
- package/dist/{seat-JTM6QWUS.js → seat-VFUCGC5H.js} +2 -2
- package/dist/{select-AYTW7GZZ.js → select-TF6NCI5P.js} +2 -2
- package/dist/{set-enabled-GTRW3BOZ.js → set-enabled-XBXHGNAF.js} +2 -2
- package/dist/{sprint-tool-QZVTFZSX.js → sprint-tool-6YBEN7NP.js} +2 -2
- package/dist/{tool-4LPJM4F2.js → tool-Q5AMUIPF.js} +2 -2
- package/dist/{tool-BPCMTY25.js → tool-UK4I6GTF.js} +2 -2
- package/dist/{tool-VAUJA52K.js → tool-UM3EQGMA.js} +2 -2
- package/dist/{tool-MJHQJ64S.js → tool-YX2TYZB7.js} +2 -2
- package/dist/{wiki-UTDZIJ6G.js → wiki-XN5G2V4I.js} +2 -2
- package/dist/wiki-enrich-P2DHIVLD.js +2 -0
- package/package.json +1 -1
- package/dist/board-dashboard-6KGRVAK6.js.map +0 -1
- package/dist/chunk-2BWTUD6Z.js.map +0 -1
- package/dist/chunk-IJXCGKAB.js.map +0 -1
- package/dist/chunk-N2E73XNT.js.map +0 -1
- package/dist/chunk-ZAPHYYGT.js +0 -118
- package/dist/chunk-ZAPHYYGT.js.map +0 -1
- package/dist/program-AJVTYLTY.js.map +0 -1
- package/dist/schedule-tool-3B4RW4KK.js +0 -2
- package/dist/wiki-enrich-3ZAARKRE.js +0 -2
- /package/dist/{App-MUIJBF7T.js.map → App-BECRIPJ2.js.map} +0 -0
- /package/dist/{ChatApp-RZK7WH6X.js.map → ChatApp-WBR7IQMG.js.map} +0 -0
- /package/dist/{absorb-eval-VDH4DJAU.js.map → absorb-eval-RJWKCNR5.js.map} +0 -0
- /package/dist/{adapter-TG7D3YCC.js.map → adapter-CO4TVLNV.js.map} +0 -0
- /package/dist/{agent-AG2FLW4B.js.map → agent-ISULBG63.js.map} +0 -0
- /package/dist/{chunk-WXYO7JFL.js.map → chunk-43I75G74.js.map} +0 -0
- /package/dist/{chunk-Y6WVNIIQ.js.map → chunk-6KSMSSPT.js.map} +0 -0
- /package/dist/{chunk-T3CJNUE3.js.map → chunk-7EEWOBIM.js.map} +0 -0
- /package/dist/{chunk-OW4XJDFO.js.map → chunk-AI4JHUOZ.js.map} +0 -0
- /package/dist/{chunk-DPN3EYW3.js.map → chunk-BSDOKMKX.js.map} +0 -0
- /package/dist/{chunk-TTAKAN5L.js.map → chunk-CPOTYJWY.js.map} +0 -0
- /package/dist/{chunk-YQNZ26HG.js.map → chunk-CT3OYNNI.js.map} +0 -0
- /package/dist/{chunk-KN5LZ3JS.js.map → chunk-DADIYSFN.js.map} +0 -0
- /package/dist/{chunk-XPKDQDBH.js.map → chunk-HLKQGEIA.js.map} +0 -0
- /package/dist/{chunk-PAMMBHB2.js.map → chunk-I5DAFRWA.js.map} +0 -0
- /package/dist/{chunk-YNYYFDFA.js.map → chunk-I6FDSWP3.js.map} +0 -0
- /package/dist/{chunk-7GCB4HDJ.js.map → chunk-ITUBW7TE.js.map} +0 -0
- /package/dist/{chunk-NXOBCFUJ.js.map → chunk-IYTCKPZI.js.map} +0 -0
- /package/dist/{chunk-WD4HZAYI.js.map → chunk-NBEWP5UP.js.map} +0 -0
- /package/dist/{chunk-GVFLCK6T.js.map → chunk-QLHEESVA.js.map} +0 -0
- /package/dist/{chunk-E2JKO262.js.map → chunk-SWZC5ZT3.js.map} +0 -0
- /package/dist/{chunk-LWVALEWQ.js.map → chunk-TXGUBSM3.js.map} +0 -0
- /package/dist/{chunk-5Q62AXJG.js.map → chunk-UPNH6RAZ.js.map} +0 -0
- /package/dist/{chunk-D4QTZJ4G.js.map → chunk-WNBGBOBJ.js.map} +0 -0
- /package/dist/{chunk-TWWHZNHZ.js.map → chunk-XBON7H4I.js.map} +0 -0
- /package/dist/{chunk-C5VFABFI.js.map → chunk-Y24J3MOQ.js.map} +0 -0
- /package/dist/{chunk-IANIJUL5.js.map → chunk-Y3YQ3IOG.js.map} +0 -0
- /package/dist/{chunk-2GEO3AWE.js.map → chunk-YBYF223R.js.map} +0 -0
- /package/dist/{chunk-XVGSUY5K.js.map → chunk-YYXE2HSO.js.map} +0 -0
- /package/dist/{chunk-M6TLZQTE.js.map → chunk-ZWJ2SUM5.js.map} +0 -0
- /package/dist/{client-6HIRHQAT.js.map → client-LU6JWHHR.js.map} +0 -0
- /package/dist/{config-4OPTVIWN.js.map → config-6BK3H63H.js.map} +0 -0
- /package/dist/{config-mutate-TYYCXHAA.js.map → config-mutate-6ZMNQOLS.js.map} +0 -0
- /package/dist/{config-mutator-IXTJ5QV2.js.map → config-mutator-RS4ORSMF.js.map} +0 -0
- /package/dist/{contributions-WMYA72NP.js.map → contributions-VA2JWVXU.js.map} +0 -0
- /package/dist/{doctor-UBTQYJYX.js.map → doctor-A47S3SH6.js.map} +0 -0
- /package/dist/{follow-up-tool-THIJR5QT.js.map → follow-up-tool-42BUNUGF.js.map} +0 -0
- /package/dist/{hub-J3FQFTAX.js.map → hub-ZC6J5Y2Q.js.map} +0 -0
- /package/dist/{org-tool-ETC5O2DO.js.map → org-tool-TXWIFVG6.js.map} +0 -0
- /package/dist/{promote-2QTQQ6DI.js.map → promote-D6CRK7QJ.js.map} +0 -0
- /package/dist/{query-Q27VDF4B.js.map → query-KI7HTDKX.js.map} +0 -0
- /package/dist/{query-settings-VKXXSCJI.js.map → query-settings-N7BMIFMM.js.map} +0 -0
- /package/dist/{registry-T2SZPIUE.js.map → registry-NDJ4W62V.js.map} +0 -0
- /package/dist/{request-planner-SGCMQ3OE.js.map → request-planner-UD23KDKU.js.map} +0 -0
- /package/dist/{review-candidates-WTDIPOIN.js.map → review-candidates-LKY3BRHH.js.map} +0 -0
- /package/dist/{routing-NXSITNLI.js.map → routing-UAIHQHP2.js.map} +0 -0
- /package/dist/{schedule-tool-3B4RW4KK.js.map → schedule-tool-B573TNKM.js.map} +0 -0
- /package/dist/{scheduler-CW4DD2BV.js.map → scheduler-ORNTT5P6.js.map} +0 -0
- /package/dist/{seat-JTM6QWUS.js.map → seat-VFUCGC5H.js.map} +0 -0
- /package/dist/{select-AYTW7GZZ.js.map → select-TF6NCI5P.js.map} +0 -0
- /package/dist/{set-enabled-GTRW3BOZ.js.map → set-enabled-XBXHGNAF.js.map} +0 -0
- /package/dist/{sprint-tool-QZVTFZSX.js.map → sprint-tool-6YBEN7NP.js.map} +0 -0
- /package/dist/{tool-4LPJM4F2.js.map → tool-Q5AMUIPF.js.map} +0 -0
- /package/dist/{tool-BPCMTY25.js.map → tool-UK4I6GTF.js.map} +0 -0
- /package/dist/{tool-VAUJA52K.js.map → tool-UM3EQGMA.js.map} +0 -0
- /package/dist/{tool-MJHQJ64S.js.map → tool-YX2TYZB7.js.map} +0 -0
- /package/dist/{wiki-UTDZIJ6G.js.map → wiki-XN5G2V4I.js.map} +0 -0
- /package/dist/{wiki-enrich-3ZAARKRE.js.map → wiki-enrich-P2DHIVLD.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -7579,6 +7579,35 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
7579
7579
|
waitingOwner?: boolean | undefined;
|
|
7580
7580
|
timeoutSeconds?: number | undefined;
|
|
7581
7581
|
}>>;
|
|
7582
|
+
/** The owner-words check (src/requests/owner-check.ts): a request closed
|
|
7583
|
+
* by anyone but the owner (an agent, a plan, a check) is read against
|
|
7584
|
+
* the owner's words with one small model call. A close that does not
|
|
7585
|
+
* deliver what was asked opens again as needing attention, and the
|
|
7586
|
+
* owner is told once. Uses the provider already set up; off by default. */
|
|
7587
|
+
ownerCheck: z.ZodDefault<z.ZodObject<{
|
|
7588
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
7589
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
7590
|
+
model: z.ZodDefault<z.ZodString>;
|
|
7591
|
+
/** Closes read per requests check (once a minute). */
|
|
7592
|
+
perCheck: z.ZodDefault<z.ZodNumber>;
|
|
7593
|
+
/** Closes older than this are not read. */
|
|
7594
|
+
maxAgeHours: z.ZodDefault<z.ZodNumber>;
|
|
7595
|
+
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
7596
|
+
}, "strip", z.ZodTypeAny, {
|
|
7597
|
+
provider: string;
|
|
7598
|
+
model: string;
|
|
7599
|
+
enabled: boolean;
|
|
7600
|
+
timeoutSeconds: number;
|
|
7601
|
+
perCheck: number;
|
|
7602
|
+
maxAgeHours: number;
|
|
7603
|
+
}, {
|
|
7604
|
+
provider?: string | undefined;
|
|
7605
|
+
model?: string | undefined;
|
|
7606
|
+
enabled?: boolean | undefined;
|
|
7607
|
+
timeoutSeconds?: number | undefined;
|
|
7608
|
+
perCheck?: number | undefined;
|
|
7609
|
+
maxAgeHours?: number | undefined;
|
|
7610
|
+
}>>;
|
|
7582
7611
|
/** Closed requests are deleted after this many days. Open ones never are. */
|
|
7583
7612
|
retentionDays: z.ZodDefault<z.ZodNumber>;
|
|
7584
7613
|
/** Resend once (src/requests/resend.ts, #1542): a request that needs
|
|
@@ -7892,6 +7921,14 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
7892
7921
|
}, "strip", z.ZodTypeAny, {
|
|
7893
7922
|
enabled: boolean;
|
|
7894
7923
|
from: string[];
|
|
7924
|
+
ownerCheck: {
|
|
7925
|
+
provider: string;
|
|
7926
|
+
model: string;
|
|
7927
|
+
enabled: boolean;
|
|
7928
|
+
timeoutSeconds: number;
|
|
7929
|
+
perCheck: number;
|
|
7930
|
+
maxAgeHours: number;
|
|
7931
|
+
};
|
|
7895
7932
|
plans: {
|
|
7896
7933
|
enabled: boolean;
|
|
7897
7934
|
stallMinutes: number;
|
|
@@ -7984,6 +8021,14 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
7984
8021
|
}, {
|
|
7985
8022
|
enabled?: boolean | undefined;
|
|
7986
8023
|
from?: string[] | undefined;
|
|
8024
|
+
ownerCheck?: {
|
|
8025
|
+
provider?: string | undefined;
|
|
8026
|
+
model?: string | undefined;
|
|
8027
|
+
enabled?: boolean | undefined;
|
|
8028
|
+
timeoutSeconds?: number | undefined;
|
|
8029
|
+
perCheck?: number | undefined;
|
|
8030
|
+
maxAgeHours?: number | undefined;
|
|
8031
|
+
} | undefined;
|
|
7987
8032
|
plans?: {
|
|
7988
8033
|
enabled?: boolean | undefined;
|
|
7989
8034
|
stallMinutes?: number | undefined;
|
|
@@ -11773,6 +11818,14 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
11773
11818
|
requests: {
|
|
11774
11819
|
enabled: boolean;
|
|
11775
11820
|
from: string[];
|
|
11821
|
+
ownerCheck: {
|
|
11822
|
+
provider: string;
|
|
11823
|
+
model: string;
|
|
11824
|
+
enabled: boolean;
|
|
11825
|
+
timeoutSeconds: number;
|
|
11826
|
+
perCheck: number;
|
|
11827
|
+
maxAgeHours: number;
|
|
11828
|
+
};
|
|
11776
11829
|
plans: {
|
|
11777
11830
|
enabled: boolean;
|
|
11778
11831
|
stallMinutes: number;
|
|
@@ -13265,6 +13318,14 @@ declare const daemonConfigSchema: z.ZodObject<{
|
|
|
13265
13318
|
requests?: {
|
|
13266
13319
|
enabled?: boolean | undefined;
|
|
13267
13320
|
from?: string[] | undefined;
|
|
13321
|
+
ownerCheck?: {
|
|
13322
|
+
provider?: string | undefined;
|
|
13323
|
+
model?: string | undefined;
|
|
13324
|
+
enabled?: boolean | undefined;
|
|
13325
|
+
timeoutSeconds?: number | undefined;
|
|
13326
|
+
perCheck?: number | undefined;
|
|
13327
|
+
maxAgeHours?: number | undefined;
|
|
13328
|
+
} | undefined;
|
|
13268
13329
|
plans?: {
|
|
13269
13330
|
enabled?: boolean | undefined;
|
|
13270
13331
|
stallMinutes?: number | undefined;
|
|
@@ -14881,6 +14942,8 @@ declare class AgentXDaemon {
|
|
|
14881
14942
|
private business?;
|
|
14882
14943
|
private httpServer?;
|
|
14883
14944
|
private attachSweep?;
|
|
14945
|
+
/** Sends notices no run picked up within the hour (agents/notices.ts). */
|
|
14946
|
+
private noticeSweep?;
|
|
14884
14947
|
private callSweep?;
|
|
14885
14948
|
private taskRunPrune?;
|
|
14886
14949
|
private webhooks;
|
|
@@ -15182,6 +15245,11 @@ declare class AgentXDaemon {
|
|
|
15182
15245
|
* settings change applies without a restart. */
|
|
15183
15246
|
private requestCheckContext;
|
|
15184
15247
|
private headlines?;
|
|
15248
|
+
private ownerCheck?;
|
|
15249
|
+
/** Reads closes not made by the owner against the owner's words
|
|
15250
|
+
* (src/requests/owner-check.ts): one small call each, through the
|
|
15251
|
+
* provider the operator set up, settings read at each call. */
|
|
15252
|
+
private ownerWordsCheck;
|
|
15185
15253
|
/** Writes the headline of a request its agent did not describe (#1126):
|
|
15186
15254
|
* one small call through the provider the operator set up, built on
|
|
15187
15255
|
* first use and read from the settings at each call. */
|
|
@@ -15368,12 +15436,8 @@ declare class AgentXDaemon {
|
|
|
15368
15436
|
*/
|
|
15369
15437
|
private handleOpenAICompat;
|
|
15370
15438
|
private json;
|
|
15371
|
-
/**
|
|
15372
|
-
*
|
|
15373
|
-
* 2. `agents[id].integrations[]` (kind=gitlab-user, tokenEnv) — newer
|
|
15374
|
-
* style used by agents declared via `agentx manage`
|
|
15375
|
-
* 3. `channels.gitlab.token` — global fallback (group bot identity)
|
|
15376
|
-
* Returns the token plus a `source` tag for diagnostic logging. */
|
|
15439
|
+
/** GitLab token for an agent: agentMappings, then integrations[], then
|
|
15440
|
+
* the global token. Shared with the GitLab adapter (#1745). */
|
|
15377
15441
|
private resolveGitlabTokenForAgent;
|
|
15378
15442
|
/** Pick today's usage rollup according to AGENTX_USAGE_READ:
|
|
15379
15443
|
* - "sqlite": SQLite only (empty if db null / no rows)
|
|
@@ -17893,6 +17957,23 @@ declare class AgentMemory {
|
|
|
17893
17957
|
rewriteIndex(agentId: string): void;
|
|
17894
17958
|
}
|
|
17895
17959
|
|
|
17960
|
+
declare class AgentNotices {
|
|
17961
|
+
private readonly opts;
|
|
17962
|
+
private byAgent;
|
|
17963
|
+
constructor(opts?: {
|
|
17964
|
+
now?: () => number;
|
|
17965
|
+
maxHoldMs?: number;
|
|
17966
|
+
});
|
|
17967
|
+
private now;
|
|
17968
|
+
add(agentId: string, from: string, text: string): number;
|
|
17969
|
+
count(agentId: string): number;
|
|
17970
|
+
/** Remove and return the agent's notices, as the text to put before a
|
|
17971
|
+
* run's message, or "" when there are none. */
|
|
17972
|
+
take(agentId: string): string;
|
|
17973
|
+
/** Agents whose oldest notice has waited longer than maxHoldMs. */
|
|
17974
|
+
overdue(): string[];
|
|
17975
|
+
}
|
|
17976
|
+
|
|
17896
17977
|
interface MeshPeerInfo {
|
|
17897
17978
|
peer: string;
|
|
17898
17979
|
healthy: boolean;
|
|
@@ -19683,6 +19764,10 @@ declare class AgentRegistry {
|
|
|
19683
19764
|
* free and run at once.
|
|
19684
19765
|
*/
|
|
19685
19766
|
private voiceClaims;
|
|
19767
|
+
/** One run at a time per agent and owner's request (work-lane.ts). */
|
|
19768
|
+
private workLanes;
|
|
19769
|
+
/** Notices for an agent's next run (notices.ts, /send/agent notice:true). */
|
|
19770
|
+
readonly notices: AgentNotices;
|
|
19686
19771
|
/** Chat messages waiting for an agent paused by its monthly budget (#1162). */
|
|
19687
19772
|
private budgetHolds;
|
|
19688
19773
|
private budgetReleaseTimer;
|
|
@@ -19899,6 +19984,7 @@ declare class AgentRegistry {
|
|
|
19899
19984
|
* active-task check becomes vacuously over-aggressive.
|
|
19900
19985
|
*/
|
|
19901
19986
|
execute(task: AgentTask, onDelta?: StreamCallback, onThinking?: ThinkingCallback, onEvent?: (event: any) => void): Promise<AgentResponse>;
|
|
19987
|
+
private runWithRecovery;
|
|
19902
19988
|
/**
|
|
19903
19989
|
* Internal dispatcher — the real body. See `execute` for the public
|
|
19904
19990
|
* wrapper that adds intent-ledger resolution recording.
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Oa as Tt,Pa 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-
|
|
1
|
+
import{Oa as Tt,Pa 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-5A2GI4NQ.js";import"./chunk-DXXJL4TT.js";import"./chunk-GTJIKXDB.js";import"./chunk-43I75G74.js";import"./chunk-ZVP6GB4G.js";import"./chunk-UPNH6RAZ.js";import"./chunk-IMLAPB7G.js";import"./chunk-EKJG63EJ.js";import"./chunk-TXGUBSM3.js";import"./chunk-JSCVOB4G.js";import"./chunk-JLBRNYKY.js";import"./chunk-BYEL7KKR.js";import"./chunk-YBYF223R.js";import"./chunk-MRIVENBY.js";import"./chunk-GJOKXP5D.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-UKUH662W.js";import"./chunk-3Q6MRG3P.js";import"./chunk-2VDO2HEK.js";import"./chunk-JWDJMFU6.js";import"./chunk-2P5NP4H6.js";import"./chunk-B4KQC3DG.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-Q3A5P373.js";import"./chunk-XBON7H4I.js";import"./chunk-QPABR72X.js";import"./chunk-A5GYG56I.js";import"./chunk-SWZC5ZT3.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-6TTGRTDO.js";import"./chunk-RX5O5637.js";import"./chunk-BSDOKMKX.js";import"./chunk-5ELIX7BQ.js";import"./chunk-X7UQY7CH.js";import"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-XVV7ZZ77.js";import{Ca as yt,m as lt,n as ct,o as dt,p as mt,q as pt}from"./chunk-ECN4ZCMT.js";import"./chunk-WNBGBOBJ.js";import"./chunk-MEFPXHQJ.js";import"./chunk-7AB3QUGH.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-Y3YQ3IOG.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-GV7S5BAX.js";import"./chunk-SZDACK6O.js";import"./chunk-VE3SSOQX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-VJVXEVZ7.js";import{u as ut}from"./chunk-Y24J3MOQ.js";import"./chunk-CPOTYJWY.js";import"./chunk-3UOTLMXD.js";import"./chunk-VWTBHLMX.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-GSX4NK2N.js";import"./chunk-HPRLRD4P.js";import"./chunk-DADIYSFN.js";import{a as ht}from"./chunk-ITUBW7TE.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-I5DAFRWA.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-NBEWP5UP.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-HLKQGEIA.js";import{j as it,k as rt,l as at}from"./chunk-IYTCKPZI.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-MYVHVJWZ.js";import"./chunk-QUFIUXMQ.js";import"./chunk-3AHYZLGE.js";import"./chunk-XL7UWG36.js";import"./chunk-MNG2AMKZ.js";import"./chunk-LY4G7PCW.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 tt,Ib as st,Lb as ot,Sb as nt}from"./chunk-U6CU5MIQ.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.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).
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=org-tool-
|
|
1
|
+
import{b as d}from"./chunk-7EEWOBIM.js";import"./chunk-RKPAVWXF.js";import"./chunk-BSDOKMKX.js";import{b as c}from"./chunk-IFUAP7UD.js";import"./chunk-KP7KDLZ2.js";import"./chunk-Y24J3MOQ.js";import"./chunk-CPOTYJWY.js";import"./chunk-3UOTLMXD.js";import"./chunk-FCPTN6NF.js";import"./chunk-7I7IEX4S.js";import"./chunk-U6CU5MIQ.js";import"./chunk-KEUW6YLL.js";import"./chunk-UEEB3UTU.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-QIJLFPWE.js";var u=new Set(["cron","heartbeat","api","a2a","mesh","approvals","requests"]);function p(n){return typeof n=="string"?n.trim():""}async function y(n,o){let i=o.fetch??fetch,h=o.daemonUrl.replace(/\/$/,""),a=o.env??process.env,s=(p(n.action)||"show").toLowerCase();if(s==="show")try{let e=await i(`${h}/api/org`,{headers:c(a),signal:AbortSignal.timeout(1e4)}),r=await e.json().catch(()=>({}));return e.ok?String(r.text??""):`Error: ${r?.error||`HTTP ${e.status}`}`}catch(e){return`Error: couldn't reach the daemon (${e?.message??e}).`}if(s!=="propose")return`Error: unknown action "${s}". Use show or propose.`;let t=d(n,a);if(!t)return"Error: couldn't tell which agent you are. Pass callerAgentId.";let l=t.channel&&t.chatId&&!u.has(t.channel)?{channel:t.channel,chatId:t.chatId,...t.accountId?{accountId:t.accountId}:{}}:void 0;try{let e=await i(`${h}/api/org/proposals`,{method:"POST",headers:{"Content-Type":"application/json",...c(a)},body:JSON.stringify({changes:n.changes,newAgent:n.newAgent,why:n.why,raised_by:t.agentId,...l?{reply:l}:{}}),signal:AbortSignal.timeout(1e4)}),r=await e.json().catch(()=>({}));return e.ok?[`Card ${r.card.id} is in the owner's Approvals inbox: "${r.text}"`,"Nothing is changed yet. On the owner's yes the daemon applies it and you get a message with the result; do not edit the org chart yourself.","Tell the owner it is waiting for their yes."].join(" "):`Not proposed: ${r?.error||`HTTP ${e.status}`}`}catch(e){return`Error: couldn't reach the daemon (${e?.message??e}).`}}export{y as runOrgTool};
|
|
2
|
+
//# sourceMappingURL=org-tool-TXWIFVG6.js.map
|