@niscorp/prism 0.2.0 → 0.2.2

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 (43) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/DESIGN.md +2 -1
  3. package/DOCS.md +29 -0
  4. package/README.md +49 -3
  5. package/dist/agent.cjs +4 -756
  6. package/dist/agent.cjs.map +1 -1
  7. package/dist/agent.js +2 -2
  8. package/dist/chunk-26VYDHHC.cjs +784 -0
  9. package/dist/chunk-26VYDHHC.cjs.map +1 -0
  10. package/dist/{chunk-BRIXDNJQ.js → chunk-O3OJAQWA.js} +3 -3
  11. package/dist/chunk-O3OJAQWA.js.map +1 -0
  12. package/dist/chunk-V426VIRI.cjs +1168 -0
  13. package/dist/chunk-V426VIRI.cjs.map +1 -0
  14. package/dist/{chunk-3GAYBBNH.js → chunk-VC4PRB4H.js} +21 -4
  15. package/dist/chunk-VC4PRB4H.js.map +1 -0
  16. package/dist/chunk-W32JXP33.cjs +147 -0
  17. package/dist/chunk-W32JXP33.cjs.map +1 -0
  18. package/dist/{chunk-3PYQITGE.js → chunk-XRK55NPE.js} +3 -3
  19. package/dist/{chunk-3PYQITGE.js.map → chunk-XRK55NPE.js.map} +1 -1
  20. package/dist/examples/index.cjs +1543 -0
  21. package/dist/examples/index.cjs.map +1 -0
  22. package/dist/examples/index.d.cts +26 -0
  23. package/dist/examples/index.d.ts +26 -0
  24. package/dist/examples/index.js +1540 -0
  25. package/dist/examples/index.js.map +1 -0
  26. package/dist/index.cjs +190 -2048
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +5 -82
  29. package/dist/index.d.ts +5 -82
  30. package/dist/index.js +5 -5
  31. package/dist/migrations/index.cjs +7 -1775
  32. package/dist/migrations/index.cjs.map +1 -1
  33. package/dist/migrations/index.d.cts +3 -2
  34. package/dist/migrations/index.d.ts +3 -2
  35. package/dist/migrations/index.js +3 -18
  36. package/dist/migrations/index.js.map +1 -1
  37. package/dist/profiles-C6r-x-Vj.d.cts +83 -0
  38. package/dist/profiles-C6r-x-Vj.d.ts +83 -0
  39. package/dist/transform-DcVcOBzQ.d.cts +3 -0
  40. package/dist/transform-DcVcOBzQ.d.ts +3 -0
  41. package/package.json +19 -8
  42. package/dist/chunk-3GAYBBNH.js.map +0 -1
  43. package/dist/chunk-BRIXDNJQ.js.map +0 -1
@@ -1,11 +1,12 @@
1
1
  import * as zod from 'zod';
2
2
  import * as zod_v4_core from 'zod/v4/core';
3
3
  import { Sequence } from '@niscorp/strata';
4
+ export { p as prismTransform } from '../transform-DcVcOBzQ.cjs';
4
5
 
5
6
  declare const PRISM_SEQUENCE: Sequence;
6
- declare const prismTransform: (config: unknown, source: unknown) => unknown;
7
+
7
8
  declare const PRISM_SCHEMAS: {
8
9
  readonly 'nisc.prism/config': zod.ZodType<unknown, unknown, zod_v4_core.$ZodTypeInternals<unknown, unknown>>;
9
10
  };
10
11
 
11
- export { PRISM_SCHEMAS, PRISM_SEQUENCE, prismTransform };
12
+ export { PRISM_SCHEMAS, PRISM_SEQUENCE };
@@ -1,11 +1,12 @@
1
1
  import * as zod from 'zod';
2
2
  import * as zod_v4_core from 'zod/v4/core';
3
3
  import { Sequence } from '@niscorp/strata';
4
+ export { p as prismTransform } from '../transform-DcVcOBzQ.js';
4
5
 
5
6
  declare const PRISM_SEQUENCE: Sequence;
6
- declare const prismTransform: (config: unknown, source: unknown) => unknown;
7
+
7
8
  declare const PRISM_SCHEMAS: {
8
9
  readonly 'nisc.prism/config': zod.ZodType<unknown, unknown, zod_v4_core.$ZodTypeInternals<unknown, unknown>>;
9
10
  };
10
11
 
11
- export { PRISM_SCHEMAS, PRISM_SEQUENCE, prismTransform };
12
+ export { PRISM_SCHEMAS, PRISM_SEQUENCE };
@@ -1,5 +1,5 @@
1
- import { evaluate } from '../chunk-3GAYBBNH.js';
2
- import { ConfigSchema } from '../chunk-BRIXDNJQ.js';
1
+ export { prismTransform } from '../chunk-VC4PRB4H.js';
2
+ import { ConfigSchema } from '../chunk-O3OJAQWA.js';
3
3
 
4
4
  // src/migrations/index.ts
5
5
  var PRISM_SEQUENCE = {
@@ -26,23 +26,8 @@ var PRISM_SEQUENCE = {
26
26
  }
27
27
  ]
28
28
  };
29
- var isJsonValue = (value) => {
30
- if (value === null || typeof value === "string" || typeof value === "boolean") return true;
31
- if (typeof value === "number") return Number.isFinite(value);
32
- if (Array.isArray(value)) return value.every(isJsonValue);
33
- if (typeof value === "object") return Object.values(value).every(isJsonValue);
34
- return false;
35
- };
36
- var parsedConfigs = /* @__PURE__ */ new WeakMap();
37
- var prismTransform = (config, source) => {
38
- if (!isJsonValue(source)) throw new Error("A document to migrate must be plain JSON.");
39
- const cached = typeof config === "object" && config !== null ? parsedConfigs.get(config) : void 0;
40
- const parsed = cached ?? ConfigSchema.parse(config);
41
- if (cached === void 0 && typeof config === "object" && config !== null) parsedConfigs.set(config, parsed);
42
- return evaluate(parsed, source);
43
- };
44
29
  var PRISM_SCHEMAS = { "nisc.prism/config": ConfigSchema };
45
30
 
46
- export { PRISM_SCHEMAS, PRISM_SEQUENCE, prismTransform };
31
+ export { PRISM_SCHEMAS, PRISM_SEQUENCE };
47
32
  //# sourceMappingURL=index.js.map
48
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;;AAoBO,IAAM,cAAA,GAA2B;AAAA,EACtC,EAAA,EAAI,YAAA;AAAA,EACJ,SAAA,EAAW,EAAE,MAAA,EAAQ,EAAC,EAAE;AAAA,EACxB,UAAA,EAAY;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA,MAKE,WAAA,EACE,qLAAA;AAAA,MAEF,OAAO;AAAC,KACV;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAOE,WAAA,EACE,uIAAA;AAAA,MACF,OAAO;AAAC;AACV;AAEJ;AAUA,IAAM,WAAA,GAAc,CAAC,KAAA,KAAuC;AAC1D,EAAA,IAAI,KAAA,KAAU,QAAQ,OAAO,KAAA,KAAU,YAAY,OAAO,KAAA,KAAU,WAAW,OAAO,IAAA;AACtF,EAAA,IAAI,OAAO,KAAA,KAAU,QAAA,EAAU,OAAO,MAAA,CAAO,SAAS,KAAK,CAAA;AAC3D,EAAA,IAAI,MAAM,OAAA,CAAQ,KAAK,GAAG,OAAO,KAAA,CAAM,MAAM,WAAW,CAAA;AACxD,EAAA,IAAI,OAAO,UAAU,QAAA,EAAU,OAAO,OAAO,MAAA,CAAO,KAAK,CAAA,CAAE,KAAA,CAAM,WAAW,CAAA;AAC5E,EAAA,OAAO,KAAA;AACT,CAAA;AAEA,IAAM,aAAA,uBAAoB,OAAA,EAAwB;AAE3C,IAAM,cAAA,GAAiB,CAAC,MAAA,EAAiB,MAAA,KAA6B;AAC3E,EAAA,IAAI,CAAC,WAAA,CAAY,MAAM,GAAG,MAAM,IAAI,MAAM,2CAA2C,CAAA;AACrF,EAAA,MAAM,MAAA,GAAS,OAAO,MAAA,KAAW,QAAA,IAAY,WAAW,IAAA,GAAO,aAAA,CAAc,GAAA,CAAI,MAAM,CAAA,GAAI,MAAA;AAC3F,EAAA,MAAM,MAAA,GAAS,MAAA,IAAU,YAAA,CAAa,KAAA,CAAM,MAAM,CAAA;AAClD,EAAA,IAAI,MAAA,KAAW,MAAA,IAAa,OAAO,MAAA,KAAW,QAAA,IAAY,WAAW,IAAA,EAAM,aAAA,CAAc,GAAA,CAAI,MAAA,EAAQ,MAAM,CAAA;AAC3G,EAAA,OAAO,QAAA,CAAS,QAAQ,MAAM,CAAA;AAChC;AAMO,IAAM,aAAA,GAAgB,EAAE,mBAAA,EAAqB,YAAA","file":"index.js","sourcesContent":["import type { Sequence } from '@niscorp/strata';\nimport { ConfigSchema, type Config } from '../schemas/config.schema';\nimport { evaluate } from '../engine/evaluate';\nimport type { JsonValue } from '../types';\n\n// ═══════════════════════════════════════════════════════════════\n// Prism's grammar, as a strata sequence — @niscorp/prism/migrations.\n//\n// One document kind: a transform config, wherever another grammar keeps one (a\n// nova endpoint's request and response, a vex entry's mapping). It declares no\n// embeddings: a config nests ops, not documents, and a migration that has to\n// reach an op at any depth needs Prism to walk its own tree (`$walk`, strata S3).\n//\n// Version 0 is the grammar as it stood when strata arrived. The standing rule is\n// stronger than for most grammars: a Prism op is never removed or reshaped —\n// the old form stays as sugar that desugars to the new — so configs stored as\n// migrations never need migrating themselves. This sequence exists for the day\n// that rule cannot hold.\n// ═══════════════════════════════════════════════════════════════\n\nexport const PRISM_SEQUENCE: Sequence = {\n id: 'nisc.prism',\n documents: { config: {} },\n migrations: [\n {\n // A MARKER: every change here is an addition, so no stored config needs\n // rewriting — but a reader at 0 must refuse configs that use them. One\n // narrowing, checked against the corpus (no captured config uses it): the\n // five new op names are no longer accepted as plain template keys.\n description:\n 'Transform ops ($has, $renameKeys, $update, $assert, $walk); $ref \"$\" for the whole source; $join parts may be any node ' +\n 'that evaluates to an array; an op name is not a template key',\n steps: [],\n },\n {\n // A MARKER for a NARROWING, and a breaking release (approved): a `$` key\n // that is not an op was accepted as a template key and refused when it\n // was evaluated (E_NODE_SHAPE). No step rewrites one — it never evaluated\n // to anything, so there is nothing to rewrite it to. Checked against the\n // corpus: no captured config uses one. What it can break is a config\n // that kept such a key where evaluation never reached it.\n description:\n 'A template key never starts with \"$\": a `$` name that is not an op is refused by the schema, where it was refused only once evaluated',\n steps: [],\n },\n ],\n};\n\n// ── the evaluator a migration runs through ──────────────────────\n//\n// strata runs a document step through an INJECTED transform, nova's socket\n// shape `(config, source) => unknown`. This is Prism's, for every host: the\n// config is parsed once at the boundary (rule 13; the same object comes back\n// for every node it rewrites) and the source must be plain JSON.\n\n\nconst isJsonValue = (value: unknown): value is JsonValue => {\n if (value === null || typeof value === 'string' || typeof value === 'boolean') return true;\n if (typeof value === 'number') return Number.isFinite(value);\n if (Array.isArray(value)) return value.every(isJsonValue);\n if (typeof value === 'object') return Object.values(value).every(isJsonValue);\n return false;\n};\n\nconst parsedConfigs = new WeakMap<object, Config>();\n\nexport const prismTransform = (config: unknown, source: unknown): unknown => {\n if (!isJsonValue(source)) throw new Error('A document to migrate must be plain JSON.');\n const cached = typeof config === 'object' && config !== null ? parsedConfigs.get(config) : undefined;\n const parsed = cached ?? ConfigSchema.parse(config);\n if (cached === undefined && typeof config === 'object' && config !== null) parsedConfigs.set(config, parsed);\n return evaluate(parsed, source);\n};\n\n// ── the schemas behind the kinds ────────────────────────────────\n//\n// What `nisc.prism/config` means today — read by the grammar check, which\n// snapshots it and fails when it changes without a migration here.\nexport const PRISM_SCHEMAS = { 'nisc.prism/config': ConfigSchema } as const;\n"]}
1
+ {"version":3,"sources":["../../src/migrations/index.ts"],"names":[],"mappings":";;;;AAkBO,IAAM,cAAA,GAA2B;AAAA,EACtC,EAAA,EAAI,YAAA;AAAA,EACJ,SAAA,EAAW,EAAE,MAAA,EAAQ,EAAC,EAAE;AAAA,EACxB,UAAA,EAAY;AAAA,IACV;AAAA;AAAA;AAAA;AAAA;AAAA,MAKE,WAAA,EACE,qLAAA;AAAA,MAEF,OAAO;AAAC,KACV;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAOE,WAAA,EACE,uIAAA;AAAA,MACF,OAAO;AAAC;AACV;AAEJ;AAcO,IAAM,aAAA,GAAgB,EAAE,mBAAA,EAAqB,YAAA","file":"index.js","sourcesContent":["import type { Sequence } from '@niscorp/strata';\nimport { ConfigSchema } from '../schemas/config.schema';\n\n// ═══════════════════════════════════════════════════════════════\n// Prism's grammar, as a strata sequence — @niscorp/prism/migrations.\n//\n// One document kind: a transform config, wherever another grammar keeps one (a\n// nova endpoint's request and response, a vex entry's mapping). It declares no\n// embeddings: a config nests ops, not documents, and a migration that has to\n// reach an op at any depth needs Prism to walk its own tree (`$walk`, strata S3).\n//\n// Version 0 is the grammar as it stood when strata arrived. The standing rule is\n// stronger than for most grammars: a Prism op is never removed or reshaped —\n// the old form stays as sugar that desugars to the new — so configs stored as\n// migrations never need migrating themselves. This sequence exists for the day\n// that rule cannot hold.\n// ═══════════════════════════════════════════════════════════════\n\nexport const PRISM_SEQUENCE: Sequence = {\n id: 'nisc.prism',\n documents: { config: {} },\n migrations: [\n {\n // A MARKER: every change here is an addition, so no stored config needs\n // rewriting — but a reader at 0 must refuse configs that use them. One\n // narrowing, checked against the corpus (no captured config uses it): the\n // five new op names are no longer accepted as plain template keys.\n description:\n 'Transform ops ($has, $renameKeys, $update, $assert, $walk); $ref \"$\" for the whole source; $join parts may be any node ' +\n 'that evaluates to an array; an op name is not a template key',\n steps: [],\n },\n {\n // A MARKER for a NARROWING, and a breaking release (approved): a `$` key\n // that is not an op was accepted as a template key and refused when it\n // was evaluated (E_NODE_SHAPE). No step rewrites one — it never evaluated\n // to anything, so there is nothing to rewrite it to. Checked against the\n // corpus: no captured config uses one. What it can break is a config\n // that kept such a key where evaluation never reached it.\n description:\n 'A template key never starts with \"$\": a `$` name that is not an op is refused by the schema, where it was refused only once evaluated',\n steps: [],\n },\n ],\n};\n\n// ── the evaluator a migration runs through ──────────────────────\n//\n// strata runs a document step through an INJECTED transform, nova's socket\n// shape `(config, source) => unknown`. Prism in that shape is one function for\n// every host (engine/transform.ts) and the main entry exports it too; it is\n// kept here because this is where a migration's host has always found it.\nexport { prismTransform } from '../engine/transform';\n\n// ── the schemas behind the kinds ────────────────────────────────\n//\n// What `nisc.prism/config` means today — read by the grammar check, which\n// snapshots it and fails when it changes without a migration here.\nexport const PRISM_SCHEMAS = { 'nisc.prism/config': ConfigSchema } as const;\n"]}
@@ -0,0 +1,83 @@
1
+ import { z } from 'zod';
2
+
3
+ type Limits = {
4
+ maxSteps: number;
5
+ maxStringLength: number;
6
+ maxValues: number;
7
+ };
8
+ declare const DEFAULT_LIMITS: Limits;
9
+ type Budget = {
10
+ readonly limits: Limits;
11
+ steps: number;
12
+ readonly sizes: WeakMap<object, number>;
13
+ };
14
+
15
+ type JsonPrimitive = string | number | boolean | null;
16
+ type JsonValue = JsonPrimitive | JsonValue[] | JsonObject;
17
+ type JsonObject = {
18
+ [key: string]: JsonValue;
19
+ };
20
+
21
+ type EvalContext = {
22
+ readonly source: JsonValue;
23
+ readonly vars: Record<string, JsonValue>;
24
+ readonly budget?: Budget;
25
+ };
26
+ type Result<T> = {
27
+ ok: true;
28
+ data: T;
29
+ } | {
30
+ ok: false;
31
+ error: Error;
32
+ };
33
+ type CompileOptions = {
34
+ name?: string;
35
+ version?: string;
36
+ };
37
+ type OptimizationStats = {
38
+ refsInlined: number;
39
+ handlersAttached: number;
40
+ constantsFolded: number;
41
+ };
42
+ type CompiledIr = {
43
+ irVersion: 1;
44
+ compiler: {
45
+ name: string;
46
+ version: string;
47
+ };
48
+ meta: {
49
+ name?: string;
50
+ createdAt: string;
51
+ fingerprint: string;
52
+ stats: {
53
+ nodeCount: number;
54
+ opCount: Record<string, number>;
55
+ maxDepth: number;
56
+ optimizations: OptimizationStats;
57
+ };
58
+ };
59
+ tables: {
60
+ paths: string[];
61
+ strings: string[];
62
+ };
63
+ core: unknown;
64
+ };
65
+ type ValidationIssue = {
66
+ path: (string | number)[];
67
+ message: string;
68
+ };
69
+ type ValidationResult = {
70
+ ok: true;
71
+ data: unknown;
72
+ } | {
73
+ ok: false;
74
+ issues: ValidationIssue[];
75
+ };
76
+
77
+ declare const OP_KEYS: readonly ["$ref", "$const", "$var", "$get", "$with", "$map", "$filter", "$reduce", "$slice", "$flatten", "$unique", "$sortBy", "$add", "$sub", "$mul", "$div", "$round", "$fill", "$join", "$toString", "$interpolate", "$trim", "$lower", "$upper", "$split", "$replace", "$eq", "$neq", "$gt", "$gte", "$lt", "$lte", "$empty", "$startsWith", "$endsWith", "$contains", "$not", "$and", "$or", "$merge", "$coalesce", "$case", "$entriesOf", "$keyBy", "$groupBy", "$keys", "$values", "$fromEntries", "$pick", "$omit", "$type", "$length", "$date", "$dateAdd", "$dateDiff", "$localeDate", "$localeMoney", "$localeNumber", "$sum", "$avg", "$count", "$min", "$max", "$pluck", "$take", "$drop", "$match", "$flatMap", "$has", "$renameKeys", "$update", "$assert", "$walk"];
78
+ declare const NodeSchema: z.ZodType<unknown>;
79
+
80
+ type OpKey = (typeof OP_KEYS)[number];
81
+ declare const MAPPING_OPS: readonly OpKey[];
82
+
83
+ export { type CompileOptions as C, DEFAULT_LIMITS as D, type EvalContext as E, type JsonValue as J, type Limits as L, MAPPING_OPS as M, NodeSchema as N, type OpKey as O, type Result as R, type ValidationResult as V, type CompiledIr as a, type JsonObject as b, type JsonPrimitive as c, OP_KEYS as d, type OptimizationStats as e, type ValidationIssue as f };
@@ -0,0 +1,83 @@
1
+ import { z } from 'zod';
2
+
3
+ type Limits = {
4
+ maxSteps: number;
5
+ maxStringLength: number;
6
+ maxValues: number;
7
+ };
8
+ declare const DEFAULT_LIMITS: Limits;
9
+ type Budget = {
10
+ readonly limits: Limits;
11
+ steps: number;
12
+ readonly sizes: WeakMap<object, number>;
13
+ };
14
+
15
+ type JsonPrimitive = string | number | boolean | null;
16
+ type JsonValue = JsonPrimitive | JsonValue[] | JsonObject;
17
+ type JsonObject = {
18
+ [key: string]: JsonValue;
19
+ };
20
+
21
+ type EvalContext = {
22
+ readonly source: JsonValue;
23
+ readonly vars: Record<string, JsonValue>;
24
+ readonly budget?: Budget;
25
+ };
26
+ type Result<T> = {
27
+ ok: true;
28
+ data: T;
29
+ } | {
30
+ ok: false;
31
+ error: Error;
32
+ };
33
+ type CompileOptions = {
34
+ name?: string;
35
+ version?: string;
36
+ };
37
+ type OptimizationStats = {
38
+ refsInlined: number;
39
+ handlersAttached: number;
40
+ constantsFolded: number;
41
+ };
42
+ type CompiledIr = {
43
+ irVersion: 1;
44
+ compiler: {
45
+ name: string;
46
+ version: string;
47
+ };
48
+ meta: {
49
+ name?: string;
50
+ createdAt: string;
51
+ fingerprint: string;
52
+ stats: {
53
+ nodeCount: number;
54
+ opCount: Record<string, number>;
55
+ maxDepth: number;
56
+ optimizations: OptimizationStats;
57
+ };
58
+ };
59
+ tables: {
60
+ paths: string[];
61
+ strings: string[];
62
+ };
63
+ core: unknown;
64
+ };
65
+ type ValidationIssue = {
66
+ path: (string | number)[];
67
+ message: string;
68
+ };
69
+ type ValidationResult = {
70
+ ok: true;
71
+ data: unknown;
72
+ } | {
73
+ ok: false;
74
+ issues: ValidationIssue[];
75
+ };
76
+
77
+ declare const OP_KEYS: readonly ["$ref", "$const", "$var", "$get", "$with", "$map", "$filter", "$reduce", "$slice", "$flatten", "$unique", "$sortBy", "$add", "$sub", "$mul", "$div", "$round", "$fill", "$join", "$toString", "$interpolate", "$trim", "$lower", "$upper", "$split", "$replace", "$eq", "$neq", "$gt", "$gte", "$lt", "$lte", "$empty", "$startsWith", "$endsWith", "$contains", "$not", "$and", "$or", "$merge", "$coalesce", "$case", "$entriesOf", "$keyBy", "$groupBy", "$keys", "$values", "$fromEntries", "$pick", "$omit", "$type", "$length", "$date", "$dateAdd", "$dateDiff", "$localeDate", "$localeMoney", "$localeNumber", "$sum", "$avg", "$count", "$min", "$max", "$pluck", "$take", "$drop", "$match", "$flatMap", "$has", "$renameKeys", "$update", "$assert", "$walk"];
78
+ declare const NodeSchema: z.ZodType<unknown>;
79
+
80
+ type OpKey = (typeof OP_KEYS)[number];
81
+ declare const MAPPING_OPS: readonly OpKey[];
82
+
83
+ export { type CompileOptions as C, DEFAULT_LIMITS as D, type EvalContext as E, type JsonValue as J, type Limits as L, MAPPING_OPS as M, NodeSchema as N, type OpKey as O, type Result as R, type ValidationResult as V, type CompiledIr as a, type JsonObject as b, type JsonPrimitive as c, OP_KEYS as d, type OptimizationStats as e, type ValidationIssue as f };
@@ -0,0 +1,3 @@
1
+ declare const prismTransform: (config: unknown, source: unknown) => unknown;
2
+
3
+ export { prismTransform as p };
@@ -0,0 +1,3 @@
1
+ declare const prismTransform: (config: unknown, source: unknown) => unknown;
2
+
3
+ export { prismTransform as p };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niscorp/prism",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Pure JSON transformation DSL with compilation and zero code execution",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -38,7 +38,18 @@
38
38
  "types": "./dist/migrations/index.d.cts",
39
39
  "default": "./dist/migrations/index.cjs"
40
40
  }
41
- }
41
+ },
42
+ "./examples": {
43
+ "import": {
44
+ "types": "./dist/examples/index.d.ts",
45
+ "default": "./dist/examples/index.js"
46
+ },
47
+ "require": {
48
+ "types": "./dist/examples/index.d.cts",
49
+ "default": "./dist/examples/index.cjs"
50
+ }
51
+ },
52
+ "./package.json": "./package.json"
42
53
  },
43
54
  "publishConfig": {
44
55
  "access": "public"
@@ -77,9 +88,9 @@
77
88
  },
78
89
  "peerDependencies": {
79
90
  "zod": "^4.2.0",
80
- "@niscorp/signal": "^0.1.1",
81
- "@niscorp/cortex": "^0.1.1",
82
- "@niscorp/strata": "^0.1.1"
91
+ "@niscorp/cortex": "^0.1.3",
92
+ "@niscorp/signal": "^0.1.3",
93
+ "@niscorp/strata": "^0.1.4"
83
94
  },
84
95
  "peerDependenciesMeta": {
85
96
  "@niscorp/cortex": {
@@ -93,9 +104,9 @@
93
104
  "tsup": "^8.5.1",
94
105
  "vitest": "^4.1.2",
95
106
  "zod": "^4.6.5",
96
- "@niscorp/strata": "^0.1.1",
97
- "@niscorp/signal": "^0.1.1",
98
- "@niscorp/cortex": "^0.1.1"
107
+ "@niscorp/strata": "^0.1.4",
108
+ "@niscorp/signal": "^0.1.3",
109
+ "@niscorp/cortex": "^0.1.3"
99
110
  },
100
111
  "scripts": {
101
112
  "build": "tsup",