@substrate-ai/core 0.19.54 → 0.20.1
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/config/types.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ import { z } from 'zod';
|
|
|
12
12
|
import type { ILogger } from '../dispatch/types.js';
|
|
13
13
|
/** Subscription routing modes */
|
|
14
14
|
export declare const SubscriptionRoutingSchema: z.ZodEnum<{
|
|
15
|
-
auto: "auto";
|
|
16
15
|
subscription: "subscription";
|
|
17
16
|
api: "api";
|
|
17
|
+
auto: "auto";
|
|
18
18
|
disabled: "disabled";
|
|
19
19
|
}>;
|
|
20
20
|
export type SubscriptionRouting = z.infer<typeof SubscriptionRoutingSchema>;
|
|
@@ -29,9 +29,9 @@ export declare const ProviderConfigSchema: z.ZodObject<{
|
|
|
29
29
|
enabled: z.ZodBoolean;
|
|
30
30
|
cli_path: z.ZodOptional<z.ZodString>;
|
|
31
31
|
subscription_routing: z.ZodEnum<{
|
|
32
|
-
auto: "auto";
|
|
33
32
|
subscription: "subscription";
|
|
34
33
|
api: "api";
|
|
34
|
+
auto: "auto";
|
|
35
35
|
disabled: "disabled";
|
|
36
36
|
}>;
|
|
37
37
|
max_concurrent: z.ZodNumber;
|
|
@@ -49,9 +49,9 @@ export declare const ProvidersSchema: z.ZodObject<{
|
|
|
49
49
|
enabled: z.ZodBoolean;
|
|
50
50
|
cli_path: z.ZodOptional<z.ZodString>;
|
|
51
51
|
subscription_routing: z.ZodEnum<{
|
|
52
|
-
auto: "auto";
|
|
53
52
|
subscription: "subscription";
|
|
54
53
|
api: "api";
|
|
54
|
+
auto: "auto";
|
|
55
55
|
disabled: "disabled";
|
|
56
56
|
}>;
|
|
57
57
|
max_concurrent: z.ZodNumber;
|
|
@@ -66,9 +66,9 @@ export declare const ProvidersSchema: z.ZodObject<{
|
|
|
66
66
|
enabled: z.ZodBoolean;
|
|
67
67
|
cli_path: z.ZodOptional<z.ZodString>;
|
|
68
68
|
subscription_routing: z.ZodEnum<{
|
|
69
|
-
auto: "auto";
|
|
70
69
|
subscription: "subscription";
|
|
71
70
|
api: "api";
|
|
71
|
+
auto: "auto";
|
|
72
72
|
disabled: "disabled";
|
|
73
73
|
}>;
|
|
74
74
|
max_concurrent: z.ZodNumber;
|
|
@@ -83,9 +83,9 @@ export declare const ProvidersSchema: z.ZodObject<{
|
|
|
83
83
|
enabled: z.ZodBoolean;
|
|
84
84
|
cli_path: z.ZodOptional<z.ZodString>;
|
|
85
85
|
subscription_routing: z.ZodEnum<{
|
|
86
|
-
auto: "auto";
|
|
87
86
|
subscription: "subscription";
|
|
88
87
|
api: "api";
|
|
88
|
+
auto: "auto";
|
|
89
89
|
disabled: "disabled";
|
|
90
90
|
}>;
|
|
91
91
|
max_concurrent: z.ZodNumber;
|
|
@@ -99,21 +99,21 @@ export declare const ProvidersSchema: z.ZodObject<{
|
|
|
99
99
|
}, z.core.$strict>;
|
|
100
100
|
export type ProvidersConfig = z.infer<typeof ProvidersSchema>;
|
|
101
101
|
export declare const LogLevelSchema: z.ZodEnum<{
|
|
102
|
-
error: "error";
|
|
103
102
|
trace: "trace";
|
|
104
103
|
debug: "debug";
|
|
105
104
|
info: "info";
|
|
106
105
|
warn: "warn";
|
|
106
|
+
error: "error";
|
|
107
107
|
fatal: "fatal";
|
|
108
108
|
}>;
|
|
109
109
|
export type LogLevelValue = z.infer<typeof LogLevelSchema>;
|
|
110
110
|
export declare const GlobalSettingsSchema: z.ZodObject<{
|
|
111
111
|
log_level: z.ZodEnum<{
|
|
112
|
-
error: "error";
|
|
113
112
|
trace: "trace";
|
|
114
113
|
debug: "debug";
|
|
115
114
|
info: "info";
|
|
116
115
|
warn: "warn";
|
|
116
|
+
error: "error";
|
|
117
117
|
fatal: "fatal";
|
|
118
118
|
}>;
|
|
119
119
|
max_concurrent_tasks: z.ZodNumber;
|
|
@@ -164,11 +164,11 @@ export declare const SubstrateConfigSchema: z.ZodObject<{
|
|
|
164
164
|
}>>;
|
|
165
165
|
global: z.ZodObject<{
|
|
166
166
|
log_level: z.ZodEnum<{
|
|
167
|
-
error: "error";
|
|
168
167
|
trace: "trace";
|
|
169
168
|
debug: "debug";
|
|
170
169
|
info: "info";
|
|
171
170
|
warn: "warn";
|
|
171
|
+
error: "error";
|
|
172
172
|
fatal: "fatal";
|
|
173
173
|
}>;
|
|
174
174
|
max_concurrent_tasks: z.ZodNumber;
|
|
@@ -182,9 +182,9 @@ export declare const SubstrateConfigSchema: z.ZodObject<{
|
|
|
182
182
|
enabled: z.ZodBoolean;
|
|
183
183
|
cli_path: z.ZodOptional<z.ZodString>;
|
|
184
184
|
subscription_routing: z.ZodEnum<{
|
|
185
|
-
auto: "auto";
|
|
186
185
|
subscription: "subscription";
|
|
187
186
|
api: "api";
|
|
187
|
+
auto: "auto";
|
|
188
188
|
disabled: "disabled";
|
|
189
189
|
}>;
|
|
190
190
|
max_concurrent: z.ZodNumber;
|
|
@@ -199,9 +199,9 @@ export declare const SubstrateConfigSchema: z.ZodObject<{
|
|
|
199
199
|
enabled: z.ZodBoolean;
|
|
200
200
|
cli_path: z.ZodOptional<z.ZodString>;
|
|
201
201
|
subscription_routing: z.ZodEnum<{
|
|
202
|
-
auto: "auto";
|
|
203
202
|
subscription: "subscription";
|
|
204
203
|
api: "api";
|
|
204
|
+
auto: "auto";
|
|
205
205
|
disabled: "disabled";
|
|
206
206
|
}>;
|
|
207
207
|
max_concurrent: z.ZodNumber;
|
|
@@ -216,9 +216,9 @@ export declare const SubstrateConfigSchema: z.ZodObject<{
|
|
|
216
216
|
enabled: z.ZodBoolean;
|
|
217
217
|
cli_path: z.ZodOptional<z.ZodString>;
|
|
218
218
|
subscription_routing: z.ZodEnum<{
|
|
219
|
-
auto: "auto";
|
|
220
219
|
subscription: "subscription";
|
|
221
220
|
api: "api";
|
|
221
|
+
auto: "auto";
|
|
222
222
|
disabled: "disabled";
|
|
223
223
|
}>;
|
|
224
224
|
max_concurrent: z.ZodNumber;
|
|
@@ -258,9 +258,9 @@ export declare const PartialProviderConfigSchema: z.ZodObject<{
|
|
|
258
258
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
259
259
|
cli_path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
260
260
|
subscription_routing: z.ZodOptional<z.ZodEnum<{
|
|
261
|
-
auto: "auto";
|
|
262
261
|
subscription: "subscription";
|
|
263
262
|
api: "api";
|
|
263
|
+
auto: "auto";
|
|
264
264
|
disabled: "disabled";
|
|
265
265
|
}>>;
|
|
266
266
|
max_concurrent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -274,11 +274,11 @@ export declare const PartialProviderConfigSchema: z.ZodObject<{
|
|
|
274
274
|
export type PartialProviderConfig = z.infer<typeof PartialProviderConfigSchema>;
|
|
275
275
|
export declare const PartialGlobalSettingsSchema: z.ZodObject<{
|
|
276
276
|
log_level: z.ZodOptional<z.ZodEnum<{
|
|
277
|
-
error: "error";
|
|
278
277
|
trace: "trace";
|
|
279
278
|
debug: "debug";
|
|
280
279
|
info: "info";
|
|
281
280
|
warn: "warn";
|
|
281
|
+
error: "error";
|
|
282
282
|
fatal: "fatal";
|
|
283
283
|
}>>;
|
|
284
284
|
max_concurrent_tasks: z.ZodOptional<z.ZodNumber>;
|
|
@@ -297,11 +297,11 @@ export declare const PartialSubstrateConfigSchema: z.ZodObject<{
|
|
|
297
297
|
}>>;
|
|
298
298
|
global: z.ZodOptional<z.ZodObject<{
|
|
299
299
|
log_level: z.ZodOptional<z.ZodEnum<{
|
|
300
|
-
error: "error";
|
|
301
300
|
trace: "trace";
|
|
302
301
|
debug: "debug";
|
|
303
302
|
info: "info";
|
|
304
303
|
warn: "warn";
|
|
304
|
+
error: "error";
|
|
305
305
|
fatal: "fatal";
|
|
306
306
|
}>>;
|
|
307
307
|
max_concurrent_tasks: z.ZodOptional<z.ZodNumber>;
|
|
@@ -315,9 +315,9 @@ export declare const PartialSubstrateConfigSchema: z.ZodObject<{
|
|
|
315
315
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
316
316
|
cli_path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
317
317
|
subscription_routing: z.ZodOptional<z.ZodEnum<{
|
|
318
|
-
auto: "auto";
|
|
319
318
|
subscription: "subscription";
|
|
320
319
|
api: "api";
|
|
320
|
+
auto: "auto";
|
|
321
321
|
disabled: "disabled";
|
|
322
322
|
}>>;
|
|
323
323
|
max_concurrent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -332,9 +332,9 @@ export declare const PartialSubstrateConfigSchema: z.ZodObject<{
|
|
|
332
332
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
333
333
|
cli_path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
334
334
|
subscription_routing: z.ZodOptional<z.ZodEnum<{
|
|
335
|
-
auto: "auto";
|
|
336
335
|
subscription: "subscription";
|
|
337
336
|
api: "api";
|
|
337
|
+
auto: "auto";
|
|
338
338
|
disabled: "disabled";
|
|
339
339
|
}>>;
|
|
340
340
|
max_concurrent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -349,9 +349,9 @@ export declare const PartialSubstrateConfigSchema: z.ZodObject<{
|
|
|
349
349
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
350
350
|
cli_path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
351
351
|
subscription_routing: z.ZodOptional<z.ZodEnum<{
|
|
352
|
-
auto: "auto";
|
|
353
352
|
subscription: "subscription";
|
|
354
353
|
api: "api";
|
|
354
|
+
auto: "auto";
|
|
355
355
|
disabled: "disabled";
|
|
356
356
|
}>>;
|
|
357
357
|
max_concurrent: z.ZodOptional<z.ZodNumber>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrate-ai/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/johnplanow/substrate.git",
|
|
9
|
+
"directory": "packages/core"
|
|
10
|
+
},
|
|
5
11
|
"main": "./dist/index.js",
|
|
6
12
|
"types": "./dist/index.d.ts",
|
|
7
13
|
"exports": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Temporary type-assertion file for AC5 verification (Story 40-11).
|
|
3
|
-
*
|
|
4
|
-
* Uses TypeScript `satisfies` expressions to confirm structural compatibility
|
|
5
|
-
* between core package interfaces and what the monolith implements.
|
|
6
|
-
*
|
|
7
|
-
* This file is created, compiled, and then deleted — it must NOT appear in
|
|
8
|
-
* the final dist artifacts.
|
|
9
|
-
*/
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=__type-checks__.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__type-checks__.d.ts","sourceRoot":"","sources":["../src/__type-checks__.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAyEH,OAAO,EAAE,CAAA"}
|
package/dist/__type-checks__.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Temporary type-assertion file for AC5 verification (Story 40-11).
|
|
3
|
-
*
|
|
4
|
-
* Uses TypeScript `satisfies` expressions to confirm structural compatibility
|
|
5
|
-
* between core package interfaces and what the monolith implements.
|
|
6
|
-
*
|
|
7
|
-
* This file is created, compiled, and then deleted — it must NOT appear in
|
|
8
|
-
* the final dist artifacts.
|
|
9
|
-
*/
|
|
10
|
-
// Verify CoreEvents extends EventMap (object constraint)
|
|
11
|
-
const _coreEventsCheck = {};
|
|
12
|
-
const _dispatchReturnCheck = true;
|
|
13
|
-
const _queryReturnCheck = true;
|
|
14
|
-
const _execReturnCheck = true;
|
|
15
|
-
const _transactionReturnCheck = true;
|
|
16
|
-
const _closeReturnCheck = true;
|
|
17
|
-
const _readyStoriesReturnCheck = true;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=__type-checks__.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__type-checks__.js","sourceRoot":"","sources":["../src/__type-checks__.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkBH,yDAAyD;AACzD,MAAM,gBAAgB,GAAa,EAAgB,CAAA;AAenD,MAAM,oBAAoB,GAAiC,IAAI,CAAA;AAoB/D,MAAM,iBAAiB,GAA2B,IAAI,CAAA;AAItD,MAAM,gBAAgB,GAA0B,IAAI,CAAA;AAIpD,MAAM,uBAAuB,GAAiC,IAAI,CAAA;AAIlE,MAAM,iBAAiB,GAA2B,IAAI,CAAA;AAItD,MAAM,wBAAwB,GAAkC,IAAI,CAAA"}
|