github-router 0.3.351 → 0.3.353
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/NOTICE +72 -0
- package/README.md +1 -19
- package/dist/ado-tools-xbuVU7YN.js +1 -0
- package/dist/{aic-ledger-D4oMcg7c.js → aic-ledger-BdvCgRmx.js} +3 -3
- package/dist/{aic-ledger-D4oMcg7c.js.map → aic-ledger-BdvCgRmx.js.map} +1 -1
- package/dist/{aic-statusline-settings-DCFywz3N.js → aic-statusline-settings-LnoxjBPe.js} +2 -2
- package/dist/{aic-statusline-settings-DCFywz3N.js.map → aic-statusline-settings-LnoxjBPe.js.map} +1 -1
- package/dist/{attribution-settings-DE0207hK.js → attribution-settings-7cbLvuiE.js} +11 -650
- package/dist/attribution-settings-7cbLvuiE.js.map +1 -0
- package/dist/{auth-Cgsy2T0s.js → auth-a_1lXYZ1.js} +4 -4
- package/dist/{auth-Cgsy2T0s.js.map → auth-a_1lXYZ1.js.map} +1 -1
- package/dist/{bluebird-client-DpYl1YmJ.js → bluebird-client-ltPIiyJU.js} +1103 -499
- package/dist/bluebird-client-ltPIiyJU.js.map +1 -0
- package/dist/bluebird-client-mr3M67k-.js +1 -0
- package/dist/browser-bridge/index.js +116 -98
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{check-usage-26G2hw_F.js → check-usage-Bsbc-Sn6.js} +4 -4
- package/dist/{check-usage-26G2hw_F.js.map → check-usage-Bsbc-Sn6.js.map} +1 -1
- package/dist/{claude-YVz8FA1M.js → claude-CugVz_lo.js} +60 -48
- package/dist/claude-CugVz_lo.js.map +1 -0
- package/dist/claude-md-injection-BoXOsg7h.js +669 -0
- package/dist/claude-md-injection-BoXOsg7h.js.map +1 -0
- package/dist/{codex-B-znDU1X.js → codex-pfFa6vPh.js} +10 -8
- package/dist/{codex-B-znDU1X.js.map → codex-pfFa6vPh.js.map} +1 -1
- package/dist/{copilot-discount-CilBhKQW.js → copilot-discount-C3jfysK-.js} +2 -2
- package/dist/{copilot-discount-CilBhKQW.js.map → copilot-discount-C3jfysK-.js.map} +1 -1
- package/dist/{debug-CigFsS-h.js → debug-BtqbflcL.js} +2 -2
- package/dist/{debug-CigFsS-h.js.map → debug-BtqbflcL.js.map} +1 -1
- package/dist/engine-DwLIk1Zn.js +1 -0
- package/dist/{exec-MCU1H-KZ.js → exec-Bf8g_bIR.js} +27 -2
- package/dist/exec-Bf8g_bIR.js.map +1 -0
- package/dist/{gate-discovery-D--As1HS.js → gate-discovery-Cvdko01z.js} +6 -6
- package/dist/{gate-discovery-D--As1HS.js.map → gate-discovery-Cvdko01z.js.map} +1 -1
- package/dist/{get-copilot-usage-C_6ast5h.js → get-copilot-usage-0_S8pRWJ.js} +3 -3
- package/dist/{get-copilot-usage-C_6ast5h.js.map → get-copilot-usage-0_S8pRWJ.js.map} +1 -1
- package/dist/{hook-mcp-client-BRL_y-bz.js → hook-mcp-client-DERIkeR7.js} +5 -3
- package/dist/{hook-mcp-client-BRL_y-bz.js.map → hook-mcp-client-DERIkeR7.js.map} +1 -1
- package/dist/hooks.mjs +10998 -6840
- package/dist/hooks.sha256 +1 -1
- package/dist/{index-cmd-DXYWgKS6.js → index-cmd-CJXUOH4q.js} +5 -5
- package/dist/{index-cmd-DXYWgKS6.js.map → index-cmd-CJXUOH4q.js.map} +1 -1
- package/dist/{internal-aic-status-lM0YNDaH.js → internal-aic-status-Dmi2bCsR.js} +4 -4
- package/dist/{internal-aic-status-lM0YNDaH.js.map → internal-aic-status-Dmi2bCsR.js.map} +1 -1
- package/dist/{internal-artifact-open-DErO3WpR.js → internal-artifact-open-C67gDjKo.js} +2 -2
- package/dist/{internal-artifact-open-DErO3WpR.js.map → internal-artifact-open-C67gDjKo.js.map} +1 -1
- package/dist/{internal-fast-dispatch-guard-DRsZJ-Rg.js → internal-fast-dispatch-guard-BQm1MI9d.js} +2 -2
- package/dist/{internal-fast-dispatch-guard-DRsZJ-Rg.js.map → internal-fast-dispatch-guard-BQm1MI9d.js.map} +1 -1
- package/dist/internal-fast-dispatch-guard-Cv7zf0ZI.js +1 -0
- package/dist/{internal-first-mate-guard-BEwDjHfX.js → internal-first-mate-guard-BJvCsVlU.js} +3 -3
- package/dist/{internal-first-mate-guard-BEwDjHfX.js.map → internal-first-mate-guard-BJvCsVlU.js.map} +1 -1
- package/dist/internal-first-mate-guard-D-IQGiTs.js +1 -0
- package/dist/{internal-max-dispatch-guard-DSjJwVH2.js → internal-max-dispatch-guard-DkJixDmG.js} +7 -5
- package/dist/{internal-max-dispatch-guard-DSjJwVH2.js.map → internal-max-dispatch-guard-DkJixDmG.js.map} +1 -1
- package/dist/internal-max-dispatch-guard-T-M7DRIW.js +1 -0
- package/dist/{internal-plan-review-DbX-mr9i.js → internal-plan-review-DIvaBBUd.js} +4 -4
- package/dist/{internal-plan-review-DbX-mr9i.js.map → internal-plan-review-DIvaBBUd.js.map} +1 -1
- package/dist/internal-prompt-submit-6OXEdQCK.js +2 -0
- package/dist/internal-prompt-submit-B9MJxc3K.js +194 -0
- package/dist/internal-prompt-submit-B9MJxc3K.js.map +1 -0
- package/dist/{internal-rebrief-BH9PMJhF.js → internal-rebrief-zIdunX3R.js} +6 -6
- package/dist/{internal-rebrief-BH9PMJhF.js.map → internal-rebrief-zIdunX3R.js.map} +1 -1
- package/dist/{internal-session-bind-DxdVbJ7x.js → internal-session-bind-CQLDPuTx.js} +2 -2
- package/dist/{internal-session-bind-DxdVbJ7x.js.map → internal-session-bind-CQLDPuTx.js.map} +1 -1
- package/dist/{internal-stop-hook-DJAFilW6.js → internal-stop-hook-DGcRVh_2.js} +7 -7
- package/dist/{internal-stop-hook-DJAFilW6.js.map → internal-stop-hook-DGcRVh_2.js.map} +1 -1
- package/dist/{internal-stop-review-CORT3UGr.js → internal-stop-review-X7zRRhyc.js} +3 -3
- package/dist/{internal-stop-review-CORT3UGr.js.map → internal-stop-review-X7zRRhyc.js.map} +1 -1
- package/dist/{internal-worker-guard-C0FJ4b29.js → internal-worker-guard-wP3UN-3D.js} +2 -2
- package/dist/{internal-worker-guard-C0FJ4b29.js.map → internal-worker-guard-wP3UN-3D.js.map} +1 -1
- package/dist/{internal-workspace-header-tvJVAXpv.js → internal-workspace-header-DiUnkUeU.js} +2 -2
- package/dist/{internal-workspace-header-tvJVAXpv.js.map → internal-workspace-header-DiUnkUeU.js.map} +1 -1
- package/dist/lib/tree-sitter-pool/worker.js +1 -2
- package/dist/{lifecycle-BqWTXaeC.js → lifecycle-BJ83L0tz.js} +3 -3
- package/dist/{lifecycle-BqWTXaeC.js.map → lifecycle-BJ83L0tz.js.map} +1 -1
- package/dist/lifecycle-CVg2-zQ3.js +1 -0
- package/dist/lifecycle-Dk_BHtfz.js +1 -0
- package/dist/{lifecycle-kpLzHUgD.js → lifecycle-aApO0hZW.js} +2 -2
- package/dist/{lifecycle-kpLzHUgD.js.map → lifecycle-aApO0hZW.js.map} +1 -1
- package/dist/main.js +23 -23
- package/dist/{max-profile-contract--dAYkEG1.js → max-profile-contract-DQDEDCsR.js} +2 -2
- package/dist/{max-profile-contract--dAYkEG1.js.map → max-profile-contract-DQDEDCsR.js.map} +1 -1
- package/dist/{mcp-workspace-header-B77WqVFw.js → mcp-workspace-header-DBQugQlQ.js} +2 -2
- package/dist/{mcp-workspace-header-B77WqVFw.js.map → mcp-workspace-header-DBQugQlQ.js.map} +1 -1
- package/dist/{models-BGCeGVXl.js → models-JIvKAGn0.js} +3 -3
- package/dist/{models-BGCeGVXl.js.map → models-JIvKAGn0.js.map} +1 -1
- package/dist/{orchestration-Dkqv-iv0.js → orchestration-D-S_0GVt.js} +3 -3
- package/dist/{orchestration-Dkqv-iv0.js.map → orchestration-D-S_0GVt.js.map} +1 -1
- package/dist/paths-C9x5U3dO.js +1 -0
- package/dist/{paths-CpbTHKeP.js → paths-xTSEAWfN.js} +115 -22
- package/dist/paths-xTSEAWfN.js.map +1 -0
- package/dist/{peer-mcp-personas-D_gRB57l.js → peer-mcp-personas-DDMKRFFG.js} +2336 -834
- package/dist/peer-mcp-personas-DDMKRFFG.js.map +1 -0
- package/dist/{pi-DpVcRXlA.js → pi-BNpaiwEF.js} +362 -37
- package/dist/pi-BNpaiwEF.js.map +1 -0
- package/dist/{plan-review-hook-LfG01VMp.js → plan-review-hook-BQ29WGv7.js} +5 -5
- package/dist/{plan-review-hook-LfG01VMp.js.map → plan-review-hook-BQ29WGv7.js.map} +1 -1
- package/dist/{provision-CCLXOWVZ.js → provision-BtYRtvrj.js} +26 -18
- package/dist/provision-BtYRtvrj.js.map +1 -0
- package/dist/{self-invocation-DIUyoRgL.js → self-invocation-Dr5zlbpM.js} +2 -2
- package/dist/{self-invocation-DIUyoRgL.js.map → self-invocation-Dr5zlbpM.js.map} +1 -1
- package/dist/{serve-D7aq-iiE.js → serve-BQ0spYrs.js} +35 -17
- package/dist/serve-BQ0spYrs.js.map +1 -0
- package/dist/{server-setup-B8LyRuEN.js → server-setup-COrhtCdv.js} +352 -27
- package/dist/server-setup-COrhtCdv.js.map +1 -0
- package/dist/{service-backend-7SPDLUB9.js → service-backend-DV1u5x0Q.js} +51 -23
- package/dist/service-backend-DV1u5x0Q.js.map +1 -0
- package/dist/{start-BVP3nqIr.js → start-Dd7O3bB9.js} +4 -4
- package/dist/{start-BVP3nqIr.js.map → start-Dd7O3bB9.js.map} +1 -1
- package/dist/{state-CVp30CBF.js → state-CfEVoqBM.js} +8 -1
- package/dist/{state-CVp30CBF.js.map → state-CfEVoqBM.js.map} +1 -1
- package/dist/{prompt-submit-hook-DzhmQRs_.js → static-context-pack-CyucviRD.js} +402 -4
- package/dist/static-context-pack-CyucviRD.js.map +1 -0
- package/dist/{stop-gate-hook-C9VNxmt1.js → stop-gate-hook-BYd0NruJ.js} +4 -4
- package/dist/{stop-gate-hook-C9VNxmt1.js.map → stop-gate-hook-BYd0NruJ.js.map} +1 -1
- package/dist/{stop-gate-policy-DQsfjnsx.js → stop-gate-policy-FGAfpfc-.js} +3 -3
- package/dist/{stop-gate-policy-DQsfjnsx.js.map → stop-gate-policy-FGAfpfc-.js.map} +1 -1
- package/dist/{token-s5Wd-Kwr.js → token-CTf5jCmP.js} +7 -5
- package/dist/{token-s5Wd-Kwr.js.map → token-CTf5jCmP.js.map} +1 -1
- package/dist/{worker-dispatch-lRhno09M.js → worker-dispatch-BjfROaic.js} +2 -2
- package/dist/{worker-dispatch-lRhno09M.js.map → worker-dispatch-BjfROaic.js.map} +1 -1
- package/docs/azure-mcp.md +453 -0
- package/docs/bluebird-search.md +96 -7
- package/package.json +22 -22
- package/dist/attribution-settings-DE0207hK.js.map +0 -1
- package/dist/bluebird-client-DpYl1YmJ.js.map +0 -1
- package/dist/bluebird-client-bn9Yv6Cb.js +0 -2
- package/dist/claude-YVz8FA1M.js.map +0 -1
- package/dist/engine-Bbhs1trv.js +0 -2
- package/dist/exec-MCU1H-KZ.js.map +0 -1
- package/dist/internal-fast-dispatch-guard-DeZ6KilC.js +0 -2
- package/dist/internal-first-mate-guard-CAefr6Ce.js +0 -2
- package/dist/internal-max-dispatch-guard-KmbYwh7h.js +0 -2
- package/dist/internal-prompt-submit-CA5Y4DWM.js +0 -2
- package/dist/internal-prompt-submit-UhfnM_qG.js +0 -573
- package/dist/internal-prompt-submit-UhfnM_qG.js.map +0 -1
- package/dist/lifecycle-DMRZswwc.js +0 -2
- package/dist/lifecycle-FT75ohVw.js +0 -2
- package/dist/paths-CpbTHKeP.js.map +0 -1
- package/dist/paths-Dfivvq21.js +0 -2
- package/dist/peer-mcp-personas-D_gRB57l.js.map +0 -1
- package/dist/pi-DpVcRXlA.js.map +0 -1
- package/dist/prompt-submit-hook-DzhmQRs_.js.map +0 -1
- package/dist/provision-CCLXOWVZ.js.map +0 -1
- package/dist/serve-D7aq-iiE.js.map +0 -1
- package/dist/server-setup-B8LyRuEN.js.map +0 -1
- package/dist/service-backend-7SPDLUB9.js.map +0 -1
|
@@ -12,7 +12,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
12
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
13
|
var __getProtoOf = Object.getPrototypeOf;
|
|
14
14
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
15
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
16
16
|
var __copyProps = (to, from, except, desc) => {
|
|
17
17
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
18
18
|
key = keys[i];
|
|
@@ -323,7 +323,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
323
323
|
acceptAsServer(offers) {
|
|
324
324
|
const opts = this._options;
|
|
325
325
|
const accepted = offers.find((params) => {
|
|
326
|
-
if (opts.serverNoContextTakeover === false && params.server_no_context_takeover || params.server_max_window_bits && (opts.serverMaxWindowBits === false || typeof opts.serverMaxWindowBits === "number" && opts.serverMaxWindowBits > params.server_max_window_bits) || typeof opts.clientMaxWindowBits === "number" && !params.client_max_window_bits) return false;
|
|
326
|
+
if (opts.serverNoContextTakeover === false && params.server_no_context_takeover || params.server_max_window_bits && (opts.serverMaxWindowBits === false || typeof opts.serverMaxWindowBits === "number" && opts.serverMaxWindowBits > params.server_max_window_bits) || typeof opts.clientMaxWindowBits === "number" && (typeof params.client_max_window_bits === "number" ? opts.clientMaxWindowBits > params.client_max_window_bits : !params.client_max_window_bits)) return false;
|
|
327
327
|
return true;
|
|
328
328
|
});
|
|
329
329
|
if (!accepted) throw new Error("None of the extension offers can be accepted");
|
|
@@ -1200,7 +1200,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1200
1200
|
//#endregion
|
|
1201
1201
|
//#region node_modules/ws/lib/sender.js
|
|
1202
1202
|
var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1203
|
-
const { Duplex
|
|
1203
|
+
const { Duplex } = __require("stream");
|
|
1204
1204
|
const { randomFillSync } = __require("crypto");
|
|
1205
1205
|
const { types: { isUint8Array } } = __require("util");
|
|
1206
1206
|
const PerMessageDeflate = require_permessage_deflate();
|
|
@@ -1284,12 +1284,13 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1284
1284
|
offset = 6;
|
|
1285
1285
|
}
|
|
1286
1286
|
let dataLength;
|
|
1287
|
-
if (typeof data === "string")
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1287
|
+
if (typeof data === "string") {
|
|
1288
|
+
if ((!options.mask || skipMasking) && options[kByteLength] !== void 0) dataLength = options[kByteLength];
|
|
1289
|
+
else {
|
|
1290
|
+
data = Buffer.from(data);
|
|
1291
|
+
dataLength = data.length;
|
|
1292
|
+
}
|
|
1293
|
+
} else {
|
|
1293
1294
|
dataLength = data.length;
|
|
1294
1295
|
merge = options.mask && options.readOnly && !skipMasking;
|
|
1295
1296
|
}
|
|
@@ -1401,15 +1402,16 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1401
1402
|
readOnly,
|
|
1402
1403
|
rsv1: false
|
|
1403
1404
|
};
|
|
1404
|
-
if (isBlob(data))
|
|
1405
|
-
this.
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1405
|
+
if (isBlob(data)) {
|
|
1406
|
+
if (this._state !== DEFAULT) this.enqueue([
|
|
1407
|
+
this.getBlobData,
|
|
1408
|
+
data,
|
|
1409
|
+
false,
|
|
1410
|
+
options,
|
|
1411
|
+
cb
|
|
1412
|
+
]);
|
|
1413
|
+
else this.getBlobData(data, false, options, cb);
|
|
1414
|
+
} else if (this._state !== DEFAULT) this.enqueue([
|
|
1413
1415
|
this.dispatch,
|
|
1414
1416
|
data,
|
|
1415
1417
|
false,
|
|
@@ -1451,15 +1453,16 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1451
1453
|
readOnly,
|
|
1452
1454
|
rsv1: false
|
|
1453
1455
|
};
|
|
1454
|
-
if (isBlob(data))
|
|
1455
|
-
this.
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1456
|
+
if (isBlob(data)) {
|
|
1457
|
+
if (this._state !== DEFAULT) this.enqueue([
|
|
1458
|
+
this.getBlobData,
|
|
1459
|
+
data,
|
|
1460
|
+
false,
|
|
1461
|
+
options,
|
|
1462
|
+
cb
|
|
1463
|
+
]);
|
|
1464
|
+
else this.getBlobData(data, false, options, cb);
|
|
1465
|
+
} else if (this._state !== DEFAULT) this.enqueue([
|
|
1463
1466
|
this.dispatch,
|
|
1464
1467
|
data,
|
|
1465
1468
|
false,
|
|
@@ -1520,15 +1523,16 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1520
1523
|
readOnly,
|
|
1521
1524
|
rsv1
|
|
1522
1525
|
};
|
|
1523
|
-
if (isBlob(data))
|
|
1524
|
-
this.
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1526
|
+
if (isBlob(data)) {
|
|
1527
|
+
if (this._state !== DEFAULT) this.enqueue([
|
|
1528
|
+
this.getBlobData,
|
|
1529
|
+
data,
|
|
1530
|
+
this._compress,
|
|
1531
|
+
opts,
|
|
1532
|
+
cb
|
|
1533
|
+
]);
|
|
1534
|
+
else this.getBlobData(data, this._compress, opts, cb);
|
|
1535
|
+
} else if (this._state !== DEFAULT) this.enqueue([
|
|
1532
1536
|
this.dispatch,
|
|
1533
1537
|
data,
|
|
1534
1538
|
this._compress,
|
|
@@ -1961,51 +1965,54 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1961
1965
|
let i = 0;
|
|
1962
1966
|
for (; i < header.length; i++) {
|
|
1963
1967
|
code = header.charCodeAt(i);
|
|
1964
|
-
if (extensionName === void 0)
|
|
1965
|
-
if (
|
|
1966
|
-
|
|
1967
|
-
if (
|
|
1968
|
-
|
|
1969
|
-
if (
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
if (
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
push(
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
start
|
|
1995
|
-
|
|
1996
|
-
|
|
1968
|
+
if (extensionName === void 0) {
|
|
1969
|
+
if (end === -1 && tokenChars[code] === 1) {
|
|
1970
|
+
if (start === -1) start = i;
|
|
1971
|
+
} else if (i !== 0 && (code === 32 || code === 9)) {
|
|
1972
|
+
if (end === -1 && start !== -1) end = i;
|
|
1973
|
+
} else if (code === 59 || code === 44) {
|
|
1974
|
+
if (start === -1) throw new SyntaxError(`Unexpected character at index ${i}`);
|
|
1975
|
+
if (end === -1) end = i;
|
|
1976
|
+
const name = header.slice(start, end);
|
|
1977
|
+
if (code === 44) {
|
|
1978
|
+
push(offers, name, params);
|
|
1979
|
+
params = Object.create(null);
|
|
1980
|
+
} else extensionName = name;
|
|
1981
|
+
start = end = -1;
|
|
1982
|
+
} else throw new SyntaxError(`Unexpected character at index ${i}`);
|
|
1983
|
+
} else if (paramName === void 0) {
|
|
1984
|
+
if (end === -1 && tokenChars[code] === 1) {
|
|
1985
|
+
if (start === -1) start = i;
|
|
1986
|
+
} else if (code === 32 || code === 9) {
|
|
1987
|
+
if (end === -1 && start !== -1) end = i;
|
|
1988
|
+
} else if (code === 59 || code === 44) {
|
|
1989
|
+
if (start === -1) throw new SyntaxError(`Unexpected character at index ${i}`);
|
|
1990
|
+
if (end === -1) end = i;
|
|
1991
|
+
push(params, header.slice(start, end), true);
|
|
1992
|
+
if (code === 44) {
|
|
1993
|
+
push(offers, extensionName, params);
|
|
1994
|
+
params = Object.create(null);
|
|
1995
|
+
extensionName = void 0;
|
|
1996
|
+
}
|
|
1997
|
+
start = end = -1;
|
|
1998
|
+
} else if (code === 61 && start !== -1 && end === -1) {
|
|
1999
|
+
paramName = header.slice(start, i);
|
|
2000
|
+
start = end = -1;
|
|
2001
|
+
} else throw new SyntaxError(`Unexpected character at index ${i}`);
|
|
2002
|
+
} else if (isEscaping) {
|
|
1997
2003
|
if (tokenChars[code] !== 1) throw new SyntaxError(`Unexpected character at index ${i}`);
|
|
1998
2004
|
if (start === -1) start = i;
|
|
1999
2005
|
else if (!mustUnescape) mustUnescape = true;
|
|
2000
2006
|
isEscaping = false;
|
|
2001
|
-
} else if (inQuotes)
|
|
2002
|
-
if (
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2007
|
+
} else if (inQuotes) {
|
|
2008
|
+
if (tokenChars[code] === 1) {
|
|
2009
|
+
if (start === -1) start = i;
|
|
2010
|
+
} else if (code === 34 && start !== -1) {
|
|
2011
|
+
inQuotes = false;
|
|
2012
|
+
end = i;
|
|
2013
|
+
} else if (code === 92) isEscaping = true;
|
|
2014
|
+
else throw new SyntaxError(`Unexpected character at index ${i}`);
|
|
2015
|
+
} else if (code === 34 && header.charCodeAt(i - 1) === 61) inQuotes = true;
|
|
2009
2016
|
else if (end === -1 && tokenChars[code] === 1) {
|
|
2010
2017
|
if (start === -1) start = i;
|
|
2011
2018
|
} else if (start !== -1 && (code === 32 || code === 9)) {
|
|
@@ -2068,13 +2075,13 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2068
2075
|
//#endregion
|
|
2069
2076
|
//#region node_modules/ws/lib/websocket.js
|
|
2070
2077
|
var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2071
|
-
const EventEmitter
|
|
2078
|
+
const EventEmitter = __require("events");
|
|
2072
2079
|
const https = __require("https");
|
|
2073
|
-
const http
|
|
2080
|
+
const http = __require("http");
|
|
2074
2081
|
const net = __require("net");
|
|
2075
2082
|
const tls = __require("tls");
|
|
2076
|
-
const { randomBytes
|
|
2077
|
-
const { Duplex
|
|
2083
|
+
const { randomBytes, createHash } = __require("crypto");
|
|
2084
|
+
const { Duplex, Readable } = __require("stream");
|
|
2078
2085
|
const { URL } = __require("url");
|
|
2079
2086
|
const PerMessageDeflate = require_permessage_deflate();
|
|
2080
2087
|
const Receiver = require_receiver();
|
|
@@ -2098,7 +2105,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2098
2105
|
*
|
|
2099
2106
|
* @extends EventEmitter
|
|
2100
2107
|
*/
|
|
2101
|
-
var WebSocket = class WebSocket extends EventEmitter
|
|
2108
|
+
var WebSocket = class WebSocket extends EventEmitter {
|
|
2102
2109
|
/**
|
|
2103
2110
|
* Create a new `WebSocket`.
|
|
2104
2111
|
*
|
|
@@ -2126,11 +2133,18 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2126
2133
|
this._bufferedAmount = 0;
|
|
2127
2134
|
this._isServer = false;
|
|
2128
2135
|
this._redirects = 0;
|
|
2129
|
-
if (protocols === void 0)
|
|
2130
|
-
|
|
2131
|
-
options = protocols;
|
|
2132
|
-
protocols = [];
|
|
2133
|
-
} else protocols
|
|
2136
|
+
if (protocols === void 0) {
|
|
2137
|
+
if (!options || options.protocols === void 0) protocols = [];
|
|
2138
|
+
else if (Array.isArray(options.protocols)) protocols = options.protocols;
|
|
2139
|
+
else protocols = [options.protocols];
|
|
2140
|
+
} else if (!Array.isArray(protocols)) {
|
|
2141
|
+
if (typeof protocols === "object" && protocols !== null) {
|
|
2142
|
+
options = protocols;
|
|
2143
|
+
if (options.protocols === void 0) protocols = [];
|
|
2144
|
+
else if (Array.isArray(options.protocols)) protocols = options.protocols;
|
|
2145
|
+
else protocols = [options.protocols];
|
|
2146
|
+
} else protocols = [protocols];
|
|
2147
|
+
}
|
|
2134
2148
|
initAsClient(this, address, protocols, options);
|
|
2135
2149
|
} else {
|
|
2136
2150
|
this._autoPong = options.autoPong;
|
|
@@ -2318,12 +2332,12 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2318
2332
|
if (this._closeFrameSent && (this._closeFrameReceived || this._receiver._writableState.errorEmitted)) this._socket.end();
|
|
2319
2333
|
return;
|
|
2320
2334
|
}
|
|
2321
|
-
this._readyState = WebSocket.CLOSING;
|
|
2322
2335
|
this._sender.close(code, data, !this._isServer, (err) => {
|
|
2323
2336
|
if (err) return;
|
|
2324
2337
|
this._closeFrameSent = true;
|
|
2325
2338
|
if (this._closeFrameReceived || this._receiver._writableState.errorEmitted) this._socket.end();
|
|
2326
2339
|
});
|
|
2340
|
+
this._readyState = WebSocket.CLOSING;
|
|
2327
2341
|
setCloseTimer(this);
|
|
2328
2342
|
}
|
|
2329
2343
|
/**
|
|
@@ -2606,6 +2620,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2606
2620
|
socketPath: void 0,
|
|
2607
2621
|
hostname: void 0,
|
|
2608
2622
|
protocol: void 0,
|
|
2623
|
+
protocols: void 0,
|
|
2609
2624
|
timeout: void 0,
|
|
2610
2625
|
method: "GET",
|
|
2611
2626
|
host: void 0,
|
|
@@ -2640,8 +2655,8 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2640
2655
|
}
|
|
2641
2656
|
}
|
|
2642
2657
|
const defaultPort = isSecure ? 443 : 80;
|
|
2643
|
-
const key = randomBytes
|
|
2644
|
-
const request = isSecure ? https.request : http
|
|
2658
|
+
const key = randomBytes(16).toString("base64");
|
|
2659
|
+
const request = isSecure ? https.request : http.request;
|
|
2645
2660
|
const protocolSet = /* @__PURE__ */ new Set();
|
|
2646
2661
|
let perMessageDeflate;
|
|
2647
2662
|
opts.createConnection = opts.createConnection || (isSecure ? tlsConnect : netConnect);
|
|
@@ -2672,8 +2687,10 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2672
2687
|
}
|
|
2673
2688
|
opts.headers["Sec-WebSocket-Protocol"] = protocols.join(",");
|
|
2674
2689
|
}
|
|
2675
|
-
if (opts.origin)
|
|
2676
|
-
|
|
2690
|
+
if (opts.origin) {
|
|
2691
|
+
if (opts.protocolVersion < 13) opts.headers["Sec-WebSocket-Origin"] = opts.origin;
|
|
2692
|
+
else opts.headers.Origin = opts.origin;
|
|
2693
|
+
}
|
|
2677
2694
|
if (parsedUrl.username || parsedUrl.password) opts.auth = `${parsedUrl.username}:${parsedUrl.password}`;
|
|
2678
2695
|
if (isIpcUrl) {
|
|
2679
2696
|
const parts = opts.path.split(":");
|
|
@@ -2741,7 +2758,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2741
2758
|
abortHandshake(websocket, socket, "Invalid Upgrade header");
|
|
2742
2759
|
return;
|
|
2743
2760
|
}
|
|
2744
|
-
const digest = createHash
|
|
2761
|
+
const digest = createHash("sha1").update(key + GUID).digest("base64");
|
|
2745
2762
|
if (res.headers["sec-websocket-accept"] !== digest) {
|
|
2746
2763
|
abortHandshake(websocket, socket, "Invalid Sec-WebSocket-Accept header");
|
|
2747
2764
|
return;
|
|
@@ -3058,7 +3075,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3058
3075
|
//#region node_modules/ws/lib/stream.js
|
|
3059
3076
|
var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3060
3077
|
require_websocket();
|
|
3061
|
-
const { Duplex
|
|
3078
|
+
const { Duplex } = __require("stream");
|
|
3062
3079
|
/**
|
|
3063
3080
|
* Emits the `'close'` event on a stream.
|
|
3064
3081
|
*
|
|
@@ -3097,7 +3114,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3097
3114
|
*/
|
|
3098
3115
|
function createWebSocketStream(ws, options) {
|
|
3099
3116
|
let terminateOnDestroy = true;
|
|
3100
|
-
const duplex = new Duplex
|
|
3117
|
+
const duplex = new Duplex({
|
|
3101
3118
|
...options,
|
|
3102
3119
|
autoDestroy: false,
|
|
3103
3120
|
emitClose: false,
|
|
@@ -3359,9 +3376,10 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
3359
3376
|
this._removeListeners();
|
|
3360
3377
|
this._removeListeners = this._server = null;
|
|
3361
3378
|
}
|
|
3362
|
-
if (this.clients)
|
|
3363
|
-
|
|
3364
|
-
|
|
3379
|
+
if (this.clients) {
|
|
3380
|
+
if (!this.clients.size) process.nextTick(emitClose, this);
|
|
3381
|
+
else this._shouldEmitClose = true;
|
|
3382
|
+
} else process.nextTick(emitClose, this);
|
|
3365
3383
|
} else {
|
|
3366
3384
|
const server = this._server;
|
|
3367
3385
|
this._removeListeners();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": 3,
|
|
3
3
|
"name": "github-router browser bridge",
|
|
4
4
|
"short_name": "gh-router-browser",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.353",
|
|
6
6
|
"description": "Bridge between Claude (via github-router /mcp) and the browser. Implements tab control, navigation, clicks, form fill, downloads, screenshots, devtools eval. Blocks navigation to chrome://settings.",
|
|
7
7
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqJElxuBlonBS3TVW9FJN0mGTtShB3L1hoaYf6k39SOr1ogGYmF90EjRxy1i21k9wQQjPf26bcBu/9X67KrQjQV0uB38CaNukgiSeoLjfptN811u+PJHx6BP+jx3Qa6/3VenNPxHC8WEU0GXql8QSjIHEyCwKb6fMASXOK94JyB5Ywov2x8mt/+9ncqBBBMVzf6r5Sagy4PL1XnryLsuADD/vOEkPet8wXgH/Oj7v5tTsQQZ7U1JT51PoDs2BFnXc5v3TkVgZwd32k3ONh+nkDw1Hof+4zwUGOyJE6eMrlYzRlKM4Qxdf9JpavQvqfieAbTRWcyKeclnHeoIfE7cDBQIDAQAB",
|
|
8
8
|
"background": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as ensurePaths } from "./paths-
|
|
2
|
-
import { r as setupGitHubToken } from "./token-
|
|
3
|
-
import { t as getCopilotUsage } from "./get-copilot-usage-
|
|
1
|
+
import { i as ensurePaths } from "./paths-xTSEAWfN.js";
|
|
2
|
+
import { r as setupGitHubToken } from "./token-CTf5jCmP.js";
|
|
3
|
+
import { t as getCopilotUsage } from "./get-copilot-usage-0_S8pRWJ.js";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import consola from "consola";
|
|
6
6
|
//#region src/check-usage.ts
|
|
@@ -40,4 +40,4 @@ const checkUsage = defineCommand({
|
|
|
40
40
|
//#endregion
|
|
41
41
|
export { checkUsage };
|
|
42
42
|
|
|
43
|
-
//# sourceMappingURL=check-usage-
|
|
43
|
+
//# sourceMappingURL=check-usage-Bsbc-Sn6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-usage-
|
|
1
|
+
{"version":3,"file":"check-usage-Bsbc-Sn6.js","names":[],"sources":["../src/check-usage.ts"],"sourcesContent":["import { defineCommand } from \"citty\"\nimport consola from \"consola\"\n\nimport { ensurePaths } from \"./lib/paths\"\nimport { setupGitHubToken } from \"./lib/token\"\nimport {\n getCopilotUsage,\n type QuotaDetail,\n} from \"./services/github/get-copilot-usage\"\n\nexport const checkUsage = defineCommand({\n meta: {\n name: \"check-usage\",\n description: \"Show current GitHub Copilot usage/quota information\",\n },\n async run() {\n await ensurePaths()\n await setupGitHubToken()\n try {\n const usage = await getCopilotUsage()\n const premium = usage.quota_snapshots.premium_interactions\n const premiumTotal = premium.entitlement\n const premiumUsed = premiumTotal - premium.remaining\n const premiumPercentUsed =\n premiumTotal > 0 ? (premiumUsed / premiumTotal) * 100 : 0\n const premiumPercentRemaining = premium.percent_remaining\n\n // Helper to summarize a quota snapshot\n function summarizeQuota(name: string, snap: QuotaDetail | undefined) {\n if (!snap) return `${name}: N/A`\n const total = snap.entitlement\n const used = total - snap.remaining\n const percentUsed = total > 0 ? (used / total) * 100 : 0\n const percentRemaining = snap.percent_remaining\n return `${name}: ${used}/${total} used (${percentUsed.toFixed(1)}% used, ${percentRemaining.toFixed(1)}% remaining)`\n }\n\n const premiumLine = `Premium: ${premiumUsed}/${premiumTotal} used (${premiumPercentUsed.toFixed(1)}% used, ${premiumPercentRemaining.toFixed(1)}% remaining)`\n const chatLine = summarizeQuota(\"Chat\", usage.quota_snapshots.chat)\n const completionsLine = summarizeQuota(\n \"Completions\",\n usage.quota_snapshots.completions,\n )\n\n consola.box(\n `Copilot Usage (plan: ${usage.copilot_plan})\\n`\n + `Quota resets: ${usage.quota_reset_date}\\n`\n + `\\nQuotas:\\n`\n + ` ${premiumLine}\\n`\n + ` ${chatLine}\\n`\n + ` ${completionsLine}`,\n )\n } catch (err) {\n consola.error(\"Failed to fetch Copilot usage:\", err)\n process.exit(1)\n }\n },\n})\n"],"mappings":";;;;;;AAUA,MAAa,aAAa,cAAc;CACtC,MAAM;EACJ,MAAM;EACN,aAAa;CACf;CACA,MAAM,MAAM;EACV,MAAM,YAAY;EAClB,MAAM,iBAAiB;EACvB,IAAI;GACF,MAAM,QAAQ,MAAM,gBAAgB;GACpC,MAAM,UAAU,MAAM,gBAAgB;GACtC,MAAM,eAAe,QAAQ;GAC7B,MAAM,cAAc,eAAe,QAAQ;GAC3C,MAAM,qBACJ,eAAe,IAAK,cAAc,eAAgB,MAAM;GAC1D,MAAM,0BAA0B,QAAQ;GAGxC,SAAS,eAAe,MAAc,MAA+B;IACnE,IAAI,CAAC,MAAM,OAAO,GAAG,KAAK;IAC1B,MAAM,QAAQ,KAAK;IACnB,MAAM,OAAO,QAAQ,KAAK;IAC1B,MAAM,cAAc,QAAQ,IAAK,OAAO,QAAS,MAAM;IACvD,MAAM,mBAAmB,KAAK;IAC9B,OAAO,GAAG,KAAK,IAAI,KAAK,GAAG,MAAM,SAAS,YAAY,QAAQ,CAAC,EAAE,UAAU,iBAAiB,QAAQ,CAAC,EAAE;GACzG;GAEA,MAAM,cAAc,YAAY,YAAY,GAAG,aAAa,SAAS,mBAAmB,QAAQ,CAAC,EAAE,UAAU,wBAAwB,QAAQ,CAAC,EAAE;GAChJ,MAAM,WAAW,eAAe,QAAQ,MAAM,gBAAgB,IAAI;GAClE,MAAM,kBAAkB,eACtB,eACA,MAAM,gBAAgB,WACxB;GAEA,QAAQ,IACN,wBAAwB,MAAM,aAAa,mBACtB,MAAM,iBAAiB,iBAEnC,YAAY,MACZ,SAAS,MACT,iBACX;EACF,SAAS,KAAK;GACZ,QAAQ,MAAM,kCAAkC,GAAG;GACnD,QAAQ,KAAK,CAAC;EAChB;CACF;AACF,CAAC"}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as writeArtifactCredsToMirror, o as purgeNonRouterAgentsFromMirror, r as ensureClaudeConfigMirror, s as removeOwnClaudeConfigMirror, t as PATHS } from "./paths-
|
|
3
|
-
import { t as state } from "./state-
|
|
4
|
-
import { d as resolveModel } from "./token-
|
|
5
|
-
import {
|
|
6
|
-
import { A as formatFastPrerequisiteFailure, B as runSelfUpdate, D as formatCheap1mPrerequisiteFailure, E as formatBalancedPrerequisiteFailure, F as validateCheapProfilePrerequisites, H as updateClaude, I as validateCheapestProfilePrerequisites, L as validateFastProfilePrerequisites, M as resolveLaunchProfile, N as validateBalancedProfilePrerequisites, O as formatCheapPrerequisiteFailure, P as validateCheap1mProfilePrerequisites, R as validateMaxProfileLaunch, V as checkClaudeVersion, a as setupAndServe, c as startKeepAwake, d as listModelsForEndpoint, f as enableFileLogging, i as parseSharedArgs, j as profileDescriptor, k as formatCheapestPrerequisiteFailure, l as stopKeepAwake, o as sharedServerArgs, s as LAUNCH_SECRET_HEADER, t as getClaudeCodeEnvVars, u as injectModelPickerSettingsFile } from "./server-setup-
|
|
1
|
+
import { P as warmTreeSitterPool } from "./service-backend-DV1u5x0Q.js";
|
|
2
|
+
import { d as writeArtifactCredsToMirror, o as purgeNonRouterAgentsFromMirror, r as ensureClaudeConfigMirror, s as removeOwnClaudeConfigMirror, t as PATHS } from "./paths-xTSEAWfN.js";
|
|
3
|
+
import { t as state } from "./state-CfEVoqBM.js";
|
|
4
|
+
import { d as resolveModel } from "./token-CTf5jCmP.js";
|
|
5
|
+
import { a as parseBoolEnv } from "./exec-Bf8g_bIR.js";
|
|
6
|
+
import { A as formatFastPrerequisiteFailure, B as runSelfUpdate, D as formatCheap1mPrerequisiteFailure, E as formatBalancedPrerequisiteFailure, F as validateCheapProfilePrerequisites, H as updateClaude, I as validateCheapestProfilePrerequisites, L as validateFastProfilePrerequisites, M as resolveLaunchProfile, N as validateBalancedProfilePrerequisites, O as formatCheapPrerequisiteFailure, P as validateCheap1mProfilePrerequisites, R as validateMaxProfileLaunch, V as checkClaudeVersion, a as setupAndServe, c as startKeepAwake, d as listModelsForEndpoint, f as enableFileLogging, i as parseSharedArgs, j as profileDescriptor, k as formatCheapestPrerequisiteFailure, l as stopKeepAwake, o as sharedServerArgs, s as LAUNCH_SECRET_HEADER, t as getClaudeCodeEnvVars, u as injectModelPickerSettingsFile } from "./server-setup-COrhtCdv.js";
|
|
7
7
|
import { n as BALANCED_PROFILE_LEAD_EFFORT, o as BALANCED_PROFILE_NATIVE_MODELS, u as FAST_PROFILE_ADVISOR_CLIENT_MODEL } from "./balanced-profile-contract-XiIj4O1U.js";
|
|
8
|
-
import { At as
|
|
9
|
-
import { _ as maxReviewerModel, c as formatMaxPrerequisiteFailure, f as maxCodexReviewerModel, h as maxOpusModel, i as MAX_PROFILE_MODELS, m as maxGrokModel, o as MAX_PROFILE_NATIVE_EFFORTS, p as maxGeminiModel, v as maxSonnetModel } from "./max-profile-contract
|
|
10
|
-
import { n as hookLauncherDegradedWarning, r as resolveSelfInvocation } from "./self-invocation-
|
|
11
|
-
import { i as launchChild, r as getCodexVersion, t as provisionToolbelt } from "./provision-
|
|
12
|
-
import {
|
|
13
|
-
import { d as
|
|
14
|
-
import { t as
|
|
15
|
-
import { d as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { r as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { n as
|
|
22
|
-
import { i as assertShapingInstalled, n as buildFirstMateGuardHookCommand, t as FIRST_MATE_GUARD_MATCHER } from "./internal-first-mate-guard-
|
|
23
|
-
import { r as FAST_DISPATCH_TOOL_MATCHER, t as buildFastDispatchGuardHookCommand } from "./internal-fast-dispatch-guard-
|
|
24
|
-
import { i as assertMaxDispatchGuardInstalled, r as MAX_DISPATCH_TOOL_MATCHER, t as buildMaxDispatchGuardHookCommand } from "./internal-max-dispatch-guard-
|
|
25
|
-
import { a as
|
|
26
|
-
import {
|
|
8
|
+
import { At as fastGeneralPurposeModel, Bt as nativeSubagentModel, Ct as cheapOracleModel, D as toolbeltEnabled, Dt as cheapestReviewerModel, E as buildToolbeltAwareness, Et as cheapestOracleModel, Ft as fleetToolsEnabled, Gt as scribeModel, Hn as CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL, Ht as reviewerFastModel, It as geminiAvailable, Jn as CHEAPEST_PROFILE_NATIVE_MODELS, Kt as standInToolEnabled, Lt as generalPurposeFastModel, Mn as isBudgetClaudeLead, Mt as fastPlanModel, Nn as pickClaudeDefault, Nt as fastReviewerModel, Ot as fastAdvisorModel, Pn as resolveLeadSlugArg, Pt as fastScoutModel, Qn as CHEAP_PROFILE_ADVISOR_CLIENT_MODEL, Rt as implementerFastModel, St as cheapAdvisorModel, T as availableToolCommands, Tn as DEFAULT_CLAUDE_MODEL_FALLBACKS, Tt as cheapestAdvisorModel, Ut as reviewerModel, Vt as resolveGeminiReviewModel, Wt as scoutModel, _n as colbertDegradedWarning, _t as balancedReviewerModel, bn as shouldUseInsecureTls, bt as browserCompoundToolsEnabled, fn as provisionBrowserAssets, gt as balancedOracleModel, ht as artifactToolsEnabled, jt as fastOracleModel, kt as fastAstraModel, mt as agentToolsEnabled, nn as unregisterLaunch, nr as CHEAP_PROFILE_NATIVE_MODELS, o as buildPeerAwarenessSnippet, pt as adoToolsEnabled, qt as workerToolsEnabled, r as agentNamesForToolAllowlist, s as buildPeerAwarenessSummary, tn as registerLaunch, vn as provisionAndIndexColbert, vt as brainstormModel, wt as cheapReviewerModel, xt as browserToolsEnabled, yn as semanticSearchOptedIn, yt as browseAgentEnabled, zt as kustoToolsEnabled } from "./peer-mcp-personas-DDMKRFFG.js";
|
|
9
|
+
import { _ as maxReviewerModel, c as formatMaxPrerequisiteFailure, f as maxCodexReviewerModel, h as maxOpusModel, i as MAX_PROFILE_MODELS, m as maxGrokModel, o as MAX_PROFILE_NATIVE_EFFORTS, p as maxGeminiModel, v as maxSonnetModel } from "./max-profile-contract-DQDEDCsR.js";
|
|
10
|
+
import { n as hookLauncherDegradedWarning, r as resolveSelfInvocation } from "./self-invocation-Dr5zlbpM.js";
|
|
11
|
+
import { i as launchChild, r as getCodexVersion, t as provisionToolbelt } from "./provision-BtYRtvrj.js";
|
|
12
|
+
import { r as buildPromptSubmitHookCommand } from "./static-context-pack-CyucviRD.js";
|
|
13
|
+
import { d as stopGateEnabledForRepo, l as repoFingerprint, p as trustRepo, t as fileBaselineStore, u as repoRoot } from "./stop-gate-policy-FGAfpfc-.js";
|
|
14
|
+
import { d as sweepStaleAicLedgerFiles, n as aicSnapshot, o as formatAicExitSummary, t as aicLedgerPath, u as removeAicLedgerFile } from "./aic-ledger-BdvCgRmx.js";
|
|
15
|
+
import { d as stopGateId, i as captureLaunchBaseline, l as purgeNonRouterHooksForPinnedProfile, n as buildSessionBindHookCommand, r as buildStopHookCommand, s as injectStopHookIntoSettingsFile, t as buildArtifactOpenHookCommand, u as stopGateDisabled } from "./stop-gate-hook-BYd0NruJ.js";
|
|
16
|
+
import { t as liveExec } from "./orchestration-D-S_0GVt.js";
|
|
17
|
+
import { l as guardToolMatcher, n as activeDispatchModes, r as buildWorkerGuardHookCommand } from "./worker-dispatch-BjfROaic.js";
|
|
18
|
+
import { a as buildArtifactReviewSkill, c as injectAllowRules, f as injectPeerMcpIntoMirror, g as writePeerMcpRuntimeFiles, h as workersKeyOf, i as writeInjectedSkill, l as planModeAllowRules, m as resolveGroupKeysFromMirror, p as resolveCodexCliBackend, r as injectedSkillsForLaunch, t as injectAttributionSuppressionIntoSettingsFile } from "./attribution-settings-7cbLvuiE.js";
|
|
19
|
+
import { r as hookMcpRuntimeFromEnv } from "./hook-mcp-client-DERIkeR7.js";
|
|
20
|
+
import { i as planReviewEnabled, t as buildPlanReviewHookCommand } from "./plan-review-hook-BQ29WGv7.js";
|
|
21
|
+
import { a as checksForDescriptor, i as writeDiscoveredGate, n as readDiscoveredGate, o as descriptorHash, r as sourcesHash, s as parseGateDescriptor, t as discoverGateCommands } from "./gate-discovery-Cvdko01z.js";
|
|
22
|
+
import { i as assertShapingInstalled, n as buildFirstMateGuardHookCommand, t as FIRST_MATE_GUARD_MATCHER } from "./internal-first-mate-guard-BJvCsVlU.js";
|
|
23
|
+
import { r as FAST_DISPATCH_TOOL_MATCHER, t as buildFastDispatchGuardHookCommand } from "./internal-fast-dispatch-guard-BQm1MI9d.js";
|
|
24
|
+
import { i as assertMaxDispatchGuardInstalled, r as MAX_DISPATCH_TOOL_MATCHER, t as buildMaxDispatchGuardHookCommand } from "./internal-max-dispatch-guard-DkJixDmG.js";
|
|
25
|
+
import { a as buildOperatingDefaultsDirective, c as prependOperatingDefaultsToMirroredClaudeMd, i as buildOperatingDefaultsDigest, l as prependStyleDirectiveToMirroredClaudeMd, n as appendPeerAwarenessToMirroredClaudeMd, r as appendToolbeltAwarenessToMirroredClaudeMd, s as prependArtifactPanelDirectiveToMirroredClaudeMd } from "./claude-md-injection-BoXOsg7h.js";
|
|
26
|
+
import { a as injectAicStatusLineIntoSettingsFile, i as buildAicStatusHookCommand, r as AIC_USER_STATUSLINE_ENV, t as AIC_LEDGER_ENV } from "./aic-statusline-settings-LnoxjBPe.js";
|
|
27
|
+
import { n as formatDiscountedCostTable, t as discountedUsdForSnapshot } from "./copilot-discount-C3jfysK-.js";
|
|
27
28
|
import { defineCommand } from "citty";
|
|
28
29
|
import consola from "consola";
|
|
29
30
|
import path from "node:path";
|
|
@@ -353,13 +354,15 @@ const claude = defineCommand({
|
|
|
353
354
|
const versionCheck = await checkClaudeVersion({ noCheck: false });
|
|
354
355
|
if (versionCheck.skipped && versionCheck.skipReason === "no-claude") consola.debug("claude --version probe failed; skipping auto-update.");
|
|
355
356
|
else if (versionCheck.skipped && versionCheck.skipReason === "no-npm") consola.debug("npm view @anthropic-ai/claude-code failed; skipping auto-update check (likely offline).");
|
|
356
|
-
else if (versionCheck.needsUpdate && versionCheck.installedVersion && versionCheck.latestVersion)
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
357
|
+
else if (versionCheck.needsUpdate && versionCheck.installedVersion && versionCheck.latestVersion) {
|
|
358
|
+
if (args["auto-update"] !== false) try {
|
|
359
|
+
await updateClaude(versionCheck.latestVersion);
|
|
360
|
+
} catch (err) {
|
|
361
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
362
|
+
consola.warn(`Auto-update of Claude Code from ${versionCheck.installedVersion} to ${versionCheck.latestVersion} failed (${msg}); continuing with installed version. Run \`claude update\` (or \`npm install -g @anthropic-ai/claude-code@latest\`) manually to retry.`);
|
|
363
|
+
}
|
|
364
|
+
else consola.warn(`Claude Code v${versionCheck.installedVersion} is installed; v${versionCheck.latestVersion} is available. Run with --auto-update (the default) to install on launch, or \`claude update\` manually.`);
|
|
361
365
|
}
|
|
362
|
-
else consola.warn(`Claude Code v${versionCheck.installedVersion} is installed; v${versionCheck.latestVersion} is available. Run with --auto-update (the default) to install on launch, or \`claude update\` manually.`);
|
|
363
366
|
} catch (err) {
|
|
364
367
|
consola.debug("Claude version check failed:", err);
|
|
365
368
|
}
|
|
@@ -521,10 +524,12 @@ const claude = defineCommand({
|
|
|
521
524
|
"max"
|
|
522
525
|
].includes(effectiveEffort.toLowerCase());
|
|
523
526
|
consola.info(`Pinned default-row check (${launchProfileId}): firstLunaRow=${firstLuna ?? "none"} defaultRowBare=${rowsVerified ? defaultRowBare : "unverified"} bracketedLeadEnv=${bracketedLeadEnv.length === 0 ? "none" : bracketedLeadEnv.join(",")} disable1m=${disableSeeded} leadEffort=${effectiveEffort || "none"}.`);
|
|
524
|
-
if (!defaultRowBare || bracketedLeadEnv.length > 0 || !disableSeeded || !effortOk)
|
|
525
|
-
if (
|
|
526
|
-
|
|
527
|
-
|
|
527
|
+
if (!defaultRowBare || bracketedLeadEnv.length > 0 || !disableSeeded || !effortOk) {
|
|
528
|
+
if (effortOk || effortRecognized) {
|
|
529
|
+
if (!effortOk) consola.info(`Operator lead-effort override (${launchProfileId}): session runs at ${effectiveEffort} instead of contracted ${contractedEffort}; subagent/advisor/oracle efforts are unaffected.`);
|
|
530
|
+
if (!defaultRowBare || bracketedLeadEnv.length > 0 || !disableSeeded) consola.warn(`Pinned default-row regression (${launchProfileId}): the lead row is not bare 200K — the session may default to 1M accounting.`);
|
|
531
|
+
} else consola.warn(`Pinned default-row regression (${launchProfileId}): the lead row is not bare 200K at contracted effort — the session may default to 1M accounting or off-contract effort.`);
|
|
532
|
+
}
|
|
528
533
|
}
|
|
529
534
|
}
|
|
530
535
|
let extraArgs = collectChildPassthroughArgs(rawArgs, claudeArgs);
|
|
@@ -549,8 +554,10 @@ const claude = defineCommand({
|
|
|
549
554
|
if (browserToolsEnabled()) provisionBrowserAssets().catch((err) => consola.debug("Browser extension provisioning failed:", err));
|
|
550
555
|
const baseShutdown = async () => {
|
|
551
556
|
await stopKeepAwake();
|
|
552
|
-
const { disposeBluebirdClients } = await import("./bluebird-client-
|
|
557
|
+
const { disposeBluebirdClients } = await import("./bluebird-client-mr3M67k-.js");
|
|
553
558
|
await disposeBluebirdClients();
|
|
559
|
+
const { disposeAdoClients } = await import("./ado-tools-xbuVU7YN.js");
|
|
560
|
+
await disposeAdoClients();
|
|
554
561
|
await removeOwnClaudeConfigMirror();
|
|
555
562
|
await removeAicLedgerFile();
|
|
556
563
|
};
|
|
@@ -638,6 +645,9 @@ const claude = defineCommand({
|
|
|
638
645
|
if (!isPinnedProfile && standInToolEnabled()) enabledGroups.push("decide");
|
|
639
646
|
if (isMaxProfile && maxOpusModel() !== void 0 && standInToolEnabled({ maxProfile: true })) enabledGroups.push("decide");
|
|
640
647
|
if (directBrowserAvailable && (!fastDescriptor.allowedGroups || fastDescriptor.allowedGroups.has("browser"))) enabledGroups.push("browser");
|
|
648
|
+
const allowsGroup = (group) => !fastDescriptor.allowedGroups || fastDescriptor.allowedGroups.has(group);
|
|
649
|
+
if (adoToolsEnabled() && allowsGroup("ado")) enabledGroups.push("ado");
|
|
650
|
+
if (kustoToolsEnabled() && allowsGroup("kusto")) enabledGroups.push("kusto");
|
|
641
651
|
if (!isPinnedProfile && fleetToolsEnabled()) enabledGroups.push("fleet");
|
|
642
652
|
if (!isPinnedProfile && agentToolsEnabled()) enabledGroups.push("first-mate");
|
|
643
653
|
if (isMaxProfile && fleetToolsEnabled()) enabledGroups.push("fleet");
|
|
@@ -833,17 +843,19 @@ const claude = defineCommand({
|
|
|
833
843
|
} catch (err) {
|
|
834
844
|
consola.warn(`Could not auto-approve injected tools: ${String(err)}`);
|
|
835
845
|
}
|
|
836
|
-
if (workerSkillsActive || isPinnedProfile && browseAgentAvailable)
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
846
|
+
if (workerSkillsActive || isPinnedProfile && browseAgentAvailable) {
|
|
847
|
+
if (!(isFastProfile || isCheapProfile || injected?.ok === true)) consola.warn("Workers non-blocking guard NOT registered: subagent MCP injection fell back to parent-only (--mcp-config), so worker-* dispatchers cannot reach the workers server. Raw (blocking) worker tools remain usable on the main thread this session.");
|
|
848
|
+
else if (process$1.env.GH_ROUTER_DISABLE_WORKER_GUARD === "1") consola.info("Workers non-blocking guard disabled via GH_ROUTER_DISABLE_WORKER_GUARD=1 — raw mcp__workers__* is callable on the main thread (blocking); the worker-* background agents remain the steered, non-blocking default.");
|
|
849
|
+
else try {
|
|
850
|
+
const settingsPath = path.join(PATHS.CLAUDE_CONFIG_DIR, "settings.json");
|
|
851
|
+
const workersKey = workersKeyOf(groupKeys);
|
|
852
|
+
const modes = isPinnedProfile ? ["browse"] : activeDispatchModes({ browse: browseAgentAvailable });
|
|
853
|
+
const cmd = buildWorkerGuardHookCommand(selfInvocation, workersKey, modes);
|
|
854
|
+
const matcher = guardToolMatcher(workersKey, modes);
|
|
855
|
+
await injectStopHookIntoSettingsFile(settingsPath, cmd, "PreToolUse", 10, matcher);
|
|
856
|
+
} catch (err) {
|
|
857
|
+
consola.warn(`Could not register the workers PreToolUse guard hook: ${String(err)}`);
|
|
858
|
+
}
|
|
847
859
|
}
|
|
848
860
|
if (skillsWritten > 0) {
|
|
849
861
|
const skillNames = skillsToWrite.map((s) => `/${s.name}`).join(", ");
|
|
@@ -1120,4 +1132,4 @@ const claude = defineCommand({
|
|
|
1120
1132
|
//#endregion
|
|
1121
1133
|
export { claude };
|
|
1122
1134
|
|
|
1123
|
-
//# sourceMappingURL=claude-
|
|
1135
|
+
//# sourceMappingURL=claude-CugVz_lo.js.map
|