@mnmal-ai/substrate 1.0.0-alpha.2 → 1.0.0-alpha.20

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 (53) hide show
  1. package/README.md +64 -14
  2. package/dist/boot-store-BaDqbBS-.js +4062 -0
  3. package/dist/{runtime-metrics-DwpDJ8vz.d.ts → bridge-BhiJKwfF.d.ts} +2 -87
  4. package/dist/cli-RRFphMtQ.js +3366 -0
  5. package/dist/client.browser.js +2485 -0
  6. package/dist/client.d.ts +273 -135
  7. package/dist/client.js +6 -6
  8. package/dist/cluster-worker.js +0 -1
  9. package/dist/{content-type-C7T28xNb.js → content-type-wLljot5M.js} +0 -1
  10. package/dist/{env-utils-CGNazUNt.js → env-utils-s25Z1YSA.js} +0 -1
  11. package/dist/{errors-D4vKuwz8.d.ts → errors-CYOaWZ8l.d.ts} +44 -4
  12. package/dist/{fake-DUVtKVSE.js → fake-DdXtb-m8.js} +0 -1
  13. package/dist/{index-D7mSOFlM.d.ts → index-ZKeYFHDD.d.ts} +7 -11
  14. package/dist/msgpackr-Dq18g6Ds.js +16 -0
  15. package/dist/node-version-BtK_Nq6z.js +32 -0
  16. package/dist/pack.d.ts +75 -11
  17. package/dist/pack.js +4 -4
  18. package/dist/pg-edges-store-C-IRv-O9.js +443 -0
  19. package/dist/{plugin-QuJN9pG_.js → plugin-MSbSZ6Al.js} +132 -8
  20. package/dist/proposals-bootstrap.js +6 -5
  21. package/dist/proposals.config.schema.json +5 -0
  22. package/dist/proposals.d.ts +17 -5
  23. package/dist/proposals.default-config.json +2 -1
  24. package/dist/proposals.js +2 -3
  25. package/dist/recall-bootstrap.js +5 -4
  26. package/dist/recall.config.schema.json +6 -0
  27. package/dist/recall.d.ts +35 -6
  28. package/dist/recall.js +2 -3
  29. package/dist/{repl-C52wyfMs.js → repl-Ob5OyQqj.js} +65 -33
  30. package/dist/{row-ByLFE2Wx.d.ts → row-CfsHSEfB.d.ts} +92 -12
  31. package/dist/run-B438GGJK.js +2435 -0
  32. package/dist/{plugin-t2g2wX0b.d.ts → schema-laGLMvMC.d.ts} +1287 -63
  33. package/dist/script-A9dxMRZA.js +143 -0
  34. package/dist/script-runner.js +77 -0
  35. package/dist/sdk.d.ts +227 -38
  36. package/dist/sdk.js +5 -110
  37. package/dist/semver-D_zdq0hi.js +17 -0
  38. package/dist/{src-DMzc3HfW.js → src-BNdhH_Hx.js} +745 -851
  39. package/dist/{src-CG7giuHr.js → src-BSL2yyVy.js} +779 -75
  40. package/dist/{src-BLgbLq2k.js → src-B_kHkbsr.js} +780 -330
  41. package/dist/{src-DWm0iA88.js → src-De9j33jv.js} +188 -87
  42. package/dist/src-DkxrpQOz.js +7709 -0
  43. package/dist/{row-DZ0Fnpc6.js → src-DmiUWOLp.js} +2 -1
  44. package/dist/{src-CHp3QyqB.js → src-S84ef4e3.js} +9177 -3377
  45. package/dist/substrate-admin.js +17 -782
  46. package/dist/substrate.js +4 -5487
  47. package/dist/testing.d.ts +730 -53
  48. package/dist/testing.js +20 -163
  49. package/dist/{ws-C72iVS5T.d.ts → ws-BT8kL1IF.d.ts} +4 -5
  50. package/package.json +26 -26
  51. package/dist/dataset-BQ8egGl5.js +0 -1535
  52. package/dist/schema-g4FQLr0V.d.ts +0 -433
  53. package/dist/src-CXKnqeTW.js +0 -2339
@@ -1,4 +1,4 @@
1
- import { E as Row, h as EdgeRef, l as PackEnvelope, u as Schema } from "./schema-g4FQLr0V.js";
1
+ import { En as EdgeRef, Ln as Row, f as PackEnvelope, m as Schema } from "./schema-laGLMvMC.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
- //#region ../../packages/substrate-types/src/runtime-metrics.d.ts
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 };