@signetai/connector-gemini 0.163.16 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EAIpB,MAAM,wBAAwB,CAAC;AAwBhC,qBAAa,eAAgB,SAAQ,aAAa;IACjD,QAAQ,CAAC,IAAI,YAAY;IACzB,QAAQ,CAAC,SAAS,YAAY;IAE9B,OAAO,CAAC,aAAa;IAIrB,aAAa,IAAI,MAAM;IAIvB,OAAO,CAAC,eAAe;IAgBjB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAqEjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IA2B3C,WAAW,IAAI,OAAO;IAOtB,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAIpC,OAAO,CAAC,yBAAyB;IA4BjC,OAAO,CAAC,iBAAiB;IAoCzB,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,gBAAgB;CAcxB;AAED,eAAO,MAAM,eAAe,iBAAwB,CAAC;AACrD,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EAMpB,MAAM,wBAAwB,CAAC;AAehC,qBAAa,eAAgB,SAAQ,aAAa;IACjD,QAAQ,CAAC,IAAI,YAAY;IACzB,QAAQ,CAAC,SAAS,YAAY;IAE9B,OAAO,CAAC,aAAa;IAIrB,aAAa,IAAI,MAAM;IAIvB,OAAO,CAAC,eAAe;IAgBjB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAqEjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IA2B3C,WAAW,IAAI,OAAO;IAOtB,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAIpC,OAAO,CAAC,yBAAyB;IA4BjC,OAAO,CAAC,iBAAiB;IAoCzB,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,gBAAgB;CAcxB;AAED,eAAO,MAAM,eAAe,iBAAwB,CAAC;AACrD,eAAe,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -11,13 +11,13 @@ import {
11
11
  writeFileSync as writeFileSync3
12
12
  } from "node:fs";
13
13
  import { homedir as homedir5 } from "node:os";
14
- import { dirname as dirname8, join as join6, resolve as resolve2, sep } from "node:path";
14
+ import { dirname as dirname8, join as join6, resolve as resolve2 } from "node:path";
15
15
 
16
16
  // ../../../libs/connector-base/dist/index.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { existsSync, readFileSync, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
19
19
  import { homedir } from "node:os";
20
- import { dirname as dirname3, join as join3 } from "node:path";
20
+ import { dirname as dirname3, isAbsolute, join as join3, relative, sep } from "node:path";
21
21
  import { createRequire } from "node:module";
22
22
  import { dirname, join } from "node:path";
23
23
  import { fileURLToPath } from "node:url";
@@ -3640,10 +3640,10 @@ var require_resolve_block_map = __commonJS2((exports) => {
3640
3640
  let offset = bm.offset;
3641
3641
  let commentEnd = null;
3642
3642
  for (const collItem of bm.items) {
3643
- const { start, key, sep, value } = collItem;
3643
+ const { start, key, sep: sep2, value } = collItem;
3644
3644
  const keyProps = resolveProps.resolveProps(start, {
3645
3645
  indicator: "explicit-key-ind",
3646
- next: key ?? sep?.[0],
3646
+ next: key ?? sep2?.[0],
3647
3647
  offset,
3648
3648
  onError,
3649
3649
  parentIndent: bm.indent,
@@ -3657,7 +3657,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
3657
3657
  else if ("indent" in key && key.indent !== bm.indent)
3658
3658
  onError(offset, "BAD_INDENT", startColMsg);
3659
3659
  }
3660
- if (!keyProps.anchor && !keyProps.tag && !sep) {
3660
+ if (!keyProps.anchor && !keyProps.tag && !sep2) {
3661
3661
  commentEnd = keyProps.end;
3662
3662
  if (keyProps.comment) {
3663
3663
  if (map.comment)
@@ -3682,7 +3682,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
3682
3682
  ctx.atKey = false;
3683
3683
  if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
3684
3684
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
3685
- const valueProps = resolveProps.resolveProps(sep ?? [], {
3685
+ const valueProps = resolveProps.resolveProps(sep2 ?? [], {
3686
3686
  indicator: "map-value-ind",
3687
3687
  next: value,
3688
3688
  offset: keyNode.range[2],
@@ -3698,7 +3698,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
3698
3698
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
3699
3699
  onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
3700
3700
  }
3701
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep, null, valueProps, onError);
3701
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError);
3702
3702
  if (ctx.schema.compat)
3703
3703
  utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError);
3704
3704
  offset = valueNode.range[2];
@@ -3780,7 +3780,7 @@ var require_resolve_end = __commonJS2((exports) => {
3780
3780
  let comment = "";
3781
3781
  if (end) {
3782
3782
  let hasSpace = false;
3783
- let sep = "";
3783
+ let sep2 = "";
3784
3784
  for (const token of end) {
3785
3785
  const { source, type } = token;
3786
3786
  switch (type) {
@@ -3794,13 +3794,13 @@ var require_resolve_end = __commonJS2((exports) => {
3794
3794
  if (!comment)
3795
3795
  comment = cb;
3796
3796
  else
3797
- comment += sep + cb;
3798
- sep = "";
3797
+ comment += sep2 + cb;
3798
+ sep2 = "";
3799
3799
  break;
3800
3800
  }
3801
3801
  case "newline":
3802
3802
  if (comment)
3803
- sep += source;
3803
+ sep2 += source;
3804
3804
  hasSpace = true;
3805
3805
  break;
3806
3806
  default:
@@ -3838,18 +3838,18 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
3838
3838
  let offset = fc.offset + fc.start.source.length;
3839
3839
  for (let i = 0;i < fc.items.length; ++i) {
3840
3840
  const collItem = fc.items[i];
3841
- const { start, key, sep, value } = collItem;
3841
+ const { start, key, sep: sep2, value } = collItem;
3842
3842
  const props = resolveProps.resolveProps(start, {
3843
3843
  flow: fcName,
3844
3844
  indicator: "explicit-key-ind",
3845
- next: key ?? sep?.[0],
3845
+ next: key ?? sep2?.[0],
3846
3846
  offset,
3847
3847
  onError,
3848
3848
  parentIndent: fc.indent,
3849
3849
  startOnNewline: false
3850
3850
  });
3851
3851
  if (!props.found) {
3852
- if (!props.anchor && !props.tag && !sep && !value) {
3852
+ if (!props.anchor && !props.tag && !sep2 && !value) {
3853
3853
  if (i === 0 && props.comma)
3854
3854
  onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
3855
3855
  else if (i < fc.items.length - 1)
@@ -3901,8 +3901,8 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
3901
3901
  }
3902
3902
  }
3903
3903
  }
3904
- if (!isMap && !sep && !props.found) {
3905
- const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep, null, props, onError);
3904
+ if (!isMap && !sep2 && !props.found) {
3905
+ const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep2, null, props, onError);
3906
3906
  coll.items.push(valueNode);
3907
3907
  offset = valueNode.range[2];
3908
3908
  if (isBlock(value))
@@ -3914,7 +3914,7 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
3914
3914
  if (isBlock(key))
3915
3915
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
3916
3916
  ctx.atKey = false;
3917
- const valueProps = resolveProps.resolveProps(sep ?? [], {
3917
+ const valueProps = resolveProps.resolveProps(sep2 ?? [], {
3918
3918
  flow: fcName,
3919
3919
  indicator: "map-value-ind",
3920
3920
  next: value,
@@ -3925,8 +3925,8 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
3925
3925
  });
3926
3926
  if (valueProps.found) {
3927
3927
  if (!isMap && !props.found && ctx.options.strict) {
3928
- if (sep)
3929
- for (const st of sep) {
3928
+ if (sep2)
3929
+ for (const st of sep2) {
3930
3930
  if (st === valueProps.found)
3931
3931
  break;
3932
3932
  if (st.type === "newline") {
@@ -3943,7 +3943,7 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
3943
3943
  else
3944
3944
  onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
3945
3945
  }
3946
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
3946
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null;
3947
3947
  if (valueNode) {
3948
3948
  if (isBlock(value))
3949
3949
  onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
@@ -4116,7 +4116,7 @@ var require_resolve_block_scalar = __commonJS2((exports) => {
4116
4116
  chompStart = i + 1;
4117
4117
  }
4118
4118
  let value = "";
4119
- let sep = "";
4119
+ let sep2 = "";
4120
4120
  let prevMoreIndented = false;
4121
4121
  for (let i = 0;i < contentStart; ++i)
4122
4122
  value += lines[i][0].slice(trimIndent) + `
@@ -4134,33 +4134,33 @@ var require_resolve_block_scalar = __commonJS2((exports) => {
4134
4134
  indent = "";
4135
4135
  }
4136
4136
  if (type === Scalar.Scalar.BLOCK_LITERAL) {
4137
- value += sep + indent.slice(trimIndent) + content;
4138
- sep = `
4137
+ value += sep2 + indent.slice(trimIndent) + content;
4138
+ sep2 = `
4139
4139
  `;
4140
4140
  } else if (indent.length > trimIndent || content[0] === "\t") {
4141
- if (sep === " ")
4142
- sep = `
4141
+ if (sep2 === " ")
4142
+ sep2 = `
4143
4143
  `;
4144
- else if (!prevMoreIndented && sep === `
4144
+ else if (!prevMoreIndented && sep2 === `
4145
4145
  `)
4146
- sep = `
4146
+ sep2 = `
4147
4147
 
4148
4148
  `;
4149
- value += sep + indent.slice(trimIndent) + content;
4150
- sep = `
4149
+ value += sep2 + indent.slice(trimIndent) + content;
4150
+ sep2 = `
4151
4151
  `;
4152
4152
  prevMoreIndented = true;
4153
4153
  } else if (content === "") {
4154
- if (sep === `
4154
+ if (sep2 === `
4155
4155
  `)
4156
4156
  value += `
4157
4157
  `;
4158
4158
  else
4159
- sep = `
4159
+ sep2 = `
4160
4160
  `;
4161
4161
  } else {
4162
- value += sep + content;
4163
- sep = " ";
4162
+ value += sep2 + content;
4163
+ sep2 = " ";
4164
4164
  prevMoreIndented = false;
4165
4165
  }
4166
4166
  }
@@ -4339,27 +4339,27 @@ var require_resolve_flow_scalar = __commonJS2((exports) => {
4339
4339
  if (!match)
4340
4340
  return source;
4341
4341
  let res = match[1];
4342
- let sep = " ";
4342
+ let sep2 = " ";
4343
4343
  let pos = first.lastIndex;
4344
4344
  line.lastIndex = pos;
4345
4345
  while (match = line.exec(source)) {
4346
4346
  if (match[1] === "") {
4347
- if (sep === `
4347
+ if (sep2 === `
4348
4348
  `)
4349
- res += sep;
4349
+ res += sep2;
4350
4350
  else
4351
- sep = `
4351
+ sep2 = `
4352
4352
  `;
4353
4353
  } else {
4354
- res += sep + match[1];
4355
- sep = " ";
4354
+ res += sep2 + match[1];
4355
+ sep2 = " ";
4356
4356
  }
4357
4357
  pos = line.lastIndex;
4358
4358
  }
4359
4359
  const last = /[ \t]*(.*)/sy;
4360
4360
  last.lastIndex = pos;
4361
4361
  match = last.exec(source);
4362
- return res + sep + (match?.[1] ?? "");
4362
+ return res + sep2 + (match?.[1] ?? "");
4363
4363
  }
4364
4364
  function doubleQuotedValue(source, onError) {
4365
4365
  let res = "";
@@ -5126,14 +5126,14 @@ var require_cst_stringify = __commonJS2((exports) => {
5126
5126
  }
5127
5127
  }
5128
5128
  }
5129
- function stringifyItem({ start, key, sep, value }) {
5129
+ function stringifyItem({ start, key, sep: sep2, value }) {
5130
5130
  let res = "";
5131
5131
  for (const st of start)
5132
5132
  res += st.source;
5133
5133
  if (key)
5134
5134
  res += stringifyToken(key);
5135
- if (sep)
5136
- for (const st of sep)
5135
+ if (sep2)
5136
+ for (const st of sep2)
5137
5137
  res += st.source;
5138
5138
  if (value)
5139
5139
  res += stringifyToken(value);
@@ -6272,18 +6272,18 @@ var require_parser = __commonJS2((exports) => {
6272
6272
  if (this.type === "map-value-ind") {
6273
6273
  const prev = getPrevProps(this.peek(2));
6274
6274
  const start = getFirstKeyStartProps(prev);
6275
- let sep;
6275
+ let sep2;
6276
6276
  if (scalar.end) {
6277
- sep = scalar.end;
6278
- sep.push(this.sourceToken);
6277
+ sep2 = scalar.end;
6278
+ sep2.push(this.sourceToken);
6279
6279
  delete scalar.end;
6280
6280
  } else
6281
- sep = [this.sourceToken];
6281
+ sep2 = [this.sourceToken];
6282
6282
  const map = {
6283
6283
  type: "block-map",
6284
6284
  offset: scalar.offset,
6285
6285
  indent: scalar.indent,
6286
- items: [{ start, key: scalar, sep }]
6286
+ items: [{ start, key: scalar, sep: sep2 }]
6287
6287
  };
6288
6288
  this.onKeyLine = true;
6289
6289
  this.stack[this.stack.length - 1] = map;
@@ -6437,15 +6437,15 @@ var require_parser = __commonJS2((exports) => {
6437
6437
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
6438
6438
  const start2 = getFirstKeyStartProps(it.start);
6439
6439
  const key = it.key;
6440
- const sep = it.sep;
6441
- sep.push(this.sourceToken);
6440
+ const sep2 = it.sep;
6441
+ sep2.push(this.sourceToken);
6442
6442
  delete it.key;
6443
6443
  delete it.sep;
6444
6444
  this.stack.push({
6445
6445
  type: "block-map",
6446
6446
  offset: this.offset,
6447
6447
  indent: this.indent,
6448
- items: [{ start: start2, key, sep }]
6448
+ items: [{ start: start2, key, sep: sep2 }]
6449
6449
  });
6450
6450
  } else if (start.length > 0) {
6451
6451
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -6639,13 +6639,13 @@ var require_parser = __commonJS2((exports) => {
6639
6639
  const prev = getPrevProps(parent);
6640
6640
  const start = getFirstKeyStartProps(prev);
6641
6641
  fixFlowSeqItems(fc);
6642
- const sep = fc.end.splice(1, fc.end.length);
6643
- sep.push(this.sourceToken);
6642
+ const sep2 = fc.end.splice(1, fc.end.length);
6643
+ sep2.push(this.sourceToken);
6644
6644
  const map = {
6645
6645
  type: "block-map",
6646
6646
  offset: fc.offset,
6647
6647
  indent: fc.indent,
6648
- items: [{ start, key: fc, sep }]
6648
+ items: [{ start, key: fc, sep: sep2 }]
6649
6649
  };
6650
6650
  this.onKeyLine = true;
6651
6651
  this.stack[this.stack.length - 1] = map;
@@ -11607,6 +11607,13 @@ function atomicWriteJson(path, data, indent = 2) {
11607
11607
  atomicWriteText(path, `${JSON.stringify(data, null, indent)}
11608
11608
  `);
11609
11609
  }
11610
+ function isJsonObject(value) {
11611
+ return typeof value === "object" && value !== null && !Array.isArray(value);
11612
+ }
11613
+ function isChildOf(candidate, parent) {
11614
+ const rel = relative(parent, candidate);
11615
+ return rel !== "" && rel !== ".." && !rel.startsWith(`..${sep}`) && !isAbsolute(rel);
11616
+ }
11610
11617
  function resolveSignetWorkspacePath(home2 = homedir()) {
11611
11618
  return resolveWorkspacePath({ home: home2, strict: true, requireExistingEnvPath: true }).path;
11612
11619
  }
@@ -15231,10 +15238,10 @@ var require_resolve_block_map2 = __commonJS((exports) => {
15231
15238
  let offset = bm.offset;
15232
15239
  let commentEnd = null;
15233
15240
  for (const collItem of bm.items) {
15234
- const { start, key, sep, value } = collItem;
15241
+ const { start, key, sep: sep2, value } = collItem;
15235
15242
  const keyProps = resolveProps.resolveProps(start, {
15236
15243
  indicator: "explicit-key-ind",
15237
- next: key ?? sep?.[0],
15244
+ next: key ?? sep2?.[0],
15238
15245
  offset,
15239
15246
  onError,
15240
15247
  parentIndent: bm.indent,
@@ -15248,7 +15255,7 @@ var require_resolve_block_map2 = __commonJS((exports) => {
15248
15255
  else if ("indent" in key && key.indent !== bm.indent)
15249
15256
  onError(offset, "BAD_INDENT", startColMsg);
15250
15257
  }
15251
- if (!keyProps.anchor && !keyProps.tag && !sep) {
15258
+ if (!keyProps.anchor && !keyProps.tag && !sep2) {
15252
15259
  commentEnd = keyProps.end;
15253
15260
  if (keyProps.comment) {
15254
15261
  if (map.comment)
@@ -15273,7 +15280,7 @@ var require_resolve_block_map2 = __commonJS((exports) => {
15273
15280
  ctx.atKey = false;
15274
15281
  if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
15275
15282
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
15276
- const valueProps = resolveProps.resolveProps(sep ?? [], {
15283
+ const valueProps = resolveProps.resolveProps(sep2 ?? [], {
15277
15284
  indicator: "map-value-ind",
15278
15285
  next: value,
15279
15286
  offset: keyNode.range[2],
@@ -15289,7 +15296,7 @@ var require_resolve_block_map2 = __commonJS((exports) => {
15289
15296
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
15290
15297
  onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
15291
15298
  }
15292
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep, null, valueProps, onError);
15299
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError);
15293
15300
  if (ctx.schema.compat)
15294
15301
  utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError);
15295
15302
  offset = valueNode.range[2];
@@ -15371,7 +15378,7 @@ var require_resolve_end2 = __commonJS((exports) => {
15371
15378
  let comment = "";
15372
15379
  if (end) {
15373
15380
  let hasSpace = false;
15374
- let sep = "";
15381
+ let sep2 = "";
15375
15382
  for (const token of end) {
15376
15383
  const { source, type } = token;
15377
15384
  switch (type) {
@@ -15385,13 +15392,13 @@ var require_resolve_end2 = __commonJS((exports) => {
15385
15392
  if (!comment)
15386
15393
  comment = cb;
15387
15394
  else
15388
- comment += sep + cb;
15389
- sep = "";
15395
+ comment += sep2 + cb;
15396
+ sep2 = "";
15390
15397
  break;
15391
15398
  }
15392
15399
  case "newline":
15393
15400
  if (comment)
15394
- sep += source;
15401
+ sep2 += source;
15395
15402
  hasSpace = true;
15396
15403
  break;
15397
15404
  default:
@@ -15429,18 +15436,18 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
15429
15436
  let offset = fc.offset + fc.start.source.length;
15430
15437
  for (let i = 0;i < fc.items.length; ++i) {
15431
15438
  const collItem = fc.items[i];
15432
- const { start, key, sep, value } = collItem;
15439
+ const { start, key, sep: sep2, value } = collItem;
15433
15440
  const props = resolveProps.resolveProps(start, {
15434
15441
  flow: fcName,
15435
15442
  indicator: "explicit-key-ind",
15436
- next: key ?? sep?.[0],
15443
+ next: key ?? sep2?.[0],
15437
15444
  offset,
15438
15445
  onError,
15439
15446
  parentIndent: fc.indent,
15440
15447
  startOnNewline: false
15441
15448
  });
15442
15449
  if (!props.found) {
15443
- if (!props.anchor && !props.tag && !sep && !value) {
15450
+ if (!props.anchor && !props.tag && !sep2 && !value) {
15444
15451
  if (i === 0 && props.comma)
15445
15452
  onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
15446
15453
  else if (i < fc.items.length - 1)
@@ -15492,8 +15499,8 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
15492
15499
  }
15493
15500
  }
15494
15501
  }
15495
- if (!isMap && !sep && !props.found) {
15496
- const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep, null, props, onError);
15502
+ if (!isMap && !sep2 && !props.found) {
15503
+ const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep2, null, props, onError);
15497
15504
  coll.items.push(valueNode);
15498
15505
  offset = valueNode.range[2];
15499
15506
  if (isBlock(value))
@@ -15505,7 +15512,7 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
15505
15512
  if (isBlock(key))
15506
15513
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
15507
15514
  ctx.atKey = false;
15508
- const valueProps = resolveProps.resolveProps(sep ?? [], {
15515
+ const valueProps = resolveProps.resolveProps(sep2 ?? [], {
15509
15516
  flow: fcName,
15510
15517
  indicator: "map-value-ind",
15511
15518
  next: value,
@@ -15516,8 +15523,8 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
15516
15523
  });
15517
15524
  if (valueProps.found) {
15518
15525
  if (!isMap && !props.found && ctx.options.strict) {
15519
- if (sep)
15520
- for (const st of sep) {
15526
+ if (sep2)
15527
+ for (const st of sep2) {
15521
15528
  if (st === valueProps.found)
15522
15529
  break;
15523
15530
  if (st.type === "newline") {
@@ -15534,7 +15541,7 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
15534
15541
  else
15535
15542
  onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
15536
15543
  }
15537
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
15544
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null;
15538
15545
  if (valueNode) {
15539
15546
  if (isBlock(value))
15540
15547
  onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
@@ -15707,7 +15714,7 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
15707
15714
  chompStart = i + 1;
15708
15715
  }
15709
15716
  let value = "";
15710
- let sep = "";
15717
+ let sep2 = "";
15711
15718
  let prevMoreIndented = false;
15712
15719
  for (let i = 0;i < contentStart; ++i)
15713
15720
  value += lines[i][0].slice(trimIndent) + `
@@ -15725,33 +15732,33 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
15725
15732
  indent = "";
15726
15733
  }
15727
15734
  if (type === Scalar.Scalar.BLOCK_LITERAL) {
15728
- value += sep + indent.slice(trimIndent) + content;
15729
- sep = `
15735
+ value += sep2 + indent.slice(trimIndent) + content;
15736
+ sep2 = `
15730
15737
  `;
15731
15738
  } else if (indent.length > trimIndent || content[0] === "\t") {
15732
- if (sep === " ")
15733
- sep = `
15739
+ if (sep2 === " ")
15740
+ sep2 = `
15734
15741
  `;
15735
- else if (!prevMoreIndented && sep === `
15742
+ else if (!prevMoreIndented && sep2 === `
15736
15743
  `)
15737
- sep = `
15744
+ sep2 = `
15738
15745
 
15739
15746
  `;
15740
- value += sep + indent.slice(trimIndent) + content;
15741
- sep = `
15747
+ value += sep2 + indent.slice(trimIndent) + content;
15748
+ sep2 = `
15742
15749
  `;
15743
15750
  prevMoreIndented = true;
15744
15751
  } else if (content === "") {
15745
- if (sep === `
15752
+ if (sep2 === `
15746
15753
  `)
15747
15754
  value += `
15748
15755
  `;
15749
15756
  else
15750
- sep = `
15757
+ sep2 = `
15751
15758
  `;
15752
15759
  } else {
15753
- value += sep + content;
15754
- sep = " ";
15760
+ value += sep2 + content;
15761
+ sep2 = " ";
15755
15762
  prevMoreIndented = false;
15756
15763
  }
15757
15764
  }
@@ -15930,27 +15937,27 @@ var require_resolve_flow_scalar2 = __commonJS((exports) => {
15930
15937
  if (!match)
15931
15938
  return source;
15932
15939
  let res = match[1];
15933
- let sep = " ";
15940
+ let sep2 = " ";
15934
15941
  let pos = first.lastIndex;
15935
15942
  line.lastIndex = pos;
15936
15943
  while (match = line.exec(source)) {
15937
15944
  if (match[1] === "") {
15938
- if (sep === `
15945
+ if (sep2 === `
15939
15946
  `)
15940
- res += sep;
15947
+ res += sep2;
15941
15948
  else
15942
- sep = `
15949
+ sep2 = `
15943
15950
  `;
15944
15951
  } else {
15945
- res += sep + match[1];
15946
- sep = " ";
15952
+ res += sep2 + match[1];
15953
+ sep2 = " ";
15947
15954
  }
15948
15955
  pos = line.lastIndex;
15949
15956
  }
15950
15957
  const last = /[ \t]*(.*)/sy;
15951
15958
  last.lastIndex = pos;
15952
15959
  match = last.exec(source);
15953
- return res + sep + (match?.[1] ?? "");
15960
+ return res + sep2 + (match?.[1] ?? "");
15954
15961
  }
15955
15962
  function doubleQuotedValue(source, onError) {
15956
15963
  let res = "";
@@ -16717,14 +16724,14 @@ var require_cst_stringify2 = __commonJS((exports) => {
16717
16724
  }
16718
16725
  }
16719
16726
  }
16720
- function stringifyItem({ start, key, sep, value }) {
16727
+ function stringifyItem({ start, key, sep: sep2, value }) {
16721
16728
  let res = "";
16722
16729
  for (const st of start)
16723
16730
  res += st.source;
16724
16731
  if (key)
16725
16732
  res += stringifyToken(key);
16726
- if (sep)
16727
- for (const st of sep)
16733
+ if (sep2)
16734
+ for (const st of sep2)
16728
16735
  res += st.source;
16729
16736
  if (value)
16730
16737
  res += stringifyToken(value);
@@ -17863,18 +17870,18 @@ var require_parser2 = __commonJS((exports) => {
17863
17870
  if (this.type === "map-value-ind") {
17864
17871
  const prev = getPrevProps(this.peek(2));
17865
17872
  const start = getFirstKeyStartProps(prev);
17866
- let sep;
17873
+ let sep2;
17867
17874
  if (scalar.end) {
17868
- sep = scalar.end;
17869
- sep.push(this.sourceToken);
17875
+ sep2 = scalar.end;
17876
+ sep2.push(this.sourceToken);
17870
17877
  delete scalar.end;
17871
17878
  } else
17872
- sep = [this.sourceToken];
17879
+ sep2 = [this.sourceToken];
17873
17880
  const map = {
17874
17881
  type: "block-map",
17875
17882
  offset: scalar.offset,
17876
17883
  indent: scalar.indent,
17877
- items: [{ start, key: scalar, sep }]
17884
+ items: [{ start, key: scalar, sep: sep2 }]
17878
17885
  };
17879
17886
  this.onKeyLine = true;
17880
17887
  this.stack[this.stack.length - 1] = map;
@@ -18028,15 +18035,15 @@ var require_parser2 = __commonJS((exports) => {
18028
18035
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
18029
18036
  const start2 = getFirstKeyStartProps(it.start);
18030
18037
  const key = it.key;
18031
- const sep = it.sep;
18032
- sep.push(this.sourceToken);
18038
+ const sep2 = it.sep;
18039
+ sep2.push(this.sourceToken);
18033
18040
  delete it.key;
18034
18041
  delete it.sep;
18035
18042
  this.stack.push({
18036
18043
  type: "block-map",
18037
18044
  offset: this.offset,
18038
18045
  indent: this.indent,
18039
- items: [{ start: start2, key, sep }]
18046
+ items: [{ start: start2, key, sep: sep2 }]
18040
18047
  });
18041
18048
  } else if (start.length > 0) {
18042
18049
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -18230,13 +18237,13 @@ var require_parser2 = __commonJS((exports) => {
18230
18237
  const prev = getPrevProps(parent);
18231
18238
  const start = getFirstKeyStartProps(prev);
18232
18239
  fixFlowSeqItems(fc);
18233
- const sep = fc.end.splice(1, fc.end.length);
18234
- sep.push(this.sourceToken);
18240
+ const sep2 = fc.end.splice(1, fc.end.length);
18241
+ sep2.push(this.sourceToken);
18235
18242
  const map = {
18236
18243
  type: "block-map",
18237
18244
  offset: fc.offset,
18238
18245
  indent: fc.indent,
18239
- items: [{ start, key: fc, sep }]
18246
+ items: [{ start, key: fc, sep: sep2 }]
18240
18247
  };
18241
18248
  this.onKeyLine = true;
18242
18249
  this.stack[this.stack.length - 1] = map;
@@ -22979,13 +22986,6 @@ function loadIdentityMode(agentsDir) {
22979
22986
  var home2 = homedir82();
22980
22987
 
22981
22988
  // src/index.ts
22982
- function isJsonObject(value) {
22983
- return typeof value === "object" && value !== null && !Array.isArray(value);
22984
- }
22985
- function isChildOf(candidate, parent) {
22986
- const prefix = resolve2(parent) + sep;
22987
- return candidate.startsWith(prefix);
22988
- }
22989
22989
  function readGeminiSettings(settingsPath) {
22990
22990
  if (!existsSync2(settingsPath))
22991
22991
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-gemini",
3
- "version": "0.163.16",
3
+ "version": "0.163.18",
4
4
  "description": "Signet connector for Gemini 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.16",
28
- "@signetai/core": "0.163.16"
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",