switchroom 0.14.34 → 0.14.35
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 +80 -80
- package/dist/auth-broker/index.js +80 -80
- package/dist/cli/drive-write-pretool.mjs +10 -10
- package/dist/cli/notion-write-pretool.mjs +84 -83
- package/dist/cli/skill-validate-pretool.mjs +72 -72
- package/dist/cli/switchroom.js +456 -370
- package/dist/host-control/main.js +148 -148
- package/dist/vault/approvals/kernel-server.js +104 -89
- package/dist/vault/broker/server.js +126 -89
- package/package.json +2 -2
- package/telegram-plugin/dist/bridge/bridge.js +112 -112
- package/telegram-plugin/dist/gateway/gateway.js +193 -192
- package/telegram-plugin/dist/server.js +160 -160
|
@@ -346,7 +346,7 @@ var init_merge = __esm(() => {
|
|
|
346
346
|
})(mergeAgentConfig ||= {});
|
|
347
347
|
});
|
|
348
348
|
|
|
349
|
-
//
|
|
349
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
|
|
350
350
|
var require_identity = __commonJS((exports) => {
|
|
351
351
|
var ALIAS = Symbol.for("yaml.alias");
|
|
352
352
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -400,7 +400,7 @@ var require_identity = __commonJS((exports) => {
|
|
|
400
400
|
exports.isSeq = isSeq;
|
|
401
401
|
});
|
|
402
402
|
|
|
403
|
-
//
|
|
403
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
|
|
404
404
|
var require_visit = __commonJS((exports) => {
|
|
405
405
|
var identity = require_identity();
|
|
406
406
|
var BREAK = Symbol("break visit");
|
|
@@ -555,7 +555,7 @@ var require_visit = __commonJS((exports) => {
|
|
|
555
555
|
exports.visitAsync = visitAsync;
|
|
556
556
|
});
|
|
557
557
|
|
|
558
|
-
//
|
|
558
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
|
|
559
559
|
var require_directives = __commonJS((exports) => {
|
|
560
560
|
var identity = require_identity();
|
|
561
561
|
var visit = require_visit();
|
|
@@ -707,7 +707,7 @@ var require_directives = __commonJS((exports) => {
|
|
|
707
707
|
exports.Directives = Directives;
|
|
708
708
|
});
|
|
709
709
|
|
|
710
|
-
//
|
|
710
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
|
|
711
711
|
var require_anchors = __commonJS((exports) => {
|
|
712
712
|
var identity = require_identity();
|
|
713
713
|
var visit = require_visit();
|
|
@@ -769,7 +769,7 @@ var require_anchors = __commonJS((exports) => {
|
|
|
769
769
|
exports.findNewAnchor = findNewAnchor;
|
|
770
770
|
});
|
|
771
771
|
|
|
772
|
-
//
|
|
772
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
|
|
773
773
|
var require_applyReviver = __commonJS((exports) => {
|
|
774
774
|
function applyReviver(reviver, obj, key, val) {
|
|
775
775
|
if (val && typeof val === "object") {
|
|
@@ -816,7 +816,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
|
816
816
|
exports.applyReviver = applyReviver;
|
|
817
817
|
});
|
|
818
818
|
|
|
819
|
-
//
|
|
819
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
|
|
820
820
|
var require_toJS = __commonJS((exports) => {
|
|
821
821
|
var identity = require_identity();
|
|
822
822
|
function toJS(value, arg, ctx) {
|
|
@@ -843,7 +843,7 @@ var require_toJS = __commonJS((exports) => {
|
|
|
843
843
|
exports.toJS = toJS;
|
|
844
844
|
});
|
|
845
845
|
|
|
846
|
-
//
|
|
846
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
|
|
847
847
|
var require_Node = __commonJS((exports) => {
|
|
848
848
|
var applyReviver = require_applyReviver();
|
|
849
849
|
var identity = require_identity();
|
|
@@ -880,7 +880,7 @@ var require_Node = __commonJS((exports) => {
|
|
|
880
880
|
exports.NodeBase = NodeBase;
|
|
881
881
|
});
|
|
882
882
|
|
|
883
|
-
//
|
|
883
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
|
|
884
884
|
var require_Alias = __commonJS((exports) => {
|
|
885
885
|
var anchors = require_anchors();
|
|
886
886
|
var visit = require_visit();
|
|
@@ -988,7 +988,7 @@ var require_Alias = __commonJS((exports) => {
|
|
|
988
988
|
exports.Alias = Alias;
|
|
989
989
|
});
|
|
990
990
|
|
|
991
|
-
//
|
|
991
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
|
|
992
992
|
var require_Scalar = __commonJS((exports) => {
|
|
993
993
|
var identity = require_identity();
|
|
994
994
|
var Node = require_Node();
|
|
@@ -1016,7 +1016,7 @@ var require_Scalar = __commonJS((exports) => {
|
|
|
1016
1016
|
exports.isScalarValue = isScalarValue;
|
|
1017
1017
|
});
|
|
1018
1018
|
|
|
1019
|
-
//
|
|
1019
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
|
|
1020
1020
|
var require_createNode = __commonJS((exports) => {
|
|
1021
1021
|
var Alias = require_Alias();
|
|
1022
1022
|
var identity = require_identity();
|
|
@@ -1088,7 +1088,7 @@ var require_createNode = __commonJS((exports) => {
|
|
|
1088
1088
|
exports.createNode = createNode;
|
|
1089
1089
|
});
|
|
1090
1090
|
|
|
1091
|
-
//
|
|
1091
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
|
|
1092
1092
|
var require_Collection = __commonJS((exports) => {
|
|
1093
1093
|
var createNode = require_createNode();
|
|
1094
1094
|
var identity = require_identity();
|
|
@@ -1203,7 +1203,7 @@ var require_Collection = __commonJS((exports) => {
|
|
|
1203
1203
|
exports.isEmptyPath = isEmptyPath;
|
|
1204
1204
|
});
|
|
1205
1205
|
|
|
1206
|
-
//
|
|
1206
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
1207
1207
|
var require_stringifyComment = __commonJS((exports) => {
|
|
1208
1208
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
1209
1209
|
function indentComment(comment, indent) {
|
|
@@ -1220,7 +1220,7 @@ var require_stringifyComment = __commonJS((exports) => {
|
|
|
1220
1220
|
exports.stringifyComment = stringifyComment;
|
|
1221
1221
|
});
|
|
1222
1222
|
|
|
1223
|
-
//
|
|
1223
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
1224
1224
|
var require_foldFlowLines = __commonJS((exports) => {
|
|
1225
1225
|
var FOLD_FLOW = "flow";
|
|
1226
1226
|
var FOLD_BLOCK = "block";
|
|
@@ -1357,7 +1357,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1357
1357
|
exports.foldFlowLines = foldFlowLines;
|
|
1358
1358
|
});
|
|
1359
1359
|
|
|
1360
|
-
//
|
|
1360
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1361
1361
|
var require_stringifyString = __commonJS((exports) => {
|
|
1362
1362
|
var Scalar = require_Scalar();
|
|
1363
1363
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1655,7 +1655,7 @@ ${indent}`);
|
|
|
1655
1655
|
exports.stringifyString = stringifyString;
|
|
1656
1656
|
});
|
|
1657
1657
|
|
|
1658
|
-
//
|
|
1658
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
|
|
1659
1659
|
var require_stringify = __commonJS((exports) => {
|
|
1660
1660
|
var anchors = require_anchors();
|
|
1661
1661
|
var identity = require_identity();
|
|
@@ -1776,7 +1776,7 @@ ${ctx.indent}${str}`;
|
|
|
1776
1776
|
exports.stringify = stringify;
|
|
1777
1777
|
});
|
|
1778
1778
|
|
|
1779
|
-
//
|
|
1779
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1780
1780
|
var require_stringifyPair = __commonJS((exports) => {
|
|
1781
1781
|
var identity = require_identity();
|
|
1782
1782
|
var Scalar = require_Scalar();
|
|
@@ -1912,7 +1912,7 @@ ${ctx.indent}`;
|
|
|
1912
1912
|
exports.stringifyPair = stringifyPair;
|
|
1913
1913
|
});
|
|
1914
1914
|
|
|
1915
|
-
//
|
|
1915
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
|
|
1916
1916
|
var require_log = __commonJS((exports) => {
|
|
1917
1917
|
var node_process = __require("process");
|
|
1918
1918
|
function debug(logLevel, ...messages) {
|
|
@@ -1931,7 +1931,7 @@ var require_log = __commonJS((exports) => {
|
|
|
1931
1931
|
exports.warn = warn;
|
|
1932
1932
|
});
|
|
1933
1933
|
|
|
1934
|
-
//
|
|
1934
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1935
1935
|
var require_merge = __commonJS((exports) => {
|
|
1936
1936
|
var identity = require_identity();
|
|
1937
1937
|
var Scalar = require_Scalar();
|
|
@@ -1985,7 +1985,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
1985
1985
|
exports.merge = merge;
|
|
1986
1986
|
});
|
|
1987
1987
|
|
|
1988
|
-
//
|
|
1988
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1989
1989
|
var require_addPairToJSMap = __commonJS((exports) => {
|
|
1990
1990
|
var log = require_log();
|
|
1991
1991
|
var merge = require_merge();
|
|
@@ -2046,7 +2046,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
2046
2046
|
exports.addPairToJSMap = addPairToJSMap;
|
|
2047
2047
|
});
|
|
2048
2048
|
|
|
2049
|
-
//
|
|
2049
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
|
|
2050
2050
|
var require_Pair = __commonJS((exports) => {
|
|
2051
2051
|
var createNode = require_createNode();
|
|
2052
2052
|
var stringifyPair = require_stringifyPair();
|
|
@@ -2084,7 +2084,7 @@ var require_Pair = __commonJS((exports) => {
|
|
|
2084
2084
|
exports.createPair = createPair;
|
|
2085
2085
|
});
|
|
2086
2086
|
|
|
2087
|
-
//
|
|
2087
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
2088
2088
|
var require_stringifyCollection = __commonJS((exports) => {
|
|
2089
2089
|
var identity = require_identity();
|
|
2090
2090
|
var stringify = require_stringify();
|
|
@@ -2236,7 +2236,7 @@ ${indent}${end}`;
|
|
|
2236
2236
|
exports.stringifyCollection = stringifyCollection;
|
|
2237
2237
|
});
|
|
2238
2238
|
|
|
2239
|
-
//
|
|
2239
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
2240
2240
|
var require_YAMLMap = __commonJS((exports) => {
|
|
2241
2241
|
var stringifyCollection = require_stringifyCollection();
|
|
2242
2242
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2363,7 +2363,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
2363
2363
|
exports.findPair = findPair;
|
|
2364
2364
|
});
|
|
2365
2365
|
|
|
2366
|
-
//
|
|
2366
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
|
|
2367
2367
|
var require_map = __commonJS((exports) => {
|
|
2368
2368
|
var identity = require_identity();
|
|
2369
2369
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2382,7 +2382,7 @@ var require_map = __commonJS((exports) => {
|
|
|
2382
2382
|
exports.map = map;
|
|
2383
2383
|
});
|
|
2384
2384
|
|
|
2385
|
-
//
|
|
2385
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2386
2386
|
var require_YAMLSeq = __commonJS((exports) => {
|
|
2387
2387
|
var createNode = require_createNode();
|
|
2388
2388
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2475,7 +2475,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
2475
2475
|
exports.YAMLSeq = YAMLSeq;
|
|
2476
2476
|
});
|
|
2477
2477
|
|
|
2478
|
-
//
|
|
2478
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
|
|
2479
2479
|
var require_seq = __commonJS((exports) => {
|
|
2480
2480
|
var identity = require_identity();
|
|
2481
2481
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2494,7 +2494,7 @@ var require_seq = __commonJS((exports) => {
|
|
|
2494
2494
|
exports.seq = seq;
|
|
2495
2495
|
});
|
|
2496
2496
|
|
|
2497
|
-
//
|
|
2497
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
|
|
2498
2498
|
var require_string = __commonJS((exports) => {
|
|
2499
2499
|
var stringifyString = require_stringifyString();
|
|
2500
2500
|
var string = {
|
|
@@ -2510,7 +2510,7 @@ var require_string = __commonJS((exports) => {
|
|
|
2510
2510
|
exports.string = string;
|
|
2511
2511
|
});
|
|
2512
2512
|
|
|
2513
|
-
//
|
|
2513
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
|
|
2514
2514
|
var require_null = __commonJS((exports) => {
|
|
2515
2515
|
var Scalar = require_Scalar();
|
|
2516
2516
|
var nullTag = {
|
|
@@ -2525,7 +2525,7 @@ var require_null = __commonJS((exports) => {
|
|
|
2525
2525
|
exports.nullTag = nullTag;
|
|
2526
2526
|
});
|
|
2527
2527
|
|
|
2528
|
-
//
|
|
2528
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
|
|
2529
2529
|
var require_bool = __commonJS((exports) => {
|
|
2530
2530
|
var Scalar = require_Scalar();
|
|
2531
2531
|
var boolTag = {
|
|
@@ -2546,7 +2546,7 @@ var require_bool = __commonJS((exports) => {
|
|
|
2546
2546
|
exports.boolTag = boolTag;
|
|
2547
2547
|
});
|
|
2548
2548
|
|
|
2549
|
-
//
|
|
2549
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2550
2550
|
var require_stringifyNumber = __commonJS((exports) => {
|
|
2551
2551
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2552
2552
|
if (typeof value === "bigint")
|
|
@@ -2570,7 +2570,7 @@ var require_stringifyNumber = __commonJS((exports) => {
|
|
|
2570
2570
|
exports.stringifyNumber = stringifyNumber;
|
|
2571
2571
|
});
|
|
2572
2572
|
|
|
2573
|
-
//
|
|
2573
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
|
|
2574
2574
|
var require_float = __commonJS((exports) => {
|
|
2575
2575
|
var Scalar = require_Scalar();
|
|
2576
2576
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2613,7 +2613,7 @@ var require_float = __commonJS((exports) => {
|
|
|
2613
2613
|
exports.floatNaN = floatNaN;
|
|
2614
2614
|
});
|
|
2615
2615
|
|
|
2616
|
-
//
|
|
2616
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
|
|
2617
2617
|
var require_int = __commonJS((exports) => {
|
|
2618
2618
|
var stringifyNumber = require_stringifyNumber();
|
|
2619
2619
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2655,7 +2655,7 @@ var require_int = __commonJS((exports) => {
|
|
|
2655
2655
|
exports.intOct = intOct;
|
|
2656
2656
|
});
|
|
2657
2657
|
|
|
2658
|
-
//
|
|
2658
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
|
|
2659
2659
|
var require_schema = __commonJS((exports) => {
|
|
2660
2660
|
var map = require_map();
|
|
2661
2661
|
var _null = require_null();
|
|
@@ -2680,7 +2680,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
2680
2680
|
exports.schema = schema;
|
|
2681
2681
|
});
|
|
2682
2682
|
|
|
2683
|
-
//
|
|
2683
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
|
|
2684
2684
|
var require_schema2 = __commonJS((exports) => {
|
|
2685
2685
|
var Scalar = require_Scalar();
|
|
2686
2686
|
var map = require_map();
|
|
@@ -2744,7 +2744,7 @@ var require_schema2 = __commonJS((exports) => {
|
|
|
2744
2744
|
exports.schema = schema;
|
|
2745
2745
|
});
|
|
2746
2746
|
|
|
2747
|
-
//
|
|
2747
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2748
2748
|
var require_binary = __commonJS((exports) => {
|
|
2749
2749
|
var node_buffer = __require("buffer");
|
|
2750
2750
|
var Scalar = require_Scalar();
|
|
@@ -2799,7 +2799,7 @@ var require_binary = __commonJS((exports) => {
|
|
|
2799
2799
|
exports.binary = binary;
|
|
2800
2800
|
});
|
|
2801
2801
|
|
|
2802
|
-
//
|
|
2802
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2803
2803
|
var require_pairs = __commonJS((exports) => {
|
|
2804
2804
|
var identity = require_identity();
|
|
2805
2805
|
var Pair = require_Pair();
|
|
@@ -2874,7 +2874,7 @@ ${cn.comment}` : item.comment;
|
|
|
2874
2874
|
exports.resolvePairs = resolvePairs;
|
|
2875
2875
|
});
|
|
2876
2876
|
|
|
2877
|
-
//
|
|
2877
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2878
2878
|
var require_omap = __commonJS((exports) => {
|
|
2879
2879
|
var identity = require_identity();
|
|
2880
2880
|
var toJS = require_toJS();
|
|
@@ -2946,7 +2946,7 @@ var require_omap = __commonJS((exports) => {
|
|
|
2946
2946
|
exports.omap = omap;
|
|
2947
2947
|
});
|
|
2948
2948
|
|
|
2949
|
-
//
|
|
2949
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2950
2950
|
var require_bool2 = __commonJS((exports) => {
|
|
2951
2951
|
var Scalar = require_Scalar();
|
|
2952
2952
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2975,7 +2975,7 @@ var require_bool2 = __commonJS((exports) => {
|
|
|
2975
2975
|
exports.trueTag = trueTag;
|
|
2976
2976
|
});
|
|
2977
2977
|
|
|
2978
|
-
//
|
|
2978
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2979
2979
|
var require_float2 = __commonJS((exports) => {
|
|
2980
2980
|
var Scalar = require_Scalar();
|
|
2981
2981
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -3021,7 +3021,7 @@ var require_float2 = __commonJS((exports) => {
|
|
|
3021
3021
|
exports.floatNaN = floatNaN;
|
|
3022
3022
|
});
|
|
3023
3023
|
|
|
3024
|
-
//
|
|
3024
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
3025
3025
|
var require_int2 = __commonJS((exports) => {
|
|
3026
3026
|
var stringifyNumber = require_stringifyNumber();
|
|
3027
3027
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -3097,7 +3097,7 @@ var require_int2 = __commonJS((exports) => {
|
|
|
3097
3097
|
exports.intOct = intOct;
|
|
3098
3098
|
});
|
|
3099
3099
|
|
|
3100
|
-
//
|
|
3100
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
3101
3101
|
var require_set = __commonJS((exports) => {
|
|
3102
3102
|
var identity = require_identity();
|
|
3103
3103
|
var Pair = require_Pair();
|
|
@@ -3180,7 +3180,7 @@ var require_set = __commonJS((exports) => {
|
|
|
3180
3180
|
exports.set = set;
|
|
3181
3181
|
});
|
|
3182
3182
|
|
|
3183
|
-
//
|
|
3183
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3184
3184
|
var require_timestamp = __commonJS((exports) => {
|
|
3185
3185
|
var stringifyNumber = require_stringifyNumber();
|
|
3186
3186
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3262,7 +3262,7 @@ var require_timestamp = __commonJS((exports) => {
|
|
|
3262
3262
|
exports.timestamp = timestamp;
|
|
3263
3263
|
});
|
|
3264
3264
|
|
|
3265
|
-
//
|
|
3265
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3266
3266
|
var require_schema3 = __commonJS((exports) => {
|
|
3267
3267
|
var map = require_map();
|
|
3268
3268
|
var _null = require_null();
|
|
@@ -3303,7 +3303,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
3303
3303
|
exports.schema = schema;
|
|
3304
3304
|
});
|
|
3305
3305
|
|
|
3306
|
-
//
|
|
3306
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
|
|
3307
3307
|
var require_tags = __commonJS((exports) => {
|
|
3308
3308
|
var map = require_map();
|
|
3309
3309
|
var _null = require_null();
|
|
@@ -3394,7 +3394,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
3394
3394
|
exports.getTags = getTags;
|
|
3395
3395
|
});
|
|
3396
3396
|
|
|
3397
|
-
//
|
|
3397
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
|
|
3398
3398
|
var require_Schema = __commonJS((exports) => {
|
|
3399
3399
|
var identity = require_identity();
|
|
3400
3400
|
var map = require_map();
|
|
@@ -3424,7 +3424,7 @@ var require_Schema = __commonJS((exports) => {
|
|
|
3424
3424
|
exports.Schema = Schema;
|
|
3425
3425
|
});
|
|
3426
3426
|
|
|
3427
|
-
//
|
|
3427
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3428
3428
|
var require_stringifyDocument = __commonJS((exports) => {
|
|
3429
3429
|
var identity = require_identity();
|
|
3430
3430
|
var stringify = require_stringify();
|
|
@@ -3504,7 +3504,7 @@ var require_stringifyDocument = __commonJS((exports) => {
|
|
|
3504
3504
|
exports.stringifyDocument = stringifyDocument;
|
|
3505
3505
|
});
|
|
3506
3506
|
|
|
3507
|
-
//
|
|
3507
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
|
|
3508
3508
|
var require_Document = __commonJS((exports) => {
|
|
3509
3509
|
var Alias = require_Alias();
|
|
3510
3510
|
var Collection = require_Collection();
|
|
@@ -3739,7 +3739,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
3739
3739
|
exports.Document = Document;
|
|
3740
3740
|
});
|
|
3741
3741
|
|
|
3742
|
-
//
|
|
3742
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
|
|
3743
3743
|
var require_errors = __commonJS((exports) => {
|
|
3744
3744
|
class YAMLError extends Error {
|
|
3745
3745
|
constructor(name, pos, code, message) {
|
|
@@ -3804,7 +3804,7 @@ ${pointer}
|
|
|
3804
3804
|
exports.prettifyError = prettifyError;
|
|
3805
3805
|
});
|
|
3806
3806
|
|
|
3807
|
-
//
|
|
3807
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
|
|
3808
3808
|
var require_resolve_props = __commonJS((exports) => {
|
|
3809
3809
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3810
3810
|
let spaceBefore = false;
|
|
@@ -3934,7 +3934,7 @@ var require_resolve_props = __commonJS((exports) => {
|
|
|
3934
3934
|
exports.resolveProps = resolveProps;
|
|
3935
3935
|
});
|
|
3936
3936
|
|
|
3937
|
-
//
|
|
3937
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3938
3938
|
var require_util_contains_newline = __commonJS((exports) => {
|
|
3939
3939
|
function containsNewline(key) {
|
|
3940
3940
|
if (!key)
|
|
@@ -3974,7 +3974,7 @@ var require_util_contains_newline = __commonJS((exports) => {
|
|
|
3974
3974
|
exports.containsNewline = containsNewline;
|
|
3975
3975
|
});
|
|
3976
3976
|
|
|
3977
|
-
//
|
|
3977
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3978
3978
|
var require_util_flow_indent_check = __commonJS((exports) => {
|
|
3979
3979
|
var utilContainsNewline = require_util_contains_newline();
|
|
3980
3980
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3989,7 +3989,7 @@ var require_util_flow_indent_check = __commonJS((exports) => {
|
|
|
3989
3989
|
exports.flowIndentCheck = flowIndentCheck;
|
|
3990
3990
|
});
|
|
3991
3991
|
|
|
3992
|
-
//
|
|
3992
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3993
3993
|
var require_util_map_includes = __commonJS((exports) => {
|
|
3994
3994
|
var identity = require_identity();
|
|
3995
3995
|
function mapIncludes(ctx, items, search) {
|
|
@@ -4002,7 +4002,7 @@ var require_util_map_includes = __commonJS((exports) => {
|
|
|
4002
4002
|
exports.mapIncludes = mapIncludes;
|
|
4003
4003
|
});
|
|
4004
4004
|
|
|
4005
|
-
//
|
|
4005
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
4006
4006
|
var require_resolve_block_map = __commonJS((exports) => {
|
|
4007
4007
|
var Pair = require_Pair();
|
|
4008
4008
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4109,7 +4109,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
4109
4109
|
exports.resolveBlockMap = resolveBlockMap;
|
|
4110
4110
|
});
|
|
4111
4111
|
|
|
4112
|
-
//
|
|
4112
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4113
4113
|
var require_resolve_block_seq = __commonJS((exports) => {
|
|
4114
4114
|
var YAMLSeq = require_YAMLSeq();
|
|
4115
4115
|
var resolveProps = require_resolve_props();
|
|
@@ -4157,7 +4157,7 @@ var require_resolve_block_seq = __commonJS((exports) => {
|
|
|
4157
4157
|
exports.resolveBlockSeq = resolveBlockSeq;
|
|
4158
4158
|
});
|
|
4159
4159
|
|
|
4160
|
-
//
|
|
4160
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
|
|
4161
4161
|
var require_resolve_end = __commonJS((exports) => {
|
|
4162
4162
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4163
4163
|
let comment = "";
|
|
@@ -4197,7 +4197,7 @@ var require_resolve_end = __commonJS((exports) => {
|
|
|
4197
4197
|
exports.resolveEnd = resolveEnd;
|
|
4198
4198
|
});
|
|
4199
4199
|
|
|
4200
|
-
//
|
|
4200
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4201
4201
|
var require_resolve_flow_collection = __commonJS((exports) => {
|
|
4202
4202
|
var identity = require_identity();
|
|
4203
4203
|
var Pair = require_Pair();
|
|
@@ -4388,7 +4388,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
4388
4388
|
exports.resolveFlowCollection = resolveFlowCollection;
|
|
4389
4389
|
});
|
|
4390
4390
|
|
|
4391
|
-
//
|
|
4391
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
|
|
4392
4392
|
var require_compose_collection = __commonJS((exports) => {
|
|
4393
4393
|
var identity = require_identity();
|
|
4394
4394
|
var Scalar = require_Scalar();
|
|
@@ -4450,7 +4450,7 @@ var require_compose_collection = __commonJS((exports) => {
|
|
|
4450
4450
|
exports.composeCollection = composeCollection;
|
|
4451
4451
|
});
|
|
4452
4452
|
|
|
4453
|
-
//
|
|
4453
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4454
4454
|
var require_resolve_block_scalar = __commonJS((exports) => {
|
|
4455
4455
|
var Scalar = require_Scalar();
|
|
4456
4456
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4643,7 +4643,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
|
4643
4643
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
4644
4644
|
});
|
|
4645
4645
|
|
|
4646
|
-
//
|
|
4646
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4647
4647
|
var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
4648
4648
|
var Scalar = require_Scalar();
|
|
4649
4649
|
var resolveEnd = require_resolve_end();
|
|
@@ -4859,7 +4859,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
|
4859
4859
|
exports.resolveFlowScalar = resolveFlowScalar;
|
|
4860
4860
|
});
|
|
4861
4861
|
|
|
4862
|
-
//
|
|
4862
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4863
4863
|
var require_compose_scalar = __commonJS((exports) => {
|
|
4864
4864
|
var identity = require_identity();
|
|
4865
4865
|
var Scalar = require_Scalar();
|
|
@@ -4937,7 +4937,7 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
4937
4937
|
exports.composeScalar = composeScalar;
|
|
4938
4938
|
});
|
|
4939
4939
|
|
|
4940
|
-
//
|
|
4940
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4941
4941
|
var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
4942
4942
|
function emptyScalarPosition(offset, before, pos) {
|
|
4943
4943
|
if (before) {
|
|
@@ -4964,7 +4964,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
|
4964
4964
|
exports.emptyScalarPosition = emptyScalarPosition;
|
|
4965
4965
|
});
|
|
4966
4966
|
|
|
4967
|
-
//
|
|
4967
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
|
|
4968
4968
|
var require_compose_node = __commonJS((exports) => {
|
|
4969
4969
|
var Alias = require_Alias();
|
|
4970
4970
|
var identity = require_identity();
|
|
@@ -5067,7 +5067,7 @@ var require_compose_node = __commonJS((exports) => {
|
|
|
5067
5067
|
exports.composeNode = composeNode;
|
|
5068
5068
|
});
|
|
5069
5069
|
|
|
5070
|
-
//
|
|
5070
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
|
|
5071
5071
|
var require_compose_doc = __commonJS((exports) => {
|
|
5072
5072
|
var Document = require_Document();
|
|
5073
5073
|
var composeNode = require_compose_node();
|
|
@@ -5107,7 +5107,7 @@ var require_compose_doc = __commonJS((exports) => {
|
|
|
5107
5107
|
exports.composeDoc = composeDoc;
|
|
5108
5108
|
});
|
|
5109
5109
|
|
|
5110
|
-
//
|
|
5110
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
|
|
5111
5111
|
var require_composer = __commonJS((exports) => {
|
|
5112
5112
|
var node_process = __require("process");
|
|
5113
5113
|
var directives = require_directives();
|
|
@@ -5296,7 +5296,7 @@ ${end.comment}` : end.comment;
|
|
|
5296
5296
|
exports.Composer = Composer;
|
|
5297
5297
|
});
|
|
5298
5298
|
|
|
5299
|
-
//
|
|
5299
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5300
5300
|
var require_cst_scalar = __commonJS((exports) => {
|
|
5301
5301
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5302
5302
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5486,7 +5486,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
5486
5486
|
exports.setScalarValue = setScalarValue;
|
|
5487
5487
|
});
|
|
5488
5488
|
|
|
5489
|
-
//
|
|
5489
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5490
5490
|
var require_cst_stringify = __commonJS((exports) => {
|
|
5491
5491
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
5492
5492
|
function stringifyToken(token) {
|
|
@@ -5544,7 +5544,7 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
|
5544
5544
|
exports.stringify = stringify;
|
|
5545
5545
|
});
|
|
5546
5546
|
|
|
5547
|
-
//
|
|
5547
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
|
|
5548
5548
|
var require_cst_visit = __commonJS((exports) => {
|
|
5549
5549
|
var BREAK = Symbol("break visit");
|
|
5550
5550
|
var SKIP = Symbol("skip children");
|
|
@@ -5603,7 +5603,7 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
5603
5603
|
exports.visit = visit;
|
|
5604
5604
|
});
|
|
5605
5605
|
|
|
5606
|
-
//
|
|
5606
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
|
|
5607
5607
|
var require_cst = __commonJS((exports) => {
|
|
5608
5608
|
var cstScalar = require_cst_scalar();
|
|
5609
5609
|
var cstStringify = require_cst_stringify();
|
|
@@ -5704,7 +5704,7 @@ var require_cst = __commonJS((exports) => {
|
|
|
5704
5704
|
exports.tokenType = tokenType;
|
|
5705
5705
|
});
|
|
5706
5706
|
|
|
5707
|
-
//
|
|
5707
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
|
|
5708
5708
|
var require_lexer = __commonJS((exports) => {
|
|
5709
5709
|
var cst = require_cst();
|
|
5710
5710
|
function isEmpty(ch) {
|
|
@@ -6290,7 +6290,7 @@ var require_lexer = __commonJS((exports) => {
|
|
|
6290
6290
|
exports.Lexer = Lexer;
|
|
6291
6291
|
});
|
|
6292
6292
|
|
|
6293
|
-
//
|
|
6293
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
|
|
6294
6294
|
var require_line_counter = __commonJS((exports) => {
|
|
6295
6295
|
class LineCounter {
|
|
6296
6296
|
constructor() {
|
|
@@ -6318,7 +6318,7 @@ var require_line_counter = __commonJS((exports) => {
|
|
|
6318
6318
|
exports.LineCounter = LineCounter;
|
|
6319
6319
|
});
|
|
6320
6320
|
|
|
6321
|
-
//
|
|
6321
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
|
|
6322
6322
|
var require_parser = __commonJS((exports) => {
|
|
6323
6323
|
var node_process = __require("process");
|
|
6324
6324
|
var cst = require_cst();
|
|
@@ -7167,7 +7167,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
7167
7167
|
exports.Parser = Parser;
|
|
7168
7168
|
});
|
|
7169
7169
|
|
|
7170
|
-
//
|
|
7170
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
|
|
7171
7171
|
var require_public_api = __commonJS((exports) => {
|
|
7172
7172
|
var composer = require_composer();
|
|
7173
7173
|
var Document = require_Document();
|
|
@@ -7261,7 +7261,7 @@ var require_public_api = __commonJS((exports) => {
|
|
|
7261
7261
|
exports.stringify = stringify;
|
|
7262
7262
|
});
|
|
7263
7263
|
|
|
7264
|
-
//
|
|
7264
|
+
// node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js
|
|
7265
7265
|
var composer, Document, Schema, errors, Alias, identity, Pair, Scalar, YAMLMap, YAMLSeq, cst, lexer, lineCounter, parser, publicApi, visit, $Composer, $Document, $Schema, $YAMLError, $YAMLParseError, $YAMLWarning, $Alias, $isAlias, $isCollection, $isDocument, $isMap, $isNode, $isPair, $isScalar, $isSeq, $Pair, $Scalar, $YAMLMap, $YAMLSeq, $Lexer, $LineCounter, $Parser, $parse, $parseAllDocuments, $parseDocument, $stringify, $visit, $visitAsync;
|
|
7266
7266
|
var init_dist = __esm(() => {
|
|
7267
7267
|
composer = require_composer();
|
|
@@ -7310,7 +7310,7 @@ var init_dist = __esm(() => {
|
|
|
7310
7310
|
$visitAsync = visit.visitAsync;
|
|
7311
7311
|
});
|
|
7312
7312
|
|
|
7313
|
-
//
|
|
7313
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
|
|
7314
7314
|
var util, objectUtil, ZodParsedType, getParsedType = (data) => {
|
|
7315
7315
|
const t = typeof data;
|
|
7316
7316
|
switch (t) {
|
|
@@ -7441,7 +7441,7 @@ var init_util = __esm(() => {
|
|
|
7441
7441
|
]);
|
|
7442
7442
|
});
|
|
7443
7443
|
|
|
7444
|
-
//
|
|
7444
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
|
|
7445
7445
|
var ZodIssueCode, quotelessJson = (obj) => {
|
|
7446
7446
|
const json = JSON.stringify(obj, null, 2);
|
|
7447
7447
|
return json.replace(/"([^"]+)":/g, "$1:");
|
|
@@ -7562,7 +7562,7 @@ var init_ZodError = __esm(() => {
|
|
|
7562
7562
|
};
|
|
7563
7563
|
});
|
|
7564
7564
|
|
|
7565
|
-
//
|
|
7565
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
7566
7566
|
var errorMap = (issue, _ctx) => {
|
|
7567
7567
|
let message;
|
|
7568
7568
|
switch (issue.code) {
|
|
@@ -7669,7 +7669,7 @@ var init_en = __esm(() => {
|
|
|
7669
7669
|
en_default = errorMap;
|
|
7670
7670
|
});
|
|
7671
7671
|
|
|
7672
|
-
//
|
|
7672
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
|
|
7673
7673
|
function setErrorMap(map) {
|
|
7674
7674
|
overrideErrorMap = map;
|
|
7675
7675
|
}
|
|
@@ -7682,7 +7682,7 @@ var init_errors = __esm(() => {
|
|
|
7682
7682
|
overrideErrorMap = en_default;
|
|
7683
7683
|
});
|
|
7684
7684
|
|
|
7685
|
-
//
|
|
7685
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
7686
7686
|
function addIssueToContext(ctx, issueData) {
|
|
7687
7687
|
const overrideMap = getErrorMap();
|
|
7688
7688
|
const issue = makeIssue({
|
|
@@ -7787,10 +7787,10 @@ var init_parseUtil = __esm(() => {
|
|
|
7787
7787
|
});
|
|
7788
7788
|
});
|
|
7789
7789
|
|
|
7790
|
-
//
|
|
7790
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js
|
|
7791
7791
|
var init_typeAliases = () => {};
|
|
7792
7792
|
|
|
7793
|
-
//
|
|
7793
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
|
|
7794
7794
|
var errorUtil;
|
|
7795
7795
|
var init_errorUtil = __esm(() => {
|
|
7796
7796
|
(function(errorUtil2) {
|
|
@@ -7799,7 +7799,7 @@ var init_errorUtil = __esm(() => {
|
|
|
7799
7799
|
})(errorUtil || (errorUtil = {}));
|
|
7800
7800
|
});
|
|
7801
7801
|
|
|
7802
|
-
//
|
|
7802
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
|
|
7803
7803
|
class ParseInputLazyPath {
|
|
7804
7804
|
constructor(parent, value, path, key) {
|
|
7805
7805
|
this._cachedPath = [];
|
|
@@ -11150,7 +11150,7 @@ var init_types = __esm(() => {
|
|
|
11150
11150
|
NEVER = INVALID;
|
|
11151
11151
|
});
|
|
11152
11152
|
|
|
11153
|
-
//
|
|
11153
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
|
|
11154
11154
|
var exports_external = {};
|
|
11155
11155
|
__export(exports_external, {
|
|
11156
11156
|
void: () => voidType,
|
|
@@ -11270,7 +11270,7 @@ var init_external = __esm(() => {
|
|
|
11270
11270
|
init_ZodError();
|
|
11271
11271
|
});
|
|
11272
11272
|
|
|
11273
|
-
//
|
|
11273
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/index.js
|
|
11274
11274
|
var init_zod = __esm(() => {
|
|
11275
11275
|
init_external();
|
|
11276
11276
|
init_external();
|
|
@@ -13395,7 +13395,8 @@ var MintGrantRequestSchema = exports_external.object({
|
|
|
13395
13395
|
description: exports_external.string().optional(),
|
|
13396
13396
|
write_keys: exports_external.array(exports_external.string().min(1)).optional(),
|
|
13397
13397
|
passphrase: exports_external.string().optional(),
|
|
13398
|
-
attest_via_posture: exports_external.boolean().optional()
|
|
13398
|
+
attest_via_posture: exports_external.boolean().optional(),
|
|
13399
|
+
decision_id: exports_external.string().optional()
|
|
13399
13400
|
});
|
|
13400
13401
|
var ListGrantsRequestSchema = exports_external.object({
|
|
13401
13402
|
v: exports_external.literal(1),
|
|
@@ -13867,7 +13868,7 @@ function createAuditLogger(opts = {}) {
|
|
|
13867
13868
|
// src/vault/grants.ts
|
|
13868
13869
|
import { randomBytes as randomBytes4 } from "node:crypto";
|
|
13869
13870
|
|
|
13870
|
-
//
|
|
13871
|
+
// node_modules/.bun/bcryptjs@3.0.3/node_modules/bcryptjs/index.js
|
|
13871
13872
|
import nodeCrypto from "crypto";
|
|
13872
13873
|
var randomFallback = null;
|
|
13873
13874
|
function randomBytes3(len) {
|
|
@@ -15732,9 +15733,20 @@ function migrateApprovalSchema(db) {
|
|
|
15732
15733
|
approver_set_canonical TEXT NOT NULL,
|
|
15733
15734
|
last_used_at INTEGER,
|
|
15734
15735
|
revoked_at INTEGER,
|
|
15735
|
-
revoke_reason TEXT
|
|
15736
|
+
revoke_reason TEXT,
|
|
15737
|
+
-- Provenance of the operator-authorization (RFC vault-approval-hard-
|
|
15738
|
+
-- boundary). 'agent': recorded on a per-agent socket — claude shares
|
|
15739
|
+
-- that socket, so it is FORGEABLE and must NOT be trusted as proof an
|
|
15740
|
+
-- operator tapped. 'operator': recorded via the host-side verifier on a
|
|
15741
|
+
-- claude-unreachable channel — the only value the broker's mint gate
|
|
15742
|
+
-- trusts. Default 'agent' (fail-closed for the new gate).
|
|
15743
|
+
origin TEXT NOT NULL DEFAULT 'agent'
|
|
15736
15744
|
)
|
|
15737
15745
|
`);
|
|
15746
|
+
const decisionCols = db.query("PRAGMA table_info(approval_decisions)").all();
|
|
15747
|
+
if (!decisionCols.some((c) => c.name === "origin")) {
|
|
15748
|
+
db.run(`ALTER TABLE approval_decisions ADD COLUMN origin TEXT NOT NULL DEFAULT 'agent'`);
|
|
15749
|
+
}
|
|
15738
15750
|
db.run(`
|
|
15739
15751
|
CREATE INDEX IF NOT EXISTS approval_decisions_lookup
|
|
15740
15752
|
ON approval_decisions(agent_unit, scope, action)
|
|
@@ -15836,7 +15848,8 @@ function rowToDecision(row) {
|
|
|
15836
15848
|
approver_set_canonical: row.approver_set_canonical,
|
|
15837
15849
|
last_used_at: row.last_used_at ?? null,
|
|
15838
15850
|
revoked_at: row.revoked_at ?? null,
|
|
15839
|
-
revoke_reason: row.revoke_reason ?? null
|
|
15851
|
+
revoke_reason: row.revoke_reason ?? null,
|
|
15852
|
+
origin: row.origin === "operator" ? "operator" : "agent"
|
|
15840
15853
|
};
|
|
15841
15854
|
}
|
|
15842
15855
|
var MAX_PENDING_PER_AGENT = 2;
|
|
@@ -16002,8 +16015,8 @@ function recordDecision(db, input, now = Date.now()) {
|
|
|
16002
16015
|
db.run(`INSERT INTO approval_decisions
|
|
16003
16016
|
(id, agent_unit, scope, action, decision,
|
|
16004
16017
|
ttl_expires_at, granted_at, granted_by_user_id,
|
|
16005
|
-
approver_set_canonical, last_used_at, revoked_at, revoke_reason)
|
|
16006
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, NULL, NULL, NULL)`, [
|
|
16018
|
+
approver_set_canonical, last_used_at, revoked_at, revoke_reason, origin)
|
|
16019
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, NULL, NULL, NULL, ?)`, [
|
|
16007
16020
|
id,
|
|
16008
16021
|
input.nonce.agent_unit,
|
|
16009
16022
|
input.nonce.scope,
|
|
@@ -16012,7 +16025,8 @@ function recordDecision(db, input, now = Date.now()) {
|
|
|
16012
16025
|
ttl_expires_at,
|
|
16013
16026
|
now,
|
|
16014
16027
|
input.granted_by_user_id,
|
|
16015
|
-
canonical
|
|
16028
|
+
canonical,
|
|
16029
|
+
input.origin ?? "agent"
|
|
16016
16030
|
]);
|
|
16017
16031
|
db.run(`UPDATE approval_nonces SET decision_id = ? WHERE request_id = ?`, [id, input.nonce.request_id]);
|
|
16018
16032
|
const granted = input.decision === "allow_once" || input.decision === "allow_always" || input.decision === "allow_ttl";
|
|
@@ -16066,6 +16080,13 @@ function listDecisions(db, filter, now = Date.now()) {
|
|
|
16066
16080
|
const rows = db.query(sql).all(...params);
|
|
16067
16081
|
return rows.map(rowToDecision);
|
|
16068
16082
|
}
|
|
16083
|
+
function getDecision(db, id) {
|
|
16084
|
+
const row = db.query(`SELECT * FROM approval_decisions WHERE id = ?`).get(id);
|
|
16085
|
+
return row ? rowToDecision(row) : null;
|
|
16086
|
+
}
|
|
16087
|
+
function isOperatorVerifiedDecision(dec, agent_unit, now = Date.now()) {
|
|
16088
|
+
return dec !== null && dec.origin === "operator" && dec.agent_unit === agent_unit && dec.revoked_at === null && (dec.decision === "allow_once" || dec.decision === "allow_always" || dec.decision === "allow_ttl") && (dec.ttl_expires_at === null || dec.ttl_expires_at > now);
|
|
16089
|
+
}
|
|
16069
16090
|
function getNonce(db, request_id) {
|
|
16070
16091
|
const row = db.query(`SELECT * FROM approval_nonces WHERE request_id = ?`).get(request_id);
|
|
16071
16092
|
return row ? nonceFromRow(row) : null;
|
|
@@ -17081,6 +17102,22 @@ class VaultBroker {
|
|
|
17081
17102
|
socket.write(encodeResponse(errorResponse("LOCKED", "Broker is locked")));
|
|
17082
17103
|
return;
|
|
17083
17104
|
}
|
|
17105
|
+
if (req.op === "mint_grant" && process.env.SWITCHROOM_REQUIRE_OPERATOR_APPROVAL_MINT === "1") {
|
|
17106
|
+
const decisionId = req.decision_id;
|
|
17107
|
+
const dec = decisionId != null && decisionId !== "" ? getDecision(this.grantsDb, decisionId) : null;
|
|
17108
|
+
if (!isOperatorVerifiedDecision(dec, agentName ?? "")) {
|
|
17109
|
+
writeAudit({
|
|
17110
|
+
ts: new Date().toISOString(),
|
|
17111
|
+
op: req.op,
|
|
17112
|
+
caller: auditCaller,
|
|
17113
|
+
pid: auditPid,
|
|
17114
|
+
cgroup: auditCgroup,
|
|
17115
|
+
result: "denied:posture-mint-needs-operator-verified-decision"
|
|
17116
|
+
});
|
|
17117
|
+
socket.write(encodeResponse(errorResponse("DENIED", "posture-attested mint requires an operator-verified approval (host-side tap); none referenced. See RFC vault-approval-hard-boundary.")));
|
|
17118
|
+
return;
|
|
17119
|
+
}
|
|
17120
|
+
}
|
|
17084
17121
|
mintPostureAttested = true;
|
|
17085
17122
|
writeAudit({
|
|
17086
17123
|
ts: new Date().toISOString(),
|