@signetai/connector-claude-code 0.163.17 → 0.163.19
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 +105 -105
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { join as join4 } from "node:path";
|
|
|
7
7
|
// ../../../libs/connector-base/dist/index.js
|
|
8
8
|
import { randomBytes } from "node:crypto";
|
|
9
9
|
import { existsSync, readFileSync, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
|
|
10
|
-
import { dirname as dirname3, join as join3 } from "node:path";
|
|
10
|
+
import { dirname as dirname3, isAbsolute, join as join3, relative, sep } from "node:path";
|
|
11
11
|
import { createRequire } from "node:module";
|
|
12
12
|
import { dirname, join } from "node:path";
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
@@ -3625,10 +3625,10 @@ var require_resolve_block_map = __commonJS2((exports) => {
|
|
|
3625
3625
|
let offset = bm.offset;
|
|
3626
3626
|
let commentEnd = null;
|
|
3627
3627
|
for (const collItem of bm.items) {
|
|
3628
|
-
const { start, key, sep, value } = collItem;
|
|
3628
|
+
const { start, key, sep: sep2, value } = collItem;
|
|
3629
3629
|
const keyProps = resolveProps.resolveProps(start, {
|
|
3630
3630
|
indicator: "explicit-key-ind",
|
|
3631
|
-
next: key ??
|
|
3631
|
+
next: key ?? sep2?.[0],
|
|
3632
3632
|
offset,
|
|
3633
3633
|
onError,
|
|
3634
3634
|
parentIndent: bm.indent,
|
|
@@ -3642,7 +3642,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
|
|
|
3642
3642
|
else if ("indent" in key && key.indent !== bm.indent)
|
|
3643
3643
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
3644
3644
|
}
|
|
3645
|
-
if (!keyProps.anchor && !keyProps.tag && !
|
|
3645
|
+
if (!keyProps.anchor && !keyProps.tag && !sep2) {
|
|
3646
3646
|
commentEnd = keyProps.end;
|
|
3647
3647
|
if (keyProps.comment) {
|
|
3648
3648
|
if (map.comment)
|
|
@@ -3667,7 +3667,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
|
|
|
3667
3667
|
ctx.atKey = false;
|
|
3668
3668
|
if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
|
|
3669
3669
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
3670
|
-
const valueProps = resolveProps.resolveProps(
|
|
3670
|
+
const valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
3671
3671
|
indicator: "map-value-ind",
|
|
3672
3672
|
next: value,
|
|
3673
3673
|
offset: keyNode.range[2],
|
|
@@ -3683,7 +3683,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
|
|
|
3683
3683
|
if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
|
|
3684
3684
|
onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
|
|
3685
3685
|
}
|
|
3686
|
-
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset,
|
|
3686
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError);
|
|
3687
3687
|
if (ctx.schema.compat)
|
|
3688
3688
|
utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError);
|
|
3689
3689
|
offset = valueNode.range[2];
|
|
@@ -3765,7 +3765,7 @@ var require_resolve_end = __commonJS2((exports) => {
|
|
|
3765
3765
|
let comment = "";
|
|
3766
3766
|
if (end) {
|
|
3767
3767
|
let hasSpace = false;
|
|
3768
|
-
let
|
|
3768
|
+
let sep2 = "";
|
|
3769
3769
|
for (const token of end) {
|
|
3770
3770
|
const { source, type } = token;
|
|
3771
3771
|
switch (type) {
|
|
@@ -3779,13 +3779,13 @@ var require_resolve_end = __commonJS2((exports) => {
|
|
|
3779
3779
|
if (!comment)
|
|
3780
3780
|
comment = cb;
|
|
3781
3781
|
else
|
|
3782
|
-
comment +=
|
|
3783
|
-
|
|
3782
|
+
comment += sep2 + cb;
|
|
3783
|
+
sep2 = "";
|
|
3784
3784
|
break;
|
|
3785
3785
|
}
|
|
3786
3786
|
case "newline":
|
|
3787
3787
|
if (comment)
|
|
3788
|
-
|
|
3788
|
+
sep2 += source;
|
|
3789
3789
|
hasSpace = true;
|
|
3790
3790
|
break;
|
|
3791
3791
|
default:
|
|
@@ -3823,18 +3823,18 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
3823
3823
|
let offset = fc.offset + fc.start.source.length;
|
|
3824
3824
|
for (let i = 0;i < fc.items.length; ++i) {
|
|
3825
3825
|
const collItem = fc.items[i];
|
|
3826
|
-
const { start, key, sep, value } = collItem;
|
|
3826
|
+
const { start, key, sep: sep2, value } = collItem;
|
|
3827
3827
|
const props = resolveProps.resolveProps(start, {
|
|
3828
3828
|
flow: fcName,
|
|
3829
3829
|
indicator: "explicit-key-ind",
|
|
3830
|
-
next: key ??
|
|
3830
|
+
next: key ?? sep2?.[0],
|
|
3831
3831
|
offset,
|
|
3832
3832
|
onError,
|
|
3833
3833
|
parentIndent: fc.indent,
|
|
3834
3834
|
startOnNewline: false
|
|
3835
3835
|
});
|
|
3836
3836
|
if (!props.found) {
|
|
3837
|
-
if (!props.anchor && !props.tag && !
|
|
3837
|
+
if (!props.anchor && !props.tag && !sep2 && !value) {
|
|
3838
3838
|
if (i === 0 && props.comma)
|
|
3839
3839
|
onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
|
|
3840
3840
|
else if (i < fc.items.length - 1)
|
|
@@ -3886,8 +3886,8 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
3886
3886
|
}
|
|
3887
3887
|
}
|
|
3888
3888
|
}
|
|
3889
|
-
if (!isMap && !
|
|
3890
|
-
const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end,
|
|
3889
|
+
if (!isMap && !sep2 && !props.found) {
|
|
3890
|
+
const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep2, null, props, onError);
|
|
3891
3891
|
coll.items.push(valueNode);
|
|
3892
3892
|
offset = valueNode.range[2];
|
|
3893
3893
|
if (isBlock(value))
|
|
@@ -3899,7 +3899,7 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
3899
3899
|
if (isBlock(key))
|
|
3900
3900
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
3901
3901
|
ctx.atKey = false;
|
|
3902
|
-
const valueProps = resolveProps.resolveProps(
|
|
3902
|
+
const valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
3903
3903
|
flow: fcName,
|
|
3904
3904
|
indicator: "map-value-ind",
|
|
3905
3905
|
next: value,
|
|
@@ -3910,8 +3910,8 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
3910
3910
|
});
|
|
3911
3911
|
if (valueProps.found) {
|
|
3912
3912
|
if (!isMap && !props.found && ctx.options.strict) {
|
|
3913
|
-
if (
|
|
3914
|
-
for (const st of
|
|
3913
|
+
if (sep2)
|
|
3914
|
+
for (const st of sep2) {
|
|
3915
3915
|
if (st === valueProps.found)
|
|
3916
3916
|
break;
|
|
3917
3917
|
if (st.type === "newline") {
|
|
@@ -3928,7 +3928,7 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
|
|
|
3928
3928
|
else
|
|
3929
3929
|
onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
|
|
3930
3930
|
}
|
|
3931
|
-
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end,
|
|
3931
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null;
|
|
3932
3932
|
if (valueNode) {
|
|
3933
3933
|
if (isBlock(value))
|
|
3934
3934
|
onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
@@ -4101,7 +4101,7 @@ var require_resolve_block_scalar = __commonJS2((exports) => {
|
|
|
4101
4101
|
chompStart = i + 1;
|
|
4102
4102
|
}
|
|
4103
4103
|
let value = "";
|
|
4104
|
-
let
|
|
4104
|
+
let sep2 = "";
|
|
4105
4105
|
let prevMoreIndented = false;
|
|
4106
4106
|
for (let i = 0;i < contentStart; ++i)
|
|
4107
4107
|
value += lines[i][0].slice(trimIndent) + `
|
|
@@ -4119,33 +4119,33 @@ var require_resolve_block_scalar = __commonJS2((exports) => {
|
|
|
4119
4119
|
indent = "";
|
|
4120
4120
|
}
|
|
4121
4121
|
if (type === Scalar.Scalar.BLOCK_LITERAL) {
|
|
4122
|
-
value +=
|
|
4123
|
-
|
|
4122
|
+
value += sep2 + indent.slice(trimIndent) + content;
|
|
4123
|
+
sep2 = `
|
|
4124
4124
|
`;
|
|
4125
4125
|
} else if (indent.length > trimIndent || content[0] === "\t") {
|
|
4126
|
-
if (
|
|
4127
|
-
|
|
4126
|
+
if (sep2 === " ")
|
|
4127
|
+
sep2 = `
|
|
4128
4128
|
`;
|
|
4129
|
-
else if (!prevMoreIndented &&
|
|
4129
|
+
else if (!prevMoreIndented && sep2 === `
|
|
4130
4130
|
`)
|
|
4131
|
-
|
|
4131
|
+
sep2 = `
|
|
4132
4132
|
|
|
4133
4133
|
`;
|
|
4134
|
-
value +=
|
|
4135
|
-
|
|
4134
|
+
value += sep2 + indent.slice(trimIndent) + content;
|
|
4135
|
+
sep2 = `
|
|
4136
4136
|
`;
|
|
4137
4137
|
prevMoreIndented = true;
|
|
4138
4138
|
} else if (content === "") {
|
|
4139
|
-
if (
|
|
4139
|
+
if (sep2 === `
|
|
4140
4140
|
`)
|
|
4141
4141
|
value += `
|
|
4142
4142
|
`;
|
|
4143
4143
|
else
|
|
4144
|
-
|
|
4144
|
+
sep2 = `
|
|
4145
4145
|
`;
|
|
4146
4146
|
} else {
|
|
4147
|
-
value +=
|
|
4148
|
-
|
|
4147
|
+
value += sep2 + content;
|
|
4148
|
+
sep2 = " ";
|
|
4149
4149
|
prevMoreIndented = false;
|
|
4150
4150
|
}
|
|
4151
4151
|
}
|
|
@@ -4324,27 +4324,27 @@ var require_resolve_flow_scalar = __commonJS2((exports) => {
|
|
|
4324
4324
|
if (!match)
|
|
4325
4325
|
return source;
|
|
4326
4326
|
let res = match[1];
|
|
4327
|
-
let
|
|
4327
|
+
let sep2 = " ";
|
|
4328
4328
|
let pos = first.lastIndex;
|
|
4329
4329
|
line.lastIndex = pos;
|
|
4330
4330
|
while (match = line.exec(source)) {
|
|
4331
4331
|
if (match[1] === "") {
|
|
4332
|
-
if (
|
|
4332
|
+
if (sep2 === `
|
|
4333
4333
|
`)
|
|
4334
|
-
res +=
|
|
4334
|
+
res += sep2;
|
|
4335
4335
|
else
|
|
4336
|
-
|
|
4336
|
+
sep2 = `
|
|
4337
4337
|
`;
|
|
4338
4338
|
} else {
|
|
4339
|
-
res +=
|
|
4340
|
-
|
|
4339
|
+
res += sep2 + match[1];
|
|
4340
|
+
sep2 = " ";
|
|
4341
4341
|
}
|
|
4342
4342
|
pos = line.lastIndex;
|
|
4343
4343
|
}
|
|
4344
4344
|
const last = /[ \t]*(.*)/sy;
|
|
4345
4345
|
last.lastIndex = pos;
|
|
4346
4346
|
match = last.exec(source);
|
|
4347
|
-
return res +
|
|
4347
|
+
return res + sep2 + (match?.[1] ?? "");
|
|
4348
4348
|
}
|
|
4349
4349
|
function doubleQuotedValue(source, onError) {
|
|
4350
4350
|
let res = "";
|
|
@@ -5111,14 +5111,14 @@ var require_cst_stringify = __commonJS2((exports) => {
|
|
|
5111
5111
|
}
|
|
5112
5112
|
}
|
|
5113
5113
|
}
|
|
5114
|
-
function stringifyItem({ start, key, sep, value }) {
|
|
5114
|
+
function stringifyItem({ start, key, sep: sep2, value }) {
|
|
5115
5115
|
let res = "";
|
|
5116
5116
|
for (const st of start)
|
|
5117
5117
|
res += st.source;
|
|
5118
5118
|
if (key)
|
|
5119
5119
|
res += stringifyToken(key);
|
|
5120
|
-
if (
|
|
5121
|
-
for (const st of
|
|
5120
|
+
if (sep2)
|
|
5121
|
+
for (const st of sep2)
|
|
5122
5122
|
res += st.source;
|
|
5123
5123
|
if (value)
|
|
5124
5124
|
res += stringifyToken(value);
|
|
@@ -6257,18 +6257,18 @@ var require_parser = __commonJS2((exports) => {
|
|
|
6257
6257
|
if (this.type === "map-value-ind") {
|
|
6258
6258
|
const prev = getPrevProps(this.peek(2));
|
|
6259
6259
|
const start = getFirstKeyStartProps(prev);
|
|
6260
|
-
let
|
|
6260
|
+
let sep2;
|
|
6261
6261
|
if (scalar.end) {
|
|
6262
|
-
|
|
6263
|
-
|
|
6262
|
+
sep2 = scalar.end;
|
|
6263
|
+
sep2.push(this.sourceToken);
|
|
6264
6264
|
delete scalar.end;
|
|
6265
6265
|
} else
|
|
6266
|
-
|
|
6266
|
+
sep2 = [this.sourceToken];
|
|
6267
6267
|
const map = {
|
|
6268
6268
|
type: "block-map",
|
|
6269
6269
|
offset: scalar.offset,
|
|
6270
6270
|
indent: scalar.indent,
|
|
6271
|
-
items: [{ start, key: scalar, sep }]
|
|
6271
|
+
items: [{ start, key: scalar, sep: sep2 }]
|
|
6272
6272
|
};
|
|
6273
6273
|
this.onKeyLine = true;
|
|
6274
6274
|
this.stack[this.stack.length - 1] = map;
|
|
@@ -6422,15 +6422,15 @@ var require_parser = __commonJS2((exports) => {
|
|
|
6422
6422
|
} else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
6423
6423
|
const start2 = getFirstKeyStartProps(it.start);
|
|
6424
6424
|
const key = it.key;
|
|
6425
|
-
const
|
|
6426
|
-
|
|
6425
|
+
const sep2 = it.sep;
|
|
6426
|
+
sep2.push(this.sourceToken);
|
|
6427
6427
|
delete it.key;
|
|
6428
6428
|
delete it.sep;
|
|
6429
6429
|
this.stack.push({
|
|
6430
6430
|
type: "block-map",
|
|
6431
6431
|
offset: this.offset,
|
|
6432
6432
|
indent: this.indent,
|
|
6433
|
-
items: [{ start: start2, key, sep }]
|
|
6433
|
+
items: [{ start: start2, key, sep: sep2 }]
|
|
6434
6434
|
});
|
|
6435
6435
|
} else if (start.length > 0) {
|
|
6436
6436
|
it.sep = it.sep.concat(start, this.sourceToken);
|
|
@@ -6624,13 +6624,13 @@ var require_parser = __commonJS2((exports) => {
|
|
|
6624
6624
|
const prev = getPrevProps(parent);
|
|
6625
6625
|
const start = getFirstKeyStartProps(prev);
|
|
6626
6626
|
fixFlowSeqItems(fc);
|
|
6627
|
-
const
|
|
6628
|
-
|
|
6627
|
+
const sep2 = fc.end.splice(1, fc.end.length);
|
|
6628
|
+
sep2.push(this.sourceToken);
|
|
6629
6629
|
const map = {
|
|
6630
6630
|
type: "block-map",
|
|
6631
6631
|
offset: fc.offset,
|
|
6632
6632
|
indent: fc.indent,
|
|
6633
|
-
items: [{ start, key: fc, sep }]
|
|
6633
|
+
items: [{ start, key: fc, sep: sep2 }]
|
|
6634
6634
|
};
|
|
6635
6635
|
this.onKeyLine = true;
|
|
6636
6636
|
this.stack[this.stack.length - 1] = map;
|
|
@@ -15116,10 +15116,10 @@ var require_resolve_block_map2 = __commonJS((exports) => {
|
|
|
15116
15116
|
let offset = bm.offset;
|
|
15117
15117
|
let commentEnd = null;
|
|
15118
15118
|
for (const collItem of bm.items) {
|
|
15119
|
-
const { start, key, sep, value } = collItem;
|
|
15119
|
+
const { start, key, sep: sep2, value } = collItem;
|
|
15120
15120
|
const keyProps = resolveProps.resolveProps(start, {
|
|
15121
15121
|
indicator: "explicit-key-ind",
|
|
15122
|
-
next: key ??
|
|
15122
|
+
next: key ?? sep2?.[0],
|
|
15123
15123
|
offset,
|
|
15124
15124
|
onError,
|
|
15125
15125
|
parentIndent: bm.indent,
|
|
@@ -15133,7 +15133,7 @@ var require_resolve_block_map2 = __commonJS((exports) => {
|
|
|
15133
15133
|
else if ("indent" in key && key.indent !== bm.indent)
|
|
15134
15134
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
15135
15135
|
}
|
|
15136
|
-
if (!keyProps.anchor && !keyProps.tag && !
|
|
15136
|
+
if (!keyProps.anchor && !keyProps.tag && !sep2) {
|
|
15137
15137
|
commentEnd = keyProps.end;
|
|
15138
15138
|
if (keyProps.comment) {
|
|
15139
15139
|
if (map.comment)
|
|
@@ -15158,7 +15158,7 @@ var require_resolve_block_map2 = __commonJS((exports) => {
|
|
|
15158
15158
|
ctx.atKey = false;
|
|
15159
15159
|
if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
|
|
15160
15160
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
15161
|
-
const valueProps = resolveProps.resolveProps(
|
|
15161
|
+
const valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
15162
15162
|
indicator: "map-value-ind",
|
|
15163
15163
|
next: value,
|
|
15164
15164
|
offset: keyNode.range[2],
|
|
@@ -15174,7 +15174,7 @@ var require_resolve_block_map2 = __commonJS((exports) => {
|
|
|
15174
15174
|
if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
|
|
15175
15175
|
onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
|
|
15176
15176
|
}
|
|
15177
|
-
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset,
|
|
15177
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError);
|
|
15178
15178
|
if (ctx.schema.compat)
|
|
15179
15179
|
utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError);
|
|
15180
15180
|
offset = valueNode.range[2];
|
|
@@ -15256,7 +15256,7 @@ var require_resolve_end2 = __commonJS((exports) => {
|
|
|
15256
15256
|
let comment = "";
|
|
15257
15257
|
if (end) {
|
|
15258
15258
|
let hasSpace = false;
|
|
15259
|
-
let
|
|
15259
|
+
let sep2 = "";
|
|
15260
15260
|
for (const token of end) {
|
|
15261
15261
|
const { source, type } = token;
|
|
15262
15262
|
switch (type) {
|
|
@@ -15270,13 +15270,13 @@ var require_resolve_end2 = __commonJS((exports) => {
|
|
|
15270
15270
|
if (!comment)
|
|
15271
15271
|
comment = cb;
|
|
15272
15272
|
else
|
|
15273
|
-
comment +=
|
|
15274
|
-
|
|
15273
|
+
comment += sep2 + cb;
|
|
15274
|
+
sep2 = "";
|
|
15275
15275
|
break;
|
|
15276
15276
|
}
|
|
15277
15277
|
case "newline":
|
|
15278
15278
|
if (comment)
|
|
15279
|
-
|
|
15279
|
+
sep2 += source;
|
|
15280
15280
|
hasSpace = true;
|
|
15281
15281
|
break;
|
|
15282
15282
|
default:
|
|
@@ -15314,18 +15314,18 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
|
|
|
15314
15314
|
let offset = fc.offset + fc.start.source.length;
|
|
15315
15315
|
for (let i = 0;i < fc.items.length; ++i) {
|
|
15316
15316
|
const collItem = fc.items[i];
|
|
15317
|
-
const { start, key, sep, value } = collItem;
|
|
15317
|
+
const { start, key, sep: sep2, value } = collItem;
|
|
15318
15318
|
const props = resolveProps.resolveProps(start, {
|
|
15319
15319
|
flow: fcName,
|
|
15320
15320
|
indicator: "explicit-key-ind",
|
|
15321
|
-
next: key ??
|
|
15321
|
+
next: key ?? sep2?.[0],
|
|
15322
15322
|
offset,
|
|
15323
15323
|
onError,
|
|
15324
15324
|
parentIndent: fc.indent,
|
|
15325
15325
|
startOnNewline: false
|
|
15326
15326
|
});
|
|
15327
15327
|
if (!props.found) {
|
|
15328
|
-
if (!props.anchor && !props.tag && !
|
|
15328
|
+
if (!props.anchor && !props.tag && !sep2 && !value) {
|
|
15329
15329
|
if (i === 0 && props.comma)
|
|
15330
15330
|
onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
|
|
15331
15331
|
else if (i < fc.items.length - 1)
|
|
@@ -15377,8 +15377,8 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
|
|
|
15377
15377
|
}
|
|
15378
15378
|
}
|
|
15379
15379
|
}
|
|
15380
|
-
if (!isMap && !
|
|
15381
|
-
const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end,
|
|
15380
|
+
if (!isMap && !sep2 && !props.found) {
|
|
15381
|
+
const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep2, null, props, onError);
|
|
15382
15382
|
coll.items.push(valueNode);
|
|
15383
15383
|
offset = valueNode.range[2];
|
|
15384
15384
|
if (isBlock(value))
|
|
@@ -15390,7 +15390,7 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
|
|
|
15390
15390
|
if (isBlock(key))
|
|
15391
15391
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
15392
15392
|
ctx.atKey = false;
|
|
15393
|
-
const valueProps = resolveProps.resolveProps(
|
|
15393
|
+
const valueProps = resolveProps.resolveProps(sep2 ?? [], {
|
|
15394
15394
|
flow: fcName,
|
|
15395
15395
|
indicator: "map-value-ind",
|
|
15396
15396
|
next: value,
|
|
@@ -15401,8 +15401,8 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
|
|
|
15401
15401
|
});
|
|
15402
15402
|
if (valueProps.found) {
|
|
15403
15403
|
if (!isMap && !props.found && ctx.options.strict) {
|
|
15404
|
-
if (
|
|
15405
|
-
for (const st of
|
|
15404
|
+
if (sep2)
|
|
15405
|
+
for (const st of sep2) {
|
|
15406
15406
|
if (st === valueProps.found)
|
|
15407
15407
|
break;
|
|
15408
15408
|
if (st.type === "newline") {
|
|
@@ -15419,7 +15419,7 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
|
|
|
15419
15419
|
else
|
|
15420
15420
|
onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
|
|
15421
15421
|
}
|
|
15422
|
-
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end,
|
|
15422
|
+
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null;
|
|
15423
15423
|
if (valueNode) {
|
|
15424
15424
|
if (isBlock(value))
|
|
15425
15425
|
onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
@@ -15592,7 +15592,7 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
|
|
|
15592
15592
|
chompStart = i + 1;
|
|
15593
15593
|
}
|
|
15594
15594
|
let value = "";
|
|
15595
|
-
let
|
|
15595
|
+
let sep2 = "";
|
|
15596
15596
|
let prevMoreIndented = false;
|
|
15597
15597
|
for (let i = 0;i < contentStart; ++i)
|
|
15598
15598
|
value += lines[i][0].slice(trimIndent) + `
|
|
@@ -15610,33 +15610,33 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
|
|
|
15610
15610
|
indent = "";
|
|
15611
15611
|
}
|
|
15612
15612
|
if (type === Scalar.Scalar.BLOCK_LITERAL) {
|
|
15613
|
-
value +=
|
|
15614
|
-
|
|
15613
|
+
value += sep2 + indent.slice(trimIndent) + content;
|
|
15614
|
+
sep2 = `
|
|
15615
15615
|
`;
|
|
15616
15616
|
} else if (indent.length > trimIndent || content[0] === "\t") {
|
|
15617
|
-
if (
|
|
15618
|
-
|
|
15617
|
+
if (sep2 === " ")
|
|
15618
|
+
sep2 = `
|
|
15619
15619
|
`;
|
|
15620
|
-
else if (!prevMoreIndented &&
|
|
15620
|
+
else if (!prevMoreIndented && sep2 === `
|
|
15621
15621
|
`)
|
|
15622
|
-
|
|
15622
|
+
sep2 = `
|
|
15623
15623
|
|
|
15624
15624
|
`;
|
|
15625
|
-
value +=
|
|
15626
|
-
|
|
15625
|
+
value += sep2 + indent.slice(trimIndent) + content;
|
|
15626
|
+
sep2 = `
|
|
15627
15627
|
`;
|
|
15628
15628
|
prevMoreIndented = true;
|
|
15629
15629
|
} else if (content === "") {
|
|
15630
|
-
if (
|
|
15630
|
+
if (sep2 === `
|
|
15631
15631
|
`)
|
|
15632
15632
|
value += `
|
|
15633
15633
|
`;
|
|
15634
15634
|
else
|
|
15635
|
-
|
|
15635
|
+
sep2 = `
|
|
15636
15636
|
`;
|
|
15637
15637
|
} else {
|
|
15638
|
-
value +=
|
|
15639
|
-
|
|
15638
|
+
value += sep2 + content;
|
|
15639
|
+
sep2 = " ";
|
|
15640
15640
|
prevMoreIndented = false;
|
|
15641
15641
|
}
|
|
15642
15642
|
}
|
|
@@ -15815,27 +15815,27 @@ var require_resolve_flow_scalar2 = __commonJS((exports) => {
|
|
|
15815
15815
|
if (!match)
|
|
15816
15816
|
return source;
|
|
15817
15817
|
let res = match[1];
|
|
15818
|
-
let
|
|
15818
|
+
let sep2 = " ";
|
|
15819
15819
|
let pos = first.lastIndex;
|
|
15820
15820
|
line.lastIndex = pos;
|
|
15821
15821
|
while (match = line.exec(source)) {
|
|
15822
15822
|
if (match[1] === "") {
|
|
15823
|
-
if (
|
|
15823
|
+
if (sep2 === `
|
|
15824
15824
|
`)
|
|
15825
|
-
res +=
|
|
15825
|
+
res += sep2;
|
|
15826
15826
|
else
|
|
15827
|
-
|
|
15827
|
+
sep2 = `
|
|
15828
15828
|
`;
|
|
15829
15829
|
} else {
|
|
15830
|
-
res +=
|
|
15831
|
-
|
|
15830
|
+
res += sep2 + match[1];
|
|
15831
|
+
sep2 = " ";
|
|
15832
15832
|
}
|
|
15833
15833
|
pos = line.lastIndex;
|
|
15834
15834
|
}
|
|
15835
15835
|
const last = /[ \t]*(.*)/sy;
|
|
15836
15836
|
last.lastIndex = pos;
|
|
15837
15837
|
match = last.exec(source);
|
|
15838
|
-
return res +
|
|
15838
|
+
return res + sep2 + (match?.[1] ?? "");
|
|
15839
15839
|
}
|
|
15840
15840
|
function doubleQuotedValue(source, onError) {
|
|
15841
15841
|
let res = "";
|
|
@@ -16602,14 +16602,14 @@ var require_cst_stringify2 = __commonJS((exports) => {
|
|
|
16602
16602
|
}
|
|
16603
16603
|
}
|
|
16604
16604
|
}
|
|
16605
|
-
function stringifyItem({ start, key, sep, value }) {
|
|
16605
|
+
function stringifyItem({ start, key, sep: sep2, value }) {
|
|
16606
16606
|
let res = "";
|
|
16607
16607
|
for (const st of start)
|
|
16608
16608
|
res += st.source;
|
|
16609
16609
|
if (key)
|
|
16610
16610
|
res += stringifyToken(key);
|
|
16611
|
-
if (
|
|
16612
|
-
for (const st of
|
|
16611
|
+
if (sep2)
|
|
16612
|
+
for (const st of sep2)
|
|
16613
16613
|
res += st.source;
|
|
16614
16614
|
if (value)
|
|
16615
16615
|
res += stringifyToken(value);
|
|
@@ -17748,18 +17748,18 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
17748
17748
|
if (this.type === "map-value-ind") {
|
|
17749
17749
|
const prev = getPrevProps(this.peek(2));
|
|
17750
17750
|
const start = getFirstKeyStartProps(prev);
|
|
17751
|
-
let
|
|
17751
|
+
let sep2;
|
|
17752
17752
|
if (scalar.end) {
|
|
17753
|
-
|
|
17754
|
-
|
|
17753
|
+
sep2 = scalar.end;
|
|
17754
|
+
sep2.push(this.sourceToken);
|
|
17755
17755
|
delete scalar.end;
|
|
17756
17756
|
} else
|
|
17757
|
-
|
|
17757
|
+
sep2 = [this.sourceToken];
|
|
17758
17758
|
const map = {
|
|
17759
17759
|
type: "block-map",
|
|
17760
17760
|
offset: scalar.offset,
|
|
17761
17761
|
indent: scalar.indent,
|
|
17762
|
-
items: [{ start, key: scalar, sep }]
|
|
17762
|
+
items: [{ start, key: scalar, sep: sep2 }]
|
|
17763
17763
|
};
|
|
17764
17764
|
this.onKeyLine = true;
|
|
17765
17765
|
this.stack[this.stack.length - 1] = map;
|
|
@@ -17913,15 +17913,15 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
17913
17913
|
} else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
17914
17914
|
const start2 = getFirstKeyStartProps(it.start);
|
|
17915
17915
|
const key = it.key;
|
|
17916
|
-
const
|
|
17917
|
-
|
|
17916
|
+
const sep2 = it.sep;
|
|
17917
|
+
sep2.push(this.sourceToken);
|
|
17918
17918
|
delete it.key;
|
|
17919
17919
|
delete it.sep;
|
|
17920
17920
|
this.stack.push({
|
|
17921
17921
|
type: "block-map",
|
|
17922
17922
|
offset: this.offset,
|
|
17923
17923
|
indent: this.indent,
|
|
17924
|
-
items: [{ start: start2, key, sep }]
|
|
17924
|
+
items: [{ start: start2, key, sep: sep2 }]
|
|
17925
17925
|
});
|
|
17926
17926
|
} else if (start.length > 0) {
|
|
17927
17927
|
it.sep = it.sep.concat(start, this.sourceToken);
|
|
@@ -18115,13 +18115,13 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
18115
18115
|
const prev = getPrevProps(parent);
|
|
18116
18116
|
const start = getFirstKeyStartProps(prev);
|
|
18117
18117
|
fixFlowSeqItems(fc);
|
|
18118
|
-
const
|
|
18119
|
-
|
|
18118
|
+
const sep2 = fc.end.splice(1, fc.end.length);
|
|
18119
|
+
sep2.push(this.sourceToken);
|
|
18120
18120
|
const map = {
|
|
18121
18121
|
type: "block-map",
|
|
18122
18122
|
offset: fc.offset,
|
|
18123
18123
|
indent: fc.indent,
|
|
18124
|
-
items: [{ start, key: fc, sep }]
|
|
18124
|
+
items: [{ start, key: fc, sep: sep2 }]
|
|
18125
18125
|
};
|
|
18126
18126
|
this.onKeyLine = true;
|
|
18127
18127
|
this.stack[this.stack.length - 1] = map;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-claude-code",
|
|
3
|
-
"version": "0.163.
|
|
3
|
+
"version": "0.163.19",
|
|
4
4
|
"description": "Signet connector for Claude Code (Anthropic 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.19",
|
|
28
|
+
"@signetai/core": "0.163.19"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|