latticesql 1.2.3 → 1.2.5

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/cli.js CHANGED
@@ -1181,10 +1181,11 @@ var RenderEngine = class {
1181
1181
  }
1182
1182
  }
1183
1183
  for (const entityRow of allRows) {
1184
- const slug = def.slug(entityRow);
1185
- if (/[^a-zA-Z0-9.\-_ @(),#&'+]/.test(slug)) {
1184
+ const rawSlug = def.slug(entityRow);
1185
+ const slug = rawSlug.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000]/g, " ").replace(/[\x00-\x1F\x7F]/g, "");
1186
+ if (/[^a-zA-Z0-9.\-_ @(),#&'+:;!~\[\]]/.test(slug)) {
1186
1187
  throw new Error(
1187
- `Invalid slug "${slug}": contains characters outside the allowed set (alphanumeric, dot, hyphen, underscore, space, @, parens, comma, #, &, ', +)`
1188
+ `Invalid slug "${slug}": contains characters outside the allowed set`
1188
1189
  );
1189
1190
  }
1190
1191
  const entityDir = def.directory ? join5(outputDir, def.directory(entityRow)) : join5(outputDir, directoryRoot, slug);
package/dist/index.cjs CHANGED
@@ -941,10 +941,11 @@ var RenderEngine = class {
941
941
  }
942
942
  }
943
943
  for (const entityRow of allRows) {
944
- const slug = def.slug(entityRow);
945
- if (/[^a-zA-Z0-9.\-_ @(),#&'+]/.test(slug)) {
944
+ const rawSlug = def.slug(entityRow);
945
+ const slug = rawSlug.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000]/g, " ").replace(/[\x00-\x1F\x7F]/g, "");
946
+ if (/[^a-zA-Z0-9.\-_ @(),#&'+:;!~\[\]]/.test(slug)) {
946
947
  throw new Error(
947
- `Invalid slug "${slug}": contains characters outside the allowed set (alphanumeric, dot, hyphen, underscore, space, @, parens, comma, #, &, ', +)`
948
+ `Invalid slug "${slug}": contains characters outside the allowed set`
948
949
  );
949
950
  }
950
951
  const entityDir = def.directory ? (0, import_node_path4.join)(outputDir, def.directory(entityRow)) : (0, import_node_path4.join)(outputDir, directoryRoot, slug);
package/dist/index.js CHANGED
@@ -873,10 +873,11 @@ var RenderEngine = class {
873
873
  }
874
874
  }
875
875
  for (const entityRow of allRows) {
876
- const slug = def.slug(entityRow);
877
- if (/[^a-zA-Z0-9.\-_ @(),#&'+]/.test(slug)) {
876
+ const rawSlug = def.slug(entityRow);
877
+ const slug = rawSlug.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000]/g, " ").replace(/[\x00-\x1F\x7F]/g, "");
878
+ if (/[^a-zA-Z0-9.\-_ @(),#&'+:;!~\[\]]/.test(slug)) {
878
879
  throw new Error(
879
- `Invalid slug "${slug}": contains characters outside the allowed set (alphanumeric, dot, hyphen, underscore, space, @, parens, comma, #, &, ', +)`
880
+ `Invalid slug "${slug}": contains characters outside the allowed set`
880
881
  );
881
882
  }
882
883
  const entityDir = def.directory ? join4(outputDir, def.directory(entityRow)) : join4(outputDir, directoryRoot, slug);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "latticesql",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "Persistent structured memory for AI agent systems — SQLite ↔ LLM context bridge",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -43,6 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "better-sqlite3": "^12.8.0",
46
+ "latticesql": "^1.2.4",
46
47
  "uuid": "^13.0.0",
47
48
  "yaml": "^2.8.3"
48
49
  },