botmux 3.18.6 → 3.18.7
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/.runtime-build-id +1 -1
- package/dist/adapters/backend/riff-backend.d.ts +158 -0
- package/dist/adapters/backend/riff-backend.d.ts.map +1 -1
- package/dist/adapters/backend/riff-backend.js +330 -7
- package/dist/adapters/backend/riff-backend.js.map +1 -1
- package/dist/adapters/backend/sandbox.d.ts +42 -0
- package/dist/adapters/backend/sandbox.d.ts.map +1 -1
- package/dist/adapters/backend/sandbox.js +95 -5
- package/dist/adapters/backend/sandbox.js.map +1 -1
- package/dist/adapters/cli/codex-app.d.ts.map +1 -1
- package/dist/adapters/cli/codex-app.js +2 -1
- package/dist/adapters/cli/codex-app.js.map +1 -1
- package/dist/adapters/cli/dsh.d.ts.map +1 -1
- package/dist/adapters/cli/dsh.js +2 -1
- package/dist/adapters/cli/dsh.js.map +1 -1
- package/dist/adapters/cli/mir.d.ts.map +1 -1
- package/dist/adapters/cli/mir.js +2 -1
- package/dist/adapters/cli/mir.js.map +1 -1
- package/dist/adapters/cli/mira.d.ts.map +1 -1
- package/dist/adapters/cli/mira.js +2 -1
- package/dist/adapters/cli/mira.js.map +1 -1
- package/dist/adapters/hook-command.d.ts +3 -5
- package/dist/adapters/hook-command.d.ts.map +1 -1
- package/dist/adapters/hook-command.js +59 -13
- package/dist/adapters/hook-command.js.map +1 -1
- package/dist/autostart.d.ts +76 -0
- package/dist/autostart.d.ts.map +1 -1
- package/dist/autostart.js +105 -28
- package/dist/autostart.js.map +1 -1
- package/dist/bot-registry.d.ts +12 -0
- package/dist/bot-registry.d.ts.map +1 -1
- package/dist/bot-registry.js +43 -3
- package/dist/bot-registry.js.map +1 -1
- package/dist/cli/dashboard-command.d.ts +142 -0
- package/dist/cli/dashboard-command.d.ts.map +1 -1
- package/dist/cli/dashboard-command.js +160 -0
- package/dist/cli/dashboard-command.js.map +1 -1
- package/dist/cli/dashboard-endpoint.d.ts +66 -0
- package/dist/cli/dashboard-endpoint.d.ts.map +1 -1
- package/dist/cli/dashboard-endpoint.js +144 -30
- package/dist/cli/dashboard-endpoint.js.map +1 -1
- package/dist/cli/send-dispatch.d.ts +2 -0
- package/dist/cli/send-dispatch.d.ts.map +1 -1
- package/dist/cli/send-dispatch.js +8 -2
- package/dist/cli/send-dispatch.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +270 -38
- package/dist/cli.js.map +1 -1
- package/dist/core/binary-self-update.d.ts +7 -0
- package/dist/core/binary-self-update.d.ts.map +1 -1
- package/dist/core/binary-self-update.js +17 -0
- package/dist/core/binary-self-update.js.map +1 -1
- package/dist/core/command-handler.d.ts.map +1 -1
- package/dist/core/command-handler.js +52 -1
- package/dist/core/command-handler.js.map +1 -1
- package/dist/core/cost-calculator.d.ts +9 -1
- package/dist/core/cost-calculator.d.ts.map +1 -1
- package/dist/core/cost-calculator.js +5 -0
- package/dist/core/cost-calculator.js.map +1 -1
- package/dist/core/passthrough-commands.d.ts.map +1 -1
- package/dist/core/passthrough-commands.js +1 -1
- package/dist/core/passthrough-commands.js.map +1 -1
- package/dist/core/self-spawn.d.ts +46 -1
- package/dist/core/self-spawn.d.ts.map +1 -1
- package/dist/core/self-spawn.js +57 -0
- package/dist/core/self-spawn.js.map +1 -1
- package/dist/core/worker-pool.d.ts.map +1 -1
- package/dist/core/worker-pool.js +81 -5
- package/dist/core/worker-pool.js.map +1 -1
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +93 -0
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard/autostart-api.d.ts.map +1 -1
- package/dist/dashboard/autostart-api.js +16 -3
- package/dist/dashboard/autostart-api.js.map +1 -1
- package/dist/dashboard/bot-onboarding.d.ts +2 -1
- package/dist/dashboard/bot-onboarding.d.ts.map +1 -1
- package/dist/dashboard/bot-onboarding.js +22 -6
- package/dist/dashboard/bot-onboarding.js.map +1 -1
- package/dist/dashboard/bot-payload.d.ts +1 -0
- package/dist/dashboard/bot-payload.d.ts.map +1 -1
- package/dist/dashboard/bot-payload.js +3 -0
- package/dist/dashboard/bot-payload.js.map +1 -1
- package/dist/dashboard/connector-api.d.ts.map +1 -1
- package/dist/dashboard/connector-api.js +28 -0
- package/dist/dashboard/connector-api.js.map +1 -1
- package/dist/dashboard/trigger-api.d.ts.map +1 -1
- package/dist/dashboard/trigger-api.js +33 -21
- package/dist/dashboard/trigger-api.js.map +1 -1
- package/dist/dashboard/web/bot-defaults-page.d.ts.map +1 -1
- package/dist/dashboard/web/bot-defaults-page.js +12 -2
- package/dist/dashboard/web/bot-defaults-page.js.map +1 -1
- package/dist/dashboard/web/bot-defaults.d.ts +2 -0
- package/dist/dashboard/web/bot-defaults.d.ts.map +1 -1
- package/dist/dashboard/web/bot-defaults.js.map +1 -1
- package/dist/dashboard/web/bot-onboarding.d.ts +40 -1
- package/dist/dashboard/web/bot-onboarding.d.ts.map +1 -1
- package/dist/dashboard/web/bot-onboarding.js +52 -2
- package/dist/dashboard/web/bot-onboarding.js.map +1 -1
- package/dist/dashboard/web/i18n.d.ts.map +1 -1
- package/dist/dashboard/web/i18n.js +2 -0
- package/dist/dashboard/web/i18n.js.map +1 -1
- package/dist/dashboard/webhook-routes.d.ts.map +1 -1
- package/dist/dashboard/webhook-routes.js +272 -30
- package/dist/dashboard/webhook-routes.js.map +1 -1
- package/dist/dashboard-web/app.js +1 -1
- package/dist/dashboard-web/chunks/{agent-workbench-dock-page-XHJUYFGN.js → agent-workbench-dock-page-6LC422N6.js} +1 -1
- package/dist/dashboard-web/chunks/{agent-workbench-page-FLKTLIRM.js → agent-workbench-page-RSAWY7O2.js} +1 -1
- package/dist/dashboard-web/chunks/{bot-defaults-page-XMGLZZ2E.js → bot-defaults-page-67RAWCSQ.js} +1 -1
- package/dist/dashboard-web/chunks/{chunk-TLG45URB.js → chunk-IA5KMD5O.js} +1 -1
- package/dist/dashboard-web/chunks/{chunk-BU3Q6XC6.js → chunk-K232GT3M.js} +2 -2
- package/dist/dashboard-web/chunks/chunk-MMLTCXHP.js +10 -0
- package/dist/dashboard-web/chunks/{chunk-ECFC7UG2.js → chunk-R3LJUCEO.js} +1 -1
- package/dist/dashboard-web/chunks/{chunk-Z67OSM5P.js → chunk-YJA3KY3J.js} +1 -1
- package/dist/dashboard-web/chunks/{connectors-page-WDM4CEAU.js → connectors-page-DJCTHSFB.js} +1 -1
- package/dist/dashboard-web/chunks/{feedback-page-GMJ4FLJ4.js → feedback-page-O7SZRKNM.js} +1 -1
- package/dist/dashboard-web/chunks/{groups-page-L4ZJNWVR.js → groups-page-7PONUYHE.js} +1 -1
- package/dist/dashboard-web/chunks/{insights-page-7LUJU2CX.js → insights-page-J6DAAJ6D.js} +1 -1
- package/dist/dashboard-web/chunks/{monitor-room-7LZUJQPF.js → monitor-room-F3QNEW7N.js} +1 -1
- package/dist/dashboard-web/chunks/{monitoring-page-AUSXMPYO.js → monitoring-page-JHDD2VS2.js} +1 -1
- package/dist/dashboard-web/chunks/{office-page-6ZU6MAZN.js → office-page-MMTN4IKD.js} +1 -1
- package/dist/dashboard-web/chunks/{overview-page-QBC5CIYH.js → overview-page-IQ2UJAJP.js} +1 -1
- package/dist/dashboard-web/chunks/{roles-page-QO3YCA7D.js → roles-page-FNI4MGX6.js} +1 -1
- package/dist/dashboard-web/chunks/{schedules-page-YNGSKDQW.js → schedules-page-6PUU63KS.js} +1 -1
- package/dist/dashboard-web/chunks/{sessions-page-BWR4UB6X.js → sessions-page-O4N72EXT.js} +4 -4
- package/dist/dashboard-web/chunks/{settings-page-2IRIS3FP.js → settings-page-G7B3STUF.js} +1 -1
- package/dist/dashboard-web/chunks/{skills-page-5RZPM6HJ.js → skills-page-CEWKQOIG.js} +1 -1
- package/dist/dashboard-web/chunks/{team-federation-page-KERG6LKC.js → team-federation-page-NUP4VK4H.js} +1 -1
- package/dist/dashboard-web/chunks/{v3-page-766CBD7H.js → v3-page-M4XF6D5Z.js} +1 -1
- package/dist/dashboard-web/chunks/{whiteboards-page-2M6XZD5C.js → whiteboards-page-L755NZX6.js} +1 -1
- package/dist/dashboard-web/style.css +13 -0
- package/dist/dashboard.js +3 -0
- package/dist/dashboard.js.map +1 -1
- package/dist/global-config.d.ts +3 -0
- package/dist/global-config.d.ts.map +1 -1
- package/dist/global-config.js +10 -3
- package/dist/global-config.js.map +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +19 -1
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/zh.d.ts.map +1 -1
- package/dist/i18n/zh.js +19 -1
- package/dist/i18n/zh.js.map +1 -1
- package/dist/im/lark/api-gate.d.ts +53 -0
- package/dist/im/lark/api-gate.d.ts.map +1 -0
- package/dist/im/lark/api-gate.js +322 -0
- package/dist/im/lark/api-gate.js.map +1 -0
- package/dist/im/lark/audio-transcribe.d.ts +23 -0
- package/dist/im/lark/audio-transcribe.d.ts.map +1 -0
- package/dist/im/lark/audio-transcribe.js +126 -0
- package/dist/im/lark/audio-transcribe.js.map +1 -0
- package/dist/im/lark/card-builder.d.ts +6 -0
- package/dist/im/lark/card-builder.d.ts.map +1 -1
- package/dist/im/lark/card-builder.js +53 -1
- package/dist/im/lark/card-builder.js.map +1 -1
- package/dist/im/lark/card-handler.d.ts +10 -0
- package/dist/im/lark/card-handler.d.ts.map +1 -1
- package/dist/im/lark/card-handler.js +68 -1
- package/dist/im/lark/card-handler.js.map +1 -1
- package/dist/im/lark/client.d.ts.map +1 -1
- package/dist/im/lark/client.js +247 -224
- package/dist/im/lark/client.js.map +1 -1
- package/dist/im/lark/event-dispatcher.d.ts.map +1 -1
- package/dist/im/lark/event-dispatcher.js +34 -3
- package/dist/im/lark/event-dispatcher.js.map +1 -1
- package/dist/im/lark/message-parser.d.ts +16 -0
- package/dist/im/lark/message-parser.d.ts.map +1 -1
- package/dist/im/lark/message-parser.js +31 -0
- package/dist/im/lark/message-parser.js.map +1 -1
- package/dist/services/budget-tracker.d.ts +61 -0
- package/dist/services/budget-tracker.d.ts.map +1 -0
- package/dist/services/budget-tracker.js +306 -0
- package/dist/services/budget-tracker.js.map +1 -0
- package/dist/services/connector-store.d.ts +16 -0
- package/dist/services/connector-store.d.ts.map +1 -1
- package/dist/services/connector-store.js.map +1 -1
- package/dist/services/failed-turn-retry.d.ts +43 -0
- package/dist/services/failed-turn-retry.d.ts.map +1 -0
- package/dist/services/failed-turn-retry.js +50 -0
- package/dist/services/failed-turn-retry.js.map +1 -0
- package/dist/services/model-pricing.d.ts +80 -0
- package/dist/services/model-pricing.d.ts.map +1 -0
- package/dist/services/model-pricing.js +182 -0
- package/dist/services/model-pricing.js.map +1 -0
- package/dist/services/session-store.d.ts.map +1 -1
- package/dist/services/session-store.js +13 -3
- package/dist/services/session-store.js.map +1 -1
- package/dist/services/trigger-types.d.ts +10 -0
- package/dist/services/trigger-types.d.ts.map +1 -1
- package/dist/services/trigger-types.js.map +1 -1
- package/dist/services/usage-ledger.d.ts +10 -0
- package/dist/services/usage-ledger.d.ts.map +1 -1
- package/dist/services/usage-ledger.js +36 -0
- package/dist/services/usage-ledger.js.map +1 -1
- package/dist/services/voice/asr.d.ts +17 -0
- package/dist/services/voice/asr.d.ts.map +1 -0
- package/dist/services/voice/asr.js +64 -0
- package/dist/services/voice/asr.js.map +1 -0
- package/dist/services/voice/index.d.ts +17 -2
- package/dist/services/voice/index.d.ts.map +1 -1
- package/dist/services/voice/index.js +43 -0
- package/dist/services/voice/index.js.map +1 -1
- package/dist/services/voice/types.d.ts +15 -0
- package/dist/services/voice/types.d.ts.map +1 -1
- package/dist/services/webhook-idempotency.d.ts +134 -0
- package/dist/services/webhook-idempotency.d.ts.map +1 -0
- package/dist/services/webhook-idempotency.js +265 -0
- package/dist/services/webhook-idempotency.js.map +1 -0
- package/dist/setup/app-name.d.ts +1 -0
- package/dist/setup/app-name.d.ts.map +1 -1
- package/dist/setup/app-name.js +7 -0
- package/dist/setup/app-name.js.map +1 -1
- package/dist/setup/bot-config-editor.d.ts +28 -0
- package/dist/setup/bot-config-editor.d.ts.map +1 -1
- package/dist/setup/bot-config-editor.js +73 -0
- package/dist/setup/bot-config-editor.js.map +1 -1
- package/dist/setup/open-platform-automation.d.ts +26 -0
- package/dist/setup/open-platform-automation.d.ts.map +1 -1
- package/dist/setup/open-platform-automation.js +90 -1
- package/dist/setup/open-platform-automation.js.map +1 -1
- package/dist/setup/open-platform-outcome.d.ts.map +1 -1
- package/dist/setup/open-platform-outcome.js +8 -2
- package/dist/setup/open-platform-outcome.js.map +1 -1
- package/dist/types.d.ts +20 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/usage-limit-tracker.d.ts +29 -9
- package/dist/utils/usage-limit-tracker.d.ts.map +1 -1
- package/dist/utils/usage-limit-tracker.js +122 -14
- package/dist/utils/usage-limit-tracker.js.map +1 -1
- package/dist/worker.js +27 -6
- package/dist/worker.js.map +1 -1
- package/dist/workflows/definition.d.ts +56 -56
- package/dist/workflows/events/payloads.d.ts +2 -2
- package/dist/workflows/events/schema.d.ts +430 -430
- package/dist/workflows/migration/v2-run-archive-schema.d.ts +2 -2
- package/dist/workflows/v3/run-envelope.d.ts +56 -56
- package/package.json +9 -8
- package/scripts/postinstall-bin.mjs +25 -0
- package/dist/dashboard-web/chunks/chunk-NJCJR3U2.js +0 -10
|
@@ -865,8 +865,8 @@ export declare const V2RunArchiveManifestSchema: z.ZodObject<{
|
|
|
865
865
|
bytes: number;
|
|
866
866
|
}[];
|
|
867
867
|
};
|
|
868
|
-
createdAt: string;
|
|
869
868
|
schemaVersion: 1;
|
|
869
|
+
createdAt: string;
|
|
870
870
|
archiveId: string;
|
|
871
871
|
sourceRunsDir: string;
|
|
872
872
|
containsSensitiveData: true;
|
|
@@ -920,8 +920,8 @@ export declare const V2RunArchiveManifestSchema: z.ZodObject<{
|
|
|
920
920
|
bytes: number;
|
|
921
921
|
}[];
|
|
922
922
|
};
|
|
923
|
-
createdAt: string;
|
|
924
923
|
schemaVersion: 1;
|
|
924
|
+
createdAt: string;
|
|
925
925
|
archiveId: string;
|
|
926
926
|
sourceRunsDir: string;
|
|
927
927
|
containsSensitiveData: true;
|
|
@@ -128,24 +128,22 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
128
128
|
larkAppId: string;
|
|
129
129
|
chatId: string;
|
|
130
130
|
sessionId?: string | undefined;
|
|
131
|
-
ownerOpenId?: string | undefined;
|
|
132
131
|
rootMessageId?: string | undefined;
|
|
133
132
|
chatType?: "group" | "p2p" | undefined;
|
|
133
|
+
ownerOpenId?: string | undefined;
|
|
134
134
|
}, {
|
|
135
135
|
larkAppId: string;
|
|
136
136
|
chatId: string;
|
|
137
137
|
sessionId?: string | undefined;
|
|
138
|
-
ownerOpenId?: string | undefined;
|
|
139
138
|
rootMessageId?: string | undefined;
|
|
140
139
|
chatType?: "group" | "p2p" | undefined;
|
|
140
|
+
ownerOpenId?: string | undefined;
|
|
141
141
|
}>>;
|
|
142
142
|
}, "strict", z.ZodTypeAny, {
|
|
143
143
|
source: {
|
|
144
144
|
kind: "ad_hoc";
|
|
145
145
|
grillStatePath: "grill.state.json";
|
|
146
146
|
};
|
|
147
|
-
engine: "workflow-v3";
|
|
148
|
-
createdAt: string;
|
|
149
147
|
authorization: {
|
|
150
148
|
kind: "gate2";
|
|
151
149
|
authorizedAt: string;
|
|
@@ -155,6 +153,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
155
153
|
};
|
|
156
154
|
schemaVersion: 1;
|
|
157
155
|
runId: string;
|
|
156
|
+
createdAt: string;
|
|
157
|
+
engine: "workflow-v3";
|
|
158
158
|
artifacts: {
|
|
159
159
|
spec: {
|
|
160
160
|
sha256: `sha256:${string}`;
|
|
@@ -173,17 +173,15 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
173
173
|
larkAppId: string;
|
|
174
174
|
chatId: string;
|
|
175
175
|
sessionId?: string | undefined;
|
|
176
|
-
ownerOpenId?: string | undefined;
|
|
177
176
|
rootMessageId?: string | undefined;
|
|
178
177
|
chatType?: "group" | "p2p" | undefined;
|
|
178
|
+
ownerOpenId?: string | undefined;
|
|
179
179
|
} | undefined;
|
|
180
180
|
}, {
|
|
181
181
|
source: {
|
|
182
182
|
kind: "ad_hoc";
|
|
183
183
|
grillStatePath: "grill.state.json";
|
|
184
184
|
};
|
|
185
|
-
engine: "workflow-v3";
|
|
186
|
-
createdAt: string;
|
|
187
185
|
authorization: {
|
|
188
186
|
kind: "gate2";
|
|
189
187
|
authorizedAt: string;
|
|
@@ -193,6 +191,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
193
191
|
};
|
|
194
192
|
schemaVersion: 1;
|
|
195
193
|
runId: string;
|
|
194
|
+
createdAt: string;
|
|
195
|
+
engine: "workflow-v3";
|
|
196
196
|
artifacts: {
|
|
197
197
|
spec: {
|
|
198
198
|
sha256: string;
|
|
@@ -211,9 +211,9 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
211
211
|
larkAppId: string;
|
|
212
212
|
chatId: string;
|
|
213
213
|
sessionId?: string | undefined;
|
|
214
|
-
ownerOpenId?: string | undefined;
|
|
215
214
|
rootMessageId?: string | undefined;
|
|
216
215
|
chatType?: "group" | "p2p" | undefined;
|
|
216
|
+
ownerOpenId?: string | undefined;
|
|
217
217
|
} | undefined;
|
|
218
218
|
}>, z.ZodObject<{
|
|
219
219
|
source: z.ZodObject<{
|
|
@@ -366,16 +366,16 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
366
366
|
larkAppId: string;
|
|
367
367
|
chatId: string;
|
|
368
368
|
sessionId?: string | undefined;
|
|
369
|
-
ownerOpenId?: string | undefined;
|
|
370
369
|
rootMessageId?: string | undefined;
|
|
371
370
|
chatType?: "group" | "p2p" | undefined;
|
|
371
|
+
ownerOpenId?: string | undefined;
|
|
372
372
|
}, {
|
|
373
373
|
larkAppId: string;
|
|
374
374
|
chatId: string;
|
|
375
375
|
sessionId?: string | undefined;
|
|
376
|
-
ownerOpenId?: string | undefined;
|
|
377
376
|
rootMessageId?: string | undefined;
|
|
378
377
|
chatType?: "group" | "p2p" | undefined;
|
|
378
|
+
ownerOpenId?: string | undefined;
|
|
379
379
|
}>>;
|
|
380
380
|
}, "strict", z.ZodTypeAny, {
|
|
381
381
|
source: {
|
|
@@ -384,8 +384,6 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
384
384
|
revisionId: string;
|
|
385
385
|
humanVersion: number;
|
|
386
386
|
};
|
|
387
|
-
engine: "workflow-v3";
|
|
388
|
-
createdAt: string;
|
|
389
387
|
authorization: {
|
|
390
388
|
kind: "published_revision";
|
|
391
389
|
authorizedAt: string;
|
|
@@ -397,6 +395,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
397
395
|
};
|
|
398
396
|
schemaVersion: 1;
|
|
399
397
|
runId: string;
|
|
398
|
+
createdAt: string;
|
|
399
|
+
engine: "workflow-v3";
|
|
400
400
|
artifacts: {
|
|
401
401
|
spec: {
|
|
402
402
|
sha256: `sha256:${string}`;
|
|
@@ -423,9 +423,9 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
423
423
|
larkAppId: string;
|
|
424
424
|
chatId: string;
|
|
425
425
|
sessionId?: string | undefined;
|
|
426
|
-
ownerOpenId?: string | undefined;
|
|
427
426
|
rootMessageId?: string | undefined;
|
|
428
427
|
chatType?: "group" | "p2p" | undefined;
|
|
428
|
+
ownerOpenId?: string | undefined;
|
|
429
429
|
} | undefined;
|
|
430
430
|
}, {
|
|
431
431
|
source: {
|
|
@@ -434,8 +434,6 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
434
434
|
revisionId: string;
|
|
435
435
|
humanVersion: number;
|
|
436
436
|
};
|
|
437
|
-
engine: "workflow-v3";
|
|
438
|
-
createdAt: string;
|
|
439
437
|
authorization: {
|
|
440
438
|
kind: "published_revision";
|
|
441
439
|
authorizedAt: string;
|
|
@@ -447,6 +445,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
447
445
|
};
|
|
448
446
|
schemaVersion: 1;
|
|
449
447
|
runId: string;
|
|
448
|
+
createdAt: string;
|
|
449
|
+
engine: "workflow-v3";
|
|
450
450
|
artifacts: {
|
|
451
451
|
spec: {
|
|
452
452
|
sha256: string;
|
|
@@ -473,9 +473,9 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
473
473
|
larkAppId: string;
|
|
474
474
|
chatId: string;
|
|
475
475
|
sessionId?: string | undefined;
|
|
476
|
-
ownerOpenId?: string | undefined;
|
|
477
476
|
rootMessageId?: string | undefined;
|
|
478
477
|
chatType?: "group" | "p2p" | undefined;
|
|
478
|
+
ownerOpenId?: string | undefined;
|
|
479
479
|
} | undefined;
|
|
480
480
|
}>, z.ZodObject<{
|
|
481
481
|
source: z.ZodObject<{
|
|
@@ -575,23 +575,21 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
575
575
|
larkAppId: string;
|
|
576
576
|
chatId: string;
|
|
577
577
|
sessionId?: string | undefined;
|
|
578
|
-
ownerOpenId?: string | undefined;
|
|
579
578
|
rootMessageId?: string | undefined;
|
|
580
579
|
chatType?: "group" | "p2p" | undefined;
|
|
580
|
+
ownerOpenId?: string | undefined;
|
|
581
581
|
}, {
|
|
582
582
|
larkAppId: string;
|
|
583
583
|
chatId: string;
|
|
584
584
|
sessionId?: string | undefined;
|
|
585
|
-
ownerOpenId?: string | undefined;
|
|
586
585
|
rootMessageId?: string | undefined;
|
|
587
586
|
chatType?: "group" | "p2p" | undefined;
|
|
587
|
+
ownerOpenId?: string | undefined;
|
|
588
588
|
}>>;
|
|
589
589
|
}, "strict", z.ZodTypeAny, {
|
|
590
590
|
source: {
|
|
591
591
|
kind: "manual_cli";
|
|
592
592
|
};
|
|
593
|
-
engine: "workflow-v3";
|
|
594
|
-
createdAt: string;
|
|
595
593
|
authorization: {
|
|
596
594
|
kind: "local_cli";
|
|
597
595
|
authorizedAt: string;
|
|
@@ -600,6 +598,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
600
598
|
};
|
|
601
599
|
schemaVersion: 1;
|
|
602
600
|
runId: string;
|
|
601
|
+
createdAt: string;
|
|
602
|
+
engine: "workflow-v3";
|
|
603
603
|
artifacts: {
|
|
604
604
|
dag: {
|
|
605
605
|
sha256: `sha256:${string}`;
|
|
@@ -618,16 +618,14 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
618
618
|
larkAppId: string;
|
|
619
619
|
chatId: string;
|
|
620
620
|
sessionId?: string | undefined;
|
|
621
|
-
ownerOpenId?: string | undefined;
|
|
622
621
|
rootMessageId?: string | undefined;
|
|
623
622
|
chatType?: "group" | "p2p" | undefined;
|
|
623
|
+
ownerOpenId?: string | undefined;
|
|
624
624
|
} | undefined;
|
|
625
625
|
}, {
|
|
626
626
|
source: {
|
|
627
627
|
kind: "manual_cli";
|
|
628
628
|
};
|
|
629
|
-
engine: "workflow-v3";
|
|
630
|
-
createdAt: string;
|
|
631
629
|
authorization: {
|
|
632
630
|
kind: "local_cli";
|
|
633
631
|
authorizedAt: string;
|
|
@@ -636,6 +634,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
636
634
|
};
|
|
637
635
|
schemaVersion: 1;
|
|
638
636
|
runId: string;
|
|
637
|
+
createdAt: string;
|
|
638
|
+
engine: "workflow-v3";
|
|
639
639
|
artifacts: {
|
|
640
640
|
dag: {
|
|
641
641
|
sha256: string;
|
|
@@ -654,9 +654,9 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
654
654
|
larkAppId: string;
|
|
655
655
|
chatId: string;
|
|
656
656
|
sessionId?: string | undefined;
|
|
657
|
-
ownerOpenId?: string | undefined;
|
|
658
657
|
rootMessageId?: string | undefined;
|
|
659
658
|
chatType?: "group" | "p2p" | undefined;
|
|
659
|
+
ownerOpenId?: string | undefined;
|
|
660
660
|
} | undefined;
|
|
661
661
|
}>, z.ZodObject<{
|
|
662
662
|
source: z.ZodObject<{
|
|
@@ -764,24 +764,22 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
764
764
|
larkAppId: string;
|
|
765
765
|
chatId: string;
|
|
766
766
|
sessionId?: string | undefined;
|
|
767
|
-
ownerOpenId?: string | undefined;
|
|
768
767
|
rootMessageId?: string | undefined;
|
|
769
768
|
chatType?: "group" | "p2p" | undefined;
|
|
769
|
+
ownerOpenId?: string | undefined;
|
|
770
770
|
}, {
|
|
771
771
|
larkAppId: string;
|
|
772
772
|
chatId: string;
|
|
773
773
|
sessionId?: string | undefined;
|
|
774
|
-
ownerOpenId?: string | undefined;
|
|
775
774
|
rootMessageId?: string | undefined;
|
|
776
775
|
chatType?: "group" | "p2p" | undefined;
|
|
776
|
+
ownerOpenId?: string | undefined;
|
|
777
777
|
}>>;
|
|
778
778
|
}, "strict", z.ZodTypeAny, {
|
|
779
779
|
source: {
|
|
780
780
|
kind: "legacy_v3";
|
|
781
781
|
original: "manual_cli" | "grill";
|
|
782
782
|
};
|
|
783
|
-
engine: "workflow-v3";
|
|
784
|
-
createdAt: string;
|
|
785
783
|
authorization: {
|
|
786
784
|
kind: "legacy_backfill";
|
|
787
785
|
dagSha256: `sha256:${string}`;
|
|
@@ -792,6 +790,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
792
790
|
};
|
|
793
791
|
schemaVersion: 1;
|
|
794
792
|
runId: string;
|
|
793
|
+
createdAt: string;
|
|
794
|
+
engine: "workflow-v3";
|
|
795
795
|
artifacts: {
|
|
796
796
|
dag: {
|
|
797
797
|
sha256: `sha256:${string}`;
|
|
@@ -810,17 +810,15 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
810
810
|
larkAppId: string;
|
|
811
811
|
chatId: string;
|
|
812
812
|
sessionId?: string | undefined;
|
|
813
|
-
ownerOpenId?: string | undefined;
|
|
814
813
|
rootMessageId?: string | undefined;
|
|
815
814
|
chatType?: "group" | "p2p" | undefined;
|
|
815
|
+
ownerOpenId?: string | undefined;
|
|
816
816
|
} | undefined;
|
|
817
817
|
}, {
|
|
818
818
|
source: {
|
|
819
819
|
kind: "legacy_v3";
|
|
820
820
|
original: "manual_cli" | "grill";
|
|
821
821
|
};
|
|
822
|
-
engine: "workflow-v3";
|
|
823
|
-
createdAt: string;
|
|
824
822
|
authorization: {
|
|
825
823
|
kind: "legacy_backfill";
|
|
826
824
|
dagSha256: string;
|
|
@@ -831,6 +829,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
831
829
|
};
|
|
832
830
|
schemaVersion: 1;
|
|
833
831
|
runId: string;
|
|
832
|
+
createdAt: string;
|
|
833
|
+
engine: "workflow-v3";
|
|
834
834
|
artifacts: {
|
|
835
835
|
dag: {
|
|
836
836
|
sha256: string;
|
|
@@ -849,17 +849,15 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
849
849
|
larkAppId: string;
|
|
850
850
|
chatId: string;
|
|
851
851
|
sessionId?: string | undefined;
|
|
852
|
-
ownerOpenId?: string | undefined;
|
|
853
852
|
rootMessageId?: string | undefined;
|
|
854
853
|
chatType?: "group" | "p2p" | undefined;
|
|
854
|
+
ownerOpenId?: string | undefined;
|
|
855
855
|
} | undefined;
|
|
856
856
|
}>]>, {
|
|
857
857
|
source: {
|
|
858
858
|
kind: "ad_hoc";
|
|
859
859
|
grillStatePath: "grill.state.json";
|
|
860
860
|
};
|
|
861
|
-
engine: "workflow-v3";
|
|
862
|
-
createdAt: string;
|
|
863
861
|
authorization: {
|
|
864
862
|
kind: "gate2";
|
|
865
863
|
authorizedAt: string;
|
|
@@ -869,6 +867,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
869
867
|
};
|
|
870
868
|
schemaVersion: 1;
|
|
871
869
|
runId: string;
|
|
870
|
+
createdAt: string;
|
|
871
|
+
engine: "workflow-v3";
|
|
872
872
|
artifacts: {
|
|
873
873
|
spec: {
|
|
874
874
|
sha256: `sha256:${string}`;
|
|
@@ -887,9 +887,9 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
887
887
|
larkAppId: string;
|
|
888
888
|
chatId: string;
|
|
889
889
|
sessionId?: string | undefined;
|
|
890
|
-
ownerOpenId?: string | undefined;
|
|
891
890
|
rootMessageId?: string | undefined;
|
|
892
891
|
chatType?: "group" | "p2p" | undefined;
|
|
892
|
+
ownerOpenId?: string | undefined;
|
|
893
893
|
} | undefined;
|
|
894
894
|
} | {
|
|
895
895
|
source: {
|
|
@@ -898,8 +898,6 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
898
898
|
revisionId: string;
|
|
899
899
|
humanVersion: number;
|
|
900
900
|
};
|
|
901
|
-
engine: "workflow-v3";
|
|
902
|
-
createdAt: string;
|
|
903
901
|
authorization: {
|
|
904
902
|
kind: "published_revision";
|
|
905
903
|
authorizedAt: string;
|
|
@@ -911,6 +909,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
911
909
|
};
|
|
912
910
|
schemaVersion: 1;
|
|
913
911
|
runId: string;
|
|
912
|
+
createdAt: string;
|
|
913
|
+
engine: "workflow-v3";
|
|
914
914
|
artifacts: {
|
|
915
915
|
spec: {
|
|
916
916
|
sha256: `sha256:${string}`;
|
|
@@ -937,16 +937,14 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
937
937
|
larkAppId: string;
|
|
938
938
|
chatId: string;
|
|
939
939
|
sessionId?: string | undefined;
|
|
940
|
-
ownerOpenId?: string | undefined;
|
|
941
940
|
rootMessageId?: string | undefined;
|
|
942
941
|
chatType?: "group" | "p2p" | undefined;
|
|
942
|
+
ownerOpenId?: string | undefined;
|
|
943
943
|
} | undefined;
|
|
944
944
|
} | {
|
|
945
945
|
source: {
|
|
946
946
|
kind: "manual_cli";
|
|
947
947
|
};
|
|
948
|
-
engine: "workflow-v3";
|
|
949
|
-
createdAt: string;
|
|
950
948
|
authorization: {
|
|
951
949
|
kind: "local_cli";
|
|
952
950
|
authorizedAt: string;
|
|
@@ -955,6 +953,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
955
953
|
};
|
|
956
954
|
schemaVersion: 1;
|
|
957
955
|
runId: string;
|
|
956
|
+
createdAt: string;
|
|
957
|
+
engine: "workflow-v3";
|
|
958
958
|
artifacts: {
|
|
959
959
|
dag: {
|
|
960
960
|
sha256: `sha256:${string}`;
|
|
@@ -973,17 +973,15 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
973
973
|
larkAppId: string;
|
|
974
974
|
chatId: string;
|
|
975
975
|
sessionId?: string | undefined;
|
|
976
|
-
ownerOpenId?: string | undefined;
|
|
977
976
|
rootMessageId?: string | undefined;
|
|
978
977
|
chatType?: "group" | "p2p" | undefined;
|
|
978
|
+
ownerOpenId?: string | undefined;
|
|
979
979
|
} | undefined;
|
|
980
980
|
} | {
|
|
981
981
|
source: {
|
|
982
982
|
kind: "legacy_v3";
|
|
983
983
|
original: "manual_cli" | "grill";
|
|
984
984
|
};
|
|
985
|
-
engine: "workflow-v3";
|
|
986
|
-
createdAt: string;
|
|
987
985
|
authorization: {
|
|
988
986
|
kind: "legacy_backfill";
|
|
989
987
|
dagSha256: `sha256:${string}`;
|
|
@@ -994,6 +992,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
994
992
|
};
|
|
995
993
|
schemaVersion: 1;
|
|
996
994
|
runId: string;
|
|
995
|
+
createdAt: string;
|
|
996
|
+
engine: "workflow-v3";
|
|
997
997
|
artifacts: {
|
|
998
998
|
dag: {
|
|
999
999
|
sha256: `sha256:${string}`;
|
|
@@ -1012,17 +1012,15 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
1012
1012
|
larkAppId: string;
|
|
1013
1013
|
chatId: string;
|
|
1014
1014
|
sessionId?: string | undefined;
|
|
1015
|
-
ownerOpenId?: string | undefined;
|
|
1016
1015
|
rootMessageId?: string | undefined;
|
|
1017
1016
|
chatType?: "group" | "p2p" | undefined;
|
|
1017
|
+
ownerOpenId?: string | undefined;
|
|
1018
1018
|
} | undefined;
|
|
1019
1019
|
}, {
|
|
1020
1020
|
source: {
|
|
1021
1021
|
kind: "ad_hoc";
|
|
1022
1022
|
grillStatePath: "grill.state.json";
|
|
1023
1023
|
};
|
|
1024
|
-
engine: "workflow-v3";
|
|
1025
|
-
createdAt: string;
|
|
1026
1024
|
authorization: {
|
|
1027
1025
|
kind: "gate2";
|
|
1028
1026
|
authorizedAt: string;
|
|
@@ -1032,6 +1030,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
1032
1030
|
};
|
|
1033
1031
|
schemaVersion: 1;
|
|
1034
1032
|
runId: string;
|
|
1033
|
+
createdAt: string;
|
|
1034
|
+
engine: "workflow-v3";
|
|
1035
1035
|
artifacts: {
|
|
1036
1036
|
spec: {
|
|
1037
1037
|
sha256: string;
|
|
@@ -1050,9 +1050,9 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
1050
1050
|
larkAppId: string;
|
|
1051
1051
|
chatId: string;
|
|
1052
1052
|
sessionId?: string | undefined;
|
|
1053
|
-
ownerOpenId?: string | undefined;
|
|
1054
1053
|
rootMessageId?: string | undefined;
|
|
1055
1054
|
chatType?: "group" | "p2p" | undefined;
|
|
1055
|
+
ownerOpenId?: string | undefined;
|
|
1056
1056
|
} | undefined;
|
|
1057
1057
|
} | {
|
|
1058
1058
|
source: {
|
|
@@ -1061,8 +1061,6 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
1061
1061
|
revisionId: string;
|
|
1062
1062
|
humanVersion: number;
|
|
1063
1063
|
};
|
|
1064
|
-
engine: "workflow-v3";
|
|
1065
|
-
createdAt: string;
|
|
1066
1064
|
authorization: {
|
|
1067
1065
|
kind: "published_revision";
|
|
1068
1066
|
authorizedAt: string;
|
|
@@ -1074,6 +1072,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
1074
1072
|
};
|
|
1075
1073
|
schemaVersion: 1;
|
|
1076
1074
|
runId: string;
|
|
1075
|
+
createdAt: string;
|
|
1076
|
+
engine: "workflow-v3";
|
|
1077
1077
|
artifacts: {
|
|
1078
1078
|
spec: {
|
|
1079
1079
|
sha256: string;
|
|
@@ -1100,16 +1100,14 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
1100
1100
|
larkAppId: string;
|
|
1101
1101
|
chatId: string;
|
|
1102
1102
|
sessionId?: string | undefined;
|
|
1103
|
-
ownerOpenId?: string | undefined;
|
|
1104
1103
|
rootMessageId?: string | undefined;
|
|
1105
1104
|
chatType?: "group" | "p2p" | undefined;
|
|
1105
|
+
ownerOpenId?: string | undefined;
|
|
1106
1106
|
} | undefined;
|
|
1107
1107
|
} | {
|
|
1108
1108
|
source: {
|
|
1109
1109
|
kind: "manual_cli";
|
|
1110
1110
|
};
|
|
1111
|
-
engine: "workflow-v3";
|
|
1112
|
-
createdAt: string;
|
|
1113
1111
|
authorization: {
|
|
1114
1112
|
kind: "local_cli";
|
|
1115
1113
|
authorizedAt: string;
|
|
@@ -1118,6 +1116,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
1118
1116
|
};
|
|
1119
1117
|
schemaVersion: 1;
|
|
1120
1118
|
runId: string;
|
|
1119
|
+
createdAt: string;
|
|
1120
|
+
engine: "workflow-v3";
|
|
1121
1121
|
artifacts: {
|
|
1122
1122
|
dag: {
|
|
1123
1123
|
sha256: string;
|
|
@@ -1136,17 +1136,15 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
1136
1136
|
larkAppId: string;
|
|
1137
1137
|
chatId: string;
|
|
1138
1138
|
sessionId?: string | undefined;
|
|
1139
|
-
ownerOpenId?: string | undefined;
|
|
1140
1139
|
rootMessageId?: string | undefined;
|
|
1141
1140
|
chatType?: "group" | "p2p" | undefined;
|
|
1141
|
+
ownerOpenId?: string | undefined;
|
|
1142
1142
|
} | undefined;
|
|
1143
1143
|
} | {
|
|
1144
1144
|
source: {
|
|
1145
1145
|
kind: "legacy_v3";
|
|
1146
1146
|
original: "manual_cli" | "grill";
|
|
1147
1147
|
};
|
|
1148
|
-
engine: "workflow-v3";
|
|
1149
|
-
createdAt: string;
|
|
1150
1148
|
authorization: {
|
|
1151
1149
|
kind: "legacy_backfill";
|
|
1152
1150
|
dagSha256: string;
|
|
@@ -1157,6 +1155,8 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
1157
1155
|
};
|
|
1158
1156
|
schemaVersion: 1;
|
|
1159
1157
|
runId: string;
|
|
1158
|
+
createdAt: string;
|
|
1159
|
+
engine: "workflow-v3";
|
|
1160
1160
|
artifacts: {
|
|
1161
1161
|
dag: {
|
|
1162
1162
|
sha256: string;
|
|
@@ -1175,9 +1175,9 @@ export declare const V3RunEnvelopeSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
|
1175
1175
|
larkAppId: string;
|
|
1176
1176
|
chatId: string;
|
|
1177
1177
|
sessionId?: string | undefined;
|
|
1178
|
-
ownerOpenId?: string | undefined;
|
|
1179
1178
|
rootMessageId?: string | undefined;
|
|
1180
1179
|
chatType?: "group" | "p2p" | undefined;
|
|
1180
|
+
ownerOpenId?: string | undefined;
|
|
1181
1181
|
} | undefined;
|
|
1182
1182
|
}>;
|
|
1183
1183
|
export type V3RunEnvelope = z.infer<typeof V3RunEnvelopeSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botmux",
|
|
3
|
-
"version": "3.18.
|
|
3
|
+
"version": "3.18.7",
|
|
4
4
|
"description": "Bridge between IM platforms and AI coding CLIs — one topic, one CLI session with live streaming",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index-daemon.js",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "bun run audit:domains && node scripts/clean-dist.mjs && tsc && bun run typecheck:scripts && node scripts/generate-runtime-build-id.mjs && cp src/setup/lark-scopes.json dist/setup/ && bun run dashboard:bundle && chmod +x dist/cli.js && node scripts/audit-dist.mjs",
|
|
21
|
+
"build": "bun run audit:domains && node scripts/clean-dist.mjs && tsc && bun run typecheck:scripts && node scripts/generate-runtime-build-id.mjs && cp src/setup/lark-scopes.json dist/setup/ && bun run dashboard:bundle && chmod +x dist/cli.js && node scripts/audit-dist.mjs && node scripts/audit-embedded-assets.mjs",
|
|
22
|
+
"verify:binary": "bun scripts/verify-binary.mjs",
|
|
22
23
|
"typecheck:scripts": "tsc -p tsconfig.scripts.json",
|
|
23
24
|
"workflow-core:build": "node scripts/build-workflow-core-package.mjs",
|
|
24
25
|
"workflow-core:test": "bun run workflow-core:build && node scripts/test-workflow-core-package.mjs",
|
|
@@ -80,12 +81,12 @@
|
|
|
80
81
|
},
|
|
81
82
|
"optionalDependencies": {
|
|
82
83
|
"@napi-rs/canvas": "^0.1.65",
|
|
83
|
-
"botmux-darwin-arm64": "3.18.
|
|
84
|
-
"botmux-darwin-x64": "3.18.
|
|
85
|
-
"botmux-linux-arm64": "3.18.
|
|
86
|
-
"botmux-linux-arm64-musl": "3.18.
|
|
87
|
-
"botmux-linux-x64": "3.18.
|
|
88
|
-
"botmux-linux-x64-musl": "3.18.
|
|
84
|
+
"botmux-darwin-arm64": "3.18.7",
|
|
85
|
+
"botmux-darwin-x64": "3.18.7",
|
|
86
|
+
"botmux-linux-arm64": "3.18.7",
|
|
87
|
+
"botmux-linux-arm64-musl": "3.18.7",
|
|
88
|
+
"botmux-linux-x64": "3.18.7",
|
|
89
|
+
"botmux-linux-x64-musl": "3.18.7"
|
|
89
90
|
},
|
|
90
91
|
"devDependencies": {
|
|
91
92
|
"@midscene/web": "^1.7.6",
|
|
@@ -47,6 +47,7 @@ import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync, chmodS
|
|
|
47
47
|
import { dirname, join, basename } from 'node:path';
|
|
48
48
|
import { homedir } from 'node:os';
|
|
49
49
|
import { createRequire } from 'node:module';
|
|
50
|
+
import { spawnSync } from 'node:child_process';
|
|
50
51
|
import { fileURLToPath } from 'node:url';
|
|
51
52
|
|
|
52
53
|
/** Abort the install with a reason. There is no Node fallback any more (see header). */
|
|
@@ -170,6 +171,30 @@ try {
|
|
|
170
171
|
if ((mode & 0o111) === 0) chmodSync(binary, 0o755);
|
|
171
172
|
} catch { /* best effort; the exec below will surface a real problem */ }
|
|
172
173
|
|
|
174
|
+
// Do not activate a platform package merely because npm selected the right
|
|
175
|
+
// os/cpu/libc tuple. That metadata cannot express a glibc symbol-version floor:
|
|
176
|
+
// a binary built on Ubuntu 24.04 is still "linux-x64 + glibc", yet its embedded
|
|
177
|
+
// node-pty native may require GLIBC_2.34 and die on Debian 10 (glibc 2.28).
|
|
178
|
+
//
|
|
179
|
+
// Probe the exact candidate before touching the shared launcher. `--version`
|
|
180
|
+
// loads the complete compiled module graph (including node-pty), but starts no
|
|
181
|
+
// daemon and writes no bot data. A failed global npm update can then roll back
|
|
182
|
+
// while every already-running daemon and every shell keeps using the old launcher.
|
|
183
|
+
const probe = spawnSync(binary, ['--version'], {
|
|
184
|
+
encoding: 'utf-8',
|
|
185
|
+
timeout: 30_000,
|
|
186
|
+
env: { ...process.env, BOTMUX_INSTALL_PROBE: '1' },
|
|
187
|
+
});
|
|
188
|
+
if (probe.error || probe.status !== 0) {
|
|
189
|
+
const raw = probe.error?.message || probe.stderr || probe.stdout || `exit ${probe.status ?? probe.signal ?? 'unknown'}`;
|
|
190
|
+
const detail = String(raw).trim().split('\n').slice(0, 8).join(' | ');
|
|
191
|
+
fail(
|
|
192
|
+
`${SUBPACKAGE} cannot run on this host; the existing botmux launcher was not changed.`,
|
|
193
|
+
`${detail || 'candidate probe failed'}. Install a compatible release or upgrade the host OS; `
|
|
194
|
+
+ 'do not replace glibc in-place on a live machine.',
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
173
198
|
// ── Write the single launcher ──────────────────────────────────────────────────
|
|
174
199
|
// Same path + same atomic-write discipline as the daemon and `pnpm use:here` use
|
|
175
200
|
// (src/daemon.ts, scripts/claim-botmux-bin.mjs), because concurrent CLI sessions
|