@mnmal-ai/substrate 1.0.0-alpha.0 → 1.0.0-alpha.10
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 +51 -9
- package/dist/boot-store-BVqfFxh1.js +4060 -0
- package/dist/{runtime-metrics-DwpDJ8vz.d.ts → bridge-Cp4PaIYO.d.ts} +2 -87
- package/dist/cli-hSCBywhE.js +3126 -0
- package/dist/client.d.ts +130 -8
- package/dist/client.js +6 -5
- package/dist/{plugin-t2g2wX0b.d.ts → dataset-CejF-Fr_.d.ts} +1640 -1320
- package/dist/{agent-token-BIboWOU0.js → env-utils-CGNazUNt.js} +31 -2
- package/dist/{errors-D4vKuwz8.d.ts → errors-7mycvNGq.d.ts} +1 -1
- package/dist/{index-D7mSOFlM.d.ts → index-DgSfwx7M.d.ts} +1 -1
- package/dist/node-version-C5FSmwJX.js +26 -0
- package/dist/pack.d.ts +2 -2
- package/dist/pack.js +1 -1
- package/dist/pg-edges-store-Lxsl5ZnK.js +381 -0
- package/dist/{plugin-j1jt1l3n.js → plugin-CtwOINCM.js} +171 -18
- package/dist/proposals-bootstrap.js +6 -4
- package/dist/proposals.config.schema.json +5 -0
- package/dist/proposals.d.ts +15 -4
- package/dist/proposals.default-config.json +2 -1
- package/dist/proposals.js +2 -2
- package/dist/recall-bootstrap.js +13 -4
- package/dist/recall.config.schema.json +12 -0
- package/dist/recall.d.ts +54 -9
- package/dist/recall.js +2 -2
- package/dist/{repl-C52wyfMs.js → repl-DqfHelK7.js} +62 -29
- package/dist/{row-ByLFE2Wx.d.ts → row-BKKCXIG6.d.ts} +5 -3
- package/dist/run-B5dTbZ3g.js +1997 -0
- package/dist/{schema-g4FQLr0V.d.ts → schema-DoSc-4ig.d.ts} +44 -7
- package/dist/script-C6DSa_Na.js +134 -0
- package/dist/sdk.d.ts +90 -12
- package/dist/sdk.js +5 -110
- package/dist/{src-D91yij6C.js → src-5SJ5GEIM.js} +1557 -327
- package/dist/{src-DuopV8u7.js → src-7CUSMK66.js} +148 -19
- package/dist/{src-CrEgiMJQ.js → src-Bi849yhn.js} +39 -15
- package/dist/{src-D88LvCX8.js → src-CqT-QWZ_.js} +697 -57
- package/dist/src-CyvV7dCK.js +4333 -0
- package/dist/{row-DK7lPZVe.js → src-Da0t6si5.js} +11 -11
- package/dist/{src-C4DzaIQZ.js → src-hZb8wfvg.js} +12 -1
- package/dist/substrate-admin.js +17 -781
- package/dist/substrate.js +4 -5471
- package/dist/testing.d.ts +557 -8
- package/dist/testing.js +39 -3
- package/dist/{ws-C72iVS5T.d.ts → ws-ByZyHk7m.d.ts} +3 -3
- package/package.json +21 -20
- package/dist/dataset-BXkus75W.js +0 -1527
- package/dist/env-utils-B7SGmoeJ.js +0 -21
- package/dist/src-CzxvmhFn.js +0 -2327
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as PackEnvelope, f as Schema, k as Row, v as EdgeRef } from "./schema-DoSc-4ig.js";
|
|
2
2
|
//#region ../../packages/substrate-types/src/bridge.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Per-frame bucket sent to a bridge. Same shape as `QualifiedFrame` in the
|
|
@@ -71,89 +71,4 @@ interface BridgeCredentialStore {
|
|
|
71
71
|
get(bridgeName: string): BridgeCredential | undefined;
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
|
-
|
|
75
|
-
/** Per-key resolver latency and error counts, as served by GET /substrate/v1/metrics. */
|
|
76
|
-
interface ResolverStat {
|
|
77
|
-
kind: 'query' | 'mutate';
|
|
78
|
-
calls: number;
|
|
79
|
-
errors: number;
|
|
80
|
-
p50Ms: number;
|
|
81
|
-
p99Ms: number;
|
|
82
|
-
maxMs: number;
|
|
83
|
-
lastAt: string;
|
|
84
|
-
}
|
|
85
|
-
interface ProcessStat {
|
|
86
|
-
rssMB: number;
|
|
87
|
-
heapUsedMB: number;
|
|
88
|
-
cpuUserMs: number;
|
|
89
|
-
cpuSystemMs: number;
|
|
90
|
-
eventLoopLagP99Ms: number;
|
|
91
|
-
inFlight: number;
|
|
92
|
-
}
|
|
93
|
-
interface SlowRequest {
|
|
94
|
-
key: string;
|
|
95
|
-
kind: 'query' | 'mutate';
|
|
96
|
-
durationMs: number;
|
|
97
|
-
at: string;
|
|
98
|
-
}
|
|
99
|
-
interface RuntimeErrorEntry {
|
|
100
|
-
at: string;
|
|
101
|
-
op: 'query' | 'mutate';
|
|
102
|
-
key: string;
|
|
103
|
-
code: string;
|
|
104
|
-
message: string;
|
|
105
|
-
/** The verified identity's id, or `'anonymous'`. */
|
|
106
|
-
caller?: string;
|
|
107
|
-
/** Present when consecutive identical `(unknown)` failures were merged into this entry. */
|
|
108
|
-
count?: number;
|
|
109
|
-
}
|
|
110
|
-
interface RuntimeErrors {
|
|
111
|
-
since: string;
|
|
112
|
-
errors: RuntimeErrorEntry[];
|
|
113
|
-
}
|
|
114
|
-
interface ResolveObservation {
|
|
115
|
-
key: string;
|
|
116
|
-
kind: 'query' | 'mutate';
|
|
117
|
-
durationMs: number;
|
|
118
|
-
ok: boolean;
|
|
119
|
-
code?: string;
|
|
120
|
-
message?: string;
|
|
121
|
-
/** The verified identity's id; absent for an anonymous caller. */
|
|
122
|
-
caller?: string;
|
|
123
|
-
}
|
|
124
|
-
/** What GET /substrate/v1/metrics returns. The new fields are optional so an older server still type-checks. */
|
|
125
|
-
interface RuntimeMetrics {
|
|
126
|
-
since: string;
|
|
127
|
-
requests: {
|
|
128
|
-
query: {
|
|
129
|
-
total: number;
|
|
130
|
-
ok: number;
|
|
131
|
-
error: number;
|
|
132
|
-
durationMsSum: number;
|
|
133
|
-
durationMsMax: number;
|
|
134
|
-
};
|
|
135
|
-
mutate: {
|
|
136
|
-
total: number;
|
|
137
|
-
ok: number;
|
|
138
|
-
error: number;
|
|
139
|
-
durationMsSum: number;
|
|
140
|
-
durationMsMax: number;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
subscriptions: {
|
|
144
|
-
active: number;
|
|
145
|
-
maxQueueDepth?: number;
|
|
146
|
-
entries?: {
|
|
147
|
-
id: string;
|
|
148
|
-
ns: string;
|
|
149
|
-
type: string;
|
|
150
|
-
queueLength: number;
|
|
151
|
-
}[];
|
|
152
|
-
};
|
|
153
|
-
events: Record<string, number>;
|
|
154
|
-
resolvers?: Record<string, ResolverStat>;
|
|
155
|
-
process?: ProcessStat;
|
|
156
|
-
slowest?: SlowRequest[];
|
|
157
|
-
}
|
|
158
|
-
//#endregion
|
|
159
|
-
export { RuntimeErrors as a, BridgeClient as c, BridgeFrame as d, RuntimeErrorEntry as i, BridgeCredential as l, ResolveObservation as n, RuntimeMetrics as o, ResolverStat as r, SlowRequest as s, ProcessStat as t, BridgeCredentialStore as u };
|
|
74
|
+
export { BridgeFrame as i, BridgeCredential as n, BridgeCredentialStore as r, BridgeClient as t };
|