comisai 1.0.16 → 1.0.17
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/node_modules/@comis/agent/package.json +1 -1
- package/node_modules/@comis/channels/package.json +1 -1
- package/node_modules/@comis/cli/dist/wizard/non-interactive.js +1 -0
- package/node_modules/@comis/cli/dist/wizard/steps/01-detect-existing.js +4 -0
- package/node_modules/@comis/cli/dist/wizard/steps/07-gateway.js +9 -0
- package/node_modules/@comis/cli/dist/wizard/steps/10-write-config.js +2 -0
- package/node_modules/@comis/cli/dist/wizard/steps/12-finish.js +5 -2
- package/node_modules/@comis/cli/dist/wizard/types.d.ts +1 -0
- package/node_modules/@comis/cli/package.json +1 -1
- package/node_modules/@comis/core/dist/config/schema-gateway.d.ts +17 -2
- package/node_modules/@comis/core/dist/config/schema-gateway.js +11 -0
- package/node_modules/@comis/core/dist/config/schema.d.ts +60 -57
- package/node_modules/@comis/core/package.json +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway.js +34 -6
- package/node_modules/@comis/daemon/package.json +1 -1
- package/node_modules/@comis/gateway/package.json +1 -1
- package/node_modules/@comis/infra/package.json +1 -1
- package/node_modules/@comis/memory/package.json +1 -1
- package/node_modules/@comis/scheduler/package.json +1 -1
- package/node_modules/@comis/shared/package.json +1 -1
- package/node_modules/@comis/skills/package.json +1 -1
- package/node_modules/@comis/web/dist/android-chrome-192x192.png +0 -0
- package/node_modules/@comis/web/dist/android-chrome-512x512.png +0 -0
- package/node_modules/@comis/web/dist/apple-touch-icon.png +0 -0
- package/node_modules/@comis/web/dist/assets/agent-detail-BG9MGWWj.js +615 -0
- package/node_modules/@comis/web/dist/assets/agent-editor-C26Q_xCs.js +2173 -0
- package/node_modules/@comis/web/dist/assets/agent-list-LHCJ4rw2.js +504 -0
- package/node_modules/@comis/web/dist/assets/approvals-q9VH_IKr.js +54 -0
- package/node_modules/@comis/web/dist/assets/billing-view-CtYvBqTE.js +375 -0
- package/node_modules/@comis/web/dist/assets/channel-detail-CaInesJM.js +681 -0
- package/node_modules/@comis/web/dist/assets/channel-list-B8dj3O9a.js +323 -0
- package/node_modules/@comis/web/dist/assets/chat-console-CNmzl0JW.js +943 -0
- package/node_modules/@comis/web/dist/assets/config-editor-DX4ITw6y.js +1374 -0
- package/node_modules/@comis/web/dist/assets/context-dag-browser-BwiaF5tf.js +393 -0
- package/node_modules/@comis/web/dist/assets/context-engine-BZ5Am6hA.js +393 -0
- package/node_modules/@comis/web/dist/assets/delivery-view-OfBZof-m.js +392 -0
- package/node_modules/@comis/web/dist/assets/diagnostics-view-YFwCxgr2.js +231 -0
- package/node_modules/@comis/web/dist/assets/directive-DoeGSK_T.js +1 -0
- package/node_modules/@comis/web/dist/assets/extract-variables-BM5qyK-s.js +149 -0
- package/node_modules/@comis/web/dist/assets/ic-array-editor-B7m6x7-S.js +118 -0
- package/node_modules/@comis/web/dist/assets/ic-breadcrumb-CUMpp3BL.js +75 -0
- package/node_modules/@comis/web/dist/assets/ic-budget-segment-bar-BtJ6x5mN.js +64 -0
- package/node_modules/@comis/web/dist/assets/ic-chat-message-CFyDJd0z.js +352 -0
- package/node_modules/@comis/web/dist/assets/ic-confirm-dialog-CCDbB04e.js +110 -0
- package/node_modules/@comis/web/dist/assets/ic-connection-dot-CnT1b8xr.js +54 -0
- package/node_modules/@comis/web/dist/assets/ic-data-table-CKUNTxHw.js +277 -0
- package/node_modules/@comis/web/dist/assets/ic-delivery-row-GP5Fkygs.js +67 -0
- package/node_modules/@comis/web/dist/assets/ic-detail-panel-BF83r-if.js +116 -0
- package/node_modules/@comis/web/dist/assets/ic-empty-state-60l2ePhd.js +52 -0
- package/node_modules/@comis/web/dist/assets/ic-graph-canvas-C8FuSMe1.js +359 -0
- package/node_modules/@comis/web/dist/assets/ic-icon-xeGTVhVG.js +33 -0
- package/node_modules/@comis/web/dist/assets/ic-layer-waterfall-COvEYMg5.js +69 -0
- package/node_modules/@comis/web/dist/assets/ic-relative-time-3FqpjeAI.js +12 -0
- package/node_modules/@comis/web/dist/assets/ic-search-input-CSOxY9g7.js +92 -0
- package/node_modules/@comis/web/dist/assets/ic-select-Ce-Raudx.js +127 -0
- package/node_modules/@comis/web/dist/assets/ic-tabs-B7QtM_v8.js +95 -0
- package/node_modules/@comis/web/dist/assets/ic-tag-CPPUnDLF.js +33 -0
- package/node_modules/@comis/web/dist/assets/ic-time-range-picker-CypCT68y.js +93 -0
- package/node_modules/@comis/web/dist/assets/ic-tool-call-7MaXSsCW.js +146 -0
- package/node_modules/@comis/web/dist/assets/index-CEcM1R_C.js +2830 -0
- package/node_modules/@comis/web/dist/assets/index-CIJFuItj.css +1 -0
- package/node_modules/@comis/web/dist/assets/mcp-management-BNZPnpDn.js +582 -0
- package/node_modules/@comis/web/dist/assets/media-config-BBvTYxOX.js +314 -0
- package/node_modules/@comis/web/dist/assets/media-test-BkK3RCRK.js +496 -0
- package/node_modules/@comis/web/dist/assets/memory-inspector-1hDGCGat.js +1139 -0
- package/node_modules/@comis/web/dist/assets/message-center-CXefwsUu.js +785 -0
- package/node_modules/@comis/web/dist/assets/models-C1qcU_j3.js +894 -0
- package/node_modules/@comis/web/dist/assets/observability-types-D7jUtSde.js +1 -0
- package/node_modules/@comis/web/dist/assets/observe-view-C0VBhX4C.js +814 -0
- package/node_modules/@comis/web/dist/assets/pipeline-builder-DcUUIrm0.js +1496 -0
- package/node_modules/@comis/web/dist/assets/pipeline-history-DkfOQ6SW.js +317 -0
- package/node_modules/@comis/web/dist/assets/pipeline-history-detail-hyHgD0ai.js +287 -0
- package/node_modules/@comis/web/dist/assets/pipeline-list-BPW8hV-q.js +518 -0
- package/node_modules/@comis/web/dist/assets/pipeline-monitor-Bip16T7e.js +972 -0
- package/node_modules/@comis/web/dist/assets/scheduler-BGgwKd06.js +1182 -0
- package/node_modules/@comis/web/dist/assets/security-D15st4xx.js +1224 -0
- package/node_modules/@comis/web/dist/assets/session-detail-SGEYNJ0M.js +632 -0
- package/node_modules/@comis/web/dist/assets/session-key-parser-DPORMVyU.js +1 -0
- package/node_modules/@comis/web/dist/assets/session-list-6ybUTxbY.js +231 -0
- package/node_modules/@comis/web/dist/assets/setup-wizard-nT0tz9QP.js +853 -0
- package/node_modules/@comis/web/dist/assets/skills-D8yVfSUy.js +1051 -0
- package/node_modules/@comis/web/dist/assets/subagents-HHXMeHYo.js +193 -0
- package/node_modules/@comis/web/dist/assets/workspace-manager-BQlr10iH.js +785 -0
- package/node_modules/@comis/web/dist/comis-logo.png +0 -0
- package/node_modules/@comis/web/dist/favicon-16x16.png +0 -0
- package/node_modules/@comis/web/dist/favicon-32x32.png +0 -0
- package/node_modules/@comis/web/dist/favicon.ico +0 -0
- package/node_modules/@comis/web/dist/index.html +17 -0
- package/node_modules/@comis/web/package.json +29 -0
- package/package.json +15 -13
|
@@ -29,8 +29,8 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
29
29
|
provider: z.ZodDefault<z.ZodString>;
|
|
30
30
|
maxSteps: z.ZodDefault<z.ZodNumber>;
|
|
31
31
|
thinkingLevel: z.ZodOptional<z.ZodEnum<{
|
|
32
|
-
minimal: "minimal";
|
|
33
32
|
off: "off";
|
|
33
|
+
minimal: "minimal";
|
|
34
34
|
low: "low";
|
|
35
35
|
medium: "medium";
|
|
36
36
|
high: "high";
|
|
@@ -108,9 +108,9 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
108
108
|
bootstrap: z.ZodDefault<z.ZodObject<{
|
|
109
109
|
maxChars: z.ZodDefault<z.ZodNumber>;
|
|
110
110
|
promptMode: z.ZodDefault<z.ZodEnum<{
|
|
111
|
+
minimal: "minimal";
|
|
111
112
|
none: "none";
|
|
112
113
|
full: "full";
|
|
113
|
-
minimal: "minimal";
|
|
114
114
|
}>>;
|
|
115
115
|
groupChatFiltering: z.ZodDefault<z.ZodBoolean>;
|
|
116
116
|
}, z.core.$strict>>;
|
|
@@ -187,8 +187,8 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
187
187
|
}, z.core.$strict>>;
|
|
188
188
|
toolPolicy: z.ZodDefault<z.ZodObject<{
|
|
189
189
|
profile: z.ZodDefault<z.ZodEnum<{
|
|
190
|
-
full: "full";
|
|
191
190
|
minimal: "minimal";
|
|
191
|
+
full: "full";
|
|
192
192
|
coding: "coding";
|
|
193
193
|
messaging: "messaging";
|
|
194
194
|
supervisor: "supervisor";
|
|
@@ -263,10 +263,10 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
263
263
|
session: z.ZodOptional<z.ZodObject<{
|
|
264
264
|
resetPolicy: z.ZodOptional<z.ZodObject<{
|
|
265
265
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
266
|
+
none: "none";
|
|
266
267
|
daily: "daily";
|
|
267
268
|
idle: "idle";
|
|
268
269
|
hybrid: "hybrid";
|
|
269
|
-
none: "none";
|
|
270
270
|
}>>;
|
|
271
271
|
dailyResetHour: z.ZodDefault<z.ZodNumber>;
|
|
272
272
|
dailyResetTimezone: z.ZodDefault<z.ZodString>;
|
|
@@ -276,10 +276,10 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
276
276
|
perType: z.ZodDefault<z.ZodObject<{
|
|
277
277
|
dm: z.ZodOptional<z.ZodObject<{
|
|
278
278
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
279
|
+
none: "none";
|
|
279
280
|
daily: "daily";
|
|
280
281
|
idle: "idle";
|
|
281
282
|
hybrid: "hybrid";
|
|
282
|
-
none: "none";
|
|
283
283
|
}>>;
|
|
284
284
|
dailyResetHour: z.ZodOptional<z.ZodNumber>;
|
|
285
285
|
dailyResetTimezone: z.ZodOptional<z.ZodString>;
|
|
@@ -287,10 +287,10 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
287
287
|
}, z.core.$strict>>;
|
|
288
288
|
group: z.ZodOptional<z.ZodObject<{
|
|
289
289
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
290
|
+
none: "none";
|
|
290
291
|
daily: "daily";
|
|
291
292
|
idle: "idle";
|
|
292
293
|
hybrid: "hybrid";
|
|
293
|
-
none: "none";
|
|
294
294
|
}>>;
|
|
295
295
|
dailyResetHour: z.ZodOptional<z.ZodNumber>;
|
|
296
296
|
dailyResetTimezone: z.ZodOptional<z.ZodString>;
|
|
@@ -298,10 +298,10 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
298
298
|
}, z.core.$strict>>;
|
|
299
299
|
thread: z.ZodOptional<z.ZodObject<{
|
|
300
300
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
301
|
+
none: "none";
|
|
301
302
|
daily: "daily";
|
|
302
303
|
idle: "idle";
|
|
303
304
|
hybrid: "hybrid";
|
|
304
|
-
none: "none";
|
|
305
305
|
}>>;
|
|
306
306
|
dailyResetHour: z.ZodOptional<z.ZodNumber>;
|
|
307
307
|
dailyResetTimezone: z.ZodOptional<z.ZodString>;
|
|
@@ -479,8 +479,8 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
479
479
|
deferredTools: z.ZodOptional<z.ZodObject<{
|
|
480
480
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
481
481
|
never: "never";
|
|
482
|
-
always: "always";
|
|
483
482
|
auto: "auto";
|
|
483
|
+
always: "always";
|
|
484
484
|
}>>;
|
|
485
485
|
neverDefer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
486
486
|
alwaysDefer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -509,18 +509,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
509
509
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
510
510
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
511
511
|
source: z.ZodEnum<{
|
|
512
|
+
env: "env";
|
|
512
513
|
file: "file";
|
|
513
514
|
exec: "exec";
|
|
514
|
-
env: "env";
|
|
515
515
|
}>;
|
|
516
516
|
provider: z.ZodString;
|
|
517
517
|
id: z.ZodString;
|
|
518
518
|
}, z.core.$strict>]>>;
|
|
519
519
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
520
520
|
source: z.ZodEnum<{
|
|
521
|
+
env: "env";
|
|
521
522
|
file: "file";
|
|
522
523
|
exec: "exec";
|
|
523
|
-
env: "env";
|
|
524
524
|
}>;
|
|
525
525
|
provider: z.ZodString;
|
|
526
526
|
id: z.ZodString;
|
|
@@ -529,18 +529,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
529
529
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
530
530
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
531
531
|
source: z.ZodEnum<{
|
|
532
|
+
env: "env";
|
|
532
533
|
file: "file";
|
|
533
534
|
exec: "exec";
|
|
534
|
-
env: "env";
|
|
535
535
|
}>;
|
|
536
536
|
provider: z.ZodString;
|
|
537
537
|
id: z.ZodString;
|
|
538
538
|
}, z.core.$strict>]>>;
|
|
539
539
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
540
540
|
source: z.ZodEnum<{
|
|
541
|
+
env: "env";
|
|
541
542
|
file: "file";
|
|
542
543
|
exec: "exec";
|
|
543
|
-
env: "env";
|
|
544
544
|
}>;
|
|
545
545
|
provider: z.ZodString;
|
|
546
546
|
id: z.ZodString;
|
|
@@ -563,18 +563,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
563
563
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
564
564
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
565
565
|
source: z.ZodEnum<{
|
|
566
|
+
env: "env";
|
|
566
567
|
file: "file";
|
|
567
568
|
exec: "exec";
|
|
568
|
-
env: "env";
|
|
569
569
|
}>;
|
|
570
570
|
provider: z.ZodString;
|
|
571
571
|
id: z.ZodString;
|
|
572
572
|
}, z.core.$strict>]>>;
|
|
573
573
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
574
574
|
source: z.ZodEnum<{
|
|
575
|
+
env: "env";
|
|
575
576
|
file: "file";
|
|
576
577
|
exec: "exec";
|
|
577
|
-
env: "env";
|
|
578
578
|
}>;
|
|
579
579
|
provider: z.ZodString;
|
|
580
580
|
id: z.ZodString;
|
|
@@ -583,18 +583,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
583
583
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
584
584
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
585
585
|
source: z.ZodEnum<{
|
|
586
|
+
env: "env";
|
|
586
587
|
file: "file";
|
|
587
588
|
exec: "exec";
|
|
588
|
-
env: "env";
|
|
589
589
|
}>;
|
|
590
590
|
provider: z.ZodString;
|
|
591
591
|
id: z.ZodString;
|
|
592
592
|
}, z.core.$strict>]>>;
|
|
593
593
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
594
594
|
source: z.ZodEnum<{
|
|
595
|
+
env: "env";
|
|
595
596
|
file: "file";
|
|
596
597
|
exec: "exec";
|
|
597
|
-
env: "env";
|
|
598
598
|
}>;
|
|
599
599
|
provider: z.ZodString;
|
|
600
600
|
id: z.ZodString;
|
|
@@ -617,18 +617,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
617
617
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
618
618
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
619
619
|
source: z.ZodEnum<{
|
|
620
|
+
env: "env";
|
|
620
621
|
file: "file";
|
|
621
622
|
exec: "exec";
|
|
622
|
-
env: "env";
|
|
623
623
|
}>;
|
|
624
624
|
provider: z.ZodString;
|
|
625
625
|
id: z.ZodString;
|
|
626
626
|
}, z.core.$strict>]>>;
|
|
627
627
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
628
628
|
source: z.ZodEnum<{
|
|
629
|
+
env: "env";
|
|
629
630
|
file: "file";
|
|
630
631
|
exec: "exec";
|
|
631
|
-
env: "env";
|
|
632
632
|
}>;
|
|
633
633
|
provider: z.ZodString;
|
|
634
634
|
id: z.ZodString;
|
|
@@ -637,18 +637,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
637
637
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
638
638
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
639
639
|
source: z.ZodEnum<{
|
|
640
|
+
env: "env";
|
|
640
641
|
file: "file";
|
|
641
642
|
exec: "exec";
|
|
642
|
-
env: "env";
|
|
643
643
|
}>;
|
|
644
644
|
provider: z.ZodString;
|
|
645
645
|
id: z.ZodString;
|
|
646
646
|
}, z.core.$strict>]>>;
|
|
647
647
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
648
648
|
source: z.ZodEnum<{
|
|
649
|
+
env: "env";
|
|
649
650
|
file: "file";
|
|
650
651
|
exec: "exec";
|
|
651
|
-
env: "env";
|
|
652
652
|
}>;
|
|
653
653
|
provider: z.ZodString;
|
|
654
654
|
id: z.ZodString;
|
|
@@ -671,18 +671,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
671
671
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
672
672
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
673
673
|
source: z.ZodEnum<{
|
|
674
|
+
env: "env";
|
|
674
675
|
file: "file";
|
|
675
676
|
exec: "exec";
|
|
676
|
-
env: "env";
|
|
677
677
|
}>;
|
|
678
678
|
provider: z.ZodString;
|
|
679
679
|
id: z.ZodString;
|
|
680
680
|
}, z.core.$strict>]>>;
|
|
681
681
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
682
682
|
source: z.ZodEnum<{
|
|
683
|
+
env: "env";
|
|
683
684
|
file: "file";
|
|
684
685
|
exec: "exec";
|
|
685
|
-
env: "env";
|
|
686
686
|
}>;
|
|
687
687
|
provider: z.ZodString;
|
|
688
688
|
id: z.ZodString;
|
|
@@ -691,18 +691,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
691
691
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
692
692
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
693
693
|
source: z.ZodEnum<{
|
|
694
|
+
env: "env";
|
|
694
695
|
file: "file";
|
|
695
696
|
exec: "exec";
|
|
696
|
-
env: "env";
|
|
697
697
|
}>;
|
|
698
698
|
provider: z.ZodString;
|
|
699
699
|
id: z.ZodString;
|
|
700
700
|
}, z.core.$strict>]>>;
|
|
701
701
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
702
702
|
source: z.ZodEnum<{
|
|
703
|
+
env: "env";
|
|
703
704
|
file: "file";
|
|
704
705
|
exec: "exec";
|
|
705
|
-
env: "env";
|
|
706
706
|
}>;
|
|
707
707
|
provider: z.ZodString;
|
|
708
708
|
id: z.ZodString;
|
|
@@ -725,18 +725,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
725
725
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
726
726
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
727
727
|
source: z.ZodEnum<{
|
|
728
|
+
env: "env";
|
|
728
729
|
file: "file";
|
|
729
730
|
exec: "exec";
|
|
730
|
-
env: "env";
|
|
731
731
|
}>;
|
|
732
732
|
provider: z.ZodString;
|
|
733
733
|
id: z.ZodString;
|
|
734
734
|
}, z.core.$strict>]>>;
|
|
735
735
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
736
736
|
source: z.ZodEnum<{
|
|
737
|
+
env: "env";
|
|
737
738
|
file: "file";
|
|
738
739
|
exec: "exec";
|
|
739
|
-
env: "env";
|
|
740
740
|
}>;
|
|
741
741
|
provider: z.ZodString;
|
|
742
742
|
id: z.ZodString;
|
|
@@ -745,18 +745,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
745
745
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
746
746
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
747
747
|
source: z.ZodEnum<{
|
|
748
|
+
env: "env";
|
|
748
749
|
file: "file";
|
|
749
750
|
exec: "exec";
|
|
750
|
-
env: "env";
|
|
751
751
|
}>;
|
|
752
752
|
provider: z.ZodString;
|
|
753
753
|
id: z.ZodString;
|
|
754
754
|
}, z.core.$strict>]>>;
|
|
755
755
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
756
756
|
source: z.ZodEnum<{
|
|
757
|
+
env: "env";
|
|
757
758
|
file: "file";
|
|
758
759
|
exec: "exec";
|
|
759
|
-
env: "env";
|
|
760
760
|
}>;
|
|
761
761
|
provider: z.ZodString;
|
|
762
762
|
id: z.ZodString;
|
|
@@ -782,18 +782,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
782
782
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
783
783
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
784
784
|
source: z.ZodEnum<{
|
|
785
|
+
env: "env";
|
|
785
786
|
file: "file";
|
|
786
787
|
exec: "exec";
|
|
787
|
-
env: "env";
|
|
788
788
|
}>;
|
|
789
789
|
provider: z.ZodString;
|
|
790
790
|
id: z.ZodString;
|
|
791
791
|
}, z.core.$strict>]>>;
|
|
792
792
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
793
793
|
source: z.ZodEnum<{
|
|
794
|
+
env: "env";
|
|
794
795
|
file: "file";
|
|
795
796
|
exec: "exec";
|
|
796
|
-
env: "env";
|
|
797
797
|
}>;
|
|
798
798
|
provider: z.ZodString;
|
|
799
799
|
id: z.ZodString;
|
|
@@ -802,18 +802,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
802
802
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
803
803
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
804
804
|
source: z.ZodEnum<{
|
|
805
|
+
env: "env";
|
|
805
806
|
file: "file";
|
|
806
807
|
exec: "exec";
|
|
807
|
-
env: "env";
|
|
808
808
|
}>;
|
|
809
809
|
provider: z.ZodString;
|
|
810
810
|
id: z.ZodString;
|
|
811
811
|
}, z.core.$strict>]>>;
|
|
812
812
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
813
813
|
source: z.ZodEnum<{
|
|
814
|
+
env: "env";
|
|
814
815
|
file: "file";
|
|
815
816
|
exec: "exec";
|
|
816
|
-
env: "env";
|
|
817
817
|
}>;
|
|
818
818
|
provider: z.ZodString;
|
|
819
819
|
id: z.ZodString;
|
|
@@ -838,18 +838,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
838
838
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
839
839
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
840
840
|
source: z.ZodEnum<{
|
|
841
|
+
env: "env";
|
|
841
842
|
file: "file";
|
|
842
843
|
exec: "exec";
|
|
843
|
-
env: "env";
|
|
844
844
|
}>;
|
|
845
845
|
provider: z.ZodString;
|
|
846
846
|
id: z.ZodString;
|
|
847
847
|
}, z.core.$strict>]>>;
|
|
848
848
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
849
849
|
source: z.ZodEnum<{
|
|
850
|
+
env: "env";
|
|
850
851
|
file: "file";
|
|
851
852
|
exec: "exec";
|
|
852
|
-
env: "env";
|
|
853
853
|
}>;
|
|
854
854
|
provider: z.ZodString;
|
|
855
855
|
id: z.ZodString;
|
|
@@ -858,18 +858,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
858
858
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
859
859
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
860
860
|
source: z.ZodEnum<{
|
|
861
|
+
env: "env";
|
|
861
862
|
file: "file";
|
|
862
863
|
exec: "exec";
|
|
863
|
-
env: "env";
|
|
864
864
|
}>;
|
|
865
865
|
provider: z.ZodString;
|
|
866
866
|
id: z.ZodString;
|
|
867
867
|
}, z.core.$strict>]>>;
|
|
868
868
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
869
869
|
source: z.ZodEnum<{
|
|
870
|
+
env: "env";
|
|
870
871
|
file: "file";
|
|
871
872
|
exec: "exec";
|
|
872
|
-
env: "env";
|
|
873
873
|
}>;
|
|
874
874
|
provider: z.ZodString;
|
|
875
875
|
id: z.ZodString;
|
|
@@ -889,9 +889,9 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
889
889
|
}, z.core.$strict>>;
|
|
890
890
|
channelSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
891
891
|
source: z.ZodEnum<{
|
|
892
|
+
env: "env";
|
|
892
893
|
file: "file";
|
|
893
894
|
exec: "exec";
|
|
894
|
-
env: "env";
|
|
895
895
|
}>;
|
|
896
896
|
provider: z.ZodString;
|
|
897
897
|
id: z.ZodString;
|
|
@@ -902,18 +902,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
902
902
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
903
903
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
904
904
|
source: z.ZodEnum<{
|
|
905
|
+
env: "env";
|
|
905
906
|
file: "file";
|
|
906
907
|
exec: "exec";
|
|
907
|
-
env: "env";
|
|
908
908
|
}>;
|
|
909
909
|
provider: z.ZodString;
|
|
910
910
|
id: z.ZodString;
|
|
911
911
|
}, z.core.$strict>]>>;
|
|
912
912
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
913
913
|
source: z.ZodEnum<{
|
|
914
|
+
env: "env";
|
|
914
915
|
file: "file";
|
|
915
916
|
exec: "exec";
|
|
916
|
-
env: "env";
|
|
917
917
|
}>;
|
|
918
918
|
provider: z.ZodString;
|
|
919
919
|
id: z.ZodString;
|
|
@@ -922,18 +922,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
922
922
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
923
923
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
924
924
|
source: z.ZodEnum<{
|
|
925
|
+
env: "env";
|
|
925
926
|
file: "file";
|
|
926
927
|
exec: "exec";
|
|
927
|
-
env: "env";
|
|
928
928
|
}>;
|
|
929
929
|
provider: z.ZodString;
|
|
930
930
|
id: z.ZodString;
|
|
931
931
|
}, z.core.$strict>]>>;
|
|
932
932
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
933
933
|
source: z.ZodEnum<{
|
|
934
|
+
env: "env";
|
|
934
935
|
file: "file";
|
|
935
936
|
exec: "exec";
|
|
936
|
-
env: "env";
|
|
937
937
|
}>;
|
|
938
938
|
provider: z.ZodString;
|
|
939
939
|
id: z.ZodString;
|
|
@@ -958,9 +958,9 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
958
958
|
channels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
959
959
|
nickservPassword: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
960
960
|
source: z.ZodEnum<{
|
|
961
|
+
env: "env";
|
|
961
962
|
file: "file";
|
|
962
963
|
exec: "exec";
|
|
963
|
-
env: "env";
|
|
964
964
|
}>;
|
|
965
965
|
provider: z.ZodString;
|
|
966
966
|
id: z.ZodString;
|
|
@@ -970,18 +970,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
970
970
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
971
971
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
972
972
|
source: z.ZodEnum<{
|
|
973
|
+
env: "env";
|
|
973
974
|
file: "file";
|
|
974
975
|
exec: "exec";
|
|
975
|
-
env: "env";
|
|
976
976
|
}>;
|
|
977
977
|
provider: z.ZodString;
|
|
978
978
|
id: z.ZodString;
|
|
979
979
|
}, z.core.$strict>]>>;
|
|
980
980
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
981
981
|
source: z.ZodEnum<{
|
|
982
|
+
env: "env";
|
|
982
983
|
file: "file";
|
|
983
984
|
exec: "exec";
|
|
984
|
-
env: "env";
|
|
985
985
|
}>;
|
|
986
986
|
provider: z.ZodString;
|
|
987
987
|
id: z.ZodString;
|
|
@@ -990,18 +990,18 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
990
990
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
991
991
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
992
992
|
source: z.ZodEnum<{
|
|
993
|
+
env: "env";
|
|
993
994
|
file: "file";
|
|
994
995
|
exec: "exec";
|
|
995
|
-
env: "env";
|
|
996
996
|
}>;
|
|
997
997
|
provider: z.ZodString;
|
|
998
998
|
id: z.ZodString;
|
|
999
999
|
}, z.core.$strict>]>>;
|
|
1000
1000
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1001
1001
|
source: z.ZodEnum<{
|
|
1002
|
+
env: "env";
|
|
1002
1003
|
file: "file";
|
|
1003
1004
|
exec: "exec";
|
|
1004
|
-
env: "env";
|
|
1005
1005
|
}>;
|
|
1006
1006
|
provider: z.ZodString;
|
|
1007
1007
|
id: z.ZodString;
|
|
@@ -1031,27 +1031,27 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1031
1031
|
}>>;
|
|
1032
1032
|
clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1033
1033
|
source: z.ZodEnum<{
|
|
1034
|
+
env: "env";
|
|
1034
1035
|
file: "file";
|
|
1035
1036
|
exec: "exec";
|
|
1036
|
-
env: "env";
|
|
1037
1037
|
}>;
|
|
1038
1038
|
provider: z.ZodString;
|
|
1039
1039
|
id: z.ZodString;
|
|
1040
1040
|
}, z.core.$strict>]>>;
|
|
1041
1041
|
clientSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1042
1042
|
source: z.ZodEnum<{
|
|
1043
|
+
env: "env";
|
|
1043
1044
|
file: "file";
|
|
1044
1045
|
exec: "exec";
|
|
1045
|
-
env: "env";
|
|
1046
1046
|
}>;
|
|
1047
1047
|
provider: z.ZodString;
|
|
1048
1048
|
id: z.ZodString;
|
|
1049
1049
|
}, z.core.$strict>]>>;
|
|
1050
1050
|
refreshToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1051
1051
|
source: z.ZodEnum<{
|
|
1052
|
+
env: "env";
|
|
1052
1053
|
file: "file";
|
|
1053
1054
|
exec: "exec";
|
|
1054
|
-
env: "env";
|
|
1055
1055
|
}>;
|
|
1056
1056
|
provider: z.ZodString;
|
|
1057
1057
|
id: z.ZodString;
|
|
@@ -1113,8 +1113,8 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1113
1113
|
waitTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1114
1114
|
subAgentMaxSteps: z.ZodDefault<z.ZodNumber>;
|
|
1115
1115
|
subAgentToolGroups: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1116
|
-
full: "full";
|
|
1117
1116
|
minimal: "minimal";
|
|
1117
|
+
full: "full";
|
|
1118
1118
|
coding: "coding";
|
|
1119
1119
|
messaging: "messaging";
|
|
1120
1120
|
supervisor: "supervisor";
|
|
@@ -1134,8 +1134,8 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1134
1134
|
resultRetentionMs: z.ZodDefault<z.ZodNumber>;
|
|
1135
1135
|
condensationStrategy: z.ZodDefault<z.ZodEnum<{
|
|
1136
1136
|
never: "never";
|
|
1137
|
-
always: "always";
|
|
1138
1137
|
auto: "auto";
|
|
1138
|
+
always: "always";
|
|
1139
1139
|
}>>;
|
|
1140
1140
|
includeParentHistory: z.ZodDefault<z.ZodEnum<{
|
|
1141
1141
|
none: "none";
|
|
@@ -1202,9 +1202,9 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1202
1202
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1203
1203
|
secret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1204
1204
|
source: z.ZodEnum<{
|
|
1205
|
+
env: "env";
|
|
1205
1206
|
file: "file";
|
|
1206
1207
|
exec: "exec";
|
|
1207
|
-
env: "env";
|
|
1208
1208
|
}>;
|
|
1209
1209
|
provider: z.ZodString;
|
|
1210
1210
|
id: z.ZodString;
|
|
@@ -1266,9 +1266,9 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1266
1266
|
id: z.ZodString;
|
|
1267
1267
|
secret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1268
1268
|
source: z.ZodEnum<{
|
|
1269
|
+
env: "env";
|
|
1269
1270
|
file: "file";
|
|
1270
1271
|
exec: "exec";
|
|
1271
|
-
env: "env";
|
|
1272
1272
|
}>;
|
|
1273
1273
|
provider: z.ZodString;
|
|
1274
1274
|
id: z.ZodString;
|
|
@@ -1279,6 +1279,9 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1279
1279
|
windowMs: z.ZodDefault<z.ZodNumber>;
|
|
1280
1280
|
maxRequests: z.ZodDefault<z.ZodNumber>;
|
|
1281
1281
|
}, z.core.$strict>>;
|
|
1282
|
+
web: z.ZodDefault<z.ZodObject<{
|
|
1283
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1284
|
+
}, z.core.$strict>>;
|
|
1282
1285
|
maxBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
1283
1286
|
wsHeartbeatMs: z.ZodDefault<z.ZodNumber>;
|
|
1284
1287
|
corsOrigins: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1296,9 +1299,9 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1296
1299
|
braveSearch: z.ZodDefault<z.ZodObject<{
|
|
1297
1300
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1298
1301
|
source: z.ZodEnum<{
|
|
1302
|
+
env: "env";
|
|
1299
1303
|
file: "file";
|
|
1300
1304
|
exec: "exec";
|
|
1301
|
-
env: "env";
|
|
1302
1305
|
}>;
|
|
1303
1306
|
provider: z.ZodString;
|
|
1304
1307
|
id: z.ZodString;
|
|
@@ -1357,8 +1360,8 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1357
1360
|
format: z.ZodDefault<z.ZodString>;
|
|
1358
1361
|
model: z.ZodOptional<z.ZodString>;
|
|
1359
1362
|
autoMode: z.ZodDefault<z.ZodDefault<z.ZodEnum<{
|
|
1360
|
-
always: "always";
|
|
1361
1363
|
off: "off";
|
|
1364
|
+
always: "always";
|
|
1362
1365
|
inbound: "inbound";
|
|
1363
1366
|
tagged: "tagged";
|
|
1364
1367
|
}>>>;
|
|
@@ -1379,8 +1382,8 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1379
1382
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
1380
1383
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1381
1384
|
applyTextNormalization: z.ZodDefault<z.ZodEnum<{
|
|
1382
|
-
auto: "auto";
|
|
1383
1385
|
off: "off";
|
|
1386
|
+
auto: "auto";
|
|
1384
1387
|
on: "on";
|
|
1385
1388
|
}>>;
|
|
1386
1389
|
}, z.core.$strict>>;
|
|
@@ -1904,9 +1907,9 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1904
1907
|
path: z.ZodDefault<z.ZodString>;
|
|
1905
1908
|
token: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1906
1909
|
source: z.ZodEnum<{
|
|
1910
|
+
env: "env";
|
|
1907
1911
|
file: "file";
|
|
1908
1912
|
exec: "exec";
|
|
1909
|
-
env: "env";
|
|
1910
1913
|
}>;
|
|
1911
1914
|
provider: z.ZodString;
|
|
1912
1915
|
id: z.ZodString;
|
|
@@ -651,18 +651,46 @@ export async function setupGateway(deps) {
|
|
|
651
651
|
// setup-gateway.ts is in wiring/ subdir, so go up 3 levels: wiring/ -> src/ -> daemon/ -> web/dist
|
|
652
652
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
653
653
|
const webDistPath = resolve(__dirname, "../../../web/dist");
|
|
654
|
+
const webEnabled = gwConfig.web.enabled;
|
|
655
|
+
let webDeps;
|
|
656
|
+
if (webEnabled) {
|
|
657
|
+
const distExists = existsSync(webDistPath);
|
|
658
|
+
if (distExists) {
|
|
659
|
+
gatewayLogger.info({ webEnabled: true, url: `http://${gwConfig.host}:${gwConfig.port}/app/` }, "Web dashboard mounted");
|
|
660
|
+
webDeps = {
|
|
661
|
+
eventBus: container.eventBus,
|
|
662
|
+
rpcAdapterDeps,
|
|
663
|
+
webDistPath,
|
|
664
|
+
suspendedAgents: deps.suspendedAgents,
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
else {
|
|
668
|
+
gatewayLogger.error({
|
|
669
|
+
hint: "Reinstall comisai or run 'pnpm --filter @comis/web build'. @comis/web dist directory must exist for the dashboard to mount.",
|
|
670
|
+
errorKind: "config",
|
|
671
|
+
webDistPath,
|
|
672
|
+
}, "gateway.web.enabled=true but @comis/web dist is missing");
|
|
673
|
+
// Still wire /api + SSE + root redirect so users get a structured 404
|
|
674
|
+
// from the SPA fallback rather than a silent "gateway is down" — but
|
|
675
|
+
// omit webDistPath so serveStatic (and its raw Hono warning) never runs.
|
|
676
|
+
webDeps = {
|
|
677
|
+
eventBus: container.eventBus,
|
|
678
|
+
rpcAdapterDeps,
|
|
679
|
+
webDistPath: undefined,
|
|
680
|
+
suspendedAgents: deps.suspendedAgents,
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
else {
|
|
685
|
+
gatewayLogger.debug({ webEnabled: false }, "Web dashboard disabled");
|
|
686
|
+
}
|
|
654
687
|
const gatewayHandle = _createGatewayServer({
|
|
655
688
|
config: gwConfig,
|
|
656
689
|
logger: gatewayLogger,
|
|
657
690
|
tokenStore,
|
|
658
691
|
rpcServer,
|
|
659
692
|
wsConnections,
|
|
660
|
-
webDeps
|
|
661
|
-
eventBus: container.eventBus,
|
|
662
|
-
rpcAdapterDeps,
|
|
663
|
-
webDistPath,
|
|
664
|
-
suspendedAgents: deps.suspendedAgents,
|
|
665
|
-
},
|
|
693
|
+
...(webDeps && { webDeps }),
|
|
666
694
|
fingerprint: {
|
|
667
695
|
instanceId,
|
|
668
696
|
startedAt: new Date(startupStartMs).toISOString(),
|