agentix-cli 0.121.1 → 0.123.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 (122) hide show
  1. package/dist/{App-AMIGKAXO.js → App-NOCRE5SN.js} +2 -2
  2. package/dist/{ChatApp-WMI4HQSY.js → ChatApp-SETNTMED.js} +2 -2
  3. package/dist/{agent-KR4B2G24.js → agent-YII7XBL4.js} +2 -2
  4. package/dist/{board-dashboard-WBIQPRHQ.js → board-dashboard-BBLEP7OA.js} +338 -238
  5. package/dist/board-dashboard-BBLEP7OA.js.map +1 -0
  6. package/dist/{chunk-Y4PR5LR3.js → chunk-22SWFBSL.js} +2 -2
  7. package/dist/{chunk-MSYBNVY3.js → chunk-27FYNGDW.js} +2 -2
  8. package/dist/{chunk-FIB5LD6R.js → chunk-5HK3YJEQ.js} +257 -251
  9. package/dist/chunk-5HK3YJEQ.js.map +1 -0
  10. package/dist/{chunk-H5Z42X7W.js → chunk-AIYI2MFV.js} +2 -2
  11. package/dist/{chunk-6FVFD5WU.js → chunk-AKLZ4YO2.js} +4 -4
  12. package/dist/{chunk-6FVFD5WU.js.map → chunk-AKLZ4YO2.js.map} +1 -1
  13. package/dist/{chunk-HVYS5ZBQ.js → chunk-DTSKSYEO.js} +2 -2
  14. package/dist/{chunk-BLEW5WQL.js → chunk-EV2WPHHS.js} +2 -2
  15. package/dist/chunk-EYIQVQMA.js +37 -0
  16. package/dist/chunk-EYIQVQMA.js.map +1 -0
  17. package/dist/{chunk-ELUEF4NC.js → chunk-FQQHUCFN.js} +2 -2
  18. package/dist/{chunk-CAS2IWSM.js → chunk-GOCYZJMS.js} +2 -2
  19. package/dist/{chunk-6TUQHOO3.js → chunk-JA6MVY7J.js} +2 -2
  20. package/dist/{chunk-KFSA2ZI7.js → chunk-KQW2U5MY.js} +2 -2
  21. package/dist/{chunk-EI7D5V2L.js → chunk-LJ6ORTLS.js} +2 -2
  22. package/dist/{chunk-25XR6QK2.js → chunk-LRMUK6DC.js} +2 -2
  23. package/dist/chunk-M6WY53GO.js +532 -0
  24. package/dist/chunk-M6WY53GO.js.map +1 -0
  25. package/dist/{chunk-D7LGD7ZI.js → chunk-ODGGGU5J.js} +71 -69
  26. package/dist/chunk-ODGGGU5J.js.map +1 -0
  27. package/dist/{chunk-IKBWV7YJ.js → chunk-PGXACYDY.js} +2 -2
  28. package/dist/{chunk-OPNZWQ6Y.js → chunk-TEXZEXQZ.js} +11 -11
  29. package/dist/chunk-TEXZEXQZ.js.map +1 -0
  30. package/dist/{chunk-4GDLXWCH.js → chunk-TJLTPONY.js} +2 -2
  31. package/dist/{chunk-2IMK3NGJ.js → chunk-UNWXKBRF.js} +2 -2
  32. package/dist/{chunk-43CLFC4B.js → chunk-W3DCOYAE.js} +2 -2
  33. package/dist/{chunk-7ZABMMSW.js → chunk-WEPON4FP.js} +2 -2
  34. package/dist/{chunk-PAWCJIPZ.js → chunk-WXABFPX7.js} +2 -2
  35. package/dist/cli.js +1 -1
  36. package/dist/{client-ICDRAZBU.js → client-S67ZQ5FC.js} +2 -2
  37. package/dist/config-3AX5MHPN.js +2 -0
  38. package/dist/config-mutator-BYFMZQBT.js +2 -0
  39. package/dist/doctor-KFZLZRUN.js +2 -0
  40. package/dist/{editor-chat-4MLCP5D2.js → editor-chat-ELKNLXM6.js} +10 -3
  41. package/dist/{editor-chat-4MLCP5D2.js.map → editor-chat-ELKNLXM6.js.map} +1 -1
  42. package/dist/follow-up-tool-ZVEYUJ6U.js +6 -0
  43. package/dist/follow-up-tool-ZVEYUJ6U.js.map +1 -0
  44. package/dist/{grants-ZMHSJMYE.js → grants-HIFE6L5N.js} +2 -2
  45. package/dist/index.d.ts +216 -79
  46. package/dist/index.js +1 -1
  47. package/dist/{program-4J6WMXLI.js → program-VXR3YD5R.js} +211 -209
  48. package/dist/{program-4J6WMXLI.js.map → program-VXR3YD5R.js.map} +1 -1
  49. package/dist/{promote-4LW53AMH.js → promote-BQTJNRTG.js} +2 -2
  50. package/dist/push-bridge-325SXDGN.js +1 -1
  51. package/dist/{query-4OPS5PET.js → query-6YBM4TPV.js} +2 -2
  52. package/dist/{registry-XK2FTQZV.js → registry-B7OS4AOM.js} +2 -2
  53. package/dist/{request-planner-GDXSBNN4.js → request-planner-BLULDFMJ.js} +2 -2
  54. package/dist/{review-candidates-TUVDG2LR.js → review-candidates-HMQ6ZXBT.js} +2 -2
  55. package/dist/routing-WW56ZXGS.js +2 -0
  56. package/dist/schedule-tool-Y6RMN6ZT.js +2 -0
  57. package/dist/scheduler-4GB47SDH.js +2 -0
  58. package/dist/{seat-K6FNHYMY.js → seat-XGANYYMU.js} +2 -2
  59. package/dist/{select-QMJXHNUP.js → select-2HW6Q7UX.js} +2 -2
  60. package/dist/{set-enabled-I77LPL6Q.js → set-enabled-N5AGU5AH.js} +2 -2
  61. package/dist/tool-RJHDRV4X.js +6 -0
  62. package/dist/tool-RJHDRV4X.js.map +1 -0
  63. package/dist/{tool-QTGNWXUA.js → tool-XRV6IQ2J.js} +2 -2
  64. package/dist/web/workflow-editor.global.js +1 -1
  65. package/dist/web/workflow-editor.global.js.map +1 -1
  66. package/dist/wiki-ZA4FU3PW.js +2 -0
  67. package/package.json +1 -1
  68. package/dist/board-dashboard-WBIQPRHQ.js.map +0 -1
  69. package/dist/chunk-7KY7EEEI.js +0 -28
  70. package/dist/chunk-7KY7EEEI.js.map +0 -1
  71. package/dist/chunk-BWHHZJNJ.js +0 -482
  72. package/dist/chunk-BWHHZJNJ.js.map +0 -1
  73. package/dist/chunk-D7LGD7ZI.js.map +0 -1
  74. package/dist/chunk-FIB5LD6R.js.map +0 -1
  75. package/dist/chunk-OPNZWQ6Y.js.map +0 -1
  76. package/dist/config-K4UYPR7W.js +0 -2
  77. package/dist/config-mutator-IGA6D4S5.js +0 -2
  78. package/dist/doctor-LRTOOCM6.js +0 -2
  79. package/dist/routing-OKDZ4VYH.js +0 -2
  80. package/dist/schedule-tool-MJLXMXN5.js +0 -2
  81. package/dist/scheduler-E5SASFAH.js +0 -2
  82. package/dist/tool-BQUKONSF.js +0 -4
  83. package/dist/tool-BQUKONSF.js.map +0 -1
  84. package/dist/wiki-PAMLP6WO.js +0 -2
  85. /package/dist/{App-AMIGKAXO.js.map → App-NOCRE5SN.js.map} +0 -0
  86. /package/dist/{ChatApp-WMI4HQSY.js.map → ChatApp-SETNTMED.js.map} +0 -0
  87. /package/dist/{agent-KR4B2G24.js.map → agent-YII7XBL4.js.map} +0 -0
  88. /package/dist/{chunk-Y4PR5LR3.js.map → chunk-22SWFBSL.js.map} +0 -0
  89. /package/dist/{chunk-MSYBNVY3.js.map → chunk-27FYNGDW.js.map} +0 -0
  90. /package/dist/{chunk-H5Z42X7W.js.map → chunk-AIYI2MFV.js.map} +0 -0
  91. /package/dist/{chunk-HVYS5ZBQ.js.map → chunk-DTSKSYEO.js.map} +0 -0
  92. /package/dist/{chunk-BLEW5WQL.js.map → chunk-EV2WPHHS.js.map} +0 -0
  93. /package/dist/{chunk-ELUEF4NC.js.map → chunk-FQQHUCFN.js.map} +0 -0
  94. /package/dist/{chunk-CAS2IWSM.js.map → chunk-GOCYZJMS.js.map} +0 -0
  95. /package/dist/{chunk-6TUQHOO3.js.map → chunk-JA6MVY7J.js.map} +0 -0
  96. /package/dist/{chunk-KFSA2ZI7.js.map → chunk-KQW2U5MY.js.map} +0 -0
  97. /package/dist/{chunk-EI7D5V2L.js.map → chunk-LJ6ORTLS.js.map} +0 -0
  98. /package/dist/{chunk-25XR6QK2.js.map → chunk-LRMUK6DC.js.map} +0 -0
  99. /package/dist/{chunk-IKBWV7YJ.js.map → chunk-PGXACYDY.js.map} +0 -0
  100. /package/dist/{chunk-4GDLXWCH.js.map → chunk-TJLTPONY.js.map} +0 -0
  101. /package/dist/{chunk-2IMK3NGJ.js.map → chunk-UNWXKBRF.js.map} +0 -0
  102. /package/dist/{chunk-43CLFC4B.js.map → chunk-W3DCOYAE.js.map} +0 -0
  103. /package/dist/{chunk-7ZABMMSW.js.map → chunk-WEPON4FP.js.map} +0 -0
  104. /package/dist/{chunk-PAWCJIPZ.js.map → chunk-WXABFPX7.js.map} +0 -0
  105. /package/dist/{client-ICDRAZBU.js.map → client-S67ZQ5FC.js.map} +0 -0
  106. /package/dist/{config-K4UYPR7W.js.map → config-3AX5MHPN.js.map} +0 -0
  107. /package/dist/{config-mutator-IGA6D4S5.js.map → config-mutator-BYFMZQBT.js.map} +0 -0
  108. /package/dist/{doctor-LRTOOCM6.js.map → doctor-KFZLZRUN.js.map} +0 -0
  109. /package/dist/{grants-ZMHSJMYE.js.map → grants-HIFE6L5N.js.map} +0 -0
  110. /package/dist/{promote-4LW53AMH.js.map → promote-BQTJNRTG.js.map} +0 -0
  111. /package/dist/{query-4OPS5PET.js.map → query-6YBM4TPV.js.map} +0 -0
  112. /package/dist/{registry-XK2FTQZV.js.map → registry-B7OS4AOM.js.map} +0 -0
  113. /package/dist/{request-planner-GDXSBNN4.js.map → request-planner-BLULDFMJ.js.map} +0 -0
  114. /package/dist/{review-candidates-TUVDG2LR.js.map → review-candidates-HMQ6ZXBT.js.map} +0 -0
  115. /package/dist/{routing-OKDZ4VYH.js.map → routing-WW56ZXGS.js.map} +0 -0
  116. /package/dist/{schedule-tool-MJLXMXN5.js.map → schedule-tool-Y6RMN6ZT.js.map} +0 -0
  117. /package/dist/{scheduler-E5SASFAH.js.map → scheduler-4GB47SDH.js.map} +0 -0
  118. /package/dist/{seat-K6FNHYMY.js.map → seat-XGANYYMU.js.map} +0 -0
  119. /package/dist/{select-QMJXHNUP.js.map → select-2HW6Q7UX.js.map} +0 -0
  120. /package/dist/{set-enabled-I77LPL6Q.js.map → set-enabled-N5AGU5AH.js.map} +0 -0
  121. /package/dist/{tool-QTGNWXUA.js.map → tool-XRV6IQ2J.js.map} +0 -0
  122. /package/dist/{wiki-PAMLP6WO.js.map → wiki-ZA4FU3PW.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -2152,16 +2152,16 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2152
2152
  chatId: string;
2153
2153
  accountId?: string | undefined;
2154
2154
  } | undefined;
2155
- maxOutputTokens?: number | undefined;
2156
- autonomy?: "report" | "propose" | "act" | undefined;
2157
- deliverResult?: boolean | undefined;
2158
- fireToken?: string | undefined;
2159
- createdBy?: string | undefined;
2160
2155
  approval?: {
2161
2156
  action: "delete" | "create";
2162
2157
  requestedBy: string;
2163
2158
  requestedAt: string;
2164
2159
  } | undefined;
2160
+ maxOutputTokens?: number | undefined;
2161
+ autonomy?: "report" | "propose" | "act" | undefined;
2162
+ deliverResult?: boolean | undefined;
2163
+ fireToken?: string | undefined;
2164
+ createdBy?: string | undefined;
2165
2165
  }, {
2166
2166
  agent: string;
2167
2167
  schedule: string;
@@ -2176,17 +2176,17 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2176
2176
  chatId: string;
2177
2177
  accountId?: string | undefined;
2178
2178
  } | undefined;
2179
+ approval?: {
2180
+ action: "delete" | "create";
2181
+ requestedBy: string;
2182
+ requestedAt: string;
2183
+ } | undefined;
2179
2184
  maxOutputTokens?: number | undefined;
2180
2185
  autonomy?: "report" | "propose" | "act" | undefined;
2181
2186
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
2182
2187
  deliverResult?: boolean | undefined;
2183
2188
  fireToken?: string | undefined;
2184
2189
  createdBy?: string | undefined;
2185
- approval?: {
2186
- action: "delete" | "create";
2187
- requestedBy: string;
2188
- requestedAt: string;
2189
- } | undefined;
2190
2190
  }>, {
2191
2191
  enabled: boolean;
2192
2192
  agent: string;
@@ -2202,16 +2202,16 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2202
2202
  chatId: string;
2203
2203
  accountId?: string | undefined;
2204
2204
  } | undefined;
2205
- maxOutputTokens?: number | undefined;
2206
- autonomy?: "report" | "propose" | "act" | undefined;
2207
- deliverResult?: boolean | undefined;
2208
- fireToken?: string | undefined;
2209
- createdBy?: string | undefined;
2210
2205
  approval?: {
2211
2206
  action: "delete" | "create";
2212
2207
  requestedBy: string;
2213
2208
  requestedAt: string;
2214
2209
  } | undefined;
2210
+ maxOutputTokens?: number | undefined;
2211
+ autonomy?: "report" | "propose" | "act" | undefined;
2212
+ deliverResult?: boolean | undefined;
2213
+ fireToken?: string | undefined;
2214
+ createdBy?: string | undefined;
2215
2215
  }, {
2216
2216
  agent: string;
2217
2217
  schedule: string;
@@ -2226,17 +2226,17 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2226
2226
  chatId: string;
2227
2227
  accountId?: string | undefined;
2228
2228
  } | undefined;
2229
+ approval?: {
2230
+ action: "delete" | "create";
2231
+ requestedBy: string;
2232
+ requestedAt: string;
2233
+ } | undefined;
2229
2234
  maxOutputTokens?: number | undefined;
2230
2235
  autonomy?: "report" | "propose" | "act" | undefined;
2231
2236
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
2232
2237
  deliverResult?: boolean | undefined;
2233
2238
  fireToken?: string | undefined;
2234
2239
  createdBy?: string | undefined;
2235
- approval?: {
2236
- action: "delete" | "create";
2237
- requestedBy: string;
2238
- requestedAt: string;
2239
- } | undefined;
2240
2240
  }>, {
2241
2241
  enabled: boolean;
2242
2242
  agent: string;
@@ -2252,16 +2252,16 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2252
2252
  chatId: string;
2253
2253
  accountId?: string | undefined;
2254
2254
  } | undefined;
2255
- maxOutputTokens?: number | undefined;
2256
- autonomy?: "report" | "propose" | "act" | undefined;
2257
- deliverResult?: boolean | undefined;
2258
- fireToken?: string | undefined;
2259
- createdBy?: string | undefined;
2260
2255
  approval?: {
2261
2256
  action: "delete" | "create";
2262
2257
  requestedBy: string;
2263
2258
  requestedAt: string;
2264
2259
  } | undefined;
2260
+ maxOutputTokens?: number | undefined;
2261
+ autonomy?: "report" | "propose" | "act" | undefined;
2262
+ deliverResult?: boolean | undefined;
2263
+ fireToken?: string | undefined;
2264
+ createdBy?: string | undefined;
2265
2265
  }, {
2266
2266
  agent: string;
2267
2267
  schedule: string;
@@ -2276,17 +2276,17 @@ declare const cronJobSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2276
2276
  chatId: string;
2277
2277
  accountId?: string | undefined;
2278
2278
  } | undefined;
2279
+ approval?: {
2280
+ action: "delete" | "create";
2281
+ requestedBy: string;
2282
+ requestedAt: string;
2283
+ } | undefined;
2279
2284
  maxOutputTokens?: number | undefined;
2280
2285
  autonomy?: "report" | "propose" | "act" | undefined;
2281
2286
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
2282
2287
  deliverResult?: boolean | undefined;
2283
2288
  fireToken?: string | undefined;
2284
2289
  createdBy?: string | undefined;
2285
- approval?: {
2286
- action: "delete" | "create";
2287
- requestedBy: string;
2288
- requestedAt: string;
2289
- } | undefined;
2290
2290
  }>;
2291
2291
  declare const meshPeerSchema: z.ZodObject<{
2292
2292
  url: z.ZodString;
@@ -4091,16 +4091,16 @@ declare const daemonConfigSchema: z.ZodObject<{
4091
4091
  chatId: string;
4092
4092
  accountId?: string | undefined;
4093
4093
  } | undefined;
4094
- maxOutputTokens?: number | undefined;
4095
- autonomy?: "report" | "propose" | "act" | undefined;
4096
- deliverResult?: boolean | undefined;
4097
- fireToken?: string | undefined;
4098
- createdBy?: string | undefined;
4099
4094
  approval?: {
4100
4095
  action: "delete" | "create";
4101
4096
  requestedBy: string;
4102
4097
  requestedAt: string;
4103
4098
  } | undefined;
4099
+ maxOutputTokens?: number | undefined;
4100
+ autonomy?: "report" | "propose" | "act" | undefined;
4101
+ deliverResult?: boolean | undefined;
4102
+ fireToken?: string | undefined;
4103
+ createdBy?: string | undefined;
4104
4104
  }, {
4105
4105
  agent: string;
4106
4106
  schedule: string;
@@ -4115,17 +4115,17 @@ declare const daemonConfigSchema: z.ZodObject<{
4115
4115
  chatId: string;
4116
4116
  accountId?: string | undefined;
4117
4117
  } | undefined;
4118
+ approval?: {
4119
+ action: "delete" | "create";
4120
+ requestedBy: string;
4121
+ requestedAt: string;
4122
+ } | undefined;
4118
4123
  maxOutputTokens?: number | undefined;
4119
4124
  autonomy?: "report" | "propose" | "act" | undefined;
4120
4125
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
4121
4126
  deliverResult?: boolean | undefined;
4122
4127
  fireToken?: string | undefined;
4123
4128
  createdBy?: string | undefined;
4124
- approval?: {
4125
- action: "delete" | "create";
4126
- requestedBy: string;
4127
- requestedAt: string;
4128
- } | undefined;
4129
4129
  }>, {
4130
4130
  enabled: boolean;
4131
4131
  agent: string;
@@ -4141,16 +4141,16 @@ declare const daemonConfigSchema: z.ZodObject<{
4141
4141
  chatId: string;
4142
4142
  accountId?: string | undefined;
4143
4143
  } | undefined;
4144
- maxOutputTokens?: number | undefined;
4145
- autonomy?: "report" | "propose" | "act" | undefined;
4146
- deliverResult?: boolean | undefined;
4147
- fireToken?: string | undefined;
4148
- createdBy?: string | undefined;
4149
4144
  approval?: {
4150
4145
  action: "delete" | "create";
4151
4146
  requestedBy: string;
4152
4147
  requestedAt: string;
4153
4148
  } | undefined;
4149
+ maxOutputTokens?: number | undefined;
4150
+ autonomy?: "report" | "propose" | "act" | undefined;
4151
+ deliverResult?: boolean | undefined;
4152
+ fireToken?: string | undefined;
4153
+ createdBy?: string | undefined;
4154
4154
  }, {
4155
4155
  agent: string;
4156
4156
  schedule: string;
@@ -4165,17 +4165,17 @@ declare const daemonConfigSchema: z.ZodObject<{
4165
4165
  chatId: string;
4166
4166
  accountId?: string | undefined;
4167
4167
  } | undefined;
4168
+ approval?: {
4169
+ action: "delete" | "create";
4170
+ requestedBy: string;
4171
+ requestedAt: string;
4172
+ } | undefined;
4168
4173
  maxOutputTokens?: number | undefined;
4169
4174
  autonomy?: "report" | "propose" | "act" | undefined;
4170
4175
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
4171
4176
  deliverResult?: boolean | undefined;
4172
4177
  fireToken?: string | undefined;
4173
4178
  createdBy?: string | undefined;
4174
- approval?: {
4175
- action: "delete" | "create";
4176
- requestedBy: string;
4177
- requestedAt: string;
4178
- } | undefined;
4179
4179
  }>, {
4180
4180
  enabled: boolean;
4181
4181
  agent: string;
@@ -4191,16 +4191,16 @@ declare const daemonConfigSchema: z.ZodObject<{
4191
4191
  chatId: string;
4192
4192
  accountId?: string | undefined;
4193
4193
  } | undefined;
4194
- maxOutputTokens?: number | undefined;
4195
- autonomy?: "report" | "propose" | "act" | undefined;
4196
- deliverResult?: boolean | undefined;
4197
- fireToken?: string | undefined;
4198
- createdBy?: string | undefined;
4199
4194
  approval?: {
4200
4195
  action: "delete" | "create";
4201
4196
  requestedBy: string;
4202
4197
  requestedAt: string;
4203
4198
  } | undefined;
4199
+ maxOutputTokens?: number | undefined;
4200
+ autonomy?: "report" | "propose" | "act" | undefined;
4201
+ deliverResult?: boolean | undefined;
4202
+ fireToken?: string | undefined;
4203
+ createdBy?: string | undefined;
4204
4204
  }, {
4205
4205
  agent: string;
4206
4206
  schedule: string;
@@ -4215,17 +4215,17 @@ declare const daemonConfigSchema: z.ZodObject<{
4215
4215
  chatId: string;
4216
4216
  accountId?: string | undefined;
4217
4217
  } | undefined;
4218
+ approval?: {
4219
+ action: "delete" | "create";
4220
+ requestedBy: string;
4221
+ requestedAt: string;
4222
+ } | undefined;
4218
4223
  maxOutputTokens?: number | undefined;
4219
4224
  autonomy?: "report" | "propose" | "act" | undefined;
4220
4225
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
4221
4226
  deliverResult?: boolean | undefined;
4222
4227
  fireToken?: string | undefined;
4223
4228
  createdBy?: string | undefined;
4224
- approval?: {
4225
- action: "delete" | "create";
4226
- requestedBy: string;
4227
- requestedAt: string;
4228
- } | undefined;
4229
4229
  }>>>;
4230
4230
  services: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4231
4231
  name: z.ZodString;
@@ -4889,18 +4889,59 @@ declare const daemonConfigSchema: z.ZodObject<{
4889
4889
  staleAfterHours: z.ZodDefault<z.ZodNumber>;
4890
4890
  /** Closed requests are deleted after this many days. Open ones never are. */
4891
4891
  retentionDays: z.ZodDefault<z.ZodNumber>;
4892
+ /** Tracked plans (src/requests/plans.ts, #788): a request with two or
4893
+ * more steps, each with an owner agent, followed until every step is
4894
+ * done. Needs `enabled` above. */
4895
+ plans: z.ZodDefault<z.ZodObject<{
4896
+ enabled: z.ZodDefault<z.ZodBoolean>;
4897
+ /** A step with no progress for this long gets a nudge. */
4898
+ stallMinutes: z.ZodDefault<z.ZodNumber>;
4899
+ /** Nudges per step before it counts as blocked and the owner is told. */
4900
+ maxNudges: z.ZodDefault<z.ZodNumber>;
4901
+ /** Step kinds the owner approves once, when the plan is made. A
4902
+ * "message" step is then sent without asking again. */
4903
+ approveKinds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4904
+ /** Agents that may not open a plan. */
4905
+ disabledAgents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4906
+ }, "strip", z.ZodTypeAny, {
4907
+ enabled: boolean;
4908
+ stallMinutes: number;
4909
+ maxNudges: number;
4910
+ approveKinds: string[];
4911
+ disabledAgents: string[];
4912
+ }, {
4913
+ enabled?: boolean | undefined;
4914
+ stallMinutes?: number | undefined;
4915
+ maxNudges?: number | undefined;
4916
+ approveKinds?: string[] | undefined;
4917
+ disabledAgents?: string[] | undefined;
4918
+ }>>;
4892
4919
  }, "strip", z.ZodTypeAny, {
4893
4920
  enabled: boolean;
4894
4921
  from: string[];
4895
4922
  channels: string[];
4896
4923
  staleAfterHours: number;
4897
4924
  retentionDays: number;
4925
+ plans: {
4926
+ enabled: boolean;
4927
+ stallMinutes: number;
4928
+ maxNudges: number;
4929
+ approveKinds: string[];
4930
+ disabledAgents: string[];
4931
+ };
4898
4932
  }, {
4899
4933
  enabled?: boolean | undefined;
4900
4934
  from?: string[] | undefined;
4901
4935
  channels?: string[] | undefined;
4902
4936
  staleAfterHours?: number | undefined;
4903
4937
  retentionDays?: number | undefined;
4938
+ plans?: {
4939
+ enabled?: boolean | undefined;
4940
+ stallMinutes?: number | undefined;
4941
+ maxNudges?: number | undefined;
4942
+ approveKinds?: string[] | undefined;
4943
+ disabledAgents?: string[] | undefined;
4944
+ } | undefined;
4904
4945
  }>>;
4905
4946
  people: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
4906
4947
  id: z.ZodString;
@@ -6612,6 +6653,36 @@ declare const daemonConfigSchema: z.ZodObject<{
6612
6653
  autoRunThreshold?: number | undefined;
6613
6654
  suggestThreshold?: number | undefined;
6614
6655
  }>>;
6656
+ /** Follow-up workflows (#788): agents start a saved workflow for a
6657
+ * request, or build one from the owner's words, and the engine
6658
+ * follows each step to the end. */
6659
+ followUp: z.ZodDefault<z.ZodObject<{
6660
+ /** Agents get agentx_workflow and the hint naming a saved workflow
6661
+ * that fits the request. */
6662
+ enabled: z.ZodDefault<z.ZodBoolean>;
6663
+ /** Per agent, by id: false turns it off for that agent. */
6664
+ agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
6665
+ /** An agent step with no progress for this long gets a reminder. */
6666
+ stallMinutes: z.ZodDefault<z.ZodNumber>;
6667
+ /** Reminders before the step counts as blocked and you are told. */
6668
+ maxNudges: z.ZodDefault<z.ZodNumber>;
6669
+ /** When you approve messages to people: all at once when a run
6670
+ * starts ("start"), or each before it is sent ("step"). A workflow
6671
+ * can set its own `approval`. */
6672
+ approval: z.ZodDefault<z.ZodEnum<["start", "step"]>>;
6673
+ }, "strip", z.ZodTypeAny, {
6674
+ enabled: boolean;
6675
+ agents: Record<string, boolean>;
6676
+ approval: "start" | "step";
6677
+ stallMinutes: number;
6678
+ maxNudges: number;
6679
+ }, {
6680
+ enabled?: boolean | undefined;
6681
+ agents?: Record<string, boolean> | undefined;
6682
+ approval?: "start" | "step" | undefined;
6683
+ stallMinutes?: number | undefined;
6684
+ maxNudges?: number | undefined;
6685
+ }>>;
6615
6686
  /** Controls whether the dashboard exposes the visual editor. "readonly"
6616
6687
  * serves the list + run timelines but strips write controls from the
6617
6688
  * page. "disabled" hides the tab entirely. */
@@ -6619,6 +6690,13 @@ declare const daemonConfigSchema: z.ZodObject<{
6619
6690
  }, "strip", z.ZodTypeAny, {
6620
6691
  dir: string;
6621
6692
  enabled: boolean;
6693
+ followUp: {
6694
+ enabled: boolean;
6695
+ agents: Record<string, boolean>;
6696
+ approval: "start" | "step";
6697
+ stallMinutes: number;
6698
+ maxNudges: number;
6699
+ };
6622
6700
  n8n: {
6623
6701
  apiKey: string;
6624
6702
  baseUrl: string;
@@ -6633,6 +6711,13 @@ declare const daemonConfigSchema: z.ZodObject<{
6633
6711
  }, {
6634
6712
  dir?: string | undefined;
6635
6713
  enabled?: boolean | undefined;
6714
+ followUp?: {
6715
+ enabled?: boolean | undefined;
6716
+ agents?: Record<string, boolean> | undefined;
6717
+ approval?: "start" | "step" | undefined;
6718
+ stallMinutes?: number | undefined;
6719
+ maxNudges?: number | undefined;
6720
+ } | undefined;
6636
6721
  n8n?: {
6637
6722
  apiKey?: string | undefined;
6638
6723
  baseUrl?: string | undefined;
@@ -6861,8 +6946,8 @@ declare const daemonConfigSchema: z.ZodObject<{
6861
6946
  * them while ToolSearch is available, so a list saves only their
6862
6947
  * names (about 300 tokens) unless tool search is off. A tool left
6863
6948
  * off cannot be found even through ToolSearch. `agentx_approval`,
6864
- * `agentx_request`, `agentx_events` and `agentx_attach_next` are
6865
- * always kept, and so are `agentx_agents`, `agentx_recent` and
6949
+ * `agentx_request`, `agentx_events`, `agentx_attach_next` and
6950
+ * `agentx_workflow` are always kept, and so are `agentx_agents`, `agentx_recent` and
6866
6951
  * `agentx_wiki_query` while `contextOnDemand` is on. A name that is
6867
6952
  * not an agentx tool is rejected, so a typo cannot silently drop a
6868
6953
  * reply tool. Only an agentx server started as a command (stdio)
@@ -7341,6 +7426,13 @@ declare const daemonConfigSchema: z.ZodObject<{
7341
7426
  channels: string[];
7342
7427
  staleAfterHours: number;
7343
7428
  retentionDays: number;
7429
+ plans: {
7430
+ enabled: boolean;
7431
+ stallMinutes: number;
7432
+ maxNudges: number;
7433
+ approveKinds: string[];
7434
+ disabledAgents: string[];
7435
+ };
7344
7436
  };
7345
7437
  channels: {
7346
7438
  push: {
@@ -7555,16 +7647,16 @@ declare const daemonConfigSchema: z.ZodObject<{
7555
7647
  chatId: string;
7556
7648
  accountId?: string | undefined;
7557
7649
  } | undefined;
7558
- maxOutputTokens?: number | undefined;
7559
- autonomy?: "report" | "propose" | "act" | undefined;
7560
- deliverResult?: boolean | undefined;
7561
- fireToken?: string | undefined;
7562
- createdBy?: string | undefined;
7563
7650
  approval?: {
7564
7651
  action: "delete" | "create";
7565
7652
  requestedBy: string;
7566
7653
  requestedAt: string;
7567
7654
  } | undefined;
7655
+ maxOutputTokens?: number | undefined;
7656
+ autonomy?: "report" | "propose" | "act" | undefined;
7657
+ deliverResult?: boolean | undefined;
7658
+ fireToken?: string | undefined;
7659
+ createdBy?: string | undefined;
7568
7660
  }>;
7569
7661
  services: Record<string, {
7570
7662
  agent: string;
@@ -7815,6 +7907,13 @@ declare const daemonConfigSchema: z.ZodObject<{
7815
7907
  workflows: {
7816
7908
  dir: string;
7817
7909
  enabled: boolean;
7910
+ followUp: {
7911
+ enabled: boolean;
7912
+ agents: Record<string, boolean>;
7913
+ approval: "start" | "step";
7914
+ stallMinutes: number;
7915
+ maxNudges: number;
7916
+ };
7818
7917
  n8n: {
7819
7918
  apiKey: string;
7820
7919
  baseUrl: string;
@@ -8258,6 +8357,13 @@ declare const daemonConfigSchema: z.ZodObject<{
8258
8357
  channels?: string[] | undefined;
8259
8358
  staleAfterHours?: number | undefined;
8260
8359
  retentionDays?: number | undefined;
8360
+ plans?: {
8361
+ enabled?: boolean | undefined;
8362
+ stallMinutes?: number | undefined;
8363
+ maxNudges?: number | undefined;
8364
+ approveKinds?: string[] | undefined;
8365
+ disabledAgents?: string[] | undefined;
8366
+ } | undefined;
8261
8367
  } | undefined;
8262
8368
  channels?: {
8263
8369
  push?: {
@@ -8465,17 +8571,17 @@ declare const daemonConfigSchema: z.ZodObject<{
8465
8571
  chatId: string;
8466
8572
  accountId?: string | undefined;
8467
8573
  } | undefined;
8574
+ approval?: {
8575
+ action: "delete" | "create";
8576
+ requestedBy: string;
8577
+ requestedAt: string;
8578
+ } | undefined;
8468
8579
  maxOutputTokens?: number | undefined;
8469
8580
  autonomy?: "report" | "propose" | "act" | undefined;
8470
8581
  onError?: "notify" | "disable" | "log" | ("notify" | "disable" | "log")[] | undefined;
8471
8582
  deliverResult?: boolean | undefined;
8472
8583
  fireToken?: string | undefined;
8473
8584
  createdBy?: string | undefined;
8474
- approval?: {
8475
- action: "delete" | "create";
8476
- requestedBy: string;
8477
- requestedAt: string;
8478
- } | undefined;
8479
8585
  }> | undefined;
8480
8586
  services?: Record<string, {
8481
8587
  agent: string;
@@ -8726,6 +8832,13 @@ declare const daemonConfigSchema: z.ZodObject<{
8726
8832
  workflows?: {
8727
8833
  dir?: string | undefined;
8728
8834
  enabled?: boolean | undefined;
8835
+ followUp?: {
8836
+ enabled?: boolean | undefined;
8837
+ agents?: Record<string, boolean> | undefined;
8838
+ approval?: "start" | "step" | undefined;
8839
+ stallMinutes?: number | undefined;
8840
+ maxNudges?: number | undefined;
8841
+ } | undefined;
8729
8842
  n8n?: {
8730
8843
  apiKey?: string | undefined;
8731
8844
  baseUrl?: string | undefined;
@@ -9652,9 +9765,30 @@ declare class AgentXDaemon {
9652
9765
  * checkMeshAuth, loopback is not enough: agents on this node reach
9653
9766
  * loopback themselves, and a card result must come from a peer. */
9654
9767
  private carriesMeshToken;
9768
+ /** Tell the owner about a request: a push, and the Mac banner. */
9769
+ private notifyRequestOwner;
9770
+ private plansSweeping;
9771
+ private plansKick?;
9772
+ /** A plan was made or a step moved: follow it in a second rather than
9773
+ * at the next minute's check. */
9774
+ private kickPlans;
9775
+ /** Tracked plans move on: steps handed over, quiet ones nudged,
9776
+ * approved messages sent, the owner told at the end or on a block
9777
+ * (src/requests/plan-sweep.ts, #788). One check at a time. */
9778
+ private sweepPlans;
9655
9779
  /** Requests that went quiet come back, each is raised once, and old
9656
- * closed ones are deleted (src/requests/sweep.ts). */
9780
+ * closed ones are deleted (src/requests/sweep.ts). Plans first: a
9781
+ * blocked step marks its request told, so the owner hears once. */
9657
9782
  private sweepRequests;
9783
+ /** Tell the owner through the notify path: a push to the default
9784
+ * channel, the Mac banner where there is one (#788). */
9785
+ private notifyOwner;
9786
+ /** A card raised for a workflow (#788): a step's answer resumes its
9787
+ * run; a proposed workflow is kept (switched on) on a yes. */
9788
+ private workflowCardResult;
9789
+ /** A follow-up run ended: its request closes with the steps' evidence,
9790
+ * or needs attention (the summary already told the owner). */
9791
+ private workflowRequestEnded;
9658
9792
  /** A check-in pass when one is due, or `force` now. macOS only. */
9659
9793
  runCheckin(force?: PassKind): Promise<PassResult | null>;
9660
9794
  private stopReminders?;
@@ -11731,16 +11865,16 @@ declare const fingerprintEntrySchema: z.ZodObject<{
11731
11865
  updatedAt: z.ZodString;
11732
11866
  }, "strip", z.ZodTypeAny, {
11733
11867
  path: string[];
11868
+ updatedAt: string;
11734
11869
  fingerprint: string;
11735
11870
  leaf: {
11736
11871
  output?: string | undefined;
11737
11872
  input?: string | undefined;
11738
11873
  };
11739
- updatedAt: string;
11740
11874
  }, {
11741
11875
  path: string[];
11742
- fingerprint: string;
11743
11876
  updatedAt: string;
11877
+ fingerprint: string;
11744
11878
  leaf?: {
11745
11879
  output?: string | undefined;
11746
11880
  input?: string | undefined;
@@ -11818,16 +11952,16 @@ declare const indexFileSchema: z.ZodObject<{
11818
11952
  updatedAt: z.ZodString;
11819
11953
  }, "strip", z.ZodTypeAny, {
11820
11954
  path: string[];
11955
+ updatedAt: string;
11821
11956
  fingerprint: string;
11822
11957
  leaf: {
11823
11958
  output?: string | undefined;
11824
11959
  input?: string | undefined;
11825
11960
  };
11826
- updatedAt: string;
11827
11961
  }, {
11828
11962
  path: string[];
11829
- fingerprint: string;
11830
11963
  updatedAt: string;
11964
+ fingerprint: string;
11831
11965
  leaf?: {
11832
11966
  output?: string | undefined;
11833
11967
  input?: string | undefined;
@@ -11836,19 +11970,19 @@ declare const indexFileSchema: z.ZodObject<{
11836
11970
  }, "strip", z.ZodTypeAny, {
11837
11971
  entries: Record<string, {
11838
11972
  path: string[];
11973
+ updatedAt: string;
11839
11974
  fingerprint: string;
11840
11975
  leaf: {
11841
11976
  output?: string | undefined;
11842
11977
  input?: string | undefined;
11843
11978
  };
11844
- updatedAt: string;
11845
11979
  }>;
11846
11980
  version: number;
11847
11981
  }, {
11848
11982
  entries?: Record<string, {
11849
11983
  path: string[];
11850
- fingerprint: string;
11851
11984
  updatedAt: string;
11985
+ fingerprint: string;
11852
11986
  leaf?: {
11853
11987
  output?: string | undefined;
11854
11988
  input?: string | undefined;
@@ -12181,6 +12315,8 @@ interface RunningTask {
12181
12315
  /** Intent-graph path this request was classified under, once known.
12182
12316
  * Classification runs alongside the turn, so it is absent until then. */
12183
12317
  intentPath?: string[];
12318
+ /** Step autonomy the turn runs at (report | propose | act). Unset = act. */
12319
+ autonomy?: AgentTask["autonomy"];
12184
12320
  }
12185
12321
  type TaskOutputSubscriber = (chunk: string) => void;
12186
12322
  /** Persisted record of a finished task, written to .agentx/task-history. */
@@ -12517,6 +12653,7 @@ declare class AgentRegistry {
12517
12653
  }): {
12518
12654
  taskId: string;
12519
12655
  context: NonNullable<AgentTask["context"]>;
12656
+ autonomy?: AgentTask["autonomy"];
12520
12657
  } | null;
12521
12658
  /** Whether every slot of `agentId` is taken, and by which runs. Lets a
12522
12659
  * synchronous delegation refuse at once when the only slot is held by
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{a as St,b as kt,c as vt,d as xt,e as $t,f as Ct,g as Pt,h as bt,ja as Tt,ka as Mt}from"./chunk-FIB5LD6R.js";import"./chunk-BWHHZJNJ.js";import"./chunk-GTJIKXDB.js";import"./chunk-CAS2IWSM.js";import"./chunk-S2GAEH2F.js";import"./chunk-BGG3ZSMW.js";import"./chunk-ZVP6GB4G.js";import"./chunk-XGOBZCYC.js";import"./chunk-WCXXXAHV.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-7ZABMMSW.js";import"./chunk-6FVFD5WU.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-H5Z42X7W.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-EMGB23H5.js";import"./chunk-JWDJMFU6.js";import"./chunk-GRMCAO3Q.js";import"./chunk-KZKDVIOE.js";import{ca as yt,m as lt,n as ct,o as dt,p as mt,q as pt}from"./chunk-D7LGD7ZI.js";import"./chunk-7KY7EEEI.js";import"./chunk-GLQLCBJS.js";import"./chunk-6W74CHNW.js";import{a as L}from"./chunk-UG2OF2EI.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-HVYS5ZBQ.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-Y4CYQV7G.js";import"./chunk-LLNPKE7H.js";import"./chunk-SHEUCITK.js";import"./chunk-BLEW5WQL.js";import"./chunk-GV7S5BAX.js";import"./chunk-SZDACK6O.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import{s as ut}from"./chunk-25XR6QK2.js";import"./chunk-2IMK3NGJ.js";import"./chunk-VWTBHLMX.js";import"./chunk-KFSA2ZI7.js";import{a as ht}from"./chunk-IKBWV7YJ.js";import"./chunk-36AXN6ZB.js";import"./chunk-KA2UIZXG.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GSX4NK2N.js";import"./chunk-6TUQHOO3.js";import"./chunk-MYVHVJWZ.js";import"./chunk-AV7T3SYT.js";import"./chunk-Y5MFVVTM.js";import"./chunk-QD6IICK7.js";import"./chunk-CECHWYJ2.js";import"./chunk-Y4PR5LR3.js";import{f as gt,g as ft}from"./chunk-ELUEF4NC.js";import"./chunk-WPNRDEHW.js";import"./chunk-56KNKUFF.js";import{j as it,k as rt,l as at}from"./chunk-4GDLXWCH.js";import"./chunk-72SZI2UW.js";import"./chunk-FX3D7YON.js";import"./chunk-FCPTN6NF.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-2PJKGZWP.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{ha as tt,ja as st,ka as ot,ma as nt}from"./chunk-OPNZWQ6Y.js";import"./chunk-BRK6M6LA.js";import"./chunk-UIBUZ2N3.js";import"./chunk-2QNT5JDS.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{a as St,b as kt,c as vt,d as xt,e as $t,f as Ct,g as Pt,h as bt,la as Tt,ma as Mt}from"./chunk-5HK3YJEQ.js";import"./chunk-M6WY53GO.js";import"./chunk-GTJIKXDB.js";import"./chunk-GOCYZJMS.js";import"./chunk-S2GAEH2F.js";import"./chunk-BGG3ZSMW.js";import"./chunk-ZVP6GB4G.js";import"./chunk-XGOBZCYC.js";import"./chunk-WCXXXAHV.js";import"./chunk-GRMCAO3Q.js";import"./chunk-LQE73AZR.js";import"./chunk-2D3RYIDU.js";import"./chunk-WEPON4FP.js";import"./chunk-AKLZ4YO2.js";import"./chunk-PPUN7YHA.js";import"./chunk-VZLIBDLH.js";import"./chunk-EKJG63EJ.js";import"./chunk-AIYI2MFV.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-EMGB23H5.js";import"./chunk-JWDJMFU6.js";import"./chunk-KZKDVIOE.js";import{ca as yt,m as lt,n as ct,o as dt,p as mt,q as pt}from"./chunk-ODGGGU5J.js";import"./chunk-EYIQVQMA.js";import"./chunk-GLQLCBJS.js";import"./chunk-6W74CHNW.js";import{a as L}from"./chunk-UG2OF2EI.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-DTSKSYEO.js";import{a as B,b as M,c as F}from"./chunk-SFQUP3BP.js";import"./chunk-Y4CYQV7G.js";import"./chunk-LLNPKE7H.js";import"./chunk-SHEUCITK.js";import"./chunk-EV2WPHHS.js";import"./chunk-GV7S5BAX.js";import"./chunk-SZDACK6O.js";import"./chunk-76Z4VHDX.js";import"./chunk-W4YR2RO2.js";import"./chunk-AFRHKA7B.js";import{s as ut}from"./chunk-LRMUK6DC.js";import"./chunk-UNWXKBRF.js";import"./chunk-VWTBHLMX.js";import"./chunk-KQW2U5MY.js";import{a as ht}from"./chunk-PGXACYDY.js";import"./chunk-36AXN6ZB.js";import"./chunk-KA2UIZXG.js";import"./chunk-GQ76J72O.js";import"./chunk-ILEC3IAV.js";import"./chunk-J3SOEFRE.js";import"./chunk-SIU6STB2.js";import"./chunk-X5C5W3E4.js";import"./chunk-GSX4NK2N.js";import"./chunk-JA6MVY7J.js";import"./chunk-MYVHVJWZ.js";import"./chunk-AV7T3SYT.js";import"./chunk-Y5MFVVTM.js";import"./chunk-QD6IICK7.js";import"./chunk-CECHWYJ2.js";import"./chunk-22SWFBSL.js";import{f as gt,g as ft}from"./chunk-FQQHUCFN.js";import"./chunk-WPNRDEHW.js";import"./chunk-56KNKUFF.js";import{j as it,k as rt,l as at}from"./chunk-TJLTPONY.js";import"./chunk-72SZI2UW.js";import"./chunk-FX3D7YON.js";import"./chunk-FCPTN6NF.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-2PJKGZWP.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{ia as tt,ka as st,la as ot,na as nt}from"./chunk-TEXZEXQZ.js";import"./chunk-UIBUZ2N3.js";import"./chunk-BRK6M6LA.js";import"./chunk-2QNT5JDS.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).