@signetai/signet-memory-openclaw 0.100.1 → 0.101.0

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.
Files changed (2) hide show
  1. package/dist/index.js +21 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1363,6 +1363,7 @@ var require_stringify = __commonJS((exports) => {
1363
1363
  nullStr: "null",
1364
1364
  simpleKeys: false,
1365
1365
  singleQuote: null,
1366
+ trailingComma: false,
1366
1367
  trueStr: "true",
1367
1368
  verifyAliasOrder: true
1368
1369
  }, doc.schema.toStringOptions, options);
@@ -1859,13 +1860,20 @@ ${indent}${line}` : `
1859
1860
  if (comment)
1860
1861
  reqNewline = true;
1861
1862
  let str = stringify.stringify(item, itemCtx, () => comment = null);
1862
- if (i < items.length - 1)
1863
+ reqNewline || (reqNewline = lines.length > linesAtValue || str.includes(`
1864
+ `));
1865
+ if (i < items.length - 1) {
1863
1866
  str += ",";
1867
+ } else if (ctx.options.trailingComma) {
1868
+ if (ctx.options.lineWidth > 0) {
1869
+ reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str.length + 2) > ctx.options.lineWidth);
1870
+ }
1871
+ if (reqNewline) {
1872
+ str += ",";
1873
+ }
1874
+ }
1864
1875
  if (comment)
1865
1876
  str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
1866
- if (!reqNewline && (lines.length > linesAtValue || str.includes(`
1867
- `)))
1868
- reqNewline = true;
1869
1877
  lines.push(str);
1870
1878
  linesAtValue = lines.length;
1871
1879
  }
@@ -4581,17 +4589,22 @@ var require_compose_node = __commonJS((exports) => {
4581
4589
  case "block-map":
4582
4590
  case "block-seq":
4583
4591
  case "flow-collection":
4584
- node = composeCollection.composeCollection(CN, ctx, token, props, onError);
4585
- if (anchor)
4586
- node.anchor = anchor.source.substring(1);
4592
+ try {
4593
+ node = composeCollection.composeCollection(CN, ctx, token, props, onError);
4594
+ if (anchor)
4595
+ node.anchor = anchor.source.substring(1);
4596
+ } catch (error) {
4597
+ const message = error instanceof Error ? error.message : String(error);
4598
+ onError(token, "RESOURCE_EXHAUSTION", message);
4599
+ }
4587
4600
  break;
4588
4601
  default: {
4589
4602
  const message = token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`;
4590
4603
  onError(token, "UNEXPECTED_TOKEN", message);
4591
- node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError);
4592
4604
  isSrcToken = false;
4593
4605
  }
4594
4606
  }
4607
+ node ?? (node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError));
4595
4608
  if (anchor && node.anchor === "")
4596
4609
  onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
4597
4610
  if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/signet-memory-openclaw",
3
- "version": "0.100.1",
3
+ "version": "0.101.0",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "@sinclair/typebox": "0.34.47"
37
37
  },
38
38
  "devDependencies": {
39
- "@signet/core": "0.100.1",
39
+ "@signet/core": "0.101.0",
40
40
  "@types/node": "^22.0.0"
41
41
  },
42
42
  "peerDependencies": {