@mnmal-ai/substrate 1.0.0-alpha.15 → 1.0.0-alpha.17
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/README.md +3 -2
- package/dist/{boot-store-CvQabBdk.js → boot-store-DNU0UfX7.js} +19 -66
- package/dist/{bridge-CvZGzNIO.d.ts → bridge-5VHZiH9o.d.ts} +1 -1
- package/dist/{cli-6evrDG1o.js → cli-CwWUYUMv.js} +71 -13
- package/dist/client.d.ts +3 -3
- package/dist/client.js +3 -3
- package/dist/{errors-BXxm9eZF.d.ts → errors-DHgT7Fa8.d.ts} +8 -2
- package/dist/{index-EN-nQsX8.d.ts → index-DKJXQ031.d.ts} +1 -1
- package/dist/{node-version-C5FSmwJX.js → node-version-CxqcqECU.js} +1 -1
- package/dist/pack.d.ts +18 -2
- package/dist/pack.js +2 -2
- package/dist/{pg-edges-store-DHbpr8QY.js → pg-edges-store-CSJ7sG2l.js} +1 -1
- package/dist/{plugin-Dpa_Y7Ep.js → plugin-Dk9RC3LH.js} +2 -2
- package/dist/proposals-bootstrap.js +2 -2
- package/dist/proposals.d.ts +5 -3
- package/dist/proposals.js +1 -1
- package/dist/recall-bootstrap.js +2 -2
- package/dist/recall.d.ts +1 -1
- package/dist/recall.js +2 -2
- package/dist/{repl-DWXNLUyd.js → repl-BNnKFG3y.js} +1 -1
- package/dist/{row-Dh57ShWL.d.ts → row-DHxnCnhA.d.ts} +10 -8
- package/dist/{run-BTdS6Z6i.js → run-NmwNmVUD.js} +142 -106
- package/dist/{schema-B--_bHjn.d.ts → schema-B5WBO8yh.d.ts} +79 -19
- package/dist/sdk.d.ts +48 -6
- package/dist/sdk.js +4 -4
- package/dist/{src-EqhJm93D.js → src-7lp1y4HK.js} +3 -3
- package/dist/{src-BMHI_rTJ.js → src-BHh6UZ7L.js} +2141 -493
- package/dist/{src-DWqzrm3O.js → src-CdbUzLhB.js} +209 -36
- package/dist/{src-Bi3NhEsT.js → src-DR_hUj2p.js} +1 -1
- package/dist/{src-CHND7-Pm.js → src-DV6PcXym.js} +2 -2
- package/dist/{src-CZQ25H4i.js → src-DWrFdHrY.js} +1018 -252
- package/dist/{src-B4sqnLRy.js → src-DwynOVMk.js} +77 -28
- package/dist/substrate-admin.js +2 -2
- package/dist/substrate.js +2 -2
- package/dist/testing.d.ts +5 -3
- package/dist/testing.js +4 -4
- package/dist/{ws-CpHWxwp9.d.ts → ws-BL9nSELO.d.ts} +2 -2
- package/package.json +23 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
import { s as requireCapability } from "./src-
|
|
4
|
-
import "./src-
|
|
2
|
+
import { $ as publishSchema, D as RESERVED_AUTOCRUD_FIELDS, I as installAutoCrud, It as JSON_HEADERS, J as resolveIdentity, Ln as canonicalize$1, M as field, O as RESERVED_AUTOCRUD_FIELD_NAMES, P as autoCrudOptionsOf, b as assertOrderedBy, d as uuidFromName, f as emitFieldEvents, j as reservedMetadataFieldMessage, l as planServesShape, p as migrateFieldValues, vn as ResolverFrameError, x as defineNamespace, y as assertIndexDecl } from "./src-BHh6UZ7L.js";
|
|
3
|
+
import { s as requireCapability } from "./src-DR_hUj2p.js";
|
|
4
|
+
import "./src-CdbUzLhB.js";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
|
|
7
7
|
//#region ../../plugins/substrate-proposals/src/capability.ts
|
|
@@ -175,6 +175,9 @@ function crossRefsIn(spec) {
|
|
|
175
175
|
const SCALAR_TYPES = /* @__PURE__ */ new Set([
|
|
176
176
|
"string",
|
|
177
177
|
"number",
|
|
178
|
+
"int16",
|
|
179
|
+
"int32",
|
|
180
|
+
"int64",
|
|
178
181
|
"boolean",
|
|
179
182
|
"date",
|
|
180
183
|
"json"
|
|
@@ -296,6 +299,11 @@ function stringifyFieldDef(def) {
|
|
|
296
299
|
*/
|
|
297
300
|
function assertValidFieldSpec(fieldName, spec) {
|
|
298
301
|
assertProposableName("fieldName", fieldName);
|
|
302
|
+
const reserved = reservedMetadataFieldMessage(fieldName);
|
|
303
|
+
if (reserved !== void 0) throw new ProposalError("invalid_params", reserved, {
|
|
304
|
+
param: "fieldName",
|
|
305
|
+
fieldName
|
|
306
|
+
});
|
|
299
307
|
if (typeof spec !== "object" || spec === null) throw new ProposalError("invalid_field_spec", `Spec for field '${fieldName}' must be an object`, { fieldName });
|
|
300
308
|
try {
|
|
301
309
|
parseFieldSpec(spec);
|
|
@@ -905,12 +913,32 @@ function claimForRollback(deps, ns, engine, args) {
|
|
|
905
913
|
|
|
906
914
|
//#endregion
|
|
907
915
|
//#region ../../plugins/substrate-proposals/src/multi-instance.ts
|
|
916
|
+
/** Why a stored field proposal is skipped when replay skipped its type. */
|
|
917
|
+
function typeSkipped(row) {
|
|
918
|
+
const type = String(row.targetType);
|
|
919
|
+
const field = String(row.fieldName);
|
|
920
|
+
return new ProposalError("unknown_type", `type '${type}' was skipped at replay, so its field '${field}' is not added`, {
|
|
921
|
+
typeName: type,
|
|
922
|
+
fieldName: field,
|
|
923
|
+
typeSkipped: true
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* The warning line for a stored proposal skipped because it names a field reserved for
|
|
928
|
+
* server metadata, or because its type was skipped; undefined for any other reason.
|
|
929
|
+
*/
|
|
930
|
+
function reservedSkipLine(namespace, row, err) {
|
|
931
|
+
if (err instanceof ProposalError && err.details.typeSkipped === true) return `substrate-proposals: ${namespace}/${String(row.targetType)}: field '${String(row.fieldName)}' is not added, because its type was skipped`;
|
|
932
|
+
if (!(err instanceof ProposalError) || !err.message.includes("reserved for server metadata")) return;
|
|
933
|
+
return `substrate-proposals: ${namespace}/${String(row.typeName ?? row.targetType)}: field '${String(err.details.fieldName ?? row.fieldName)}' is reserved for server metadata; ${row.typeName !== void 0 ? "the type is not registered" : "the field is not added"}`;
|
|
934
|
+
}
|
|
908
935
|
async function setupNamespaceListener(args) {
|
|
909
936
|
await args.pubsub.listen(args.channel, async (payload) => {
|
|
910
937
|
await applyProposalFromNotification({
|
|
911
938
|
namespace: args.namespace,
|
|
912
939
|
proposalId: payload,
|
|
913
|
-
registryStore: args.registryStore
|
|
940
|
+
registryStore: args.registryStore,
|
|
941
|
+
...args.onSkip !== void 0 ? { onSkip: args.onSkip } : {}
|
|
914
942
|
}).catch(() => {});
|
|
915
943
|
});
|
|
916
944
|
}
|
|
@@ -920,28 +948,32 @@ async function applyProposalFromNotification(args) {
|
|
|
920
948
|
if (typeHit.rows.length > 0) {
|
|
921
949
|
const row = typeHit.rows[0];
|
|
922
950
|
if (row.applied !== true) return;
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
951
|
+
try {
|
|
952
|
+
const typeName = row.typeName;
|
|
953
|
+
let changed = false;
|
|
954
|
+
if (!binding.registry.get(typeName)) {
|
|
955
|
+
const fields = JSON.parse(row.fieldsJson);
|
|
956
|
+
applyTypeProposal({
|
|
957
|
+
namespace: args.namespace,
|
|
958
|
+
typeName,
|
|
959
|
+
fields,
|
|
960
|
+
registryStore: args.registryStore,
|
|
961
|
+
dataset: binding.dataset,
|
|
962
|
+
edges: binding.edges
|
|
963
|
+
});
|
|
964
|
+
changed = true;
|
|
965
|
+
}
|
|
966
|
+
changed = replayTypeIndexOptions(args.registryStore, args.namespace, row) || changed;
|
|
967
|
+
if (changed) ensureStorageAfterCommit(void 0, binding.dataset, typeName, binding.engine, args.registryStore.storage);
|
|
968
|
+
} catch (err) {
|
|
969
|
+
args.onSkip?.(row, err);
|
|
936
970
|
}
|
|
937
|
-
changed = replayTypeIndexOptions(args.registryStore, args.namespace, row) || changed;
|
|
938
|
-
if (changed) ensureStorageAfterCommit(void 0, binding.dataset, typeName, binding.engine, args.registryStore.storage);
|
|
939
971
|
return;
|
|
940
972
|
}
|
|
941
973
|
const fieldHit = await binding.dataset.read("FieldProposal", { id: args.proposalId });
|
|
942
974
|
if (fieldHit.rows.length > 0) {
|
|
943
975
|
const row = fieldHit.rows[0];
|
|
944
|
-
if (row.applied === true) {
|
|
976
|
+
if (row.applied === true) try {
|
|
945
977
|
const entry = binding.registry.get(row.targetType);
|
|
946
978
|
if (entry && fieldNeedsReplay(entry, row)) {
|
|
947
979
|
const fieldSpec = JSON.parse(row.fieldSpecJson);
|
|
@@ -956,6 +988,8 @@ async function applyProposalFromNotification(args) {
|
|
|
956
988
|
});
|
|
957
989
|
ensureStorageAfterCommit(void 0, binding.dataset, row.targetType, binding.engine, args.registryStore.storage);
|
|
958
990
|
}
|
|
991
|
+
} catch (err) {
|
|
992
|
+
args.onSkip?.(row, err);
|
|
959
993
|
}
|
|
960
994
|
}
|
|
961
995
|
}
|
|
@@ -999,6 +1033,7 @@ async function reconcileNamespace(args) {
|
|
|
999
1033
|
limit: 1e4
|
|
1000
1034
|
});
|
|
1001
1035
|
const prepare = /* @__PURE__ */ new Set();
|
|
1036
|
+
const skippedTypes = /* @__PURE__ */ new Set();
|
|
1002
1037
|
for (const row of typeRows.rows) {
|
|
1003
1038
|
if (binding.registry.get(row.typeName)) continue;
|
|
1004
1039
|
try {
|
|
@@ -1013,6 +1048,7 @@ async function reconcileNamespace(args) {
|
|
|
1013
1048
|
});
|
|
1014
1049
|
} catch (err) {
|
|
1015
1050
|
args.onSkip?.(row, err);
|
|
1051
|
+
skippedTypes.add(row.typeName);
|
|
1016
1052
|
continue;
|
|
1017
1053
|
}
|
|
1018
1054
|
prepare.add(row.typeName);
|
|
@@ -1028,6 +1064,10 @@ async function reconcileNamespace(args) {
|
|
|
1028
1064
|
});
|
|
1029
1065
|
for (const row of fieldRows.rows) {
|
|
1030
1066
|
const entry = binding.registry.get(row.targetType);
|
|
1067
|
+
if (!entry && skippedTypes.has(row.targetType)) {
|
|
1068
|
+
args.onSkip?.(row, typeSkipped(row));
|
|
1069
|
+
continue;
|
|
1070
|
+
}
|
|
1031
1071
|
if (!entry || !fieldNeedsReplay(entry, row)) continue;
|
|
1032
1072
|
try {
|
|
1033
1073
|
const fieldSpec = JSON.parse(row.fieldSpecJson);
|
|
@@ -1380,8 +1420,8 @@ function buildOnboardBody(ownedNamespaces) {
|
|
|
1380
1420
|
description: "Narrow wire format mirroring the autoCRUD-expressible subset of FieldDef. Only these four shapes are accepted. Anything more expressive needs code + PR.",
|
|
1381
1421
|
variants: {
|
|
1382
1422
|
scalar: {
|
|
1383
|
-
shape: "{ kind: \"scalar\", type: \"string\"|\"number\"|\"boolean\"|\"date\"|\"json\", indexed?: bool, nullable?: bool }",
|
|
1384
|
-
notes: "indexed is unset by default (no index; crossRef defaults to indexed: true). No field needs an index to filter, and non-json scalars sort without one, so set indexed: true only where a read needs the speed. indexed: false also marks a field as not a search handle (long-form prose). json filters by path only and never sorts. readonly is reserved for engine-managed fields. Use type:\"json\" for arbitrary nested blobs you do not need to filter on (audit details, free-form metadata). Use kind:\"struct\" instead when you have a known nested shape and want per-field where-clause support."
|
|
1423
|
+
shape: "{ kind: \"scalar\", type: \"string\"|\"number\"|\"int16\"|\"int32\"|\"int64\"|\"boolean\"|\"date\"|\"json\", indexed?: bool, nullable?: bool }",
|
|
1424
|
+
notes: "indexed is unset by default (no index; crossRef defaults to indexed: true). No field needs an index to filter, and non-json scalars sort without one, so set indexed: true only where a read needs the speed. indexed: false also marks a field as not a search handle (long-form prose). json filters by path only and never sorts. readonly is reserved for engine-managed fields. Integers: pick the narrowest of int16 (-32768..32767), int32 (about ±2.1e9) or int64 (about ±9.2e18; a decimal string on the wire past 2^53) that holds every value the field will ever take, since a field's type cannot change once it has rows; when unsure, go one wider. Use number for fractional values. Use type:\"json\" for arbitrary nested blobs you do not need to filter on (audit details, free-form metadata). Use kind:\"struct\" instead when you have a known nested shape and want per-field where-clause support."
|
|
1385
1425
|
},
|
|
1386
1426
|
crossRef: {
|
|
1387
1427
|
shape: "{ kind: \"crossRef\", ns: string, type: string, onDelete?: \"set_null\"|\"cascade\"|\"restrict\"|\"orphan\", indexed?: bool, nullable?: bool }",
|
|
@@ -2375,6 +2415,18 @@ function createProposalsPlugin(config) {
|
|
|
2375
2415
|
registryStore.setInvalidator(CONTROL_NAMESPACE, () => ctx.engine.invalidateSchemaCaches(CONTROL_NAMESPACE));
|
|
2376
2416
|
registryStore.setEngine(CONTROL_NAMESPACE, ctx.engine);
|
|
2377
2417
|
if (config.datasetFor === void 0) lookupDataset = (ns) => ctx.engine.datasetFor(ns);
|
|
2418
|
+
const log = config.log ?? ((line) => console.warn(line));
|
|
2419
|
+
const skipped = (ns, row, err) => {
|
|
2420
|
+
ctx.metric("_system_proposals.replay_skipped", {
|
|
2421
|
+
namespace: ns,
|
|
2422
|
+
id: row.id,
|
|
2423
|
+
type: row.typeName ?? row.targetType,
|
|
2424
|
+
field: row.fieldName ?? null,
|
|
2425
|
+
error: err instanceof Error ? err.message : String(err)
|
|
2426
|
+
});
|
|
2427
|
+
const line = reservedSkipLine(ns, row, err);
|
|
2428
|
+
if (line !== void 0) log(line);
|
|
2429
|
+
};
|
|
2378
2430
|
const controlBinding = registryStore.getBinding(CONTROL_NAMESPACE);
|
|
2379
2431
|
const hotAddedNamespaces = await reconcileClusterNamespaces({
|
|
2380
2432
|
controlNamespace: CONTROL_NAMESPACE,
|
|
@@ -2398,17 +2450,14 @@ function createProposalsPlugin(config) {
|
|
|
2398
2450
|
await reconcileNamespace({
|
|
2399
2451
|
namespace: ns,
|
|
2400
2452
|
registryStore,
|
|
2401
|
-
onSkip: (row, err) =>
|
|
2402
|
-
namespace: ns,
|
|
2403
|
-
id: row.id,
|
|
2404
|
-
error: err instanceof Error ? err.message : String(err)
|
|
2405
|
-
})
|
|
2453
|
+
onSkip: (row, err) => skipped(ns, row, err)
|
|
2406
2454
|
});
|
|
2407
2455
|
await setupNamespaceListener({
|
|
2408
2456
|
namespace: ns,
|
|
2409
2457
|
channel: `_substrate_proposals_${ns}`,
|
|
2410
2458
|
pubsub: config.pubsub,
|
|
2411
|
-
registryStore
|
|
2459
|
+
registryStore,
|
|
2460
|
+
onSkip: (row, err) => skipped(ns, row, err)
|
|
2412
2461
|
});
|
|
2413
2462
|
ctx.metric("_system_proposals.namespace_ready", { namespace: ns });
|
|
2414
2463
|
}
|
package/dist/substrate-admin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
3
|
-
import { t as assertNodeVersion } from "./node-version-
|
|
3
|
+
import { t as assertNodeVersion } from "./node-version-CxqcqECU.js";
|
|
4
4
|
import { realpathSync } from "node:fs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
@@ -37,7 +37,7 @@ function isEntrypointPath(moduleUrl, argv1) {
|
|
|
37
37
|
*/
|
|
38
38
|
if (isEntrypointPath(import.meta.url, process.argv[1])) {
|
|
39
39
|
assertNodeVersion();
|
|
40
|
-
import("./run-
|
|
40
|
+
import("./run-NmwNmVUD.js").then(({ runAdminCli }) => runAdminCli());
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
//#endregion
|
package/dist/substrate.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
3
|
-
import { t as assertNodeVersion } from "./node-version-
|
|
3
|
+
import { t as assertNodeVersion } from "./node-version-CxqcqECU.js";
|
|
4
4
|
|
|
5
5
|
//#region src/bin/substrate.ts
|
|
6
6
|
assertNodeVersion();
|
|
7
|
-
import("./cli-
|
|
7
|
+
import("./cli-CwWUYUMv.js").then(({ runCli }) => runCli(process.argv.slice(2))).then((code) => process.exit(code));
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
10
|
export { };
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as WsResponseFrame, f as IdempotencyStore, l as SweepDeps, s as BridgeRegistry, u as SweepState } from "./ws-
|
|
1
|
+
import { $t as TypeStorageReport, An as EdgesStore, Bt as FilterWriteResult, Ct as ResolverArgs, Dn as EdgePatch, Dt as WriteEvent, E as EngineInput, En as Edge, G as Registry$1, Gt as PoolStats, Hn as WriteRow, Ht as IndexPlan, In as Id, J as RegistryEntryInput, Jt as ReadResult, K as RegistryBase, Kt as PromotionEvent, L as NamespaceConfig, Lt as FilterCapabilities, Mt as DatasetRegistry, Nn as ActorIdentity, Nt as DeleteResult, On as EdgeRef, P as KernelPlugin, Pt as DropResult, Rt as FilterWriteLimits, S as DropParticipant, T as EngineHandle, Tn as CanDeleteResult, W as QualifiedFrame, Xt as StorageReport, Z as ScheduledTask, Zt as TxScopeHandles, at as RequestObserver, b as CommittedWritesHook, bt as PolicyProbeContext, cn as WriteResult, ct as SubstrateRequest, d as OrderedBy, dn as ResolverStat, en as UpdateFieldRef, f as PackEnvelope, ft as WsConnection, gn as TypeStats, gt as Identity, hn as SlowRequest, i as FieldDef, jt as Dataset, k as IndexDecl, kn as EdgeWriteInput, kt as ConditionalUpdateResult, ln as ProcessStat, lt as SubstrateResponse, m as Schema, nt as HttpMethod, on as WhereClause, ot as RuntimeOp, pn as RuntimeErrors, pt as WsHandler, q as RegistryEntry, qt as ReadParams, rt as PluginRouter, sn as WriteOptions, st as StartOpts, tt as HttpHandler, un as ResolveObservation, ut as SubstrateServer, x as CoordinatorPlugin, xt as RequestContext, yt as PolicyDecision, zn as Row, zt as FilterWriteOptions } from "./schema-B5WBO8yh.js";
|
|
2
|
+
import { a as WsResponseFrame, f as IdempotencyStore, l as SweepDeps, s as BridgeRegistry, u as SweepState } from "./ws-BL9nSELO.js";
|
|
3
3
|
import { t as Embedder } from "./types-8c0gtnd2.js";
|
|
4
4
|
import { Sql, TransactionSql } from "postgres";
|
|
5
5
|
//#region ../../packages/substrate-compose/src/auth.d.ts
|
|
@@ -1175,7 +1175,7 @@ export declare function compose(opts: ComposeOpts): Promise<ComposeResult>;
|
|
|
1175
1175
|
type PgHandle = Sql | TransactionSql;
|
|
1176
1176
|
//#endregion
|
|
1177
1177
|
//#region ../../packages/substrate-dataset-pg/src/type-table.d.ts
|
|
1178
|
-
type ColumnKind = 'text' | 'enum' | 'number' | 'date' | 'boolean' | 'crossRef';
|
|
1178
|
+
type ColumnKind = 'text' | 'enum' | 'number' | 'int16' | 'int32' | 'int64' | 'date' | 'boolean' | 'crossRef';
|
|
1179
1179
|
interface TypedColumn {
|
|
1180
1180
|
field: string;
|
|
1181
1181
|
column: string;
|
|
@@ -1648,6 +1648,8 @@ export declare class PgDataset implements Dataset {
|
|
|
1648
1648
|
retryConflicts?: boolean;
|
|
1649
1649
|
noWriters?: boolean;
|
|
1650
1650
|
}): Promise<PromotionEvent[]>;
|
|
1651
|
+
/** See `Dataset.poolStats`. Read on the root dataset; outside a transaction `#sql` is the pool. */
|
|
1652
|
+
poolStats(): PoolStats;
|
|
1651
1653
|
/**
|
|
1652
1654
|
* See `Dataset.fieldWarnings`. Store-wide; none before the store is migrated. Counts
|
|
1653
1655
|
* only, since `/health` shows it unauthenticated: the named lines are in
|
package/dist/testing.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
import "./src-
|
|
4
|
-
import {
|
|
5
|
-
import { t as PgEdgesStore } from "./pg-edges-store-
|
|
2
|
+
import { Ht as signHs256, Q as loadPlugins, Wt as WS_REASON_SERVER_RESTART, Z as MemoryEdgesStore, c as MemoryDataset, s as compose } from "./src-BHh6UZ7L.js";
|
|
3
|
+
import "./src-CdbUzLhB.js";
|
|
4
|
+
import { h as deriveListIndexMigration, n as PgDataset, v as runDerivedMigrations, y as runMigrations } from "./src-DWrFdHrY.js";
|
|
5
|
+
import { t as PgEdgesStore } from "./pg-edges-store-CSJ7sG2l.js";
|
|
6
6
|
import { t as FakeEmbedder } from "./fake-DUVtKVSE.js";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
import postgres from "postgres";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as BridgeClient } from "./bridge-
|
|
1
|
+
import { An as EdgesStore, In as Id, Mt as DatasetRegistry, On as EdgeRef, f as PackEnvelope, l as FieldInput } from "./schema-B5WBO8yh.js";
|
|
2
|
+
import { t as BridgeClient } from "./bridge-5VHZiH9o.js";
|
|
3
3
|
//#region ../../packages/substrate-types/src/idempotency.d.ts
|
|
4
4
|
interface IdempotencyStore {
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mnmal-ai/substrate",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.17",
|
|
4
4
|
"description": "Substrate — an agent-first typed-data server: the substrate and substrate-admin binaries, the built-in plugins and the SDK subpaths.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -29,32 +29,32 @@
|
|
|
29
29
|
"@preact/signals-core": "^1.14.4",
|
|
30
30
|
"fastify": "^5.12.5",
|
|
31
31
|
"msgpackr": "^2.1.0",
|
|
32
|
-
"postgres": "
|
|
32
|
+
"postgres": "4.1.0",
|
|
33
33
|
"semver": "^7.8.5",
|
|
34
34
|
"ws": "^8.22.0",
|
|
35
|
-
"zod": "^4.6.
|
|
35
|
+
"zod": "^4.6.7"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@inquirer/prompts": "^8.7.2",
|
|
39
|
-
"@mnmal-ai/substrate-bootstrap": "1.0.0-alpha.
|
|
40
|
-
"@mnmal-ai/substrate-client": "1.0.0-alpha.
|
|
41
|
-
"@mnmal-ai/substrate-compose": "1.0.0-alpha.
|
|
42
|
-
"@mnmal-ai/substrate-config": "1.0.0-alpha.
|
|
43
|
-
"@mnmal-ai/substrate-core": "1.0.0-alpha.
|
|
44
|
-
"@mnmal-ai/substrate-dataset-memory": "1.0.0-alpha.
|
|
45
|
-
"@mnmal-ai/substrate-dataset-pg": "1.0.0-alpha.
|
|
46
|
-
"@mnmal-ai/substrate-embedder": "1.0.0-alpha.
|
|
47
|
-
"@mnmal-ai/substrate-filter": "1.0.0-alpha.
|
|
48
|
-
"@mnmal-ai/substrate-pack": "1.0.0-alpha.
|
|
49
|
-
"@mnmal-ai/substrate-policy": "1.0.0-alpha.
|
|
50
|
-
"@mnmal-ai/substrate-proposals": "1.0.0-alpha.
|
|
51
|
-
"@mnmal-ai/substrate-recall": "1.0.0-alpha.
|
|
52
|
-
"@mnmal-ai/substrate-sdk": "1.0.0-alpha.
|
|
53
|
-
"@mnmal-ai/substrate-sentinel-client": "1.0.0-alpha.
|
|
54
|
-
"@mnmal-ai/substrate-server-fastify": "1.0.0-alpha.
|
|
55
|
-
"@mnmal-ai/substrate-server-memory": "1.0.0-alpha.
|
|
56
|
-
"@mnmal-ai/substrate-types": "1.0.0-alpha.
|
|
57
|
-
"@mnmal-ai/surface-core": "0.
|
|
39
|
+
"@mnmal-ai/substrate-bootstrap": "1.0.0-alpha.17",
|
|
40
|
+
"@mnmal-ai/substrate-client": "1.0.0-alpha.17",
|
|
41
|
+
"@mnmal-ai/substrate-compose": "1.0.0-alpha.17",
|
|
42
|
+
"@mnmal-ai/substrate-config": "1.0.0-alpha.17",
|
|
43
|
+
"@mnmal-ai/substrate-core": "1.0.0-alpha.17",
|
|
44
|
+
"@mnmal-ai/substrate-dataset-memory": "1.0.0-alpha.17",
|
|
45
|
+
"@mnmal-ai/substrate-dataset-pg": "1.0.0-alpha.17",
|
|
46
|
+
"@mnmal-ai/substrate-embedder": "1.0.0-alpha.17",
|
|
47
|
+
"@mnmal-ai/substrate-filter": "1.0.0-alpha.17",
|
|
48
|
+
"@mnmal-ai/substrate-pack": "1.0.0-alpha.17",
|
|
49
|
+
"@mnmal-ai/substrate-policy": "1.0.0-alpha.17",
|
|
50
|
+
"@mnmal-ai/substrate-proposals": "1.0.0-alpha.17",
|
|
51
|
+
"@mnmal-ai/substrate-recall": "1.0.0-alpha.17",
|
|
52
|
+
"@mnmal-ai/substrate-sdk": "1.0.0-alpha.17",
|
|
53
|
+
"@mnmal-ai/substrate-sentinel-client": "1.0.0-alpha.17",
|
|
54
|
+
"@mnmal-ai/substrate-server-fastify": "1.0.0-alpha.17",
|
|
55
|
+
"@mnmal-ai/substrate-server-memory": "1.0.0-alpha.17",
|
|
56
|
+
"@mnmal-ai/substrate-types": "1.0.0-alpha.17",
|
|
57
|
+
"@mnmal-ai/surface-core": "0.17.1",
|
|
58
58
|
"@types/node": "^26.6.4",
|
|
59
59
|
"@types/semver": "^7.5.0",
|
|
60
60
|
"@types/ws": "^8.18.1",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"vitest": "^5.0.3"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
|
-
"node": ">=26.
|
|
68
|
+
"node": ">=26.13.1"
|
|
69
69
|
},
|
|
70
70
|
"exports": {
|
|
71
71
|
"./sdk": {
|