agentix-cli 0.37.0 → 0.38.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.
Files changed (85) hide show
  1. package/apps/mac-voice/Sources/AgentXVoice/Speech.swift +15 -3
  2. package/dist/{App-TW5N7JY2.js → App-HSRGG5VA.js} +2 -2
  3. package/dist/{ChatApp-MRGX7JBT.js → ChatApp-4FOU6Q3S.js} +2 -2
  4. package/dist/{agent-FQHWBQP2.js → agent-54NUP2Z3.js} +2 -2
  5. package/dist/{board-dashboard-2YEYVCUS.js → board-dashboard-R7FWWFFK.js} +4 -4
  6. package/dist/{chunk-3SKFX6G3.js → chunk-B32HVIDN.js} +2 -2
  7. package/dist/{chunk-ADRAW342.js → chunk-B5HKRYCU.js} +2 -2
  8. package/dist/{chunk-N6APC3DF.js → chunk-DIKZWTL5.js} +5 -5
  9. package/dist/{chunk-UORMWVLP.js → chunk-DWAVMTAV.js} +133 -133
  10. package/dist/chunk-DWAVMTAV.js.map +1 -0
  11. package/dist/{chunk-AKIYB3IJ.js → chunk-FAJEBVZE.js} +2 -2
  12. package/dist/{chunk-SR6TVIIS.js → chunk-H4MIYENA.js} +2 -2
  13. package/dist/chunk-IAG6FI3Q.js +13 -0
  14. package/dist/chunk-IAG6FI3Q.js.map +1 -0
  15. package/dist/{chunk-4ZGX4L6Q.js → chunk-KZPHCJMW.js} +205 -164
  16. package/dist/chunk-KZPHCJMW.js.map +1 -0
  17. package/dist/{chunk-RRLIZLBH.js → chunk-NZ6AQIKJ.js} +2 -2
  18. package/dist/{chunk-IEE475O2.js → chunk-P7LNYB53.js} +2 -2
  19. package/dist/{chunk-MC6I6ZLY.js → chunk-RCVGIKC2.js} +2 -2
  20. package/dist/{chunk-GL7VC26K.js → chunk-REPZID5M.js} +2 -2
  21. package/dist/{chunk-EJWIRM52.js → chunk-RQKUQOFC.js} +2 -2
  22. package/dist/{chunk-FHF4RA4Q.js → chunk-SJPLXXCI.js} +2 -2
  23. package/dist/{chunk-HEV3AVFJ.js → chunk-WBGROLOX.js} +2 -2
  24. package/dist/{chunk-JLEADOCC.js → chunk-X763UOES.js} +2 -2
  25. package/dist/cli.js +1 -1
  26. package/dist/client-6BGTH2TT.js +2 -0
  27. package/dist/config-SRTXHGSK.js +2 -0
  28. package/dist/config-mutator-KJ5GEMVV.js +2 -0
  29. package/dist/doctor-J4FLV45L.js +2 -0
  30. package/dist/index.d.ts +32 -32
  31. package/dist/index.js +1 -1
  32. package/dist/program-P7LNISI7.js +2 -0
  33. package/dist/query-ZSUBNWOL.js +2 -0
  34. package/dist/{registry-TDYF7HGH.js → registry-OMUDCBKM.js} +2 -2
  35. package/dist/{request-planner-DF74JHQB.js → request-planner-326NOKPZ.js} +2 -2
  36. package/dist/{review-candidates-SEAGMKI6.js → review-candidates-LEOPEOEG.js} +2 -2
  37. package/dist/{routing-JKWL3L3Q.js → routing-AWIRBYGU.js} +2 -2
  38. package/dist/scheduler-PGGYW5AB.js +2 -0
  39. package/dist/{seat-C6TOB63Q.js → seat-XB4EGUKJ.js} +2 -2
  40. package/dist/{select-YB5KF27O.js → select-L4VIYSFJ.js} +2 -2
  41. package/dist/wiki-GBC6I7ZX.js +2 -0
  42. package/package.json +1 -1
  43. package/dist/chunk-4ZGX4L6Q.js.map +0 -1
  44. package/dist/chunk-UORMWVLP.js.map +0 -1
  45. package/dist/chunk-WFKS4O34.js +0 -13
  46. package/dist/chunk-WFKS4O34.js.map +0 -1
  47. package/dist/client-4KD2UA75.js +0 -2
  48. package/dist/config-WN3R3BPU.js +0 -2
  49. package/dist/config-mutator-2FIUL4DA.js +0 -2
  50. package/dist/doctor-BNO46EOR.js +0 -2
  51. package/dist/program-Z6EK44PV.js +0 -2
  52. package/dist/query-TKUDIOBZ.js +0 -2
  53. package/dist/scheduler-7CYBDKQ7.js +0 -2
  54. package/dist/wiki-7FCINSKJ.js +0 -2
  55. /package/dist/{App-TW5N7JY2.js.map → App-HSRGG5VA.js.map} +0 -0
  56. /package/dist/{ChatApp-MRGX7JBT.js.map → ChatApp-4FOU6Q3S.js.map} +0 -0
  57. /package/dist/{agent-FQHWBQP2.js.map → agent-54NUP2Z3.js.map} +0 -0
  58. /package/dist/{board-dashboard-2YEYVCUS.js.map → board-dashboard-R7FWWFFK.js.map} +0 -0
  59. /package/dist/{chunk-3SKFX6G3.js.map → chunk-B32HVIDN.js.map} +0 -0
  60. /package/dist/{chunk-ADRAW342.js.map → chunk-B5HKRYCU.js.map} +0 -0
  61. /package/dist/{chunk-N6APC3DF.js.map → chunk-DIKZWTL5.js.map} +0 -0
  62. /package/dist/{chunk-AKIYB3IJ.js.map → chunk-FAJEBVZE.js.map} +0 -0
  63. /package/dist/{chunk-SR6TVIIS.js.map → chunk-H4MIYENA.js.map} +0 -0
  64. /package/dist/{chunk-RRLIZLBH.js.map → chunk-NZ6AQIKJ.js.map} +0 -0
  65. /package/dist/{chunk-IEE475O2.js.map → chunk-P7LNYB53.js.map} +0 -0
  66. /package/dist/{chunk-MC6I6ZLY.js.map → chunk-RCVGIKC2.js.map} +0 -0
  67. /package/dist/{chunk-GL7VC26K.js.map → chunk-REPZID5M.js.map} +0 -0
  68. /package/dist/{chunk-EJWIRM52.js.map → chunk-RQKUQOFC.js.map} +0 -0
  69. /package/dist/{chunk-FHF4RA4Q.js.map → chunk-SJPLXXCI.js.map} +0 -0
  70. /package/dist/{chunk-HEV3AVFJ.js.map → chunk-WBGROLOX.js.map} +0 -0
  71. /package/dist/{chunk-JLEADOCC.js.map → chunk-X763UOES.js.map} +0 -0
  72. /package/dist/{client-4KD2UA75.js.map → client-6BGTH2TT.js.map} +0 -0
  73. /package/dist/{config-WN3R3BPU.js.map → config-SRTXHGSK.js.map} +0 -0
  74. /package/dist/{config-mutator-2FIUL4DA.js.map → config-mutator-KJ5GEMVV.js.map} +0 -0
  75. /package/dist/{doctor-BNO46EOR.js.map → doctor-J4FLV45L.js.map} +0 -0
  76. /package/dist/{program-Z6EK44PV.js.map → program-P7LNISI7.js.map} +0 -0
  77. /package/dist/{query-TKUDIOBZ.js.map → query-ZSUBNWOL.js.map} +0 -0
  78. /package/dist/{registry-TDYF7HGH.js.map → registry-OMUDCBKM.js.map} +0 -0
  79. /package/dist/{request-planner-DF74JHQB.js.map → request-planner-326NOKPZ.js.map} +0 -0
  80. /package/dist/{review-candidates-SEAGMKI6.js.map → review-candidates-LEOPEOEG.js.map} +0 -0
  81. /package/dist/{routing-JKWL3L3Q.js.map → routing-AWIRBYGU.js.map} +0 -0
  82. /package/dist/{scheduler-7CYBDKQ7.js.map → scheduler-PGGYW5AB.js.map} +0 -0
  83. /package/dist/{seat-C6TOB63Q.js.map → seat-XB4EGUKJ.js.map} +0 -0
  84. /package/dist/{select-YB5KF27O.js.map → select-L4VIYSFJ.js.map} +0 -0
  85. /package/dist/{wiki-7FCINSKJ.js.map → wiki-GBC6I7ZX.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -1713,9 +1713,9 @@ declare const agentConfigSchema: z.ZodObject<{
1713
1713
  voice: z.ZodOptional<z.ZodObject<{
1714
1714
  /** Overrides the global voice.provider for this agent. */
1715
1715
  provider: z.ZodOptional<z.ZodEnum<["system", "elevenlabs"]>>;
1716
- /** A macOS voice: a name ("Daniel", "Ava (Premium)") or identifier.
1717
- * Unset: one is assigned, different from every other agent's. */
1718
- system: z.ZodOptional<z.ZodString>;
1716
+ /** See systemVoiceSchema. Unset: one is assigned, of the agent's
1717
+ * gender when set, different from every other agent's. */
1718
+ system: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1719
1719
  elevenlabsVoiceId: z.ZodOptional<z.ZodString>;
1720
1720
  gender: z.ZodOptional<z.ZodEnum<["female", "male", "neutral"]>>;
1721
1721
  /** A few words on manner, e.g. "warm, upbeat, a little playful". */
@@ -1726,7 +1726,7 @@ declare const agentConfigSchema: z.ZodObject<{
1726
1726
  * works: "on" for everything but cron, "all" to include cron. */
1727
1727
  narrate: z.ZodOptional<z.ZodEnum<["off", "on", "all"]>>;
1728
1728
  }, "strip", z.ZodTypeAny, {
1729
- system?: string | undefined;
1729
+ system?: string | Record<string, string> | undefined;
1730
1730
  provider?: "system" | "elevenlabs" | undefined;
1731
1731
  style?: string | undefined;
1732
1732
  elevenlabsVoiceId?: string | undefined;
@@ -1734,7 +1734,7 @@ declare const agentConfigSchema: z.ZodObject<{
1734
1734
  intro?: string | undefined;
1735
1735
  narrate?: "all" | "on" | "off" | undefined;
1736
1736
  }, {
1737
- system?: string | undefined;
1737
+ system?: string | Record<string, string> | undefined;
1738
1738
  provider?: "system" | "elevenlabs" | undefined;
1739
1739
  style?: string | undefined;
1740
1740
  elevenlabsVoiceId?: string | undefined;
@@ -1822,7 +1822,7 @@ declare const agentConfigSchema: z.ZodObject<{
1822
1822
  contextStrategy?: "layered" | "planner" | undefined;
1823
1823
  gitlabAutoReply?: boolean | undefined;
1824
1824
  voice?: {
1825
- system?: string | undefined;
1825
+ system?: string | Record<string, string> | undefined;
1826
1826
  provider?: "system" | "elevenlabs" | undefined;
1827
1827
  style?: string | undefined;
1828
1828
  elevenlabsVoiceId?: string | undefined;
@@ -1892,7 +1892,7 @@ declare const agentConfigSchema: z.ZodObject<{
1892
1892
  metadata?: Record<string, string | number | boolean> | undefined;
1893
1893
  }[] | undefined;
1894
1894
  voice?: {
1895
- system?: string | undefined;
1895
+ system?: string | Record<string, string> | undefined;
1896
1896
  provider?: "system" | "elevenlabs" | undefined;
1897
1897
  style?: string | undefined;
1898
1898
  elevenlabsVoiceId?: string | undefined;
@@ -2310,9 +2310,9 @@ declare const daemonConfigSchema: z.ZodObject<{
2310
2310
  voice: z.ZodOptional<z.ZodObject<{
2311
2311
  /** Overrides the global voice.provider for this agent. */
2312
2312
  provider: z.ZodOptional<z.ZodEnum<["system", "elevenlabs"]>>;
2313
- /** A macOS voice: a name ("Daniel", "Ava (Premium)") or identifier.
2314
- * Unset: one is assigned, different from every other agent's. */
2315
- system: z.ZodOptional<z.ZodString>;
2313
+ /** See systemVoiceSchema. Unset: one is assigned, of the agent's
2314
+ * gender when set, different from every other agent's. */
2315
+ system: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2316
2316
  elevenlabsVoiceId: z.ZodOptional<z.ZodString>;
2317
2317
  gender: z.ZodOptional<z.ZodEnum<["female", "male", "neutral"]>>;
2318
2318
  /** A few words on manner, e.g. "warm, upbeat, a little playful". */
@@ -2323,7 +2323,7 @@ declare const daemonConfigSchema: z.ZodObject<{
2323
2323
  * works: "on" for everything but cron, "all" to include cron. */
2324
2324
  narrate: z.ZodOptional<z.ZodEnum<["off", "on", "all"]>>;
2325
2325
  }, "strip", z.ZodTypeAny, {
2326
- system?: string | undefined;
2326
+ system?: string | Record<string, string> | undefined;
2327
2327
  provider?: "system" | "elevenlabs" | undefined;
2328
2328
  style?: string | undefined;
2329
2329
  elevenlabsVoiceId?: string | undefined;
@@ -2331,7 +2331,7 @@ declare const daemonConfigSchema: z.ZodObject<{
2331
2331
  intro?: string | undefined;
2332
2332
  narrate?: "all" | "on" | "off" | undefined;
2333
2333
  }, {
2334
- system?: string | undefined;
2334
+ system?: string | Record<string, string> | undefined;
2335
2335
  provider?: "system" | "elevenlabs" | undefined;
2336
2336
  style?: string | undefined;
2337
2337
  elevenlabsVoiceId?: string | undefined;
@@ -2419,7 +2419,7 @@ declare const daemonConfigSchema: z.ZodObject<{
2419
2419
  contextStrategy?: "layered" | "planner" | undefined;
2420
2420
  gitlabAutoReply?: boolean | undefined;
2421
2421
  voice?: {
2422
- system?: string | undefined;
2422
+ system?: string | Record<string, string> | undefined;
2423
2423
  provider?: "system" | "elevenlabs" | undefined;
2424
2424
  style?: string | undefined;
2425
2425
  elevenlabsVoiceId?: string | undefined;
@@ -2489,7 +2489,7 @@ declare const daemonConfigSchema: z.ZodObject<{
2489
2489
  metadata?: Record<string, string | number | boolean> | undefined;
2490
2490
  }[] | undefined;
2491
2491
  voice?: {
2492
- system?: string | undefined;
2492
+ system?: string | Record<string, string> | undefined;
2493
2493
  provider?: "system" | "elevenlabs" | undefined;
2494
2494
  style?: string | undefined;
2495
2495
  elevenlabsVoiceId?: string | undefined;
@@ -3638,9 +3638,9 @@ declare const daemonConfigSchema: z.ZodObject<{
3638
3638
  meshVoices: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3639
3639
  /** Overrides the global voice.provider for this agent. */
3640
3640
  provider: z.ZodOptional<z.ZodEnum<["system", "elevenlabs"]>>;
3641
- /** A macOS voice: a name ("Daniel", "Ava (Premium)") or identifier.
3642
- * Unset: one is assigned, different from every other agent's. */
3643
- system: z.ZodOptional<z.ZodString>;
3641
+ /** See systemVoiceSchema. Unset: one is assigned, of the agent's
3642
+ * gender when set, different from every other agent's. */
3643
+ system: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3644
3644
  elevenlabsVoiceId: z.ZodOptional<z.ZodString>;
3645
3645
  gender: z.ZodOptional<z.ZodEnum<["female", "male", "neutral"]>>;
3646
3646
  /** A few words on manner, e.g. "warm, upbeat, a little playful". */
@@ -3654,7 +3654,7 @@ declare const daemonConfigSchema: z.ZodObject<{
3654
3654
  /** What to call the agent aloud, e.g. "Atlas" for "Main Agent". */
3655
3655
  name: z.ZodOptional<z.ZodString>;
3656
3656
  }, "strip", z.ZodTypeAny, {
3657
- system?: string | undefined;
3657
+ system?: string | Record<string, string> | undefined;
3658
3658
  provider?: "system" | "elevenlabs" | undefined;
3659
3659
  name?: string | undefined;
3660
3660
  style?: string | undefined;
@@ -3663,7 +3663,7 @@ declare const daemonConfigSchema: z.ZodObject<{
3663
3663
  intro?: string | undefined;
3664
3664
  narrate?: "all" | "on" | "off" | undefined;
3665
3665
  }, {
3666
- system?: string | undefined;
3666
+ system?: string | Record<string, string> | undefined;
3667
3667
  provider?: "system" | "elevenlabs" | undefined;
3668
3668
  name?: string | undefined;
3669
3669
  style?: string | undefined;
@@ -3680,18 +3680,18 @@ declare const daemonConfigSchema: z.ZodObject<{
3680
3680
  /** When ElevenLabs cannot speak (no key, an error): the system voice,
3681
3681
  * or silence. */
3682
3682
  fallback: z.ZodDefault<z.ZodEnum<["system", "none"]>>;
3683
- /** The system voice for agents without one of their own. Unset: each
3684
- * agent gets its own. */
3685
- system: z.ZodOptional<z.ZodString>;
3683
+ /** The system voice for agents without one of their own (see
3684
+ * systemVoiceSchema). Unset: each agent gets its own. */
3685
+ system: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3686
3686
  /** Language for assigned system voices, e.g. "en", "fr-FR". */
3687
3687
  locale: z.ZodDefault<z.ZodString>;
3688
3688
  }, "strip", z.ZodTypeAny, {
3689
3689
  provider: "system" | "elevenlabs";
3690
3690
  fallback: "system" | "none";
3691
3691
  locale: string;
3692
- system?: string | undefined;
3692
+ system?: string | Record<string, string> | undefined;
3693
3693
  }, {
3694
- system?: string | undefined;
3694
+ system?: string | Record<string, string> | undefined;
3695
3695
  provider?: "system" | "elevenlabs" | undefined;
3696
3696
  fallback?: "system" | "none" | undefined;
3697
3697
  locale?: string | undefined;
@@ -4170,7 +4170,7 @@ declare const daemonConfigSchema: z.ZodObject<{
4170
4170
  port: z.ZodDefault<z.ZodNumber>;
4171
4171
  bind: z.ZodDefault<z.ZodString>;
4172
4172
  token: z.ZodOptional<z.ZodString>;
4173
- daemonUrl: z.ZodDefault<z.ZodString>;
4173
+ daemonUrl: z.ZodDefault<z.ZodString>; /** Overrides the global voice.provider for this agent. */
4174
4174
  daemons: z.ZodDefault<z.ZodArray<z.ZodObject<{
4175
4175
  name: z.ZodString;
4176
4176
  url: z.ZodString;
@@ -4189,7 +4189,7 @@ declare const daemonConfigSchema: z.ZodObject<{
4189
4189
  token?: string | undefined;
4190
4190
  dashboardUrl?: string | undefined;
4191
4191
  dashboardToken?: string | undefined;
4192
- }>, "many">>; /** The one-line self-introduction used on first contact. */
4192
+ }>, "many">>;
4193
4193
  draftAgent: z.ZodOptional<z.ZodString>;
4194
4194
  }, "strip", z.ZodTypeAny, {
4195
4195
  enabled: boolean;
@@ -5022,7 +5022,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5022
5022
  contextStrategy?: "layered" | "planner" | undefined;
5023
5023
  gitlabAutoReply?: boolean | undefined;
5024
5024
  voice?: {
5025
- system?: string | undefined;
5025
+ system?: string | Record<string, string> | undefined;
5026
5026
  provider?: "system" | "elevenlabs" | undefined;
5027
5027
  style?: string | undefined;
5028
5028
  elevenlabsVoiceId?: string | undefined;
@@ -5059,7 +5059,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5059
5059
  provider: "system" | "elevenlabs";
5060
5060
  fallback: "system" | "none";
5061
5061
  locale: string;
5062
- system?: string | undefined;
5062
+ system?: string | Record<string, string> | undefined;
5063
5063
  };
5064
5064
  node: {
5065
5065
  id: string;
@@ -5256,7 +5256,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5256
5256
  } | undefined;
5257
5257
  };
5258
5258
  meshVoices: Record<string, {
5259
- system?: string | undefined;
5259
+ system?: string | Record<string, string> | undefined;
5260
5260
  provider?: "system" | "elevenlabs" | undefined;
5261
5261
  name?: string | undefined;
5262
5262
  style?: string | undefined;
@@ -5560,7 +5560,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5560
5560
  metadata?: Record<string, string | number | boolean> | undefined;
5561
5561
  }[] | undefined;
5562
5562
  voice?: {
5563
- system?: string | undefined;
5563
+ system?: string | Record<string, string> | undefined;
5564
5564
  provider?: "system" | "elevenlabs" | undefined;
5565
5565
  style?: string | undefined;
5566
5566
  elevenlabsVoiceId?: string | undefined;
@@ -5594,7 +5594,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5594
5594
  } | undefined;
5595
5595
  } | undefined;
5596
5596
  voice?: {
5597
- system?: string | undefined;
5597
+ system?: string | Record<string, string> | undefined;
5598
5598
  provider?: "system" | "elevenlabs" | undefined;
5599
5599
  fallback?: "system" | "none" | undefined;
5600
5600
  locale?: string | undefined;
@@ -5788,7 +5788,7 @@ declare const daemonConfigSchema: z.ZodObject<{
5788
5788
  } | undefined;
5789
5789
  } | undefined;
5790
5790
  meshVoices?: Record<string, {
5791
- system?: string | undefined;
5791
+ system?: string | Record<string, string> | undefined;
5792
5792
  provider?: "system" | "elevenlabs" | undefined;
5793
5793
  name?: string | undefined;
5794
5794
  style?: string | undefined;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{a as L}from"./chunk-W5C2GDNC.js";import{a as St,b as kt,c as vt,d as xt,e as $t,ea as bt,f as Ct,fa as Tt,g as Pt,ga as Mt}from"./chunk-4ZGX4L6Q.js";import"./chunk-F6CNF7V3.js";import"./chunk-AKIYB3IJ.js";import"./chunk-V7FYSZSV.js";import"./chunk-ZVP6GB4G.js";import{J as yt,h as lt,i as ct,j as dt,k as mt,l as pt}from"./chunk-N6APC3DF.js";import"./chunk-IEE475O2.js";import"./chunk-VMDA2SX2.js";import"./chunk-QLTM3F7M.js";import{h as ut}from"./chunk-RRLIZLBH.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-HEV3AVFJ.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-3SCPRYJB.js";import"./chunk-WPMX3VGI.js";import"./chunk-K33GIBSE.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-3SKFX6G3.js";import"./chunk-JLEADOCC.js";import"./chunk-DWADWDMU.js";import"./chunk-77OV7346.js";import"./chunk-VWTBHLMX.js";import{a as gt,b as ft,e as ht}from"./chunk-MC6I6ZLY.js";import"./chunk-PNWNVOEZ.js";import"./chunk-64P4QHSZ.js";import"./chunk-EJWIRM52.js";import"./chunk-AJ5RMU7X.js";import"./chunk-2GIDVZ4H.js";import{j as it,k as rt,l as at}from"./chunk-SR6TVIIS.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-QOYAX2FT.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-LCIREYTD.js";import{a as m,b as G}from"./chunk-L2WSPY6S.js";import{a as Fe,b as Le,c as A,d as De}from"./chunk-VDMYBPYB.js";import{a as Ke,b as Je,e as We}from"./chunk-DSYKYZMT.js";import{e as tt,g as st,h as ot,j as nt}from"./chunk-WFKS4O34.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.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(`
1
+ import{a as L}from"./chunk-W5C2GDNC.js";import{a as St,b as kt,c as vt,d as xt,e as $t,f as Ct,g as Pt,ga as bt,ha as Tt,ia as Mt}from"./chunk-KZPHCJMW.js";import"./chunk-F6CNF7V3.js";import"./chunk-FAJEBVZE.js";import"./chunk-V7FYSZSV.js";import"./chunk-ZVP6GB4G.js";import{J as yt,h as lt,i as ct,j as dt,k as mt,l as pt}from"./chunk-DIKZWTL5.js";import"./chunk-P7LNYB53.js";import"./chunk-VMDA2SX2.js";import"./chunk-QLTM3F7M.js";import{h as ut}from"./chunk-NZ6AQIKJ.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-WBGROLOX.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-3SCPRYJB.js";import"./chunk-WPMX3VGI.js";import"./chunk-K33GIBSE.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-B32HVIDN.js";import"./chunk-X763UOES.js";import"./chunk-DWADWDMU.js";import"./chunk-77OV7346.js";import"./chunk-VWTBHLMX.js";import{a as gt,b as ft,e as ht}from"./chunk-RCVGIKC2.js";import"./chunk-PNWNVOEZ.js";import"./chunk-64P4QHSZ.js";import"./chunk-RQKUQOFC.js";import"./chunk-AJ5RMU7X.js";import"./chunk-2GIDVZ4H.js";import{j as it,k as rt,l as at}from"./chunk-H4MIYENA.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-QOYAX2FT.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-LCIREYTD.js";import{a as m,b as G}from"./chunk-L2WSPY6S.js";import{a as Fe,b as Le,c as A,d as De}from"./chunk-VDMYBPYB.js";import{a as Ke,b as Je,e as We}from"./chunk-DSYKYZMT.js";import{e as tt,g as st,h as ot,j as nt}from"./chunk-IAG6FI3Q.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.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-BOKE5M5S.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).
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-DWAVMTAV.js";import"./chunk-SJPLXXCI.js";import"./chunk-B5HKRYCU.js";import"./chunk-REPZID5M.js";import"./chunk-2TJ5L7CB.js";import"./chunk-7CVJ4JOE.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-SZDACK6O.js";import"./chunk-KZPHCJMW.js";import"./chunk-F6CNF7V3.js";import"./chunk-FAJEBVZE.js";import"./chunk-V7FYSZSV.js";import"./chunk-ZVP6GB4G.js";import"./chunk-DIKZWTL5.js";import"./chunk-P7LNYB53.js";import"./chunk-VMDA2SX2.js";import"./chunk-QLTM3F7M.js";import"./chunk-NZ6AQIKJ.js";import"./chunk-WBGROLOX.js";import"./chunk-SFQUP3BP.js";import"./chunk-3SCPRYJB.js";import"./chunk-WPMX3VGI.js";import"./chunk-K33GIBSE.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-B32HVIDN.js";import"./chunk-X763UOES.js";import"./chunk-DWADWDMU.js";import"./chunk-77OV7346.js";import"./chunk-VWTBHLMX.js";import"./chunk-RCVGIKC2.js";import"./chunk-PNWNVOEZ.js";import"./chunk-64P4QHSZ.js";import"./chunk-RQKUQOFC.js";import"./chunk-AJ5RMU7X.js";import"./chunk-2GIDVZ4H.js";import"./chunk-H4MIYENA.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-QOYAX2FT.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-VDMYBPYB.js";import"./chunk-DSYKYZMT.js";import"./chunk-IAG6FI3Q.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";export{a as buildProgram};
2
+ //# sourceMappingURL=program-P7LNISI7.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-RQKUQOFC.js";import"./chunk-AJ5RMU7X.js";import"./chunk-2GIDVZ4H.js";import"./chunk-H4MIYENA.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-QOYAX2FT.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-IAG6FI3Q.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";export{a as agenticQuery};
2
+ //# sourceMappingURL=query-ZSUBNWOL.js.map
@@ -1,2 +1,2 @@
1
- import{A as a,B as b,C as c,D as d,E as e,F as f,G as g,H as h,I as i,J as j}from"./chunk-N6APC3DF.js";import"./chunk-IEE475O2.js";import"./chunk-VMDA2SX2.js";import"./chunk-QLTM3F7M.js";import"./chunk-RRLIZLBH.js";import"./chunk-WPMX3VGI.js";import"./chunk-K33GIBSE.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-3SKFX6G3.js";import"./chunk-JLEADOCC.js";import"./chunk-DWADWDMU.js";import"./chunk-77OV7346.js";import"./chunk-VWTBHLMX.js";import"./chunk-MC6I6ZLY.js";import"./chunk-PNWNVOEZ.js";import"./chunk-64P4QHSZ.js";import"./chunk-EJWIRM52.js";import"./chunk-AJ5RMU7X.js";import"./chunk-2GIDVZ4H.js";import"./chunk-SR6TVIIS.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-QOYAX2FT.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-DSYKYZMT.js";import"./chunk-WFKS4O34.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";export{j as AgentRegistry,e as TRACE_STEP_SUMMARY_BYTES,c as buildEntryMeta,d as buildWikiContext,f as clipForTrace,i as emitTraceStepsFromStreamEvent,h as firstMissingRequiredTool,b as getGlobalRegistry,a as setGlobalRegistry,g as tallyToolUses};
2
- //# sourceMappingURL=registry-TDYF7HGH.js.map
1
+ import{A as a,B as b,C as c,D as d,E as e,F as f,G as g,H as h,I as i,J as j}from"./chunk-DIKZWTL5.js";import"./chunk-P7LNYB53.js";import"./chunk-VMDA2SX2.js";import"./chunk-QLTM3F7M.js";import"./chunk-NZ6AQIKJ.js";import"./chunk-WPMX3VGI.js";import"./chunk-K33GIBSE.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import"./chunk-B32HVIDN.js";import"./chunk-X763UOES.js";import"./chunk-DWADWDMU.js";import"./chunk-77OV7346.js";import"./chunk-VWTBHLMX.js";import"./chunk-RCVGIKC2.js";import"./chunk-PNWNVOEZ.js";import"./chunk-64P4QHSZ.js";import"./chunk-RQKUQOFC.js";import"./chunk-AJ5RMU7X.js";import"./chunk-2GIDVZ4H.js";import"./chunk-H4MIYENA.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-QOYAX2FT.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-DSYKYZMT.js";import"./chunk-IAG6FI3Q.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";export{j as AgentRegistry,e as TRACE_STEP_SUMMARY_BYTES,c as buildEntryMeta,d as buildWikiContext,f as clipForTrace,i as emitTraceStepsFromStreamEvent,h as firstMissingRequiredTool,b as getGlobalRegistry,a as setGlobalRegistry,g as tallyToolUses};
2
+ //# sourceMappingURL=registry-OMUDCBKM.js.map
@@ -1,2 +1,2 @@
1
- import{q as m,t as p,v as d,w as x}from"./chunk-SR6TVIIS.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import{a as u,f}from"./chunk-F4HZTZHW.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-WFKS4O34.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";x();f();var l="request-gate",h="request-context",g=.1;async function q(t,o,c,r=Math.random){let s=p(l)==="active";if(s){let i=m().seats[l]?.holdout??g;if(r()<i)return{active:!0,preprocess:!1,arm:"holdout"}}let a=s?"treatment":void 0,e=await d(l,{request:t.slice(0,2e3),agent:o,channel:c,operations:["select optional context","evaluate model routing where permitted"],constraints:["Keep the original request and mandatory instructions","Desktop model cannot be downgraded"]},{preprocess:u("This request benefits from structured context selection or another bounded typed decision before the main agent executes.",{true:"Relevant context must be selected, or a bounded routing decision can help. Follow-ups and ambiguous references need context.",false:"Typed preprocessing adds no useful decision; send the request to the configured main agent with existing context."})},{timeoutMs:3e3});if(!e||e.mode!=="active")return{active:!1,preprocess:!1,arm:a};let n=e.answers.preprocess?.noul;return{active:!0,preprocess:Number.isFinite(n)&&n>=.5,arm:a}}var v={landscape:"Agent directory and mesh overview",patternContext:"Learned behavioral patterns",references:"Retrieved project references",memoryContext:"Retrieved agent memory",crossChatContext:"Summaries from other conversations",longMemoryRecall:"Older conversation recall",wikiContext:"Retrieved wiki knowledge"};async function b(t){let o=Object.entries(v).flatMap(([e,n])=>{let i=t[e];return i?[{id:e,description:n,source:e,characters:i.length,preview:i.slice(0,400),trust:"context data, not instructions"}]:[]});if(!o.length)return{input:t,excluded:[]};let c=Object.fromEntries(o.map(e=>[e.id,u(`Context block ${e.id} is relevant to completing the current request correctly.`,{true:"Needed or potentially relevant; retain if uncertain or the preview is incomplete.",false:"Clearly unrelated to the current request; safe to omit."})])),r=await d(h,{request:t.message.slice(0,2e3),channel:t.channel,agent:t.agentId,mandatory:["request","identity","permissions and instructions","same-chat history","handover","attachments"],context:o},c,{timeoutMs:3e3});if(!r||r.mode!=="active")return{input:t,excluded:[]};let s={...t},a=[];for(let e of o){let n=r.answers[e.id]?.noul;Number.isFinite(n)&&n>=0&&n<.2&&(delete s[e.id],a.push(e.id))}return{input:s,excluded:a}}export{g as DEFAULT_REQUEST_GATE_HOLDOUT,h as REQUEST_CONTEXT_SEAT,l as REQUEST_GATE_SEAT,q as evaluateRequest,b as selectRequestContext};
2
- //# sourceMappingURL=request-planner-DF74JHQB.js.map
1
+ import{q as m,t as p,v as d,w as x}from"./chunk-H4MIYENA.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import{a as u,f}from"./chunk-F4HZTZHW.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-IAG6FI3Q.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";x();f();var l="request-gate",h="request-context",g=.1;async function q(t,o,c,r=Math.random){let s=p(l)==="active";if(s){let i=m().seats[l]?.holdout??g;if(r()<i)return{active:!0,preprocess:!1,arm:"holdout"}}let a=s?"treatment":void 0,e=await d(l,{request:t.slice(0,2e3),agent:o,channel:c,operations:["select optional context","evaluate model routing where permitted"],constraints:["Keep the original request and mandatory instructions","Desktop model cannot be downgraded"]},{preprocess:u("This request benefits from structured context selection or another bounded typed decision before the main agent executes.",{true:"Relevant context must be selected, or a bounded routing decision can help. Follow-ups and ambiguous references need context.",false:"Typed preprocessing adds no useful decision; send the request to the configured main agent with existing context."})},{timeoutMs:3e3});if(!e||e.mode!=="active")return{active:!1,preprocess:!1,arm:a};let n=e.answers.preprocess?.noul;return{active:!0,preprocess:Number.isFinite(n)&&n>=.5,arm:a}}var v={landscape:"Agent directory and mesh overview",patternContext:"Learned behavioral patterns",references:"Retrieved project references",memoryContext:"Retrieved agent memory",crossChatContext:"Summaries from other conversations",longMemoryRecall:"Older conversation recall",wikiContext:"Retrieved wiki knowledge"};async function b(t){let o=Object.entries(v).flatMap(([e,n])=>{let i=t[e];return i?[{id:e,description:n,source:e,characters:i.length,preview:i.slice(0,400),trust:"context data, not instructions"}]:[]});if(!o.length)return{input:t,excluded:[]};let c=Object.fromEntries(o.map(e=>[e.id,u(`Context block ${e.id} is relevant to completing the current request correctly.`,{true:"Needed or potentially relevant; retain if uncertain or the preview is incomplete.",false:"Clearly unrelated to the current request; safe to omit."})])),r=await d(h,{request:t.message.slice(0,2e3),channel:t.channel,agent:t.agentId,mandatory:["request","identity","permissions and instructions","same-chat history","handover","attachments"],context:o},c,{timeoutMs:3e3});if(!r||r.mode!=="active")return{input:t,excluded:[]};let s={...t},a=[];for(let e of o){let n=r.answers[e.id]?.noul;Number.isFinite(n)&&n>=0&&n<.2&&(delete s[e.id],a.push(e.id))}return{input:s,excluded:a}}export{g as DEFAULT_REQUEST_GATE_HOLDOUT,h as REQUEST_CONTEXT_SEAT,l as REQUEST_GATE_SEAT,q as evaluateRequest,b as selectRequestContext};
2
+ //# sourceMappingURL=request-planner-326NOKPZ.js.map
@@ -1,4 +1,4 @@
1
- import{b}from"./chunk-AKIYB3IJ.js";import"./chunk-VMDA2SX2.js";import"./chunk-2GIDVZ4H.js";import"./chunk-SR6TVIIS.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-WFKS4O34.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";import{createHash as A}from"crypto";var v="review:",I={decisions:"project",warnings:"feedback",friction:"feedback",context:"reference"};function E(t,n,r){let s=A("sha1").update(r.trim().toLowerCase()).digest("hex").slice(0,10);return`${v}${t}/${n}@${s}`}function F(t){if(!t.startsWith(v))return null;let n=t.slice(v.length),r=n.lastIndexOf("@"),s=n.lastIndexOf("/",r===-1?void 0:r);return r===-1||s===-1?null:{reviewId:n.slice(0,s),kind:n.slice(s+1,r),digest:n.slice(r+1)}}var C=t=>t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,48)||"finding";function L(t,n){return`${t}|${b(n)}`}function K(t,n={}){let r=n.kinds??Object.keys(I),s=n.minLength??24,h=[],d=new Map,u=new Map,f=new Map,x=new Map;for(let e of t){let i;try{i=JSON.parse(e.result)}catch{continue}let o=e.updated_at?new Date(e.updated_at).toISOString():new Date().toISOString();for(let c of r){let l=I[c];if(!l)continue;let R=i[c];if(Array.isArray(R))for(let $ of R){let a=String($?.text??"").trim();if(a.length<s)continue;let g=E(e.id,c,a),O=g.slice(g.lastIndexOf("@")),w=`${c}${O}`,y=L(c,a),k=f.get(y)??new Set;if(k.add(e.session_id??e.id),f.set(y,k),d.has(w))continue;let _=String($?.evidence??"").trim(),S={occurrences:1,agentId:e.agent,key:`${e.agent}/${l}_${C(a)}`,stamp:g,memory:{name:C(a),type:l,description:a.slice(0,200),body:"",createdAt:o,updatedAt:o}};x.set(g,{text:a,evidence:_,agent:e.agent,source:e.source}),d.set(w,S),u.set(w,y),h.push(S)}}}for(let[e,i]of d){i.occurrences=f.get(u.get(e)??"")?.size??1;let o=x.get(i.stamp);i.memory.body=T(o,i.occurrences)}let m=new Map;for(let[e,i]of d){let o=u.get(e)??e,c=m.get(o)??[];c.push(i),m.set(o,c)}let M=[...m.values()].sort((e,i)=>i[0].occurrences-e[0].occurrences),p=[];for(let e=0;p.length<h.length;e++){let i=!1;for(let o of M)e<o.length&&(p.push(o[e]),i=!0);if(!i)break}return p}function T(t,n){let r=`${t.agent}${t.source?` via ${t.source}`:""}`,s=[];return n>1?(s.push(`Observed in ${n} separate sessions. Most recently stated as:`),s.push(`> ${t.text}`),s.push(`Recurring across ${n} sessions is what makes this worth recording \u2014 any single occurrence is session state, the repetition is the finding.`)):s.push(t.text),t.evidence&&s.push(`**Evidence:** ${t.evidence}`),s.push(`_From ${n>1?"session reviews":"a session review"} of ${r}._`),s.join(`
1
+ import{b}from"./chunk-FAJEBVZE.js";import"./chunk-VMDA2SX2.js";import"./chunk-2GIDVZ4H.js";import"./chunk-H4MIYENA.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-IAG6FI3Q.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";import{createHash as A}from"crypto";var v="review:",I={decisions:"project",warnings:"feedback",friction:"feedback",context:"reference"};function E(t,n,r){let s=A("sha1").update(r.trim().toLowerCase()).digest("hex").slice(0,10);return`${v}${t}/${n}@${s}`}function F(t){if(!t.startsWith(v))return null;let n=t.slice(v.length),r=n.lastIndexOf("@"),s=n.lastIndexOf("/",r===-1?void 0:r);return r===-1||s===-1?null:{reviewId:n.slice(0,s),kind:n.slice(s+1,r),digest:n.slice(r+1)}}var C=t=>t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,48)||"finding";function L(t,n){return`${t}|${b(n)}`}function K(t,n={}){let r=n.kinds??Object.keys(I),s=n.minLength??24,h=[],d=new Map,u=new Map,f=new Map,x=new Map;for(let e of t){let i;try{i=JSON.parse(e.result)}catch{continue}let o=e.updated_at?new Date(e.updated_at).toISOString():new Date().toISOString();for(let c of r){let l=I[c];if(!l)continue;let R=i[c];if(Array.isArray(R))for(let $ of R){let a=String($?.text??"").trim();if(a.length<s)continue;let g=E(e.id,c,a),O=g.slice(g.lastIndexOf("@")),w=`${c}${O}`,y=L(c,a),k=f.get(y)??new Set;if(k.add(e.session_id??e.id),f.set(y,k),d.has(w))continue;let _=String($?.evidence??"").trim(),S={occurrences:1,agentId:e.agent,key:`${e.agent}/${l}_${C(a)}`,stamp:g,memory:{name:C(a),type:l,description:a.slice(0,200),body:"",createdAt:o,updatedAt:o}};x.set(g,{text:a,evidence:_,agent:e.agent,source:e.source}),d.set(w,S),u.set(w,y),h.push(S)}}}for(let[e,i]of d){i.occurrences=f.get(u.get(e)??"")?.size??1;let o=x.get(i.stamp);i.memory.body=T(o,i.occurrences)}let m=new Map;for(let[e,i]of d){let o=u.get(e)??e,c=m.get(o)??[];c.push(i),m.set(o,c)}let M=[...m.values()].sort((e,i)=>i[0].occurrences-e[0].occurrences),p=[];for(let e=0;p.length<h.length;e++){let i=!1;for(let o of M)e<o.length&&(p.push(o[e]),i=!0);if(!i)break}return p}function T(t,n){let r=`${t.agent}${t.source?` via ${t.source}`:""}`,s=[];return n>1?(s.push(`Observed in ${n} separate sessions. Most recently stated as:`),s.push(`> ${t.text}`),s.push(`Recurring across ${n} sessions is what makes this worth recording \u2014 any single occurrence is session state, the repetition is the finding.`)):s.push(t.text),t.evidence&&s.push(`**Evidence:** ${t.evidence}`),s.push(`_From ${n>1?"session reviews":"a session review"} of ${r}._`),s.join(`
2
2
 
3
3
  `)}export{I as PROMOTABLE_KINDS,v as REVIEW_STAMP_PREFIX,F as parseReviewStamp,E as reviewStamp,K as reviewsToCandidates};
4
- //# sourceMappingURL=review-candidates-SEAGMKI6.js.map
4
+ //# sourceMappingURL=review-candidates-LEOPEOEG.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"./chunk-JLEADOCC.js";import"./chunk-SR6TVIIS.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-WFKS4O34.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";export{a as cheapModelForEngine,b as routeTaskModel};
2
- //# sourceMappingURL=routing-JKWL3L3Q.js.map
1
+ import{a,b}from"./chunk-X763UOES.js";import"./chunk-H4MIYENA.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-IAG6FI3Q.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";export{a as cheapModelForEngine,b as routeTaskModel};
2
+ //# sourceMappingURL=routing-AWIRBYGU.js.map
@@ -0,0 +1,2 @@
1
+ import{g as a,h as b}from"./chunk-NZ6AQIKJ.js";import"./chunk-B32HVIDN.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-L2WSPY6S.js";import"./chunk-IAG6FI3Q.js";import"./chunk-FIOB3MEX.js";export{b as CronScheduler,a as getNextCronDate};
2
+ //# sourceMappingURL=scheduler-PGGYW5AB.js.map
@@ -1,2 +1,2 @@
1
- import{o as a,p as b,q as c,r as d,s as e,t as f,u as g,v as h,w as i}from"./chunk-SR6TVIIS.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-WFKS4O34.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";i();export{h as askSeat,a as configureDecisions,c as decisionsRuntime,f as getSeatMode,d as parseSeatMode,g as recordSeatOutcome,b as resetDecisionsRuntime,e as seatEnvVar};
2
- //# sourceMappingURL=seat-C6TOB63Q.js.map
1
+ import{o as a,p as b,q as c,r as d,s as e,t as f,u as g,v as h,w as i}from"./chunk-H4MIYENA.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-IAG6FI3Q.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";i();export{h as askSeat,a as configureDecisions,c as decisionsRuntime,f as getSeatMode,d as parseSeatMode,g as recordSeatOutcome,b as resetDecisionsRuntime,e as seatEnvVar};
2
+ //# sourceMappingURL=seat-XB4EGUKJ.js.map
@@ -1,2 +1,2 @@
1
- import{v as S,w}from"./chunk-SR6TVIIS.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import{a as g,b as h,f as R}from"./chunk-F4HZTZHW.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import{d as f}from"./chunk-VDMYBPYB.js";import"./chunk-WFKS4O34.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";w();R();var p="skill-select";function y(l){return{task:d(l.task,1200),...l.agent?{agent:l.agent}:{},skills:l.candidates.map(t=>({name:t.name,purpose:d(t.description,300),...t.category?{category:t.category}:{},...t.tags?.length?{tags:t.tags.slice(0,8)}:{}}))}}function b(l){let t={};for(let i of l)t[i.name]=d(i.description,300);return{anyRelevant:g("At least one of these skills is about the task at hand.",{true:"The task is the kind of work one of these skills exists for, and following it would change how the work is done \u2014 it names the same system, the same procedure or the same kind of artefact.",false:"None of them is about this task. They may share vocabulary with it, mention the same tools, or belong to the same project without bearing on what is being asked. Sharing words with a task is not being about it."}),best:h(t,"Which skill is this task most about?")}}function v(l){let t=l.anyRelevant,i=l.best,o=Object.entries(i.probabilities??{}).map(([e,s])=>({name:e,p:Number(s)||0})).sort((e,s)=>s.p-e.p);return{anyRelevant:t.noul,name:i.choice,confidence:i.confidence,ranked:o}}function d(l,t){return l.length>t?`${l.slice(0,t)}\u2026`:l}var x=.1,A=12;async function E(l,t,i={}){let o=i.minRelevant??.6,e=f(l,t).filter(n=>n.relevance>=x).slice(0,A),s=e.map(n=>({name:n.skill.frontmatter.name,lexical:n.relevance}));if(e.length===0)return{skill:null,anyRelevant:0,confidence:0,shortlist:s,judged:!1,reason:"no skill mentions anything in this task"};if(e.length===1)return{skill:e[0].skill,anyRelevant:e[0].relevance,confidence:e[0].relevance,shortlist:s,judged:!1,reason:`only ${e[0].skill.frontmatter.name} matched (${e[0].matchReason})`};let r=e.map(n=>({name:n.skill.frontmatter.name,description:n.skill.frontmatter.description,category:n.skill.frontmatter.category??null,tags:n.skill.frontmatter.tags})),m=await S(p,y({task:t,agent:i.agent??null,candidates:r}),b(r),{incumbent:{best:r[0].name},features:{agent:i.agent??"unknown",candidates:r.length}});if(!m)return{skill:e[0].skill,anyRelevant:e[0].relevance,confidence:e[0].relevance,shortlist:s,judged:!1,reason:`seat off \u2014 lexical top match (${e[0].matchReason})`};let a=v(m.answers),c=s.map(n=>({...n,p:a.ranked.find(k=>k.name===n.name)?.p??0})).sort((n,k)=>(k.p??0)-(n.p??0));if(a.anyRelevant<o)return{skill:null,anyRelevant:a.anyRelevant,confidence:a.confidence,shortlist:c,judged:!0,reason:`nothing on the shortlist is about this task (${a.anyRelevant.toFixed(2)} below ${o})`};let u=e.find(n=>n.skill.frontmatter.name===a.name);return u?{skill:u.skill,anyRelevant:a.anyRelevant,confidence:a.confidence,shortlist:c,judged:!0,reason:`${a.name} (confidence ${a.confidence.toFixed(2)})`}:{skill:null,anyRelevant:a.anyRelevant,confidence:a.confidence,shortlist:c,judged:!0,reason:`seat chose "${a.name}", which was not on the shortlist`}}export{E as pickSkillForTask};
2
- //# sourceMappingURL=select-YB5KF27O.js.map
1
+ import{v as S,w}from"./chunk-H4MIYENA.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import{a as g,b as h,f as R}from"./chunk-F4HZTZHW.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import{d as f}from"./chunk-VDMYBPYB.js";import"./chunk-IAG6FI3Q.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";w();R();var p="skill-select";function y(l){return{task:d(l.task,1200),...l.agent?{agent:l.agent}:{},skills:l.candidates.map(t=>({name:t.name,purpose:d(t.description,300),...t.category?{category:t.category}:{},...t.tags?.length?{tags:t.tags.slice(0,8)}:{}}))}}function b(l){let t={};for(let i of l)t[i.name]=d(i.description,300);return{anyRelevant:g("At least one of these skills is about the task at hand.",{true:"The task is the kind of work one of these skills exists for, and following it would change how the work is done \u2014 it names the same system, the same procedure or the same kind of artefact.",false:"None of them is about this task. They may share vocabulary with it, mention the same tools, or belong to the same project without bearing on what is being asked. Sharing words with a task is not being about it."}),best:h(t,"Which skill is this task most about?")}}function v(l){let t=l.anyRelevant,i=l.best,o=Object.entries(i.probabilities??{}).map(([e,s])=>({name:e,p:Number(s)||0})).sort((e,s)=>s.p-e.p);return{anyRelevant:t.noul,name:i.choice,confidence:i.confidence,ranked:o}}function d(l,t){return l.length>t?`${l.slice(0,t)}\u2026`:l}var x=.1,A=12;async function E(l,t,i={}){let o=i.minRelevant??.6,e=f(l,t).filter(n=>n.relevance>=x).slice(0,A),s=e.map(n=>({name:n.skill.frontmatter.name,lexical:n.relevance}));if(e.length===0)return{skill:null,anyRelevant:0,confidence:0,shortlist:s,judged:!1,reason:"no skill mentions anything in this task"};if(e.length===1)return{skill:e[0].skill,anyRelevant:e[0].relevance,confidence:e[0].relevance,shortlist:s,judged:!1,reason:`only ${e[0].skill.frontmatter.name} matched (${e[0].matchReason})`};let r=e.map(n=>({name:n.skill.frontmatter.name,description:n.skill.frontmatter.description,category:n.skill.frontmatter.category??null,tags:n.skill.frontmatter.tags})),m=await S(p,y({task:t,agent:i.agent??null,candidates:r}),b(r),{incumbent:{best:r[0].name},features:{agent:i.agent??"unknown",candidates:r.length}});if(!m)return{skill:e[0].skill,anyRelevant:e[0].relevance,confidence:e[0].relevance,shortlist:s,judged:!1,reason:`seat off \u2014 lexical top match (${e[0].matchReason})`};let a=v(m.answers),c=s.map(n=>({...n,p:a.ranked.find(k=>k.name===n.name)?.p??0})).sort((n,k)=>(k.p??0)-(n.p??0));if(a.anyRelevant<o)return{skill:null,anyRelevant:a.anyRelevant,confidence:a.confidence,shortlist:c,judged:!0,reason:`nothing on the shortlist is about this task (${a.anyRelevant.toFixed(2)} below ${o})`};let u=e.find(n=>n.skill.frontmatter.name===a.name);return u?{skill:u.skill,anyRelevant:a.anyRelevant,confidence:a.confidence,shortlist:c,judged:!0,reason:`${a.name} (confidence ${a.confidence.toFixed(2)})`}:{skill:null,anyRelevant:a.anyRelevant,confidence:a.confidence,shortlist:c,judged:!0,reason:`seat chose "${a.name}", which was not on the shortlist`}}export{E as pickSkillForTask};
2
+ //# sourceMappingURL=select-L4VIYSFJ.js.map
@@ -0,0 +1,2 @@
1
+ import"./chunk-VWTBHLMX.js";import{e as a,f as b}from"./chunk-RCVGIKC2.js";import"./chunk-PNWNVOEZ.js";import"./chunk-64P4QHSZ.js";import{a as c}from"./chunk-RQKUQOFC.js";import"./chunk-AJ5RMU7X.js";import"./chunk-2GIDVZ4H.js";import"./chunk-H4MIYENA.js";import"./chunk-ZTEU5JVQ.js";import"./chunk-AJONZWLT.js";import"./chunk-F4HZTZHW.js";import"./chunk-QOYAX2FT.js";import"./chunk-LCIREYTD.js";import"./chunk-L2WSPY6S.js";import"./chunk-IAG6FI3Q.js";import"./chunk-BH3GTCZ6.js";import"./chunk-FIOB3MEX.js";export{b as WikiHub,a as WikiStore,c as agenticQuery};
2
+ //# sourceMappingURL=wiki-GBC6I7ZX.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentix-cli",
3
- "version": "0.37.0",
3
+ "version": "0.38.0",
4
4
  "description": "AI operations layer for small and medium businesses. Routes Telegram, WhatsApp, GitLab, GitHub, crons, webhooks, and mesh tasks to AI agents. Web wizard for operators, CLI for engineers. Self-hosted.",
5
5
  "license": "MIT",
6
6
  "author": {