@substrat-run/kernel 0.126.0 → 0.128.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.
- package/dist/entity-edges.d.ts +8 -0
- package/dist/entity-edges.d.ts.map +1 -1
- package/dist/entity-edges.js +26 -12
- package/dist/entity-edges.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/invocation-log.d.ts +115 -18
- package/dist/invocation-log.d.ts.map +1 -1
- package/dist/invocation-log.js +183 -66
- package/dist/invocation-log.js.map +1 -1
- package/dist/lifecycle-flow.d.ts +41 -0
- package/dist/lifecycle-flow.d.ts.map +1 -0
- package/dist/lifecycle-flow.js +358 -0
- package/dist/lifecycle-flow.js.map +1 -0
- package/dist/platform-sweep.d.ts +12 -1
- package/dist/platform-sweep.d.ts.map +1 -1
- package/dist/platform-sweep.js +13 -3
- package/dist/platform-sweep.js.map +1 -1
- package/dist/routed-node.d.ts +12 -0
- package/dist/routed-node.d.ts.map +1 -1
- package/dist/routed-node.js +15 -6
- package/dist/routed-node.js.map +1 -1
- package/dist/scope-host.d.ts +17 -1
- package/dist/scope-host.d.ts.map +1 -1
- package/dist/scope-host.js.map +1 -1
- package/dist/scope-repoint.d.ts +33 -3
- package/dist/scope-repoint.d.ts.map +1 -1
- package/dist/scope-repoint.js +79 -6
- package/dist/scope-repoint.js.map +1 -1
- package/dist/scope-tuple-seat.d.ts +6 -2
- package/dist/scope-tuple-seat.d.ts.map +1 -1
- package/dist/scope-tuple-seat.js +10 -4
- package/dist/scope-tuple-seat.js.map +1 -1
- package/dist/spine-guard.d.ts +6 -0
- package/dist/spine-guard.d.ts.map +1 -1
- package/dist/spine-guard.js +6 -2
- package/dist/spine-guard.js.map +1 -1
- package/dist/spine-restore.d.ts +82 -0
- package/dist/spine-restore.d.ts.map +1 -0
- package/dist/spine-restore.js +138 -0
- package/dist/spine-restore.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a restore, fork or carry loads a dump's `_substrat_*` spine tables (#1883). One
|
|
3
|
+
* definition for both adapters' loaders, so the DO and the pure host build the same tables
|
|
4
|
+
* from the same dump.
|
|
5
|
+
*
|
|
6
|
+
* A dump used to be replayed table by table, `CREATE TABLE` from the dump and then its rows,
|
|
7
|
+
* spine included; the kernel's `CREATE TABLE IF NOT EXISTS` afterwards filled only the gaps.
|
|
8
|
+
* So a dump could decide the schema of the tables the permission checker reads. A dump that
|
|
9
|
+
* declared `_substrat_tuples.object` as `COLLATE NOCASE` made every `=` the checker and the
|
|
10
|
+
* spine SQL wrote on it ignore case: a grant on `aiTurn:x` answered for `aiturn:x`.
|
|
11
|
+
*
|
|
12
|
+
* Now the loader builds every spine table from its own kernel DDL, and the dump contributes
|
|
13
|
+
* rows only, inserted by column name:
|
|
14
|
+
* - a column the kernel's table does not have (a dump from a newer kernel) is added as a plain
|
|
15
|
+
* untyped column, unless it is named for SQLite's rowid (refused, since it would shadow it), with no type, collation, constraint or default, and keeps its values
|
|
16
|
+
* (`spineColumnAdditions`). It is not one the checker reads, and it carries nothing that
|
|
17
|
+
* could change how the columns the checker does read compare. When a later kernel adds the
|
|
18
|
+
* column for real, its additive ALTER meets it and tolerates it as a duplicate;
|
|
19
|
+
* - a column the dump lacks takes the kernel's default (NULL for every additive column), so
|
|
20
|
+
* a dump taken before a column existed still restores. The one column that is not additive,
|
|
21
|
+
* `_substrat_schedule_state.kind` (#1288, part of the key), is derived from the row the way
|
|
22
|
+
* the #1288 rebuild derives it;
|
|
23
|
+
* - a spine table the kernel does not build is refused (`assertSpineTablesBuilt`), every such
|
|
24
|
+
* table named at once.
|
|
25
|
+
*
|
|
26
|
+
* Tables outside the spine keep the dump's own DDL: a vertical's schema is the dump's to say.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* A kernel-owned table, which a restore builds from the kernel's DDL rather than the dump's.
|
|
30
|
+
* The prefix is the spine guard's, compared the way SQLite compares table names, without case:
|
|
31
|
+
* a dump's `_Substrat_tuples` IS the tuples table, and read as a vertical one its DDL would be
|
|
32
|
+
* replayed and the kernel's `IF NOT EXISTS` would skip its own.
|
|
33
|
+
*/
|
|
34
|
+
export declare function isSpineTable(name: string): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Refuse a dump carrying `_substrat_*` tables this host's kernel does not build, naming every
|
|
37
|
+
* one of them. Called before any spine row goes in, inside the load's transaction; `columnsOf`
|
|
38
|
+
* is the same lookup `dumpRowsInsert` takes, `undefined` for a table the kernel did not build.
|
|
39
|
+
*
|
|
40
|
+
* The usual cause is a dump from the other kind of host: a Durable Object's scope builds spine
|
|
41
|
+
* tables (`_substrat_roles`, `_substrat_tenant_tuples`, …) that a node scope keeps in its
|
|
42
|
+
* directory instead. Loading one anyway would mean dropping its rows, which a restore does not
|
|
43
|
+
* do silently.
|
|
44
|
+
*/
|
|
45
|
+
export declare function assertSpineTablesBuilt(names: readonly string[], columnsOf: KernelColumnsOf): void;
|
|
46
|
+
/** A table's columns as the kernel built it here, or `undefined` when it built no such table. */
|
|
47
|
+
export type KernelColumnsOf = (name: string) => readonly string[] | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* The `INSERT` that loads one dumped table's rows, one row of positional parameters per
|
|
50
|
+
* execution, in the dump's column order: `spineRowsInsert` for a spine table, and the dump's
|
|
51
|
+
* own columns for a vertical one. The names are quoted as given: the loader has already passed
|
|
52
|
+
* the dump through `assertReplayableDump`.
|
|
53
|
+
*/
|
|
54
|
+
export declare function dumpRowsInsert(table: {
|
|
55
|
+
name: string;
|
|
56
|
+
columns: readonly string[];
|
|
57
|
+
}, columnsOf: KernelColumnsOf): string;
|
|
58
|
+
/**
|
|
59
|
+
* The statements that add to a kernel-built spine table each column the dump carries and the
|
|
60
|
+
* kernel does not, as a plain untyped column: `ADD COLUMN "<name>"`, lowercased, and nothing after it, so it
|
|
61
|
+
* has no type, collation, constraint or default. Run after `assertSpineTablesBuilt` and before
|
|
62
|
+
* the table's rows go in, inside the load's transaction. The names are the dump's, which
|
|
63
|
+
* `assertReplayableDump` has already held to the identifier rule. Empty for a table the kernel
|
|
64
|
+
* did not build, which `assertSpineTablesBuilt` has refused.
|
|
65
|
+
*/
|
|
66
|
+
export declare function spineColumnAdditions(table: {
|
|
67
|
+
name: string;
|
|
68
|
+
columns: readonly string[];
|
|
69
|
+
}, kernelColumns: readonly string[] | undefined): string[];
|
|
70
|
+
/**
|
|
71
|
+
* The `INSERT` that loads one dumped spine table's rows into the table the kernel built.
|
|
72
|
+
*
|
|
73
|
+
* `kernelColumns` is the kernel table's column list as the loader reads it back after
|
|
74
|
+
* `spineColumnAdditions`, or `undefined` when the kernel built no such table. Either refusal
|
|
75
|
+
* below is a backstop the loader's order makes unreachable, and throws `validation_failed`
|
|
76
|
+
* inside the load's transaction, so the target keeps what it held.
|
|
77
|
+
*/
|
|
78
|
+
export declare function spineRowsInsert(table: {
|
|
79
|
+
name: string;
|
|
80
|
+
columns: readonly string[];
|
|
81
|
+
}, kernelColumns: readonly string[] | undefined): string;
|
|
82
|
+
//# sourceMappingURL=spine-restore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spine-restore.d.ts","sourceRoot":"","sources":["../src/spine-restore.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAIlD;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,SAAS,EAAE,eAAe,GAAG,IAAI,CAGjG;AAED,iGAAiG;AACjG,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;AAmB9E;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAAE,SAAS,EAAE,eAAe,GAAG,MAAM,CAEtH;AASD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EACnD,aAAa,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAC3C,MAAM,EAAE,CAkBV;AAKD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EACnD,aAAa,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAC3C,MAAM,CAyBR"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { substratError } from '@substrat-run/contracts';
|
|
2
|
+
import { SCHEDULE_STATE_KIND_OF_OP } from './platform-sweep.js';
|
|
3
|
+
import { isSearchIndexTable } from './search-index.js';
|
|
4
|
+
import { SPINE_PREFIX } from './spine-guard.js';
|
|
5
|
+
/**
|
|
6
|
+
* How a restore, fork or carry loads a dump's `_substrat_*` spine tables (#1883). One
|
|
7
|
+
* definition for both adapters' loaders, so the DO and the pure host build the same tables
|
|
8
|
+
* from the same dump.
|
|
9
|
+
*
|
|
10
|
+
* A dump used to be replayed table by table, `CREATE TABLE` from the dump and then its rows,
|
|
11
|
+
* spine included; the kernel's `CREATE TABLE IF NOT EXISTS` afterwards filled only the gaps.
|
|
12
|
+
* So a dump could decide the schema of the tables the permission checker reads. A dump that
|
|
13
|
+
* declared `_substrat_tuples.object` as `COLLATE NOCASE` made every `=` the checker and the
|
|
14
|
+
* spine SQL wrote on it ignore case: a grant on `aiTurn:x` answered for `aiturn:x`.
|
|
15
|
+
*
|
|
16
|
+
* Now the loader builds every spine table from its own kernel DDL, and the dump contributes
|
|
17
|
+
* rows only, inserted by column name:
|
|
18
|
+
* - a column the kernel's table does not have (a dump from a newer kernel) is added as a plain
|
|
19
|
+
* untyped column, unless it is named for SQLite's rowid (refused, since it would shadow it), with no type, collation, constraint or default, and keeps its values
|
|
20
|
+
* (`spineColumnAdditions`). It is not one the checker reads, and it carries nothing that
|
|
21
|
+
* could change how the columns the checker does read compare. When a later kernel adds the
|
|
22
|
+
* column for real, its additive ALTER meets it and tolerates it as a duplicate;
|
|
23
|
+
* - a column the dump lacks takes the kernel's default (NULL for every additive column), so
|
|
24
|
+
* a dump taken before a column existed still restores. The one column that is not additive,
|
|
25
|
+
* `_substrat_schedule_state.kind` (#1288, part of the key), is derived from the row the way
|
|
26
|
+
* the #1288 rebuild derives it;
|
|
27
|
+
* - a spine table the kernel does not build is refused (`assertSpineTablesBuilt`), every such
|
|
28
|
+
* table named at once.
|
|
29
|
+
*
|
|
30
|
+
* Tables outside the spine keep the dump's own DDL: a vertical's schema is the dump's to say.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* A kernel-owned table, which a restore builds from the kernel's DDL rather than the dump's.
|
|
34
|
+
* The prefix is the spine guard's, compared the way SQLite compares table names, without case:
|
|
35
|
+
* a dump's `_Substrat_tuples` IS the tuples table, and read as a vertical one its DDL would be
|
|
36
|
+
* replayed and the kernel's `IF NOT EXISTS` would skip its own.
|
|
37
|
+
*/
|
|
38
|
+
export function isSpineTable(name) {
|
|
39
|
+
const lower = name.toLowerCase();
|
|
40
|
+
// The search index is spine-prefixed too, but derived: a loader rebuilds it, never loads it.
|
|
41
|
+
return lower.startsWith(SPINE_PREFIX) && !isSearchIndexTable(lower);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Refuse a dump carrying `_substrat_*` tables this host's kernel does not build, naming every
|
|
45
|
+
* one of them. Called before any spine row goes in, inside the load's transaction; `columnsOf`
|
|
46
|
+
* is the same lookup `dumpRowsInsert` takes, `undefined` for a table the kernel did not build.
|
|
47
|
+
*
|
|
48
|
+
* The usual cause is a dump from the other kind of host: a Durable Object's scope builds spine
|
|
49
|
+
* tables (`_substrat_roles`, `_substrat_tenant_tuples`, …) that a node scope keeps in its
|
|
50
|
+
* directory instead. Loading one anyway would mean dropping its rows, which a restore does not
|
|
51
|
+
* do silently.
|
|
52
|
+
*/
|
|
53
|
+
export function assertSpineTablesBuilt(names, columnsOf) {
|
|
54
|
+
const missing = names.filter((n) => isSpineTable(n) && columnsOf(n) === undefined);
|
|
55
|
+
if (missing.length > 0)
|
|
56
|
+
throw unbuiltSpineTables(missing);
|
|
57
|
+
}
|
|
58
|
+
const unbuiltSpineTables = (names) => substratError('validation_failed', `restore refused: the dump carries spine table(s) this host's kernel does not build: ${names.join(', ')}. ` +
|
|
59
|
+
'It was exported by a different kind of host (a Durable Object scope holds spine tables a node scope ' +
|
|
60
|
+
'keeps in its directory) or by a newer kernel, and its rows would have nowhere to go. Nothing was changed.');
|
|
61
|
+
/**
|
|
62
|
+
* Columns the kernel's table requires that a dump taken before them lacks, with the
|
|
63
|
+
* expression that derives each from the dumped row. Every other spine column is additive
|
|
64
|
+
* and defaults, so it needs no entry.
|
|
65
|
+
*/
|
|
66
|
+
const DERIVED_COLUMNS = {
|
|
67
|
+
_substrat_schedule_state: { kind: SCHEDULE_STATE_KIND_OF_OP },
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* The `INSERT` that loads one dumped table's rows, one row of positional parameters per
|
|
71
|
+
* execution, in the dump's column order: `spineRowsInsert` for a spine table, and the dump's
|
|
72
|
+
* own columns for a vertical one. The names are quoted as given: the loader has already passed
|
|
73
|
+
* the dump through `assertReplayableDump`.
|
|
74
|
+
*/
|
|
75
|
+
export function dumpRowsInsert(table, columnsOf) {
|
|
76
|
+
return isSpineTable(table.name) ? spineRowsInsert(table, columnsOf(table.name)) : plainInsert(table);
|
|
77
|
+
}
|
|
78
|
+
const plainInsert = (table) => `INSERT INTO "${table.name}" (${table.columns.map((c) => `"${c}"`).join(', ')}) ` +
|
|
79
|
+
`VALUES (${table.columns.map(() => '?').join(', ')})`;
|
|
80
|
+
/** Column names as SQLite resolves them, without case. */
|
|
81
|
+
const lowered = (columns) => new Set(columns.map((c) => c.toLowerCase()));
|
|
82
|
+
/**
|
|
83
|
+
* The statements that add to a kernel-built spine table each column the dump carries and the
|
|
84
|
+
* kernel does not, as a plain untyped column: `ADD COLUMN "<name>"`, lowercased, and nothing after it, so it
|
|
85
|
+
* has no type, collation, constraint or default. Run after `assertSpineTablesBuilt` and before
|
|
86
|
+
* the table's rows go in, inside the load's transaction. The names are the dump's, which
|
|
87
|
+
* `assertReplayableDump` has already held to the identifier rule. Empty for a table the kernel
|
|
88
|
+
* did not build, which `assertSpineTablesBuilt` has refused.
|
|
89
|
+
*/
|
|
90
|
+
export function spineColumnAdditions(table, kernelColumns) {
|
|
91
|
+
if (kernelColumns === undefined)
|
|
92
|
+
return [];
|
|
93
|
+
const known = lowered(kernelColumns);
|
|
94
|
+
const unknown = table.columns.filter((c) => !known.has(c.toLowerCase()));
|
|
95
|
+
// A real column named for the rowid shadows SQLite's alias. On the outbox, `rowid` is the mark
|
|
96
|
+
// the #1705 and #1746 since-queries read (`OUTBOX_MARK_SQL`), so a dump's value would silence
|
|
97
|
+
// them from then on, and survive every later export.
|
|
98
|
+
const aliased = unknown.filter((c) => ROWID_ALIASES.has(c.toLowerCase()));
|
|
99
|
+
if (aliased.length > 0) {
|
|
100
|
+
throw substratError('validation_failed', `restore refused: the dump's ${table.name} has column(s) named for SQLite's rowid: ${aliased.join(', ')}. ` +
|
|
101
|
+
'A real column by that name would shadow the rowid the kernel reads. Nothing was changed.');
|
|
102
|
+
}
|
|
103
|
+
// Lowercased, as every kernel column is spelled: a later kernel adding the column for real
|
|
104
|
+
// then meets the name it expects, whatever case the dump used.
|
|
105
|
+
return unknown.map((c) => `ALTER TABLE "${table.name}" ADD COLUMN "${c.toLowerCase()}"`);
|
|
106
|
+
}
|
|
107
|
+
/** The names SQLite resolves to a table's rowid, unless a real column takes one. */
|
|
108
|
+
const ROWID_ALIASES = new Set(['rowid', 'oid', '_rowid_']);
|
|
109
|
+
/**
|
|
110
|
+
* The `INSERT` that loads one dumped spine table's rows into the table the kernel built.
|
|
111
|
+
*
|
|
112
|
+
* `kernelColumns` is the kernel table's column list as the loader reads it back after
|
|
113
|
+
* `spineColumnAdditions`, or `undefined` when the kernel built no such table. Either refusal
|
|
114
|
+
* below is a backstop the loader's order makes unreachable, and throws `validation_failed`
|
|
115
|
+
* inside the load's transaction, so the target keeps what it held.
|
|
116
|
+
*/
|
|
117
|
+
export function spineRowsInsert(table, kernelColumns) {
|
|
118
|
+
// `assertSpineTablesBuilt` has refused this already, naming every such table.
|
|
119
|
+
if (kernelColumns === undefined)
|
|
120
|
+
throw unbuiltSpineTables([table.name]);
|
|
121
|
+
const known = lowered(kernelColumns);
|
|
122
|
+
// `spineColumnAdditions` has added every such column already.
|
|
123
|
+
const unknown = table.columns.filter((c) => !known.has(c.toLowerCase()));
|
|
124
|
+
if (unknown.length > 0) {
|
|
125
|
+
throw substratError('validation_failed', `restore refused: the dump's ${table.name} has column(s) that were not added to this host's table: ` +
|
|
126
|
+
`${unknown.join(', ')}. Nothing was changed.`);
|
|
127
|
+
}
|
|
128
|
+
const dumped = lowered(table.columns);
|
|
129
|
+
const derived = Object.entries(DERIVED_COLUMNS[table.name.toLowerCase()] ?? {}).filter(([c]) => known.has(c) && !dumped.has(c));
|
|
130
|
+
if (derived.length === 0)
|
|
131
|
+
return plainInsert(table);
|
|
132
|
+
const quoted = table.columns.map((c) => `"${c}"`);
|
|
133
|
+
// The derivation reads the dumped row by name, so the row is a one-row SELECT to read from.
|
|
134
|
+
const row = table.columns.map((c, i) => `? AS ${quoted[i]}`).join(', ');
|
|
135
|
+
return (`INSERT INTO "${table.name}" (${[...quoted, ...derived.map(([c]) => `"${c}"`)].join(', ')}) ` +
|
|
136
|
+
`SELECT ${[...quoted, ...derived.map(([, expr]) => expr)].join(', ')} FROM (SELECT ${row})`);
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=spine-restore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spine-restore.js","sourceRoot":"","sources":["../src/spine-restore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACjC,6FAA6F;IAC7F,OAAO,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;AACtE,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAwB,EAAE,SAA0B;IACzF,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;IACnF,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC5D,CAAC;AAKD,MAAM,kBAAkB,GAAG,CAAC,KAAwB,EAAE,EAAE,CACtD,aAAa,CACX,mBAAmB,EACnB,uFAAuF,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;IACzG,sGAAsG;IACtG,2GAA2G,CAC9G,CAAC;AAEJ;;;;GAIG;AACH,MAAM,eAAe,GAA2C;IAC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
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrat-run/kernel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.128.0",
|
|
4
4
|
"description": "Substrat kernel contracts and services — pure TypeScript, no platform imports (D-14)",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@substrat-run/contracts": "^0.
|
|
25
|
+
"@substrat-run/contracts": "^0.128.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.20.4",
|