@ontemper/sdk 0.9.0-rc.3 → 0.9.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/README.md +99 -14
- package/dist/Contract/Manifest.d.ts +58 -1
- package/dist/Contract/Manifest.d.ts.map +1 -1
- package/dist/Contract/Manifest.js +53 -0
- package/dist/Contract/Manifest.js.map +1 -1
- package/dist/Contract/RuntimeApi.d.ts +0 -47
- package/dist/Contract/RuntimeApi.d.ts.map +1 -1
- package/dist/Contract/RuntimeApi.js +0 -30
- package/dist/Contract/RuntimeApi.js.map +1 -1
- package/dist/Contract/index.d.ts +1 -1
- package/dist/Contract/index.d.ts.map +1 -1
- package/dist/Contract/index.js +1 -1
- package/dist/Contract/index.js.map +1 -1
- package/dist/LogContext.d.ts +2 -0
- package/dist/LogContext.d.ts.map +1 -1
- package/dist/LogContext.js +7 -4
- package/dist/LogContext.js.map +1 -1
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +16 -3
- package/dist/Logger.js.map +1 -1
- package/dist/Manifest.d.ts +14 -3
- package/dist/Manifest.d.ts.map +1 -1
- package/dist/Manifest.js +98 -6
- package/dist/Manifest.js.map +1 -1
- package/dist/Middleware.d.ts.map +1 -1
- package/dist/Middleware.js +4 -1
- package/dist/Middleware.js.map +1 -1
- package/dist/Resource.d.ts +3 -1
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js.map +1 -1
- package/dist/RuntimeResources.d.ts +1 -22
- package/dist/RuntimeResources.d.ts.map +1 -1
- package/dist/RuntimeResources.js +0 -15
- package/dist/RuntimeResources.js.map +1 -1
- package/dist/Step.d.ts +63 -0
- package/dist/Step.d.ts.map +1 -0
- package/dist/Step.js +106 -0
- package/dist/Step.js.map +1 -0
- package/dist/StepCatalog.d.ts +9 -0
- package/dist/StepCatalog.d.ts.map +1 -0
- package/dist/StepCatalog.js +16 -0
- package/dist/StepCatalog.js.map +1 -0
- package/dist/StepRuns.d.ts +33 -0
- package/dist/StepRuns.d.ts.map +1 -0
- package/dist/StepRuns.js +65 -0
- package/dist/StepRuns.js.map +1 -0
- package/dist/Workflow.d.ts +6 -7
- package/dist/Workflow.d.ts.map +1 -1
- package/dist/Workflow.js +5 -9
- package/dist/Workflow.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +9 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +0 -13
- package/dist/testing.js.map +1 -1
- package/package.json +2 -2
- package/dist/AccessTokens.d.ts +0 -29
- package/dist/AccessTokens.d.ts.map +0 -1
- package/dist/AccessTokens.js +0 -67
- package/dist/AccessTokens.js.map +0 -1
package/README.md
CHANGED
|
@@ -206,27 +206,112 @@ const { key, value } = yield * partners.select({ tenantKey }); // ResourceNotFou
|
|
|
206
206
|
To keep a check that deploy does not run, annotate it: `Schema.isPattern(regExp, { toJsonSchema: () => ({}) })`.
|
|
207
207
|
A `Schema.makeFilter` predicate without `toJsonSchema` runs only when the workflow decodes the value.
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
## Steps
|
|
210
210
|
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
🟡 Proposed ([Workflow Flow](../../docs/specs/workflows/flow.md)). A step is one named unit of work. You
|
|
212
|
+
annotate the code that does the work with its step, at any depth: a client method, a service method,
|
|
213
|
+
or an effect in the orchestration. Nothing else describes the control flow. The platform reads the
|
|
214
|
+
order, nesting, loops, and parallel work of the steps from the step lines of each Run, so the code can
|
|
215
|
+
use any control flow Effect has.
|
|
216
|
+
|
|
217
|
+
Declare each step once, at module level, by convention in `src/Steps.ts`:
|
|
218
|
+
|
|
219
|
+
```ts
|
|
220
|
+
import { Step, Variable } from '@temper/workflow';
|
|
221
|
+
|
|
222
|
+
export class CarrierKey extends Variable<CarrierKey>()('CARRIER_KEY') {}
|
|
223
|
+
|
|
224
|
+
export const bookOrders = Step.make('bookOrders', { title: 'Book each order', kind: 'code' });
|
|
225
|
+
export const checkCustoms = Step.make('checkCustoms', { title: 'Check customs data', kind: 'code' });
|
|
226
|
+
export const bookLoad = Step.make('bookLoad', { title: 'Book the load', kind: 'http', resource: CarrierKey });
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
For a service method, use `step.fn` in place of `Effect.fn('Service.method')`. Each call is one run of
|
|
230
|
+
the step. The arguments, result, error, and requirements are the body's. `item` names the item of one
|
|
231
|
+
call from its arguments. It runs once for each call, when the step starts:
|
|
213
232
|
|
|
214
233
|
```ts
|
|
215
|
-
|
|
234
|
+
export const book = bookLoad.fn({ item: (order: Order) => order.id })(function* (order: Order) {
|
|
235
|
+
const key = yield* CarrierKey;
|
|
236
|
+
return yield* postLoad(key, order);
|
|
237
|
+
});
|
|
238
|
+
```
|
|
216
239
|
|
|
217
|
-
|
|
240
|
+
For an effect in the orchestration, use `step.run`. A step that runs other steps encloses them:
|
|
218
241
|
|
|
219
|
-
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
|
|
242
|
+
```ts
|
|
243
|
+
const results =
|
|
244
|
+
yield * bookOrders.run(Effect.forEach(batch.orders, (order) => processOrder(order), { concurrency: 4 }));
|
|
245
|
+
// inside processOrder:
|
|
246
|
+
yield * checkCustoms.run(customsCheck(order), { item: order.id });
|
|
247
|
+
// or, in a pipe:
|
|
248
|
+
yield * customsCheck(order).pipe(checkCustoms.run({ item: order.id }));
|
|
223
249
|
```
|
|
224
250
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
251
|
+
An item never changes a run. When an `item` function throws, or an item is not a string, the step
|
|
252
|
+
runs without an item, and the body's result and error do not change.
|
|
253
|
+
|
|
254
|
+
Each run writes `<title> started.`, then `<title> completed.` or `<title> failed.`, in one child span.
|
|
255
|
+
Each line carries these reserved fields:
|
|
256
|
+
|
|
257
|
+
| Field | Value |
|
|
258
|
+
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
259
|
+
| `temperStep` | The step id. |
|
|
260
|
+
| `temperStepEvent` | `started`, `completed`, `failed`, or `summary`. |
|
|
261
|
+
| `temperStepPath` | The ids of the steps that enclose this run and the step id, outermost first, joined with `/`, such as `bookOrders/bookLoad`. |
|
|
262
|
+
| `temperStepItem` | The first 256 characters of the item, when the run names one. |
|
|
263
|
+
|
|
264
|
+
The enclosing steps come from the fiber context, so a step in a forked or concurrent fiber, such as an
|
|
265
|
+
item of `Effect.forEach` with `concurrency`, keeps the path of the step that started it. A path longer
|
|
266
|
+
than 256 characters keeps the innermost ids that fit and starts with `*/`. The end line carries
|
|
267
|
+
`duration` in milliseconds, and a failed line carries `err`. An interrupted step ends `failed`. A step
|
|
268
|
+
keeps the effect's result, error, and requirements, and it retries nothing. The step lines ignore
|
|
269
|
+
`LOG_LEVEL` and any minimum log level you set, so the platform always sees each state.
|
|
270
|
+
|
|
271
|
+
In one Run, the lines of a step are bounded for each path (`temperStepPath`). A Run is one event
|
|
272
|
+
request, with the work that continues after an early answer:
|
|
273
|
+
|
|
274
|
+
- The first 20 runs of a path (`STEP_DETAIL_RUNS`), in start order, write their started and end lines.
|
|
275
|
+
- A later run writes no line when it starts or completes. A later run that fails writes its failed line,
|
|
276
|
+
with `err`, `duration`, and the item, until the path wrote 20 such lines (`STEP_EXTRA_FAILED_LINES`).
|
|
277
|
+
- When the Run ends, also on a failure, an interruption, or the deadline, each path with more than 20
|
|
278
|
+
runs writes one summary line, `<title> ran <started> times.`, with `temperStepEvent: 'summary'` and
|
|
279
|
+
these numbers for all runs of the path in the Run: `temperStepStarted`, `temperStepCompleted`,
|
|
280
|
+
`temperStepFailed`, and `temperStepMaxConcurrent`. A run still open at the end counts in started only.
|
|
281
|
+
|
|
282
|
+
A later run costs almost nothing: no line, no child span, and no clock read unless it can still write a
|
|
283
|
+
failed line. A step inside it keeps its path. Outside a Run, such as an effect a unit test runs
|
|
284
|
+
directly, nothing is bounded and no summary is written. While a Run runs, the platform shows the first
|
|
285
|
+
20 runs of a path; the totals arrive with the summary. A Run that the platform kills writes no summary.
|
|
286
|
+
|
|
287
|
+
A step inside a loop keeps its lines for the first 20 runs of a Run and for up to 20 more failed runs,
|
|
288
|
+
then one summary line with the totals. When a member does not need each record, put one step around the
|
|
289
|
+
loop.
|
|
290
|
+
|
|
291
|
+
Do not set the reserved fields in your own log lines or with `Effect.annotateLogs`. A line cut to the
|
|
292
|
+
log line budget keeps each one only while its value is a string of at most 256 characters or, for the
|
|
293
|
+
summary numbers, a number.
|
|
294
|
+
|
|
295
|
+
The build writes a `steps` catalog to the manifest: every step that `Step.make` returned before the
|
|
296
|
+
build, as `{ id, title, kind, summary?, resources }`, in declaration order. A workflow without steps
|
|
297
|
+
writes the same manifest as before. The build fails, prints each problem, and names the step, when:
|
|
298
|
+
|
|
299
|
+
- two different `Step` values use one id (share one value instead);
|
|
300
|
+
- a step id does not match `^[a-z][A-Za-z0-9]{0,63}$`, or a kind, title, or summary is not one the SDK
|
|
301
|
+
accepts;
|
|
302
|
+
- a step names a `Resource`, `Variable`, or `ResourceType` that no endpoint of the workflow declares.
|
|
303
|
+
|
|
304
|
+
A step problem never stops your module from loading, so a test can import two workflows or declare
|
|
305
|
+
its own steps. `workflow()` keeps the first of two steps with one id, keeps a step without a resource
|
|
306
|
+
that no endpoint declares, leaves out a step with an invalid id or kind, and lists each problem in
|
|
307
|
+
`stepProblems` on the module. The build reads that list; the problems never enter the manifest.
|
|
308
|
+
`Step.make` never throws. `temper-workflow dev` and `invoke` print each problem once, at start, as
|
|
309
|
+
`warning: <problem>`, and run the workflow.
|
|
310
|
+
|
|
311
|
+
The first build of the process closes the catalog. A step declared after it, such as inside a
|
|
312
|
+
function, still writes its lines, also with an id or kind that the build refuses, but the catalog does not list it. A second `workflow()` in the same
|
|
313
|
+
process, as in a test, gets the same closed catalog. Keep a step's `id` when you change its title: the platform keys Run state on the id.
|
|
314
|
+
`sdk/workflow-examples/step-flow` is a complete example.
|
|
230
315
|
|
|
231
316
|
## Invoke in a test
|
|
232
317
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
1
|
+
import { type Option, Schema } from 'effect';
|
|
2
2
|
export declare const TriggerKind: Schema.Literals<readonly ["http", "schedule", "manual", "internal"]>;
|
|
3
3
|
export type TriggerKind = typeof TriggerKind.Type;
|
|
4
4
|
export declare const ResponsePolicy: Schema.Literals<readonly ["wait", "ack", "early"]>;
|
|
@@ -78,6 +78,53 @@ export declare const ManifestResource: Schema.Union<readonly [Schema.Struct<{
|
|
|
78
78
|
readonly schema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
79
79
|
}>]>;
|
|
80
80
|
export type ManifestResource = typeof ManifestResource.Type;
|
|
81
|
+
export declare const FlowStepKind: Schema.Literals<readonly ["query", "http", "file", "transform", "ai", "agent", "review", "notify", "code"]>;
|
|
82
|
+
export type FlowStepKind = typeof FlowStepKind.Type;
|
|
83
|
+
/** Why `id` is not a valid step id (FLOW-2), or `undefined`. The build reports it as a step problem. */
|
|
84
|
+
export declare const stepIdProblem: (id: string) => string | undefined;
|
|
85
|
+
/** One named unit of work the code runs; `id` is stable across deploys and unique in the workflow. */
|
|
86
|
+
export declare const FlowStep: Schema.Struct<{
|
|
87
|
+
readonly id: Schema.String;
|
|
88
|
+
readonly title: Schema.String;
|
|
89
|
+
readonly kind: Schema.Literals<readonly ["query", "http", "file", "transform", "ai", "agent", "review", "notify", "code"]>;
|
|
90
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
91
|
+
/** Identities of the configuration the step reads, as the endpoints' `resources` name them: `resource:<key>`. */
|
|
92
|
+
readonly resources: Schema.$Array<Schema.String>;
|
|
93
|
+
}>;
|
|
94
|
+
export type FlowStep = typeof FlowStep.Type;
|
|
95
|
+
/** The steps a workflow declares, in declaration order: the manifest's `steps` catalog (FLOW-2). */
|
|
96
|
+
export declare const WorkflowSteps: Schema.$Array<Schema.Struct<{
|
|
97
|
+
readonly id: Schema.String;
|
|
98
|
+
readonly title: Schema.String;
|
|
99
|
+
readonly kind: Schema.Literals<readonly ["query", "http", "file", "transform", "ai", "agent", "review", "notify", "code"]>;
|
|
100
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
101
|
+
/** Identities of the configuration the step reads, as the endpoints' `resources` name them: `resource:<key>`. */
|
|
102
|
+
readonly resources: Schema.$Array<Schema.String>;
|
|
103
|
+
}>>;
|
|
104
|
+
export type WorkflowSteps = typeof WorkflowSteps.Type;
|
|
105
|
+
/**
|
|
106
|
+
* Reserved fields of the log lines a step writes; the API folds them into the step states of a Run.
|
|
107
|
+
* `path` holds the ids of the enclosing steps and the step, outermost first, joined with `/`.
|
|
108
|
+
* `started`, `completed`, `failed`, and `maxConcurrent` are the numbers of a `summary` line only.
|
|
109
|
+
*/
|
|
110
|
+
export declare const STEP_LOG_FIELDS: {
|
|
111
|
+
readonly step: 'temperStep';
|
|
112
|
+
readonly event: 'temperStepEvent';
|
|
113
|
+
readonly item: 'temperStepItem';
|
|
114
|
+
readonly path: 'temperStepPath';
|
|
115
|
+
readonly started: 'temperStepStarted';
|
|
116
|
+
readonly completed: 'temperStepCompleted';
|
|
117
|
+
readonly failed: 'temperStepFailed';
|
|
118
|
+
readonly maxConcurrent: 'temperStepMaxConcurrent';
|
|
119
|
+
};
|
|
120
|
+
/** Characters of a step field value that a log line cut to its budget keeps whole. */
|
|
121
|
+
export declare const MAX_STEP_FIELD_LENGTH = 256;
|
|
122
|
+
/** Runs of one step path in one Run that write their started and end lines; a later run writes none (FLOW-3). */
|
|
123
|
+
export declare const STEP_DETAIL_RUNS = 20;
|
|
124
|
+
/** Failed lines that the later runs of one step path write in one Run, past the detailed runs (FLOW-3). */
|
|
125
|
+
export declare const STEP_EXTRA_FAILED_LINES = 20;
|
|
126
|
+
/** A `summary` line gives the totals of a path with more than `STEP_DETAIL_RUNS` runs, when the Run ends. */
|
|
127
|
+
export type StepLogEvent = 'started' | 'completed' | 'failed' | 'summary';
|
|
81
128
|
export declare const WorkflowManifestEndpoint: Schema.Struct<{
|
|
82
129
|
readonly group: Schema.String;
|
|
83
130
|
readonly name: Schema.String;
|
|
@@ -183,6 +230,16 @@ export declare const WorkflowManifest: Schema.Struct<{
|
|
|
183
230
|
readonly schema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
184
231
|
}>]>>, never>;
|
|
185
232
|
}>>;
|
|
233
|
+
readonly steps: Schema.optionalKey<Schema.Unknown>;
|
|
186
234
|
}>;
|
|
187
235
|
export type WorkflowManifest = typeof WorkflowManifest.Type;
|
|
236
|
+
/**
|
|
237
|
+
* The catalog of a manifest's `steps`, or `none` when it is absent or has a shape this reader does not
|
|
238
|
+
* know, such as a step kind of a later SDK. Readers call this instead of reading `steps`.
|
|
239
|
+
*/
|
|
240
|
+
export declare const decodeWorkflowSteps: (steps: WorkflowManifest['steps']) => Option.Option<WorkflowSteps>;
|
|
241
|
+
/** What `makeManifest` writes: `steps` passed the FLOW-2 checks, so it is a `WorkflowSteps`. */
|
|
242
|
+
export type BuiltWorkflowManifest = Omit<WorkflowManifest, 'steps'> & {
|
|
243
|
+
readonly steps?: WorkflowSteps;
|
|
244
|
+
};
|
|
188
245
|
//# sourceMappingURL=Manifest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/Contract/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/Contract/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErD,eAAO,MAAM,WAAW,sEAA8D,CAAC;AACvF,MAAM,MAAM,WAAW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;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,aAAa,CACxD,CAAC;AAE5C,gGAAgG;AAChG,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAAE,CAAC"}
|
|
@@ -103,6 +103,52 @@ export const ManifestResource = Schema.Union([
|
|
|
103
103
|
Schema.Struct({ kind: Schema.Literal('variable'), key: Schema.String }),
|
|
104
104
|
Schema.Struct({ kind: Schema.Literal('resourceType'), type: Schema.String, schema: JsonSchemaObject }),
|
|
105
105
|
]);
|
|
106
|
+
export const FlowStepKind = Schema.Literals([
|
|
107
|
+
'query',
|
|
108
|
+
'http',
|
|
109
|
+
'file',
|
|
110
|
+
'transform',
|
|
111
|
+
'ai',
|
|
112
|
+
'agent',
|
|
113
|
+
'review',
|
|
114
|
+
'notify',
|
|
115
|
+
'code',
|
|
116
|
+
]);
|
|
117
|
+
const STEP_ID = /^[a-z][A-Za-z0-9]{0,63}$/;
|
|
118
|
+
/** Why `id` is not a valid step id (FLOW-2), or `undefined`. The build reports it as a step problem. */
|
|
119
|
+
export const stepIdProblem = (id) => STEP_ID.test(id) ? undefined : `step id "${id}" must match ${STEP_ID.source}.`;
|
|
120
|
+
/** One named unit of work the code runs; `id` is stable across deploys and unique in the workflow. */
|
|
121
|
+
export const FlowStep = Schema.Struct({
|
|
122
|
+
id: Schema.String,
|
|
123
|
+
title: Schema.String,
|
|
124
|
+
kind: FlowStepKind,
|
|
125
|
+
summary: Schema.optionalKey(Schema.String),
|
|
126
|
+
/** Identities of the configuration the step reads, as the endpoints' `resources` name them: `resource:<key>`. */
|
|
127
|
+
resources: Schema.Array(Schema.String),
|
|
128
|
+
});
|
|
129
|
+
/** The steps a workflow declares, in declaration order: the manifest's `steps` catalog (FLOW-2). */
|
|
130
|
+
export const WorkflowSteps = Schema.Array(FlowStep);
|
|
131
|
+
/**
|
|
132
|
+
* Reserved fields of the log lines a step writes; the API folds them into the step states of a Run.
|
|
133
|
+
* `path` holds the ids of the enclosing steps and the step, outermost first, joined with `/`.
|
|
134
|
+
* `started`, `completed`, `failed`, and `maxConcurrent` are the numbers of a `summary` line only.
|
|
135
|
+
*/
|
|
136
|
+
export const STEP_LOG_FIELDS = {
|
|
137
|
+
step: 'temperStep',
|
|
138
|
+
event: 'temperStepEvent',
|
|
139
|
+
item: 'temperStepItem',
|
|
140
|
+
path: 'temperStepPath',
|
|
141
|
+
started: 'temperStepStarted',
|
|
142
|
+
completed: 'temperStepCompleted',
|
|
143
|
+
failed: 'temperStepFailed',
|
|
144
|
+
maxConcurrent: 'temperStepMaxConcurrent',
|
|
145
|
+
};
|
|
146
|
+
/** Characters of a step field value that a log line cut to its budget keeps whole. */
|
|
147
|
+
export const MAX_STEP_FIELD_LENGTH = 256;
|
|
148
|
+
/** Runs of one step path in one Run that write their started and end lines; a later run writes none (FLOW-3). */
|
|
149
|
+
export const STEP_DETAIL_RUNS = 20;
|
|
150
|
+
/** Failed lines that the later runs of one step path write in one Run, past the detailed runs (FLOW-3). */
|
|
151
|
+
export const STEP_EXTRA_FAILED_LINES = 20;
|
|
106
152
|
export const WorkflowManifestEndpoint = Schema.Struct({
|
|
107
153
|
group: Schema.String,
|
|
108
154
|
name: Schema.String,
|
|
@@ -119,5 +165,12 @@ export const WorkflowManifest = Schema.Struct({
|
|
|
119
165
|
runtimeApiVersion: Schema.Number,
|
|
120
166
|
apiId: Schema.String,
|
|
121
167
|
endpoints: Schema.Array(WorkflowManifestEndpoint),
|
|
168
|
+
// Absent when the workflow declares no step. Unknown, so a catalog shape from a later SDK cannot fail a deploy; read it with decodeWorkflowSteps.
|
|
169
|
+
steps: Schema.optionalKey(Schema.Unknown),
|
|
122
170
|
});
|
|
171
|
+
/**
|
|
172
|
+
* The catalog of a manifest's `steps`, or `none` when it is absent or has a shape this reader does not
|
|
173
|
+
* know, such as a step kind of a later SDK. Readers call this instead of reading `steps`.
|
|
174
|
+
*/
|
|
175
|
+
export const decodeWorkflowSteps = Schema.decodeUnknownOption(WorkflowSteps);
|
|
123
176
|
//# sourceMappingURL=Manifest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.js","sourceRoot":"","sources":["../../src/Contract/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Manifest.js","sourceRoot":"","sources":["../../src/Contract/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErD,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;AAGvF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AAGxE,sFAAsF;AACtF,MAAM,uBAAuB,GAAG,GAAG,CAAC;AACpC,+FAA+F;AAC/F,MAAM,sBAAsB,GAAG,KAAK,CAAC;AACrC,oGAAoG;AACpG,MAAM,sBAAsB,GAAG,CAAC,CAAC;AACjC,gHAAgH;AAChH,MAAM,CAAC,MAAM,iCAAiC,GAAG,KAAK,CAAC;AACvD,qGAAqG;AACrG,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,CAAC;AAE7C;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC;IAC1C,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;QAC5B;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC;QACzC;;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AM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,iBAAiB,EAAE,MAAM,CAAC,MAAM;IAChC,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC;IACjD,kJAAkJ;IAClJ,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;CAC1C,CAAC,CAAC;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAC9B,MAAM,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -31,11 +31,6 @@ export declare const RuntimeInspectedResourceSchema: Schema.Struct<{
|
|
|
31
31
|
export declare const SelectResourceRuntimeOutputSchema: Schema.Struct<{
|
|
32
32
|
readonly key: Schema.String;
|
|
33
33
|
}>;
|
|
34
|
-
/** A token one VM got from a partner, kept for the other VMs of the same workflow and environment. */
|
|
35
|
-
export declare const RuntimeAccessTokenSchema: Schema.Struct<{
|
|
36
|
-
readonly token: Schema.String;
|
|
37
|
-
readonly expiresAt: Schema.Number;
|
|
38
|
-
}>;
|
|
39
34
|
declare const RuntimeResourcesUnauthorizedError_base: Schema.Class<RuntimeResourcesUnauthorizedError, Schema.TaggedStruct<"RuntimeResourcesUnauthorizedError", {
|
|
40
35
|
readonly error: Schema.Literal<"Unauthorized">;
|
|
41
36
|
}>, import("effect/Cause").YieldableError>;
|
|
@@ -102,28 +97,6 @@ export declare const ResourcesRuntimeApi: HttpApi.HttpApi<"resources-runtime-api
|
|
|
102
97
|
readonly error: Schema.String;
|
|
103
98
|
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesUnavailableError, Schema.Struct<{
|
|
104
99
|
readonly error: Schema.String;
|
|
105
|
-
}>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"readAccessToken", "POST", "/api/v1/runtime/resources/access-token/read", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
106
|
-
readonly key: Schema.String;
|
|
107
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
108
|
-
readonly authorization: Schema.optionalKey<Schema.String>;
|
|
109
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
110
|
-
readonly redactionMasks: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
111
|
-
readonly value: Schema.NullOr<Schema.Struct<{
|
|
112
|
-
readonly token: Schema.String;
|
|
113
|
-
readonly expiresAt: Schema.Number;
|
|
114
|
-
}>>;
|
|
115
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<typeof RuntimeResourcesUnauthorizedError, Schema.Struct<{
|
|
116
|
-
readonly error: Schema.Literal<"Unauthorized">;
|
|
117
|
-
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesForbiddenError, Schema.Struct<{
|
|
118
|
-
readonly error: Schema.Literal<"Forbidden">;
|
|
119
|
-
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesNotFoundError, Schema.Struct<{
|
|
120
|
-
readonly error: Schema.Literal<"Not found">;
|
|
121
|
-
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesBadRequestError, Schema.Struct<{
|
|
122
|
-
readonly error: Schema.String;
|
|
123
|
-
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesConflictError, Schema.Struct<{
|
|
124
|
-
readonly error: Schema.String;
|
|
125
|
-
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesUnavailableError, Schema.Struct<{
|
|
126
|
-
readonly error: Schema.String;
|
|
127
100
|
}>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"resolveResource", "POST", "/api/v1/runtime/resources/resolve", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
128
101
|
readonly key: Schema.String;
|
|
129
102
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -184,26 +157,6 @@ export declare const ResourcesRuntimeApi: HttpApi.HttpApi<"resources-runtime-api
|
|
|
184
157
|
readonly error: Schema.String;
|
|
185
158
|
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesUnavailableError, Schema.Struct<{
|
|
186
159
|
readonly error: Schema.String;
|
|
187
|
-
}>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"writeAccessToken", "POST", "/api/v1/runtime/resources/access-token/write", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
188
|
-
readonly key: Schema.String;
|
|
189
|
-
readonly token: Schema.String;
|
|
190
|
-
readonly expiresAt: Schema.Number;
|
|
191
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
192
|
-
readonly authorization: Schema.optionalKey<Schema.String>;
|
|
193
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
194
|
-
readonly stored: Schema.Boolean;
|
|
195
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<typeof RuntimeResourcesUnauthorizedError, Schema.Struct<{
|
|
196
|
-
readonly error: Schema.Literal<"Unauthorized">;
|
|
197
|
-
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesForbiddenError, Schema.Struct<{
|
|
198
|
-
readonly error: Schema.Literal<"Forbidden">;
|
|
199
|
-
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesNotFoundError, Schema.Struct<{
|
|
200
|
-
readonly error: Schema.Literal<"Not found">;
|
|
201
|
-
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesBadRequestError, Schema.Struct<{
|
|
202
|
-
readonly error: Schema.String;
|
|
203
|
-
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesConflictError, Schema.Struct<{
|
|
204
|
-
readonly error: Schema.String;
|
|
205
|
-
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesUnavailableError, Schema.Struct<{
|
|
206
|
-
readonly error: Schema.String;
|
|
207
160
|
}>, never, never>>, never, never>, false>>;
|
|
208
161
|
export {};
|
|
209
162
|
//# sourceMappingURL=RuntimeApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeApi.d.ts","sourceRoot":"","sources":["../../src/Contract/RuntimeApi.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAgB,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAA0B,MAAM,iBAAiB,CAAC;AAUjG,eAAO,MAAM,gCAAgC;;;EAK3C,CAAC;AAmBH,yHAAyH;AACzH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;EAyBzC,CAAC;AAOH,eAAO,MAAM,iCAAiC;;EAE5C,CAAC
|
|
1
|
+
{"version":3,"file":"RuntimeApi.d.ts","sourceRoot":"","sources":["../../src/Contract/RuntimeApi.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAgB,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAA0B,MAAM,iBAAiB,CAAC;AAUjG,eAAO,MAAM,gCAAgC;;;EAK3C,CAAC;AAmBH,yHAAyH;AACzH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;EAyBzC,CAAC;AAOH,eAAO,MAAM,iCAAiC;;EAE5C,CAAC;;;;AAaH,qBAAa,iCAAkC,SAAQ,sCAGtD;CAAG;;;;AAEJ,qBAAa,8BAA+B,SAAQ,mCAGnD;CAAG;;;;AAEJ,qBAAa,6BAA8B,SAAQ,kCAGlD;CAAG;;;;AAEJ,qBAAa,+BAAgC,SAAQ,oCAGpD;CAAG;;;;AAEJ,qBAAa,6BAA8B,SAAQ,kCAGlD;CAAG;;;;AACJ,qBAAa,gCAAiC,SAAQ,qCAGrD;CAAG;AAmGJ,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAA0E,CAAC"}
|
|
@@ -66,24 +66,6 @@ const SelectResourceRuntimeResponseSchema = Schema.Struct({
|
|
|
66
66
|
value: SelectResourceRuntimeOutputSchema,
|
|
67
67
|
...redactionMasksField,
|
|
68
68
|
});
|
|
69
|
-
const AccessTokenKeyField = {
|
|
70
|
-
key: Schema.String.annotate({ description: 'Key of the resource record whose credential issued the token.' }),
|
|
71
|
-
};
|
|
72
|
-
/** A token one VM got from a partner, kept for the other VMs of the same workflow and environment. */
|
|
73
|
-
export const RuntimeAccessTokenSchema = Schema.Struct({
|
|
74
|
-
token: Schema.String.annotate({ description: 'The credential as the workflow sends it to the partner.' }),
|
|
75
|
-
expiresAt: Schema.Number.annotate({ description: 'Epoch milliseconds at which the partner lifetime ends.' }),
|
|
76
|
-
});
|
|
77
|
-
const ReadAccessTokenOutputSchema = Schema.Struct({
|
|
78
|
-
value: Schema.NullOr(RuntimeAccessTokenSchema),
|
|
79
|
-
...redactionMasksField,
|
|
80
|
-
});
|
|
81
|
-
const WriteAccessTokenInputSchema = Schema.Struct({ ...AccessTokenKeyField, ...RuntimeAccessTokenSchema.fields });
|
|
82
|
-
const WriteAccessTokenOutputSchema = Schema.Struct({
|
|
83
|
-
stored: Schema.Boolean.annotate({
|
|
84
|
-
description: 'False when the token is empty, too large, or too close to its expiry.',
|
|
85
|
-
}),
|
|
86
|
-
});
|
|
87
69
|
const UnauthorizedBodySchema = Schema.Struct({ error: Schema.Literal('Unauthorized') });
|
|
88
70
|
const ForbiddenBodySchema = Schema.Struct({ error: Schema.Literal('Forbidden') });
|
|
89
71
|
const NotFoundBodySchema = Schema.Struct({ error: Schema.Literal('Not found') });
|
|
@@ -156,18 +138,6 @@ const ResourcesRuntimeHttpApiGroup = HttpApiGroup.make('resourcesRuntime')
|
|
|
156
138
|
payload: SelectResourceRuntimeInputSchema,
|
|
157
139
|
success: SelectResourceRuntimeResponseSchema,
|
|
158
140
|
error: runtimeErrors,
|
|
159
|
-
}))
|
|
160
|
-
.add(HttpApiEndpoint.post('readAccessToken', '/resources/access-token/read', {
|
|
161
|
-
headers: AuthorizationHeadersSchema,
|
|
162
|
-
payload: ResolveKeyInputSchema,
|
|
163
|
-
success: ReadAccessTokenOutputSchema,
|
|
164
|
-
error: runtimeErrors,
|
|
165
|
-
}))
|
|
166
|
-
.add(HttpApiEndpoint.post('writeAccessToken', '/resources/access-token/write', {
|
|
167
|
-
headers: AuthorizationHeadersSchema,
|
|
168
|
-
payload: WriteAccessTokenInputSchema,
|
|
169
|
-
success: WriteAccessTokenOutputSchema,
|
|
170
|
-
error: runtimeErrors,
|
|
171
141
|
}))
|
|
172
142
|
.prefix('/api/v1/runtime')
|
|
173
143
|
.annotateMerge(OpenApi.annotations({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeApi.js","sourceRoot":"","sources":["../../src/Contract/RuntimeApi.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEjG,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,aAAa,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;CACjD,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;CAC1E,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5D,eAAe,EAAE,MAAM,CAAC,MAAM;IAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAA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AAiB,EAAE,oBAAoB,EAAE;IAC5D,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,4BAA4B;IACrC,KAAK,EAAE,aAAa;CACrB,CAAC,CACH;KACA,GAAG,CACF,eAAe,CAAC,IAAI,CAAC,gBAAgB,EAAE,mBAAmB,EAAE;IAC1D,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,mCAAmC;IAC5C,KAAK,EAAE,aAAa;CACrB,CAAC,CACH;KACA,MAAM,CAAC,iBAAiB,CAAC;KACzB,aAAa,CACZ,OAAO,CAAC,WAAW,CAAC;IAClB,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,qFAAqF;CACnG,CAAC,CACH,CAAC;AAEJ,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC"}
|
package/dist/Contract/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ANSWER_LENGTH_HEADER, ANSWER_STATUS_HEADER, type AnswerTrailer, type AnswerTrailerError, EARLY_ANSWER_PROTOCOL_VERSION, type InvocationResponsePolicy, MAX_ANSWER_BYTES, MAX_TRAILER_BYTES, RESPONSE_POLICY_HEADER, RUN_OUTCOME_HEADER, TRAILER_LENGTH_BYTES, } from './EarlyAnswer.js';
|
|
2
2
|
export type { InvocationContext, InvocationTriggerKind } from './Invocation.js';
|
|
3
|
-
export { concurrencyProblem, DEFAULT_EARLY_TRIGGER_CONCURRENCY, declaredRunBudgetSeconds, declaredTriggerConcurrency, MAX_TRIGGER_CONCURRENCY, runBudgetProblem, ManifestResource, ResponsePolicy, TriggerKind, TriggerMetadata, WorkflowManifest, WorkflowManifestEndpoint, } from './Manifest.js';
|
|
3
|
+
export { concurrencyProblem, DEFAULT_EARLY_TRIGGER_CONCURRENCY, declaredRunBudgetSeconds, declaredTriggerConcurrency, MAX_TRIGGER_CONCURRENCY, runBudgetProblem, type BuiltWorkflowManifest, decodeWorkflowSteps, FlowStep, FlowStepKind, ManifestResource, ResponsePolicy, TriggerKind, STEP_DETAIL_RUNS, STEP_EXTRA_FAILED_LINES, STEP_LOG_FIELDS, type StepLogEvent, TriggerMetadata, WorkflowManifest, WorkflowManifestEndpoint, WorkflowSteps, } from './Manifest.js';
|
|
4
4
|
export { ResourcesRuntimeApi, RuntimeResourcesBadRequestError, RuntimeResourcesConflictError, RuntimeResourcesForbiddenError, RuntimeResourcesNotFoundError, RuntimeResourcesUnauthorizedError, RuntimeResourcesUnavailableError, SelectResourceRuntimeInputSchema, SelectResourceRuntimeOutputSchema, } from './RuntimeApi.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Contract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,6BAA6B,EAC7B,KAAK,wBAAwB,EAC7B,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EACL,kBAAkB,EAClB,iCAAiC,EACjC,wBAAwB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Contract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,6BAA6B,EAC7B,KAAK,wBAAwB,EAC7B,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EACL,kBAAkB,EAClB,iCAAiC,EACjC,wBAAwB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,KAAK,YAAY,EACjB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,iCAAiC,EACjC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,iBAAiB,CAAC"}
|
package/dist/Contract/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ANSWER_LENGTH_HEADER, ANSWER_STATUS_HEADER, EARLY_ANSWER_PROTOCOL_VERSION, MAX_ANSWER_BYTES, MAX_TRAILER_BYTES, RESPONSE_POLICY_HEADER, RUN_OUTCOME_HEADER, TRAILER_LENGTH_BYTES, } from './EarlyAnswer.js';
|
|
2
|
-
export { concurrencyProblem, DEFAULT_EARLY_TRIGGER_CONCURRENCY, declaredRunBudgetSeconds, declaredTriggerConcurrency, MAX_TRIGGER_CONCURRENCY, runBudgetProblem, ManifestResource, ResponsePolicy, TriggerKind, TriggerMetadata, WorkflowManifest, WorkflowManifestEndpoint, } from './Manifest.js';
|
|
2
|
+
export { concurrencyProblem, DEFAULT_EARLY_TRIGGER_CONCURRENCY, declaredRunBudgetSeconds, declaredTriggerConcurrency, MAX_TRIGGER_CONCURRENCY, runBudgetProblem, decodeWorkflowSteps, FlowStep, FlowStepKind, ManifestResource, ResponsePolicy, TriggerKind, STEP_DETAIL_RUNS, STEP_EXTRA_FAILED_LINES, STEP_LOG_FIELDS, TriggerMetadata, WorkflowManifest, WorkflowManifestEndpoint, WorkflowSteps, } from './Manifest.js';
|
|
3
3
|
export { ResourcesRuntimeApi, RuntimeResourcesBadRequestError, RuntimeResourcesConflictError, RuntimeResourcesForbiddenError, RuntimeResourcesNotFoundError, RuntimeResourcesUnauthorizedError, RuntimeResourcesUnavailableError, SelectResourceRuntimeInputSchema, SelectResourceRuntimeOutputSchema, } from './RuntimeApi.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Contract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EAGpB,6BAA6B,EAE7B,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,kBAAkB,EAClB,iCAAiC,EACjC,wBAAwB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Contract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EAGpB,6BAA6B,EAE7B,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,kBAAkB,EAClB,iCAAiC,EACjC,wBAAwB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,gBAAgB,EAEhB,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EAEf,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,iCAAiC,EACjC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,iBAAiB,CAAC"}
|
package/dist/LogContext.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface LogSpanOptions<A, E> {
|
|
|
25
25
|
readonly fields: (exit: Exit.Exit<A, E> | undefined) => LogFields;
|
|
26
26
|
/** The `err` of a failed end; `none` completes the span. */
|
|
27
27
|
readonly failure: (exit: Exit.Exit<A, E>) => Option.Option<unknown>;
|
|
28
|
+
/** Writes the span lines whatever `References.MinimumLogLevel` holds; other lines keep the level. */
|
|
29
|
+
readonly ignoreMinimumLogLevel?: boolean | undefined;
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
30
32
|
* Legacy `startSpan`: logs `<name> started.`, then `<name> completed.` or `<name> failed.` with
|
package/dist/LogContext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogContext.d.ts","sourceRoot":"","sources":["../src/LogContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LogContext.d.ts","sourceRoot":"","sources":["../src/LogContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAyB,MAAM,QAAQ,CAAC;AAE5F,2GAA2G;AAC3G,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAElD,uFAAuF;AACvF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,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
|
-
import { Cause, Clock, Context, Effect, Exit, Option, Predicate } from 'effect';
|
|
1
|
+
import { Cause, Clock, Context, Effect, Exit, Option, Predicate, References } from 'effect';
|
|
2
2
|
/** Legacy correlation header: read from the caller, echoed on responses, and sent on outbound requests. */
|
|
3
3
|
export const TRACE_HEADER = 'x-unnbound-trace-id';
|
|
4
4
|
export const CurrentLogContext = Context.Reference('@temper/workflow/LogContext', {
|
|
@@ -17,13 +17,16 @@ const childOf = (parent) => {
|
|
|
17
17
|
* `duration` in ms, all inside one child span, including when the span is interrupted.
|
|
18
18
|
*/
|
|
19
19
|
export const logSpan = (name, options) => (effect) => Effect.withFiber((fiber) => Effect.gen(function* () {
|
|
20
|
+
const write = (line) => options.ignoreMinimumLogLevel === true
|
|
21
|
+
? Effect.provideService(line, References.MinimumLogLevel, 'All')
|
|
22
|
+
: line;
|
|
20
23
|
const started = yield* Clock.monotonicTimeNanos;
|
|
21
|
-
yield* Effect.logInfo(`${name} started.`, options.fields(undefined));
|
|
24
|
+
yield* write(Effect.logInfo(`${name} started.`, options.fields(undefined)));
|
|
22
25
|
return yield* Effect.onExit(effect, (exit) => Effect.flatMap(Clock.monotonicTimeNanos, (ended) => {
|
|
23
26
|
const duration = Math.round(Number(ended - started) / 1_000_000);
|
|
24
27
|
return Option.match(options.failure(exit), {
|
|
25
|
-
onNone: () => Effect.logInfo(`${name} completed.`, { ...options.fields(exit), duration }),
|
|
26
|
-
onSome: (err) => Effect.logError(`${name} failed.`, { ...options.fields(exit), err, duration }),
|
|
28
|
+
onNone: () => write(Effect.logInfo(`${name} completed.`, { ...options.fields(exit), duration })),
|
|
29
|
+
onSome: (err) => write(Effect.logError(`${name} failed.`, { ...options.fields(exit), err, duration })),
|
|
27
30
|
});
|
|
28
31
|
}));
|
|
29
32
|
}).pipe(Effect.provideService(CurrentLogContext, childOf(fiber.getRef(CurrentLogContext)))));
|
package/dist/LogContext.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogContext.js","sourceRoot":"","sources":["../src/LogContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"LogContext.js","sourceRoot":"","sources":["../src/LogContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE5F,2GAA2G;AAC3G,MAAM,CAAC,MAAM,YAAY,GAAG,qBAAqB,CAAC;AAalD,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAyB,6BAA6B,EAAE;IACxG,YAAY,EAAE,GAAG,EAAE,CAAC,SAAS;CAC9B,CAAC,CAAC;AAeH,MAAM,OAAO,GAAG,CAAC,MAA8B,EAAc,EAAE;IAC7D,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IACnC,OAAO;QACL,GAAG,MAAM;QACT,OAAO,EAAE,MAAM,EAAE,OAAO,IAAI,MAAM,CAAC,UAAU,EAAE;QAC/C,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE;KAC7E,CAAC;AACJ,CAAC,CAAC;AAWF;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAClB,CAAO,IAAY,EAAE,OAA6B,EAAE,EAAE,CACtD,CAAI,MAA8B,EAA0B,EAAE,CAC5D,MAAM,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CACzB,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,KAAK,GAAG,CAAC,IAAyB,EAAuB,EAAE,CAC/D,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;
|
|
1
|
+
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../src/Logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAIN,KAAK,EAMN,MAAM,QAAQ,CAAC;AAwWhB,2GAA2G;AAC3G,eAAO,MAAM,WAAW,cAAe,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,KAAG,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,WAAW,CASlG,CAAC;AAEJ,eAAO,MAAM,eAAe,SAAU,MAAM,KAAG,IAE9C,CAAC"}
|