remoteclaw 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-Qulj3jS8.js → accounts-B0V43QEN.js} +1 -1
- package/dist/{accounts-PoAEsvXo.js → accounts-DObM4hAF.js} +2 -2
- package/dist/{accounts-C_7Xc5wa.js → accounts-DZ4c6f7x.js} +1 -1
- package/dist/{active-listener-nMUQ-dVt.js → active-listener-DVLYzYd3.js} +1 -1
- package/dist/{agent-O04J-JEw.js → agent-B2leLOo0.js} +377 -355
- package/dist/{agent-scope-wbu0VZoq.js → agent-scope-CYJrXxD6.js} +1 -1
- package/dist/{agents-BbQIzW1N.js → agents-Eg0_nSnn.js} +1 -1
- package/dist/{banner-DONy2WbW.js → banner-B52X-rEb.js} +1 -1
- package/dist/{bindings-0dx8vqz9.js → bindings-AUVd82yI.js} +2 -2
- package/dist/boot/handler.js +46 -46
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-D47P56pj.js → channel-activity-Bydtz0cv.js} +2 -2
- package/dist/{channel-options-DWOSBsjN.js → channel-options-CD6ZBbON.js} +1 -1
- package/dist/{channel-options-JoYluwGr.js → channel-options-h1pCAx0w.js} +1 -1
- package/dist/{channel-web-YLHk99fU.js → channel-web-DbNWyl5A.js} +2 -2
- package/dist/{channel-web-Cvf5FKyf.js → channel-web-FA7MGFJO.js} +2 -2
- package/dist/{channels-cli-Be0_n1L2.js → channels-cli-BIArqz2T.js} +9 -9
- package/dist/{channels-cli-BoDA0aQ1.js → channels-cli-BZ5sRWaP.js} +9 -9
- package/dist/{chunk-C5Oai9vm.js → chunk-0ZB8yVlw.js} +1 -1
- package/dist/{cli-BEOzFl_6.js → cli-C8XFOFxS.js} +5 -5
- package/dist/{cli-D1ORFJ6n.js → cli-ifZiERUK.js} +5 -5
- package/dist/command-logger/handler.js +1 -1
- package/dist/{command-registry-D6LIEhaY.js → command-registry-kxjFHjjE.js} +9 -9
- package/dist/{commands-registry-CB3qR3Ui.js → commands-registry-BQrQnwzJ.js} +3 -3
- package/dist/{completion-cli-ohSjYC4v.js → completion-cli-eH6YXa0H.js} +1 -1
- package/dist/{completion-cli-D93-g9B7.js → completion-cli-wYa36YaL.js} +2 -2
- package/dist/{config-Ca5Dfk8O.js → config-BIrnJuXL.js} +8 -8
- package/dist/{config-cli-CJ1S3_VC.js → config-cli-BfJacpda.js} +1 -1
- package/dist/{config-cli-uJUr7Pe-.js → config-cli-CkJFUL61.js} +1 -1
- package/dist/{configure-CXjIsq-V.js → configure-C9cTz03s.js} +2 -2
- package/dist/{configure-BAlORoYU.js → configure-Dh-yP8hn.js} +2 -2
- package/dist/{deliver-BGpFaGMz.js → deliver-B5eZoNwr.js} +2 -2
- package/dist/{deliver-D3lJfcWr.js → deliver-Cu2kD7-u.js} +2 -2
- package/dist/{deliver-BTjGqSGN.js → deliver-z04wZfnQ.js} +8 -8
- package/dist/{dock-C0qWBS5h.js → dock-BQ3iSblF.js} +5 -5
- package/dist/{doctor-completion-CKGabXFn.js → doctor-completion-Cz3-0qwJ.js} +1 -1
- package/dist/{doctor-completion-Bo9yo8-v.js → doctor-completion-D6DqtWrm.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{env-Bs-DOhs6.js → env-D3fELH5B.js} +1 -1
- package/dist/{errors-bgTXk4n7.js → errors-Bg7BK273.js} +1 -1
- package/dist/extensionAPI.js +23 -1
- package/dist/{fetch-C-q-x9xS.js → fetch--eFpeNac.js} +3 -3
- package/dist/{fetch-B_D1a6ac.js → fetch-C3R1kkzO.js} +1 -1
- package/dist/{gateway-cli-DC1V6Fdf.js → gateway-cli-DuMZZmMm.js} +23 -14
- package/dist/{gateway-cli-CUPV9YIf.js → gateway-cli-ZPbldBb7.js} +23 -14
- package/dist/{health-D5YyZkng.js → health-6NZ23ZCc.js} +5 -5
- package/dist/{health-uTVcqwOx.js → health-D6T18gwU.js} +5 -5
- package/dist/{heartbeat-visibility-Z_3IqRgn.js → heartbeat-visibility-CXLlnSbK.js} +1 -1
- package/dist/{heartbeat-visibility-GeWWsF3e.js → heartbeat-visibility-CksK28e2.js} +1 -1
- package/dist/{hook-runner-global-D8bMcDPD.js → hook-runner-global-DPdZsDAH.js} +1 -1
- package/dist/{hooks-cli-DToXVDBQ.js → hooks-cli-CQAdRG0h.js} +6 -6
- package/dist/{hooks-cli-CpWC6lUu.js → hooks-cli-c8IB_ozo.js} +6 -6
- package/dist/{image-ops-CAVojpnw.js → image-ops-CD4YRYFY.js} +2 -2
- package/dist/index.js +10 -10
- package/dist/{ir-CDjoXuIW.js → ir-BK7K3Bbu.js} +6 -6
- package/dist/{logger-Bp0X6yHd.js → logger-BKFID___.js} +1 -1
- package/dist/{login-DWKSrC5K.js → login-BYHOjw55.js} +6 -6
- package/dist/{login-qr-C7zaGKxz.js → login-qr-ZRBRz2BA.js} +8 -8
- package/dist/{markdown-tables-Bm7xJUcn.js → markdown-tables-CfM1ner1.js} +1 -1
- package/dist/{message-action-names-y0-o46BN.js → message-action-names-AEii-fdA.js} +5 -5
- package/dist/{message-action-names-PbKqmcBa.js → message-action-names-CPJVqkJL.js} +5 -5
- package/dist/{message-channel-BuWy8hEk.js → message-channel-tSSi5C96.js} +1 -1
- package/dist/{npm-resolution-BLL-hroo.js → npm-resolution-C6jVPSqS.js} +1 -1
- package/dist/{npm-resolution-o9lE9iRL.js → npm-resolution-CdEbWlwy.js} +1 -1
- package/dist/{onboard-BohVFYna.js → onboard-CVpITzvB.js} +2 -2
- package/dist/{onboard-channels-DMgpmtQu.js → onboard-channels-D664lpQl.js} +1 -1
- package/dist/{onboard-channels-DzuidyBQ.js → onboard-channels-DReWe-Pi.js} +1 -1
- package/dist/{onboard-BKfLjwEp.js → onboard-zh78fAIB.js} +2 -2
- package/dist/{onboarding-sWcrQljf.js → onboarding-BnS6FhcE.js} +3 -3
- package/dist/{onboarding-BLgEs3xo.js → onboarding-CCahs79c.js} +3 -3
- package/dist/{onboarding.finalize-D5VLM268.js → onboarding.finalize-CmYoFs6n.js} +9 -9
- package/dist/{onboarding.finalize-CLmpb0fB.js → onboarding.finalize-uTFFUZ8O.js} +10 -10
- package/dist/{onboarding.gateway-config-DsTEqzPz.js → onboarding.gateway-config-DQX6SBU8.js} +1 -1
- package/dist/{onboarding.gateway-config-D-ZMefuj.js → onboarding.gateway-config-DYjDeKEw.js} +1 -1
- package/dist/{outbound-CCvRhb_6.js → outbound-BCY7cG5r.js} +6 -6
- package/dist/{outbound-attachment-BXwueqll.js → outbound-attachment-6NNNORlp.js} +3 -3
- package/dist/{plugin-registry-C-OlCiRd.js → plugin-registry-BC1RH6cl.js} +1 -1
- package/dist/{plugin-registry-LBCvRwK8.js → plugin-registry-TC2kC2iG.js} +1 -1
- package/dist/plugin-sdk/agents/session-run-registry.d.ts +36 -0
- package/dist/plugin-sdk/{channel-web-CM3jOFIe.js → channel-web-DSYJDq30.js} +4 -4
- package/dist/plugin-sdk/{deliver-DOBaX9a2.js → deliver-BzPIWEw5.js} +1 -1
- package/dist/plugin-sdk/index.js +5 -5
- package/dist/plugin-sdk/{reply-sVftK2Ge.js → reply-Dzts0EiK.js} +22 -8
- package/dist/plugin-sdk/{reply-payloads-DybMtW8a.js → reply-payloads-DwsjAWzB.js} +7 -1
- package/dist/plugin-sdk/{subagent-registry-BfxxwQv4.js → subagent-registry-DrBYYinw.js} +221 -5
- package/dist/plugin-sdk/web-afnwTWMq.js +7 -0
- package/dist/{plugins-cli-DCkrm_Bp.js → plugins-cli-CModgvwT.js} +6 -6
- package/dist/{plugins-cli-ChGSPhWr.js → plugins-cli-CpdkQdKD.js} +6 -6
- package/dist/{plugins-ODda1fNU.js → plugins-sjrWIkqk.js} +4 -4
- package/dist/{preflight-B9B3VBaW.js → preflight-a80t-iPi.js} +63 -63
- package/dist/{program-DYx2DvMr.js → program-BlZGbNe5.js} +11 -11
- package/dist/{program-context-B_oA8k9e.js → program-context-BVx30291.js} +16 -16
- package/dist/{prompt-select-styled-tATNv5wG.js → prompt-select-styled-Bqov4T-S.js} +4 -4
- package/dist/{prompt-select-styled-CHuBVQoF.js → prompt-select-styled-CtPeDmXo.js} +4 -4
- package/dist/{provider-dispatcher-CaVZ8Nhx.js → provider-dispatcher-BD5K64cR.js} +44 -22
- package/dist/{redact-DUvSdQvv.js → redact-D2_cayCv.js} +1 -1
- package/dist/{register.agent-mJGdqH4r.js → register.agent-B89Ymzwt.js} +8 -8
- package/dist/{register.agent-CAkJcVgr.js → register.agent-CuhMDT3t.js} +7 -7
- package/dist/{register.configure-BhkIDDW5.js → register.configure-C8WcdyT6.js} +9 -9
- package/dist/{register.configure-DvwKyrwL.js → register.configure-b8Ic06Uw.js} +9 -9
- package/dist/{register.maintenance-CKwKHDhS.js → register.maintenance-BlMuoELU.js} +11 -11
- package/dist/{register.maintenance-vpQOTI6u.js → register.maintenance-D5RP4wO6.js} +10 -10
- package/dist/{register.message-h_ydGqf0.js → register.message-CSeNrxdd.js} +7 -7
- package/dist/{register.message-NSrj_UY0.js → register.message-D7jdDTte.js} +7 -7
- package/dist/{register.onboard-C08IBU41.js → register.onboard-CRiXHw0n.js} +3 -3
- package/dist/{register.onboard-CcOONokP.js → register.onboard-Dj8wICC1.js} +3 -3
- package/dist/{register.setup-BHbQcv1_.js → register.setup-8gos4jqr.js} +3 -3
- package/dist/{register.setup-JYGpPbA2.js → register.setup-C_-8vfKv.js} +3 -3
- package/dist/{register.status-health-sessions-CAVFepVm.js → register.status-health-sessions-CrCsnTEq.js} +9 -9
- package/dist/{register.status-health-sessions-CV4R4Fe2.js → register.status-health-sessions-Df9SxgpH.js} +8 -8
- package/dist/{register.subclis-pRE159Cu.js → register.subclis-CxT7d8Bs.js} +8 -8
- package/dist/{replies-Cu8SG6CK.js → replies-Dsu1hdd7.js} +3 -3
- package/dist/{reply-DqJBHDn_.js → reply-Ccq9RRYF.js} +44 -22
- package/dist/{reply-payloads-DbQW7c5s.js → reply-payloads-DwEnDy7C.js} +4 -4
- package/dist/{reply-payloads-C4mbcSP-.js → reply-payloads-KYLwM629.js} +1 -1
- package/dist/{reply-prefix-DwJ8gxoz.js → reply-prefix-DtQ_7Eac.js} +1 -1
- package/dist/{resolve-route-BBztqaX0.js → resolve-route-DFUMTbRD.js} +4 -4
- package/dist/{response-prefix-template-BgDMziqu.js → response-prefix-template-DDQsoC2g.js} +1 -1
- package/dist/{run-main-D4CHxIUS.js → run-main-3RfLQTiu.js} +17 -17
- package/dist/{send-D3Uuw_MA.js → send-4gX7wep2.js} +8 -8
- package/dist/{send-CeBdN3Dp.js → send-CgAV9I1-.js} +15 -15
- package/dist/{send-DgVCmydL.js → send-CkPRLaz-.js} +8 -8
- package/dist/{send-C2J41ICD.js → send-DBeVQI-J.js} +7 -7
- package/dist/{send-Cibl-r-E.js → send-fdOUhBcN.js} +10 -10
- package/dist/{server-node-events-B60wtfXc.js → server-node-events-CRRE92S3.js} +6 -6
- package/dist/{server-node-events-DdwEsXLN.js → server-node-events-wpvPI-kw.js} +6 -6
- package/dist/{session-Bj8e8O8R.js → session-IUmTrU6A.js} +4 -4
- package/dist/{session-utils-CpgeP4rB.js → session-utils-ChEnoQCt.js} +1 -1
- package/dist/{session-utils-BUNcG-B2.js → session-utils-Dq5uiNDE.js} +1 -1
- package/dist/{sessions-3ACDrmHu.js → sessions-C6O5qrbx.js} +7 -1
- package/dist/{sessions-BePPqEtN.js → sessions-D5CiijxL.js} +12 -6
- package/dist/{sessions-n_z2PE4-.js → sessions-DPke45uf.js} +2 -2
- package/dist/{shell-env-DPAvieDD.js → shell-env-CKQ7fvtT.js} +1 -1
- package/dist/{status-BLKhFWFc.js → status-BeGUnsBd.js} +4 -4
- package/dist/{status-Ccfq5H-G.js → status-uyg2yOTM.js} +4 -4
- package/dist/{store-BS8fRU9w.js → store-BfW5-y9S.js} +7 -1
- package/dist/{subagent-registry-DIReZNw1.js → subagent-registry-BTv48FFX.js} +239 -6
- package/dist/{subagent-registry-DvnyYXMs.js → subagent-registry-D2yHvOBr.js} +238 -22
- package/dist/{subagent-registry-DMTgcI99.js → subagent-registry-DljM1oxO.js} +239 -6
- package/dist/{subsystem-DLQY6iY4.js → subsystem-9R2eOxp2.js} +2 -2
- package/dist/{tables-Bk8AXTIS.js → tables-CDsRjvfB.js} +2 -2
- package/dist/{tokens-CgIfCmK3.js → tokens-CFajuiSx.js} +1 -1
- package/dist/{tool-images-BMnWMHwL.js → tool-images-Cmsx31Bo.js} +1 -1
- package/dist/{update-cli-DCK9HF3t.js → update-cli-ChJoLU8L.js} +11 -11
- package/dist/{update-cli-1qesJ1_a.js → update-cli-DaW75dJC.js} +10 -10
- package/dist/{web-DG3SWzn_.js → web-BS0azDPB.js} +6 -6
- package/dist/{web-CCw02lmy.js → web-C_Alo-mS.js} +6 -6
- package/dist/{web-CKces-ap.js → web-DHXIgMOC.js} +50 -50
- package/dist/{whatsapp-actions-BzyFEHw4.js → whatsapp-actions-sR-u0T6U.js} +21 -21
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/plugin-sdk/web-C24fSRzu.js +0 -7
- /package/dist/{fetch-timeout-DTIN7CGM.js → fetch-timeout-jOIu9Xud.js} +0 -0
- /package/dist/{file-lock-BftAtpBn.js → file-lock-CEhZlbAi.js} +0 -0
- /package/dist/{ip-B27WD9wk.js → ip-N_XHHVsM.js} +0 -0
- /package/dist/{json-file-CRyYLqpu.js → json-file-DYQIVLc1.js} +0 -0
- /package/dist/{render-DSLzcBxk.js → render-TpKSK5RV.js} +0 -0
- /package/dist/{target-errors-owiG6LWY.js → target-errors-D7fLx8zG.js} +0 -0
|
@@ -58,7 +58,7 @@ const entries = [
|
|
|
58
58
|
description: "Run, inspect, and query the WebSocket Gateway",
|
|
59
59
|
hasSubcommands: true,
|
|
60
60
|
register: async (program) => {
|
|
61
|
-
(await import("./gateway-cli-
|
|
61
|
+
(await import("./gateway-cli-DuMZZmMm.js")).registerGatewayCli(program);
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
{
|
|
@@ -138,7 +138,7 @@ const entries = [
|
|
|
138
138
|
description: "Manage internal agent hooks",
|
|
139
139
|
hasSubcommands: true,
|
|
140
140
|
register: async (program) => {
|
|
141
|
-
(await import("./hooks-cli-
|
|
141
|
+
(await import("./hooks-cli-c8IB_ozo.js")).registerHooksCli(program);
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
{
|
|
@@ -162,7 +162,7 @@ const entries = [
|
|
|
162
162
|
description: "Secure DM pairing (approve inbound requests)",
|
|
163
163
|
hasSubcommands: true,
|
|
164
164
|
register: async (program) => {
|
|
165
|
-
const { registerPluginCliCommands } = await import("./cli-
|
|
165
|
+
const { registerPluginCliCommands } = await import("./cli-ifZiERUK.js");
|
|
166
166
|
registerPluginCliCommands(program, await loadConfig());
|
|
167
167
|
(await import("./pairing-cli-58YSaldf.js")).registerPairingCli(program);
|
|
168
168
|
}
|
|
@@ -172,8 +172,8 @@ const entries = [
|
|
|
172
172
|
description: "Manage RemoteClaw plugins and extensions",
|
|
173
173
|
hasSubcommands: true,
|
|
174
174
|
register: async (program) => {
|
|
175
|
-
(await import("./plugins-cli-
|
|
176
|
-
const { registerPluginCliCommands } = await import("./cli-
|
|
175
|
+
(await import("./plugins-cli-CpdkQdKD.js")).registerPluginsCli(program);
|
|
176
|
+
const { registerPluginCliCommands } = await import("./cli-ifZiERUK.js");
|
|
177
177
|
registerPluginCliCommands(program, await loadConfig());
|
|
178
178
|
}
|
|
179
179
|
},
|
|
@@ -182,7 +182,7 @@ const entries = [
|
|
|
182
182
|
description: "Manage connected chat channels (Telegram, Discord, etc.)",
|
|
183
183
|
hasSubcommands: true,
|
|
184
184
|
register: async (program) => {
|
|
185
|
-
(await import("./channels-cli-
|
|
185
|
+
(await import("./channels-cli-BIArqz2T.js")).registerChannelsCli(program);
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
188
|
{
|
|
@@ -206,7 +206,7 @@ const entries = [
|
|
|
206
206
|
description: "Update RemoteClaw and inspect update channel status",
|
|
207
207
|
hasSubcommands: true,
|
|
208
208
|
register: async (program) => {
|
|
209
|
-
(await import("./update-cli-
|
|
209
|
+
(await import("./update-cli-DaW75dJC.js")).registerUpdateCli(program);
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
212
|
{
|
|
@@ -214,7 +214,7 @@ const entries = [
|
|
|
214
214
|
description: "Generate shell completion script",
|
|
215
215
|
hasSubcommands: false,
|
|
216
216
|
register: async (program) => {
|
|
217
|
-
(await import("./completion-cli-
|
|
217
|
+
(await import("./completion-cli-eH6YXa0H.js").then((n) => n.n)).registerCompletionCli(program);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
];
|
|
@@ -281,7 +281,7 @@ const coreEntries = [
|
|
|
281
281
|
hasSubcommands: false
|
|
282
282
|
}],
|
|
283
283
|
register: async ({ program }) => {
|
|
284
|
-
(await import("./register.setup-
|
|
284
|
+
(await import("./register.setup-C_-8vfKv.js")).registerSetupCommand(program);
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
287
|
{
|
|
@@ -291,7 +291,7 @@ const coreEntries = [
|
|
|
291
291
|
hasSubcommands: false
|
|
292
292
|
}],
|
|
293
293
|
register: async ({ program }) => {
|
|
294
|
-
(await import("./register.onboard-
|
|
294
|
+
(await import("./register.onboard-Dj8wICC1.js")).registerOnboardCommand(program);
|
|
295
295
|
}
|
|
296
296
|
},
|
|
297
297
|
{
|
|
@@ -301,7 +301,7 @@ const coreEntries = [
|
|
|
301
301
|
hasSubcommands: false
|
|
302
302
|
}],
|
|
303
303
|
register: async ({ program }) => {
|
|
304
|
-
(await import("./register.configure-
|
|
304
|
+
(await import("./register.configure-C8WcdyT6.js")).registerConfigureCommand(program);
|
|
305
305
|
}
|
|
306
306
|
},
|
|
307
307
|
{
|
|
@@ -311,7 +311,7 @@ const coreEntries = [
|
|
|
311
311
|
hasSubcommands: true
|
|
312
312
|
}],
|
|
313
313
|
register: async ({ program }) => {
|
|
314
|
-
(await import("./config-cli-
|
|
314
|
+
(await import("./config-cli-BfJacpda.js")).registerConfigCli(program);
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
317
|
{
|
|
@@ -338,7 +338,7 @@ const coreEntries = [
|
|
|
338
338
|
}
|
|
339
339
|
],
|
|
340
340
|
register: async ({ program }) => {
|
|
341
|
-
(await import("./register.maintenance-
|
|
341
|
+
(await import("./register.maintenance-D5RP4wO6.js")).registerMaintenanceCommands(program);
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
344
|
{
|
|
@@ -348,7 +348,7 @@ const coreEntries = [
|
|
|
348
348
|
hasSubcommands: true
|
|
349
349
|
}],
|
|
350
350
|
register: async ({ program, ctx }) => {
|
|
351
|
-
(await import("./register.message-
|
|
351
|
+
(await import("./register.message-CSeNrxdd.js")).registerMessageCommands(program, ctx);
|
|
352
352
|
}
|
|
353
353
|
},
|
|
354
354
|
{
|
|
@@ -362,7 +362,7 @@ const coreEntries = [
|
|
|
362
362
|
hasSubcommands: true
|
|
363
363
|
}],
|
|
364
364
|
register: async ({ program, ctx }) => {
|
|
365
|
-
(await import("./register.agent-
|
|
365
|
+
(await import("./register.agent-CuhMDT3t.js")).registerAgentCommands(program, { agentChannelOptions: ctx.agentChannelOptions });
|
|
366
366
|
}
|
|
367
367
|
},
|
|
368
368
|
{
|
|
@@ -384,7 +384,7 @@ const coreEntries = [
|
|
|
384
384
|
}
|
|
385
385
|
],
|
|
386
386
|
register: async ({ program }) => {
|
|
387
|
-
(await import("./register.status-health-sessions-
|
|
387
|
+
(await import("./register.status-health-sessions-Df9SxgpH.js")).registerStatusHealthSessionsCommands(program);
|
|
388
388
|
}
|
|
389
389
|
},
|
|
390
390
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as resolveRequiredHomeDir, d as resolveIsNixMode, m as resolveStateDir, p as resolveOAuthDir, t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-DHuXVC00.js";
|
|
2
2
|
import { B as getResolvedLoggerSettings, b as shortenHomePath, x as sleep } from "./utils-__cbkDgx.js";
|
|
3
|
-
import { Qt as TTS_PROVIDERS, c as loadRemoteClawPlugins, in as resolveTtsConfig, tn as isTtsProviderConfigured } from "./reply-
|
|
3
|
+
import { Qt as TTS_PROVIDERS, c as loadRemoteClawPlugins, in as resolveTtsConfig, tn as isTtsProviderConfigured } from "./reply-Ccq9RRYF.js";
|
|
4
4
|
import { i as defaultRuntime } from "./ansi-DtaiOnt1.js";
|
|
5
5
|
import { C as parseAgentSessionKey } from "./session-key-DUewR3Vl.js";
|
|
6
6
|
import { d as resolveDefaultAgentId, l as resolveAgentWorkspaceDir } from "./agent-scope-CqLq7cFg.js";
|
|
@@ -10,7 +10,7 @@ import { t as isTruthyEnvValue } from "./env-CY8oslpl.js";
|
|
|
10
10
|
import { n as listChannelPlugins } from "./plugins-BzN42FWt.js";
|
|
11
11
|
import { t as formatCliCommand } from "./command-format-Dntg_tnC.js";
|
|
12
12
|
import { c as resolveSessionFilePath, l as resolveSessionFilePathOptions, m as resolveStorePath, p as resolveSessionTranscriptsDirForAgent } from "./chat-envelope-DPKIEKwe.js";
|
|
13
|
-
import {
|
|
13
|
+
import { Z as resolveMainSessionKey, at as cleanStaleLockFiles, n as loadSessionStore, nt as isPrimarySessionTranscriptFileName, tt as formatSessionArchiveTimestamp } from "./store-BfW5-y9S.js";
|
|
14
14
|
import { d as updateAuthProfileStoreWithLock, h as CODEX_CLI_PROFILE_ID, l as ensureAuthProfileStore, m as CLAUDE_CLI_PROFILE_ID, p as resolveAuthProfileDisplayLabel } from "./auth-8CQIOfEF.js";
|
|
15
15
|
import { i as resolveApiKeyForProvider, r as AUTO_AUDIO_KEY_PROVIDERS } from "./preflight-L0howXc3.js";
|
|
16
16
|
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-CzzsQW8Z.js";
|
|
@@ -31,7 +31,7 @@ import { a as launchAgentPlistExists, i as isLaunchAgentLoaded, o as repairLaunc
|
|
|
31
31
|
import { i as auditGatewayServiceConfig, n as renderSystemdUnavailableHints, o as needsNodeRuntimeMigration, r as SERVICE_AUDIT_CODES, s as formatRuntimeStatus, t as isSystemdUnavailableDetail } from "./systemd-hints-BqhMM6yZ.js";
|
|
32
32
|
import { t as readLastGatewayErrorLine } from "./diagnostics-6GSgKhwh.js";
|
|
33
33
|
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-BJu6rCmM.js";
|
|
34
|
-
import { r as healthCommand } from "./health-
|
|
34
|
+
import { r as healthCommand } from "./health-6NZ23ZCc.js";
|
|
35
35
|
import { t as resolveRemoteClawPackageRoot } from "./remoteclaw-root-BkQA3neE.js";
|
|
36
36
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-DOwMM2s0.js";
|
|
37
37
|
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-C8HHNlvT.js";
|
|
@@ -40,7 +40,7 @@ import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as l
|
|
|
40
40
|
import { n as logConfigUpdated } from "./logging-Nn7PK_AX.js";
|
|
41
41
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-BvLQCEYJ.js";
|
|
42
42
|
import { t as formatHealthCheckFailure } from "./health-format-NUftNz4s.js";
|
|
43
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
43
|
+
import { n as doctorShellCompletion } from "./doctor-completion-Cz3-0qwJ.js";
|
|
44
44
|
import fs from "node:fs";
|
|
45
45
|
import os from "node:os";
|
|
46
46
|
import path from "node:path";
|
|
@@ -2,10 +2,10 @@ import { Dt as getResolvedLoggerSettings, Kt as resolveOAuthDir, Pt as CONFIG_PA
|
|
|
2
2
|
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-DWFrth_R.js";
|
|
3
3
|
import { C as parseAgentSessionKey } from "./session-key-CfvsBObU.js";
|
|
4
4
|
import { d as resolveDefaultAgentId, l as resolveAgentWorkspaceDir } from "./agent-scope-CXVIfJFJ.js";
|
|
5
|
-
import {
|
|
5
|
+
import { R as cleanStaleLockFiles, Z as resolveMainSessionKey, l as loadSessionStore, nt as isPrimarySessionTranscriptFileName, tt as formatSessionArchiveTimestamp } from "./sessions-C6O5qrbx.js";
|
|
6
6
|
import { n as listChannelPlugins } from "./plugins-xybjDXd6.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-CnyOPNyW.js";
|
|
8
|
-
import { d as loadRemoteClawPlugins, ln as resolveTtsConfig, on as isTtsProviderConfigured, rn as TTS_PROVIDERS } from "./provider-dispatcher-
|
|
8
|
+
import { d as loadRemoteClawPlugins, ln as resolveTtsConfig, on as isTtsProviderConfigured, rn as TTS_PROVIDERS } from "./provider-dispatcher-BD5K64cR.js";
|
|
9
9
|
import { c as resolveSessionFilePath, l as resolveSessionFilePathOptions, m as resolveStorePath, p as resolveSessionTranscriptsDirForAgent } from "./chat-envelope-CT-Ocz9D.js";
|
|
10
10
|
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-CFafK7BB.js";
|
|
11
11
|
import { r as isLoopbackHost, u as resolveGatewayBindHost } from "./net-eJa3DljN.js";
|
|
@@ -28,7 +28,7 @@ import { a as launchAgentPlistExists, i as isLaunchAgentLoaded, o as repairLaunc
|
|
|
28
28
|
import { i as auditGatewayServiceConfig, n as renderSystemdUnavailableHints, o as needsNodeRuntimeMigration, r as SERVICE_AUDIT_CODES, s as formatRuntimeStatus, t as isSystemdUnavailableDetail } from "./systemd-hints-BSQT6Ozg.js";
|
|
29
29
|
import { t as readLastGatewayErrorLine } from "./diagnostics-BOxfIjGf.js";
|
|
30
30
|
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-DXwv5wue.js";
|
|
31
|
-
import { r as healthCommand } from "./health-
|
|
31
|
+
import { r as healthCommand } from "./health-D6T18gwU.js";
|
|
32
32
|
import { t as resolveRemoteClawPackageRoot } from "./remoteclaw-root-Dgi-g2QH.js";
|
|
33
33
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-CbCKSgtg.js";
|
|
34
34
|
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-l7BEOF8r.js";
|
|
@@ -37,7 +37,7 @@ import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as l
|
|
|
37
37
|
import { n as logConfigUpdated } from "./logging-DVnniiH5.js";
|
|
38
38
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-4yk7bpQI.js";
|
|
39
39
|
import { t as formatHealthCheckFailure } from "./health-format-CF9V6x6u.js";
|
|
40
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
40
|
+
import { n as doctorShellCompletion } from "./doctor-completion-D6DqtWrm.js";
|
|
41
41
|
import { execFile } from "node:child_process";
|
|
42
42
|
import os from "node:os";
|
|
43
43
|
import path from "node:path";
|
|
@@ -8,7 +8,7 @@ import { a as resolveAgentDir, c as resolveAgentRuntimeOrThrow, d as resolveDefa
|
|
|
8
8
|
import { a as mapStreamingModeToSlackLegacyDraftStreamMode, c as resolveSlackStreamingMode, d as resolveIMessageAttachmentRoots, f as resolveIMessageRemoteAttachmentRoots, g as parseDurationMs, i as resolveTelegramCustomCommands, n as TELEGRAM_COMMAND_NAME_PATTERN, o as resolveDiscordPreviewStreamMode, p as normalizeScpRemoteHost, r as normalizeTelegramCommandName, s as resolveSlackNativeStreaming, u as isInboundPathAllowed } from "./zod-schema-Bh8NOhFH.js";
|
|
9
9
|
import { a as resolveChannelGroupRequireMention, c as normalizeStringEntries, i as resolveChannelGroupPolicy, l as normalizeStringEntriesLower, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeHyphenSlug, t as getChannelDock } from "./dock-DO9Vw5CE.js";
|
|
10
10
|
import { a as isInternalMessageChannel, c as normalizeMessageChannel, i as isGatewayMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, s as listDeliverableMessageChannels, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-tuc9CdEw.js";
|
|
11
|
-
import {
|
|
11
|
+
import { $ as deriveSessionMetaPatch, B as evaluateSessionFreshness, C as normalizeSessionDeliveryFields, E as archiveSessionTranscripts, G as DEFAULT_RESET_TRIGGERS, H as resolveSessionResetPolicy, S as normalizeDeliveryContext, U as resolveSessionResetType, V as resolveChannelResetConfig, W as resolveThreadFlag, X as resolveExplicitAgentSessionKey, _ as updateSessionStoreEntry, d as readSessionUpdatedAt, f as recordSessionMetaFromInbound, g as updateSessionStore, h as updateLastRoute, it as resolveGroupSessionKey, l as loadSessionStore, o as resolveAndPersistSessionFile, r as parseSessionThreadInfo, s as CURRENT_SESSION_VERSION, w as normalizeAccountId$3, y as deliveryContextFromSession, z as resolveSessionKey } from "./sessions-C6O5qrbx.js";
|
|
12
12
|
import { t as normalizeChatType } from "./chat-type-CH3W-zKy.js";
|
|
13
13
|
import { n as resolveConversationLabel } from "./conversation-label-CDH4rKMG.js";
|
|
14
14
|
import { t as resolveAccountEntry } from "./account-lookup-C0ndrpt-.js";
|
|
@@ -24,13 +24,13 @@ import { c as resolveSessionFilePath, l as resolveSessionFilePathOptions, m as r
|
|
|
24
24
|
import { n as callGateway } from "./call-CFafK7BB.js";
|
|
25
25
|
import { t as resolveGatewayCredentialsFromConfig } from "./credentials-1PUmBaVB.js";
|
|
26
26
|
import { n as logError, t as logDebug } from "./logger-Bg_B5M43.js";
|
|
27
|
-
import { $ as
|
|
27
|
+
import { $ as resolveQueueSettings, At as extractQueueDirective, B as AGENT_LANE_NESTED, Ct as logWebhookError, D as sanitizeTextContent, Dt as stopDiagnosticHeartbeat, E as extractAssistantText, Et as startDiagnosticHeartbeat, F as resolveDisplaySessionKey, Ft as registerAgentRunContext, G as killSessionRun, H as getSubagentDepthFromSessionStore, I as resolveInternalSessionKey, K as registerSessionRun, L as resolveMainSessionAlias, Mt as emitAgentEvent, O as stripToolMessages, Ot as emitDiagnosticEvent, Q as unregisterSessionBindingAdapter, St as logSessionStateChange, Tt as logWebhookReceived, V as AGENT_LANE_SUBAGENT, W as isSessionRunActive, X as getSessionBindingService, Y as extractTextFromChatContent, Z as registerSessionBindingAdapter, at as normalizeReplyPayload, bt as logMessageProcessed, c as markSubagentRunTerminated, dt as clearCommandLane, et as enqueueFollowupRun, f as resolveAgentTimeoutMs, it as routeReply, jt as clearAgentRunContext, k as stripReasoningTagsFromText, kt as isDiagnosticsEnabled, l as registerSubagentRun, lt as buildOutboundSessionContext, nt as scheduleFollowupDrain, o as listSubagentRunsForRequester, ot as createReceiptCard, p as buildSubagentSystemPrompt, pt as getQueueSize, q as unregisterSessionRun, r as countActiveRunsForSession, rt as isRoutableChannel, s as markSubagentRunForSteerRestart, t as clearSubagentRunSteerRestart, tt as getFollowupQueueDepth, u as replaceSubagentRunAfterSteer, ut as clearSessionQueues, wt as logWebhookProcessed, xt as logMessageQueued } from "./subagent-registry-BTv48FFX.js";
|
|
28
28
|
import { a as resolveEffectiveMessagesConfig, i as resolveAgentIdentity, o as resolveHumanDelayConfig, r as resolveAckReaction } from "./response-prefix-template-DKzvekX_.js";
|
|
29
29
|
import { a as isLikelyContextOverflowError, i as isContextOverflowError, o as isTransientHttpError, r as isCompactionFailureError, s as sanitizeUserFacingText } from "./agent-helpers-Bzz_tiPK.js";
|
|
30
30
|
import { t as runCommandWithTimeout } from "./exec-D1tuG1om.js";
|
|
31
31
|
import { i as getImageMetadata, s as resizeToJpeg } from "./image-ops-BT4VediG.js";
|
|
32
32
|
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText } from "./tokens-D1JVsjbg.js";
|
|
33
|
-
import { a as applyReplyThreading, c as isRenderablePayload, d as createReplyToModeFilterForChannel, f as resolveReplyToMode, i as applyReplyTagsToPayload, l as shouldSuppressMessagingToolReplies, n as initializeGlobalHookRunner, o as filterMessagingToolDuplicates, s as filterMessagingToolMediaDuplicates, t as getGlobalHookRunner, u as shouldSuppressReasoningPayload } from "./hook-runner-global-
|
|
33
|
+
import { a as applyReplyThreading, c as isRenderablePayload, d as createReplyToModeFilterForChannel, f as resolveReplyToMode, i as applyReplyTagsToPayload, l as shouldSuppressMessagingToolReplies, n as initializeGlobalHookRunner, o as filterMessagingToolDuplicates, s as filterMessagingToolMediaDuplicates, t as getGlobalHookRunner, u as shouldSuppressReasoningPayload } from "./hook-runner-global-DPdZsDAH.js";
|
|
34
34
|
import { n as saveJsonFile, t as loadJsonFile } from "./json-file-BVvmrQG3.js";
|
|
35
35
|
import { n as resolveMarkdownTableMode } from "./markdown-tables-BKzJxBq0.js";
|
|
36
36
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-y6N6Gted.js";
|
|
@@ -60,7 +60,7 @@ import { i as resolveModelCostConfig, n as formatTokenCount$1, r as formatUsd, t
|
|
|
60
60
|
import { n as formatErrorMessage, r as formatUncaughtError, t as extractErrorCode } from "./errors-BO7MWwih.js";
|
|
61
61
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-IGj7U5iv.js";
|
|
62
62
|
import { n as resolveLsofCommandSync } from "./ports-lsof-CwRCSLwc.js";
|
|
63
|
-
import { a as normalizeOutboundPayloadsForJson, c as parseReplyDirectives, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-
|
|
63
|
+
import { a as normalizeOutboundPayloadsForJson, c as parseReplyDirectives, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-B5eZoNwr.js";
|
|
64
64
|
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-CExwFUHo.js";
|
|
65
65
|
import { a as resolveDmGroupAccessWithLists, n as readStoreAllowFromForDmPolicy, o as resolveCommandAuthorizedFromAuthorizers, s as resolveControlCommandGate, t as DM_GROUP_ACCESS_REASON } from "./dm-policy-shared-Bla9d1QG.js";
|
|
66
66
|
import { c as signalRpcRequest, l as streamSignalEvents, n as sendReadReceiptSignal, o as resolveSignalRpcContext, r as sendTypingSignal, s as signalCheck, t as sendMessageSignal } from "./send-D8F6oiAI.js";
|
|
@@ -6523,11 +6523,13 @@ function stopSubagentsForRequester(params) {
|
|
|
6523
6523
|
store = loadSessionStore(storePath);
|
|
6524
6524
|
storeCache.set(storePath, store);
|
|
6525
6525
|
}
|
|
6526
|
-
|
|
6526
|
+
const markedTerminated = markSubagentRunTerminated({
|
|
6527
6527
|
runId: run.runId,
|
|
6528
6528
|
childSessionKey: childKey,
|
|
6529
6529
|
reason: "killed"
|
|
6530
|
-
}) > 0
|
|
6530
|
+
}) > 0;
|
|
6531
|
+
killSessionRun(childKey);
|
|
6532
|
+
if (markedTerminated || cleared.followupCleared > 0 || cleared.laneCleared > 0) stopped += 1;
|
|
6531
6533
|
}
|
|
6532
6534
|
const cascadeResult = stopSubagentsForRequester({
|
|
6533
6535
|
cfg: params.cfg,
|
|
@@ -6587,6 +6589,7 @@ async function tryFastAbortFromMessage(params) {
|
|
|
6587
6589
|
nextStore[key] = nextEntry;
|
|
6588
6590
|
});
|
|
6589
6591
|
} else if (abortKey) setAbortMemory(abortKey, true);
|
|
6592
|
+
if (requesterSessionKey) killSessionRun(requesterSessionKey);
|
|
6590
6593
|
const { stopped } = stopSubagentsForRequester({
|
|
6591
6594
|
cfg,
|
|
6592
6595
|
requesterSessionKey
|
|
@@ -6598,6 +6601,7 @@ async function tryFastAbortFromMessage(params) {
|
|
|
6598
6601
|
};
|
|
6599
6602
|
}
|
|
6600
6603
|
if (abortKey) setAbortMemory(abortKey, true);
|
|
6604
|
+
if (requesterSessionKey) killSessionRun(requesterSessionKey);
|
|
6601
6605
|
const { stopped } = stopSubagentsForRequester({
|
|
6602
6606
|
cfg,
|
|
6603
6607
|
requesterSessionKey
|
|
@@ -11872,6 +11876,15 @@ var ChannelBridge = class {
|
|
|
11872
11876
|
let workspaceDir = this.#workspaceDir;
|
|
11873
11877
|
let hookEnv;
|
|
11874
11878
|
const runId = randomUUID();
|
|
11879
|
+
const sessionKeyStr = formatSessionKeyString(sessionKey);
|
|
11880
|
+
const internalAbortCtrl = new AbortController();
|
|
11881
|
+
registerSessionRun(sessionKeyStr, {
|
|
11882
|
+
startedAt: Date.now(),
|
|
11883
|
+
sessionKey: sessionKeyStr,
|
|
11884
|
+
agentId: message.agentId ?? "default",
|
|
11885
|
+
abortController: internalAbortCtrl
|
|
11886
|
+
});
|
|
11887
|
+
const combinedSignal = abortSignal ? AbortSignal.any([abortSignal, internalAbortCtrl.signal]) : internalAbortCtrl.signal;
|
|
11875
11888
|
if (hookRunner?.hasHooks("before_runtime_spawn")) {
|
|
11876
11889
|
const spawnResult = await hookRunner.runBeforeRuntimeSpawn({
|
|
11877
11890
|
runtimeName: this.#provider,
|
|
@@ -11916,7 +11929,7 @@ var ChannelBridge = class {
|
|
|
11916
11929
|
media: supportedMedia?.length ? supportedMedia : void 0,
|
|
11917
11930
|
sessionId: existingSessionId,
|
|
11918
11931
|
mcpServers,
|
|
11919
|
-
abortSignal,
|
|
11932
|
+
abortSignal: combinedSignal,
|
|
11920
11933
|
workingDirectory: workspaceDir,
|
|
11921
11934
|
env: this.#runtimeEnv || hookEnv ? {
|
|
11922
11935
|
...this.#runtimeEnv,
|
|
@@ -11985,6 +11998,7 @@ var ChannelBridge = class {
|
|
|
11985
11998
|
error: lastError
|
|
11986
11999
|
};
|
|
11987
12000
|
} finally {
|
|
12001
|
+
unregisterSessionRun(formatSessionKeyString(sessionKey));
|
|
11988
12002
|
await rm(invocationDir, {
|
|
11989
12003
|
recursive: true,
|
|
11990
12004
|
force: true
|
|
@@ -14196,7 +14210,7 @@ async function runPreparedReply(params) {
|
|
|
14196
14210
|
const laneSize = getQueueSize(sessionLaneKey);
|
|
14197
14211
|
if (resolvedQueue.mode === "interrupt" && laneSize > 0) logVerbose(`Interrupting ${sessionLaneKey} (cleared ${clearCommandLane(sessionLaneKey)})`);
|
|
14198
14212
|
const queueKey = sessionKey ?? sessionIdFinal;
|
|
14199
|
-
const isActive =
|
|
14213
|
+
const isActive = isSessionRunActive(queueKey);
|
|
14200
14214
|
const shouldFollowup = resolvedQueue.mode === "followup" || resolvedQueue.mode === "collect" || resolvedQueue.mode === "steer-backlog";
|
|
14201
14215
|
return runReplyAgent({
|
|
14202
14216
|
commandBody: prefixedCommandBody,
|
|
@@ -22343,7 +22357,7 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
22343
22357
|
function createDefaultDeps() {
|
|
22344
22358
|
return {
|
|
22345
22359
|
sendMessageWhatsApp: async (...args) => {
|
|
22346
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
22360
|
+
const { sendMessageWhatsApp } = await import("./web-BS0azDPB.js");
|
|
22347
22361
|
return await sendMessageWhatsApp(...args);
|
|
22348
22362
|
},
|
|
22349
22363
|
sendMessageTelegram: async (...args) => {
|
|
@@ -22910,15 +22924,7 @@ async function agentCommand(opts, runtime = defaultRuntime, deps = createDefault
|
|
|
22910
22924
|
const runContext = resolveAgentRunContext(opts);
|
|
22911
22925
|
const messageChannel = resolveMessageChannel(runContext.messageChannel, opts.replyChannel ?? opts.channel);
|
|
22912
22926
|
const sessionMap = createSessionMapAdapter({ getSessionId: () => getCliSessionId(sessionEntry, provider) });
|
|
22913
|
-
const
|
|
22914
|
-
provider: resolveAgentRuntimeOrThrow(cfg, sessionAgentId),
|
|
22915
|
-
sessionMap,
|
|
22916
|
-
gatewayUrl: resolveGatewayUrlFromConfig(cfg),
|
|
22917
|
-
gatewayToken: resolveGatewayTokenFromConfig(cfg),
|
|
22918
|
-
workspaceDir,
|
|
22919
|
-
runtimeArgs: resolveAgentRuntimeArgs(cfg, sessionAgentId),
|
|
22920
|
-
runtimeEnv: resolveAgentRuntimeEnv(cfg, sessionAgentId)
|
|
22921
|
-
});
|
|
22927
|
+
const baseRuntimeEnv = resolveAgentRuntimeEnv(cfg, sessionAgentId);
|
|
22922
22928
|
const messageToolHints = resolveChannelMessageToolHints({
|
|
22923
22929
|
cfg,
|
|
22924
22930
|
channel: messageChannel,
|
|
@@ -22934,7 +22940,23 @@ async function agentCommand(opts, runtime = defaultRuntime, deps = createDefault
|
|
|
22934
22940
|
timestamp: Date.now(),
|
|
22935
22941
|
messageToolHints
|
|
22936
22942
|
});
|
|
22937
|
-
result = await
|
|
22943
|
+
result = await withAuthKeyRetry({
|
|
22944
|
+
cfg,
|
|
22945
|
+
agentId: sessionAgentId,
|
|
22946
|
+
baseEnv: baseRuntimeEnv
|
|
22947
|
+
}, async (runtimeEnv) => {
|
|
22948
|
+
const bridgeResult = await new ChannelBridge({
|
|
22949
|
+
provider: resolveAgentRuntimeOrThrow(cfg, sessionAgentId),
|
|
22950
|
+
sessionMap,
|
|
22951
|
+
gatewayUrl: resolveGatewayUrlFromConfig(cfg),
|
|
22952
|
+
gatewayToken: resolveGatewayTokenFromConfig(cfg),
|
|
22953
|
+
workspaceDir,
|
|
22954
|
+
runtimeArgs: resolveAgentRuntimeArgs(cfg, sessionAgentId),
|
|
22955
|
+
runtimeEnv
|
|
22956
|
+
}).handle(message, void 0, opts.abortSignal);
|
|
22957
|
+
if (bridgeResult.error && bridgeResult.payloads.length === 0) throw new Error(bridgeResult.error);
|
|
22958
|
+
return bridgeResult;
|
|
22959
|
+
}, (bridgeResult) => bridgeResult.error);
|
|
22938
22960
|
emitAgentEvent({
|
|
22939
22961
|
runId,
|
|
22940
22962
|
stream: "lifecycle",
|
|
@@ -33404,7 +33426,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
33404
33426
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordSessionMetaFromInbound, resolveStorePath }] = await Promise.all([
|
|
33405
33427
|
import("./conversation-label-CDH4rKMG.js").then((n) => n.t),
|
|
33406
33428
|
import("./reply-prefix-BTjLMEtW.js").then((n) => n.n),
|
|
33407
|
-
import("./sessions-
|
|
33429
|
+
import("./sessions-C6O5qrbx.js").then((n) => n.t)
|
|
33408
33430
|
]);
|
|
33409
33431
|
const route = resolveAgentRoute({
|
|
33410
33432
|
cfg,
|
|
@@ -38284,7 +38306,7 @@ function loadWebLoginQr() {
|
|
|
38284
38306
|
return webLoginQrPromise;
|
|
38285
38307
|
}
|
|
38286
38308
|
function loadWebChannel() {
|
|
38287
|
-
webChannelPromise ??= import("./web-
|
|
38309
|
+
webChannelPromise ??= import("./web-BS0azDPB.js");
|
|
38288
38310
|
return webChannelPromise;
|
|
38289
38311
|
}
|
|
38290
38312
|
function loadWhatsAppActions() {
|
|
@@ -39362,7 +39384,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
39362
39384
|
return;
|
|
39363
39385
|
}
|
|
39364
39386
|
try {
|
|
39365
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
39387
|
+
const { deliverOutboundPayloads } = await import("./deliver-B5eZoNwr.js").then((n) => n.n);
|
|
39366
39388
|
const outboundSession = buildOutboundSessionContext({
|
|
39367
39389
|
cfg: params.cfg,
|
|
39368
39390
|
sessionKey: params.sessionKey
|
|
@@ -9,7 +9,7 @@ import { n as listAgentIds } from "./agent-scope-CXVIfJFJ.js";
|
|
|
9
9
|
import "./zod-schema-Bh8NOhFH.js";
|
|
10
10
|
import "./dock-DO9Vw5CE.js";
|
|
11
11
|
import { c as normalizeMessageChannel, f as GATEWAY_CLIENT_MODES, p as GATEWAY_CLIENT_NAMES } from "./message-channel-tuc9CdEw.js";
|
|
12
|
-
import "./sessions-
|
|
12
|
+
import "./sessions-C6O5qrbx.js";
|
|
13
13
|
import "./accounts-BVh3N1Fk.js";
|
|
14
14
|
import "./accounts-9jdDby1S.js";
|
|
15
15
|
import "./plugins-xybjDXd6.js";
|
|
@@ -20,7 +20,7 @@ import { t as formatCliCommand } from "./command-format-CnyOPNyW.js";
|
|
|
20
20
|
import "./logging-DRwtiLIS.js";
|
|
21
21
|
import "./send-QGiloXFZ.js";
|
|
22
22
|
import "./send-BvObbKlY.js";
|
|
23
|
-
import { N as createDefaultDeps, O as agentCommand, k as resolveSessionKeyForRequest } from "./provider-dispatcher-
|
|
23
|
+
import { N as createDefaultDeps, O as agentCommand, k as resolveSessionKeyForRequest } from "./provider-dispatcher-BD5K64cR.js";
|
|
24
24
|
import "./chat-envelope-CT-Ocz9D.js";
|
|
25
25
|
import "./strip-inbound-meta-zmUXypSS.js";
|
|
26
26
|
import "./client-_mml4Fa6.js";
|
|
@@ -29,14 +29,14 @@ import "./net-eJa3DljN.js";
|
|
|
29
29
|
import "./logger-Bg_B5M43.js";
|
|
30
30
|
import "./ip-DK-vcRii.js";
|
|
31
31
|
import "./tailnet-kbXXH7kK.js";
|
|
32
|
-
import "./subagent-registry-
|
|
32
|
+
import "./subagent-registry-BTv48FFX.js";
|
|
33
33
|
import "./response-prefix-template-DKzvekX_.js";
|
|
34
34
|
import "./agent-helpers-Bzz_tiPK.js";
|
|
35
35
|
import "./tool-images-CX2LXum2.js";
|
|
36
36
|
import "./exec-D1tuG1om.js";
|
|
37
37
|
import "./image-ops-BT4VediG.js";
|
|
38
38
|
import "./tokens-D1JVsjbg.js";
|
|
39
|
-
import "./hook-runner-global-
|
|
39
|
+
import "./hook-runner-global-DPdZsDAH.js";
|
|
40
40
|
import "./redact-CuM_QcqM.js";
|
|
41
41
|
import "./tool-display-FTmiDILs.js";
|
|
42
42
|
import "./markdown-tables-BKzJxBq0.js";
|
|
@@ -63,7 +63,7 @@ import "./channel-activity-DgNn51YG.js";
|
|
|
63
63
|
import "./session-cost-usage-B7CLLXW3.js";
|
|
64
64
|
import "./errors-BO7MWwih.js";
|
|
65
65
|
import "./ports-lsof-CwRCSLwc.js";
|
|
66
|
-
import "./deliver-
|
|
66
|
+
import "./deliver-B5eZoNwr.js";
|
|
67
67
|
import "./plugin-auto-enable-CExwFUHo.js";
|
|
68
68
|
import "./dm-policy-shared-Bla9d1QG.js";
|
|
69
69
|
import "./send-D8F6oiAI.js";
|
|
@@ -78,7 +78,7 @@ import "./delivery-queue-5y843sAr.js";
|
|
|
78
78
|
import "./send-CRLJdqoo.js";
|
|
79
79
|
import "./prompt-style-BIUEnMtC.js";
|
|
80
80
|
import "./pairing-labels-B7_jbF5v.js";
|
|
81
|
-
import "./channel-web-
|
|
81
|
+
import "./channel-web-DbNWyl5A.js";
|
|
82
82
|
import "./session-hc0hDQYL.js";
|
|
83
83
|
import "./login-BbMB3BzF.js";
|
|
84
84
|
import { t as formatDocsLink } from "./links-CbtTPpO-.js";
|
|
@@ -93,10 +93,10 @@ import "./agents.config-DI_legXV.js";
|
|
|
93
93
|
import "./enable-BcaABFtl.js";
|
|
94
94
|
import "./npm-registry-spec-C2TAexSi.js";
|
|
95
95
|
import "./installs-CiAw6p1s.js";
|
|
96
|
-
import "./onboard-channels-
|
|
96
|
+
import "./onboard-channels-DReWe-Pi.js";
|
|
97
97
|
import { t as collectOption } from "./helpers-bQ13GLov.js";
|
|
98
98
|
import "./logging-DVnniiH5.js";
|
|
99
|
-
import { a as agentsAddCommand, c as agentsUnbindCommand, i as agentsDeleteCommand, n as agentsListCommand, o as agentsBindCommand, r as agentsSetIdentityCommand, s as agentsBindingsCommand } from "./agents-
|
|
99
|
+
import { a as agentsAddCommand, c as agentsUnbindCommand, i as agentsDeleteCommand, n as agentsListCommand, o as agentsBindCommand, r as agentsSetIdentityCommand, s as agentsBindingsCommand } from "./agents-Eg0_nSnn.js";
|
|
100
100
|
|
|
101
101
|
//#region src/commands/agent-via-gateway.ts
|
|
102
102
|
const NO_GATEWAY_TIMEOUT_MS = 2147e6;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./paths-DHuXVC00.js";
|
|
2
2
|
import { L as theme, _ as resolveUserPath, b as shortenHomePath, j as setVerbose } from "./utils-__cbkDgx.js";
|
|
3
|
-
import { T as resolveSessionKeyForRequest, k as createDefaultDeps, w as agentCommand } from "./reply-
|
|
3
|
+
import { T as resolveSessionKeyForRequest, k as createDefaultDeps, w as agentCommand } from "./reply-Ccq9RRYF.js";
|
|
4
4
|
import "./subsystem-YtLxC9Jh.js";
|
|
5
5
|
import { i as defaultRuntime } from "./ansi-DtaiOnt1.js";
|
|
6
6
|
import { m as DEFAULT_ACCOUNT_ID, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-DUewR3Vl.js";
|
|
7
7
|
import { a as resolveAgentDir, d as resolveDefaultAgentId, l as resolveAgentWorkspaceDir, n as listAgentIds, t as listAgentEntries, u as resolveAgentWorkspaceDirOrNull } from "./agent-scope-CqLq7cFg.js";
|
|
8
|
-
import "./subagent-registry-
|
|
8
|
+
import "./subagent-registry-DljM1oxO.js";
|
|
9
9
|
import { c as moveToTrash, i as ensureWorkspaceAndSessions } from "./onboard-helpers-D2nzz93W.js";
|
|
10
10
|
import { c as normalizeMessageChannel, f as GATEWAY_CLIENT_MODES, p as GATEWAY_CLIENT_NAMES } from "./message-channel-Byxx9SGy.js";
|
|
11
11
|
import "./send-CoDb77BF.js";
|
|
@@ -26,7 +26,7 @@ import "./bindings-DeKYuXJO.js";
|
|
|
26
26
|
import { t as formatCliCommand } from "./command-format-Dntg_tnC.js";
|
|
27
27
|
import "./logging-fywhKCmE.js";
|
|
28
28
|
import "./tokens-DJrhANSO.js";
|
|
29
|
-
import "./reply-payloads-
|
|
29
|
+
import "./reply-payloads-KYLwM629.js";
|
|
30
30
|
import "./send-Bj1TUsUZ.js";
|
|
31
31
|
import "./commands-YI4OIEz0.js";
|
|
32
32
|
import "./commands-registry-BKzejEC3.js";
|
|
@@ -35,7 +35,7 @@ import "./fetch-CfIaWynF.js";
|
|
|
35
35
|
import "./channel-activity-0siRvnUT.js";
|
|
36
36
|
import "./file-lock-CCBpdPM_.js";
|
|
37
37
|
import { p as resolveSessionTranscriptsDirForAgent } from "./chat-envelope-DPKIEKwe.js";
|
|
38
|
-
import "./store-
|
|
38
|
+
import "./store-BfW5-y9S.js";
|
|
39
39
|
import "./strip-inbound-meta-aD15EKsc.js";
|
|
40
40
|
import "./session-cost-usage-BEJ7hSxb.js";
|
|
41
41
|
import { c as upsertAuthProfile } from "./auth-8CQIOfEF.js";
|
|
@@ -65,7 +65,7 @@ import "./markdown-tables-BsunnBTT.js";
|
|
|
65
65
|
import "./render-CIF_SgbA.js";
|
|
66
66
|
import "./tables-C6OJbUw4.js";
|
|
67
67
|
import "./ports-lsof-BmOgvEU5.js";
|
|
68
|
-
import "./deliver-
|
|
68
|
+
import "./deliver-Cu2kD7-u.js";
|
|
69
69
|
import "./plugin-auto-enable-onDiMat_.js";
|
|
70
70
|
import "./target-errors-B_VJlqx6.js";
|
|
71
71
|
import "./dm-policy-shared-AsIdue8Y.js";
|
|
@@ -81,7 +81,7 @@ import "./delivery-queue-BuoTsDxs.js";
|
|
|
81
81
|
import "./send-CcKbce_B.js";
|
|
82
82
|
import "./prompt-style-DMn5Aefm.js";
|
|
83
83
|
import "./pairing-labels-Cc_CF9XM.js";
|
|
84
|
-
import "./channel-web-
|
|
84
|
+
import "./channel-web-FA7MGFJO.js";
|
|
85
85
|
import "./outbound-9ghOyJ7d.js";
|
|
86
86
|
import "./session-CR2JpSYq.js";
|
|
87
87
|
import "./login-Cg1M27Hr.js";
|
|
@@ -99,7 +99,7 @@ import { i as pruneAgentConfig, n as buildAgentSummaries, r as findAgentEntryInd
|
|
|
99
99
|
import "./enable-Cj-LUzZS.js";
|
|
100
100
|
import "./npm-registry-spec-BTEIplcj.js";
|
|
101
101
|
import "./installs-CGo0VgQU.js";
|
|
102
|
-
import { r as setupChannels } from "./onboard-channels-
|
|
102
|
+
import { r as setupChannels } from "./onboard-channels-D664lpQl.js";
|
|
103
103
|
import { n as logConfigUpdated } from "./logging-Nn7PK_AX.js";
|
|
104
104
|
import path from "node:path";
|
|
105
105
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./paths-DHuXVC00.js";
|
|
2
2
|
import { L as theme } from "./utils-__cbkDgx.js";
|
|
3
|
-
import "./reply-
|
|
3
|
+
import "./reply-Ccq9RRYF.js";
|
|
4
4
|
import "./subsystem-YtLxC9Jh.js";
|
|
5
5
|
import { i as defaultRuntime } from "./ansi-DtaiOnt1.js";
|
|
6
6
|
import "./agent-scope-CqLq7cFg.js";
|
|
7
|
-
import "./subagent-registry-
|
|
7
|
+
import "./subagent-registry-DljM1oxO.js";
|
|
8
8
|
import "./onboard-helpers-D2nzz93W.js";
|
|
9
9
|
import "./message-channel-Byxx9SGy.js";
|
|
10
10
|
import "./send-CoDb77BF.js";
|
|
@@ -24,7 +24,7 @@ import "./accounts-BmUEiryJ.js";
|
|
|
24
24
|
import "./bindings-DeKYuXJO.js";
|
|
25
25
|
import "./logging-fywhKCmE.js";
|
|
26
26
|
import "./tokens-DJrhANSO.js";
|
|
27
|
-
import "./reply-payloads-
|
|
27
|
+
import "./reply-payloads-KYLwM629.js";
|
|
28
28
|
import "./send-Bj1TUsUZ.js";
|
|
29
29
|
import "./commands-YI4OIEz0.js";
|
|
30
30
|
import "./commands-registry-BKzejEC3.js";
|
|
@@ -33,7 +33,7 @@ import "./fetch-CfIaWynF.js";
|
|
|
33
33
|
import "./channel-activity-0siRvnUT.js";
|
|
34
34
|
import "./file-lock-CCBpdPM_.js";
|
|
35
35
|
import "./chat-envelope-DPKIEKwe.js";
|
|
36
|
-
import "./store-
|
|
36
|
+
import "./store-BfW5-y9S.js";
|
|
37
37
|
import "./strip-inbound-meta-aD15EKsc.js";
|
|
38
38
|
import "./session-cost-usage-BEJ7hSxb.js";
|
|
39
39
|
import "./auth-8CQIOfEF.js";
|
|
@@ -63,7 +63,7 @@ import "./markdown-tables-BsunnBTT.js";
|
|
|
63
63
|
import "./render-CIF_SgbA.js";
|
|
64
64
|
import "./tables-C6OJbUw4.js";
|
|
65
65
|
import "./ports-lsof-BmOgvEU5.js";
|
|
66
|
-
import "./deliver-
|
|
66
|
+
import "./deliver-Cu2kD7-u.js";
|
|
67
67
|
import "./plugin-auto-enable-onDiMat_.js";
|
|
68
68
|
import "./target-errors-B_VJlqx6.js";
|
|
69
69
|
import "./dm-policy-shared-AsIdue8Y.js";
|
|
@@ -79,7 +79,7 @@ import "./delivery-queue-BuoTsDxs.js";
|
|
|
79
79
|
import "./send-CcKbce_B.js";
|
|
80
80
|
import "./prompt-style-DMn5Aefm.js";
|
|
81
81
|
import "./pairing-labels-Cc_CF9XM.js";
|
|
82
|
-
import "./channel-web-
|
|
82
|
+
import "./channel-web-FA7MGFJO.js";
|
|
83
83
|
import "./outbound-9ghOyJ7d.js";
|
|
84
84
|
import "./session-CR2JpSYq.js";
|
|
85
85
|
import "./login-Cg1M27Hr.js";
|
|
@@ -95,17 +95,17 @@ import "./clack-prompter-D4hirmyk.js";
|
|
|
95
95
|
import "./enable-Cj-LUzZS.js";
|
|
96
96
|
import "./npm-registry-spec-BTEIplcj.js";
|
|
97
97
|
import "./installs-CGo0VgQU.js";
|
|
98
|
-
import "./onboard-channels-
|
|
98
|
+
import "./onboard-channels-D664lpQl.js";
|
|
99
99
|
import "./daemon-install-helpers-DQ7ClZ2P.js";
|
|
100
100
|
import "./systemd-CjEIrIJR.js";
|
|
101
101
|
import "./service-DDkOQ7FJ.js";
|
|
102
102
|
import "./widearea-dns-nmovbrpN.js";
|
|
103
103
|
import "./bonjour-discovery-Cuvc_vec.js";
|
|
104
|
-
import "./health-
|
|
104
|
+
import "./health-6NZ23ZCc.js";
|
|
105
105
|
import "./control-ui-assets-DOwMM2s0.js";
|
|
106
106
|
import "./cleanup-utils-9SdJBDuf.js";
|
|
107
107
|
import "./logging-Nn7PK_AX.js";
|
|
108
|
-
import { n as configureCommandFromSectionsArg, r as CONFIGURE_WIZARD_SECTIONS } from "./configure-
|
|
108
|
+
import { n as configureCommandFromSectionsArg, r as CONFIGURE_WIZARD_SECTIONS } from "./configure-Dh-yP8hn.js";
|
|
109
109
|
import "./systemd-linger-BvLQCEYJ.js";
|
|
110
110
|
import "./ipv4-DpbVkoWQ.js";
|
|
111
111
|
import "./health-format-NUftNz4s.js";
|