switchroom 0.16.46 → 0.17.0

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.
Files changed (109) hide show
  1. package/dist/agent-scheduler/index.js +83 -81
  2. package/dist/auth-broker/index.js +104 -88
  3. package/dist/cli/autoaccept-poll.js +8 -8
  4. package/dist/cli/drive-write-pretool.mjs +10 -15
  5. package/dist/cli/notion-write-pretool.mjs +85 -83
  6. package/dist/cli/skill-validate-pretool.mjs +91 -91
  7. package/dist/cli/switchroom.js +1720 -1392
  8. package/dist/cli/ui/index.html +84 -12
  9. package/dist/host-control/main.js +209 -173
  10. package/dist/vault/approvals/kernel-server.js +86 -83
  11. package/dist/vault/broker/server.js +284 -139
  12. package/package.json +3 -3
  13. package/profiles/_base/cron-session.sh.hbs +1 -1
  14. package/profiles/_base/start.sh.hbs +54 -3
  15. package/skills/switchroom-architecture/telegram.md +8 -15
  16. package/skills/switchroom-cli/SKILL.md +4 -5
  17. package/skills/telegram-test-harness/SKILL.md +1 -1
  18. package/telegram-plugin/README.md +18 -29
  19. package/telegram-plugin/bridge/bridge.ts +1 -41
  20. package/telegram-plugin/bridge/tool-filter.ts +3 -4
  21. package/telegram-plugin/dist/bridge/bridge.js +120 -155
  22. package/telegram-plugin/dist/gateway/gateway.js +1127 -1029
  23. package/telegram-plugin/dist/server.js +168 -203
  24. package/telegram-plugin/gateway/busy-key-reaper.ts +113 -0
  25. package/telegram-plugin/gateway/disconnect-flush.ts +11 -0
  26. package/telegram-plugin/gateway/escalation-bridge-gate.ts +46 -0
  27. package/telegram-plugin/gateway/gate-parity-probe.ts +102 -0
  28. package/telegram-plugin/gateway/gateway.ts +566 -631
  29. package/telegram-plugin/gateway/inbound-delivery-confirm.ts +89 -7
  30. package/telegram-plugin/gateway/inbound-spool.ts +108 -10
  31. package/telegram-plugin/gateway/model-command.ts +51 -3
  32. package/telegram-plugin/gateway/pending-inbound-buffer.ts +26 -0
  33. package/telegram-plugin/gateway/represent-guard.ts +28 -11
  34. package/telegram-plugin/gateway/status-pin-store.ts +124 -45
  35. package/telegram-plugin/gateway/worker-feed-dispatch.ts +19 -0
  36. package/telegram-plugin/history.ts +5 -0
  37. package/telegram-plugin/hooks/silent-end-interrupt-stop.mjs +1 -2
  38. package/telegram-plugin/hooks/subagent-tracker-pretool.mjs +9 -1
  39. package/telegram-plugin/registry/subagents-schema.ts +126 -1
  40. package/telegram-plugin/registry/turns-schema.ts +65 -1
  41. package/telegram-plugin/session-tail.ts +26 -4
  42. package/telegram-plugin/slot-banner-driver.ts +42 -2
  43. package/telegram-plugin/status-query-telemetry.ts +100 -0
  44. package/telegram-plugin/stream-reply-handler.ts +15 -16
  45. package/telegram-plugin/subagent-watcher.ts +182 -30
  46. package/telegram-plugin/tests/buffer-gate-broadened.test.ts +4 -10
  47. package/telegram-plugin/tests/busy-key-reaper.test.ts +191 -0
  48. package/telegram-plugin/tests/emission-authority-facade.test.ts +11 -17
  49. package/telegram-plugin/tests/emission-determinism-wiring.test.ts +5 -26
  50. package/telegram-plugin/tests/escalation-bridge-gate.test.ts +38 -0
  51. package/telegram-plugin/tests/gate-parity-probe.test.ts +171 -0
  52. package/telegram-plugin/tests/gateway-disconnect-flush.test.ts +13 -0
  53. package/telegram-plugin/tests/gateway-outbound-redact.test.ts +14 -11
  54. package/telegram-plugin/tests/inbound-delivery-confirm.test.ts +146 -0
  55. package/telegram-plugin/tests/inbound-spool.test.ts +143 -0
  56. package/telegram-plugin/tests/model-command.test.ts +54 -1
  57. package/telegram-plugin/tests/multitopic-routing-wiring.test.ts +5 -11
  58. package/telegram-plugin/tests/nested-worker-visibility-harness.test.ts +329 -0
  59. package/telegram-plugin/tests/pending-inbound-buffer.test.ts +53 -0
  60. package/telegram-plugin/tests/progress-update-redact.test.ts +99 -0
  61. package/telegram-plugin/tests/registry-turns.test.ts +67 -0
  62. package/telegram-plugin/tests/represent-guard.test.ts +42 -6
  63. package/telegram-plugin/tests/resume-inbound-builder.test.ts +1 -0
  64. package/telegram-plugin/tests/session-tail.test.ts +10 -1
  65. package/telegram-plugin/tests/slot-banner-boot-recovery.test.ts +246 -0
  66. package/telegram-plugin/tests/status-pin-boot-recovery.test.ts +0 -14
  67. package/telegram-plugin/tests/status-pin-store.test.ts +220 -5
  68. package/telegram-plugin/tests/status-query-telemetry.test.ts +115 -0
  69. package/telegram-plugin/tests/subagent-nested-dispatch.test.ts +209 -0
  70. package/telegram-plugin/tests/subagent-tracker-hooks.test.ts +37 -0
  71. package/telegram-plugin/tests/subagent-watcher-boot-promotion-replay.test.ts +167 -0
  72. package/telegram-plugin/tests/subagent-watcher-env-thresholds.test.ts +46 -3
  73. package/telegram-plugin/tests/subagent-watcher-stall-notification.test.ts +70 -0
  74. package/telegram-plugin/tests/tool-activity-summary.test.ts +16 -0
  75. package/telegram-plugin/tests/tool-filter.test.ts +1 -3
  76. package/telegram-plugin/tests/tool-label-pretool.test.ts +1 -4
  77. package/telegram-plugin/tests/turn-flush-safety.test.ts +222 -1
  78. package/telegram-plugin/tests/vault-request-access-unlock-resume.test.ts +46 -0
  79. package/telegram-plugin/tests/worker-activity-feed.test.ts +202 -9
  80. package/telegram-plugin/tests/worker-feed-dispatch.test.ts +25 -0
  81. package/telegram-plugin/tests/worker-visibility-prose-silent-harness.test.ts +295 -0
  82. package/telegram-plugin/tool-activity-summary.ts +19 -0
  83. package/telegram-plugin/turn-flush-safety.ts +16 -1
  84. package/telegram-plugin/uat/scenarios/jtbd-answer-pings.test.ts +8 -9
  85. package/telegram-plugin/uat/scenarios/jtbd-foreground-feed-visibility-dm.test.ts +1 -1
  86. package/telegram-plugin/uat/scenarios/jtbd-narration-intent-dm.test.ts +1 -1
  87. package/telegram-plugin/worker-activity-feed.ts +75 -15
  88. package/vendor/hindsight-memory/CHANGELOG.md +24 -0
  89. package/vendor/hindsight-memory/README.md +5 -0
  90. package/vendor/hindsight-memory/scripts/lib/client.py +31 -1
  91. package/vendor/hindsight-memory/scripts/lib/config.py +41 -2
  92. package/vendor/hindsight-memory/scripts/lib/content.py +4 -1
  93. package/vendor/hindsight-memory/scripts/lib/daemon.py +11 -2
  94. package/vendor/hindsight-memory/scripts/recall.py +74 -1
  95. package/vendor/hindsight-memory/scripts/retain.py +8 -1
  96. package/vendor/hindsight-memory/scripts/tests/test_config_client_casts.py +111 -0
  97. package/vendor/hindsight-memory/scripts/tests/test_recall_integration.py +85 -1
  98. package/vendor/hindsight-memory/scripts/tests/test_recall_tag_filters.py +107 -0
  99. package/vendor/hindsight-memory/settings.json +4 -0
  100. package/vendor/hindsight-memory/tests/test_client.py +130 -0
  101. package/vendor/hindsight-memory/tests/test_config.py +47 -0
  102. package/vendor/hindsight-memory/tests/test_content.py +18 -0
  103. package/vendor/hindsight-memory/tests/test_hooks.py +62 -0
  104. package/telegram-plugin/gateway/error-envelope-card.ts +0 -64
  105. package/telegram-plugin/gateway/resolve-calling-subagent.ts +0 -78
  106. package/telegram-plugin/silent-reply.ts +0 -58
  107. package/telegram-plugin/tests/error-envelope-unlock-card.test.ts +0 -79
  108. package/telegram-plugin/tests/resolve-calling-subagent.test.ts +0 -269
  109. package/telegram-plugin/tests/silent-reply-guard.test.ts +0 -122
@@ -46,7 +46,7 @@ var __export = (target, all) => {
46
46
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
47
47
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
48
48
 
49
- // node_modules/yaml/dist/nodes/identity.js
49
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
50
50
  var require_identity = __commonJS((exports) => {
51
51
  var ALIAS = Symbol.for("yaml.alias");
52
52
  var DOC = Symbol.for("yaml.document");
@@ -100,7 +100,7 @@ var require_identity = __commonJS((exports) => {
100
100
  exports.isSeq = isSeq;
101
101
  });
102
102
 
103
- // node_modules/yaml/dist/visit.js
103
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
104
104
  var require_visit = __commonJS((exports) => {
105
105
  var identity = require_identity();
106
106
  var BREAK = Symbol("break visit");
@@ -255,7 +255,7 @@ var require_visit = __commonJS((exports) => {
255
255
  exports.visitAsync = visitAsync;
256
256
  });
257
257
 
258
- // node_modules/yaml/dist/doc/directives.js
258
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
259
259
  var require_directives = __commonJS((exports) => {
260
260
  var identity = require_identity();
261
261
  var visit = require_visit();
@@ -407,7 +407,7 @@ var require_directives = __commonJS((exports) => {
407
407
  exports.Directives = Directives;
408
408
  });
409
409
 
410
- // node_modules/yaml/dist/doc/anchors.js
410
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
411
411
  var require_anchors = __commonJS((exports) => {
412
412
  var identity = require_identity();
413
413
  var visit = require_visit();
@@ -469,7 +469,7 @@ var require_anchors = __commonJS((exports) => {
469
469
  exports.findNewAnchor = findNewAnchor;
470
470
  });
471
471
 
472
- // node_modules/yaml/dist/doc/applyReviver.js
472
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
473
473
  var require_applyReviver = __commonJS((exports) => {
474
474
  function applyReviver(reviver, obj, key, val) {
475
475
  if (val && typeof val === "object") {
@@ -516,7 +516,7 @@ var require_applyReviver = __commonJS((exports) => {
516
516
  exports.applyReviver = applyReviver;
517
517
  });
518
518
 
519
- // node_modules/yaml/dist/nodes/toJS.js
519
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
520
520
  var require_toJS = __commonJS((exports) => {
521
521
  var identity = require_identity();
522
522
  function toJS(value, arg, ctx) {
@@ -543,7 +543,7 @@ var require_toJS = __commonJS((exports) => {
543
543
  exports.toJS = toJS;
544
544
  });
545
545
 
546
- // node_modules/yaml/dist/nodes/Node.js
546
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
547
547
  var require_Node = __commonJS((exports) => {
548
548
  var applyReviver = require_applyReviver();
549
549
  var identity = require_identity();
@@ -580,7 +580,7 @@ var require_Node = __commonJS((exports) => {
580
580
  exports.NodeBase = NodeBase;
581
581
  });
582
582
 
583
- // node_modules/yaml/dist/nodes/Alias.js
583
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
584
584
  var require_Alias = __commonJS((exports) => {
585
585
  var anchors = require_anchors();
586
586
  var visit = require_visit();
@@ -688,7 +688,7 @@ var require_Alias = __commonJS((exports) => {
688
688
  exports.Alias = Alias;
689
689
  });
690
690
 
691
- // node_modules/yaml/dist/nodes/Scalar.js
691
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
692
692
  var require_Scalar = __commonJS((exports) => {
693
693
  var identity = require_identity();
694
694
  var Node = require_Node();
@@ -716,7 +716,7 @@ var require_Scalar = __commonJS((exports) => {
716
716
  exports.isScalarValue = isScalarValue;
717
717
  });
718
718
 
719
- // node_modules/yaml/dist/doc/createNode.js
719
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
720
720
  var require_createNode = __commonJS((exports) => {
721
721
  var Alias = require_Alias();
722
722
  var identity = require_identity();
@@ -788,7 +788,7 @@ var require_createNode = __commonJS((exports) => {
788
788
  exports.createNode = createNode;
789
789
  });
790
790
 
791
- // node_modules/yaml/dist/nodes/Collection.js
791
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
792
792
  var require_Collection = __commonJS((exports) => {
793
793
  var createNode = require_createNode();
794
794
  var identity = require_identity();
@@ -903,7 +903,7 @@ var require_Collection = __commonJS((exports) => {
903
903
  exports.isEmptyPath = isEmptyPath;
904
904
  });
905
905
 
906
- // node_modules/yaml/dist/stringify/stringifyComment.js
906
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
907
907
  var require_stringifyComment = __commonJS((exports) => {
908
908
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
909
909
  function indentComment(comment, indent) {
@@ -920,7 +920,7 @@ var require_stringifyComment = __commonJS((exports) => {
920
920
  exports.stringifyComment = stringifyComment;
921
921
  });
922
922
 
923
- // node_modules/yaml/dist/stringify/foldFlowLines.js
923
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
924
924
  var require_foldFlowLines = __commonJS((exports) => {
925
925
  var FOLD_FLOW = "flow";
926
926
  var FOLD_BLOCK = "block";
@@ -1057,7 +1057,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
1057
1057
  exports.foldFlowLines = foldFlowLines;
1058
1058
  });
1059
1059
 
1060
- // node_modules/yaml/dist/stringify/stringifyString.js
1060
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
1061
1061
  var require_stringifyString = __commonJS((exports) => {
1062
1062
  var Scalar = require_Scalar();
1063
1063
  var foldFlowLines = require_foldFlowLines();
@@ -1355,7 +1355,7 @@ ${indent}`);
1355
1355
  exports.stringifyString = stringifyString;
1356
1356
  });
1357
1357
 
1358
- // node_modules/yaml/dist/stringify/stringify.js
1358
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
1359
1359
  var require_stringify = __commonJS((exports) => {
1360
1360
  var anchors = require_anchors();
1361
1361
  var identity = require_identity();
@@ -1476,7 +1476,7 @@ ${ctx.indent}${str}`;
1476
1476
  exports.stringify = stringify;
1477
1477
  });
1478
1478
 
1479
- // node_modules/yaml/dist/stringify/stringifyPair.js
1479
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
1480
1480
  var require_stringifyPair = __commonJS((exports) => {
1481
1481
  var identity = require_identity();
1482
1482
  var Scalar = require_Scalar();
@@ -1612,7 +1612,7 @@ ${ctx.indent}`;
1612
1612
  exports.stringifyPair = stringifyPair;
1613
1613
  });
1614
1614
 
1615
- // node_modules/yaml/dist/log.js
1615
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
1616
1616
  var require_log = __commonJS((exports) => {
1617
1617
  var node_process = __require("process");
1618
1618
  function debug(logLevel, ...messages) {
@@ -1631,7 +1631,7 @@ var require_log = __commonJS((exports) => {
1631
1631
  exports.warn = warn;
1632
1632
  });
1633
1633
 
1634
- // node_modules/yaml/dist/schema/yaml-1.1/merge.js
1634
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1635
1635
  var require_merge = __commonJS((exports) => {
1636
1636
  var identity = require_identity();
1637
1637
  var Scalar = require_Scalar();
@@ -1685,7 +1685,7 @@ var require_merge = __commonJS((exports) => {
1685
1685
  exports.merge = merge;
1686
1686
  });
1687
1687
 
1688
- // node_modules/yaml/dist/nodes/addPairToJSMap.js
1688
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
1689
1689
  var require_addPairToJSMap = __commonJS((exports) => {
1690
1690
  var log = require_log();
1691
1691
  var merge = require_merge();
@@ -1746,7 +1746,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
1746
1746
  exports.addPairToJSMap = addPairToJSMap;
1747
1747
  });
1748
1748
 
1749
- // node_modules/yaml/dist/nodes/Pair.js
1749
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
1750
1750
  var require_Pair = __commonJS((exports) => {
1751
1751
  var createNode = require_createNode();
1752
1752
  var stringifyPair = require_stringifyPair();
@@ -1784,7 +1784,7 @@ var require_Pair = __commonJS((exports) => {
1784
1784
  exports.createPair = createPair;
1785
1785
  });
1786
1786
 
1787
- // node_modules/yaml/dist/stringify/stringifyCollection.js
1787
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
1788
1788
  var require_stringifyCollection = __commonJS((exports) => {
1789
1789
  var identity = require_identity();
1790
1790
  var stringify = require_stringify();
@@ -1936,7 +1936,7 @@ ${indent}${end}`;
1936
1936
  exports.stringifyCollection = stringifyCollection;
1937
1937
  });
1938
1938
 
1939
- // node_modules/yaml/dist/nodes/YAMLMap.js
1939
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
1940
1940
  var require_YAMLMap = __commonJS((exports) => {
1941
1941
  var stringifyCollection = require_stringifyCollection();
1942
1942
  var addPairToJSMap = require_addPairToJSMap();
@@ -2063,7 +2063,7 @@ var require_YAMLMap = __commonJS((exports) => {
2063
2063
  exports.findPair = findPair;
2064
2064
  });
2065
2065
 
2066
- // node_modules/yaml/dist/schema/common/map.js
2066
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
2067
2067
  var require_map = __commonJS((exports) => {
2068
2068
  var identity = require_identity();
2069
2069
  var YAMLMap = require_YAMLMap();
@@ -2082,7 +2082,7 @@ var require_map = __commonJS((exports) => {
2082
2082
  exports.map = map;
2083
2083
  });
2084
2084
 
2085
- // node_modules/yaml/dist/nodes/YAMLSeq.js
2085
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
2086
2086
  var require_YAMLSeq = __commonJS((exports) => {
2087
2087
  var createNode = require_createNode();
2088
2088
  var stringifyCollection = require_stringifyCollection();
@@ -2175,7 +2175,7 @@ var require_YAMLSeq = __commonJS((exports) => {
2175
2175
  exports.YAMLSeq = YAMLSeq;
2176
2176
  });
2177
2177
 
2178
- // node_modules/yaml/dist/schema/common/seq.js
2178
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
2179
2179
  var require_seq = __commonJS((exports) => {
2180
2180
  var identity = require_identity();
2181
2181
  var YAMLSeq = require_YAMLSeq();
@@ -2194,7 +2194,7 @@ var require_seq = __commonJS((exports) => {
2194
2194
  exports.seq = seq;
2195
2195
  });
2196
2196
 
2197
- // node_modules/yaml/dist/schema/common/string.js
2197
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
2198
2198
  var require_string = __commonJS((exports) => {
2199
2199
  var stringifyString = require_stringifyString();
2200
2200
  var string = {
@@ -2210,7 +2210,7 @@ var require_string = __commonJS((exports) => {
2210
2210
  exports.string = string;
2211
2211
  });
2212
2212
 
2213
- // node_modules/yaml/dist/schema/common/null.js
2213
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
2214
2214
  var require_null = __commonJS((exports) => {
2215
2215
  var Scalar = require_Scalar();
2216
2216
  var nullTag = {
@@ -2225,7 +2225,7 @@ var require_null = __commonJS((exports) => {
2225
2225
  exports.nullTag = nullTag;
2226
2226
  });
2227
2227
 
2228
- // node_modules/yaml/dist/schema/core/bool.js
2228
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
2229
2229
  var require_bool = __commonJS((exports) => {
2230
2230
  var Scalar = require_Scalar();
2231
2231
  var boolTag = {
@@ -2246,7 +2246,7 @@ var require_bool = __commonJS((exports) => {
2246
2246
  exports.boolTag = boolTag;
2247
2247
  });
2248
2248
 
2249
- // node_modules/yaml/dist/stringify/stringifyNumber.js
2249
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
2250
2250
  var require_stringifyNumber = __commonJS((exports) => {
2251
2251
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2252
2252
  if (typeof value === "bigint")
@@ -2270,7 +2270,7 @@ var require_stringifyNumber = __commonJS((exports) => {
2270
2270
  exports.stringifyNumber = stringifyNumber;
2271
2271
  });
2272
2272
 
2273
- // node_modules/yaml/dist/schema/core/float.js
2273
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
2274
2274
  var require_float = __commonJS((exports) => {
2275
2275
  var Scalar = require_Scalar();
2276
2276
  var stringifyNumber = require_stringifyNumber();
@@ -2313,7 +2313,7 @@ var require_float = __commonJS((exports) => {
2313
2313
  exports.floatNaN = floatNaN;
2314
2314
  });
2315
2315
 
2316
- // node_modules/yaml/dist/schema/core/int.js
2316
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
2317
2317
  var require_int = __commonJS((exports) => {
2318
2318
  var stringifyNumber = require_stringifyNumber();
2319
2319
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2355,7 +2355,7 @@ var require_int = __commonJS((exports) => {
2355
2355
  exports.intOct = intOct;
2356
2356
  });
2357
2357
 
2358
- // node_modules/yaml/dist/schema/core/schema.js
2358
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
2359
2359
  var require_schema = __commonJS((exports) => {
2360
2360
  var map = require_map();
2361
2361
  var _null = require_null();
@@ -2380,7 +2380,7 @@ var require_schema = __commonJS((exports) => {
2380
2380
  exports.schema = schema;
2381
2381
  });
2382
2382
 
2383
- // node_modules/yaml/dist/schema/json/schema.js
2383
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
2384
2384
  var require_schema2 = __commonJS((exports) => {
2385
2385
  var Scalar = require_Scalar();
2386
2386
  var map = require_map();
@@ -2444,7 +2444,7 @@ var require_schema2 = __commonJS((exports) => {
2444
2444
  exports.schema = schema;
2445
2445
  });
2446
2446
 
2447
- // node_modules/yaml/dist/schema/yaml-1.1/binary.js
2447
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2448
2448
  var require_binary = __commonJS((exports) => {
2449
2449
  var node_buffer = __require("buffer");
2450
2450
  var Scalar = require_Scalar();
@@ -2499,7 +2499,7 @@ var require_binary = __commonJS((exports) => {
2499
2499
  exports.binary = binary;
2500
2500
  });
2501
2501
 
2502
- // node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2502
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2503
2503
  var require_pairs = __commonJS((exports) => {
2504
2504
  var identity = require_identity();
2505
2505
  var Pair = require_Pair();
@@ -2574,7 +2574,7 @@ ${cn.comment}` : item.comment;
2574
2574
  exports.resolvePairs = resolvePairs;
2575
2575
  });
2576
2576
 
2577
- // node_modules/yaml/dist/schema/yaml-1.1/omap.js
2577
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2578
2578
  var require_omap = __commonJS((exports) => {
2579
2579
  var identity = require_identity();
2580
2580
  var toJS = require_toJS();
@@ -2646,7 +2646,7 @@ var require_omap = __commonJS((exports) => {
2646
2646
  exports.omap = omap;
2647
2647
  });
2648
2648
 
2649
- // node_modules/yaml/dist/schema/yaml-1.1/bool.js
2649
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2650
2650
  var require_bool2 = __commonJS((exports) => {
2651
2651
  var Scalar = require_Scalar();
2652
2652
  function boolStringify({ value, source }, ctx) {
@@ -2675,7 +2675,7 @@ var require_bool2 = __commonJS((exports) => {
2675
2675
  exports.trueTag = trueTag;
2676
2676
  });
2677
2677
 
2678
- // node_modules/yaml/dist/schema/yaml-1.1/float.js
2678
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
2679
2679
  var require_float2 = __commonJS((exports) => {
2680
2680
  var Scalar = require_Scalar();
2681
2681
  var stringifyNumber = require_stringifyNumber();
@@ -2721,7 +2721,7 @@ var require_float2 = __commonJS((exports) => {
2721
2721
  exports.floatNaN = floatNaN;
2722
2722
  });
2723
2723
 
2724
- // node_modules/yaml/dist/schema/yaml-1.1/int.js
2724
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
2725
2725
  var require_int2 = __commonJS((exports) => {
2726
2726
  var stringifyNumber = require_stringifyNumber();
2727
2727
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2797,7 +2797,7 @@ var require_int2 = __commonJS((exports) => {
2797
2797
  exports.intOct = intOct;
2798
2798
  });
2799
2799
 
2800
- // node_modules/yaml/dist/schema/yaml-1.1/set.js
2800
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
2801
2801
  var require_set = __commonJS((exports) => {
2802
2802
  var identity = require_identity();
2803
2803
  var Pair = require_Pair();
@@ -2880,7 +2880,7 @@ var require_set = __commonJS((exports) => {
2880
2880
  exports.set = set;
2881
2881
  });
2882
2882
 
2883
- // node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2883
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2884
2884
  var require_timestamp = __commonJS((exports) => {
2885
2885
  var stringifyNumber = require_stringifyNumber();
2886
2886
  function parseSexagesimal(str, asBigInt) {
@@ -2962,7 +2962,7 @@ var require_timestamp = __commonJS((exports) => {
2962
2962
  exports.timestamp = timestamp;
2963
2963
  });
2964
2964
 
2965
- // node_modules/yaml/dist/schema/yaml-1.1/schema.js
2965
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
2966
2966
  var require_schema3 = __commonJS((exports) => {
2967
2967
  var map = require_map();
2968
2968
  var _null = require_null();
@@ -3003,7 +3003,7 @@ var require_schema3 = __commonJS((exports) => {
3003
3003
  exports.schema = schema;
3004
3004
  });
3005
3005
 
3006
- // node_modules/yaml/dist/schema/tags.js
3006
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
3007
3007
  var require_tags = __commonJS((exports) => {
3008
3008
  var map = require_map();
3009
3009
  var _null = require_null();
@@ -3094,7 +3094,7 @@ var require_tags = __commonJS((exports) => {
3094
3094
  exports.getTags = getTags;
3095
3095
  });
3096
3096
 
3097
- // node_modules/yaml/dist/schema/Schema.js
3097
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
3098
3098
  var require_Schema = __commonJS((exports) => {
3099
3099
  var identity = require_identity();
3100
3100
  var map = require_map();
@@ -3124,7 +3124,7 @@ var require_Schema = __commonJS((exports) => {
3124
3124
  exports.Schema = Schema;
3125
3125
  });
3126
3126
 
3127
- // node_modules/yaml/dist/stringify/stringifyDocument.js
3127
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
3128
3128
  var require_stringifyDocument = __commonJS((exports) => {
3129
3129
  var identity = require_identity();
3130
3130
  var stringify = require_stringify();
@@ -3204,7 +3204,7 @@ var require_stringifyDocument = __commonJS((exports) => {
3204
3204
  exports.stringifyDocument = stringifyDocument;
3205
3205
  });
3206
3206
 
3207
- // node_modules/yaml/dist/doc/Document.js
3207
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
3208
3208
  var require_Document = __commonJS((exports) => {
3209
3209
  var Alias = require_Alias();
3210
3210
  var Collection = require_Collection();
@@ -3439,7 +3439,7 @@ var require_Document = __commonJS((exports) => {
3439
3439
  exports.Document = Document;
3440
3440
  });
3441
3441
 
3442
- // node_modules/yaml/dist/errors.js
3442
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
3443
3443
  var require_errors = __commonJS((exports) => {
3444
3444
  class YAMLError extends Error {
3445
3445
  constructor(name, pos, code, message) {
@@ -3504,7 +3504,7 @@ ${pointer}
3504
3504
  exports.prettifyError = prettifyError;
3505
3505
  });
3506
3506
 
3507
- // node_modules/yaml/dist/compose/resolve-props.js
3507
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
3508
3508
  var require_resolve_props = __commonJS((exports) => {
3509
3509
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3510
3510
  let spaceBefore = false;
@@ -3634,7 +3634,7 @@ var require_resolve_props = __commonJS((exports) => {
3634
3634
  exports.resolveProps = resolveProps;
3635
3635
  });
3636
3636
 
3637
- // node_modules/yaml/dist/compose/util-contains-newline.js
3637
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
3638
3638
  var require_util_contains_newline = __commonJS((exports) => {
3639
3639
  function containsNewline(key) {
3640
3640
  if (!key)
@@ -3674,7 +3674,7 @@ var require_util_contains_newline = __commonJS((exports) => {
3674
3674
  exports.containsNewline = containsNewline;
3675
3675
  });
3676
3676
 
3677
- // node_modules/yaml/dist/compose/util-flow-indent-check.js
3677
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
3678
3678
  var require_util_flow_indent_check = __commonJS((exports) => {
3679
3679
  var utilContainsNewline = require_util_contains_newline();
3680
3680
  function flowIndentCheck(indent, fc, onError) {
@@ -3689,7 +3689,7 @@ var require_util_flow_indent_check = __commonJS((exports) => {
3689
3689
  exports.flowIndentCheck = flowIndentCheck;
3690
3690
  });
3691
3691
 
3692
- // node_modules/yaml/dist/compose/util-map-includes.js
3692
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
3693
3693
  var require_util_map_includes = __commonJS((exports) => {
3694
3694
  var identity = require_identity();
3695
3695
  function mapIncludes(ctx, items, search) {
@@ -3702,7 +3702,7 @@ var require_util_map_includes = __commonJS((exports) => {
3702
3702
  exports.mapIncludes = mapIncludes;
3703
3703
  });
3704
3704
 
3705
- // node_modules/yaml/dist/compose/resolve-block-map.js
3705
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
3706
3706
  var require_resolve_block_map = __commonJS((exports) => {
3707
3707
  var Pair = require_Pair();
3708
3708
  var YAMLMap = require_YAMLMap();
@@ -3809,7 +3809,7 @@ var require_resolve_block_map = __commonJS((exports) => {
3809
3809
  exports.resolveBlockMap = resolveBlockMap;
3810
3810
  });
3811
3811
 
3812
- // node_modules/yaml/dist/compose/resolve-block-seq.js
3812
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
3813
3813
  var require_resolve_block_seq = __commonJS((exports) => {
3814
3814
  var YAMLSeq = require_YAMLSeq();
3815
3815
  var resolveProps = require_resolve_props();
@@ -3857,7 +3857,7 @@ var require_resolve_block_seq = __commonJS((exports) => {
3857
3857
  exports.resolveBlockSeq = resolveBlockSeq;
3858
3858
  });
3859
3859
 
3860
- // node_modules/yaml/dist/compose/resolve-end.js
3860
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
3861
3861
  var require_resolve_end = __commonJS((exports) => {
3862
3862
  function resolveEnd(end, offset, reqSpace, onError) {
3863
3863
  let comment = "";
@@ -3897,7 +3897,7 @@ var require_resolve_end = __commonJS((exports) => {
3897
3897
  exports.resolveEnd = resolveEnd;
3898
3898
  });
3899
3899
 
3900
- // node_modules/yaml/dist/compose/resolve-flow-collection.js
3900
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
3901
3901
  var require_resolve_flow_collection = __commonJS((exports) => {
3902
3902
  var identity = require_identity();
3903
3903
  var Pair = require_Pair();
@@ -4088,7 +4088,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
4088
4088
  exports.resolveFlowCollection = resolveFlowCollection;
4089
4089
  });
4090
4090
 
4091
- // node_modules/yaml/dist/compose/compose-collection.js
4091
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
4092
4092
  var require_compose_collection = __commonJS((exports) => {
4093
4093
  var identity = require_identity();
4094
4094
  var Scalar = require_Scalar();
@@ -4150,7 +4150,7 @@ var require_compose_collection = __commonJS((exports) => {
4150
4150
  exports.composeCollection = composeCollection;
4151
4151
  });
4152
4152
 
4153
- // node_modules/yaml/dist/compose/resolve-block-scalar.js
4153
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
4154
4154
  var require_resolve_block_scalar = __commonJS((exports) => {
4155
4155
  var Scalar = require_Scalar();
4156
4156
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -4343,7 +4343,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
4343
4343
  exports.resolveBlockScalar = resolveBlockScalar;
4344
4344
  });
4345
4345
 
4346
- // node_modules/yaml/dist/compose/resolve-flow-scalar.js
4346
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4347
4347
  var require_resolve_flow_scalar = __commonJS((exports) => {
4348
4348
  var Scalar = require_Scalar();
4349
4349
  var resolveEnd = require_resolve_end();
@@ -4559,7 +4559,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
4559
4559
  exports.resolveFlowScalar = resolveFlowScalar;
4560
4560
  });
4561
4561
 
4562
- // node_modules/yaml/dist/compose/compose-scalar.js
4562
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
4563
4563
  var require_compose_scalar = __commonJS((exports) => {
4564
4564
  var identity = require_identity();
4565
4565
  var Scalar = require_Scalar();
@@ -4637,7 +4637,7 @@ var require_compose_scalar = __commonJS((exports) => {
4637
4637
  exports.composeScalar = composeScalar;
4638
4638
  });
4639
4639
 
4640
- // node_modules/yaml/dist/compose/util-empty-scalar-position.js
4640
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4641
4641
  var require_util_empty_scalar_position = __commonJS((exports) => {
4642
4642
  function emptyScalarPosition(offset, before, pos) {
4643
4643
  if (before) {
@@ -4664,7 +4664,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
4664
4664
  exports.emptyScalarPosition = emptyScalarPosition;
4665
4665
  });
4666
4666
 
4667
- // node_modules/yaml/dist/compose/compose-node.js
4667
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
4668
4668
  var require_compose_node = __commonJS((exports) => {
4669
4669
  var Alias = require_Alias();
4670
4670
  var identity = require_identity();
@@ -4767,7 +4767,7 @@ var require_compose_node = __commonJS((exports) => {
4767
4767
  exports.composeNode = composeNode;
4768
4768
  });
4769
4769
 
4770
- // node_modules/yaml/dist/compose/compose-doc.js
4770
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
4771
4771
  var require_compose_doc = __commonJS((exports) => {
4772
4772
  var Document = require_Document();
4773
4773
  var composeNode = require_compose_node();
@@ -4807,7 +4807,7 @@ var require_compose_doc = __commonJS((exports) => {
4807
4807
  exports.composeDoc = composeDoc;
4808
4808
  });
4809
4809
 
4810
- // node_modules/yaml/dist/compose/composer.js
4810
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
4811
4811
  var require_composer = __commonJS((exports) => {
4812
4812
  var node_process = __require("process");
4813
4813
  var directives = require_directives();
@@ -4996,7 +4996,7 @@ ${end.comment}` : end.comment;
4996
4996
  exports.Composer = Composer;
4997
4997
  });
4998
4998
 
4999
- // node_modules/yaml/dist/parse/cst-scalar.js
4999
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
5000
5000
  var require_cst_scalar = __commonJS((exports) => {
5001
5001
  var resolveBlockScalar = require_resolve_block_scalar();
5002
5002
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -5186,7 +5186,7 @@ var require_cst_scalar = __commonJS((exports) => {
5186
5186
  exports.setScalarValue = setScalarValue;
5187
5187
  });
5188
5188
 
5189
- // node_modules/yaml/dist/parse/cst-stringify.js
5189
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
5190
5190
  var require_cst_stringify = __commonJS((exports) => {
5191
5191
  var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
5192
5192
  function stringifyToken(token) {
@@ -5244,7 +5244,7 @@ var require_cst_stringify = __commonJS((exports) => {
5244
5244
  exports.stringify = stringify;
5245
5245
  });
5246
5246
 
5247
- // node_modules/yaml/dist/parse/cst-visit.js
5247
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
5248
5248
  var require_cst_visit = __commonJS((exports) => {
5249
5249
  var BREAK = Symbol("break visit");
5250
5250
  var SKIP = Symbol("skip children");
@@ -5303,7 +5303,7 @@ var require_cst_visit = __commonJS((exports) => {
5303
5303
  exports.visit = visit;
5304
5304
  });
5305
5305
 
5306
- // node_modules/yaml/dist/parse/cst.js
5306
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
5307
5307
  var require_cst = __commonJS((exports) => {
5308
5308
  var cstScalar = require_cst_scalar();
5309
5309
  var cstStringify = require_cst_stringify();
@@ -5404,7 +5404,7 @@ var require_cst = __commonJS((exports) => {
5404
5404
  exports.tokenType = tokenType;
5405
5405
  });
5406
5406
 
5407
- // node_modules/yaml/dist/parse/lexer.js
5407
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
5408
5408
  var require_lexer = __commonJS((exports) => {
5409
5409
  var cst = require_cst();
5410
5410
  function isEmpty(ch) {
@@ -5990,7 +5990,7 @@ var require_lexer = __commonJS((exports) => {
5990
5990
  exports.Lexer = Lexer;
5991
5991
  });
5992
5992
 
5993
- // node_modules/yaml/dist/parse/line-counter.js
5993
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
5994
5994
  var require_line_counter = __commonJS((exports) => {
5995
5995
  class LineCounter {
5996
5996
  constructor() {
@@ -6018,7 +6018,7 @@ var require_line_counter = __commonJS((exports) => {
6018
6018
  exports.LineCounter = LineCounter;
6019
6019
  });
6020
6020
 
6021
- // node_modules/yaml/dist/parse/parser.js
6021
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
6022
6022
  var require_parser = __commonJS((exports) => {
6023
6023
  var node_process = __require("process");
6024
6024
  var cst = require_cst();
@@ -6867,7 +6867,7 @@ var require_parser = __commonJS((exports) => {
6867
6867
  exports.Parser = Parser;
6868
6868
  });
6869
6869
 
6870
- // node_modules/yaml/dist/public-api.js
6870
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
6871
6871
  var require_public_api = __commonJS((exports) => {
6872
6872
  var composer = require_composer();
6873
6873
  var Document = require_Document();
@@ -6961,7 +6961,7 @@ var require_public_api = __commonJS((exports) => {
6961
6961
  exports.stringify = stringify;
6962
6962
  });
6963
6963
 
6964
- // node_modules/yaml/dist/index.js
6964
+ // node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js
6965
6965
  var require_dist = __commonJS((exports) => {
6966
6966
  var composer = require_composer();
6967
6967
  var Document = require_Document();
@@ -7050,7 +7050,7 @@ function deriveSlug(inputs, existing) {
7050
7050
  return `${base}_${n}`;
7051
7051
  }
7052
7052
 
7053
- // node_modules/boundary/lib/index.js
7053
+ // node_modules/.bun/boundary@2.0.0/node_modules/boundary/lib/index.js
7054
7054
  var require_lib = __commonJS((exports2) => {
7055
7055
  Object.defineProperty(exports2, "__esModule", { value: true });
7056
7056
  exports2.binarySearch = exports2.upperBound = exports2.lowerBound = exports2.compare = undefined;
@@ -7097,7 +7097,7 @@ var require_lib = __commonJS((exports2) => {
7097
7097
  exports2.binarySearch = binarySearch;
7098
7098
  });
7099
7099
 
7100
- // node_modules/structured-source/lib/structured-source.js
7100
+ // node_modules/.bun/structured-source@4.0.0/node_modules/structured-source/lib/structured-source.js
7101
7101
  var require_structured_source = __commonJS((exports2) => {
7102
7102
  Object.defineProperty(exports2, "__esModule", { value: true });
7103
7103
  exports2.StructuredSource = undefined;
@@ -7152,13 +7152,13 @@ var require_structured_source = __commonJS((exports2) => {
7152
7152
  }
7153
7153
  exports2.StructuredSource = StructuredSource;
7154
7154
  });
7155
- // node_modules/@secretlint/core/module/SecretLintSourceCodeImpl.js
7155
+ // node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/SecretLintSourceCodeImpl.js
7156
7156
  var import_structured_source;
7157
7157
  var init_SecretLintSourceCodeImpl = __esm(() => {
7158
7158
  import_structured_source = __toESM(require_structured_source(), 1);
7159
7159
  });
7160
7160
 
7161
- // node_modules/@secretlint/core/module/helper/promise-event-emitter.js
7161
+ // node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/helper/promise-event-emitter.js
7162
7162
  class EventEmitter {
7163
7163
  #listeners = new Map;
7164
7164
  on(type, listener) {
@@ -7197,9 +7197,9 @@ class EventEmitter {
7197
7197
  return Array.from(this.#listeners.get(type) ?? []);
7198
7198
  }
7199
7199
  }
7200
- // node_modules/@secretlint/core/module/RuleContext.js
7200
+ // node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RuleContext.js
7201
7201
  var init_RuleContext = () => {};
7202
- // node_modules/@secretlint/profiler/module/index.js
7202
+ // node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/index.js
7203
7203
  class SecretLintProfiler {
7204
7204
  perf;
7205
7205
  entries = [];
@@ -7256,7 +7256,7 @@ class SecretLintProfiler {
7256
7256
  }
7257
7257
  }
7258
7258
 
7259
- // node_modules/@secretlint/profiler/module/node.js
7259
+ // node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/node.js
7260
7260
  import perf_hooks from "node:perf_hooks";
7261
7261
 
7262
7262
  class NullPerformanceObserver {
@@ -7271,19 +7271,19 @@ var init_node = __esm(() => {
7271
7271
  });
7272
7272
  });
7273
7273
 
7274
- // node_modules/@secretlint/core/module/RunningEvents.js
7274
+ // node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RunningEvents.js
7275
7275
  var init_RunningEvents = __esm(() => {
7276
7276
  init_node();
7277
7277
  });
7278
7278
 
7279
- // node_modules/@secretlint/core/module/RulePresetContext.js
7279
+ // node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RulePresetContext.js
7280
7280
  var init_RulePresetContext = __esm(() => {
7281
7281
  init_RuleContext();
7282
7282
  });
7283
- // node_modules/@secretlint/core/module/messages/index.js
7283
+ // node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/messages/index.js
7284
7284
  var init_messages = () => {};
7285
7285
 
7286
- // node_modules/ms/index.js
7286
+ // node_modules/.bun/ms@2.1.3/node_modules/ms/index.js
7287
7287
  var require_ms = __commonJS((exports2, module) => {
7288
7288
  var s = 1000;
7289
7289
  var m = s * 60;
@@ -7393,7 +7393,7 @@ var require_ms = __commonJS((exports2, module) => {
7393
7393
  }
7394
7394
  });
7395
7395
 
7396
- // node_modules/debug/src/common.js
7396
+ // node_modules/.bun/debug@4.4.3/node_modules/debug/src/common.js
7397
7397
  var require_common = __commonJS((exports2, module) => {
7398
7398
  function setup(env) {
7399
7399
  createDebug.debug = createDebug;
@@ -7568,7 +7568,7 @@ var require_common = __commonJS((exports2, module) => {
7568
7568
  module.exports = setup;
7569
7569
  });
7570
7570
 
7571
- // node_modules/debug/src/browser.js
7571
+ // node_modules/.bun/debug@4.4.3/node_modules/debug/src/browser.js
7572
7572
  var require_browser = __commonJS((exports2, module) => {
7573
7573
  exports2.formatArgs = formatArgs;
7574
7574
  exports2.save = save;
@@ -7728,7 +7728,7 @@ var require_browser = __commonJS((exports2, module) => {
7728
7728
  };
7729
7729
  });
7730
7730
 
7731
- // node_modules/has-flag/index.js
7731
+ // node_modules/.bun/has-flag@4.0.0/node_modules/has-flag/index.js
7732
7732
  var require_has_flag = __commonJS((exports2, module) => {
7733
7733
  module.exports = (flag, argv = process.argv) => {
7734
7734
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
@@ -7738,7 +7738,7 @@ var require_has_flag = __commonJS((exports2, module) => {
7738
7738
  };
7739
7739
  });
7740
7740
 
7741
- // node_modules/supports-color/index.js
7741
+ // node_modules/.bun/supports-color@7.2.0/node_modules/supports-color/index.js
7742
7742
  var require_supports_color = __commonJS((exports2, module) => {
7743
7743
  var os = __require("os");
7744
7744
  var tty = __require("tty");
@@ -7837,7 +7837,7 @@ var require_supports_color = __commonJS((exports2, module) => {
7837
7837
  };
7838
7838
  });
7839
7839
 
7840
- // node_modules/debug/src/node.js
7840
+ // node_modules/.bun/debug@4.4.3/node_modules/debug/src/node.js
7841
7841
  var require_node = __commonJS((exports2, module) => {
7842
7842
  var tty = __require("tty");
7843
7843
  var util3 = __require("util");
@@ -8008,7 +8008,7 @@ var require_node = __commonJS((exports2, module) => {
8008
8008
  };
8009
8009
  });
8010
8010
 
8011
- // node_modules/debug/src/index.js
8011
+ // node_modules/.bun/debug@4.4.3/node_modules/debug/src/index.js
8012
8012
  var require_src = __commonJS((exports2, module) => {
8013
8013
  if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {
8014
8014
  module.exports = require_browser();
@@ -8017,7 +8017,7 @@ var require_src = __commonJS((exports2, module) => {
8017
8017
  }
8018
8018
  });
8019
8019
 
8020
- // node_modules/@secretlint/core/module/index.js
8020
+ // node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/index.js
8021
8021
  var import_debug, debug;
8022
8022
  var init_module = __esm(() => {
8023
8023
  init_SecretLintSourceCodeImpl();
@@ -8030,7 +8030,7 @@ var init_module = __esm(() => {
8030
8030
  debug = import_debug.default("@secretlint/core");
8031
8031
  });
8032
8032
 
8033
- // node_modules/@secretlint/secretlint-rule-preset-recommend/module/index.js
8033
+ // node_modules/.bun/@secretlint+secretlint-rule-preset-recommend@12.2.0/node_modules/@secretlint/secretlint-rule-preset-recommend/module/index.js
8034
8034
  function requireLodash_uniq() {
8035
8035
  if (hasRequiredLodash_uniq)
8036
8036
  return lodash_uniq;
@@ -9720,7 +9720,7 @@ var init_atomic = __esm(() => {
9720
9720
  TMP_OPEN_FLAGS = constants.O_WRONLY | constants.O_CREAT | constants.O_EXCL | (constants.O_NOFOLLOW ?? 0);
9721
9721
  });
9722
9722
 
9723
- // node_modules/commander/lib/error.js
9723
+ // node_modules/.bun/commander@13.1.0/node_modules/commander/lib/error.js
9724
9724
  var require_error = __commonJS((exports2) => {
9725
9725
  class CommanderError extends Error {
9726
9726
  constructor(exitCode, code, message) {
@@ -9744,7 +9744,7 @@ var require_error = __commonJS((exports2) => {
9744
9744
  exports2.InvalidArgumentError = InvalidArgumentError;
9745
9745
  });
9746
9746
 
9747
- // node_modules/commander/lib/argument.js
9747
+ // node_modules/.bun/commander@13.1.0/node_modules/commander/lib/argument.js
9748
9748
  var require_argument = __commonJS((exports2) => {
9749
9749
  var { InvalidArgumentError } = require_error();
9750
9750
 
@@ -9823,7 +9823,7 @@ var require_argument = __commonJS((exports2) => {
9823
9823
  exports2.humanReadableArgName = humanReadableArgName;
9824
9824
  });
9825
9825
 
9826
- // node_modules/commander/lib/help.js
9826
+ // node_modules/.bun/commander@13.1.0/node_modules/commander/lib/help.js
9827
9827
  var require_help = __commonJS((exports2) => {
9828
9828
  var { humanReadableArgName } = require_argument();
9829
9829
 
@@ -10173,7 +10173,7 @@ ${itemIndentStr}`);
10173
10173
  exports2.stripColor = stripColor;
10174
10174
  });
10175
10175
 
10176
- // node_modules/commander/lib/option.js
10176
+ // node_modules/.bun/commander@13.1.0/node_modules/commander/lib/option.js
10177
10177
  var require_option = __commonJS((exports2) => {
10178
10178
  var { InvalidArgumentError } = require_error();
10179
10179
 
@@ -10351,7 +10351,7 @@ var require_option = __commonJS((exports2) => {
10351
10351
  exports2.DualOptions = DualOptions;
10352
10352
  });
10353
10353
 
10354
- // node_modules/commander/lib/suggestSimilar.js
10354
+ // node_modules/.bun/commander@13.1.0/node_modules/commander/lib/suggestSimilar.js
10355
10355
  var require_suggestSimilar = __commonJS((exports2) => {
10356
10356
  var maxDistance = 3;
10357
10357
  function editDistance(a, b) {
@@ -10424,7 +10424,7 @@ var require_suggestSimilar = __commonJS((exports2) => {
10424
10424
  exports2.suggestSimilar = suggestSimilar;
10425
10425
  });
10426
10426
 
10427
- // node_modules/commander/lib/command.js
10427
+ // node_modules/.bun/commander@13.1.0/node_modules/commander/lib/command.js
10428
10428
  var require_command = __commonJS((exports2) => {
10429
10429
  var EventEmitter2 = __require("node:events").EventEmitter;
10430
10430
  var childProcess = __require("node:child_process");
@@ -11734,7 +11734,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
11734
11734
  exports2.useColor = useColor;
11735
11735
  });
11736
11736
 
11737
- // node_modules/commander/index.js
11737
+ // node_modules/.bun/commander@13.1.0/node_modules/commander/index.js
11738
11738
  var require_commander = __commonJS((exports2) => {
11739
11739
  var { Argument } = require_argument();
11740
11740
  var { Command } = require_command();
@@ -11765,7 +11765,7 @@ import { readFileSync as readFileSync2, existsSync as existsSync3 } from "node:f
11765
11765
  import { homedir } from "node:os";
11766
11766
  import { resolve as resolve3 } from "node:path";
11767
11767
 
11768
- // node_modules/zod/v3/external.js
11768
+ // node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
11769
11769
  var exports_external = {};
11770
11770
  __export(exports_external, {
11771
11771
  void: () => voidType,
@@ -11877,7 +11877,7 @@ __export(exports_external, {
11877
11877
  BRAND: () => BRAND
11878
11878
  });
11879
11879
 
11880
- // node_modules/zod/v3/helpers/util.js
11880
+ // node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
11881
11881
  var util;
11882
11882
  (function(util2) {
11883
11883
  util2.assertEqual = (_) => {};
@@ -12008,7 +12008,7 @@ var getParsedType = (data) => {
12008
12008
  }
12009
12009
  };
12010
12010
 
12011
- // node_modules/zod/v3/ZodError.js
12011
+ // node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
12012
12012
  var ZodIssueCode = util.arrayToEnum([
12013
12013
  "invalid_type",
12014
12014
  "invalid_literal",
@@ -12127,7 +12127,7 @@ ZodError.create = (issues) => {
12127
12127
  return error;
12128
12128
  };
12129
12129
 
12130
- // node_modules/zod/v3/locales/en.js
12130
+ // node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
12131
12131
  var errorMap = (issue, _ctx) => {
12132
12132
  let message;
12133
12133
  switch (issue.code) {
@@ -12230,7 +12230,7 @@ var errorMap = (issue, _ctx) => {
12230
12230
  };
12231
12231
  var en_default = errorMap;
12232
12232
 
12233
- // node_modules/zod/v3/errors.js
12233
+ // node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
12234
12234
  var overrideErrorMap = en_default;
12235
12235
  function setErrorMap(map) {
12236
12236
  overrideErrorMap = map;
@@ -12238,7 +12238,7 @@ function setErrorMap(map) {
12238
12238
  function getErrorMap() {
12239
12239
  return overrideErrorMap;
12240
12240
  }
12241
- // node_modules/zod/v3/helpers/parseUtil.js
12241
+ // node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
12242
12242
  var makeIssue = (params) => {
12243
12243
  const { data, path, errorMaps, issueData } = params;
12244
12244
  const fullPath = [...path, ...issueData.path || []];
@@ -12344,14 +12344,14 @@ var isAborted = (x) => x.status === "aborted";
12344
12344
  var isDirty = (x) => x.status === "dirty";
12345
12345
  var isValid = (x) => x.status === "valid";
12346
12346
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
12347
- // node_modules/zod/v3/helpers/errorUtil.js
12347
+ // node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
12348
12348
  var errorUtil;
12349
12349
  (function(errorUtil2) {
12350
12350
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
12351
12351
  errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
12352
12352
  })(errorUtil || (errorUtil = {}));
12353
12353
 
12354
- // node_modules/zod/v3/types.js
12354
+ // node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
12355
12355
  class ParseInputLazyPath {
12356
12356
  constructor(parent, value, path, key) {
12357
12357
  this._cachedPath = [];
@@ -15903,7 +15903,9 @@ var SessionContinuitySchema = exports_external.object({
15903
15903
  enabled: exports_external.boolean().optional().describe("Master switch for the session-handoff briefing (default true)."),
15904
15904
  max_turns_in_briefing: exports_external.number().int().positive().optional().describe("Cap on recent user/assistant turn pairs fed to the summarizer."),
15905
15905
  resume_mode: exports_external.enum(["auto", "continue", "handoff", "none"]).optional().describe("How to resume the next session. 'handoff' (default as of #362) " + "never passes --continue; a fresh Claude starts each restart and " + "reads a briefing assembled from recent Telegram messages, Hindsight " + "recall, and today's daily memory file. 'auto' uses --continue when " + "the latest JSONL is smaller than resume_max_bytes, else falls back " + "to the handoff briefing. 'continue' always passes --continue. " + "'none' starts completely fresh every time."),
15906
- resume_max_bytes: exports_external.number().int().positive().optional().describe("Byte threshold above which 'auto' mode falls back to handoff " + "instead of --continue. Default 2_000_000 (~2MB). Large transcripts " + "can blow out the context window even with prefix caching, and " + "--continue replay is known-fragile at scale.")
15906
+ resume_max_bytes: exports_external.number().int().positive().optional().describe("Byte threshold above which 'auto' mode falls back to handoff " + "instead of --continue. Default 2_000_000 (~2MB). Large transcripts " + "can blow out the context window even with prefix caching, and " + "--continue replay is known-fragile at scale."),
15907
+ session_retention_max_count: exports_external.number().int().nonnegative().optional().describe("Session-JSONL retention (issue #2792): keep at most this many " + "newest session transcripts under .claude/projects; older ones " + "past both this count and the age bound are pruned by the Stop " + "hook. The newest sessions (and the handoff source) are always " + "kept. Default 20; set 0 to disable the count bound."),
15908
+ session_retention_max_age_days: exports_external.number().int().nonnegative().optional().describe("Session-JSONL retention (issue #2792): prune session transcripts " + "older than this many days (a file is deleted only when it is BOTH " + "over the count bound and older than this). Default 30; set 0 to " + "disable the age bound.")
15907
15909
  }).optional();
15908
15910
  var webhookDispatchRule = exports_external.object({
15909
15911
  description: exports_external.string().optional(),
@@ -17184,6 +17186,36 @@ var CONTAINER_DEFAULT_UTC_ZONES = new Set([
17184
17186
  "Universal"
17185
17187
  ]);
17186
17188
 
17189
+ // src/broker-common/peercred-path.ts
17190
+ function matchSocketName(socketPath, patterns, maxNameLen) {
17191
+ if (typeof socketPath !== "string" || socketPath.length === 0)
17192
+ return null;
17193
+ let name = null;
17194
+ for (const re of patterns) {
17195
+ const m = socketPath.match(re);
17196
+ if (m && typeof m[1] === "string") {
17197
+ name = m[1];
17198
+ break;
17199
+ }
17200
+ }
17201
+ if (name === null || name.length === 0)
17202
+ return null;
17203
+ if (maxNameLen !== undefined && name.length > maxNameLen)
17204
+ return null;
17205
+ return name;
17206
+ }
17207
+ function parseSocketIdentity(socketPath, spec) {
17208
+ const name = matchSocketName(socketPath, spec.patterns, spec.maxNameLen);
17209
+ if (name === null)
17210
+ return null;
17211
+ const operatorName = spec.operatorName ?? "operator";
17212
+ if (name === operatorName)
17213
+ return { kind: "operator" };
17214
+ if (spec.reservedNames.has(name))
17215
+ return null;
17216
+ return { kind: "agent", name };
17217
+ }
17218
+
17187
17219
  // src/vault/broker/peercred.ts
17188
17220
  var RESERVED_AGENT_NAMES = new Set(["operator", "hostd"]);
17189
17221
  function isReservedAgentName(name) {
@@ -17474,7 +17506,7 @@ function deniedResponse(request_id, error, duration_ms = 0) {
17474
17506
  // src/analytics/error-friction.ts
17475
17507
  import { createHash as createHash2 } from "node:crypto";
17476
17508
 
17477
- // node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
17509
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
17478
17510
  import { dirname, posix, sep } from "path";
17479
17511
  function createModulerModifier() {
17480
17512
  const getModuleFromFileName = createGetModuleFromFilename();
@@ -17510,7 +17542,7 @@ function normalizeWindowsPath(path) {
17510
17542
  return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
17511
17543
  }
17512
17544
 
17513
- // node_modules/@posthog/core/dist/featureFlagUtils.mjs
17545
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/featureFlagUtils.mjs
17514
17546
  var normalizeFlagsResponse = (flagsResponse) => {
17515
17547
  if ("flags" in flagsResponse) {
17516
17548
  const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
@@ -17581,7 +17613,7 @@ var parsePayload = (response) => {
17581
17613
  }
17582
17614
  };
17583
17615
 
17584
- // node_modules/@posthog/core/dist/gzip.mjs
17616
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/gzip.mjs
17585
17617
  function isGzipSupported() {
17586
17618
  return "CompressionStream" in globalThis;
17587
17619
  }
@@ -17601,7 +17633,7 @@ async function gzipCompress(input, isDebug = true) {
17601
17633
  }
17602
17634
  }
17603
17635
 
17604
- // node_modules/@posthog/core/dist/vendor/uuidv7.mjs
17636
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
17605
17637
  /*! For license information please see uuidv7.mjs.LICENSE.txt */
17606
17638
  var DIGITS = "0123456789abcdef";
17607
17639
 
@@ -17779,7 +17811,7 @@ var defaultGenerator;
17779
17811
  var uuidv7 = () => uuidv7obj().toString();
17780
17812
  var uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator)).generate();
17781
17813
 
17782
- // node_modules/@posthog/core/dist/types.mjs
17814
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/types.mjs
17783
17815
  var types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedProperty) {
17784
17816
  PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
17785
17817
  PostHogPersistedProperty["DistinctId"] = "distinct_id";
@@ -17812,7 +17844,7 @@ var types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedPr
17812
17844
  return PostHogPersistedProperty;
17813
17845
  }({});
17814
17846
 
17815
- // node_modules/@posthog/core/dist/utils/bot-detection.mjs
17847
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bot-detection.mjs
17816
17848
  var DEFAULT_BLOCKED_UA_STRS = [
17817
17849
  "amazonbot",
17818
17850
  "amazonproductbot",
@@ -17901,7 +17933,7 @@ var isBlockedUA = function(ua, customBlockedUserAgents = []) {
17901
17933
  return uaLower.indexOf(blockedUaLower) !== -1;
17902
17934
  });
17903
17935
  };
17904
- // node_modules/@posthog/core/dist/utils/type-utils.mjs
17936
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/type-utils.mjs
17905
17937
  var nativeIsArray = Array.isArray;
17906
17938
  var ObjProto = Object.prototype;
17907
17939
  var type_utils_hasOwnProperty = ObjProto.hasOwnProperty;
@@ -17938,7 +17970,7 @@ function isInstanceOf(candidate, base) {
17938
17970
  }
17939
17971
  }
17940
17972
 
17941
- // node_modules/@posthog/core/dist/utils/number-utils.mjs
17973
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/number-utils.mjs
17942
17974
  function clampToRange(value, min, max, logger, fallbackValue) {
17943
17975
  if (min > max) {
17944
17976
  logger.warn("min cannot be greater than max.");
@@ -17958,7 +17990,7 @@ function clampToRange(value, min, max, logger, fallbackValue) {
17958
17990
  return clampToRange(fallbackValue || max, min, max, logger);
17959
17991
  }
17960
17992
 
17961
- // node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
17993
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
17962
17994
  var ONE_DAY_IN_MS = 86400000;
17963
17995
 
17964
17996
  class BucketedRateLimiter {
@@ -18002,7 +18034,7 @@ class BucketedRateLimiter {
18002
18034
  this._buckets = {};
18003
18035
  }
18004
18036
  }
18005
- // node_modules/@posthog/core/dist/utils/promise-queue.mjs
18037
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/promise-queue.mjs
18006
18038
  class PromiseQueue {
18007
18039
  add(promise) {
18008
18040
  const promiseUUID = uuidv7();
@@ -18028,7 +18060,7 @@ class PromiseQueue {
18028
18060
  this.promiseByIds = {};
18029
18061
  }
18030
18062
  }
18031
- // node_modules/@posthog/core/dist/utils/logger.mjs
18063
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/logger.mjs
18032
18064
  function createConsole(consoleLike = console) {
18033
18065
  const lockedMethods = {
18034
18066
  log: consoleLike.log.bind(consoleLike),
@@ -18066,7 +18098,7 @@ var passThrough = (fn) => fn();
18066
18098
  function createLogger(prefix, maybeCall = passThrough) {
18067
18099
  return _createLogger(prefix, maybeCall, createConsole());
18068
18100
  }
18069
- // node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
18101
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
18070
18102
  var MOBILE = "Mobile";
18071
18103
  var IOS = "iOS";
18072
18104
  var ANDROID = "Android";
@@ -18323,7 +18355,7 @@ var osMatchers = [
18323
18355
  ]
18324
18356
  ];
18325
18357
 
18326
- // node_modules/@posthog/core/dist/utils/index.mjs
18358
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/index.mjs
18327
18359
  var STRING_FORMAT = "utf8";
18328
18360
  function assert(truthyValue, message) {
18329
18361
  if (!truthyValue || typeof truthyValue != "string" || isEmpty(truthyValue))
@@ -18371,7 +18403,7 @@ function allSettled(promises) {
18371
18403
  reason
18372
18404
  }))));
18373
18405
  }
18374
- // node_modules/@posthog/core/dist/eventemitter.mjs
18406
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/eventemitter.mjs
18375
18407
  class SimpleEventEmitter {
18376
18408
  constructor() {
18377
18409
  this.events = {};
@@ -18393,7 +18425,7 @@ class SimpleEventEmitter {
18393
18425
  }
18394
18426
  }
18395
18427
 
18396
- // node_modules/@posthog/core/dist/posthog-core-stateless.mjs
18428
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
18397
18429
  class PostHogFetchHttpError extends Error {
18398
18430
  constructor(response, reqByteLength) {
18399
18431
  super("HTTP error while fetching PostHog: status=" + response.status + ", reqByteLength=" + reqByteLength), this.response = response, this.reqByteLength = reqByteLength, this.name = "PostHogFetchHttpError";
@@ -19108,7 +19140,7 @@ class PostHogCoreStateless {
19108
19140
  return this.shutdownPromise;
19109
19141
  }
19110
19142
  }
19111
- // node_modules/@posthog/core/dist/error-tracking/index.mjs
19143
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/index.mjs
19112
19144
  var exports_error_tracking = {};
19113
19145
  __export(exports_error_tracking, {
19114
19146
  winjsStackLineParser: () => winjsStackLineParser,
@@ -19132,7 +19164,7 @@ __export(exports_error_tracking, {
19132
19164
  DOMExceptionCoercer: () => DOMExceptionCoercer
19133
19165
  });
19134
19166
 
19135
- // node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
19167
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
19136
19168
  var parsedStackResults;
19137
19169
  var lastKeysCount;
19138
19170
  var cachedFilenameChunkIds;
@@ -19171,7 +19203,7 @@ function getFilenameToChunkIdMap(stackParser) {
19171
19203
  return cachedFilenameChunkIds;
19172
19204
  }
19173
19205
 
19174
- // node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
19206
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
19175
19207
  var MAX_CAUSE_RECURSION = 4;
19176
19208
 
19177
19209
  class ErrorPropertiesBuilder {
@@ -19293,7 +19325,7 @@ class ErrorPropertiesBuilder {
19293
19325
  return context;
19294
19326
  }
19295
19327
  }
19296
- // node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
19328
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
19297
19329
  var UNKNOWN_FUNCTION = "?";
19298
19330
  function createFrame(platform, filename, func, lineno, colno) {
19299
19331
  const frame = {
@@ -19309,7 +19341,7 @@ function createFrame(platform, filename, func, lineno, colno) {
19309
19341
  return frame;
19310
19342
  }
19311
19343
 
19312
- // node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
19344
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
19313
19345
  var extractSafariExtensionDetails = (func, filename) => {
19314
19346
  const isSafariExtension = func.indexOf("safari-extension") !== -1;
19315
19347
  const isSafariWebExtension = func.indexOf("safari-web-extension") !== -1;
@@ -19322,7 +19354,7 @@ var extractSafariExtensionDetails = (func, filename) => {
19322
19354
  ];
19323
19355
  };
19324
19356
 
19325
- // node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
19357
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
19326
19358
  var chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
19327
19359
  var chromeRegex = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
19328
19360
  var chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
@@ -19348,7 +19380,7 @@ var chromeStackLineParser = (line, platform) => {
19348
19380
  }
19349
19381
  };
19350
19382
 
19351
- // node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
19383
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
19352
19384
  var geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
19353
19385
  var geckoEvalRegex = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
19354
19386
  var geckoStackLineParser = (line, platform) => {
@@ -19371,14 +19403,14 @@ var geckoStackLineParser = (line, platform) => {
19371
19403
  }
19372
19404
  };
19373
19405
 
19374
- // node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
19406
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
19375
19407
  var winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
19376
19408
  var winjsStackLineParser = (line, platform) => {
19377
19409
  const parts = winjsRegex.exec(line);
19378
19410
  return parts ? createFrame(platform, parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined) : undefined;
19379
19411
  };
19380
19412
 
19381
- // node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
19413
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
19382
19414
  var opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
19383
19415
  var opera10StackLineParser = (line, platform) => {
19384
19416
  const parts = opera10Regex.exec(line);
@@ -19390,7 +19422,7 @@ var opera11StackLineParser = (line, platform) => {
19390
19422
  return parts ? createFrame(platform, parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;
19391
19423
  };
19392
19424
 
19393
- // node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
19425
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
19394
19426
  var FILENAME_MATCH = /^\s*[-]{4,}$/;
19395
19427
  var FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
19396
19428
  var nodeStackLineParser = (line, platform) => {
@@ -19459,7 +19491,7 @@ function _parseIntOrUndefined(input) {
19459
19491
  return parseInt(input || "", 10) || undefined;
19460
19492
  }
19461
19493
 
19462
- // node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
19494
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
19463
19495
  var WEBPACK_ERROR_REGEXP = /\(error: (.*)\)/;
19464
19496
  var STACKTRACE_FRAME_LIMIT = 50;
19465
19497
  function reverseAndStripFrames(stack) {
@@ -19504,7 +19536,7 @@ function createStackParser(platform, ...parsers) {
19504
19536
  return reverseAndStripFrames(frames);
19505
19537
  };
19506
19538
  }
19507
- // node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
19539
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
19508
19540
  class DOMExceptionCoercer {
19509
19541
  match(err) {
19510
19542
  return this.isDOMException(err) || this.isDOMError(err);
@@ -19534,7 +19566,7 @@ class DOMExceptionCoercer {
19534
19566
  return isBuiltin(err, "DOMError");
19535
19567
  }
19536
19568
  }
19537
- // node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
19569
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
19538
19570
  class ErrorCoercer {
19539
19571
  match(err) {
19540
19572
  return isPlainError(err);
@@ -19561,7 +19593,7 @@ class ErrorCoercer {
19561
19593
  return err.stacktrace || err.stack || undefined;
19562
19594
  }
19563
19595
  }
19564
- // node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
19596
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
19565
19597
  class ErrorEventCoercer {
19566
19598
  constructor() {}
19567
19599
  match(err) {
@@ -19579,7 +19611,7 @@ class ErrorEventCoercer {
19579
19611
  return exceptionLike;
19580
19612
  }
19581
19613
  }
19582
- // node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
19614
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
19583
19615
  var ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
19584
19616
 
19585
19617
  class StringCoercer {
@@ -19609,7 +19641,7 @@ class StringCoercer {
19609
19641
  ];
19610
19642
  }
19611
19643
  }
19612
- // node_modules/@posthog/core/dist/error-tracking/types.mjs
19644
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/types.mjs
19613
19645
  var severityLevels = [
19614
19646
  "fatal",
19615
19647
  "error",
@@ -19619,7 +19651,7 @@ var severityLevels = [
19619
19651
  "debug"
19620
19652
  ];
19621
19653
 
19622
- // node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
19654
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
19623
19655
  function extractExceptionKeysForMessage(err, maxLength = 40) {
19624
19656
  const keys = Object.keys(err);
19625
19657
  keys.sort();
@@ -19636,7 +19668,7 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
19636
19668
  return "";
19637
19669
  }
19638
19670
 
19639
- // node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
19671
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
19640
19672
  class ObjectCoercer {
19641
19673
  match(candidate) {
19642
19674
  return typeof candidate == "object" && candidate !== null;
@@ -19689,7 +19721,7 @@ class ObjectCoercer {
19689
19721
  }
19690
19722
  }
19691
19723
  }
19692
- // node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
19724
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
19693
19725
  class EventCoercer {
19694
19726
  match(err) {
19695
19727
  return isEvent(err);
@@ -19704,7 +19736,7 @@ class EventCoercer {
19704
19736
  };
19705
19737
  }
19706
19738
  }
19707
- // node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
19739
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
19708
19740
  class PrimitiveCoercer {
19709
19741
  match(candidate) {
19710
19742
  return isPrimitive(candidate);
@@ -19718,7 +19750,7 @@ class PrimitiveCoercer {
19718
19750
  };
19719
19751
  }
19720
19752
  }
19721
- // node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
19753
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
19722
19754
  class PromiseRejectionEventCoercer {
19723
19755
  match(err) {
19724
19756
  return isBuiltin(err, "PromiseRejectionEvent") || this.isCustomEventWrappingRejection(err);
@@ -19754,7 +19786,7 @@ class PromiseRejectionEventCoercer {
19754
19786
  return error;
19755
19787
  }
19756
19788
  }
19757
- // node_modules/@posthog/core/dist/error-tracking/utils.mjs
19789
+ // node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/utils.mjs
19758
19790
  class ReduceableCache {
19759
19791
  constructor(_maxSize) {
19760
19792
  this._maxSize = _maxSize;
@@ -19779,7 +19811,7 @@ class ReduceableCache {
19779
19811
  }
19780
19812
  }
19781
19813
  }
19782
- // node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
19814
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
19783
19815
  import { createReadStream } from "node:fs";
19784
19816
  import { createInterface } from "node:readline";
19785
19817
  var LRU_FILE_CONTENTS_CACHE = new exports_error_tracking.ReduceableCache(25);
@@ -19997,7 +20029,7 @@ function snipLine(line, colno) {
19997
20029
  return newLine;
19998
20030
  }
19999
20031
 
20000
- // node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
20032
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
20001
20033
  function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
20002
20034
  let calledFatalError = false;
20003
20035
  return Object.assign((error) => {
@@ -20029,7 +20061,7 @@ function addUnhandledRejectionListener(captureFn) {
20029
20061
  }));
20030
20062
  }
20031
20063
 
20032
- // node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
20064
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
20033
20065
  var SHUTDOWN_TIMEOUT = 2000;
20034
20066
 
20035
20067
  class ErrorTracking {
@@ -20098,10 +20130,10 @@ class ErrorTracking {
20098
20130
  }
20099
20131
  }
20100
20132
 
20101
- // node_modules/posthog-node/dist/version.mjs
20133
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/version.mjs
20102
20134
  var version = "5.29.2";
20103
20135
 
20104
- // node_modules/posthog-node/dist/types.mjs
20136
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/types.mjs
20105
20137
  var FeatureFlagError2 = {
20106
20138
  ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
20107
20139
  FLAG_MISSING: "flag_missing",
@@ -20109,7 +20141,7 @@ var FeatureFlagError2 = {
20109
20141
  UNKNOWN_ERROR: "unknown_error"
20110
20142
  };
20111
20143
 
20112
- // node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
20144
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
20113
20145
  async function hashSHA1(text) {
20114
20146
  const subtle = globalThis.crypto?.subtle;
20115
20147
  if (!subtle)
@@ -20119,7 +20151,7 @@ async function hashSHA1(text) {
20119
20151
  return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
20120
20152
  }
20121
20153
 
20122
- // node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
20154
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
20123
20155
  var SIXTY_SECONDS = 60000;
20124
20156
  var LONG_SCALE = 1152921504606847000;
20125
20157
  var NULL_VALUES_ALLOWED_OPERATORS = [
@@ -20993,7 +21025,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
20993
21025
  }
20994
21026
  }
20995
21027
 
20996
- // node_modules/posthog-node/dist/storage-memory.mjs
21028
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/storage-memory.mjs
20997
21029
  class PostHogMemoryStorage {
20998
21030
  getProperty(key) {
20999
21031
  return this._memoryStorage[key];
@@ -21006,7 +21038,7 @@ class PostHogMemoryStorage {
21006
21038
  }
21007
21039
  }
21008
21040
 
21009
- // node_modules/posthog-node/dist/client.mjs
21041
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/client.mjs
21010
21042
  var MINIMUM_POLLING_INTERVAL = 100;
21011
21043
  var THIRTY_SECONDS = 30000;
21012
21044
  var MAX_CACHE_SIZE = 50000;
@@ -21794,7 +21826,7 @@ class PostHogBackendClient extends PostHogCoreStateless {
21794
21826
  }
21795
21827
  }
21796
21828
 
21797
- // node_modules/posthog-node/dist/extensions/context/context.mjs
21829
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/context/context.mjs
21798
21830
  import { AsyncLocalStorage } from "node:async_hooks";
21799
21831
 
21800
21832
  class PostHogContext {
@@ -21825,7 +21857,7 @@ class PostHogContext {
21825
21857
  }
21826
21858
  }
21827
21859
 
21828
- // node_modules/posthog-node/dist/extensions/sentry-integration.mjs
21860
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
21829
21861
  var NAME = "posthog-node";
21830
21862
  function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
21831
21863
  "error"
@@ -21893,7 +21925,7 @@ class PostHogSentryIntegration {
21893
21925
  };
21894
21926
  }
21895
21927
  }
21896
- // node_modules/posthog-node/dist/entrypoints/index.node.mjs
21928
+ // node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
21897
21929
  ErrorTracking.errorPropertiesBuilder = new exports_error_tracking.ErrorPropertiesBuilder([
21898
21930
  new exports_error_tracking.EventCoercer,
21899
21931
  new exports_error_tracking.ErrorCoercer,
@@ -22179,17 +22211,10 @@ var SOCKET_PATH_CONTAINER_SUBDIR_RE = /^\/run\/switchroom\/hostd\/([a-zA-Z0-9][a
22179
22211
  var SOCKET_PATH_HOST_SUBDIR_RE = /\/\.switchroom\/hostd\/([a-zA-Z0-9][a-zA-Z0-9_-]*)\/sock$/;
22180
22212
  var RESERVED_AGENT_NAMES2 = new Set(["operator", "hostd"]);
22181
22213
  function socketPathToIdentity(socketPath) {
22182
- if (typeof socketPath !== "string" || socketPath.length === 0)
22183
- return null;
22184
- const m = socketPath.match(SOCKET_PATH_CONTAINER_SUBDIR_RE) ?? socketPath.match(SOCKET_PATH_HOST_SUBDIR_RE);
22185
- if (!m)
22186
- return null;
22187
- const name = m[1];
22188
- if (name === "operator")
22189
- return { kind: "operator" };
22190
- if (RESERVED_AGENT_NAMES2.has(name))
22191
- return null;
22192
- return { kind: "agent", name };
22214
+ return parseSocketIdentity(socketPath, {
22215
+ patterns: [SOCKET_PATH_CONTAINER_SUBDIR_RE, SOCKET_PATH_HOST_SUBDIR_RE],
22216
+ reservedNames: RESERVED_AGENT_NAMES2
22217
+ });
22193
22218
  }
22194
22219
 
22195
22220
  // telegram-plugin/secret-detect/patterns.ts
@@ -22624,7 +22649,7 @@ import { existsSync as existsSync6, readFileSync as readFileSync4 } from "node:f
22624
22649
  import { dirname as dirname4, join as join2 } from "node:path";
22625
22650
 
22626
22651
  // src/build-info.ts
22627
- var VERSION = "0.16.46";
22652
+ var VERSION = "0.17.0";
22628
22653
 
22629
22654
  // src/cli/resolve-version.ts
22630
22655
  function readPackageVersion() {
@@ -22823,7 +22848,7 @@ function parseRolloutResultLine(stdout) {
22823
22848
  return null;
22824
22849
  }
22825
22850
 
22826
- // node_modules/commander/esm.mjs
22851
+ // node_modules/.bun/commander@13.1.0/node_modules/commander/esm.mjs
22827
22852
  var import__3 = __toESM(require_commander(), 1);
22828
22853
 
22829
22854
  // src/cli/update.ts
@@ -24478,19 +24503,30 @@ class HostdServer {
24478
24503
  const recoveryNote = recRes2.exit_code === 0 ? "rolled back successfully" : `rolled back but recovery reconcile also failed (exit ${recRes2.exit_code})`;
24479
24504
  await approval.finalize({
24480
24505
  outcome: "reconcile_failed_rolled_back",
24481
- detail: recoveryNote
24506
+ detail: `${recoveryNote}; reconcile stderr: ${tail(recRes.stderr, 512) || "(empty)"}`
24482
24507
  });
24483
- return this.reconcileFailedRolledBack(`reconcile exit ${recRes.exit_code}; ${recoveryNote}`, req, caller, started);
24508
+ return this.reconcileFailedRolledBack(`reconcile exit ${recRes.exit_code}; ${recoveryNote}`, req, caller, started, { primary: recRes, recovery: recRes2 });
24484
24509
  } finally {
24485
24510
  release();
24486
24511
  }
24487
24512
  }
24488
- reconcileFailedRolledBack(detail, req, caller, started) {
24513
+ reconcileFailedRolledBack(detail, req, caller, started, output) {
24489
24514
  const legacy = `E_RECONCILE_FAILED_ROLLED_BACK: ${detail}`;
24490
24515
  const built = err("E_RECONCILE_FAILED_ROLLED_BACK", "config write or reconcile failed; live file rolled back to snapshot").why(detail).fixOperatorAction("infra", [
24491
24516
  "inspect hostd logs + switchroom apply output to identify the underlying failure"
24492
24517
  ]).op("config_propose_edit").caller(caller.kind === "agent" ? "agent" : "operator").agentName(caller.kind === "agent" ? caller.name : undefined).build(req.request_id, Date.now() - started);
24493
- return { ...built, error: legacy };
24518
+ const resp = { ...built, error: legacy };
24519
+ if (output) {
24520
+ const recoveryStdout = output.recovery && output.recovery.exit_code !== 0 ? `
24521
+ --- recovery reconcile stdout ---
24522
+ ${output.recovery.stdout}` : "";
24523
+ const recoveryStderr = output.recovery && output.recovery.exit_code !== 0 ? `
24524
+ --- recovery reconcile stderr ---
24525
+ ${output.recovery.stderr}` : "";
24526
+ resp.stdout_tail = tail(output.primary.stdout + recoveryStdout);
24527
+ resp.stderr_tail = tail(output.primary.stderr + recoveryStderr);
24528
+ }
24529
+ return resp;
24494
24530
  }
24495
24531
  configApplyLock = Promise.resolve();
24496
24532
  async acquireConfigApplyLock() {