switchroom 0.15.44 → 0.16.4
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/agent-scheduler/index.js +122 -88
- package/dist/auth-broker/index.js +463 -177
- package/dist/cli/autoaccept-poll.js +4842 -35
- package/dist/cli/drive-write-pretool.mjs +17 -14
- package/dist/cli/notion-write-pretool.mjs +117 -86
- package/dist/cli/self-improve-apply-guard-pretool.mjs +626 -0
- package/dist/cli/self-improve-stop.mjs +428 -0
- package/dist/cli/skill-validate-pretool.mjs +72 -72
- package/dist/cli/switchroom.js +3249 -1241
- package/dist/cli/ui/index.html +1 -1
- package/dist/host-control/main.js +2833 -355
- package/dist/vault/approvals/kernel-server.js +7482 -7439
- package/dist/vault/broker/server.js +11315 -11272
- package/examples/minimal.yaml +1 -0
- package/examples/switchroom.yaml +1 -0
- package/package.json +3 -3
- package/profiles/_base/start.sh.hbs +88 -1
- package/profiles/_shared/execution-discipline.md.hbs +18 -0
- package/profiles/default/CLAUDE.md.hbs +3 -22
- package/telegram-plugin/.claude-plugin/plugin.json +2 -2
- package/telegram-plugin/answer-stream-flag.ts +12 -49
- package/telegram-plugin/answer-stream.ts +5 -150
- package/telegram-plugin/auth-snapshot-format.ts +280 -48
- package/telegram-plugin/auto-fallback-fleet.ts +44 -1
- package/telegram-plugin/context-exhaustion.ts +12 -0
- package/telegram-plugin/demo-mask.ts +154 -0
- package/telegram-plugin/dist/bridge/bridge.js +167 -124
- package/telegram-plugin/dist/gateway/gateway.js +3039 -1159
- package/telegram-plugin/dist/server.js +215 -172
- package/telegram-plugin/docs/waiting-ux-spec.md +2 -2
- package/telegram-plugin/draft-stream.ts +47 -410
- package/telegram-plugin/final-answer-detect.ts +17 -12
- package/telegram-plugin/fleet-fallback-resume.ts +131 -0
- package/telegram-plugin/format.ts +56 -19
- package/telegram-plugin/gateway/auth-add-flow.ts +332 -127
- package/telegram-plugin/gateway/auth-broker-client.ts +2 -2
- package/telegram-plugin/gateway/auth-command.ts +70 -14
- package/telegram-plugin/gateway/clean-shutdown-marker.ts +44 -0
- package/telegram-plugin/gateway/config-approval-handler.test.ts +91 -4
- package/telegram-plugin/gateway/config-approval-handler.ts +94 -13
- package/telegram-plugin/gateway/current-turn-map.ts +188 -0
- package/telegram-plugin/gateway/disconnect-flush.ts +3 -1
- package/telegram-plugin/gateway/effort-command.ts +8 -3
- package/telegram-plugin/gateway/emission-authority.ts +369 -0
- package/telegram-plugin/gateway/feed-open-gate.ts +292 -0
- package/telegram-plugin/gateway/gateway.ts +1837 -291
- package/telegram-plugin/gateway/inject-handler.test.ts +2 -1
- package/telegram-plugin/gateway/ms365-write-approval.test.ts +4 -4
- package/telegram-plugin/gateway/represent-guard.ts +72 -0
- package/telegram-plugin/gateway/status-surface-log.test.ts +5 -4
- package/telegram-plugin/gateway/status-surface-log.ts +14 -3
- package/telegram-plugin/history.ts +33 -11
- package/telegram-plugin/hooks/repo-context-pretool.mjs +26 -0
- package/telegram-plugin/hooks/subagent-tracker-posttool.mjs +5 -0
- package/telegram-plugin/hooks/subagent-tracker-pretool.mjs +8 -0
- package/telegram-plugin/hooks/tool-label-pretool.mjs +39 -15
- package/telegram-plugin/issues-card.ts +4 -0
- package/telegram-plugin/model-unavailable.ts +124 -0
- package/telegram-plugin/narrative-dedup.ts +69 -0
- package/telegram-plugin/over-ping-safety-net.ts +70 -4
- package/telegram-plugin/package.json +3 -3
- package/telegram-plugin/pending-work-progress.ts +12 -0
- package/telegram-plugin/permission-rule.ts +32 -5
- package/telegram-plugin/permission-title.ts +152 -9
- package/telegram-plugin/quota-check.ts +13 -0
- package/telegram-plugin/quota-watch.ts +135 -7
- package/telegram-plugin/registry/turns-schema.test.ts +24 -0
- package/telegram-plugin/registry/turns-schema.ts +9 -0
- package/telegram-plugin/runtime-metrics.ts +13 -0
- package/telegram-plugin/session-tail.ts +96 -11
- package/telegram-plugin/silence-poke.ts +170 -24
- package/telegram-plugin/slot-banner-driver.ts +3 -0
- package/telegram-plugin/status-no-truncate.ts +44 -0
- package/telegram-plugin/status-reactions.ts +20 -3
- package/telegram-plugin/stream-controller.ts +4 -23
- package/telegram-plugin/stream-reply-handler.ts +6 -24
- package/telegram-plugin/streaming-metrics.ts +91 -0
- package/telegram-plugin/subagent-watcher.ts +212 -66
- package/telegram-plugin/tests/activity-ever-opened-sticky.test.ts +47 -0
- package/telegram-plugin/tests/answer-stream-dedup.test.ts +9 -26
- package/telegram-plugin/tests/answer-stream-flag.test.ts +25 -58
- package/telegram-plugin/tests/answer-stream-silent-markers.test.ts +41 -51
- package/telegram-plugin/tests/answer-stream.test.ts +2 -411
- package/telegram-plugin/tests/auth-add-flow.test.ts +488 -253
- package/telegram-plugin/tests/auth-command-format2.test.ts +71 -1
- package/telegram-plugin/tests/auth-snapshot-format.test.ts +376 -6
- package/telegram-plugin/tests/auto-fallback-fleet.test.ts +120 -0
- package/telegram-plugin/tests/cross-turn-card-gate.test.ts +424 -0
- package/telegram-plugin/tests/demo-mask.test.ts +127 -0
- package/telegram-plugin/tests/draft-stream.test.ts +0 -827
- package/telegram-plugin/tests/emission-authority-card-drain-gate.test.ts +236 -0
- package/telegram-plugin/tests/emission-authority-facade.test.ts +488 -0
- package/telegram-plugin/tests/emission-authority-open-gate.test.ts +179 -0
- package/telegram-plugin/tests/emission-authority-ping-gate.test.ts +395 -0
- package/telegram-plugin/tests/emission-determinism-wiring.test.ts +177 -0
- package/telegram-plugin/tests/feed-heartbeat-liveness-open.test.ts +146 -0
- package/telegram-plugin/tests/feed-open-gate.test.ts +259 -0
- package/telegram-plugin/tests/feed-survival.test.ts +526 -0
- package/telegram-plugin/tests/fleet-fallback-resume.test.ts +197 -0
- package/telegram-plugin/tests/gateway-clean-shutdown-marker.test.ts +117 -0
- package/telegram-plugin/tests/gateway-no-reply-single-emit.test.ts +4 -11
- package/telegram-plugin/tests/history.test.ts +60 -0
- package/telegram-plugin/tests/model-unavailable.test.ts +118 -0
- package/telegram-plugin/tests/narrative-dedup.test.ts +118 -0
- package/telegram-plugin/tests/orphaned-reply-rearm.test.ts +285 -0
- package/telegram-plugin/tests/over-ping-final-answer-decoupling.test.ts +194 -0
- package/telegram-plugin/tests/over-ping-safety-net.test.ts +2 -2
- package/telegram-plugin/tests/per-topic-current-turn.test.ts +373 -0
- package/telegram-plugin/tests/permission-card-origin-kill-switch.test.ts +42 -0
- package/telegram-plugin/tests/permission-rule.test.ts +17 -0
- package/telegram-plugin/tests/permission-title.test.ts +206 -17
- package/telegram-plugin/tests/quota-watch.test.ts +252 -9
- package/telegram-plugin/tests/reply-terminal-reaction.test.ts +6 -1
- package/telegram-plugin/tests/repo-context-pretool.test.ts +62 -0
- package/telegram-plugin/tests/represent-guard.test.ts +162 -0
- package/telegram-plugin/tests/session-tail.test.ts +147 -3
- package/telegram-plugin/tests/silence-liveness-wiring.test.ts +18 -0
- package/telegram-plugin/tests/status-card-budget-parity.test.ts +72 -0
- package/telegram-plugin/tests/status-surface-log.test.ts +146 -0
- package/telegram-plugin/tests/subagent-watcher-clip-narrative.test.ts +58 -0
- package/telegram-plugin/tests/subagent-watcher-parent-turn-key.test.ts +102 -0
- package/telegram-plugin/tests/subagent-watcher-workflow-visibility.test.ts +225 -0
- package/telegram-plugin/tests/subagent-watcher.test.ts +147 -0
- package/telegram-plugin/tests/telegram-activity-visibility-integration.test.ts +597 -0
- package/telegram-plugin/tests/telegram-format.test.ts +101 -6
- package/telegram-plugin/tests/tool-activity-summary.test.ts +550 -15
- package/telegram-plugin/tests/tool-label-pretool.test.ts +73 -0
- package/telegram-plugin/tests/tool-label-sidecar.test.ts +44 -0
- package/telegram-plugin/tests/tool-labels.test.ts +67 -0
- package/telegram-plugin/tests/turn-liveness-floor.test.ts +196 -0
- package/telegram-plugin/tests/turn-liveness-invariant.test.ts +340 -0
- package/telegram-plugin/tests/welcome-text.test.ts +32 -3
- package/telegram-plugin/tests/worker-activity-feed.test.ts +470 -22
- package/telegram-plugin/tool-activity-summary.ts +375 -58
- package/telegram-plugin/turn-liveness-floor.ts +240 -0
- package/telegram-plugin/uat/assertions.ts +115 -0
- package/telegram-plugin/uat/driver.ts +68 -0
- package/telegram-plugin/uat/scenarios/bg-sub-agent-dispatch-dm.test.ts +119 -133
- package/telegram-plugin/uat/scenarios/jtbd-answer-pings.test.ts +94 -0
- package/telegram-plugin/uat/scenarios/jtbd-cross-turn-card-dm.test.ts +109 -0
- package/telegram-plugin/uat/scenarios/jtbd-foreground-feed-thinkgap-dm.test.ts +478 -0
- package/telegram-plugin/uat/scenarios/jtbd-foreground-feed-visibility-dm.test.ts +396 -0
- package/telegram-plugin/uat/scenarios/jtbd-liveness-feed-open-dm.test.ts +202 -0
- package/telegram-plugin/uat/scenarios/jtbd-reply-is-last-dm.test.ts +202 -0
- package/telegram-plugin/uat/scenarios/reactions-dm.test.ts +93 -87
- package/telegram-plugin/welcome-text.ts +13 -1
- package/telegram-plugin/worker-activity-feed.ts +157 -82
- package/telegram-plugin/draft-transport.ts +0 -122
- package/telegram-plugin/tests/draft-retirement-wiring.test.ts +0 -82
- package/telegram-plugin/tests/draft-transport.test.ts +0 -211
|
@@ -17,7 +17,7 @@ var __export = (target, all) => {
|
|
|
17
17
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
18
18
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
19
19
|
|
|
20
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
|
|
20
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
|
|
21
21
|
var require_identity = __commonJS((exports) => {
|
|
22
22
|
var ALIAS = Symbol.for("yaml.alias");
|
|
23
23
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -71,7 +71,7 @@ var require_identity = __commonJS((exports) => {
|
|
|
71
71
|
exports.isSeq = isSeq;
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
|
|
74
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
|
|
75
75
|
var require_visit = __commonJS((exports) => {
|
|
76
76
|
var identity = require_identity();
|
|
77
77
|
var BREAK = Symbol("break visit");
|
|
@@ -226,7 +226,7 @@ var require_visit = __commonJS((exports) => {
|
|
|
226
226
|
exports.visitAsync = visitAsync;
|
|
227
227
|
});
|
|
228
228
|
|
|
229
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
|
|
229
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
|
|
230
230
|
var require_directives = __commonJS((exports) => {
|
|
231
231
|
var identity = require_identity();
|
|
232
232
|
var visit = require_visit();
|
|
@@ -378,7 +378,7 @@ var require_directives = __commonJS((exports) => {
|
|
|
378
378
|
exports.Directives = Directives;
|
|
379
379
|
});
|
|
380
380
|
|
|
381
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
|
|
381
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
|
|
382
382
|
var require_anchors = __commonJS((exports) => {
|
|
383
383
|
var identity = require_identity();
|
|
384
384
|
var visit = require_visit();
|
|
@@ -440,7 +440,7 @@ var require_anchors = __commonJS((exports) => {
|
|
|
440
440
|
exports.findNewAnchor = findNewAnchor;
|
|
441
441
|
});
|
|
442
442
|
|
|
443
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
|
|
443
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
|
|
444
444
|
var require_applyReviver = __commonJS((exports) => {
|
|
445
445
|
function applyReviver(reviver, obj, key, val) {
|
|
446
446
|
if (val && typeof val === "object") {
|
|
@@ -487,7 +487,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
|
487
487
|
exports.applyReviver = applyReviver;
|
|
488
488
|
});
|
|
489
489
|
|
|
490
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
|
|
490
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
|
|
491
491
|
var require_toJS = __commonJS((exports) => {
|
|
492
492
|
var identity = require_identity();
|
|
493
493
|
function toJS(value, arg, ctx) {
|
|
@@ -514,7 +514,7 @@ var require_toJS = __commonJS((exports) => {
|
|
|
514
514
|
exports.toJS = toJS;
|
|
515
515
|
});
|
|
516
516
|
|
|
517
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
|
|
517
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
|
|
518
518
|
var require_Node = __commonJS((exports) => {
|
|
519
519
|
var applyReviver = require_applyReviver();
|
|
520
520
|
var identity = require_identity();
|
|
@@ -551,7 +551,7 @@ var require_Node = __commonJS((exports) => {
|
|
|
551
551
|
exports.NodeBase = NodeBase;
|
|
552
552
|
});
|
|
553
553
|
|
|
554
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
|
|
554
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
|
|
555
555
|
var require_Alias = __commonJS((exports) => {
|
|
556
556
|
var anchors = require_anchors();
|
|
557
557
|
var visit = require_visit();
|
|
@@ -659,7 +659,7 @@ var require_Alias = __commonJS((exports) => {
|
|
|
659
659
|
exports.Alias = Alias;
|
|
660
660
|
});
|
|
661
661
|
|
|
662
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
|
|
662
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
|
|
663
663
|
var require_Scalar = __commonJS((exports) => {
|
|
664
664
|
var identity = require_identity();
|
|
665
665
|
var Node = require_Node();
|
|
@@ -687,7 +687,7 @@ var require_Scalar = __commonJS((exports) => {
|
|
|
687
687
|
exports.isScalarValue = isScalarValue;
|
|
688
688
|
});
|
|
689
689
|
|
|
690
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
|
|
690
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
|
|
691
691
|
var require_createNode = __commonJS((exports) => {
|
|
692
692
|
var Alias = require_Alias();
|
|
693
693
|
var identity = require_identity();
|
|
@@ -759,7 +759,7 @@ var require_createNode = __commonJS((exports) => {
|
|
|
759
759
|
exports.createNode = createNode;
|
|
760
760
|
});
|
|
761
761
|
|
|
762
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
|
|
762
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
|
|
763
763
|
var require_Collection = __commonJS((exports) => {
|
|
764
764
|
var createNode = require_createNode();
|
|
765
765
|
var identity = require_identity();
|
|
@@ -874,7 +874,7 @@ var require_Collection = __commonJS((exports) => {
|
|
|
874
874
|
exports.isEmptyPath = isEmptyPath;
|
|
875
875
|
});
|
|
876
876
|
|
|
877
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
877
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
878
878
|
var require_stringifyComment = __commonJS((exports) => {
|
|
879
879
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
880
880
|
function indentComment(comment, indent) {
|
|
@@ -891,7 +891,7 @@ var require_stringifyComment = __commonJS((exports) => {
|
|
|
891
891
|
exports.stringifyComment = stringifyComment;
|
|
892
892
|
});
|
|
893
893
|
|
|
894
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
894
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
895
895
|
var require_foldFlowLines = __commonJS((exports) => {
|
|
896
896
|
var FOLD_FLOW = "flow";
|
|
897
897
|
var FOLD_BLOCK = "block";
|
|
@@ -1028,7 +1028,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1028
1028
|
exports.foldFlowLines = foldFlowLines;
|
|
1029
1029
|
});
|
|
1030
1030
|
|
|
1031
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1031
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1032
1032
|
var require_stringifyString = __commonJS((exports) => {
|
|
1033
1033
|
var Scalar = require_Scalar();
|
|
1034
1034
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1326,7 +1326,7 @@ ${indent}`);
|
|
|
1326
1326
|
exports.stringifyString = stringifyString;
|
|
1327
1327
|
});
|
|
1328
1328
|
|
|
1329
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
|
|
1329
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
|
|
1330
1330
|
var require_stringify = __commonJS((exports) => {
|
|
1331
1331
|
var anchors = require_anchors();
|
|
1332
1332
|
var identity = require_identity();
|
|
@@ -1447,7 +1447,7 @@ ${ctx.indent}${str}`;
|
|
|
1447
1447
|
exports.stringify = stringify;
|
|
1448
1448
|
});
|
|
1449
1449
|
|
|
1450
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1450
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1451
1451
|
var require_stringifyPair = __commonJS((exports) => {
|
|
1452
1452
|
var identity = require_identity();
|
|
1453
1453
|
var Scalar = require_Scalar();
|
|
@@ -1583,7 +1583,7 @@ ${ctx.indent}`;
|
|
|
1583
1583
|
exports.stringifyPair = stringifyPair;
|
|
1584
1584
|
});
|
|
1585
1585
|
|
|
1586
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
|
|
1586
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
|
|
1587
1587
|
var require_log = __commonJS((exports) => {
|
|
1588
1588
|
var node_process = __require("process");
|
|
1589
1589
|
function debug(logLevel, ...messages) {
|
|
@@ -1602,7 +1602,7 @@ var require_log = __commonJS((exports) => {
|
|
|
1602
1602
|
exports.warn = warn;
|
|
1603
1603
|
});
|
|
1604
1604
|
|
|
1605
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1605
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1606
1606
|
var require_merge = __commonJS((exports) => {
|
|
1607
1607
|
var identity = require_identity();
|
|
1608
1608
|
var Scalar = require_Scalar();
|
|
@@ -1656,7 +1656,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
1656
1656
|
exports.merge = merge;
|
|
1657
1657
|
});
|
|
1658
1658
|
|
|
1659
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1659
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1660
1660
|
var require_addPairToJSMap = __commonJS((exports) => {
|
|
1661
1661
|
var log = require_log();
|
|
1662
1662
|
var merge = require_merge();
|
|
@@ -1717,7 +1717,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
1717
1717
|
exports.addPairToJSMap = addPairToJSMap;
|
|
1718
1718
|
});
|
|
1719
1719
|
|
|
1720
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
|
|
1720
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
|
|
1721
1721
|
var require_Pair = __commonJS((exports) => {
|
|
1722
1722
|
var createNode = require_createNode();
|
|
1723
1723
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1755,7 +1755,7 @@ var require_Pair = __commonJS((exports) => {
|
|
|
1755
1755
|
exports.createPair = createPair;
|
|
1756
1756
|
});
|
|
1757
1757
|
|
|
1758
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1758
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1759
1759
|
var require_stringifyCollection = __commonJS((exports) => {
|
|
1760
1760
|
var identity = require_identity();
|
|
1761
1761
|
var stringify = require_stringify();
|
|
@@ -1907,7 +1907,7 @@ ${indent}${end}`;
|
|
|
1907
1907
|
exports.stringifyCollection = stringifyCollection;
|
|
1908
1908
|
});
|
|
1909
1909
|
|
|
1910
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1910
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1911
1911
|
var require_YAMLMap = __commonJS((exports) => {
|
|
1912
1912
|
var stringifyCollection = require_stringifyCollection();
|
|
1913
1913
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2034,7 +2034,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
2034
2034
|
exports.findPair = findPair;
|
|
2035
2035
|
});
|
|
2036
2036
|
|
|
2037
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
|
|
2037
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
|
|
2038
2038
|
var require_map = __commonJS((exports) => {
|
|
2039
2039
|
var identity = require_identity();
|
|
2040
2040
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2053,7 +2053,7 @@ var require_map = __commonJS((exports) => {
|
|
|
2053
2053
|
exports.map = map;
|
|
2054
2054
|
});
|
|
2055
2055
|
|
|
2056
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2056
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2057
2057
|
var require_YAMLSeq = __commonJS((exports) => {
|
|
2058
2058
|
var createNode = require_createNode();
|
|
2059
2059
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2146,7 +2146,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
2146
2146
|
exports.YAMLSeq = YAMLSeq;
|
|
2147
2147
|
});
|
|
2148
2148
|
|
|
2149
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
|
|
2149
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
|
|
2150
2150
|
var require_seq = __commonJS((exports) => {
|
|
2151
2151
|
var identity = require_identity();
|
|
2152
2152
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2165,7 +2165,7 @@ var require_seq = __commonJS((exports) => {
|
|
|
2165
2165
|
exports.seq = seq;
|
|
2166
2166
|
});
|
|
2167
2167
|
|
|
2168
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
|
|
2168
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
|
|
2169
2169
|
var require_string = __commonJS((exports) => {
|
|
2170
2170
|
var stringifyString = require_stringifyString();
|
|
2171
2171
|
var string = {
|
|
@@ -2181,7 +2181,7 @@ var require_string = __commonJS((exports) => {
|
|
|
2181
2181
|
exports.string = string;
|
|
2182
2182
|
});
|
|
2183
2183
|
|
|
2184
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
|
|
2184
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
|
|
2185
2185
|
var require_null = __commonJS((exports) => {
|
|
2186
2186
|
var Scalar = require_Scalar();
|
|
2187
2187
|
var nullTag = {
|
|
@@ -2196,7 +2196,7 @@ var require_null = __commonJS((exports) => {
|
|
|
2196
2196
|
exports.nullTag = nullTag;
|
|
2197
2197
|
});
|
|
2198
2198
|
|
|
2199
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
|
|
2199
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
|
|
2200
2200
|
var require_bool = __commonJS((exports) => {
|
|
2201
2201
|
var Scalar = require_Scalar();
|
|
2202
2202
|
var boolTag = {
|
|
@@ -2217,7 +2217,7 @@ var require_bool = __commonJS((exports) => {
|
|
|
2217
2217
|
exports.boolTag = boolTag;
|
|
2218
2218
|
});
|
|
2219
2219
|
|
|
2220
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2220
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2221
2221
|
var require_stringifyNumber = __commonJS((exports) => {
|
|
2222
2222
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2223
2223
|
if (typeof value === "bigint")
|
|
@@ -2241,7 +2241,7 @@ var require_stringifyNumber = __commonJS((exports) => {
|
|
|
2241
2241
|
exports.stringifyNumber = stringifyNumber;
|
|
2242
2242
|
});
|
|
2243
2243
|
|
|
2244
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
|
|
2244
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
|
|
2245
2245
|
var require_float = __commonJS((exports) => {
|
|
2246
2246
|
var Scalar = require_Scalar();
|
|
2247
2247
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2284,7 +2284,7 @@ var require_float = __commonJS((exports) => {
|
|
|
2284
2284
|
exports.floatNaN = floatNaN;
|
|
2285
2285
|
});
|
|
2286
2286
|
|
|
2287
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
|
|
2287
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
|
|
2288
2288
|
var require_int = __commonJS((exports) => {
|
|
2289
2289
|
var stringifyNumber = require_stringifyNumber();
|
|
2290
2290
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2326,7 +2326,7 @@ var require_int = __commonJS((exports) => {
|
|
|
2326
2326
|
exports.intOct = intOct;
|
|
2327
2327
|
});
|
|
2328
2328
|
|
|
2329
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
|
|
2329
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
|
|
2330
2330
|
var require_schema = __commonJS((exports) => {
|
|
2331
2331
|
var map = require_map();
|
|
2332
2332
|
var _null = require_null();
|
|
@@ -2351,7 +2351,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
2351
2351
|
exports.schema = schema;
|
|
2352
2352
|
});
|
|
2353
2353
|
|
|
2354
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
|
|
2354
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
|
|
2355
2355
|
var require_schema2 = __commonJS((exports) => {
|
|
2356
2356
|
var Scalar = require_Scalar();
|
|
2357
2357
|
var map = require_map();
|
|
@@ -2415,7 +2415,7 @@ var require_schema2 = __commonJS((exports) => {
|
|
|
2415
2415
|
exports.schema = schema;
|
|
2416
2416
|
});
|
|
2417
2417
|
|
|
2418
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2418
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2419
2419
|
var require_binary = __commonJS((exports) => {
|
|
2420
2420
|
var node_buffer = __require("buffer");
|
|
2421
2421
|
var Scalar = require_Scalar();
|
|
@@ -2470,7 +2470,7 @@ var require_binary = __commonJS((exports) => {
|
|
|
2470
2470
|
exports.binary = binary;
|
|
2471
2471
|
});
|
|
2472
2472
|
|
|
2473
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2473
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2474
2474
|
var require_pairs = __commonJS((exports) => {
|
|
2475
2475
|
var identity = require_identity();
|
|
2476
2476
|
var Pair = require_Pair();
|
|
@@ -2545,7 +2545,7 @@ ${cn.comment}` : item.comment;
|
|
|
2545
2545
|
exports.resolvePairs = resolvePairs;
|
|
2546
2546
|
});
|
|
2547
2547
|
|
|
2548
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2548
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2549
2549
|
var require_omap = __commonJS((exports) => {
|
|
2550
2550
|
var identity = require_identity();
|
|
2551
2551
|
var toJS = require_toJS();
|
|
@@ -2617,7 +2617,7 @@ var require_omap = __commonJS((exports) => {
|
|
|
2617
2617
|
exports.omap = omap;
|
|
2618
2618
|
});
|
|
2619
2619
|
|
|
2620
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2620
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2621
2621
|
var require_bool2 = __commonJS((exports) => {
|
|
2622
2622
|
var Scalar = require_Scalar();
|
|
2623
2623
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2646,7 +2646,7 @@ var require_bool2 = __commonJS((exports) => {
|
|
|
2646
2646
|
exports.trueTag = trueTag;
|
|
2647
2647
|
});
|
|
2648
2648
|
|
|
2649
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2649
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2650
2650
|
var require_float2 = __commonJS((exports) => {
|
|
2651
2651
|
var Scalar = require_Scalar();
|
|
2652
2652
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2692,7 +2692,7 @@ var require_float2 = __commonJS((exports) => {
|
|
|
2692
2692
|
exports.floatNaN = floatNaN;
|
|
2693
2693
|
});
|
|
2694
2694
|
|
|
2695
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2695
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2696
2696
|
var require_int2 = __commonJS((exports) => {
|
|
2697
2697
|
var stringifyNumber = require_stringifyNumber();
|
|
2698
2698
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2768,7 +2768,7 @@ var require_int2 = __commonJS((exports) => {
|
|
|
2768
2768
|
exports.intOct = intOct;
|
|
2769
2769
|
});
|
|
2770
2770
|
|
|
2771
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2771
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2772
2772
|
var require_set = __commonJS((exports) => {
|
|
2773
2773
|
var identity = require_identity();
|
|
2774
2774
|
var Pair = require_Pair();
|
|
@@ -2851,7 +2851,7 @@ var require_set = __commonJS((exports) => {
|
|
|
2851
2851
|
exports.set = set;
|
|
2852
2852
|
});
|
|
2853
2853
|
|
|
2854
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
2854
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
2855
2855
|
var require_timestamp = __commonJS((exports) => {
|
|
2856
2856
|
var stringifyNumber = require_stringifyNumber();
|
|
2857
2857
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -2933,7 +2933,7 @@ var require_timestamp = __commonJS((exports) => {
|
|
|
2933
2933
|
exports.timestamp = timestamp;
|
|
2934
2934
|
});
|
|
2935
2935
|
|
|
2936
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
2936
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
2937
2937
|
var require_schema3 = __commonJS((exports) => {
|
|
2938
2938
|
var map = require_map();
|
|
2939
2939
|
var _null = require_null();
|
|
@@ -2974,7 +2974,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
2974
2974
|
exports.schema = schema;
|
|
2975
2975
|
});
|
|
2976
2976
|
|
|
2977
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
|
|
2977
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
|
|
2978
2978
|
var require_tags = __commonJS((exports) => {
|
|
2979
2979
|
var map = require_map();
|
|
2980
2980
|
var _null = require_null();
|
|
@@ -3065,7 +3065,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
3065
3065
|
exports.getTags = getTags;
|
|
3066
3066
|
});
|
|
3067
3067
|
|
|
3068
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
|
|
3068
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
|
|
3069
3069
|
var require_Schema = __commonJS((exports) => {
|
|
3070
3070
|
var identity = require_identity();
|
|
3071
3071
|
var map = require_map();
|
|
@@ -3095,7 +3095,7 @@ var require_Schema = __commonJS((exports) => {
|
|
|
3095
3095
|
exports.Schema = Schema;
|
|
3096
3096
|
});
|
|
3097
3097
|
|
|
3098
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3098
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3099
3099
|
var require_stringifyDocument = __commonJS((exports) => {
|
|
3100
3100
|
var identity = require_identity();
|
|
3101
3101
|
var stringify = require_stringify();
|
|
@@ -3175,7 +3175,7 @@ var require_stringifyDocument = __commonJS((exports) => {
|
|
|
3175
3175
|
exports.stringifyDocument = stringifyDocument;
|
|
3176
3176
|
});
|
|
3177
3177
|
|
|
3178
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
|
|
3178
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
|
|
3179
3179
|
var require_Document = __commonJS((exports) => {
|
|
3180
3180
|
var Alias = require_Alias();
|
|
3181
3181
|
var Collection = require_Collection();
|
|
@@ -3410,7 +3410,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
3410
3410
|
exports.Document = Document;
|
|
3411
3411
|
});
|
|
3412
3412
|
|
|
3413
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
|
|
3413
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
|
|
3414
3414
|
var require_errors = __commonJS((exports) => {
|
|
3415
3415
|
class YAMLError extends Error {
|
|
3416
3416
|
constructor(name, pos, code, message) {
|
|
@@ -3475,7 +3475,7 @@ ${pointer}
|
|
|
3475
3475
|
exports.prettifyError = prettifyError;
|
|
3476
3476
|
});
|
|
3477
3477
|
|
|
3478
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
|
|
3478
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
|
|
3479
3479
|
var require_resolve_props = __commonJS((exports) => {
|
|
3480
3480
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3481
3481
|
let spaceBefore = false;
|
|
@@ -3605,7 +3605,7 @@ var require_resolve_props = __commonJS((exports) => {
|
|
|
3605
3605
|
exports.resolveProps = resolveProps;
|
|
3606
3606
|
});
|
|
3607
3607
|
|
|
3608
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3608
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3609
3609
|
var require_util_contains_newline = __commonJS((exports) => {
|
|
3610
3610
|
function containsNewline(key) {
|
|
3611
3611
|
if (!key)
|
|
@@ -3645,7 +3645,7 @@ var require_util_contains_newline = __commonJS((exports) => {
|
|
|
3645
3645
|
exports.containsNewline = containsNewline;
|
|
3646
3646
|
});
|
|
3647
3647
|
|
|
3648
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3648
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3649
3649
|
var require_util_flow_indent_check = __commonJS((exports) => {
|
|
3650
3650
|
var utilContainsNewline = require_util_contains_newline();
|
|
3651
3651
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3660,7 +3660,7 @@ var require_util_flow_indent_check = __commonJS((exports) => {
|
|
|
3660
3660
|
exports.flowIndentCheck = flowIndentCheck;
|
|
3661
3661
|
});
|
|
3662
3662
|
|
|
3663
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3663
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3664
3664
|
var require_util_map_includes = __commonJS((exports) => {
|
|
3665
3665
|
var identity = require_identity();
|
|
3666
3666
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3673,7 +3673,7 @@ var require_util_map_includes = __commonJS((exports) => {
|
|
|
3673
3673
|
exports.mapIncludes = mapIncludes;
|
|
3674
3674
|
});
|
|
3675
3675
|
|
|
3676
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3676
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3677
3677
|
var require_resolve_block_map = __commonJS((exports) => {
|
|
3678
3678
|
var Pair = require_Pair();
|
|
3679
3679
|
var YAMLMap = require_YAMLMap();
|
|
@@ -3780,7 +3780,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
3780
3780
|
exports.resolveBlockMap = resolveBlockMap;
|
|
3781
3781
|
});
|
|
3782
3782
|
|
|
3783
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
3783
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
3784
3784
|
var require_resolve_block_seq = __commonJS((exports) => {
|
|
3785
3785
|
var YAMLSeq = require_YAMLSeq();
|
|
3786
3786
|
var resolveProps = require_resolve_props();
|
|
@@ -3828,7 +3828,7 @@ var require_resolve_block_seq = __commonJS((exports) => {
|
|
|
3828
3828
|
exports.resolveBlockSeq = resolveBlockSeq;
|
|
3829
3829
|
});
|
|
3830
3830
|
|
|
3831
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
|
|
3831
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
|
|
3832
3832
|
var require_resolve_end = __commonJS((exports) => {
|
|
3833
3833
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
3834
3834
|
let comment = "";
|
|
@@ -3868,7 +3868,7 @@ var require_resolve_end = __commonJS((exports) => {
|
|
|
3868
3868
|
exports.resolveEnd = resolveEnd;
|
|
3869
3869
|
});
|
|
3870
3870
|
|
|
3871
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
3871
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
3872
3872
|
var require_resolve_flow_collection = __commonJS((exports) => {
|
|
3873
3873
|
var identity = require_identity();
|
|
3874
3874
|
var Pair = require_Pair();
|
|
@@ -4059,7 +4059,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
4059
4059
|
exports.resolveFlowCollection = resolveFlowCollection;
|
|
4060
4060
|
});
|
|
4061
4061
|
|
|
4062
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
|
|
4062
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
|
|
4063
4063
|
var require_compose_collection = __commonJS((exports) => {
|
|
4064
4064
|
var identity = require_identity();
|
|
4065
4065
|
var Scalar = require_Scalar();
|
|
@@ -4121,7 +4121,7 @@ var require_compose_collection = __commonJS((exports) => {
|
|
|
4121
4121
|
exports.composeCollection = composeCollection;
|
|
4122
4122
|
});
|
|
4123
4123
|
|
|
4124
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4124
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4125
4125
|
var require_resolve_block_scalar = __commonJS((exports) => {
|
|
4126
4126
|
var Scalar = require_Scalar();
|
|
4127
4127
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4314,7 +4314,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
|
4314
4314
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
4315
4315
|
});
|
|
4316
4316
|
|
|
4317
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4317
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4318
4318
|
var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
4319
4319
|
var Scalar = require_Scalar();
|
|
4320
4320
|
var resolveEnd = require_resolve_end();
|
|
@@ -4530,7 +4530,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
|
4530
4530
|
exports.resolveFlowScalar = resolveFlowScalar;
|
|
4531
4531
|
});
|
|
4532
4532
|
|
|
4533
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4533
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4534
4534
|
var require_compose_scalar = __commonJS((exports) => {
|
|
4535
4535
|
var identity = require_identity();
|
|
4536
4536
|
var Scalar = require_Scalar();
|
|
@@ -4608,7 +4608,7 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
4608
4608
|
exports.composeScalar = composeScalar;
|
|
4609
4609
|
});
|
|
4610
4610
|
|
|
4611
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4611
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4612
4612
|
var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
4613
4613
|
function emptyScalarPosition(offset, before, pos) {
|
|
4614
4614
|
if (before) {
|
|
@@ -4635,7 +4635,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
|
4635
4635
|
exports.emptyScalarPosition = emptyScalarPosition;
|
|
4636
4636
|
});
|
|
4637
4637
|
|
|
4638
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
|
|
4638
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
|
|
4639
4639
|
var require_compose_node = __commonJS((exports) => {
|
|
4640
4640
|
var Alias = require_Alias();
|
|
4641
4641
|
var identity = require_identity();
|
|
@@ -4738,7 +4738,7 @@ var require_compose_node = __commonJS((exports) => {
|
|
|
4738
4738
|
exports.composeNode = composeNode;
|
|
4739
4739
|
});
|
|
4740
4740
|
|
|
4741
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
|
|
4741
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
|
|
4742
4742
|
var require_compose_doc = __commonJS((exports) => {
|
|
4743
4743
|
var Document = require_Document();
|
|
4744
4744
|
var composeNode = require_compose_node();
|
|
@@ -4778,7 +4778,7 @@ var require_compose_doc = __commonJS((exports) => {
|
|
|
4778
4778
|
exports.composeDoc = composeDoc;
|
|
4779
4779
|
});
|
|
4780
4780
|
|
|
4781
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
|
|
4781
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
|
|
4782
4782
|
var require_composer = __commonJS((exports) => {
|
|
4783
4783
|
var node_process = __require("process");
|
|
4784
4784
|
var directives = require_directives();
|
|
@@ -4967,7 +4967,7 @@ ${end.comment}` : end.comment;
|
|
|
4967
4967
|
exports.Composer = Composer;
|
|
4968
4968
|
});
|
|
4969
4969
|
|
|
4970
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
|
|
4970
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
|
|
4971
4971
|
var require_cst_scalar = __commonJS((exports) => {
|
|
4972
4972
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
4973
4973
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5157,7 +5157,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
5157
5157
|
exports.setScalarValue = setScalarValue;
|
|
5158
5158
|
});
|
|
5159
5159
|
|
|
5160
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5160
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5161
5161
|
var require_cst_stringify = __commonJS((exports) => {
|
|
5162
5162
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
5163
5163
|
function stringifyToken(token) {
|
|
@@ -5215,7 +5215,7 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
|
5215
5215
|
exports.stringify = stringify;
|
|
5216
5216
|
});
|
|
5217
5217
|
|
|
5218
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
|
|
5218
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
|
|
5219
5219
|
var require_cst_visit = __commonJS((exports) => {
|
|
5220
5220
|
var BREAK = Symbol("break visit");
|
|
5221
5221
|
var SKIP = Symbol("skip children");
|
|
@@ -5274,7 +5274,7 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
5274
5274
|
exports.visit = visit;
|
|
5275
5275
|
});
|
|
5276
5276
|
|
|
5277
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
|
|
5277
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
|
|
5278
5278
|
var require_cst = __commonJS((exports) => {
|
|
5279
5279
|
var cstScalar = require_cst_scalar();
|
|
5280
5280
|
var cstStringify = require_cst_stringify();
|
|
@@ -5375,7 +5375,7 @@ var require_cst = __commonJS((exports) => {
|
|
|
5375
5375
|
exports.tokenType = tokenType;
|
|
5376
5376
|
});
|
|
5377
5377
|
|
|
5378
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
|
|
5378
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
|
|
5379
5379
|
var require_lexer = __commonJS((exports) => {
|
|
5380
5380
|
var cst = require_cst();
|
|
5381
5381
|
function isEmpty(ch) {
|
|
@@ -5961,7 +5961,7 @@ var require_lexer = __commonJS((exports) => {
|
|
|
5961
5961
|
exports.Lexer = Lexer;
|
|
5962
5962
|
});
|
|
5963
5963
|
|
|
5964
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
|
|
5964
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
|
|
5965
5965
|
var require_line_counter = __commonJS((exports) => {
|
|
5966
5966
|
class LineCounter {
|
|
5967
5967
|
constructor() {
|
|
@@ -5989,7 +5989,7 @@ var require_line_counter = __commonJS((exports) => {
|
|
|
5989
5989
|
exports.LineCounter = LineCounter;
|
|
5990
5990
|
});
|
|
5991
5991
|
|
|
5992
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
|
|
5992
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
|
|
5993
5993
|
var require_parser = __commonJS((exports) => {
|
|
5994
5994
|
var node_process = __require("process");
|
|
5995
5995
|
var cst = require_cst();
|
|
@@ -6838,7 +6838,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
6838
6838
|
exports.Parser = Parser;
|
|
6839
6839
|
});
|
|
6840
6840
|
|
|
6841
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
|
|
6841
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
|
|
6842
6842
|
var require_public_api = __commonJS((exports) => {
|
|
6843
6843
|
var composer = require_composer();
|
|
6844
6844
|
var Document = require_Document();
|
|
@@ -6932,7 +6932,7 @@ var require_public_api = __commonJS((exports) => {
|
|
|
6932
6932
|
exports.stringify = stringify;
|
|
6933
6933
|
});
|
|
6934
6934
|
|
|
6935
|
-
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
|
|
6935
|
+
// ../../switchroom/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
|
|
6936
6936
|
var util, objectUtil, ZodParsedType, getParsedType = (data) => {
|
|
6937
6937
|
const t = typeof data;
|
|
6938
6938
|
switch (t) {
|
|
@@ -7063,7 +7063,7 @@ var init_util = __esm(() => {
|
|
|
7063
7063
|
]);
|
|
7064
7064
|
});
|
|
7065
7065
|
|
|
7066
|
-
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
|
|
7066
|
+
// ../../switchroom/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
|
|
7067
7067
|
var ZodIssueCode, quotelessJson = (obj) => {
|
|
7068
7068
|
const json = JSON.stringify(obj, null, 2);
|
|
7069
7069
|
return json.replace(/"([^"]+)":/g, "$1:");
|
|
@@ -7184,7 +7184,7 @@ var init_ZodError = __esm(() => {
|
|
|
7184
7184
|
};
|
|
7185
7185
|
});
|
|
7186
7186
|
|
|
7187
|
-
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
7187
|
+
// ../../switchroom/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
7188
7188
|
var errorMap = (issue, _ctx) => {
|
|
7189
7189
|
let message;
|
|
7190
7190
|
switch (issue.code) {
|
|
@@ -7291,7 +7291,7 @@ var init_en = __esm(() => {
|
|
|
7291
7291
|
en_default = errorMap;
|
|
7292
7292
|
});
|
|
7293
7293
|
|
|
7294
|
-
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
|
|
7294
|
+
// ../../switchroom/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
|
|
7295
7295
|
function setErrorMap(map) {
|
|
7296
7296
|
overrideErrorMap = map;
|
|
7297
7297
|
}
|
|
@@ -7304,7 +7304,7 @@ var init_errors = __esm(() => {
|
|
|
7304
7304
|
overrideErrorMap = en_default;
|
|
7305
7305
|
});
|
|
7306
7306
|
|
|
7307
|
-
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
7307
|
+
// ../../switchroom/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
7308
7308
|
function addIssueToContext(ctx, issueData) {
|
|
7309
7309
|
const overrideMap = getErrorMap();
|
|
7310
7310
|
const issue = makeIssue({
|
|
@@ -7409,10 +7409,10 @@ var init_parseUtil = __esm(() => {
|
|
|
7409
7409
|
});
|
|
7410
7410
|
});
|
|
7411
7411
|
|
|
7412
|
-
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js
|
|
7412
|
+
// ../../switchroom/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js
|
|
7413
7413
|
var init_typeAliases = () => {};
|
|
7414
7414
|
|
|
7415
|
-
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
|
|
7415
|
+
// ../../switchroom/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
|
|
7416
7416
|
var errorUtil;
|
|
7417
7417
|
var init_errorUtil = __esm(() => {
|
|
7418
7418
|
(function(errorUtil2) {
|
|
@@ -7421,7 +7421,7 @@ var init_errorUtil = __esm(() => {
|
|
|
7421
7421
|
})(errorUtil || (errorUtil = {}));
|
|
7422
7422
|
});
|
|
7423
7423
|
|
|
7424
|
-
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
|
|
7424
|
+
// ../../switchroom/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
|
|
7425
7425
|
class ParseInputLazyPath {
|
|
7426
7426
|
constructor(parent, value, path, key) {
|
|
7427
7427
|
this._cachedPath = [];
|
|
@@ -10772,7 +10772,7 @@ var init_types = __esm(() => {
|
|
|
10772
10772
|
NEVER = INVALID;
|
|
10773
10773
|
});
|
|
10774
10774
|
|
|
10775
|
-
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
|
|
10775
|
+
// ../../switchroom/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
|
|
10776
10776
|
var exports_external = {};
|
|
10777
10777
|
__export(exports_external, {
|
|
10778
10778
|
void: () => voidType,
|
|
@@ -10892,7 +10892,7 @@ var init_external = __esm(() => {
|
|
|
10892
10892
|
init_ZodError();
|
|
10893
10893
|
});
|
|
10894
10894
|
|
|
10895
|
-
// node_modules/.bun/zod@3.25.76/node_modules/zod/index.js
|
|
10895
|
+
// ../../switchroom/node_modules/.bun/zod@3.25.76/node_modules/zod/index.js
|
|
10896
10896
|
var init_zod = __esm(() => {
|
|
10897
10897
|
init_external();
|
|
10898
10898
|
init_external();
|
|
@@ -11656,7 +11656,7 @@ import { readFileSync as readFileSync2, existsSync as existsSync3 } from "node:f
|
|
|
11656
11656
|
import { homedir } from "node:os";
|
|
11657
11657
|
import { resolve as resolve3 } from "node:path";
|
|
11658
11658
|
|
|
11659
|
-
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js
|
|
11659
|
+
// ../../switchroom/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js
|
|
11660
11660
|
var composer = require_composer();
|
|
11661
11661
|
var Document = require_Document();
|
|
11662
11662
|
var Schema = require_Schema();
|
|
@@ -11898,7 +11898,7 @@ var TelegramChannelSchema = exports_external.object({
|
|
|
11898
11898
|
format: exports_external.enum(["html", "markdownv2", "text"]).optional().describe("Default reply format passed to the plugin"),
|
|
11899
11899
|
rate_limit_ms: exports_external.number().optional().describe("Minimum delay between outgoing messages in ms"),
|
|
11900
11900
|
stream_mode: exports_external.enum(["pty", "checklist"]).optional().describe("How live progress is streamed to Telegram during a turn. " + "'pty' (default) surfaces text snapshots of Claude Code's TUI \u2014 " + "compatible but can flicker as Ink re-renders. 'checklist' drives " + "a structured progress card from session-tail events \u2014 stable " + "order, per-tool status emojis, fires only on semantic transitions."),
|
|
11901
|
-
stream_throttle_ms: exports_external.number().int().nonnegative().optional().describe("Throttle window in ms between successive stream edits
|
|
11901
|
+
stream_throttle_ms: exports_external.number().int().nonnegative().optional().describe("Throttle window in ms between successive in-place stream edits " + "during a turn. Lower = more responsive stream, higher = fewer API " + "calls. Floored at 250 by draft-stream itself. Default 400 ms for DMs " + "and 1000 ms for groups/forums (respects Telegram's ~1 edit/sec/message " + "practical ceiling). Override per-agent if a particular agent needs " + "snappier or quieter streaming."),
|
|
11902
11902
|
clear_status_on_completion: exports_external.boolean().optional().describe("When true, the live activity/status feed (the in-place 'what it's " + "doing' message \u2014 Reading X, Searching the web for Y, \u2026) is DELETED " + "when the turn's final answer lands, so only the reply remains. " + "Default false: the status message is left in the chat as a record " + "(its last step marked done) \u2014 no post-then-delete. Per-agent " + "override; cascades defaults \u2192 profile \u2192 agent (per-key)."),
|
|
11903
11903
|
hotReloadStable: exports_external.boolean().optional().describe("If true, the stable workspace prefix (AGENTS.md, SOUL.md, USER.md, " + "IDENTITY.md, TOOLS.md) is re-injected on every turn via " + "the UserPromptSubmit hook instead of baked into --append-system-prompt " + "at session start. Lets workspace edits propagate without a restart. " + "Costs ~5-10% per-turn latency/spend since the stable prefix is no " + "longer prompt-cached."),
|
|
11904
11904
|
inject_on_change: exports_external.boolean().optional().describe("Context-efficiency gate for per-turn hook injection (default true). " + "When true (the default), the turn-pacing directive and dynamic " + "workspace content are only re-emitted when their content changes or " + "the session_id changes \u2014 suppressing redundant injection that " + "otherwise triples compaction frequency. Set to false to revert to " + "the legacy always-emit behaviour (every turn injects the full " + "content regardless of whether it changed)."),
|
|
@@ -11986,6 +11986,14 @@ var GoogleWorkspaceConfigSchema = exports_external.object({
|
|
|
11986
11986
|
approvers: exports_external.array(ApproverIdSchema).min(1).describe("Array of numeric Telegram user IDs authorized to approve drive onboarding. " + "At least one must be specified."),
|
|
11987
11987
|
tier: GoogleWorkspaceTierSchema.optional().describe("RFC G Phase 1: which upstream MCP tier to expose. " + "core (default) = ~16 tools (Drive+Docs+Sheets+Calendar). " + "extended = ~40 tools (+Slides, Forms, Tasks, Chat). " + "complete = ~60+ tools (+Gmail; not recommended yet \u2014 see RFC G \u00a75).")
|
|
11988
11988
|
}).optional();
|
|
11989
|
+
var LiteLLMConfigSchema = exports_external.object({
|
|
11990
|
+
enabled: exports_external.boolean().optional().describe("Opt-in toggle. When true, `switchroom apply` provisions a per-agent " + "LiteLLM virtual key and injects routing env into the container. " + "Default OFF."),
|
|
11991
|
+
base_url: exports_external.string().optional().describe("LiteLLM proxy base URL the agent's claude CLI routes through, e.g. " + "'http://127.0.0.1:4010'. Agents use network_mode:host, so loopback " + "reaches a host-bound proxy. Exported as ANTHROPIC_BASE_URL."),
|
|
11992
|
+
admin_key: exports_external.string().optional().describe("LiteLLM master/admin key used at apply time to provision the team + " + "virtual key. Supports a vault reference (e.g. " + "'vault:litellm/master-key') \u2014 resolution happens at apply time via " + "the vault-broker. Never injected into the agent container."),
|
|
11993
|
+
team: exports_external.string().optional().describe("LiteLLM team alias the per-agent key is created under. Defaults to " + "'switchroom' (applied in code, not as a schema default)."),
|
|
11994
|
+
small_fast_model: exports_external.string().optional().describe("Model id exported as ANTHROPIC_SMALL_FAST_MODEL for the claude CLI's " + "background/fast lane, e.g. 'claude-haiku-4-5-20251001'."),
|
|
11995
|
+
tags: exports_external.record(exports_external.string(), exports_external.string()).optional().describe("Extra key/value metadata tags attached to the provisioned LiteLLM " + "virtual key. Merged per-key across cascade layers (agent wins).")
|
|
11996
|
+
}).optional().describe("LiteLLM routing config \u2014 opt-in per-agent virtual-key auto-provisioning " + "+ routing env. Default OFF. See LiteLLMConfigSchema doc for the full flow.");
|
|
11989
11997
|
var MicrosoftWorkspaceConfigSchema = exports_external.object({
|
|
11990
11998
|
microsoft_client_id: exports_external.string().min(1).optional().describe("Microsoft OAuth application (client) ID from Entra portal " + "(literal string or vault reference e.g. " + "'vault:microsoft-oauth-client-id'). OPTIONAL \u2014 omit it to use " + "switchroom's shipped default Microsoft app (zero-config). " + "Set it only to bring your own Entra app (BYO)."),
|
|
11991
11999
|
microsoft_client_secret: exports_external.string().min(1).optional().describe("Microsoft OAuth client secret. Optional \u2014 public-client apps " + "(Mobile + Desktop platform with 'Allow public client flows' " + "enabled) work without a secret; confidential clients pass " + "one. Either literal or vault reference e.g. " + "'vault:microsoft-oauth-client-secret'."),
|
|
@@ -12082,6 +12090,7 @@ var profileFields = {
|
|
|
12082
12090
|
mcp_servers: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
|
|
12083
12091
|
hooks: AgentHooksSchema,
|
|
12084
12092
|
env: exports_external.record(exports_external.string(), exports_external.string()).optional(),
|
|
12093
|
+
litellm: LiteLLMConfigSchema,
|
|
12085
12094
|
system_prompt_append: exports_external.string().optional(),
|
|
12086
12095
|
skills: exports_external.array(exports_external.string()).optional(),
|
|
12087
12096
|
bundled_skills: exports_external.record(exports_external.string(), exports_external.boolean()).optional().describe("Opt-out map for switchroom's bundled-default skills " + "(e.g. skill-creator, mcp-builder, webapp-testing, pdf, docx, " + "xlsx, pptx, switchroom-cli, switchroom-status, switchroom-health). " + "Set a key to `false` to suppress that default for this agent. " + "Cascades from defaults.bundled_skills."),
|
|
@@ -12154,6 +12163,7 @@ var AgentSchema = exports_external.object({
|
|
|
12154
12163
|
mcp_servers: exports_external.record(exports_external.string(), exports_external.unknown()).optional().describe("Additional MCP server configurations"),
|
|
12155
12164
|
hooks: AgentHooksSchema.describe("Claude Code lifecycle hooks (SessionStart, UserPromptSubmit, Stop, etc). " + "Written to settings.json.hooks in Claude Code's native shape."),
|
|
12156
12165
|
env: exports_external.record(exports_external.string(), exports_external.string()).optional().describe("Environment variables exported in start.sh before claude runs"),
|
|
12166
|
+
litellm: LiteLLMConfigSchema.describe("Per-agent LiteLLM routing override. Presence with `enabled: true` opts " + "this agent IN to per-agent virtual-key auto-provisioning + routing env " + "(falls back to the top-level `litellm:` block for base_url/admin_key/" + "team/small_fast_model). Deep-merges one level over defaults/profile; " + "`tags` merge per-key, agent wins. Default OFF."),
|
|
12157
12167
|
system_prompt_append: exports_external.string().optional().describe("Text passed via claude's --append-system-prompt flag. " + "Appended to the default or CLAUDE.md-derived system prompt."),
|
|
12158
12168
|
skills: exports_external.array(exports_external.string()).optional().describe("Names of skills from switchroom.skills_dir to symlink into this " + "agent's skills/ directory. Unioned with defaults.skills."),
|
|
12159
12169
|
bundled_skills: exports_external.record(exports_external.string(), exports_external.boolean()).optional().describe("Per-agent override of switchroom's bundled-default skills " + "(skill-creator, mcp-builder, webapp-testing, pdf, docx, xlsx, " + "pptx, switchroom-cli/status/health). Set a key to `false` to " + "opt out for this agent. Per-agent value wins over defaults.bundled_skills."),
|
|
@@ -12279,7 +12289,7 @@ var WebServiceConfigSchema = exports_external.object({
|
|
|
12279
12289
|
});
|
|
12280
12290
|
var HostdConfigSchema = exports_external.object({
|
|
12281
12291
|
config_edit_enabled: exports_external.boolean().default(false).describe("Opt-in toggle for the `config_propose_edit` hostd verb (RFC " + "admin-agent-config-edit \u00a73). Default false \u2014 the verb returns " + "`E_CONFIG_EDIT_DISABLED` until the operator explicitly flips " + "this to true. When true, admin agents can propose unified-diff " + "patches against " + "`/state/config/switchroom.yaml`, gated by an operator approval " + "card in the primary chat. Same trust posture as `update_apply` " + "and `agent_restart`: the human-in-the-loop tap is the security " + "boundary, not the agent's judgement."),
|
|
12282
|
-
config_edit_rate_per_hour: exports_external.number().int().min(1).max(20).default(3).describe("Per-requesting-agent rate cap for `config_propose_edit` cards " + "(RFC admin-agent-config-edit \u00a75). Default 3 cards/hour; min 1, " + "max 20.
|
|
12292
|
+
config_edit_rate_per_hour: exports_external.number().int().min(1).max(20).default(3).describe("Per-requesting-agent rate cap for `config_propose_edit` cards " + "(RFC admin-agent-config-edit \u00a75). Default 3 cards/hour; min 1, " + "max 20. ENFORCED server-side: a caller exceeding this in a sliding " + "1-hour window is rejected with `E_RATE_LIMITED` (carrying a " + "`retry_after` fix) instead of posting another operator approval " + "card \u2014 so a looping agent is throttled rather than spamming the chat.")
|
|
12283
12293
|
});
|
|
12284
12294
|
var CronEgressSchema = exports_external.object({
|
|
12285
12295
|
allowed_hosts: exports_external.array(exports_external.string().min(1)).default([]).describe("Hosts a poll may reach (exact, https-only). loopback/private/IP-literal are always rejected."),
|
|
@@ -12312,11 +12322,14 @@ var SwitchroomConfigSchema = exports_external.object({
|
|
|
12312
12322
|
message: "Consumer name must be a path-safe slug (letters, digits, underscore, hyphen)"
|
|
12313
12323
|
}).describe("Socket-path identity; binds at /run/switchroom/auth-broker/<name>/sock"),
|
|
12314
12324
|
account: exports_external.string().min(1).describe("Pinned account label for this consumer. `get-credentials` returns " + "this account's credentials; `mark-exhausted` from this consumer " + "only affects this account."),
|
|
12315
|
-
uid: exports_external.number().int().nonnegative().optional().describe("Optional UID to chown the consumer socket to (defaults to 0 = root, " + "suitable for sibling containers running as root).")
|
|
12316
|
-
|
|
12325
|
+
uid: exports_external.number().int().nonnegative().optional().describe("Optional UID to chown the consumer socket to (defaults to 0 = root, " + "suitable for sibling containers running as root)."),
|
|
12326
|
+
mirror_dir: exports_external.string().optional().describe("Optional host-side directory path. When set, the broker actively " + "writes the consumer's effective-account `.credentials.json` mirror " + "here \u2014 in addition to serving creds on demand via `get-credentials`. " + "Use this to eliminate the pull-latency gap: without a mirror the " + "consumer only gets failover creds at its next scheduled re-fetch " + "(up to 30 min). With a mirror the broker pushes failover creds " + "immediately when it detects exhaustion (consumer-quota-sensor tick, " + "or a mark-exhausted RPC on the pinned account). The directory must " + "be accessible to the broker container (bind-mounted from the host) " + "and to the consumer container; the broker writes " + "`<mirror_dir>/.credentials.json` atomically. Chown is attempted to " + "`uid` (default 0) \u2014 swallowed when CAP_CHOWN is absent.")
|
|
12327
|
+
})).optional().describe("Non-agent peers that hold a broker socket (RFC H \u00a74.8). Each gets " + "its own `/run/switchroom/auth-broker/<name>/sock` chowned to its UID. " + "Consumers cannot be admins; a consumer name that collides with an " + "agent (whether that agent has `admin: true` or not) is a config " + "error caught at schema validation."),
|
|
12328
|
+
allow_overage_accounts: exports_external.array(exports_external.string().min(1)).optional().describe("Opt-in list of account labels (bare strings matching `auth.active` / " + "`auth.fallback_order` entries) that may be served PAST the weekly " + "utilization wall when Anthropic overage billing is available for the " + "account (`overageStatus === 'allowed'`). Overage is REAL MONEY \u2014 " + "default is empty (no account gets this). An account in this list is " + "only kept eligible when its fresh quota snapshot reports " + "`overageStatus: 'allowed'` AND `overageDisabledReason` is NOT " + "'out_of_credits' (i.e. the overage credit has not been exhausted). " + "As soon as `overageDisabledReason` becomes 'out_of_credits', the " + "account is blocked immediately regardless of this flag. Overage lifts " + "ONLY the utilization wall \u2014 it cannot lift an active exhaustion mark " + "written by a real 429 (`mark-exhausted`).")
|
|
12317
12329
|
}).optional().describe("Switchroom-auth-broker configuration (RFC H). Fleet-wide active account, " + "fallback order, admin-agent ACL, and ephemeral-consumer surface. " + "Required from the v0.8+ schema onwards; pre-v0.8 fleets are migrated " + "in-place by `switchroom apply` (see src/auth/migrate-schema.ts)."),
|
|
12318
12330
|
drive: GoogleWorkspaceConfigSchema.describe("RFC D legacy key \u2014 use `google_workspace:` instead. Optional Google " + "Workspace onboarding configuration. When set, supplies Google OAuth " + "client credentials, the approver allowlist for `switchroom drive " + "connect`, and the optional tier knob. Env vars " + "(SWITCHROOM_GOOGLE_CLIENT_ID, SWITCHROOM_GOOGLE_CLIENT_SECRET, " + "SWITCHROOM_APPROVER_USER_ID) take precedence over this block when " + "set, preserving back-compat with the env-only flow shipped in #766."),
|
|
12319
12331
|
google_workspace: GoogleWorkspaceConfigSchema.describe("RFC G canonical key. Top-level Google Workspace configuration \u2014 " + "OAuth client credentials, approver allowlist, and tier knob (`core` " + "| `extended` | `complete`, default `core`). Mutually exclusive with " + "`drive:` at the top level (loader fails fast if both are set)."),
|
|
12332
|
+
litellm: LiteLLMConfigSchema.describe("Top-level LiteLLM routing infra \u2014 global base_url, admin_key (the " + "LiteLLM master key, supports a `vault:` ref), team alias, and " + "small_fast_model shared by every agent that opts in. Set `enabled: " + "true` here to default the whole fleet on (each agent can still set " + "`litellm.enabled: false` to opt out). Default OFF."),
|
|
12320
12333
|
microsoft_workspace: MicrosoftWorkspaceConfigSchema.describe("RFC #1873 (Microsoft 365 integration). Top-level Microsoft Workspace " + "configuration \u2014 OAuth client credentials (Entra app), authority " + "endpoint (defaults to /common for personal MSA + work), and the " + "org_mode opt-in for Teams/SharePoint surfaces. Block is optional; " + "when omitted the broker does not register the Microsoft provider."),
|
|
12321
12334
|
notion_workspace: NotionWorkspaceConfigSchema.describe("RFC reference/rfcs/notion-integration.md. Top-level Notion integration " + "config \u2014 vault key for the integration token, friendly-name \u2192 " + "database UUID map, optional MCP-package version pin, and optional " + "global rate-limit override (default 3 rps, Notion's documented " + "public-API limit). Block is optional; when omitted no agent gets a " + "Notion MCP entry regardless of per-agent config."),
|
|
12322
12335
|
quota: QuotaConfigSchema.optional().describe("Optional weekly/monthly USD spend budgets rendered in the session " + "greeting. Usage is read from ccusage at runtime; no network calls."),
|
|
@@ -12738,6 +12751,24 @@ function mergeAgentConfig(defaultsIn, agentIn) {
|
|
|
12738
12751
|
...merged.env ?? {}
|
|
12739
12752
|
};
|
|
12740
12753
|
}
|
|
12754
|
+
if (defaults.litellm || merged.litellm) {
|
|
12755
|
+
const base = defaults.litellm ?? {};
|
|
12756
|
+
const override = merged.litellm ?? {};
|
|
12757
|
+
const combined = { ...base };
|
|
12758
|
+
for (const [k, v] of Object.entries(override)) {
|
|
12759
|
+
if (v === undefined)
|
|
12760
|
+
continue;
|
|
12761
|
+
if (k === "tags" && base.tags && typeof v === "object" && v !== null && !Array.isArray(v)) {
|
|
12762
|
+
combined.tags = {
|
|
12763
|
+
...base.tags,
|
|
12764
|
+
...v
|
|
12765
|
+
};
|
|
12766
|
+
} else {
|
|
12767
|
+
combined[k] = v;
|
|
12768
|
+
}
|
|
12769
|
+
}
|
|
12770
|
+
merged.litellm = combined;
|
|
12771
|
+
}
|
|
12741
12772
|
if (defaults.subagents || merged.subagents) {
|
|
12742
12773
|
const dSub = defaults.subagents ?? {};
|
|
12743
12774
|
const mSub = merged.subagents ?? {};
|