@smithers-orchestrator/driver 0.16.8 → 0.17.0
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/package.json +7 -6
- package/src/index.d.ts +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithers-orchestrator/driver",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Workflow execution driver — runs tasks, acts on EngineDecisions, reports results",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -63,17 +63,18 @@
|
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"effect": "^3.21.1",
|
|
65
65
|
"zod": "^4.3.6",
|
|
66
|
-
"@smithers-orchestrator/db": "0.
|
|
67
|
-
"@smithers-orchestrator/errors": "0.
|
|
68
|
-
"@smithers-orchestrator/
|
|
69
|
-
"@smithers-orchestrator/
|
|
70
|
-
"@smithers-orchestrator/scheduler": "0.
|
|
66
|
+
"@smithers-orchestrator/db": "0.17.0",
|
|
67
|
+
"@smithers-orchestrator/errors": "0.17.0",
|
|
68
|
+
"@smithers-orchestrator/observability": "0.17.0",
|
|
69
|
+
"@smithers-orchestrator/graph": "0.17.0",
|
|
70
|
+
"@smithers-orchestrator/scheduler": "0.17.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@types/bun": "latest",
|
|
74
74
|
"typescript": "~5.9.3"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
|
+
"test": "bun test tests",
|
|
77
78
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
78
79
|
"build": "tsup --dts-only"
|
|
79
80
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -135,6 +135,10 @@ type OutputAccessor$2<Schema, TRow = unknown> = {
|
|
|
135
135
|
} & {
|
|
136
136
|
[K in keyof Schema & string]: Array<InferOutputEntry$1<Schema[K]>>;
|
|
137
137
|
};
|
|
138
|
+
type OutputSchemaKey<Schema> = Exclude<keyof Schema & string, "input">;
|
|
139
|
+
type OutputSchemaValue<Schema> = Schema[OutputSchemaKey<Schema>];
|
|
140
|
+
type StrictTableRef<Schema> = [OutputSchemaKey<Schema>] extends [never] ? TableRef : OutputSchemaKey<Schema> | OutputSchemaValue<Schema>;
|
|
141
|
+
type OutputForTable<Schema, Table> = Table extends OutputSchemaKey<Schema> ? InferOutputEntry$1<Schema[Table]> : Table extends OutputSchemaValue<Schema> ? InferOutputEntry$1<Table> : OutputRow;
|
|
138
142
|
|
|
139
143
|
type SmithersRuntimeConfig$1 = {
|
|
140
144
|
cliAgentToolsDefault?: "all" | "explicit-only";
|
|
@@ -205,19 +209,19 @@ declare class SmithersCtx<Schema extends unknown = unknown> {
|
|
|
205
209
|
* @param {OutputKey} key
|
|
206
210
|
* @returns {OutputRow}
|
|
207
211
|
*/
|
|
208
|
-
output(table:
|
|
212
|
+
output<Table extends StrictTableRef<Schema>>(table: Table, key: OutputKey$1): OutputForTable<Schema, Table>;
|
|
209
213
|
/**
|
|
210
214
|
* @param {TableRef} table
|
|
211
215
|
* @param {OutputKey} key
|
|
212
216
|
* @returns {OutputRow | undefined}
|
|
213
217
|
*/
|
|
214
|
-
outputMaybe(table:
|
|
218
|
+
outputMaybe<Table extends StrictTableRef<Schema>>(table: Table, key: OutputKey$1): OutputForTable<Schema, Table> | undefined;
|
|
215
219
|
/**
|
|
216
220
|
* @param {TableRef} table
|
|
217
221
|
* @param {string} nodeId
|
|
218
222
|
* @returns {OutputRow | undefined}
|
|
219
223
|
*/
|
|
220
|
-
latest(table:
|
|
224
|
+
latest<Table extends StrictTableRef<Schema>>(table: Table, nodeId: string): OutputForTable<Schema, Table> | undefined;
|
|
221
225
|
/**
|
|
222
226
|
* @param {unknown} value
|
|
223
227
|
* @param {SafeParser} schema
|