@agentconnect.md/codex-acp 1.1.8-agentconnect.1 → 1.1.9-agentconnect.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +323 -173
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40,9 +40,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
40
40
|
mod
|
|
41
41
|
));
|
|
42
42
|
|
|
43
|
-
//
|
|
43
|
+
// node_modules/vscode-jsonrpc/lib/common/is.js
|
|
44
44
|
var require_is = __commonJS({
|
|
45
|
-
"
|
|
45
|
+
"node_modules/vscode-jsonrpc/lib/common/is.js"(exports) {
|
|
46
46
|
"use strict";
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.boolean = boolean4;
|
|
@@ -76,9 +76,9 @@ var require_is = __commonJS({
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
//
|
|
79
|
+
// node_modules/vscode-jsonrpc/lib/common/messages.js
|
|
80
80
|
var require_messages = __commonJS({
|
|
81
|
-
"
|
|
81
|
+
"node_modules/vscode-jsonrpc/lib/common/messages.js"(exports) {
|
|
82
82
|
"use strict";
|
|
83
83
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
84
84
|
if (k2 === void 0) k2 = k;
|
|
@@ -461,9 +461,9 @@ var require_messages = __commonJS({
|
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
463
|
|
|
464
|
-
//
|
|
464
|
+
// node_modules/vscode-jsonrpc/lib/common/linkedMap.js
|
|
465
465
|
var require_linkedMap = __commonJS({
|
|
466
|
-
"
|
|
466
|
+
"node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(exports) {
|
|
467
467
|
"use strict";
|
|
468
468
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
469
469
|
exports.LRUCache = exports.LinkedMap = exports.Touch = void 0;
|
|
@@ -845,9 +845,9 @@ var require_linkedMap = __commonJS({
|
|
|
845
845
|
}
|
|
846
846
|
});
|
|
847
847
|
|
|
848
|
-
//
|
|
848
|
+
// node_modules/vscode-jsonrpc/lib/common/disposable.js
|
|
849
849
|
var require_disposable = __commonJS({
|
|
850
|
-
"
|
|
850
|
+
"node_modules/vscode-jsonrpc/lib/common/disposable.js"(exports) {
|
|
851
851
|
"use strict";
|
|
852
852
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
853
853
|
exports.Disposable = void 0;
|
|
@@ -863,9 +863,9 @@ var require_disposable = __commonJS({
|
|
|
863
863
|
}
|
|
864
864
|
});
|
|
865
865
|
|
|
866
|
-
//
|
|
866
|
+
// node_modules/vscode-jsonrpc/lib/common/ral.js
|
|
867
867
|
var require_ral = __commonJS({
|
|
868
|
-
"
|
|
868
|
+
"node_modules/vscode-jsonrpc/lib/common/ral.js"(exports) {
|
|
869
869
|
"use strict";
|
|
870
870
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
871
871
|
var _ral;
|
|
@@ -888,9 +888,9 @@ var require_ral = __commonJS({
|
|
|
888
888
|
}
|
|
889
889
|
});
|
|
890
890
|
|
|
891
|
-
//
|
|
891
|
+
// node_modules/vscode-jsonrpc/lib/common/events.js
|
|
892
892
|
var require_events = __commonJS({
|
|
893
|
-
"
|
|
893
|
+
"node_modules/vscode-jsonrpc/lib/common/events.js"(exports) {
|
|
894
894
|
"use strict";
|
|
895
895
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
896
896
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -1025,9 +1025,9 @@ var require_events = __commonJS({
|
|
|
1025
1025
|
}
|
|
1026
1026
|
});
|
|
1027
1027
|
|
|
1028
|
-
//
|
|
1028
|
+
// node_modules/vscode-jsonrpc/lib/common/cancellation.js
|
|
1029
1029
|
var require_cancellation = __commonJS({
|
|
1030
|
-
"
|
|
1030
|
+
"node_modules/vscode-jsonrpc/lib/common/cancellation.js"(exports) {
|
|
1031
1031
|
"use strict";
|
|
1032
1032
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
1033
1033
|
if (k2 === void 0) k2 = k;
|
|
@@ -1154,9 +1154,9 @@ var require_cancellation = __commonJS({
|
|
|
1154
1154
|
}
|
|
1155
1155
|
});
|
|
1156
1156
|
|
|
1157
|
-
//
|
|
1157
|
+
// node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js
|
|
1158
1158
|
var require_sharedArrayCancellation = __commonJS({
|
|
1159
|
-
"
|
|
1159
|
+
"node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(exports) {
|
|
1160
1160
|
"use strict";
|
|
1161
1161
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1162
1162
|
exports.SharedArrayReceiverStrategy = exports.SharedArraySenderStrategy = void 0;
|
|
@@ -1233,9 +1233,9 @@ var require_sharedArrayCancellation = __commonJS({
|
|
|
1233
1233
|
}
|
|
1234
1234
|
});
|
|
1235
1235
|
|
|
1236
|
-
//
|
|
1236
|
+
// node_modules/vscode-jsonrpc/lib/common/semaphore.js
|
|
1237
1237
|
var require_semaphore = __commonJS({
|
|
1238
|
-
"
|
|
1238
|
+
"node_modules/vscode-jsonrpc/lib/common/semaphore.js"(exports) {
|
|
1239
1239
|
"use strict";
|
|
1240
1240
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1241
1241
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -1307,9 +1307,9 @@ var require_semaphore = __commonJS({
|
|
|
1307
1307
|
}
|
|
1308
1308
|
});
|
|
1309
1309
|
|
|
1310
|
-
//
|
|
1310
|
+
// node_modules/vscode-jsonrpc/lib/common/messageReader.js
|
|
1311
1311
|
var require_messageReader = __commonJS({
|
|
1312
|
-
"
|
|
1312
|
+
"node_modules/vscode-jsonrpc/lib/common/messageReader.js"(exports) {
|
|
1313
1313
|
"use strict";
|
|
1314
1314
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
1315
1315
|
if (k2 === void 0) k2 = k;
|
|
@@ -1549,9 +1549,9 @@ ${JSON.stringify(Object.fromEntries(headers))}`));
|
|
|
1549
1549
|
}
|
|
1550
1550
|
});
|
|
1551
1551
|
|
|
1552
|
-
//
|
|
1552
|
+
// node_modules/vscode-jsonrpc/lib/common/messageWriter.js
|
|
1553
1553
|
var require_messageWriter = __commonJS({
|
|
1554
|
-
"
|
|
1554
|
+
"node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(exports) {
|
|
1555
1555
|
"use strict";
|
|
1556
1556
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
1557
1557
|
if (k2 === void 0) k2 = k;
|
|
@@ -1707,9 +1707,9 @@ var require_messageWriter = __commonJS({
|
|
|
1707
1707
|
}
|
|
1708
1708
|
});
|
|
1709
1709
|
|
|
1710
|
-
//
|
|
1710
|
+
// node_modules/vscode-jsonrpc/lib/common/messageBuffer.js
|
|
1711
1711
|
var require_messageBuffer = __commonJS({
|
|
1712
|
-
"
|
|
1712
|
+
"node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(exports) {
|
|
1713
1713
|
"use strict";
|
|
1714
1714
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1715
1715
|
exports.AbstractMessageBuffer = void 0;
|
|
@@ -1858,9 +1858,9 @@ ${header}`);
|
|
|
1858
1858
|
}
|
|
1859
1859
|
});
|
|
1860
1860
|
|
|
1861
|
-
//
|
|
1861
|
+
// node_modules/vscode-jsonrpc/lib/common/connection.js
|
|
1862
1862
|
var require_connection = __commonJS({
|
|
1863
|
-
"
|
|
1863
|
+
"node_modules/vscode-jsonrpc/lib/common/connection.js"(exports) {
|
|
1864
1864
|
"use strict";
|
|
1865
1865
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
1866
1866
|
if (k2 === void 0) k2 = k;
|
|
@@ -3024,9 +3024,9 @@ ${JSON.stringify(message, null, 4)}`);
|
|
|
3024
3024
|
}
|
|
3025
3025
|
});
|
|
3026
3026
|
|
|
3027
|
-
//
|
|
3027
|
+
// node_modules/vscode-jsonrpc/lib/common/api.js
|
|
3028
3028
|
var require_api = __commonJS({
|
|
3029
|
-
"
|
|
3029
|
+
"node_modules/vscode-jsonrpc/lib/common/api.js"(exports) {
|
|
3030
3030
|
"use strict";
|
|
3031
3031
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
3032
3032
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -3238,9 +3238,9 @@ var require_api = __commonJS({
|
|
|
3238
3238
|
}
|
|
3239
3239
|
});
|
|
3240
3240
|
|
|
3241
|
-
//
|
|
3241
|
+
// node_modules/vscode-jsonrpc/lib/node/ril.js
|
|
3242
3242
|
var require_ril = __commonJS({
|
|
3243
|
-
"
|
|
3243
|
+
"node_modules/vscode-jsonrpc/lib/node/ril.js"(exports) {
|
|
3244
3244
|
"use strict";
|
|
3245
3245
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3246
3246
|
var util_1 = __require("util");
|
|
@@ -3396,9 +3396,9 @@ var require_ril = __commonJS({
|
|
|
3396
3396
|
}
|
|
3397
3397
|
});
|
|
3398
3398
|
|
|
3399
|
-
//
|
|
3399
|
+
// node_modules/vscode-jsonrpc/lib/node/main.js
|
|
3400
3400
|
var require_main = __commonJS({
|
|
3401
|
-
"
|
|
3401
|
+
"node_modules/vscode-jsonrpc/lib/node/main.js"(exports) {
|
|
3402
3402
|
"use strict";
|
|
3403
3403
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
3404
3404
|
if (k2 === void 0) k2 = k;
|
|
@@ -3691,7 +3691,7 @@ var require_main = __commonJS({
|
|
|
3691
3691
|
}
|
|
3692
3692
|
});
|
|
3693
3693
|
|
|
3694
|
-
//
|
|
3694
|
+
// node_modules/@agentclientprotocol/sdk/dist/schema/index.js
|
|
3695
3695
|
var AGENT_METHODS = {
|
|
3696
3696
|
initialize: "initialize",
|
|
3697
3697
|
authenticate: "authenticate",
|
|
@@ -3743,7 +3743,7 @@ var PROTOCOL_METHODS = {
|
|
|
3743
3743
|
};
|
|
3744
3744
|
var PROTOCOL_VERSION = 1;
|
|
3745
3745
|
|
|
3746
|
-
//
|
|
3746
|
+
// node_modules/zod/v4/classic/external.js
|
|
3747
3747
|
var external_exports = {};
|
|
3748
3748
|
__export(external_exports, {
|
|
3749
3749
|
$brand: () => $brand,
|
|
@@ -3986,7 +3986,7 @@ __export(external_exports, {
|
|
|
3986
3986
|
xor: () => xor
|
|
3987
3987
|
});
|
|
3988
3988
|
|
|
3989
|
-
//
|
|
3989
|
+
// node_modules/zod/v4/core/index.js
|
|
3990
3990
|
var core_exports2 = {};
|
|
3991
3991
|
__export(core_exports2, {
|
|
3992
3992
|
$ZodAny: () => $ZodAny,
|
|
@@ -4265,7 +4265,7 @@ __export(core_exports2, {
|
|
|
4265
4265
|
version: () => version
|
|
4266
4266
|
});
|
|
4267
4267
|
|
|
4268
|
-
//
|
|
4268
|
+
// node_modules/zod/v4/core/core.js
|
|
4269
4269
|
var _a;
|
|
4270
4270
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
4271
4271
|
status: "aborted"
|
|
@@ -4342,7 +4342,7 @@ function config(newConfig) {
|
|
|
4342
4342
|
return globalConfig;
|
|
4343
4343
|
}
|
|
4344
4344
|
|
|
4345
|
-
//
|
|
4345
|
+
// node_modules/zod/v4/core/util.js
|
|
4346
4346
|
var util_exports = {};
|
|
4347
4347
|
__export(util_exports, {
|
|
4348
4348
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -5038,7 +5038,7 @@ var Class = class {
|
|
|
5038
5038
|
}
|
|
5039
5039
|
};
|
|
5040
5040
|
|
|
5041
|
-
//
|
|
5041
|
+
// node_modules/zod/v4/core/errors.js
|
|
5042
5042
|
var initializer = (inst, def) => {
|
|
5043
5043
|
inst.name = "$ZodError";
|
|
5044
5044
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -5177,7 +5177,7 @@ function prettifyError(error51) {
|
|
|
5177
5177
|
return lines.join("\n");
|
|
5178
5178
|
}
|
|
5179
5179
|
|
|
5180
|
-
//
|
|
5180
|
+
// node_modules/zod/v4/core/parse.js
|
|
5181
5181
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
5182
5182
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
5183
5183
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -5265,7 +5265,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
5265
5265
|
};
|
|
5266
5266
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
5267
5267
|
|
|
5268
|
-
//
|
|
5268
|
+
// node_modules/zod/v4/core/regexes.js
|
|
5269
5269
|
var regexes_exports = {};
|
|
5270
5270
|
__export(regexes_exports, {
|
|
5271
5271
|
base64: () => base64,
|
|
@@ -5424,7 +5424,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
5424
5424
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
5425
5425
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
5426
5426
|
|
|
5427
|
-
//
|
|
5427
|
+
// node_modules/zod/v4/core/checks.js
|
|
5428
5428
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
5429
5429
|
var _a3;
|
|
5430
5430
|
inst._zod ?? (inst._zod = {});
|
|
@@ -5972,7 +5972,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
5972
5972
|
};
|
|
5973
5973
|
});
|
|
5974
5974
|
|
|
5975
|
-
//
|
|
5975
|
+
// node_modules/zod/v4/core/doc.js
|
|
5976
5976
|
var Doc = class {
|
|
5977
5977
|
constructor(args = []) {
|
|
5978
5978
|
this.content = [];
|
|
@@ -6008,14 +6008,14 @@ var Doc = class {
|
|
|
6008
6008
|
}
|
|
6009
6009
|
};
|
|
6010
6010
|
|
|
6011
|
-
//
|
|
6011
|
+
// node_modules/zod/v4/core/versions.js
|
|
6012
6012
|
var version = {
|
|
6013
6013
|
major: 4,
|
|
6014
6014
|
minor: 4,
|
|
6015
6015
|
patch: 3
|
|
6016
6016
|
};
|
|
6017
6017
|
|
|
6018
|
-
//
|
|
6018
|
+
// node_modules/zod/v4/core/schemas.js
|
|
6019
6019
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
6020
6020
|
var _a3;
|
|
6021
6021
|
inst ?? (inst = {});
|
|
@@ -8108,7 +8108,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
8108
8108
|
}
|
|
8109
8109
|
}
|
|
8110
8110
|
|
|
8111
|
-
//
|
|
8111
|
+
// node_modules/zod/v4/locales/index.js
|
|
8112
8112
|
var locales_exports = {};
|
|
8113
8113
|
__export(locales_exports, {
|
|
8114
8114
|
ar: () => ar_default,
|
|
@@ -8165,7 +8165,7 @@ __export(locales_exports, {
|
|
|
8165
8165
|
zhTW: () => zh_TW_default
|
|
8166
8166
|
});
|
|
8167
8167
|
|
|
8168
|
-
//
|
|
8168
|
+
// node_modules/zod/v4/locales/ar.js
|
|
8169
8169
|
var error = () => {
|
|
8170
8170
|
const Sizable = {
|
|
8171
8171
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -8272,7 +8272,7 @@ function ar_default() {
|
|
|
8272
8272
|
};
|
|
8273
8273
|
}
|
|
8274
8274
|
|
|
8275
|
-
//
|
|
8275
|
+
// node_modules/zod/v4/locales/az.js
|
|
8276
8276
|
var error2 = () => {
|
|
8277
8277
|
const Sizable = {
|
|
8278
8278
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8378,7 +8378,7 @@ function az_default() {
|
|
|
8378
8378
|
};
|
|
8379
8379
|
}
|
|
8380
8380
|
|
|
8381
|
-
//
|
|
8381
|
+
// node_modules/zod/v4/locales/be.js
|
|
8382
8382
|
function getBelarusianPlural(count, one, few, many) {
|
|
8383
8383
|
const absCount = Math.abs(count);
|
|
8384
8384
|
const lastDigit = absCount % 10;
|
|
@@ -8535,7 +8535,7 @@ function be_default() {
|
|
|
8535
8535
|
};
|
|
8536
8536
|
}
|
|
8537
8537
|
|
|
8538
|
-
//
|
|
8538
|
+
// node_modules/zod/v4/locales/bg.js
|
|
8539
8539
|
var error4 = () => {
|
|
8540
8540
|
const Sizable = {
|
|
8541
8541
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -8656,7 +8656,7 @@ function bg_default() {
|
|
|
8656
8656
|
};
|
|
8657
8657
|
}
|
|
8658
8658
|
|
|
8659
|
-
//
|
|
8659
|
+
// node_modules/zod/v4/locales/ca.js
|
|
8660
8660
|
var error5 = () => {
|
|
8661
8661
|
const Sizable = {
|
|
8662
8662
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -8765,7 +8765,7 @@ function ca_default() {
|
|
|
8765
8765
|
};
|
|
8766
8766
|
}
|
|
8767
8767
|
|
|
8768
|
-
//
|
|
8768
|
+
// node_modules/zod/v4/locales/cs.js
|
|
8769
8769
|
var error6 = () => {
|
|
8770
8770
|
const Sizable = {
|
|
8771
8771
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -8877,7 +8877,7 @@ function cs_default() {
|
|
|
8877
8877
|
};
|
|
8878
8878
|
}
|
|
8879
8879
|
|
|
8880
|
-
//
|
|
8880
|
+
// node_modules/zod/v4/locales/da.js
|
|
8881
8881
|
var error7 = () => {
|
|
8882
8882
|
const Sizable = {
|
|
8883
8883
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -8993,7 +8993,7 @@ function da_default() {
|
|
|
8993
8993
|
};
|
|
8994
8994
|
}
|
|
8995
8995
|
|
|
8996
|
-
//
|
|
8996
|
+
// node_modules/zod/v4/locales/de.js
|
|
8997
8997
|
var error8 = () => {
|
|
8998
8998
|
const Sizable = {
|
|
8999
8999
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -9102,7 +9102,7 @@ function de_default() {
|
|
|
9102
9102
|
};
|
|
9103
9103
|
}
|
|
9104
9104
|
|
|
9105
|
-
//
|
|
9105
|
+
// node_modules/zod/v4/locales/el.js
|
|
9106
9106
|
var error9 = () => {
|
|
9107
9107
|
const Sizable = {
|
|
9108
9108
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -9212,7 +9212,7 @@ function el_default() {
|
|
|
9212
9212
|
};
|
|
9213
9213
|
}
|
|
9214
9214
|
|
|
9215
|
-
//
|
|
9215
|
+
// node_modules/zod/v4/locales/en.js
|
|
9216
9216
|
var error10 = () => {
|
|
9217
9217
|
const Sizable = {
|
|
9218
9218
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -9325,7 +9325,7 @@ function en_default() {
|
|
|
9325
9325
|
};
|
|
9326
9326
|
}
|
|
9327
9327
|
|
|
9328
|
-
//
|
|
9328
|
+
// node_modules/zod/v4/locales/eo.js
|
|
9329
9329
|
var error11 = () => {
|
|
9330
9330
|
const Sizable = {
|
|
9331
9331
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -9435,7 +9435,7 @@ function eo_default() {
|
|
|
9435
9435
|
};
|
|
9436
9436
|
}
|
|
9437
9437
|
|
|
9438
|
-
//
|
|
9438
|
+
// node_modules/zod/v4/locales/es.js
|
|
9439
9439
|
var error12 = () => {
|
|
9440
9440
|
const Sizable = {
|
|
9441
9441
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -9568,7 +9568,7 @@ function es_default() {
|
|
|
9568
9568
|
};
|
|
9569
9569
|
}
|
|
9570
9570
|
|
|
9571
|
-
//
|
|
9571
|
+
// node_modules/zod/v4/locales/fa.js
|
|
9572
9572
|
var error13 = () => {
|
|
9573
9573
|
const Sizable = {
|
|
9574
9574
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -9683,7 +9683,7 @@ function fa_default() {
|
|
|
9683
9683
|
};
|
|
9684
9684
|
}
|
|
9685
9685
|
|
|
9686
|
-
//
|
|
9686
|
+
// node_modules/zod/v4/locales/fi.js
|
|
9687
9687
|
var error14 = () => {
|
|
9688
9688
|
const Sizable = {
|
|
9689
9689
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -9796,7 +9796,7 @@ function fi_default() {
|
|
|
9796
9796
|
};
|
|
9797
9797
|
}
|
|
9798
9798
|
|
|
9799
|
-
//
|
|
9799
|
+
// node_modules/zod/v4/locales/fr.js
|
|
9800
9800
|
var error15 = () => {
|
|
9801
9801
|
const Sizable = {
|
|
9802
9802
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -9922,7 +9922,7 @@ function fr_default() {
|
|
|
9922
9922
|
};
|
|
9923
9923
|
}
|
|
9924
9924
|
|
|
9925
|
-
//
|
|
9925
|
+
// node_modules/zod/v4/locales/fr-CA.js
|
|
9926
9926
|
var error16 = () => {
|
|
9927
9927
|
const Sizable = {
|
|
9928
9928
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -10030,7 +10030,7 @@ function fr_CA_default() {
|
|
|
10030
10030
|
};
|
|
10031
10031
|
}
|
|
10032
10032
|
|
|
10033
|
-
//
|
|
10033
|
+
// node_modules/zod/v4/locales/he.js
|
|
10034
10034
|
var error17 = () => {
|
|
10035
10035
|
const TypeNames = {
|
|
10036
10036
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -10225,7 +10225,7 @@ function he_default() {
|
|
|
10225
10225
|
};
|
|
10226
10226
|
}
|
|
10227
10227
|
|
|
10228
|
-
//
|
|
10228
|
+
// node_modules/zod/v4/locales/hr.js
|
|
10229
10229
|
var error18 = () => {
|
|
10230
10230
|
const Sizable = {
|
|
10231
10231
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -10348,7 +10348,7 @@ function hr_default() {
|
|
|
10348
10348
|
};
|
|
10349
10349
|
}
|
|
10350
10350
|
|
|
10351
|
-
//
|
|
10351
|
+
// node_modules/zod/v4/locales/hu.js
|
|
10352
10352
|
var error19 = () => {
|
|
10353
10353
|
const Sizable = {
|
|
10354
10354
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -10457,7 +10457,7 @@ function hu_default() {
|
|
|
10457
10457
|
};
|
|
10458
10458
|
}
|
|
10459
10459
|
|
|
10460
|
-
//
|
|
10460
|
+
// node_modules/zod/v4/locales/hy.js
|
|
10461
10461
|
function getArmenianPlural(count, one, many) {
|
|
10462
10462
|
return Math.abs(count) === 1 ? one : many;
|
|
10463
10463
|
}
|
|
@@ -10605,7 +10605,7 @@ function hy_default() {
|
|
|
10605
10605
|
};
|
|
10606
10606
|
}
|
|
10607
10607
|
|
|
10608
|
-
//
|
|
10608
|
+
// node_modules/zod/v4/locales/id.js
|
|
10609
10609
|
var error21 = () => {
|
|
10610
10610
|
const Sizable = {
|
|
10611
10611
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -10712,7 +10712,7 @@ function id_default() {
|
|
|
10712
10712
|
};
|
|
10713
10713
|
}
|
|
10714
10714
|
|
|
10715
|
-
//
|
|
10715
|
+
// node_modules/zod/v4/locales/is.js
|
|
10716
10716
|
var error22 = () => {
|
|
10717
10717
|
const Sizable = {
|
|
10718
10718
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -10822,7 +10822,7 @@ function is_default() {
|
|
|
10822
10822
|
};
|
|
10823
10823
|
}
|
|
10824
10824
|
|
|
10825
|
-
//
|
|
10825
|
+
// node_modules/zod/v4/locales/it.js
|
|
10826
10826
|
var error23 = () => {
|
|
10827
10827
|
const Sizable = {
|
|
10828
10828
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -10931,7 +10931,7 @@ function it_default() {
|
|
|
10931
10931
|
};
|
|
10932
10932
|
}
|
|
10933
10933
|
|
|
10934
|
-
//
|
|
10934
|
+
// node_modules/zod/v4/locales/ja.js
|
|
10935
10935
|
var error24 = () => {
|
|
10936
10936
|
const Sizable = {
|
|
10937
10937
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -11039,7 +11039,7 @@ function ja_default() {
|
|
|
11039
11039
|
};
|
|
11040
11040
|
}
|
|
11041
11041
|
|
|
11042
|
-
//
|
|
11042
|
+
// node_modules/zod/v4/locales/ka.js
|
|
11043
11043
|
var error25 = () => {
|
|
11044
11044
|
const Sizable = {
|
|
11045
11045
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -11152,7 +11152,7 @@ function ka_default() {
|
|
|
11152
11152
|
};
|
|
11153
11153
|
}
|
|
11154
11154
|
|
|
11155
|
-
//
|
|
11155
|
+
// node_modules/zod/v4/locales/km.js
|
|
11156
11156
|
var error26 = () => {
|
|
11157
11157
|
const Sizable = {
|
|
11158
11158
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -11263,12 +11263,12 @@ function km_default() {
|
|
|
11263
11263
|
};
|
|
11264
11264
|
}
|
|
11265
11265
|
|
|
11266
|
-
//
|
|
11266
|
+
// node_modules/zod/v4/locales/kh.js
|
|
11267
11267
|
function kh_default() {
|
|
11268
11268
|
return km_default();
|
|
11269
11269
|
}
|
|
11270
11270
|
|
|
11271
|
-
//
|
|
11271
|
+
// node_modules/zod/v4/locales/ko.js
|
|
11272
11272
|
var error27 = () => {
|
|
11273
11273
|
const Sizable = {
|
|
11274
11274
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -11380,7 +11380,7 @@ function ko_default() {
|
|
|
11380
11380
|
};
|
|
11381
11381
|
}
|
|
11382
11382
|
|
|
11383
|
-
//
|
|
11383
|
+
// node_modules/zod/v4/locales/lt.js
|
|
11384
11384
|
var capitalizeFirstCharacter = (text) => {
|
|
11385
11385
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
11386
11386
|
};
|
|
@@ -11584,7 +11584,7 @@ function lt_default() {
|
|
|
11584
11584
|
};
|
|
11585
11585
|
}
|
|
11586
11586
|
|
|
11587
|
-
//
|
|
11587
|
+
// node_modules/zod/v4/locales/mk.js
|
|
11588
11588
|
var error29 = () => {
|
|
11589
11589
|
const Sizable = {
|
|
11590
11590
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -11694,7 +11694,7 @@ function mk_default() {
|
|
|
11694
11694
|
};
|
|
11695
11695
|
}
|
|
11696
11696
|
|
|
11697
|
-
//
|
|
11697
|
+
// node_modules/zod/v4/locales/ms.js
|
|
11698
11698
|
var error30 = () => {
|
|
11699
11699
|
const Sizable = {
|
|
11700
11700
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -11802,7 +11802,7 @@ function ms_default() {
|
|
|
11802
11802
|
};
|
|
11803
11803
|
}
|
|
11804
11804
|
|
|
11805
|
-
//
|
|
11805
|
+
// node_modules/zod/v4/locales/nl.js
|
|
11806
11806
|
var error31 = () => {
|
|
11807
11807
|
const Sizable = {
|
|
11808
11808
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -11913,7 +11913,7 @@ function nl_default() {
|
|
|
11913
11913
|
};
|
|
11914
11914
|
}
|
|
11915
11915
|
|
|
11916
|
-
//
|
|
11916
|
+
// node_modules/zod/v4/locales/no.js
|
|
11917
11917
|
var error32 = () => {
|
|
11918
11918
|
const Sizable = {
|
|
11919
11919
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -12022,7 +12022,7 @@ function no_default() {
|
|
|
12022
12022
|
};
|
|
12023
12023
|
}
|
|
12024
12024
|
|
|
12025
|
-
//
|
|
12025
|
+
// node_modules/zod/v4/locales/ota.js
|
|
12026
12026
|
var error33 = () => {
|
|
12027
12027
|
const Sizable = {
|
|
12028
12028
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -12132,7 +12132,7 @@ function ota_default() {
|
|
|
12132
12132
|
};
|
|
12133
12133
|
}
|
|
12134
12134
|
|
|
12135
|
-
//
|
|
12135
|
+
// node_modules/zod/v4/locales/ps.js
|
|
12136
12136
|
var error34 = () => {
|
|
12137
12137
|
const Sizable = {
|
|
12138
12138
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -12247,7 +12247,7 @@ function ps_default() {
|
|
|
12247
12247
|
};
|
|
12248
12248
|
}
|
|
12249
12249
|
|
|
12250
|
-
//
|
|
12250
|
+
// node_modules/zod/v4/locales/pl.js
|
|
12251
12251
|
var error35 = () => {
|
|
12252
12252
|
const Sizable = {
|
|
12253
12253
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -12357,7 +12357,7 @@ function pl_default() {
|
|
|
12357
12357
|
};
|
|
12358
12358
|
}
|
|
12359
12359
|
|
|
12360
|
-
//
|
|
12360
|
+
// node_modules/zod/v4/locales/pt.js
|
|
12361
12361
|
var error36 = () => {
|
|
12362
12362
|
const Sizable = {
|
|
12363
12363
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -12466,7 +12466,7 @@ function pt_default() {
|
|
|
12466
12466
|
};
|
|
12467
12467
|
}
|
|
12468
12468
|
|
|
12469
|
-
//
|
|
12469
|
+
// node_modules/zod/v4/locales/ro.js
|
|
12470
12470
|
var error37 = () => {
|
|
12471
12471
|
const Sizable = {
|
|
12472
12472
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -12586,7 +12586,7 @@ function ro_default() {
|
|
|
12586
12586
|
};
|
|
12587
12587
|
}
|
|
12588
12588
|
|
|
12589
|
-
//
|
|
12589
|
+
// node_modules/zod/v4/locales/ru.js
|
|
12590
12590
|
function getRussianPlural(count, one, few, many) {
|
|
12591
12591
|
const absCount = Math.abs(count);
|
|
12592
12592
|
const lastDigit = absCount % 10;
|
|
@@ -12743,7 +12743,7 @@ function ru_default() {
|
|
|
12743
12743
|
};
|
|
12744
12744
|
}
|
|
12745
12745
|
|
|
12746
|
-
//
|
|
12746
|
+
// node_modules/zod/v4/locales/sl.js
|
|
12747
12747
|
var error39 = () => {
|
|
12748
12748
|
const Sizable = {
|
|
12749
12749
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -12853,7 +12853,7 @@ function sl_default() {
|
|
|
12853
12853
|
};
|
|
12854
12854
|
}
|
|
12855
12855
|
|
|
12856
|
-
//
|
|
12856
|
+
// node_modules/zod/v4/locales/sv.js
|
|
12857
12857
|
var error40 = () => {
|
|
12858
12858
|
const Sizable = {
|
|
12859
12859
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -12964,7 +12964,7 @@ function sv_default() {
|
|
|
12964
12964
|
};
|
|
12965
12965
|
}
|
|
12966
12966
|
|
|
12967
|
-
//
|
|
12967
|
+
// node_modules/zod/v4/locales/ta.js
|
|
12968
12968
|
var error41 = () => {
|
|
12969
12969
|
const Sizable = {
|
|
12970
12970
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -13075,7 +13075,7 @@ function ta_default() {
|
|
|
13075
13075
|
};
|
|
13076
13076
|
}
|
|
13077
13077
|
|
|
13078
|
-
//
|
|
13078
|
+
// node_modules/zod/v4/locales/th.js
|
|
13079
13079
|
var error42 = () => {
|
|
13080
13080
|
const Sizable = {
|
|
13081
13081
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -13186,7 +13186,7 @@ function th_default() {
|
|
|
13186
13186
|
};
|
|
13187
13187
|
}
|
|
13188
13188
|
|
|
13189
|
-
//
|
|
13189
|
+
// node_modules/zod/v4/locales/tr.js
|
|
13190
13190
|
var error43 = () => {
|
|
13191
13191
|
const Sizable = {
|
|
13192
13192
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -13292,7 +13292,7 @@ function tr_default() {
|
|
|
13292
13292
|
};
|
|
13293
13293
|
}
|
|
13294
13294
|
|
|
13295
|
-
//
|
|
13295
|
+
// node_modules/zod/v4/locales/uk.js
|
|
13296
13296
|
var error44 = () => {
|
|
13297
13297
|
const Sizable = {
|
|
13298
13298
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -13401,12 +13401,12 @@ function uk_default() {
|
|
|
13401
13401
|
};
|
|
13402
13402
|
}
|
|
13403
13403
|
|
|
13404
|
-
//
|
|
13404
|
+
// node_modules/zod/v4/locales/ua.js
|
|
13405
13405
|
function ua_default() {
|
|
13406
13406
|
return uk_default();
|
|
13407
13407
|
}
|
|
13408
13408
|
|
|
13409
|
-
//
|
|
13409
|
+
// node_modules/zod/v4/locales/ur.js
|
|
13410
13410
|
var error45 = () => {
|
|
13411
13411
|
const Sizable = {
|
|
13412
13412
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -13517,7 +13517,7 @@ function ur_default() {
|
|
|
13517
13517
|
};
|
|
13518
13518
|
}
|
|
13519
13519
|
|
|
13520
|
-
//
|
|
13520
|
+
// node_modules/zod/v4/locales/uz.js
|
|
13521
13521
|
var error46 = () => {
|
|
13522
13522
|
const Sizable = {
|
|
13523
13523
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -13628,7 +13628,7 @@ function uz_default() {
|
|
|
13628
13628
|
};
|
|
13629
13629
|
}
|
|
13630
13630
|
|
|
13631
|
-
//
|
|
13631
|
+
// node_modules/zod/v4/locales/vi.js
|
|
13632
13632
|
var error47 = () => {
|
|
13633
13633
|
const Sizable = {
|
|
13634
13634
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -13737,7 +13737,7 @@ function vi_default() {
|
|
|
13737
13737
|
};
|
|
13738
13738
|
}
|
|
13739
13739
|
|
|
13740
|
-
//
|
|
13740
|
+
// node_modules/zod/v4/locales/zh-CN.js
|
|
13741
13741
|
var error48 = () => {
|
|
13742
13742
|
const Sizable = {
|
|
13743
13743
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -13847,7 +13847,7 @@ function zh_CN_default() {
|
|
|
13847
13847
|
};
|
|
13848
13848
|
}
|
|
13849
13849
|
|
|
13850
|
-
//
|
|
13850
|
+
// node_modules/zod/v4/locales/zh-TW.js
|
|
13851
13851
|
var error49 = () => {
|
|
13852
13852
|
const Sizable = {
|
|
13853
13853
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -13955,7 +13955,7 @@ function zh_TW_default() {
|
|
|
13955
13955
|
};
|
|
13956
13956
|
}
|
|
13957
13957
|
|
|
13958
|
-
//
|
|
13958
|
+
// node_modules/zod/v4/locales/yo.js
|
|
13959
13959
|
var error50 = () => {
|
|
13960
13960
|
const Sizable = {
|
|
13961
13961
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -14063,7 +14063,7 @@ function yo_default() {
|
|
|
14063
14063
|
};
|
|
14064
14064
|
}
|
|
14065
14065
|
|
|
14066
|
-
//
|
|
14066
|
+
// node_modules/zod/v4/core/registries.js
|
|
14067
14067
|
var _a2;
|
|
14068
14068
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
14069
14069
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
@@ -14113,7 +14113,7 @@ function registry() {
|
|
|
14113
14113
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
14114
14114
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
14115
14115
|
|
|
14116
|
-
//
|
|
14116
|
+
// node_modules/zod/v4/core/api.js
|
|
14117
14117
|
// @__NO_SIDE_EFFECTS__
|
|
14118
14118
|
function _string(Class2, params) {
|
|
14119
14119
|
return new Class2({
|
|
@@ -15152,7 +15152,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
15152
15152
|
return inst;
|
|
15153
15153
|
}
|
|
15154
15154
|
|
|
15155
|
-
//
|
|
15155
|
+
// node_modules/zod/v4/core/to-json-schema.js
|
|
15156
15156
|
function initializeContext(params) {
|
|
15157
15157
|
let target = params?.target ?? "draft-2020-12";
|
|
15158
15158
|
if (target === "draft-4")
|
|
@@ -15511,7 +15511,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
15511
15511
|
return finalize(ctx, schema);
|
|
15512
15512
|
};
|
|
15513
15513
|
|
|
15514
|
-
//
|
|
15514
|
+
// node_modules/zod/v4/core/json-schema-processors.js
|
|
15515
15515
|
var formatMap = {
|
|
15516
15516
|
guid: "uuid",
|
|
15517
15517
|
url: "uri",
|
|
@@ -16055,7 +16055,7 @@ function toJSONSchema(input, params) {
|
|
|
16055
16055
|
return finalize(ctx, input);
|
|
16056
16056
|
}
|
|
16057
16057
|
|
|
16058
|
-
//
|
|
16058
|
+
// node_modules/zod/v4/core/json-schema-generator.js
|
|
16059
16059
|
var JSONSchemaGenerator = class {
|
|
16060
16060
|
/** @deprecated Access via ctx instead */
|
|
16061
16061
|
get metadataRegistry() {
|
|
@@ -16130,10 +16130,10 @@ var JSONSchemaGenerator = class {
|
|
|
16130
16130
|
}
|
|
16131
16131
|
};
|
|
16132
16132
|
|
|
16133
|
-
//
|
|
16133
|
+
// node_modules/zod/v4/core/json-schema.js
|
|
16134
16134
|
var json_schema_exports = {};
|
|
16135
16135
|
|
|
16136
|
-
//
|
|
16136
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
16137
16137
|
var schemas_exports2 = {};
|
|
16138
16138
|
__export(schemas_exports2, {
|
|
16139
16139
|
ZodAny: () => ZodAny,
|
|
@@ -16304,7 +16304,7 @@ __export(schemas_exports2, {
|
|
|
16304
16304
|
xor: () => xor
|
|
16305
16305
|
});
|
|
16306
16306
|
|
|
16307
|
-
//
|
|
16307
|
+
// node_modules/zod/v4/classic/checks.js
|
|
16308
16308
|
var checks_exports2 = {};
|
|
16309
16309
|
__export(checks_exports2, {
|
|
16310
16310
|
endsWith: () => _endsWith,
|
|
@@ -16338,7 +16338,7 @@ __export(checks_exports2, {
|
|
|
16338
16338
|
uppercase: () => _uppercase
|
|
16339
16339
|
});
|
|
16340
16340
|
|
|
16341
|
-
//
|
|
16341
|
+
// node_modules/zod/v4/classic/iso.js
|
|
16342
16342
|
var iso_exports = {};
|
|
16343
16343
|
__export(iso_exports, {
|
|
16344
16344
|
ZodISODate: () => ZodISODate,
|
|
@@ -16379,7 +16379,7 @@ function duration2(params) {
|
|
|
16379
16379
|
return _isoDuration(ZodISODuration, params);
|
|
16380
16380
|
}
|
|
16381
16381
|
|
|
16382
|
-
//
|
|
16382
|
+
// node_modules/zod/v4/classic/errors.js
|
|
16383
16383
|
var initializer2 = (inst, issues) => {
|
|
16384
16384
|
$ZodError.init(inst, issues);
|
|
16385
16385
|
inst.name = "ZodError";
|
|
@@ -16419,7 +16419,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
|
16419
16419
|
Parent: Error
|
|
16420
16420
|
});
|
|
16421
16421
|
|
|
16422
|
-
//
|
|
16422
|
+
// node_modules/zod/v4/classic/parse.js
|
|
16423
16423
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
16424
16424
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
16425
16425
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -16433,7 +16433,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
16433
16433
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
16434
16434
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
16435
16435
|
|
|
16436
|
-
//
|
|
16436
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
16437
16437
|
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
16438
16438
|
function _installLazyMethods(inst, group, methods2) {
|
|
16439
16439
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -17723,7 +17723,7 @@ function preprocess(fn, schema) {
|
|
|
17723
17723
|
});
|
|
17724
17724
|
}
|
|
17725
17725
|
|
|
17726
|
-
//
|
|
17726
|
+
// node_modules/zod/v4/classic/compat.js
|
|
17727
17727
|
var ZodIssueCode = {
|
|
17728
17728
|
invalid_type: "invalid_type",
|
|
17729
17729
|
too_big: "too_big",
|
|
@@ -17749,7 +17749,7 @@ var ZodFirstPartyTypeKind;
|
|
|
17749
17749
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
17750
17750
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
17751
17751
|
|
|
17752
|
-
//
|
|
17752
|
+
// node_modules/zod/v4/classic/from-json-schema.js
|
|
17753
17753
|
var z = {
|
|
17754
17754
|
...schemas_exports2,
|
|
17755
17755
|
...checks_exports2,
|
|
@@ -18229,7 +18229,7 @@ function fromJSONSchema(schema, params) {
|
|
|
18229
18229
|
return convertSchema(normalized, ctx);
|
|
18230
18230
|
}
|
|
18231
18231
|
|
|
18232
|
-
//
|
|
18232
|
+
// node_modules/zod/v4/classic/coerce.js
|
|
18233
18233
|
var coerce_exports = {};
|
|
18234
18234
|
__export(coerce_exports, {
|
|
18235
18235
|
bigint: () => bigint3,
|
|
@@ -18254,10 +18254,10 @@ function date4(params) {
|
|
|
18254
18254
|
return _coercedDate(ZodDate, params);
|
|
18255
18255
|
}
|
|
18256
18256
|
|
|
18257
|
-
//
|
|
18257
|
+
// node_modules/zod/v4/classic/external.js
|
|
18258
18258
|
config(en_default());
|
|
18259
18259
|
|
|
18260
|
-
//
|
|
18260
|
+
// node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js
|
|
18261
18261
|
var skippedItem = /* @__PURE__ */ Symbol("skippedItem");
|
|
18262
18262
|
function defaultOnError(schema, fallback) {
|
|
18263
18263
|
return schema.catch(fallback);
|
|
@@ -18320,7 +18320,7 @@ function vecSkipError(itemSchema) {
|
|
|
18320
18320
|
return external_exports.array(itemSchema.catch(skippedItem)).transform((items) => items.filter((item) => item !== skippedItem));
|
|
18321
18321
|
}
|
|
18322
18322
|
|
|
18323
|
-
//
|
|
18323
|
+
// node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
|
|
18324
18324
|
var zRequestId = union([number2(), string2()]).nullable();
|
|
18325
18325
|
var zSessionId = string2();
|
|
18326
18326
|
var zWriteTextFileRequest = object({
|
|
@@ -19918,7 +19918,7 @@ var zCancelRequestNotification = object({
|
|
|
19918
19918
|
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
19919
19919
|
});
|
|
19920
19920
|
|
|
19921
|
-
//
|
|
19921
|
+
// node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js
|
|
19922
19922
|
var CANCEL_REQUEST_METHOD = "$/cancel_request";
|
|
19923
19923
|
function isRequestMessage(value) {
|
|
19924
19924
|
return isJsonRpcEnvelope(value) && "id" in value && typeof value["method"] === "string" && isJsonRpcId(value["id"]);
|
|
@@ -20838,7 +20838,7 @@ var RequestError = class _RequestError extends Error {
|
|
|
20838
20838
|
}
|
|
20839
20839
|
};
|
|
20840
20840
|
|
|
20841
|
-
//
|
|
20841
|
+
// node_modules/@agentclientprotocol/sdk/dist/line-buffer.js
|
|
20842
20842
|
var newline = 10;
|
|
20843
20843
|
var LineBuffer = class {
|
|
20844
20844
|
/** Bytes of the current (incomplete) line, carried across chunks. */
|
|
@@ -20891,7 +20891,7 @@ var LineBuffer = class {
|
|
|
20891
20891
|
}
|
|
20892
20892
|
};
|
|
20893
20893
|
|
|
20894
|
-
//
|
|
20894
|
+
// node_modules/@agentclientprotocol/sdk/dist/stream.js
|
|
20895
20895
|
function ndJsonStream(output, input) {
|
|
20896
20896
|
const textEncoder = new TextEncoder();
|
|
20897
20897
|
const textDecoder = new TextDecoder();
|
|
@@ -20979,7 +20979,7 @@ function ndJsonStream(output, input) {
|
|
|
20979
20979
|
return { readable, writable };
|
|
20980
20980
|
}
|
|
20981
20981
|
|
|
20982
|
-
//
|
|
20982
|
+
// node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js
|
|
20983
20983
|
function tagOf(value, key) {
|
|
20984
20984
|
return typeof value === "object" && value !== null ? value[key] : void 0;
|
|
20985
20985
|
}
|
|
@@ -21025,7 +21025,7 @@ var CreateElicitationResponse = {
|
|
|
21025
21025
|
}
|
|
21026
21026
|
};
|
|
21027
21027
|
|
|
21028
|
-
//
|
|
21028
|
+
// node_modules/@agentclientprotocol/sdk/dist/acp.js
|
|
21029
21029
|
function ndJsonStream2(output, input) {
|
|
21030
21030
|
return ndJsonStream(output, input);
|
|
21031
21031
|
}
|
|
@@ -22065,14 +22065,15 @@ var Logger = class {
|
|
|
22065
22065
|
var logger = new Logger();
|
|
22066
22066
|
|
|
22067
22067
|
// src/CodexJsonRpcConnection.ts
|
|
22068
|
-
function startCodexConnection(codexPath, env) {
|
|
22068
|
+
function startCodexConnection(codexPath, env, configOverrides = []) {
|
|
22069
22069
|
const spawnEnv = env ?? process.env;
|
|
22070
|
+
const args = ["app-server", ...configOverrides.flatMap((override) => ["-c", override])];
|
|
22070
22071
|
let codex;
|
|
22071
22072
|
if (codexPath) {
|
|
22072
|
-
codex =
|
|
22073
|
+
codex = spawn(codexPath, args, { env: spawnEnv, shell: process.platform === "win32" });
|
|
22073
22074
|
} else {
|
|
22074
22075
|
const bundledCodexPath = createRequire(import.meta.url).resolve("@openai/codex/bin/codex.js");
|
|
22075
|
-
codex = spawn(process.execPath, [bundledCodexPath,
|
|
22076
|
+
codex = spawn(process.execPath, [bundledCodexPath, ...args], { env: spawnEnv });
|
|
22076
22077
|
}
|
|
22077
22078
|
attachLogs(codex);
|
|
22078
22079
|
const reader = createJSONRPCReader(codex.stdout);
|
|
@@ -22146,7 +22147,7 @@ function toPromptUsage(tokenCount) {
|
|
|
22146
22147
|
};
|
|
22147
22148
|
}
|
|
22148
22149
|
|
|
22149
|
-
//
|
|
22150
|
+
// node_modules/diff/libesm/util/string.js
|
|
22150
22151
|
function hasOnlyWinLineEndings(string4) {
|
|
22151
22152
|
return string4.includes("\r\n") && !string4.startsWith("\n") && !string4.match(/[^\r]\n/);
|
|
22152
22153
|
}
|
|
@@ -22154,7 +22155,7 @@ function hasOnlyUnixLineEndings(string4) {
|
|
|
22154
22155
|
return !string4.includes("\r\n") && string4.includes("\n");
|
|
22155
22156
|
}
|
|
22156
22157
|
|
|
22157
|
-
//
|
|
22158
|
+
// node_modules/diff/libesm/patch/line-endings.js
|
|
22158
22159
|
function unixToWin(patch) {
|
|
22159
22160
|
if (Array.isArray(patch)) {
|
|
22160
22161
|
return patch.map((p) => unixToWin(p));
|
|
@@ -22186,7 +22187,7 @@ function isWin(patch) {
|
|
|
22186
22187
|
})));
|
|
22187
22188
|
}
|
|
22188
22189
|
|
|
22189
|
-
//
|
|
22190
|
+
// node_modules/diff/libesm/patch/parse.js
|
|
22190
22191
|
function parsePatch(uniDiff) {
|
|
22191
22192
|
const diffstr = uniDiff.split(/\n/), list = [];
|
|
22192
22193
|
let i = 0;
|
|
@@ -22522,7 +22523,7 @@ function parsePatch(uniDiff) {
|
|
|
22522
22523
|
return list;
|
|
22523
22524
|
}
|
|
22524
22525
|
|
|
22525
|
-
//
|
|
22526
|
+
// node_modules/diff/libesm/util/distance-iterator.js
|
|
22526
22527
|
function distance_iterator_default(start, minLine, maxLine) {
|
|
22527
22528
|
let wantForward = true, backwardExhausted = false, forwardExhausted = false, localOffset = 1;
|
|
22528
22529
|
return function iterator() {
|
|
@@ -22551,7 +22552,7 @@ function distance_iterator_default(start, minLine, maxLine) {
|
|
|
22551
22552
|
};
|
|
22552
22553
|
}
|
|
22553
22554
|
|
|
22554
|
-
//
|
|
22555
|
+
// node_modules/diff/libesm/patch/apply.js
|
|
22555
22556
|
function applyPatch(source, patch, options = {}) {
|
|
22556
22557
|
let patches;
|
|
22557
22558
|
if (typeof patch === "string") {
|
|
@@ -22700,7 +22701,7 @@ function applyStructuredPatch(source, patch, options = {}) {
|
|
|
22700
22701
|
return resultLines.join("\n");
|
|
22701
22702
|
}
|
|
22702
22703
|
|
|
22703
|
-
//
|
|
22704
|
+
// node_modules/diff/libesm/patch/reverse.js
|
|
22704
22705
|
function swapPrefix(fileName) {
|
|
22705
22706
|
if (fileName === void 0 || fileName === "/dev/null") {
|
|
22706
22707
|
return fileName;
|
|
@@ -23591,8 +23592,8 @@ function sameThreadGoalSnapshot(left, right) {
|
|
|
23591
23592
|
}
|
|
23592
23593
|
|
|
23593
23594
|
// src/CodexEventHandler.ts
|
|
23594
|
-
var CodexEventHandler = class {
|
|
23595
|
-
|
|
23595
|
+
var CodexEventHandler = class _CodexEventHandler {
|
|
23596
|
+
static PLAN_UPDATE_INTERVAL_MS = 150;
|
|
23596
23597
|
sessionState;
|
|
23597
23598
|
supportsPlanUpdates;
|
|
23598
23599
|
failure = null;
|
|
@@ -23602,15 +23603,21 @@ var CodexEventHandler = class {
|
|
|
23602
23603
|
activeImageGenerationItems = /* @__PURE__ */ new Set();
|
|
23603
23604
|
emittedImageViewItems = /* @__PURE__ */ new Set();
|
|
23604
23605
|
planDeltaTextByItemId = /* @__PURE__ */ new Map();
|
|
23606
|
+
pendingPlanItemIds = /* @__PURE__ */ new Set();
|
|
23607
|
+
lastEmittedPlanTextByItemId = /* @__PURE__ */ new Map();
|
|
23608
|
+
session;
|
|
23609
|
+
planUpdateTimer = null;
|
|
23610
|
+
planUpdateChain = Promise.resolve();
|
|
23611
|
+
disposed = false;
|
|
23605
23612
|
seenReasoningDeltaItemIds = /* @__PURE__ */ new Set();
|
|
23606
23613
|
terminalCommandIds = /* @__PURE__ */ new Set();
|
|
23607
23614
|
terminalCommandOutputIds = /* @__PURE__ */ new Set();
|
|
23608
23615
|
agentMessagePhases = /* @__PURE__ */ new Map();
|
|
23609
23616
|
activeSubAgentActivities = /* @__PURE__ */ new Set();
|
|
23610
23617
|
constructor(connection, sessionState, supportsPlanUpdates = false) {
|
|
23611
|
-
this.connection = connection;
|
|
23612
23618
|
this.sessionState = sessionState;
|
|
23613
23619
|
this.supportsPlanUpdates = supportsPlanUpdates;
|
|
23620
|
+
this.session = new ACPSessionConnection(connection, sessionState.sessionId);
|
|
23614
23621
|
}
|
|
23615
23622
|
getFailure() {
|
|
23616
23623
|
return this.failure;
|
|
@@ -23621,12 +23628,32 @@ var CodexEventHandler = class {
|
|
|
23621
23628
|
return plan;
|
|
23622
23629
|
}
|
|
23623
23630
|
async handleNotification(notification) {
|
|
23624
|
-
const session = new ACPSessionConnection(this.connection, this.sessionState.sessionId);
|
|
23625
23631
|
const updateEvent = await this.createUpdateEvent(notification);
|
|
23626
23632
|
if (updateEvent) {
|
|
23627
|
-
await session.update(updateEvent);
|
|
23633
|
+
await this.session.update(updateEvent);
|
|
23628
23634
|
}
|
|
23629
23635
|
}
|
|
23636
|
+
async flushPendingPlanUpdates() {
|
|
23637
|
+
this.cancelPlanUpdateTimer();
|
|
23638
|
+
do {
|
|
23639
|
+
const itemIds = [...this.pendingPlanItemIds];
|
|
23640
|
+
this.pendingPlanItemIds.clear();
|
|
23641
|
+
await Promise.all(itemIds.map((itemId) => {
|
|
23642
|
+
const text = this.planDeltaTextByItemId.get(itemId) ?? "";
|
|
23643
|
+
return text.length > 0 ? this.enqueuePlanSnapshot(itemId, text) : Promise.resolve();
|
|
23644
|
+
}));
|
|
23645
|
+
await this.planUpdateChain;
|
|
23646
|
+
} while (this.pendingPlanItemIds.size > 0);
|
|
23647
|
+
}
|
|
23648
|
+
async dispose() {
|
|
23649
|
+
if (this.disposed) return;
|
|
23650
|
+
await this.flushPendingPlanUpdates();
|
|
23651
|
+
this.disposed = true;
|
|
23652
|
+
this.cancelPlanUpdateTimer();
|
|
23653
|
+
this.pendingPlanItemIds.clear();
|
|
23654
|
+
this.planDeltaTextByItemId.clear();
|
|
23655
|
+
this.lastEmittedPlanTextByItemId.clear();
|
|
23656
|
+
}
|
|
23630
23657
|
async createUpdateEvent(notification) {
|
|
23631
23658
|
switch (notification.method) {
|
|
23632
23659
|
case "item/agentMessage/delta":
|
|
@@ -23645,6 +23672,8 @@ var CodexEventHandler = class {
|
|
|
23645
23672
|
this.sessionState.currentTurnId = notification.params.turn.id;
|
|
23646
23673
|
return null;
|
|
23647
23674
|
case "turn/completed":
|
|
23675
|
+
await this.flushPendingPlanUpdates();
|
|
23676
|
+
this.clearPlanTurnState();
|
|
23648
23677
|
this.sessionState.currentTurnId = null;
|
|
23649
23678
|
return null;
|
|
23650
23679
|
case "thread/tokenUsage/updated":
|
|
@@ -23815,7 +23844,11 @@ ${event.details}` : "";
|
|
|
23815
23844
|
const text = this.planDeltaTextByItemId.get(event.itemId) ?? "";
|
|
23816
23845
|
const updatedText = text + event.delta;
|
|
23817
23846
|
this.planDeltaTextByItemId.set(event.itemId, updatedText);
|
|
23818
|
-
|
|
23847
|
+
if (this.supportsPlanUpdates) {
|
|
23848
|
+
this.pendingPlanItemIds.add(event.itemId);
|
|
23849
|
+
this.schedulePlanUpdate();
|
|
23850
|
+
}
|
|
23851
|
+
return null;
|
|
23819
23852
|
}
|
|
23820
23853
|
createReasoningSectionBreakEvent(event) {
|
|
23821
23854
|
this.seenReasoningDeltaItemIds.add(event.itemId);
|
|
@@ -23912,8 +23945,7 @@ ${event.details}` : "";
|
|
|
23912
23945
|
return null;
|
|
23913
23946
|
case "plan": {
|
|
23914
23947
|
const deltaText = this.planDeltaTextByItemId.get(event.item.id) ?? "";
|
|
23915
|
-
this.
|
|
23916
|
-
return this.createCompletedPlanEvent(event.item, deltaText);
|
|
23948
|
+
return await this.createCompletedPlanEvent(event.item, deltaText);
|
|
23917
23949
|
}
|
|
23918
23950
|
case "exitedReviewMode":
|
|
23919
23951
|
return this.createExitedReviewModeEvent(event.item);
|
|
@@ -23942,13 +23974,53 @@ ${event.details}` : "";
|
|
|
23942
23974
|
}
|
|
23943
23975
|
return this.createAgentThoughtEvent(text, item.id);
|
|
23944
23976
|
}
|
|
23945
|
-
createCompletedPlanEvent(item, deltaText) {
|
|
23977
|
+
async createCompletedPlanEvent(item, deltaText) {
|
|
23946
23978
|
const text = item.text.length > 0 ? item.text : deltaText;
|
|
23979
|
+
this.pendingPlanItemIds.delete(item.id);
|
|
23980
|
+
if (this.pendingPlanItemIds.size === 0) {
|
|
23981
|
+
this.cancelPlanUpdateTimer();
|
|
23982
|
+
}
|
|
23983
|
+
this.planDeltaTextByItemId.delete(item.id);
|
|
23947
23984
|
if (text.length === 0) {
|
|
23948
23985
|
return null;
|
|
23949
23986
|
}
|
|
23950
23987
|
this.completedPlan = { itemId: item.id, text };
|
|
23951
|
-
|
|
23988
|
+
if (this.supportsPlanUpdates) {
|
|
23989
|
+
await this.enqueuePlanSnapshot(item.id, text);
|
|
23990
|
+
return null;
|
|
23991
|
+
}
|
|
23992
|
+
return this.createPlanTextEvent(text, item.id);
|
|
23993
|
+
}
|
|
23994
|
+
schedulePlanUpdate() {
|
|
23995
|
+
if (this.disposed || this.planUpdateTimer !== null) return;
|
|
23996
|
+
this.planUpdateTimer = setTimeout(() => {
|
|
23997
|
+
this.planUpdateTimer = null;
|
|
23998
|
+
void this.flushPendingPlanUpdates().catch((error51) => {
|
|
23999
|
+
logger.error("Failed to flush throttled plan updates", error51);
|
|
24000
|
+
});
|
|
24001
|
+
}, _CodexEventHandler.PLAN_UPDATE_INTERVAL_MS);
|
|
24002
|
+
}
|
|
24003
|
+
cancelPlanUpdateTimer() {
|
|
24004
|
+
if (this.planUpdateTimer === null) return;
|
|
24005
|
+
clearTimeout(this.planUpdateTimer);
|
|
24006
|
+
this.planUpdateTimer = null;
|
|
24007
|
+
}
|
|
24008
|
+
enqueuePlanSnapshot(itemId, text) {
|
|
24009
|
+
const send = async () => {
|
|
24010
|
+
if (this.lastEmittedPlanTextByItemId.get(itemId) === text) return;
|
|
24011
|
+
await this.session.update(this.createPlanUpdateEvent(text, itemId));
|
|
24012
|
+
this.lastEmittedPlanTextByItemId.set(itemId, text);
|
|
24013
|
+
};
|
|
24014
|
+
const result = this.planUpdateChain.then(send);
|
|
24015
|
+
this.planUpdateChain = result.catch(() => {
|
|
24016
|
+
});
|
|
24017
|
+
return result;
|
|
24018
|
+
}
|
|
24019
|
+
clearPlanTurnState() {
|
|
24020
|
+
this.cancelPlanUpdateTimer();
|
|
24021
|
+
this.pendingPlanItemIds.clear();
|
|
24022
|
+
this.planDeltaTextByItemId.clear();
|
|
24023
|
+
this.lastEmittedPlanTextByItemId.clear();
|
|
23952
24024
|
}
|
|
23953
24025
|
createPlanUpdateEvent(text, planId) {
|
|
23954
24026
|
return {
|
|
@@ -25314,27 +25386,27 @@ function isCodexAuthRequest(request) {
|
|
|
25314
25386
|
return request.methodId === "api-key" || request.methodId === "chat-gpt" || request.methodId === "gateway";
|
|
25315
25387
|
}
|
|
25316
25388
|
|
|
25317
|
-
//
|
|
25389
|
+
// node_modules/open/index.js
|
|
25318
25390
|
import process9 from "node:process";
|
|
25319
25391
|
import path3 from "node:path";
|
|
25320
25392
|
import { fileURLToPath } from "node:url";
|
|
25321
25393
|
import childProcess3 from "node:child_process";
|
|
25322
25394
|
import fs6, { constants as fsConstants2 } from "node:fs/promises";
|
|
25323
25395
|
|
|
25324
|
-
//
|
|
25396
|
+
// node_modules/wsl-utils/index.js
|
|
25325
25397
|
import { promisify as promisify2 } from "node:util";
|
|
25326
25398
|
import childProcess2 from "node:child_process";
|
|
25327
25399
|
import fs5, { constants as fsConstants } from "node:fs/promises";
|
|
25328
25400
|
|
|
25329
|
-
//
|
|
25401
|
+
// node_modules/is-wsl/index.js
|
|
25330
25402
|
import process3 from "node:process";
|
|
25331
25403
|
import os from "node:os";
|
|
25332
25404
|
import fs4 from "node:fs";
|
|
25333
25405
|
|
|
25334
|
-
//
|
|
25406
|
+
// node_modules/is-inside-container/index.js
|
|
25335
25407
|
import fs3 from "node:fs";
|
|
25336
25408
|
|
|
25337
|
-
//
|
|
25409
|
+
// node_modules/is-docker/index.js
|
|
25338
25410
|
import fs2 from "node:fs";
|
|
25339
25411
|
var isDockerCached;
|
|
25340
25412
|
function hasDockerEnv() {
|
|
@@ -25359,7 +25431,7 @@ function isDocker() {
|
|
|
25359
25431
|
return isDockerCached;
|
|
25360
25432
|
}
|
|
25361
25433
|
|
|
25362
|
-
//
|
|
25434
|
+
// node_modules/is-inside-container/index.js
|
|
25363
25435
|
var cachedResult;
|
|
25364
25436
|
var hasContainerEnv = () => {
|
|
25365
25437
|
try {
|
|
@@ -25376,7 +25448,7 @@ function isInsideContainer() {
|
|
|
25376
25448
|
return cachedResult;
|
|
25377
25449
|
}
|
|
25378
25450
|
|
|
25379
|
-
//
|
|
25451
|
+
// node_modules/is-wsl/index.js
|
|
25380
25452
|
var isWsl = () => {
|
|
25381
25453
|
if (process3.platform !== "linux") {
|
|
25382
25454
|
return false;
|
|
@@ -25400,7 +25472,7 @@ var isWsl = () => {
|
|
|
25400
25472
|
};
|
|
25401
25473
|
var is_wsl_default = process3.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
25402
25474
|
|
|
25403
|
-
//
|
|
25475
|
+
// node_modules/powershell-utils/index.js
|
|
25404
25476
|
import process4 from "node:process";
|
|
25405
25477
|
import { Buffer as Buffer2 } from "node:buffer";
|
|
25406
25478
|
import { promisify } from "node:util";
|
|
@@ -25435,7 +25507,7 @@ executePowerShell.argumentsPrefix = [
|
|
|
25435
25507
|
executePowerShell.encodeCommand = (command) => Buffer2.from(command, "utf16le").toString("base64");
|
|
25436
25508
|
executePowerShell.escapeArgument = (value) => `'${String(value).replaceAll("'", "''")}'`;
|
|
25437
25509
|
|
|
25438
|
-
//
|
|
25510
|
+
// node_modules/wsl-utils/utilities.js
|
|
25439
25511
|
function parseMountPointFromConfig(content) {
|
|
25440
25512
|
for (const line of content.split("\n")) {
|
|
25441
25513
|
if (/^\s*#/.test(line)) {
|
|
@@ -25449,7 +25521,7 @@ function parseMountPointFromConfig(content) {
|
|
|
25449
25521
|
}
|
|
25450
25522
|
}
|
|
25451
25523
|
|
|
25452
|
-
//
|
|
25524
|
+
// node_modules/wsl-utils/index.js
|
|
25453
25525
|
var execFile2 = promisify2(childProcess2.execFile);
|
|
25454
25526
|
var wslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
25455
25527
|
const defaultMountPoint = "/mnt/";
|
|
@@ -25514,7 +25586,7 @@ var convertWslPathToWindows = async (path6) => {
|
|
|
25514
25586
|
}
|
|
25515
25587
|
};
|
|
25516
25588
|
|
|
25517
|
-
//
|
|
25589
|
+
// node_modules/define-lazy-prop/index.js
|
|
25518
25590
|
function defineLazyProperty(object2, propertyName, valueGetter) {
|
|
25519
25591
|
const define = (value) => Object.defineProperty(object2, propertyName, { value, enumerable: true, writable: true });
|
|
25520
25592
|
Object.defineProperty(object2, propertyName, {
|
|
@@ -25532,12 +25604,12 @@ function defineLazyProperty(object2, propertyName, valueGetter) {
|
|
|
25532
25604
|
return object2;
|
|
25533
25605
|
}
|
|
25534
25606
|
|
|
25535
|
-
//
|
|
25607
|
+
// node_modules/default-browser/index.js
|
|
25536
25608
|
import { promisify as promisify6 } from "node:util";
|
|
25537
25609
|
import process7 from "node:process";
|
|
25538
25610
|
import { execFile as execFile6 } from "node:child_process";
|
|
25539
25611
|
|
|
25540
|
-
//
|
|
25612
|
+
// node_modules/default-browser-id/index.js
|
|
25541
25613
|
import { promisify as promisify3 } from "node:util";
|
|
25542
25614
|
import process5 from "node:process";
|
|
25543
25615
|
import { execFile as execFile3 } from "node:child_process";
|
|
@@ -25555,7 +25627,7 @@ async function defaultBrowserId() {
|
|
|
25555
25627
|
return browserId;
|
|
25556
25628
|
}
|
|
25557
25629
|
|
|
25558
|
-
//
|
|
25630
|
+
// node_modules/run-applescript/index.js
|
|
25559
25631
|
import process6 from "node:process";
|
|
25560
25632
|
import { promisify as promisify4 } from "node:util";
|
|
25561
25633
|
import { execFile as execFile4, execFileSync } from "node:child_process";
|
|
@@ -25573,13 +25645,13 @@ async function runAppleScript(script, { humanReadableOutput = true, signal } = {
|
|
|
25573
25645
|
return stdout.trim();
|
|
25574
25646
|
}
|
|
25575
25647
|
|
|
25576
|
-
//
|
|
25648
|
+
// node_modules/bundle-name/index.js
|
|
25577
25649
|
async function bundleName(bundleId) {
|
|
25578
25650
|
return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string
|
|
25579
25651
|
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
|
|
25580
25652
|
}
|
|
25581
25653
|
|
|
25582
|
-
//
|
|
25654
|
+
// node_modules/default-browser/windows.js
|
|
25583
25655
|
import { promisify as promisify5 } from "node:util";
|
|
25584
25656
|
import { execFile as execFile5 } from "node:child_process";
|
|
25585
25657
|
var execFileAsync3 = promisify5(execFile5);
|
|
@@ -25624,7 +25696,7 @@ async function defaultBrowser(_execFileAsync = execFileAsync3) {
|
|
|
25624
25696
|
return windowsBrowserProgIds[id] ?? windowsBrowserProgIds[baseIdByDot] ?? windowsBrowserProgIds[baseIdByHyphen] ?? { name: id, id };
|
|
25625
25697
|
}
|
|
25626
25698
|
|
|
25627
|
-
//
|
|
25699
|
+
// node_modules/default-browser/index.js
|
|
25628
25700
|
var execFileAsync4 = promisify6(execFile6);
|
|
25629
25701
|
var titleize = (string4) => string4.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x) => x.toUpperCase());
|
|
25630
25702
|
async function defaultBrowser2() {
|
|
@@ -25645,12 +25717,12 @@ async function defaultBrowser2() {
|
|
|
25645
25717
|
throw new Error("Only macOS, Linux, and Windows are supported");
|
|
25646
25718
|
}
|
|
25647
25719
|
|
|
25648
|
-
//
|
|
25720
|
+
// node_modules/is-in-ssh/index.js
|
|
25649
25721
|
import process8 from "node:process";
|
|
25650
25722
|
var isInSsh = Boolean(process8.env.SSH_CONNECTION || process8.env.SSH_CLIENT || process8.env.SSH_TTY);
|
|
25651
25723
|
var is_in_ssh_default = isInSsh;
|
|
25652
25724
|
|
|
25653
|
-
//
|
|
25725
|
+
// node_modules/open/index.js
|
|
25654
25726
|
var fallbackAttemptSymbol = /* @__PURE__ */ Symbol("fallbackAttempt");
|
|
25655
25727
|
var __dirname = import.meta.url ? path3.dirname(fileURLToPath(import.meta.url)) : "";
|
|
25656
25728
|
var localXdgOpenPath = path3.join(__dirname, "xdg-open");
|
|
@@ -26074,7 +26146,7 @@ var package_default = {
|
|
|
26074
26146
|
publishConfig: {
|
|
26075
26147
|
access: "public"
|
|
26076
26148
|
},
|
|
26077
|
-
version: "1.1.
|
|
26149
|
+
version: "1.1.9-agentconnect.1",
|
|
26078
26150
|
description: "",
|
|
26079
26151
|
main: "dist/index.js",
|
|
26080
26152
|
bin: {
|
|
@@ -26212,6 +26284,33 @@ function normalizeApprovalsReviewer(value) {
|
|
|
26212
26284
|
return value === AUTO_APPROVALS_REVIEWER || value === "guardian_subagent" ? AUTO_APPROVALS_REVIEWER : USER_APPROVALS_REVIEWER;
|
|
26213
26285
|
}
|
|
26214
26286
|
|
|
26287
|
+
// src/PermissionProfileConfig.ts
|
|
26288
|
+
var PERMISSION_PROFILE_CONFIG_ENV = "CODEX_ACP_PERMISSION_PROFILE_CONFIG";
|
|
26289
|
+
var permissionProfileConfigSchema = external_exports.object({
|
|
26290
|
+
configOverrides: external_exports.array(external_exports.string().min(1)).min(1),
|
|
26291
|
+
modeProfiles: external_exports.object({
|
|
26292
|
+
"read-only": external_exports.string().min(1),
|
|
26293
|
+
agent: external_exports.string().min(1),
|
|
26294
|
+
"agent-full-access": external_exports.string().min(1)
|
|
26295
|
+
})
|
|
26296
|
+
});
|
|
26297
|
+
function readPermissionProfileConfig(env = process.env) {
|
|
26298
|
+
const raw = env[PERMISSION_PROFILE_CONFIG_ENV];
|
|
26299
|
+
if (!raw) return void 0;
|
|
26300
|
+
let parsed;
|
|
26301
|
+
try {
|
|
26302
|
+
parsed = JSON.parse(raw);
|
|
26303
|
+
} catch {
|
|
26304
|
+
throw new Error(`${PERMISSION_PROFILE_CONFIG_ENV} must contain a JSON object`);
|
|
26305
|
+
}
|
|
26306
|
+
return permissionProfileConfigSchema.parse(parsed);
|
|
26307
|
+
}
|
|
26308
|
+
function permissionProfileForMode(config2, modeId) {
|
|
26309
|
+
const profile = config2.modeProfiles[modeId];
|
|
26310
|
+
if (!profile) throw new Error(`No permission profile configured for ACP mode ${modeId}`);
|
|
26311
|
+
return profile;
|
|
26312
|
+
}
|
|
26313
|
+
|
|
26215
26314
|
// src/CodexAcpClient.ts
|
|
26216
26315
|
var CUSTOM_GATEWAY_PROVIDER_ID = "custom-gateway";
|
|
26217
26316
|
var SUPPORTED_GATEWAY_PROTOCOLS = {
|
|
@@ -26221,16 +26320,18 @@ var CodexAcpClient = class {
|
|
|
26221
26320
|
codexClient;
|
|
26222
26321
|
config;
|
|
26223
26322
|
modelProvider;
|
|
26323
|
+
permissionProfileConfig;
|
|
26224
26324
|
gatewayConfig;
|
|
26225
26325
|
pendingLoginCompleted = null;
|
|
26226
26326
|
pendingAccountUpdated = null;
|
|
26227
26327
|
sessionNotificationQueues = /* @__PURE__ */ new Map();
|
|
26228
26328
|
skillExtraRoots = [];
|
|
26229
26329
|
configPath = null;
|
|
26230
|
-
constructor(codexClient, codexConfig, modelProvider) {
|
|
26330
|
+
constructor(codexClient, codexConfig, modelProvider, permissionProfileConfig) {
|
|
26231
26331
|
this.codexClient = codexClient;
|
|
26232
26332
|
this.config = codexConfig ?? {};
|
|
26233
26333
|
this.modelProvider = modelProvider ?? null;
|
|
26334
|
+
this.permissionProfileConfig = permissionProfileConfig;
|
|
26234
26335
|
this.gatewayConfig = null;
|
|
26235
26336
|
}
|
|
26236
26337
|
defaultClientInfo = {
|
|
@@ -26446,12 +26547,14 @@ var CodexAcpClient = class {
|
|
|
26446
26547
|
}
|
|
26447
26548
|
async resumeSession(request, onSubscribed) {
|
|
26448
26549
|
const additionalDirectories = readAdditionalDirectories(request.cwd, request.additionalDirectories, request._meta);
|
|
26550
|
+
const initialAgentMode = AgentMode.getInitialAgentMode();
|
|
26449
26551
|
await this.refreshSkills(request.cwd, additionalDirectories);
|
|
26450
26552
|
const response = await this.codexClient.threadResume({
|
|
26451
26553
|
config: await this.createSessionConfig(request.cwd, additionalDirectories, request.mcpServers ?? []),
|
|
26452
26554
|
cwd: request.cwd,
|
|
26453
26555
|
modelProvider: await this.getResumeModelProvider(),
|
|
26454
|
-
threadId: request.sessionId
|
|
26556
|
+
threadId: request.sessionId,
|
|
26557
|
+
...this.permissionProfileSelection(initialAgentMode, request.cwd, additionalDirectories)
|
|
26455
26558
|
});
|
|
26456
26559
|
onSubscribed?.();
|
|
26457
26560
|
const codexModels = await this.fetchAvailableModels();
|
|
@@ -26469,12 +26572,14 @@ var CodexAcpClient = class {
|
|
|
26469
26572
|
}
|
|
26470
26573
|
async loadSession(request, onSubscribed) {
|
|
26471
26574
|
const additionalDirectories = readAdditionalDirectories(request.cwd, request.additionalDirectories, request._meta);
|
|
26575
|
+
const initialAgentMode = AgentMode.getInitialAgentMode();
|
|
26472
26576
|
await this.refreshSkills(request.cwd, additionalDirectories);
|
|
26473
26577
|
const response = await this.codexClient.threadResume({
|
|
26474
26578
|
config: await this.createSessionConfig(request.cwd, additionalDirectories, request.mcpServers ?? []),
|
|
26475
26579
|
cwd: request.cwd,
|
|
26476
26580
|
modelProvider: await this.getResumeModelProvider(),
|
|
26477
|
-
threadId: request.sessionId
|
|
26581
|
+
threadId: request.sessionId,
|
|
26582
|
+
...this.permissionProfileSelection(initialAgentMode, request.cwd, additionalDirectories)
|
|
26478
26583
|
});
|
|
26479
26584
|
onSubscribed?.();
|
|
26480
26585
|
const historyResponse = await this.codexClient.threadRead({
|
|
@@ -26497,11 +26602,13 @@ var CodexAcpClient = class {
|
|
|
26497
26602
|
}
|
|
26498
26603
|
async newSession(request) {
|
|
26499
26604
|
const additionalDirectories = readAdditionalDirectories(request.cwd, request.additionalDirectories, request._meta);
|
|
26605
|
+
const initialAgentMode = AgentMode.getInitialAgentMode();
|
|
26500
26606
|
await this.refreshSkills(request.cwd, additionalDirectories);
|
|
26501
26607
|
const response = await this.codexClient.threadStart({
|
|
26502
26608
|
config: await this.createSessionConfig(request.cwd, additionalDirectories, request.mcpServers),
|
|
26503
26609
|
modelProvider: this.getModelProvider(),
|
|
26504
|
-
cwd: request.cwd
|
|
26610
|
+
cwd: request.cwd,
|
|
26611
|
+
...this.permissionProfileSelection(initialAgentMode, request.cwd, additionalDirectories)
|
|
26505
26612
|
});
|
|
26506
26613
|
const codexModels = await this.fetchAvailableModels();
|
|
26507
26614
|
if (codexModels.length === 0) {
|
|
@@ -26526,6 +26633,15 @@ var CodexAcpClient = class {
|
|
|
26526
26633
|
this.codexClient.clearThreadHandlers(sessionId);
|
|
26527
26634
|
}
|
|
26528
26635
|
}
|
|
26636
|
+
permissionProfileSelection(agentMode, cwd, additionalDirectories) {
|
|
26637
|
+
const config2 = this.permissionProfileConfig;
|
|
26638
|
+
if (!config2) return {};
|
|
26639
|
+
return {
|
|
26640
|
+
approvalPolicy: agentMode.approvalPolicy,
|
|
26641
|
+
permissions: permissionProfileForMode(config2, agentMode.id),
|
|
26642
|
+
runtimeWorkspaceRoots: sessionRoots(cwd, additionalDirectories)
|
|
26643
|
+
};
|
|
26644
|
+
}
|
|
26529
26645
|
async deleteSession(sessionId) {
|
|
26530
26646
|
await this.codexClient.threadArchive({ threadId: sessionId });
|
|
26531
26647
|
}
|
|
@@ -26579,10 +26695,10 @@ var CodexAcpClient = class {
|
|
|
26579
26695
|
return this.codexClient.getMcpServerStartupVersion();
|
|
26580
26696
|
}
|
|
26581
26697
|
async createSessionConfig(projectPath, additionalDirectories, mcpServers) {
|
|
26582
|
-
const
|
|
26698
|
+
const sessionRoots2 = [projectPath, ...additionalDirectories];
|
|
26583
26699
|
const mergedConfig = {
|
|
26584
26700
|
...mergeGatewayConfig(this.config, this.gatewayConfig),
|
|
26585
|
-
projects: Object.fromEntries(
|
|
26701
|
+
projects: Object.fromEntries(sessionRoots2.map((root) => [root, {
|
|
26586
26702
|
trust_level: "trusted"
|
|
26587
26703
|
}]))
|
|
26588
26704
|
};
|
|
@@ -26741,18 +26857,32 @@ var CodexAcpClient = class {
|
|
|
26741
26857
|
if (shouldCancel?.()) {
|
|
26742
26858
|
return null;
|
|
26743
26859
|
}
|
|
26860
|
+
const sandboxSelection = this.permissionProfileConfig ? {
|
|
26861
|
+
runtimeWorkspaceRoots: sessionRoots(cwd, additionalDirectories)
|
|
26862
|
+
} : {
|
|
26863
|
+
sandboxPolicy: addAdditionalDirectoriesToSandboxPolicy(agentMode.sandboxPolicy, additionalDirectories)
|
|
26864
|
+
};
|
|
26744
26865
|
return await this.codexClient.runTurn({
|
|
26745
26866
|
threadId: request.sessionId,
|
|
26746
26867
|
input,
|
|
26747
26868
|
approvalPolicy: agentMode.approvalPolicy,
|
|
26748
26869
|
approvalsReviewer,
|
|
26749
|
-
|
|
26870
|
+
...sandboxSelection,
|
|
26750
26871
|
summary: disableSummary ? "none" : "auto",
|
|
26751
26872
|
effort,
|
|
26752
26873
|
model: modelId.model,
|
|
26753
26874
|
serviceTier
|
|
26754
26875
|
}, onTurnStarted);
|
|
26755
26876
|
}
|
|
26877
|
+
async setAgentMode(sessionId, agentMode) {
|
|
26878
|
+
const config2 = this.permissionProfileConfig;
|
|
26879
|
+
if (!config2) return;
|
|
26880
|
+
await this.codexClient.threadSettingsUpdate({
|
|
26881
|
+
threadId: sessionId,
|
|
26882
|
+
approvalPolicy: agentMode.approvalPolicy,
|
|
26883
|
+
permissions: permissionProfileForMode(config2, agentMode.id)
|
|
26884
|
+
});
|
|
26885
|
+
}
|
|
26756
26886
|
async setCollaborationMode(sessionId, mode, currentModelId) {
|
|
26757
26887
|
await this.codexClient.threadSettingsUpdate({
|
|
26758
26888
|
threadId: sessionId,
|
|
@@ -27030,6 +27160,9 @@ function addAdditionalDirectoriesToSandboxPolicy(sandboxPolicy, additionalDirect
|
|
|
27030
27160
|
function uniqueStrings(values) {
|
|
27031
27161
|
return Array.from(new Set(values));
|
|
27032
27162
|
}
|
|
27163
|
+
function sessionRoots(cwd, additionalDirectories) {
|
|
27164
|
+
return uniqueStrings([cwd, ...additionalDirectories]);
|
|
27165
|
+
}
|
|
27033
27166
|
function arraysEqual(left, right) {
|
|
27034
27167
|
if (left.length !== right.length) {
|
|
27035
27168
|
return false;
|
|
@@ -29127,7 +29260,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
29127
29260
|
});
|
|
29128
29261
|
const sessionState = this.sessions.get(_params.sessionId);
|
|
29129
29262
|
if (!sessionState) throw new Error(`Session ${_params.sessionId} not found`);
|
|
29130
|
-
this.applyModeChange(sessionState, _params.modeId);
|
|
29263
|
+
await this.applyModeChange(sessionState, _params.modeId);
|
|
29131
29264
|
return {};
|
|
29132
29265
|
}
|
|
29133
29266
|
async setSessionConfigOption(params) {
|
|
@@ -29148,7 +29281,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
29148
29281
|
this.applyFastModeChange(sessionState, params);
|
|
29149
29282
|
break;
|
|
29150
29283
|
case MODE_CONFIG_ID:
|
|
29151
|
-
this.applyModeChange(sessionState, this.stringConfigValue(params));
|
|
29284
|
+
await this.applyModeChange(sessionState, this.stringConfigValue(params));
|
|
29152
29285
|
break;
|
|
29153
29286
|
case APPROVALS_REVIEWER_CONFIG_ID:
|
|
29154
29287
|
this.applyApprovalsReviewerChange(sessionState, this.stringConfigValue(params));
|
|
@@ -29183,11 +29316,15 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
29183
29316
|
}
|
|
29184
29317
|
return params.value;
|
|
29185
29318
|
}
|
|
29186
|
-
applyModeChange(sessionState, value) {
|
|
29319
|
+
async applyModeChange(sessionState, value) {
|
|
29187
29320
|
const newMode = AgentMode.find(value);
|
|
29188
29321
|
if (!newMode) {
|
|
29189
29322
|
throw RequestError.invalidParams();
|
|
29190
29323
|
}
|
|
29324
|
+
await this.codexAcpClient.setAgentMode(
|
|
29325
|
+
sessionState.sessionId,
|
|
29326
|
+
newMode
|
|
29327
|
+
);
|
|
29191
29328
|
sessionState.agentMode = newMode;
|
|
29192
29329
|
}
|
|
29193
29330
|
applyApprovalsReviewerChange(sessionState, value) {
|
|
@@ -30096,12 +30233,14 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
30096
30233
|
return pendingTurnStart;
|
|
30097
30234
|
};
|
|
30098
30235
|
const disposePromptRequestCancellation = this.observePromptRequestCancellation(signal, sessionState, activePrompt);
|
|
30236
|
+
let eventHandler = null;
|
|
30099
30237
|
try {
|
|
30100
|
-
const
|
|
30238
|
+
const promptEventHandler = new CodexEventHandler(
|
|
30101
30239
|
this.connection,
|
|
30102
30240
|
sessionState,
|
|
30103
30241
|
clientSupportsPlanUpdates(this.clientCapabilities)
|
|
30104
30242
|
);
|
|
30243
|
+
eventHandler = promptEventHandler;
|
|
30105
30244
|
const approvalHandler = new CodexApprovalHandler(this.connection, sessionState, activePrompt.signal);
|
|
30106
30245
|
const elicitationHandler = new CodexElicitationHandler(
|
|
30107
30246
|
this.connection,
|
|
@@ -30113,7 +30252,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
30113
30252
|
params.sessionId,
|
|
30114
30253
|
async (event) => {
|
|
30115
30254
|
await elicitationHandler.handleNotification(event);
|
|
30116
|
-
return
|
|
30255
|
+
return promptEventHandler.handleNotification(event);
|
|
30117
30256
|
},
|
|
30118
30257
|
approvalHandler,
|
|
30119
30258
|
elicitationHandler
|
|
@@ -30239,6 +30378,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
30239
30378
|
}
|
|
30240
30379
|
await this.codexAcpClient.waitForSessionNotifications(params.sessionId);
|
|
30241
30380
|
if (turnCompleted.turn.status === "interrupted") {
|
|
30381
|
+
await eventHandler.flushPendingPlanUpdates();
|
|
30242
30382
|
await this.notifyConversationInterrupted(params.sessionId);
|
|
30243
30383
|
return this.cancelledPromptResponse(sessionState, promptStartTotalTokenUsage);
|
|
30244
30384
|
}
|
|
@@ -30246,6 +30386,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
30246
30386
|
if (error51) {
|
|
30247
30387
|
throw error51;
|
|
30248
30388
|
}
|
|
30389
|
+
await eventHandler.flushPendingPlanUpdates();
|
|
30249
30390
|
const completedPlan = eventHandler.takeCompletedPlan();
|
|
30250
30391
|
if (completedPlan !== null && sessionState.collaborationMode === PLAN_COLLABORATION_MODE && !this.promptShouldStop(params.sessionId, activePrompt)) {
|
|
30251
30392
|
const approved = await this.requestPlanImplementationPermission(
|
|
@@ -30305,6 +30446,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
30305
30446
|
}
|
|
30306
30447
|
await this.codexAcpClient.waitForSessionNotifications(params.sessionId);
|
|
30307
30448
|
if (turnCompleted.turn.status === "interrupted") {
|
|
30449
|
+
await eventHandler.flushPendingPlanUpdates();
|
|
30308
30450
|
await this.notifyConversationInterrupted(params.sessionId);
|
|
30309
30451
|
return this.cancelledPromptResponse(sessionState, promptStartTotalTokenUsage);
|
|
30310
30452
|
}
|
|
@@ -30328,6 +30470,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
30328
30470
|
throw err;
|
|
30329
30471
|
} finally {
|
|
30330
30472
|
logger.log("Prompt completed", { sessionId: params.sessionId });
|
|
30473
|
+
await eventHandler?.dispose();
|
|
30331
30474
|
disposePromptRequestCancellation();
|
|
30332
30475
|
sessionState.currentTurnId = null;
|
|
30333
30476
|
const registeredPendingTurnStart = this.pendingTurnStarts.get(params.sessionId);
|
|
@@ -31478,6 +31621,9 @@ function startAcpServer() {
|
|
|
31478
31621
|
const config2 = configString ? JSON.parse(configString) : void 0;
|
|
31479
31622
|
const parsedAuthRequest = authRequestString ? JSON.parse(authRequestString) : void 0;
|
|
31480
31623
|
const defaultAuthRequest = parsedAuthRequest && isCodexAuthRequest(parsedAuthRequest) ? parsedAuthRequest : void 0;
|
|
31624
|
+
const permissionProfileConfig = readPermissionProfileConfig();
|
|
31625
|
+
const codexEnv = { ...process.env };
|
|
31626
|
+
delete codexEnv[PERMISSION_PROFILE_CONFIG_ENV];
|
|
31481
31627
|
logger.log("Startup", {
|
|
31482
31628
|
name: package_default.name,
|
|
31483
31629
|
version: package_default.version,
|
|
@@ -31487,7 +31633,11 @@ function startAcpServer() {
|
|
|
31487
31633
|
authRequest: authRequestString ?? null,
|
|
31488
31634
|
defaultAuthRequest: defaultAuthRequest ?? null
|
|
31489
31635
|
});
|
|
31490
|
-
const codexConnection = startCodexConnection(
|
|
31636
|
+
const codexConnection = startCodexConnection(
|
|
31637
|
+
codexPath,
|
|
31638
|
+
codexEnv,
|
|
31639
|
+
permissionProfileConfig?.configOverrides
|
|
31640
|
+
);
|
|
31491
31641
|
const maxStderrTailChars = 2 * 1024;
|
|
31492
31642
|
let stderr = "";
|
|
31493
31643
|
codexConnection.process.stderr.addListener("data", (data) => {
|
|
@@ -31505,7 +31655,7 @@ function startAcpServer() {
|
|
|
31505
31655
|
const acpJsonStream = createJsonStream(process.stdin, process.stdout);
|
|
31506
31656
|
function createAgent(connection) {
|
|
31507
31657
|
const appServerClient = new CodexAppServerClient(codexConnection.connection);
|
|
31508
|
-
const codexClient = new CodexAcpClient(appServerClient, config2, modelProvider);
|
|
31658
|
+
const codexClient = new CodexAcpClient(appServerClient, config2, modelProvider, permissionProfileConfig);
|
|
31509
31659
|
return new CodexAcpServer(connection, codexClient, defaultAuthRequest, () => codexConnection.process.exitCode, () => stderr);
|
|
31510
31660
|
}
|
|
31511
31661
|
let codexAcpServer = null;
|