@signetai/connector-codex 0.163.17 → 0.163.18
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.d.ts.map +1 -1
- package/dist/index.js +117 -117
- package/package.json +3 -3
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EAKpB,MAAM,wBAAwB,CAAC;AAQhC,MAAM,MAAM,eAAe,GACxB;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAC9D;IACA,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACvD,CAAC;AAWL,UAAU,uBAAuB;IAChC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAED,UAAU,yBAAyB;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC1B;AAsFD,wBAAgB,uBAAuB,CACtC,QAAQ,GAAE,SAAS,MAAM,EAA4B,EACrD,QAAQ,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAA6B,GACvD,MAAM,GAAG,IAAI,CAQf;AAkJD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,QAAQ,CAAC,GAAG,CAAC,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC,GAAG,uBAAuB,CAe1B;AA6ZD,wBAAgB,aAAa,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,CAuB1D;AA8HD,qBAAa,cAAe,SAAQ,aAAa;IAChD,QAAQ,CAAC,IAAI,WAAW;IACxB,QAAQ,CAAC,SAAS,WAAW;IAE7B,SAAS,CAAC,YAAY,IAAI,MAAM;IAIhC,SAAS,CAAC,uBAAuB,IAAI,SAAS,MAAM,EAAE;IAItD,SAAS,CAAC,uBAAuB,IAAI,MAAM,GAAG,IAAI;IAIlD,SAAS,CAAC,2BAA2B,IAAI,OAAO;IAShD,SAAS,CAAC,yBAAyB,IAAI,OAAO;IAI9C,SAAS,CAAC,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB;IAoB3E,SAAS,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAOrD,OAAO,CAAC,gBAAgB;IAIxB,aAAa,IAAI,MAAM;IAIvB,OAAO,CAAC,yBAAyB;IA4CjC,OAAO,CAAC,wBAAwB;IAkC1B,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAqGjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IA2D3C,WAAW,IAAI,OAAO;CAgBtB"}
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { basename as basename3, dirname as dirname5, join as join4 } from "node:
|
|
|
8
8
|
// ../../../libs/connector-base/dist/index.js
|
|
9
9
|
import { randomBytes } from "node:crypto";
|
|
10
10
|
import { existsSync, readFileSync, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
|
|
11
|
-
import { dirname as dirname3, join as join3 } from "node:path";
|
|
11
|
+
import { dirname as dirname3, isAbsolute, join as join3, relative, sep } from "node:path";
|
|
12
12
|
import { createRequire } from "node:module";
|
|
13
13
|
import { dirname, join } from "node:path";
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
@@ -3626,10 +3626,10 @@ var require_resolve_block_map = __commonJS2((exports) => {
|
|
|
3626
3626
|
let offset = bm.offset;
|
|
3627
3627
|
let commentEnd = null;
|
|
3628
3628
|
for (const collItem of bm.items) {
|
|
3629
|
-
const { start, key, sep, value } = collItem;
|
|
3629
|
+
const { start, key, sep: sep2, value } = collItem;
|
|
3630
3630
|
const keyProps = resolveProps.resolveProps(start, {
|
|
3631
3631
|
indicator: "explicit-key-ind",
|
|
3632
|
-
next: key ??
|
|
3632
|
+
next: key ?? sep2?.[0],
|
|
3633
3633
|
offset,
|
|
3634
3634
|
onError,
|
|
3635
3635
|
parentIndent: bm.indent,
|
|
@@ -3643,7 +3643,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
|
|
|
3643
3643
|
else if ("indent" in key && key.indent !== bm.indent)
|
|
3644
3644
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
3645
3645
|
}
|
|
3646
|
-
if (!keyProps.anchor && !keyProps.tag && !
|
|
3646
|
+
if (!keyProps.anchor && !keyProps.tag && !sep2) {
|
|
3647
3647
|
commentEnd = keyProps.end;
|
|
3648
3648
|
if (keyProps.comment) {
|
|
3649
3649
|
if (map.comment)
|
|
@@ -3668,7 +3668,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
|
|
|
3668
3668
|
ctx.atKey = false;
|
|
3669
3669
|
if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
|
|
3670
3670
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
3671
|
-
const valueProps = resolveProps.resolveProps(
|
|
3671
|
+
const valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
3672
3672
|
indicator: "map-value-ind",
|
|
3673
3673
|
next: value,
|
|
3674
3674
|
offset: keyNode.range[2],
|
|
@@ -3684,7 +3684,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
|
|
|
3684
3684
|
if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
|
|
3685
3685
|
onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
|
|
3686
3686
|
}
|
|
3687
|
-
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset,
|
|
3687
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError);
|
|
3688
3688
|
if (ctx.schema.compat)
|
|
3689
3689
|
utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError);
|
|
3690
3690
|
offset = valueNode.range[2];
|
|
@@ -3766,7 +3766,7 @@ var require_resolve_end = __commonJS2((exports) => {
|
|
|
3766
3766
|
let comment = "";
|
|
3767
3767
|
if (end) {
|
|
3768
3768
|
let hasSpace = false;
|
|
3769
|
-
let
|
|
3769
|
+
let sep2 = "";
|
|
3770
3770
|
for (const token of end) {
|
|
3771
3771
|
const { source, type } = token;
|
|
3772
3772
|
switch (type) {
|
|
@@ -3780,13 +3780,13 @@ var require_resolve_end = __commonJS2((exports) => {
|
|
|
3780
3780
|
if (!comment)
|
|
3781
3781
|
comment = cb;
|
|
3782
3782
|
else
|
|
3783
|
-
comment +=
|
|
3784
|
-
|
|
3783
|
+
comment += sep2 + cb;
|
|
3784
|
+
sep2 = "";
|
|
3785
3785
|
break;
|
|
3786
3786
|
}
|
|
3787
3787
|
case "newline":
|
|
3788
3788
|
if (comment)
|
|
3789
|
-
|
|
3789
|
+
sep2 += source;
|
|
3790
3790
|
hasSpace = true;
|
|
3791
3791
|
break;
|
|
3792
3792
|
default:
|
|
@@ -3824,18 +3824,18 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
3824
3824
|
let offset = fc.offset + fc.start.source.length;
|
|
3825
3825
|
for (let i = 0;i < fc.items.length; ++i) {
|
|
3826
3826
|
const collItem = fc.items[i];
|
|
3827
|
-
const { start, key, sep, value } = collItem;
|
|
3827
|
+
const { start, key, sep: sep2, value } = collItem;
|
|
3828
3828
|
const props = resolveProps.resolveProps(start, {
|
|
3829
3829
|
flow: fcName,
|
|
3830
3830
|
indicator: "explicit-key-ind",
|
|
3831
|
-
next: key ??
|
|
3831
|
+
next: key ?? sep2?.[0],
|
|
3832
3832
|
offset,
|
|
3833
3833
|
onError,
|
|
3834
3834
|
parentIndent: fc.indent,
|
|
3835
3835
|
startOnNewline: false
|
|
3836
3836
|
});
|
|
3837
3837
|
if (!props.found) {
|
|
3838
|
-
if (!props.anchor && !props.tag && !
|
|
3838
|
+
if (!props.anchor && !props.tag && !sep2 && !value) {
|
|
3839
3839
|
if (i === 0 && props.comma)
|
|
3840
3840
|
onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
|
|
3841
3841
|
else if (i < fc.items.length - 1)
|
|
@@ -3887,8 +3887,8 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
3887
3887
|
}
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
|
-
if (!isMap && !
|
|
3891
|
-
const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end,
|
|
3890
|
+
if (!isMap && !sep2 && !props.found) {
|
|
3891
|
+
const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep2, null, props, onError);
|
|
3892
3892
|
coll.items.push(valueNode);
|
|
3893
3893
|
offset = valueNode.range[2];
|
|
3894
3894
|
if (isBlock(value))
|
|
@@ -3900,7 +3900,7 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
3900
3900
|
if (isBlock(key))
|
|
3901
3901
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
3902
3902
|
ctx.atKey = false;
|
|
3903
|
-
const valueProps = resolveProps.resolveProps(
|
|
3903
|
+
const valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
3904
3904
|
flow: fcName,
|
|
3905
3905
|
indicator: "map-value-ind",
|
|
3906
3906
|
next: value,
|
|
@@ -3911,8 +3911,8 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
3911
3911
|
});
|
|
3912
3912
|
if (valueProps.found) {
|
|
3913
3913
|
if (!isMap && !props.found && ctx.options.strict) {
|
|
3914
|
-
if (
|
|
3915
|
-
for (const st of
|
|
3914
|
+
if (sep2)
|
|
3915
|
+
for (const st of sep2) {
|
|
3916
3916
|
if (st === valueProps.found)
|
|
3917
3917
|
break;
|
|
3918
3918
|
if (st.type === "newline") {
|
|
@@ -3929,7 +3929,7 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
3929
3929
|
else
|
|
3930
3930
|
onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
|
|
3931
3931
|
}
|
|
3932
|
-
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end,
|
|
3932
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null;
|
|
3933
3933
|
if (valueNode) {
|
|
3934
3934
|
if (isBlock(value))
|
|
3935
3935
|
onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
@@ -4102,7 +4102,7 @@ var require_resolve_block_scalar = __commonJS2((exports) => {
|
|
|
4102
4102
|
chompStart = i + 1;
|
|
4103
4103
|
}
|
|
4104
4104
|
let value = "";
|
|
4105
|
-
let
|
|
4105
|
+
let sep2 = "";
|
|
4106
4106
|
let prevMoreIndented = false;
|
|
4107
4107
|
for (let i = 0;i < contentStart; ++i)
|
|
4108
4108
|
value += lines[i][0].slice(trimIndent) + `
|
|
@@ -4120,33 +4120,33 @@ var require_resolve_block_scalar = __commonJS2((exports) => {
|
|
|
4120
4120
|
indent = "";
|
|
4121
4121
|
}
|
|
4122
4122
|
if (type === Scalar.Scalar.BLOCK_LITERAL) {
|
|
4123
|
-
value +=
|
|
4124
|
-
|
|
4123
|
+
value += sep2 + indent.slice(trimIndent) + content;
|
|
4124
|
+
sep2 = `
|
|
4125
4125
|
`;
|
|
4126
4126
|
} else if (indent.length > trimIndent || content[0] === "\t") {
|
|
4127
|
-
if (
|
|
4128
|
-
|
|
4127
|
+
if (sep2 === " ")
|
|
4128
|
+
sep2 = `
|
|
4129
4129
|
`;
|
|
4130
|
-
else if (!prevMoreIndented &&
|
|
4130
|
+
else if (!prevMoreIndented && sep2 === `
|
|
4131
4131
|
`)
|
|
4132
|
-
|
|
4132
|
+
sep2 = `
|
|
4133
4133
|
|
|
4134
4134
|
`;
|
|
4135
|
-
value +=
|
|
4136
|
-
|
|
4135
|
+
value += sep2 + indent.slice(trimIndent) + content;
|
|
4136
|
+
sep2 = `
|
|
4137
4137
|
`;
|
|
4138
4138
|
prevMoreIndented = true;
|
|
4139
4139
|
} else if (content === "") {
|
|
4140
|
-
if (
|
|
4140
|
+
if (sep2 === `
|
|
4141
4141
|
`)
|
|
4142
4142
|
value += `
|
|
4143
4143
|
`;
|
|
4144
4144
|
else
|
|
4145
|
-
|
|
4145
|
+
sep2 = `
|
|
4146
4146
|
`;
|
|
4147
4147
|
} else {
|
|
4148
|
-
value +=
|
|
4149
|
-
|
|
4148
|
+
value += sep2 + content;
|
|
4149
|
+
sep2 = " ";
|
|
4150
4150
|
prevMoreIndented = false;
|
|
4151
4151
|
}
|
|
4152
4152
|
}
|
|
@@ -4325,27 +4325,27 @@ var require_resolve_flow_scalar = __commonJS2((exports) => {
|
|
|
4325
4325
|
if (!match)
|
|
4326
4326
|
return source;
|
|
4327
4327
|
let res = match[1];
|
|
4328
|
-
let
|
|
4328
|
+
let sep2 = " ";
|
|
4329
4329
|
let pos = first.lastIndex;
|
|
4330
4330
|
line.lastIndex = pos;
|
|
4331
4331
|
while (match = line.exec(source)) {
|
|
4332
4332
|
if (match[1] === "") {
|
|
4333
|
-
if (
|
|
4333
|
+
if (sep2 === `
|
|
4334
4334
|
`)
|
|
4335
|
-
res +=
|
|
4335
|
+
res += sep2;
|
|
4336
4336
|
else
|
|
4337
|
-
|
|
4337
|
+
sep2 = `
|
|
4338
4338
|
`;
|
|
4339
4339
|
} else {
|
|
4340
|
-
res +=
|
|
4341
|
-
|
|
4340
|
+
res += sep2 + match[1];
|
|
4341
|
+
sep2 = " ";
|
|
4342
4342
|
}
|
|
4343
4343
|
pos = line.lastIndex;
|
|
4344
4344
|
}
|
|
4345
4345
|
const last = /[ \t]*(.*)/sy;
|
|
4346
4346
|
last.lastIndex = pos;
|
|
4347
4347
|
match = last.exec(source);
|
|
4348
|
-
return res +
|
|
4348
|
+
return res + sep2 + (match?.[1] ?? "");
|
|
4349
4349
|
}
|
|
4350
4350
|
function doubleQuotedValue(source, onError) {
|
|
4351
4351
|
let res = "";
|
|
@@ -5112,14 +5112,14 @@ var require_cst_stringify = __commonJS2((exports) => {
|
|
|
5112
5112
|
}
|
|
5113
5113
|
}
|
|
5114
5114
|
}
|
|
5115
|
-
function stringifyItem({ start, key, sep, value }) {
|
|
5115
|
+
function stringifyItem({ start, key, sep: sep2, value }) {
|
|
5116
5116
|
let res = "";
|
|
5117
5117
|
for (const st of start)
|
|
5118
5118
|
res += st.source;
|
|
5119
5119
|
if (key)
|
|
5120
5120
|
res += stringifyToken(key);
|
|
5121
|
-
if (
|
|
5122
|
-
for (const st of
|
|
5121
|
+
if (sep2)
|
|
5122
|
+
for (const st of sep2)
|
|
5123
5123
|
res += st.source;
|
|
5124
5124
|
if (value)
|
|
5125
5125
|
res += stringifyToken(value);
|
|
@@ -6258,18 +6258,18 @@ var require_parser = __commonJS2((exports) => {
|
|
|
6258
6258
|
if (this.type === "map-value-ind") {
|
|
6259
6259
|
const prev = getPrevProps(this.peek(2));
|
|
6260
6260
|
const start = getFirstKeyStartProps(prev);
|
|
6261
|
-
let
|
|
6261
|
+
let sep2;
|
|
6262
6262
|
if (scalar.end) {
|
|
6263
|
-
|
|
6264
|
-
|
|
6263
|
+
sep2 = scalar.end;
|
|
6264
|
+
sep2.push(this.sourceToken);
|
|
6265
6265
|
delete scalar.end;
|
|
6266
6266
|
} else
|
|
6267
|
-
|
|
6267
|
+
sep2 = [this.sourceToken];
|
|
6268
6268
|
const map = {
|
|
6269
6269
|
type: "block-map",
|
|
6270
6270
|
offset: scalar.offset,
|
|
6271
6271
|
indent: scalar.indent,
|
|
6272
|
-
items: [{ start, key: scalar, sep }]
|
|
6272
|
+
items: [{ start, key: scalar, sep: sep2 }]
|
|
6273
6273
|
};
|
|
6274
6274
|
this.onKeyLine = true;
|
|
6275
6275
|
this.stack[this.stack.length - 1] = map;
|
|
@@ -6423,15 +6423,15 @@ var require_parser = __commonJS2((exports) => {
|
|
|
6423
6423
|
} else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
6424
6424
|
const start2 = getFirstKeyStartProps(it.start);
|
|
6425
6425
|
const key = it.key;
|
|
6426
|
-
const
|
|
6427
|
-
|
|
6426
|
+
const sep2 = it.sep;
|
|
6427
|
+
sep2.push(this.sourceToken);
|
|
6428
6428
|
delete it.key;
|
|
6429
6429
|
delete it.sep;
|
|
6430
6430
|
this.stack.push({
|
|
6431
6431
|
type: "block-map",
|
|
6432
6432
|
offset: this.offset,
|
|
6433
6433
|
indent: this.indent,
|
|
6434
|
-
items: [{ start: start2, key, sep }]
|
|
6434
|
+
items: [{ start: start2, key, sep: sep2 }]
|
|
6435
6435
|
});
|
|
6436
6436
|
} else if (start.length > 0) {
|
|
6437
6437
|
it.sep = it.sep.concat(start, this.sourceToken);
|
|
@@ -6625,13 +6625,13 @@ var require_parser = __commonJS2((exports) => {
|
|
|
6625
6625
|
const prev = getPrevProps(parent);
|
|
6626
6626
|
const start = getFirstKeyStartProps(prev);
|
|
6627
6627
|
fixFlowSeqItems(fc);
|
|
6628
|
-
const
|
|
6629
|
-
|
|
6628
|
+
const sep2 = fc.end.splice(1, fc.end.length);
|
|
6629
|
+
sep2.push(this.sourceToken);
|
|
6630
6630
|
const map = {
|
|
6631
6631
|
type: "block-map",
|
|
6632
6632
|
offset: fc.offset,
|
|
6633
6633
|
indent: fc.indent,
|
|
6634
|
-
items: [{ start, key: fc, sep }]
|
|
6634
|
+
items: [{ start, key: fc, sep: sep2 }]
|
|
6635
6635
|
};
|
|
6636
6636
|
this.onKeyLine = true;
|
|
6637
6637
|
this.stack[this.stack.length - 1] = map;
|
|
@@ -11496,6 +11496,13 @@ function resolveSignetMcpCommand() {
|
|
|
11496
11496
|
function resolveSignetCliCommand() {
|
|
11497
11497
|
return resolvePackagedSignetCommand("signet", "bin", "signet.js", false);
|
|
11498
11498
|
}
|
|
11499
|
+
function readTrimmedEnv2(name) {
|
|
11500
|
+
const value = process.env[name];
|
|
11501
|
+
if (typeof value !== "string")
|
|
11502
|
+
return;
|
|
11503
|
+
const trimmed = value.trim().replace(/[\r\n]+/g, "");
|
|
11504
|
+
return trimmed.length > 0 ? trimmed : undefined;
|
|
11505
|
+
}
|
|
11499
11506
|
|
|
11500
11507
|
// ../../../platform/core/dist/index.js
|
|
11501
11508
|
import { createRequire as createRequire3 } from "node:module";
|
|
@@ -15115,10 +15122,10 @@ var require_resolve_block_map2 = __commonJS((exports) => {
|
|
|
15115
15122
|
let offset = bm.offset;
|
|
15116
15123
|
let commentEnd = null;
|
|
15117
15124
|
for (const collItem of bm.items) {
|
|
15118
|
-
const { start, key, sep, value } = collItem;
|
|
15125
|
+
const { start, key, sep: sep2, value } = collItem;
|
|
15119
15126
|
const keyProps = resolveProps.resolveProps(start, {
|
|
15120
15127
|
indicator: "explicit-key-ind",
|
|
15121
|
-
next: key ??
|
|
15128
|
+
next: key ?? sep2?.[0],
|
|
15122
15129
|
offset,
|
|
15123
15130
|
onError,
|
|
15124
15131
|
parentIndent: bm.indent,
|
|
@@ -15132,7 +15139,7 @@ var require_resolve_block_map2 = __commonJS((exports) => {
|
|
|
15132
15139
|
else if ("indent" in key && key.indent !== bm.indent)
|
|
15133
15140
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
15134
15141
|
}
|
|
15135
|
-
if (!keyProps.anchor && !keyProps.tag && !
|
|
15142
|
+
if (!keyProps.anchor && !keyProps.tag && !sep2) {
|
|
15136
15143
|
commentEnd = keyProps.end;
|
|
15137
15144
|
if (keyProps.comment) {
|
|
15138
15145
|
if (map.comment)
|
|
@@ -15157,7 +15164,7 @@ var require_resolve_block_map2 = __commonJS((exports) => {
|
|
|
15157
15164
|
ctx.atKey = false;
|
|
15158
15165
|
if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
|
|
15159
15166
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
15160
|
-
const valueProps = resolveProps.resolveProps(
|
|
15167
|
+
const valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
15161
15168
|
indicator: "map-value-ind",
|
|
15162
15169
|
next: value,
|
|
15163
15170
|
offset: keyNode.range[2],
|
|
@@ -15173,7 +15180,7 @@ var require_resolve_block_map2 = __commonJS((exports) => {
|
|
|
15173
15180
|
if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
|
|
15174
15181
|
onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
|
|
15175
15182
|
}
|
|
15176
|
-
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset,
|
|
15183
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError);
|
|
15177
15184
|
if (ctx.schema.compat)
|
|
15178
15185
|
utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError);
|
|
15179
15186
|
offset = valueNode.range[2];
|
|
@@ -15255,7 +15262,7 @@ var require_resolve_end2 = __commonJS((exports) => {
|
|
|
15255
15262
|
let comment = "";
|
|
15256
15263
|
if (end) {
|
|
15257
15264
|
let hasSpace = false;
|
|
15258
|
-
let
|
|
15265
|
+
let sep2 = "";
|
|
15259
15266
|
for (const token of end) {
|
|
15260
15267
|
const { source, type } = token;
|
|
15261
15268
|
switch (type) {
|
|
@@ -15269,13 +15276,13 @@ var require_resolve_end2 = __commonJS((exports) => {
|
|
|
15269
15276
|
if (!comment)
|
|
15270
15277
|
comment = cb;
|
|
15271
15278
|
else
|
|
15272
|
-
comment +=
|
|
15273
|
-
|
|
15279
|
+
comment += sep2 + cb;
|
|
15280
|
+
sep2 = "";
|
|
15274
15281
|
break;
|
|
15275
15282
|
}
|
|
15276
15283
|
case "newline":
|
|
15277
15284
|
if (comment)
|
|
15278
|
-
|
|
15285
|
+
sep2 += source;
|
|
15279
15286
|
hasSpace = true;
|
|
15280
15287
|
break;
|
|
15281
15288
|
default:
|
|
@@ -15313,18 +15320,18 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
|
|
|
15313
15320
|
let offset = fc.offset + fc.start.source.length;
|
|
15314
15321
|
for (let i = 0;i < fc.items.length; ++i) {
|
|
15315
15322
|
const collItem = fc.items[i];
|
|
15316
|
-
const { start, key, sep, value } = collItem;
|
|
15323
|
+
const { start, key, sep: sep2, value } = collItem;
|
|
15317
15324
|
const props = resolveProps.resolveProps(start, {
|
|
15318
15325
|
flow: fcName,
|
|
15319
15326
|
indicator: "explicit-key-ind",
|
|
15320
|
-
next: key ??
|
|
15327
|
+
next: key ?? sep2?.[0],
|
|
15321
15328
|
offset,
|
|
15322
15329
|
onError,
|
|
15323
15330
|
parentIndent: fc.indent,
|
|
15324
15331
|
startOnNewline: false
|
|
15325
15332
|
});
|
|
15326
15333
|
if (!props.found) {
|
|
15327
|
-
if (!props.anchor && !props.tag && !
|
|
15334
|
+
if (!props.anchor && !props.tag && !sep2 && !value) {
|
|
15328
15335
|
if (i === 0 && props.comma)
|
|
15329
15336
|
onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
|
|
15330
15337
|
else if (i < fc.items.length - 1)
|
|
@@ -15376,8 +15383,8 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
|
|
|
15376
15383
|
}
|
|
15377
15384
|
}
|
|
15378
15385
|
}
|
|
15379
|
-
if (!isMap && !
|
|
15380
|
-
const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end,
|
|
15386
|
+
if (!isMap && !sep2 && !props.found) {
|
|
15387
|
+
const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep2, null, props, onError);
|
|
15381
15388
|
coll.items.push(valueNode);
|
|
15382
15389
|
offset = valueNode.range[2];
|
|
15383
15390
|
if (isBlock(value))
|
|
@@ -15389,7 +15396,7 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
|
|
|
15389
15396
|
if (isBlock(key))
|
|
15390
15397
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
15391
15398
|
ctx.atKey = false;
|
|
15392
|
-
const valueProps = resolveProps.resolveProps(
|
|
15399
|
+
const valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
15393
15400
|
flow: fcName,
|
|
15394
15401
|
indicator: "map-value-ind",
|
|
15395
15402
|
next: value,
|
|
@@ -15400,8 +15407,8 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
|
|
|
15400
15407
|
});
|
|
15401
15408
|
if (valueProps.found) {
|
|
15402
15409
|
if (!isMap && !props.found && ctx.options.strict) {
|
|
15403
|
-
if (
|
|
15404
|
-
for (const st of
|
|
15410
|
+
if (sep2)
|
|
15411
|
+
for (const st of sep2) {
|
|
15405
15412
|
if (st === valueProps.found)
|
|
15406
15413
|
break;
|
|
15407
15414
|
if (st.type === "newline") {
|
|
@@ -15418,7 +15425,7 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
|
|
|
15418
15425
|
else
|
|
15419
15426
|
onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
|
|
15420
15427
|
}
|
|
15421
|
-
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end,
|
|
15428
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null;
|
|
15422
15429
|
if (valueNode) {
|
|
15423
15430
|
if (isBlock(value))
|
|
15424
15431
|
onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
@@ -15591,7 +15598,7 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
|
|
|
15591
15598
|
chompStart = i + 1;
|
|
15592
15599
|
}
|
|
15593
15600
|
let value = "";
|
|
15594
|
-
let
|
|
15601
|
+
let sep2 = "";
|
|
15595
15602
|
let prevMoreIndented = false;
|
|
15596
15603
|
for (let i = 0;i < contentStart; ++i)
|
|
15597
15604
|
value += lines[i][0].slice(trimIndent) + `
|
|
@@ -15609,33 +15616,33 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
|
|
|
15609
15616
|
indent = "";
|
|
15610
15617
|
}
|
|
15611
15618
|
if (type === Scalar.Scalar.BLOCK_LITERAL) {
|
|
15612
|
-
value +=
|
|
15613
|
-
|
|
15619
|
+
value += sep2 + indent.slice(trimIndent) + content;
|
|
15620
|
+
sep2 = `
|
|
15614
15621
|
`;
|
|
15615
15622
|
} else if (indent.length > trimIndent || content[0] === "\t") {
|
|
15616
|
-
if (
|
|
15617
|
-
|
|
15623
|
+
if (sep2 === " ")
|
|
15624
|
+
sep2 = `
|
|
15618
15625
|
`;
|
|
15619
|
-
else if (!prevMoreIndented &&
|
|
15626
|
+
else if (!prevMoreIndented && sep2 === `
|
|
15620
15627
|
`)
|
|
15621
|
-
|
|
15628
|
+
sep2 = `
|
|
15622
15629
|
|
|
15623
15630
|
`;
|
|
15624
|
-
value +=
|
|
15625
|
-
|
|
15631
|
+
value += sep2 + indent.slice(trimIndent) + content;
|
|
15632
|
+
sep2 = `
|
|
15626
15633
|
`;
|
|
15627
15634
|
prevMoreIndented = true;
|
|
15628
15635
|
} else if (content === "") {
|
|
15629
|
-
if (
|
|
15636
|
+
if (sep2 === `
|
|
15630
15637
|
`)
|
|
15631
15638
|
value += `
|
|
15632
15639
|
`;
|
|
15633
15640
|
else
|
|
15634
|
-
|
|
15641
|
+
sep2 = `
|
|
15635
15642
|
`;
|
|
15636
15643
|
} else {
|
|
15637
|
-
value +=
|
|
15638
|
-
|
|
15644
|
+
value += sep2 + content;
|
|
15645
|
+
sep2 = " ";
|
|
15639
15646
|
prevMoreIndented = false;
|
|
15640
15647
|
}
|
|
15641
15648
|
}
|
|
@@ -15814,27 +15821,27 @@ var require_resolve_flow_scalar2 = __commonJS((exports) => {
|
|
|
15814
15821
|
if (!match)
|
|
15815
15822
|
return source;
|
|
15816
15823
|
let res = match[1];
|
|
15817
|
-
let
|
|
15824
|
+
let sep2 = " ";
|
|
15818
15825
|
let pos = first.lastIndex;
|
|
15819
15826
|
line.lastIndex = pos;
|
|
15820
15827
|
while (match = line.exec(source)) {
|
|
15821
15828
|
if (match[1] === "") {
|
|
15822
|
-
if (
|
|
15829
|
+
if (sep2 === `
|
|
15823
15830
|
`)
|
|
15824
|
-
res +=
|
|
15831
|
+
res += sep2;
|
|
15825
15832
|
else
|
|
15826
|
-
|
|
15833
|
+
sep2 = `
|
|
15827
15834
|
`;
|
|
15828
15835
|
} else {
|
|
15829
|
-
res +=
|
|
15830
|
-
|
|
15836
|
+
res += sep2 + match[1];
|
|
15837
|
+
sep2 = " ";
|
|
15831
15838
|
}
|
|
15832
15839
|
pos = line.lastIndex;
|
|
15833
15840
|
}
|
|
15834
15841
|
const last = /[ \t]*(.*)/sy;
|
|
15835
15842
|
last.lastIndex = pos;
|
|
15836
15843
|
match = last.exec(source);
|
|
15837
|
-
return res +
|
|
15844
|
+
return res + sep2 + (match?.[1] ?? "");
|
|
15838
15845
|
}
|
|
15839
15846
|
function doubleQuotedValue(source, onError) {
|
|
15840
15847
|
let res = "";
|
|
@@ -16601,14 +16608,14 @@ var require_cst_stringify2 = __commonJS((exports) => {
|
|
|
16601
16608
|
}
|
|
16602
16609
|
}
|
|
16603
16610
|
}
|
|
16604
|
-
function stringifyItem({ start, key, sep, value }) {
|
|
16611
|
+
function stringifyItem({ start, key, sep: sep2, value }) {
|
|
16605
16612
|
let res = "";
|
|
16606
16613
|
for (const st of start)
|
|
16607
16614
|
res += st.source;
|
|
16608
16615
|
if (key)
|
|
16609
16616
|
res += stringifyToken(key);
|
|
16610
|
-
if (
|
|
16611
|
-
for (const st of
|
|
16617
|
+
if (sep2)
|
|
16618
|
+
for (const st of sep2)
|
|
16612
16619
|
res += st.source;
|
|
16613
16620
|
if (value)
|
|
16614
16621
|
res += stringifyToken(value);
|
|
@@ -17747,18 +17754,18 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
17747
17754
|
if (this.type === "map-value-ind") {
|
|
17748
17755
|
const prev = getPrevProps(this.peek(2));
|
|
17749
17756
|
const start = getFirstKeyStartProps(prev);
|
|
17750
|
-
let
|
|
17757
|
+
let sep2;
|
|
17751
17758
|
if (scalar.end) {
|
|
17752
|
-
|
|
17753
|
-
|
|
17759
|
+
sep2 = scalar.end;
|
|
17760
|
+
sep2.push(this.sourceToken);
|
|
17754
17761
|
delete scalar.end;
|
|
17755
17762
|
} else
|
|
17756
|
-
|
|
17763
|
+
sep2 = [this.sourceToken];
|
|
17757
17764
|
const map = {
|
|
17758
17765
|
type: "block-map",
|
|
17759
17766
|
offset: scalar.offset,
|
|
17760
17767
|
indent: scalar.indent,
|
|
17761
|
-
items: [{ start, key: scalar, sep }]
|
|
17768
|
+
items: [{ start, key: scalar, sep: sep2 }]
|
|
17762
17769
|
};
|
|
17763
17770
|
this.onKeyLine = true;
|
|
17764
17771
|
this.stack[this.stack.length - 1] = map;
|
|
@@ -17912,15 +17919,15 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
17912
17919
|
} else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
17913
17920
|
const start2 = getFirstKeyStartProps(it.start);
|
|
17914
17921
|
const key = it.key;
|
|
17915
|
-
const
|
|
17916
|
-
|
|
17922
|
+
const sep2 = it.sep;
|
|
17923
|
+
sep2.push(this.sourceToken);
|
|
17917
17924
|
delete it.key;
|
|
17918
17925
|
delete it.sep;
|
|
17919
17926
|
this.stack.push({
|
|
17920
17927
|
type: "block-map",
|
|
17921
17928
|
offset: this.offset,
|
|
17922
17929
|
indent: this.indent,
|
|
17923
|
-
items: [{ start: start2, key, sep }]
|
|
17930
|
+
items: [{ start: start2, key, sep: sep2 }]
|
|
17924
17931
|
});
|
|
17925
17932
|
} else if (start.length > 0) {
|
|
17926
17933
|
it.sep = it.sep.concat(start, this.sourceToken);
|
|
@@ -18114,13 +18121,13 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
18114
18121
|
const prev = getPrevProps(parent);
|
|
18115
18122
|
const start = getFirstKeyStartProps(prev);
|
|
18116
18123
|
fixFlowSeqItems(fc);
|
|
18117
|
-
const
|
|
18118
|
-
|
|
18124
|
+
const sep2 = fc.end.splice(1, fc.end.length);
|
|
18125
|
+
sep2.push(this.sourceToken);
|
|
18119
18126
|
const map = {
|
|
18120
18127
|
type: "block-map",
|
|
18121
18128
|
offset: fc.offset,
|
|
18122
18129
|
indent: fc.indent,
|
|
18123
|
-
items: [{ start, key: fc, sep }]
|
|
18130
|
+
items: [{ start, key: fc, sep: sep2 }]
|
|
18124
18131
|
};
|
|
18125
18132
|
this.onKeyLine = true;
|
|
18126
18133
|
this.stack[this.stack.length - 1] = map;
|
|
@@ -22907,7 +22914,7 @@ var CODEX_PLUGIN_MARKETPLACE_NAME = "signet-local";
|
|
|
22907
22914
|
var CODEX_PLUGIN_NAME = "signet";
|
|
22908
22915
|
var CODEX_PLUGIN_CONFIG_NAME = `${CODEX_PLUGIN_NAME}@${CODEX_PLUGIN_MARKETPLACE_NAME}`;
|
|
22909
22916
|
function resolveSignetEntry() {
|
|
22910
|
-
const wrapperDir =
|
|
22917
|
+
const wrapperDir = readTrimmedEnv2("SIGNET_WRAPPER_DIR") ?? readTrimmedEnv2("SIGNET_DIR");
|
|
22911
22918
|
const candidates = [
|
|
22912
22919
|
wrapperDir ? join4(wrapperDir, "bin", "signet.js") : null,
|
|
22913
22920
|
join4(dirname5(process.execPath), "..", "bin", "signet.js"),
|
|
@@ -22943,15 +22950,8 @@ function resolveSignetMcp(runtime = null) {
|
|
|
22943
22950
|
return { command: runtime, args: [mcpEntry] };
|
|
22944
22951
|
return resolveSignetMcpCommand();
|
|
22945
22952
|
}
|
|
22946
|
-
function readEnv2(name) {
|
|
22947
|
-
const value = process.env[name];
|
|
22948
|
-
if (typeof value !== "string")
|
|
22949
|
-
return;
|
|
22950
|
-
const trimmed = value.trim();
|
|
22951
|
-
return trimmed.length > 0 ? trimmed : undefined;
|
|
22952
|
-
}
|
|
22953
22953
|
function resolveRemoteDaemonUrl() {
|
|
22954
|
-
const explicit =
|
|
22954
|
+
const explicit = readTrimmedEnv2("SIGNET_DAEMON_URL");
|
|
22955
22955
|
if (!explicit)
|
|
22956
22956
|
return null;
|
|
22957
22957
|
return resolveSignetDaemonUrl();
|
|
@@ -23158,7 +23158,7 @@ function cmdEnvQuote(value) {
|
|
|
23158
23158
|
return value.replace(/[\^"&|<>]/g, "^$&");
|
|
23159
23159
|
}
|
|
23160
23160
|
function readAuthTokenEnv() {
|
|
23161
|
-
return
|
|
23161
|
+
return readTrimmedEnv2("SIGNET_API_KEY") ?? readTrimmedEnv2("SIGNET_TOKEN");
|
|
23162
23162
|
}
|
|
23163
23163
|
function withRemoteDaemonEnv(command, remoteDaemonUrl) {
|
|
23164
23164
|
const apiKey = readAuthTokenEnv();
|
|
@@ -23641,7 +23641,7 @@ class CodexConnector extends BaseConnector {
|
|
|
23641
23641
|
return resolveCodexDesktopNode(this.getCodexDesktopAppPaths());
|
|
23642
23642
|
}
|
|
23643
23643
|
supportsNativePluginInstall() {
|
|
23644
|
-
if (
|
|
23644
|
+
if (readTrimmedEnv2("SIGNET_CODEX_DISABLE_NATIVE_PLUGIN") === "1")
|
|
23645
23645
|
return false;
|
|
23646
23646
|
const result = spawnSync("codex", ["plugin", "--help"], {
|
|
23647
23647
|
stdio: "ignore",
|
|
@@ -23650,7 +23650,7 @@ class CodexConnector extends BaseConnector {
|
|
|
23650
23650
|
return result.status === 0;
|
|
23651
23651
|
}
|
|
23652
23652
|
nativePluginProvidesHooks() {
|
|
23653
|
-
return
|
|
23653
|
+
return readTrimmedEnv2("SIGNET_CODEX_FORCE_COMPAT_HOOKS") !== "1";
|
|
23654
23654
|
}
|
|
23655
23655
|
installNativePlugin(codexHome) {
|
|
23656
23656
|
const result = spawnSync("codex", ["plugin", "add", CODEX_PLUGIN_CONFIG_NAME], {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-codex",
|
|
3
|
-
"version": "0.163.
|
|
3
|
+
"version": "0.163.18",
|
|
4
4
|
"description": "Signet connector for Codex CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"typecheck": "tsc --noEmit"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@signetai/connector-base": "0.163.
|
|
28
|
-
"@signetai/core": "0.163.
|
|
27
|
+
"@signetai/connector-base": "0.163.18",
|
|
28
|
+
"@signetai/core": "0.163.18"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|