agentix-cli 0.170.0 → 0.172.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 (147) hide show
  1. package/README.md +175 -73
  2. package/dist/{App-BT67QQ5H.js → App-56QIEQGH.js} +2 -2
  3. package/dist/{ChatApp-64WRBUKX.js → ChatApp-JNWIXMDN.js} +2 -2
  4. package/dist/{absorb-eval-IHNCDJTM.js → absorb-eval-BYYFZJCC.js} +2 -2
  5. package/dist/{adapter-URLHEV3F.js → adapter-YQ37MDPV.js} +2 -2
  6. package/dist/{agent-Q73VAOJR.js → agent-4637FJMD.js} +2 -2
  7. package/dist/{board-dashboard-VZYUXVP6.js → board-dashboard-DJKRLABN.js} +731 -396
  8. package/dist/board-dashboard-DJKRLABN.js.map +1 -0
  9. package/dist/{chunk-7TEJJM24.js → chunk-2BJ7NIGG.js} +2 -2
  10. package/dist/{chunk-JXGREJDJ.js → chunk-35I76HQS.js} +2 -2
  11. package/dist/{chunk-E7VJU7FI.js → chunk-35R7Y7BT.js} +2 -2
  12. package/dist/{chunk-GKE7IP3T.js → chunk-5KVTIFRY.js} +2 -2
  13. package/dist/{chunk-FWT23FGY.js → chunk-7FGJOVML.js} +69 -69
  14. package/dist/chunk-7FGJOVML.js.map +1 -0
  15. package/dist/{chunk-4BVISFOC.js → chunk-7NA5VSQE.js} +311 -306
  16. package/dist/chunk-7NA5VSQE.js.map +1 -0
  17. package/dist/{chunk-OJ2XT27M.js → chunk-AQGQLVCD.js} +2 -2
  18. package/dist/{chunk-AU3VT7BD.js → chunk-DMCMV4UJ.js} +2 -2
  19. package/dist/{chunk-6JKFJM2D.js → chunk-DOBTHQ32.js} +2 -2
  20. package/dist/{chunk-EYC5DJR2.js → chunk-ES236GV6.js} +2 -2
  21. package/dist/{chunk-CLH4QJAO.js → chunk-FOTAGQEL.js} +2 -2
  22. package/dist/{chunk-I4VNUTLL.js → chunk-GALI5ANI.js} +3 -3
  23. package/dist/{chunk-FAU6WDVT.js → chunk-HZXLZIB4.js} +2 -2
  24. package/dist/{chunk-XGREDHJY.js → chunk-I7EO2WXC.js} +2 -2
  25. package/dist/{chunk-3Y6QTM4Z.js → chunk-IPHFWU2F.js} +2 -2
  26. package/dist/{chunk-SEQXJWSD.js → chunk-KE3KLMMK.js} +2 -2
  27. package/dist/{chunk-OV77U4GH.js → chunk-LB55Q3K4.js} +2 -2
  28. package/dist/{chunk-RE5XFWBY.js → chunk-MH55YCUS.js} +94 -94
  29. package/dist/chunk-MH55YCUS.js.map +1 -0
  30. package/dist/{chunk-CX6HUPUZ.js → chunk-MY7C6E4Y.js} +2 -2
  31. package/dist/{chunk-VUEQ4SL5.js → chunk-N6VBEITO.js} +2 -2
  32. package/dist/chunk-N6VBEITO.js.map +1 -0
  33. package/dist/{chunk-U5P7VICU.js → chunk-NGGEGY5K.js} +2 -2
  34. package/dist/chunk-NGGEGY5K.js.map +1 -0
  35. package/dist/{chunk-5P5TRMTT.js → chunk-NR5IZJYS.js} +2 -2
  36. package/dist/{chunk-OMD44DQ6.js → chunk-PD5BZYBO.js} +36 -35
  37. package/dist/chunk-PD5BZYBO.js.map +1 -0
  38. package/dist/{chunk-AKL5ZKJO.js → chunk-SP7VFTXO.js} +2 -2
  39. package/dist/{chunk-AKL5ZKJO.js.map → chunk-SP7VFTXO.js.map} +1 -1
  40. package/dist/{chunk-FP4DT6D5.js → chunk-TAUXWIYB.js} +2 -2
  41. package/dist/{chunk-WWH3SKMB.js → chunk-TB3ZEMTC.js} +2 -2
  42. package/dist/{chunk-CQBWWH2B.js → chunk-WO4XKOMM.js} +2 -2
  43. package/dist/{chunk-K4HQYC5M.js → chunk-WVPFWUR2.js} +2 -2
  44. package/dist/{chunk-IZDFUFAQ.js → chunk-XCYGF4RB.js} +2 -2
  45. package/dist/{chunk-7JX766OQ.js → chunk-XUT4RBU6.js} +2 -2
  46. package/dist/{chunk-CWYCCQ57.js → chunk-YLQZFV6Y.js} +2 -2
  47. package/dist/cli.js +1 -1
  48. package/dist/{client-WPOAEQSW.js → client-LP4PURY2.js} +2 -2
  49. package/dist/{config-7MCC4L7E.js → config-IBOY7BGF.js} +2 -2
  50. package/dist/{config-mutate-GLF2MEW4.js → config-mutate-PETOQADF.js} +2 -2
  51. package/dist/config-mutator-2NLZ37LL.js +2 -0
  52. package/dist/{contributions-A3JV2JW6.js → contributions-NQ3OQ4O4.js} +2 -2
  53. package/dist/{doctor-XWGGS3MM.js → doctor-AMX2GRRN.js} +2 -2
  54. package/dist/{follow-up-tool-TPR3BCCK.js → follow-up-tool-3XSPNZKM.js} +2 -2
  55. package/dist/{hub-RBVAC7NA.js → hub-DRCMPJMQ.js} +2 -2
  56. package/dist/index.d.ts +323 -43
  57. package/dist/index.js +1 -1
  58. package/dist/processes-EWARF6ZW.js +2 -0
  59. package/dist/{program-OBTSSEUB.js → program-XKQTHEQ3.js} +279 -278
  60. package/dist/program-XKQTHEQ3.js.map +1 -0
  61. package/dist/{promote-KMDLBVCS.js → promote-4F2H3WEB.js} +2 -2
  62. package/dist/{query-PC2V2M2H.js → query-25FU55U6.js} +2 -2
  63. package/dist/{query-settings-FK5QR7MM.js → query-settings-5BLTPQQQ.js} +2 -2
  64. package/dist/{registry-TDZCAQAS.js → registry-GROEORK6.js} +2 -2
  65. package/dist/{request-planner-OYY36H2K.js → request-planner-7JLFVL6Y.js} +2 -2
  66. package/dist/{review-candidates-STVUGCVM.js → review-candidates-MHIKLDT7.js} +2 -2
  67. package/dist/{routing-SHHD6M67.js → routing-ZSGWR6ID.js} +2 -2
  68. package/dist/schedule-tool-2VI5IWZD.js +2 -0
  69. package/dist/{scheduler-CIOGE7UG.js → scheduler-J6BGTTMH.js} +2 -2
  70. package/dist/{seat-LWJS5BKD.js → seat-WUEQNCSG.js} +2 -2
  71. package/dist/{select-VYBDUP4R.js → select-ASFYQYDU.js} +2 -2
  72. package/dist/{set-enabled-KBLEBANS.js → set-enabled-6NIDVEZF.js} +2 -2
  73. package/dist/{sprint-tool-TCASE2O7.js → sprint-tool-APMWCQF3.js} +2 -2
  74. package/dist/{tool-LSDMU5OX.js → tool-2CKQKDU5.js} +2 -2
  75. package/dist/{tool-YMWIUVOK.js → tool-JPSOIPZZ.js} +2 -2
  76. package/dist/{tool-RQX6IEY7.js → tool-MKUGBNSW.js} +2 -2
  77. package/dist/{wiki-IIAPP6RU.js → wiki-JR6U5PSV.js} +2 -2
  78. package/dist/wiki-enrich-KFVPA2JG.js +2 -0
  79. package/package.json +2 -2
  80. package/dist/board-dashboard-VZYUXVP6.js.map +0 -1
  81. package/dist/chunk-4BVISFOC.js.map +0 -1
  82. package/dist/chunk-FWT23FGY.js.map +0 -1
  83. package/dist/chunk-OMD44DQ6.js.map +0 -1
  84. package/dist/chunk-RE5XFWBY.js.map +0 -1
  85. package/dist/chunk-U5P7VICU.js.map +0 -1
  86. package/dist/chunk-VUEQ4SL5.js.map +0 -1
  87. package/dist/config-mutator-KWUDF36N.js +0 -2
  88. package/dist/processes-QZWODHBX.js +0 -2
  89. package/dist/program-OBTSSEUB.js.map +0 -1
  90. package/dist/schedule-tool-O6OIDKNV.js +0 -2
  91. package/dist/wiki-enrich-HNC76QED.js +0 -2
  92. /package/dist/{App-BT67QQ5H.js.map → App-56QIEQGH.js.map} +0 -0
  93. /package/dist/{ChatApp-64WRBUKX.js.map → ChatApp-JNWIXMDN.js.map} +0 -0
  94. /package/dist/{absorb-eval-IHNCDJTM.js.map → absorb-eval-BYYFZJCC.js.map} +0 -0
  95. /package/dist/{adapter-URLHEV3F.js.map → adapter-YQ37MDPV.js.map} +0 -0
  96. /package/dist/{agent-Q73VAOJR.js.map → agent-4637FJMD.js.map} +0 -0
  97. /package/dist/{chunk-7TEJJM24.js.map → chunk-2BJ7NIGG.js.map} +0 -0
  98. /package/dist/{chunk-JXGREJDJ.js.map → chunk-35I76HQS.js.map} +0 -0
  99. /package/dist/{chunk-E7VJU7FI.js.map → chunk-35R7Y7BT.js.map} +0 -0
  100. /package/dist/{chunk-GKE7IP3T.js.map → chunk-5KVTIFRY.js.map} +0 -0
  101. /package/dist/{chunk-OJ2XT27M.js.map → chunk-AQGQLVCD.js.map} +0 -0
  102. /package/dist/{chunk-AU3VT7BD.js.map → chunk-DMCMV4UJ.js.map} +0 -0
  103. /package/dist/{chunk-6JKFJM2D.js.map → chunk-DOBTHQ32.js.map} +0 -0
  104. /package/dist/{chunk-EYC5DJR2.js.map → chunk-ES236GV6.js.map} +0 -0
  105. /package/dist/{chunk-CLH4QJAO.js.map → chunk-FOTAGQEL.js.map} +0 -0
  106. /package/dist/{chunk-I4VNUTLL.js.map → chunk-GALI5ANI.js.map} +0 -0
  107. /package/dist/{chunk-FAU6WDVT.js.map → chunk-HZXLZIB4.js.map} +0 -0
  108. /package/dist/{chunk-XGREDHJY.js.map → chunk-I7EO2WXC.js.map} +0 -0
  109. /package/dist/{chunk-3Y6QTM4Z.js.map → chunk-IPHFWU2F.js.map} +0 -0
  110. /package/dist/{chunk-SEQXJWSD.js.map → chunk-KE3KLMMK.js.map} +0 -0
  111. /package/dist/{chunk-OV77U4GH.js.map → chunk-LB55Q3K4.js.map} +0 -0
  112. /package/dist/{chunk-CX6HUPUZ.js.map → chunk-MY7C6E4Y.js.map} +0 -0
  113. /package/dist/{chunk-5P5TRMTT.js.map → chunk-NR5IZJYS.js.map} +0 -0
  114. /package/dist/{chunk-FP4DT6D5.js.map → chunk-TAUXWIYB.js.map} +0 -0
  115. /package/dist/{chunk-WWH3SKMB.js.map → chunk-TB3ZEMTC.js.map} +0 -0
  116. /package/dist/{chunk-CQBWWH2B.js.map → chunk-WO4XKOMM.js.map} +0 -0
  117. /package/dist/{chunk-K4HQYC5M.js.map → chunk-WVPFWUR2.js.map} +0 -0
  118. /package/dist/{chunk-IZDFUFAQ.js.map → chunk-XCYGF4RB.js.map} +0 -0
  119. /package/dist/{chunk-7JX766OQ.js.map → chunk-XUT4RBU6.js.map} +0 -0
  120. /package/dist/{chunk-CWYCCQ57.js.map → chunk-YLQZFV6Y.js.map} +0 -0
  121. /package/dist/{client-WPOAEQSW.js.map → client-LP4PURY2.js.map} +0 -0
  122. /package/dist/{config-7MCC4L7E.js.map → config-IBOY7BGF.js.map} +0 -0
  123. /package/dist/{config-mutate-GLF2MEW4.js.map → config-mutate-PETOQADF.js.map} +0 -0
  124. /package/dist/{config-mutator-KWUDF36N.js.map → config-mutator-2NLZ37LL.js.map} +0 -0
  125. /package/dist/{contributions-A3JV2JW6.js.map → contributions-NQ3OQ4O4.js.map} +0 -0
  126. /package/dist/{doctor-XWGGS3MM.js.map → doctor-AMX2GRRN.js.map} +0 -0
  127. /package/dist/{follow-up-tool-TPR3BCCK.js.map → follow-up-tool-3XSPNZKM.js.map} +0 -0
  128. /package/dist/{hub-RBVAC7NA.js.map → hub-DRCMPJMQ.js.map} +0 -0
  129. /package/dist/{processes-QZWODHBX.js.map → processes-EWARF6ZW.js.map} +0 -0
  130. /package/dist/{promote-KMDLBVCS.js.map → promote-4F2H3WEB.js.map} +0 -0
  131. /package/dist/{query-PC2V2M2H.js.map → query-25FU55U6.js.map} +0 -0
  132. /package/dist/{query-settings-FK5QR7MM.js.map → query-settings-5BLTPQQQ.js.map} +0 -0
  133. /package/dist/{registry-TDZCAQAS.js.map → registry-GROEORK6.js.map} +0 -0
  134. /package/dist/{request-planner-OYY36H2K.js.map → request-planner-7JLFVL6Y.js.map} +0 -0
  135. /package/dist/{review-candidates-STVUGCVM.js.map → review-candidates-MHIKLDT7.js.map} +0 -0
  136. /package/dist/{routing-SHHD6M67.js.map → routing-ZSGWR6ID.js.map} +0 -0
  137. /package/dist/{schedule-tool-O6OIDKNV.js.map → schedule-tool-2VI5IWZD.js.map} +0 -0
  138. /package/dist/{scheduler-CIOGE7UG.js.map → scheduler-J6BGTTMH.js.map} +0 -0
  139. /package/dist/{seat-LWJS5BKD.js.map → seat-WUEQNCSG.js.map} +0 -0
  140. /package/dist/{select-VYBDUP4R.js.map → select-ASFYQYDU.js.map} +0 -0
  141. /package/dist/{set-enabled-KBLEBANS.js.map → set-enabled-6NIDVEZF.js.map} +0 -0
  142. /package/dist/{sprint-tool-TCASE2O7.js.map → sprint-tool-APMWCQF3.js.map} +0 -0
  143. /package/dist/{tool-LSDMU5OX.js.map → tool-2CKQKDU5.js.map} +0 -0
  144. /package/dist/{tool-YMWIUVOK.js.map → tool-JPSOIPZZ.js.map} +0 -0
  145. /package/dist/{tool-RQX6IEY7.js.map → tool-MKUGBNSW.js.map} +0 -0
  146. /package/dist/{wiki-IIAPP6RU.js.map → wiki-JR6U5PSV.js.map} +0 -0
  147. /package/dist/{wiki-enrich-HNC76QED.js.map → wiki-enrich-KFVPA2JG.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -8373,10 +8373,10 @@ declare const daemonConfigSchema: z.ZodObject<{
8373
8373
  maxSeconds?: number | undefined;
8374
8374
  } | undefined;
8375
8375
  }>>;
8376
- business: z.ZodOptional<z.ZodObject<{
8376
+ business: z.ZodOptional<z.ZodEffects<z.ZodObject<{
8377
8377
  enabled: z.ZodDefault<z.ZodBoolean>;
8378
8378
  timezone: z.ZodDefault<z.ZodString>;
8379
- mainChannel: z.ZodObject<{
8379
+ mainChannel: z.ZodOptional<z.ZodObject<{
8380
8380
  channel: z.ZodString;
8381
8381
  chatId: z.ZodString;
8382
8382
  accountId: z.ZodOptional<z.ZodString>;
@@ -8388,8 +8388,8 @@ declare const daemonConfigSchema: z.ZodObject<{
8388
8388
  channel: string;
8389
8389
  chatId: string;
8390
8390
  accountId?: string | undefined;
8391
- }>;
8392
- workSource: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8391
+ }>>;
8392
+ workSource: z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8393
8393
  type: z.ZodLiteral<"backlog">;
8394
8394
  path: z.ZodDefault<z.ZodString>;
8395
8395
  }, "strip", z.ZodTypeAny, {
@@ -8422,7 +8422,7 @@ declare const daemonConfigSchema: z.ZodObject<{
8422
8422
  path: string;
8423
8423
  type: "wiki";
8424
8424
  glob?: string | undefined;
8425
- }>]>;
8425
+ }>]>>;
8426
8426
  roles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8427
8427
  title: z.ZodString;
8428
8428
  responsibilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -8581,11 +8581,6 @@ declare const daemonConfigSchema: z.ZodObject<{
8581
8581
  client?: string | undefined;
8582
8582
  }[];
8583
8583
  timezone: string;
8584
- mainChannel: {
8585
- channel: string;
8586
- chatId: string;
8587
- accountId?: string | undefined;
8588
- };
8589
8584
  workSource: {
8590
8585
  path: string;
8591
8586
  type: "backlog";
@@ -8640,13 +8635,25 @@ declare const daemonConfigSchema: z.ZodObject<{
8640
8635
  maxAgentsPerDay: number;
8641
8636
  dryRun: boolean;
8642
8637
  };
8638
+ mainChannel?: {
8639
+ channel: string;
8640
+ chatId: string;
8641
+ accountId?: string | undefined;
8642
+ } | undefined;
8643
8643
  }, {
8644
- mainChannel: {
8644
+ enabled?: boolean | undefined;
8645
+ projects?: {
8646
+ id: string;
8647
+ pm?: string | undefined;
8648
+ client?: string | undefined;
8649
+ }[] | undefined;
8650
+ timezone?: string | undefined;
8651
+ mainChannel?: {
8645
8652
  channel: string;
8646
8653
  chatId: string;
8647
8654
  accountId?: string | undefined;
8648
- };
8649
- workSource: {
8655
+ } | undefined;
8656
+ workSource?: {
8650
8657
  type: "backlog";
8651
8658
  path?: string | undefined;
8652
8659
  } | {
@@ -8656,7 +8663,118 @@ declare const daemonConfigSchema: z.ZodObject<{
8656
8663
  path: string;
8657
8664
  type: "wiki";
8658
8665
  glob?: string | undefined;
8666
+ } | undefined;
8667
+ roles?: Record<string, {
8668
+ title: string;
8669
+ responsibilities?: string[] | undefined;
8670
+ sopPath?: string | undefined;
8671
+ kpis?: string[] | undefined;
8672
+ }> | undefined;
8673
+ orgChart?: Record<string, {
8674
+ role: string;
8675
+ schedule: {
8676
+ end: string;
8677
+ start: string;
8678
+ days?: ("mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun")[] | undefined;
8679
+ lunch?: {
8680
+ end: string;
8681
+ start: string;
8682
+ } | undefined;
8683
+ };
8684
+ reportsTo?: string | undefined;
8685
+ utilizationTarget?: number | undefined;
8686
+ }> | undefined;
8687
+ contactMap?: {
8688
+ client: string;
8689
+ channel?: string | undefined;
8690
+ chatId?: string | undefined;
8691
+ username?: string | undefined;
8692
+ senderId?: string | undefined;
8693
+ project?: string | undefined;
8694
+ displayName?: string | undefined;
8695
+ }[] | undefined;
8696
+ clients?: Record<string, {
8697
+ name?: string | undefined;
8698
+ kind?: "client" | "internal" | "own" | undefined;
8699
+ respondWithin?: string | undefined;
8700
+ standing?: string[] | undefined;
8701
+ }> | undefined;
8702
+ workTickMinutes?: number | undefined;
8703
+ idleQueueThreshold?: number | undefined;
8704
+ standup?: {
8705
+ enabled?: boolean | undefined;
8706
+ plansDir?: string | undefined;
8707
+ maxAgentsPerDay?: number | undefined;
8708
+ dryRun?: boolean | undefined;
8709
+ } | undefined;
8710
+ }>, {
8711
+ enabled: boolean;
8712
+ projects: {
8713
+ id: string;
8714
+ pm?: string | undefined;
8715
+ client?: string | undefined;
8716
+ }[];
8717
+ timezone: string;
8718
+ workSource: {
8719
+ path: string;
8720
+ type: "backlog";
8721
+ } | {
8722
+ type: "gitlab";
8723
+ projects: string[];
8724
+ } | {
8725
+ path: string;
8726
+ type: "wiki";
8727
+ glob: string;
8659
8728
  };
8729
+ roles: Record<string, {
8730
+ title: string;
8731
+ responsibilities: string[];
8732
+ kpis: string[];
8733
+ sopPath?: string | undefined;
8734
+ }>;
8735
+ orgChart: Record<string, {
8736
+ role: string;
8737
+ schedule: {
8738
+ end: string;
8739
+ days: ("mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun")[];
8740
+ start: string;
8741
+ lunch?: {
8742
+ end: string;
8743
+ start: string;
8744
+ } | undefined;
8745
+ };
8746
+ utilizationTarget: number;
8747
+ reportsTo?: string | undefined;
8748
+ }>;
8749
+ contactMap: {
8750
+ client: string;
8751
+ channel?: string | undefined;
8752
+ chatId?: string | undefined;
8753
+ username?: string | undefined;
8754
+ senderId?: string | undefined;
8755
+ project?: string | undefined;
8756
+ displayName?: string | undefined;
8757
+ }[];
8758
+ clients: Record<string, {
8759
+ standing: string[];
8760
+ name?: string | undefined;
8761
+ kind?: "client" | "internal" | "own" | undefined;
8762
+ respondWithin?: string | undefined;
8763
+ }>;
8764
+ workTickMinutes: number;
8765
+ idleQueueThreshold: number;
8766
+ standup: {
8767
+ enabled: boolean;
8768
+ plansDir: string;
8769
+ maxAgentsPerDay: number;
8770
+ dryRun: boolean;
8771
+ };
8772
+ mainChannel?: {
8773
+ channel: string;
8774
+ chatId: string;
8775
+ accountId?: string | undefined;
8776
+ } | undefined;
8777
+ }, {
8660
8778
  enabled?: boolean | undefined;
8661
8779
  projects?: {
8662
8780
  id: string;
@@ -8664,6 +8782,22 @@ declare const daemonConfigSchema: z.ZodObject<{
8664
8782
  client?: string | undefined;
8665
8783
  }[] | undefined;
8666
8784
  timezone?: string | undefined;
8785
+ mainChannel?: {
8786
+ channel: string;
8787
+ chatId: string;
8788
+ accountId?: string | undefined;
8789
+ } | undefined;
8790
+ workSource?: {
8791
+ type: "backlog";
8792
+ path?: string | undefined;
8793
+ } | {
8794
+ type: "gitlab";
8795
+ projects?: string[] | undefined;
8796
+ } | {
8797
+ path: string;
8798
+ type: "wiki";
8799
+ glob?: string | undefined;
8800
+ } | undefined;
8667
8801
  roles?: Record<string, {
8668
8802
  title: string;
8669
8803
  responsibilities?: string[] | undefined;
@@ -11360,11 +11494,6 @@ declare const daemonConfigSchema: z.ZodObject<{
11360
11494
  client?: string | undefined;
11361
11495
  }[];
11362
11496
  timezone: string;
11363
- mainChannel: {
11364
- channel: string;
11365
- chatId: string;
11366
- accountId?: string | undefined;
11367
- };
11368
11497
  workSource: {
11369
11498
  path: string;
11370
11499
  type: "backlog";
@@ -11419,6 +11548,11 @@ declare const daemonConfigSchema: z.ZodObject<{
11419
11548
  maxAgentsPerDay: number;
11420
11549
  dryRun: boolean;
11421
11550
  };
11551
+ mainChannel?: {
11552
+ channel: string;
11553
+ chatId: string;
11554
+ accountId?: string | undefined;
11555
+ } | undefined;
11422
11556
  } | undefined;
11423
11557
  }, {
11424
11558
  node: {
@@ -11776,12 +11910,19 @@ declare const daemonConfigSchema: z.ZodObject<{
11776
11910
  ringSize?: number | undefined;
11777
11911
  } | undefined;
11778
11912
  business?: {
11779
- mainChannel: {
11913
+ enabled?: boolean | undefined;
11914
+ projects?: {
11915
+ id: string;
11916
+ pm?: string | undefined;
11917
+ client?: string | undefined;
11918
+ }[] | undefined;
11919
+ timezone?: string | undefined;
11920
+ mainChannel?: {
11780
11921
  channel: string;
11781
11922
  chatId: string;
11782
11923
  accountId?: string | undefined;
11783
- };
11784
- workSource: {
11924
+ } | undefined;
11925
+ workSource?: {
11785
11926
  type: "backlog";
11786
11927
  path?: string | undefined;
11787
11928
  } | {
@@ -11791,14 +11932,7 @@ declare const daemonConfigSchema: z.ZodObject<{
11791
11932
  path: string;
11792
11933
  type: "wiki";
11793
11934
  glob?: string | undefined;
11794
- };
11795
- enabled?: boolean | undefined;
11796
- projects?: {
11797
- id: string;
11798
- pm?: string | undefined;
11799
- client?: string | undefined;
11800
- }[] | undefined;
11801
- timezone?: string | undefined;
11935
+ } | undefined;
11802
11936
  roles?: Record<string, {
11803
11937
  title: string;
11804
11938
  responsibilities?: string[] | undefined;
@@ -13407,6 +13541,7 @@ declare class AgentXDaemon {
13407
13541
  private stopEventWaker?;
13408
13542
  /** Stop and resume signals (agents/signals, #857). */
13409
13543
  private signals;
13544
+ private stopAllReporter;
13410
13545
  private business?;
13411
13546
  private httpServer?;
13412
13547
  private attachSweep?;
@@ -13534,8 +13669,15 @@ declare class AgentXDaemon {
13534
13669
  private resumeCoordinator;
13535
13670
  /** Stop a running task with a resume plan, and resume it later (#857). */
13536
13671
  private createSignalService;
13672
+ /** One report for a stop-all across the mesh (#1328): peers send their
13673
+ * part here, or here to the node that gave the order. */
13674
+ private createStopAllReporter;
13675
+ /** Send a signals request on to a mesh peer; null when no healthy peer
13676
+ * has that name. */
13677
+ private signalsForward;
13537
13678
  /** Resume every task a stop-all order stopped, then send the owner one
13538
- * report (#1271). Never throws. */
13679
+ * report (#1271): for a mesh order, one for every node (#1328). Never
13680
+ * throws. */
13539
13681
  private resumeStopAll;
13540
13682
  /** Resume, report or skip each run the last restart cut off. Never throws. */
13541
13683
  private resumeInterruptedRuns;
@@ -14170,6 +14312,8 @@ interface FriendlyError {
14170
14312
  kind: "out_of_credits" | "overage_disabled" | "usage_cap"
14171
14313
  /** An agent or the fleet reached its AgentX monthly budget (#1162). */
14172
14314
  | "budget_cap"
14315
+ /** The owner paused the agent, or it waits for approval (#1169). */
14316
+ | "agent_held"
14173
14317
  /** A cold dispatch held by the plan window, overage gate or local
14174
14318
  * dispatch cap; it goes through once the window frees up (#1284). */
14175
14319
  | "dispatch_hold" | "auth" | "permission" | "rate_limit" | "overloaded" | "context_too_large" | "invalid_request" | "upstream_api" | "timeout" | "cancelled" | "interrupted"
@@ -18563,10 +18707,12 @@ declare const orgEntrySchema: z.ZodObject<{
18563
18707
  reportsTo?: string | undefined;
18564
18708
  utilizationTarget?: number | undefined;
18565
18709
  }>;
18566
- declare const businessConfigSchema: z.ZodObject<{
18710
+ declare const businessConfigSchema: z.ZodEffects<z.ZodObject<{
18567
18711
  enabled: z.ZodDefault<z.ZodBoolean>;
18568
18712
  timezone: z.ZodDefault<z.ZodString>;
18569
- mainChannel: z.ZodObject<{
18713
+ /** Where the business layer posts. Required once `enabled` is on; an org
18714
+ * chart alone (the Org view, `agentx business orgchart`) needs none. */
18715
+ mainChannel: z.ZodOptional<z.ZodObject<{
18570
18716
  channel: z.ZodString;
18571
18717
  chatId: z.ZodString;
18572
18718
  accountId: z.ZodOptional<z.ZodString>;
@@ -18578,8 +18724,8 @@ declare const businessConfigSchema: z.ZodObject<{
18578
18724
  channel: string;
18579
18725
  chatId: string;
18580
18726
  accountId?: string | undefined;
18581
- }>;
18582
- workSource: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
18727
+ }>>;
18728
+ workSource: z.ZodDefault<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
18583
18729
  type: z.ZodLiteral<"backlog">;
18584
18730
  path: z.ZodDefault<z.ZodString>;
18585
18731
  }, "strip", z.ZodTypeAny, {
@@ -18609,7 +18755,7 @@ declare const businessConfigSchema: z.ZodObject<{
18609
18755
  path: string;
18610
18756
  type: "wiki";
18611
18757
  glob?: string | undefined;
18612
- }>]>;
18758
+ }>]>>;
18613
18759
  roles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
18614
18760
  title: z.ZodString;
18615
18761
  responsibilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -18816,11 +18962,6 @@ declare const businessConfigSchema: z.ZodObject<{
18816
18962
  client?: string | undefined;
18817
18963
  }[];
18818
18964
  timezone: string;
18819
- mainChannel: {
18820
- channel: string;
18821
- chatId: string;
18822
- accountId?: string | undefined;
18823
- };
18824
18965
  workSource: {
18825
18966
  path: string;
18826
18967
  type: "backlog";
@@ -18875,13 +19016,25 @@ declare const businessConfigSchema: z.ZodObject<{
18875
19016
  maxAgentsPerDay: number;
18876
19017
  dryRun: boolean;
18877
19018
  };
19019
+ mainChannel?: {
19020
+ channel: string;
19021
+ chatId: string;
19022
+ accountId?: string | undefined;
19023
+ } | undefined;
18878
19024
  }, {
18879
- mainChannel: {
19025
+ enabled?: boolean | undefined;
19026
+ projects?: {
19027
+ id: string;
19028
+ pm?: string | undefined;
19029
+ client?: string | undefined;
19030
+ }[] | undefined;
19031
+ timezone?: string | undefined;
19032
+ mainChannel?: {
18880
19033
  channel: string;
18881
19034
  chatId: string;
18882
19035
  accountId?: string | undefined;
18883
- };
18884
- workSource: {
19036
+ } | undefined;
19037
+ workSource?: {
18885
19038
  type: "backlog";
18886
19039
  path?: string | undefined;
18887
19040
  } | {
@@ -18891,7 +19044,118 @@ declare const businessConfigSchema: z.ZodObject<{
18891
19044
  path: string;
18892
19045
  type: "wiki";
18893
19046
  glob?: string | undefined;
19047
+ } | undefined;
19048
+ roles?: Record<string, {
19049
+ title: string;
19050
+ responsibilities?: string[] | undefined;
19051
+ sopPath?: string | undefined;
19052
+ kpis?: string[] | undefined;
19053
+ }> | undefined;
19054
+ orgChart?: Record<string, {
19055
+ role: string;
19056
+ schedule: {
19057
+ end: string;
19058
+ start: string;
19059
+ days?: ("mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun")[] | undefined;
19060
+ lunch?: {
19061
+ end: string;
19062
+ start: string;
19063
+ } | undefined;
19064
+ };
19065
+ reportsTo?: string | undefined;
19066
+ utilizationTarget?: number | undefined;
19067
+ }> | undefined;
19068
+ contactMap?: {
19069
+ client: string;
19070
+ channel?: string | undefined;
19071
+ chatId?: string | undefined;
19072
+ username?: string | undefined;
19073
+ senderId?: string | undefined;
19074
+ project?: string | undefined;
19075
+ displayName?: string | undefined;
19076
+ }[] | undefined;
19077
+ clients?: Record<string, {
19078
+ name?: string | undefined;
19079
+ kind?: "client" | "internal" | "own" | undefined;
19080
+ respondWithin?: string | undefined;
19081
+ standing?: string[] | undefined;
19082
+ }> | undefined;
19083
+ workTickMinutes?: number | undefined;
19084
+ idleQueueThreshold?: number | undefined;
19085
+ standup?: {
19086
+ enabled?: boolean | undefined;
19087
+ plansDir?: string | undefined;
19088
+ maxAgentsPerDay?: number | undefined;
19089
+ dryRun?: boolean | undefined;
19090
+ } | undefined;
19091
+ }>, {
19092
+ enabled: boolean;
19093
+ projects: {
19094
+ id: string;
19095
+ pm?: string | undefined;
19096
+ client?: string | undefined;
19097
+ }[];
19098
+ timezone: string;
19099
+ workSource: {
19100
+ path: string;
19101
+ type: "backlog";
19102
+ } | {
19103
+ type: "gitlab";
19104
+ projects: string[];
19105
+ } | {
19106
+ path: string;
19107
+ type: "wiki";
19108
+ glob: string;
18894
19109
  };
19110
+ roles: Record<string, {
19111
+ title: string;
19112
+ responsibilities: string[];
19113
+ kpis: string[];
19114
+ sopPath?: string | undefined;
19115
+ }>;
19116
+ orgChart: Record<string, {
19117
+ role: string;
19118
+ schedule: {
19119
+ end: string;
19120
+ days: ("mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun")[];
19121
+ start: string;
19122
+ lunch?: {
19123
+ end: string;
19124
+ start: string;
19125
+ } | undefined;
19126
+ };
19127
+ utilizationTarget: number;
19128
+ reportsTo?: string | undefined;
19129
+ }>;
19130
+ contactMap: {
19131
+ client: string;
19132
+ channel?: string | undefined;
19133
+ chatId?: string | undefined;
19134
+ username?: string | undefined;
19135
+ senderId?: string | undefined;
19136
+ project?: string | undefined;
19137
+ displayName?: string | undefined;
19138
+ }[];
19139
+ clients: Record<string, {
19140
+ standing: string[];
19141
+ name?: string | undefined;
19142
+ kind?: "client" | "internal" | "own" | undefined;
19143
+ respondWithin?: string | undefined;
19144
+ }>;
19145
+ workTickMinutes: number;
19146
+ idleQueueThreshold: number;
19147
+ standup: {
19148
+ enabled: boolean;
19149
+ plansDir: string;
19150
+ maxAgentsPerDay: number;
19151
+ dryRun: boolean;
19152
+ };
19153
+ mainChannel?: {
19154
+ channel: string;
19155
+ chatId: string;
19156
+ accountId?: string | undefined;
19157
+ } | undefined;
19158
+ }, {
18895
19159
  enabled?: boolean | undefined;
18896
19160
  projects?: {
18897
19161
  id: string;
@@ -18899,6 +19163,22 @@ declare const businessConfigSchema: z.ZodObject<{
18899
19163
  client?: string | undefined;
18900
19164
  }[] | undefined;
18901
19165
  timezone?: string | undefined;
19166
+ mainChannel?: {
19167
+ channel: string;
19168
+ chatId: string;
19169
+ accountId?: string | undefined;
19170
+ } | undefined;
19171
+ workSource?: {
19172
+ type: "backlog";
19173
+ path?: string | undefined;
19174
+ } | {
19175
+ type: "gitlab";
19176
+ projects?: string[] | undefined;
19177
+ } | {
19178
+ path: string;
19179
+ type: "wiki";
19180
+ glob?: string | undefined;
19181
+ } | undefined;
18902
19182
  roles?: Record<string, {
18903
19183
  title: string;
18904
19184
  responsibilities?: string[] | undefined;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{Ia as Tt,Ja 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-4BVISFOC.js";import"./chunk-FWT23FGY.js";import"./chunk-GTJIKXDB.js";import"./chunk-CWYCCQ57.js";import"./chunk-ZVP6GB4G.js";import"./chunk-FP4DT6D5.js";import"./chunk-EKJG63EJ.js";import"./chunk-OJ2XT27M.js";import"./chunk-VUEQ4SL5.js";import"./chunk-IMLAPB7G.js";import"./chunk-6V5JBHUN.js";import"./chunk-2VDO2HEK.js";import"./chunk-5HLD66CW.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-MRIVENBY.js";import"./chunk-VD2P4GWU.js";import"./chunk-LQS27HSV.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-A5GYG56I.js";import"./chunk-FAU6WDVT.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-UKUH662W.js";import"./chunk-JWDJMFU6.js";import"./chunk-IS2IWRP7.js";import"./chunk-MNG2AMKZ.js";import"./chunk-RX5O5637.js";import"./chunk-X7UQY7CH.js";import"./chunk-QPABR72X.js";import"./chunk-E7VJU7FI.js";import"./chunk-PYHR4HXO.js";import"./chunk-KP7KDLZ2.js";import{m as lt,n as ct,o as dt,p as mt,q as pt,ta as yt}from"./chunk-RE5XFWBY.js";import"./chunk-OMD44DQ6.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-XGREDHJY.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-OV77U4GH.js";import"./chunk-WWH3SKMB.js";import"./chunk-3UOTLMXD.js";import"./chunk-BE64IJWM.js";import"./chunk-PE5V2LI7.js";import"./chunk-GQ76J72O.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-CQBWWH2B.js";import{a as ht}from"./chunk-IZDFUFAQ.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-I4VNUTLL.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-K4HQYC5M.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-GKE7IP3T.js";import{j as it,k as rt,l as at}from"./chunk-EYC5DJR2.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-LE3BXIUF.js";import"./chunk-BERWTVG2.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-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{kb as tt,mb as st,ob as ot,vb as nt}from"./chunk-U5P7VICU.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-GZIHLADX.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(`
1
+ import{Ia as Tt,Ja 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-7NA5VSQE.js";import"./chunk-7FGJOVML.js";import"./chunk-GTJIKXDB.js";import"./chunk-YLQZFV6Y.js";import"./chunk-ZVP6GB4G.js";import"./chunk-TAUXWIYB.js";import"./chunk-EKJG63EJ.js";import"./chunk-AQGQLVCD.js";import"./chunk-N6VBEITO.js";import"./chunk-IMLAPB7G.js";import"./chunk-6V5JBHUN.js";import"./chunk-2VDO2HEK.js";import"./chunk-5HLD66CW.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-MRIVENBY.js";import"./chunk-VD2P4GWU.js";import"./chunk-LQS27HSV.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-A5GYG56I.js";import"./chunk-HZXLZIB4.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-UKUH662W.js";import"./chunk-JWDJMFU6.js";import"./chunk-IS2IWRP7.js";import"./chunk-MNG2AMKZ.js";import"./chunk-RX5O5637.js";import"./chunk-X7UQY7CH.js";import"./chunk-QPABR72X.js";import"./chunk-35R7Y7BT.js";import"./chunk-PYHR4HXO.js";import"./chunk-KP7KDLZ2.js";import{m as lt,n as ct,o as dt,p as mt,q as pt,ta as yt}from"./chunk-MH55YCUS.js";import"./chunk-PD5BZYBO.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-I7EO2WXC.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-LB55Q3K4.js";import"./chunk-TB3ZEMTC.js";import"./chunk-3UOTLMXD.js";import"./chunk-BE64IJWM.js";import"./chunk-PE5V2LI7.js";import"./chunk-GQ76J72O.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-WO4XKOMM.js";import{a as ht}from"./chunk-XCYGF4RB.js";import"./chunk-OWNQ2FD4.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-GALI5ANI.js";import"./chunk-JTFCU5LH.js";import{f as gt,g as ft}from"./chunk-WVPFWUR2.js";import"./chunk-WPNRDEHW.js";import"./chunk-LUOW2YHY.js";import"./chunk-4LWFJ4MZ.js";import"./chunk-BIJHMWXK.js";import"./chunk-5KVTIFRY.js";import{j as it,k as rt,l as at}from"./chunk-ES236GV6.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-LE3BXIUF.js";import"./chunk-BERWTVG2.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-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{kb as tt,mb as st,ob as ot,vb as nt}from"./chunk-NGGEGY5K.js";import"./chunk-VJ5HC63R.js";import"./chunk-UEEB3UTU.js";import"./chunk-GZIHLADX.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).
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-DOBTHQ32.js";import"./chunk-DMCMV4UJ.js";import"./chunk-N6VBEITO.js";import"./chunk-IMLAPB7G.js";import"./chunk-QIJLFPWE.js";export{a as renderProcessesPage};
2
+ //# sourceMappingURL=processes-EWARF6ZW.js.map