@mnmal-ai/substrate 1.0.0-alpha.16 → 1.0.0-alpha.18
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 +5 -4
- package/dist/{boot-store-HxCgbvNl.js → boot-store-C8KrACZ5.js} +51 -72
- package/dist/{bridge-CvZGzNIO.d.ts → bridge-5VHZiH9o.d.ts} +1 -1
- package/dist/{cli-6mjAWiEZ.js → cli-zZ7nHhY5.js} +235 -16
- package/dist/client.d.ts +8 -3
- package/dist/client.js +4 -4
- 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-De5F1tUf.js → pg-edges-store-D7etFxNK.js} +1 -1
- package/dist/{plugin-Dpa_Y7Ep.js → plugin-DcoJGEMM.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-2WfRPUb0.js → repl-SY8cLOZl.js} +1 -1
- package/dist/{row-Dh57ShWL.d.ts → row-DHxnCnhA.d.ts} +10 -8
- package/dist/{run-ChcHBIN3.js → run-Cr-53N3F.js} +142 -106
- package/dist/{schema-B--_bHjn.d.ts → schema-B5WBO8yh.d.ts} +79 -19
- package/dist/{script-C6DSa_Na.js → script-B-32wZGY.js} +11 -1
- package/dist/script-runner.js +78 -0
- package/dist/sdk.d.ts +51 -8
- package/dist/sdk.js +4 -4
- package/dist/{src-B4sqnLRy.js → src-B4dTiEWw.js} +77 -28
- package/dist/{src-DHLw3eCn.js → src-BcuotITf.js} +1016 -231
- package/dist/{src-DWqzrm3O.js → src-CdbUzLhB.js} +209 -36
- package/dist/{src-BMHI_rTJ.js → src-D55T3ZcP.js} +2203 -499
- 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--uyAqssS.js → src-DZfgQ2gR.js} +3 -3
- 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 +21 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
2
|
import { c as makeTokenProvider, i as DEFAULT_CAPABILITIES, n as trimTrailingSlashes } from "./env-utils-CGNazUNt.js";
|
|
3
|
-
import { D as isActiveAdminKeyRow, O as capabilitiesFor, T as SYSTEM_NAMESPACE } from "./src-
|
|
4
|
-
import { a as buildDecodePlan, f as SchemaDriftError, i as applyDecodePlanInPlace, o as decodeWsEnvelope, p as decodeEnvelope, s as encodeWsFrame, t as WS_SUBPROTOCOL_SUBSTRATE_PACK
|
|
3
|
+
import { D as isActiveAdminKeyRow, O as capabilitiesFor, T as SYSTEM_NAMESPACE } from "./src-DR_hUj2p.js";
|
|
4
|
+
import { D as parseQualifiedKey, a as buildDecodePlan, f as SchemaDriftError, i as applyDecodePlanInPlace, o as decodeWsEnvelope, p as decodeEnvelope, s as encodeWsFrame, t as WS_SUBPROTOCOL_SUBSTRATE_PACK } from "./src-CdbUzLhB.js";
|
|
5
5
|
import { signal } from "@preact/signals-core";
|
|
6
6
|
import { WebSocket } from "ws";
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
import { B as ROW_FILTER_FIELD, V as matchesRowFilter, W as inFlightError, Y as unresolvedRow, Z as cosineSimilarity, et as memberKey } from "./plugin-
|
|
2
|
+
import { c as typeTableRef, l as whileNoTypeTable, o as guardedRefRead, r as txScopeIdFor } from "./src-BcuotITf.js";
|
|
3
|
+
import { B as ROW_FILTER_FIELD, V as matchesRowFilter, W as inFlightError, Y as unresolvedRow, Z as cosineSimilarity, et as memberKey } from "./plugin-DcoJGEMM.js";
|
|
4
4
|
|
|
5
5
|
//#region ../../plugins/substrate-recall/package.json
|
|
6
|
-
var version = "1.0.0-alpha.
|
|
6
|
+
var version = "1.0.0-alpha.18";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region ../../plugins/substrate-recall/src/in-memory-cluster-store.ts
|
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-Cr-53N3F.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-zZ7nHhY5.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-D55T3ZcP.js";
|
|
3
|
+
import "./src-CdbUzLhB.js";
|
|
4
|
+
import { h as deriveListIndexMigration, n as PgDataset, v as runDerivedMigrations, y as runMigrations } from "./src-BcuotITf.js";
|
|
5
|
+
import { t as PgEdgesStore } from "./pg-edges-store-D7etFxNK.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.18",
|
|
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": {
|
|
@@ -32,28 +32,28 @@
|
|
|
32
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.
|
|
39
|
+
"@mnmal-ai/substrate-bootstrap": "1.0.0-alpha.18",
|
|
40
|
+
"@mnmal-ai/substrate-client": "1.0.0-alpha.18",
|
|
41
|
+
"@mnmal-ai/substrate-compose": "1.0.0-alpha.18",
|
|
42
|
+
"@mnmal-ai/substrate-config": "1.0.0-alpha.18",
|
|
43
|
+
"@mnmal-ai/substrate-core": "1.0.0-alpha.18",
|
|
44
|
+
"@mnmal-ai/substrate-dataset-memory": "1.0.0-alpha.18",
|
|
45
|
+
"@mnmal-ai/substrate-dataset-pg": "1.0.0-alpha.18",
|
|
46
|
+
"@mnmal-ai/substrate-embedder": "1.0.0-alpha.18",
|
|
47
|
+
"@mnmal-ai/substrate-filter": "1.0.0-alpha.18",
|
|
48
|
+
"@mnmal-ai/substrate-pack": "1.0.0-alpha.18",
|
|
49
|
+
"@mnmal-ai/substrate-policy": "1.0.0-alpha.18",
|
|
50
|
+
"@mnmal-ai/substrate-proposals": "1.0.0-alpha.18",
|
|
51
|
+
"@mnmal-ai/substrate-recall": "1.0.0-alpha.18",
|
|
52
|
+
"@mnmal-ai/substrate-sdk": "1.0.0-alpha.18",
|
|
53
|
+
"@mnmal-ai/substrate-sentinel-client": "1.0.0-alpha.18",
|
|
54
|
+
"@mnmal-ai/substrate-server-fastify": "1.0.0-alpha.18",
|
|
55
|
+
"@mnmal-ai/substrate-server-memory": "1.0.0-alpha.18",
|
|
56
|
+
"@mnmal-ai/substrate-types": "1.0.0-alpha.18",
|
|
57
57
|
"@mnmal-ai/surface-core": "0.17.1",
|
|
58
58
|
"@types/node": "^26.6.4",
|
|
59
59
|
"@types/semver": "^7.5.0",
|
|
@@ -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": {
|