@ontemper/sdk 0.11.0 → 0.12.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 +134 -12
- package/dist/Contract/Manifest.d.ts +3 -2
- package/dist/Contract/Manifest.d.ts.map +1 -1
- package/dist/Contract/Manifest.js +2 -0
- package/dist/Contract/Manifest.js.map +1 -1
- package/dist/Contract/RuntimeApi.d.ts +8 -33
- package/dist/Contract/RuntimeApi.d.ts.map +1 -1
- package/dist/Contract/RuntimeApi.js +8 -32
- package/dist/Contract/RuntimeApi.js.map +1 -1
- package/dist/Contract/StaticGraph.d.ts +96 -0
- package/dist/Contract/StaticGraph.d.ts.map +1 -0
- package/dist/Contract/StaticGraph.js +92 -0
- package/dist/Contract/StaticGraph.js.map +1 -0
- package/dist/Contract/index.d.ts +1 -0
- package/dist/Contract/index.d.ts.map +1 -1
- package/dist/Contract/index.js +1 -0
- package/dist/Contract/index.js.map +1 -1
- package/dist/Manifest.d.ts +1 -1
- package/dist/Manifest.d.ts.map +1 -1
- package/dist/Manifest.js +17 -75
- package/dist/Manifest.js.map +1 -1
- package/dist/ResourcesToken.js +2 -2
- package/dist/ResourcesToken.js.map +1 -1
- package/dist/RuntimeResources.d.ts +3 -9
- package/dist/RuntimeResources.d.ts.map +1 -1
- package/dist/RuntimeResources.js +13 -53
- package/dist/RuntimeResources.js.map +1 -1
- package/dist/StaticGraph.d.ts +87 -0
- package/dist/StaticGraph.d.ts.map +1 -0
- package/dist/StaticGraph.js +237 -0
- package/dist/StaticGraph.js.map +1 -0
- package/dist/StaticGraphAnalyzer.d.ts +7 -0
- package/dist/StaticGraphAnalyzer.d.ts.map +1 -0
- package/dist/StaticGraphAnalyzer.js +162 -0
- package/dist/StaticGraphAnalyzer.js.map +1 -0
- package/dist/StaticGraphCalls.d.ts +15 -0
- package/dist/StaticGraphCalls.d.ts.map +1 -0
- package/dist/StaticGraphCalls.js +1028 -0
- package/dist/StaticGraphCalls.js.map +1 -0
- package/dist/StaticGraphDeclarations.d.ts +43 -0
- package/dist/StaticGraphDeclarations.d.ts.map +1 -0
- package/dist/StaticGraphDeclarations.js +443 -0
- package/dist/StaticGraphDeclarations.js.map +1 -0
- package/dist/StaticGraphProcess.d.ts +2 -0
- package/dist/StaticGraphProcess.d.ts.map +1 -0
- package/dist/StaticGraphProcess.js +55 -0
- package/dist/StaticGraphProcess.js.map +1 -0
- package/dist/StaticGraphProject.d.ts +65 -0
- package/dist/StaticGraphProject.d.ts.map +1 -0
- package/dist/StaticGraphProject.js +303 -0
- package/dist/StaticGraphProject.js.map +1 -0
- package/dist/StaticGraphProtocol.d.ts +82 -0
- package/dist/StaticGraphProtocol.d.ts.map +1 -0
- package/dist/StaticGraphProtocol.js +36 -0
- package/dist/StaticGraphProtocol.js.map +1 -0
- package/dist/StaticGraphRuntime.d.ts +25 -0
- package/dist/StaticGraphRuntime.d.ts.map +1 -0
- package/dist/StaticGraphRuntime.js +60 -0
- package/dist/StaticGraphRuntime.js.map +1 -0
- package/dist/StaticGraphValues.d.ts +243 -0
- package/dist/StaticGraphValues.d.ts.map +1 -0
- package/dist/StaticGraphValues.js +845 -0
- package/dist/StaticGraphValues.js.map +1 -0
- package/dist/StepCatalogRules.d.ts +33 -0
- package/dist/StepCatalogRules.d.ts.map +1 -0
- package/dist/StepCatalogRules.js +64 -0
- package/dist/StepCatalogRules.js.map +1 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +67 -9
- package/dist/cli.js.map +1 -1
- package/package.json +13 -4
package/README.md
CHANGED
|
@@ -73,6 +73,18 @@ Invoke one request without a listener:
|
|
|
73
73
|
temper-workflow invoke --entrypoint src/index.ts --method POST --path /sync --body '{"key":"value"}'
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
+
Read the endpoints, the steps, and the possible step calls from the source, without running the workflow:
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
temper-workflow flow --project . --entrypoint src/index.ts
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
The `flow` command prints one JSON line. See [Static step graph](#static-step-graph).
|
|
83
|
+
|
|
84
|
+
The `temper-workflow` bin starts under Node. The `dev` and `invoke` commands then run again under Bun, which
|
|
85
|
+
bundles the entrypoint and loads the workflow, so they need `bun` on `PATH`. The `serve` and `flow` commands stay
|
|
86
|
+
under Node.
|
|
87
|
+
|
|
76
88
|
## Invocation context
|
|
77
89
|
|
|
78
90
|
`fetch(request, context)` receives the exact object the Firecracker guest builds:
|
|
@@ -343,6 +355,107 @@ function, still writes its lines, also with an id or kind that the build refuses
|
|
|
343
355
|
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.
|
|
344
356
|
`sdk/workflow-examples/step-flow` is a complete example.
|
|
345
357
|
|
|
358
|
+
### Static step graph
|
|
359
|
+
|
|
360
|
+
The build also derives the possible step calls of each endpoint from the TypeScript source. It writes them
|
|
361
|
+
to the manifest as `staticGraph`, beside `steps`. You do not write this graph, and the SDK has no API to
|
|
362
|
+
declare it. In a separate process, the SDK parses the source into a TypeScript AST and resolves the calls with
|
|
363
|
+
a static resolver. No type checker runs. The SDK does not import or run workflow code, and it loads no plugin
|
|
364
|
+
from `tsconfig.json`.
|
|
365
|
+
|
|
366
|
+
The analyzer needs the `typescript` package, version 5 or 6, which is an optional peer dependency. A workflow
|
|
367
|
+
project has it as a development dependency. An install without it, such as a production image, starts no
|
|
368
|
+
analysis: `temper-workflow flow` answers `unavailable`, and nothing else in the SDK loads `typescript`.
|
|
369
|
+
|
|
370
|
+
The analyzer reads files inside the project folder only. A path or a symbolic link that leaves the folder
|
|
371
|
+
reads as a file that does not exist: an import of it is an `external-module` call. When `tsconfig.json`, or a
|
|
372
|
+
config that it names in `extends`, is not a file inside the folder, the analyzer reads nothing. From a Bun
|
|
373
|
+
process, the SDK starts the analyzer with the first `node` on `PATH` that is outside the project and outside
|
|
374
|
+
every `node_modules` folder. Without such a `node`, it starts no analyzer: the build omits the graph with a
|
|
375
|
+
warning, and `temper-workflow flow` answers `unavailable`. The SDK never starts the analyzer with Bun, because Bun
|
|
376
|
+
loads the preloads that a `bunfig.toml` in the working directory names. For the same reason the bin starts under
|
|
377
|
+
Node: `temper-workflow flow` in a checkout runs no preload of that checkout. The analyzer starts in the root folder
|
|
378
|
+
of the file system, with an empty environment. A `node` on `PATH` that is the launcher of a version manager
|
|
379
|
+
then reads no `.tool-versions`, `mise.toml`, or `package.json` of the project.
|
|
380
|
+
|
|
381
|
+
A call in the graph is a possible call. Only the step lines of a Run say that a step ran.
|
|
382
|
+
|
|
383
|
+
For each endpoint, in the order of `endpoints`, the graph holds a list of nodes in code order:
|
|
384
|
+
|
|
385
|
+
| Node | Meaning |
|
|
386
|
+
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
387
|
+
| `step` | One call of a step: `step.run`, or a function that `step.fn` built. `body` holds the calls that its effect makes. |
|
|
388
|
+
| `branch` | One arm runs: `if`, `switch`, `? :`, `Effect.catchTag`, `Effect.catchTags`, `Effect.catch`, `Effect.matchEffect`. An arm without nodes skips. |
|
|
389
|
+
| `loop` | The body can run many times: `for`, `while`, `Effect.forEach`, `Effect.retry`. `concurrency` is a number above 1, `unbounded`, or `dynamic`. |
|
|
390
|
+
| `parallel` | Lanes that run at the same time: `Effect.all` with a `concurrency` above 1, `Effect.race`. |
|
|
391
|
+
| `unresolved` | A call that the source does not name. `reason` says why. The graph invents no step for it. |
|
|
392
|
+
|
|
393
|
+
The analyzer follows imports (`./Steps.js` names `./Steps.ts`), namespace imports, re-exports, `Effect.fn`,
|
|
394
|
+
pipes, and named callbacks. It resolves a method of an Effect service through the layers that the workflow
|
|
395
|
+
entrypoint wires (`Layer.effect`, `Layer.succeed`, `Layer.mergeAll`, `Layer.provide`). A layer that the
|
|
396
|
+
entrypoint does not wire, such as a test layer, is not read. A function that only builds an effect, and
|
|
397
|
+
does not yield or return it, runs nothing. `Effect.provide`, `Effect.provideService`,
|
|
398
|
+
`Effect.provideServiceEffect`, and `Effect.updateService` in the workflow code each count as one more
|
|
399
|
+
implementation of the service that they replace. A layer that the analyzer cannot read can replace every
|
|
400
|
+
service. So can a layer that `Effect.provide` takes from a parameter of a function: the analyzer does not follow
|
|
401
|
+
it to the calls of that function. The exception is the context that a handler group captures with
|
|
402
|
+
`Effect.map(Effect.context(), (clients) => …)` and provides again.
|
|
403
|
+
|
|
404
|
+
The analyzer reads the exports of `Effect` in `effect@4.0.6` by name. A call of an export that it does not
|
|
405
|
+
model is one `dynamic-call` with the label `Effect.<name>`. It knows the value that `yield*` gives through
|
|
406
|
+
`Effect.gen`, `Effect.succeed`, `Effect.sync`, a workflow function, and the combinators that keep that value,
|
|
407
|
+
such as `Effect.orDie`, `Effect.tap`, and `Effect.acquireRelease`. A method call on any other yielded value is
|
|
408
|
+
a `dynamic-call`. `Effect.cached` runs nothing where the code calls it. The effect that it holds runs where the
|
|
409
|
+
code yields its result.
|
|
410
|
+
|
|
411
|
+
The calls after a guard that leaves, such as `if (skip) return;` or `if (skip) yield* Effect.fail(error);`, are
|
|
412
|
+
one arm of a `branch`. The other arm is empty. After a statement in which a path can leave and another path
|
|
413
|
+
can run on, such as a block with a nested guard, a loop, or a `try`, the calls after it are one arm beside an
|
|
414
|
+
empty arm. The graph does not keep the paths of that statement apart, so it can show a sequence of calls that
|
|
415
|
+
no Run makes. `Effect.all` reads each member of its list or record as an effect that runs. A property of a
|
|
416
|
+
record replaces an earlier property of the same name. A conditional spread, such as
|
|
417
|
+
`...(flag ? { job } : {})`, is a `branch`. When a conditional spread and another member of the record have the
|
|
418
|
+
same name, the effects of that name are one `dynamic-call`. A spread
|
|
419
|
+
(`{ ...jobs }`, `[...jobs]`) reads the members of the list or record that the source names. A list, a record, or
|
|
420
|
+
a spread that the source does not name is one `dynamic-call`. So is a call through a name that the analyzer does
|
|
421
|
+
not follow: the name of `import x = require()`, of a namespace, or of a `var` in a block.
|
|
422
|
+
|
|
423
|
+
| `reason` | The call that the source does not name |
|
|
424
|
+
| ----------------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
425
|
+
| `dynamic-call` | A function or an effect from a parameter, `this`, a computed key, or a `let` variable, or a step that is made at run time. |
|
|
426
|
+
| `ambiguous-layer` | A service with no wired implementation, with more than one, or behind a layer that an Effect makes, such as `Layer.unwrap`. |
|
|
427
|
+
| `external-module` | A `@workspace/*` package or a file outside the project. The analyzer does not read them. |
|
|
428
|
+
| `recursion` | A function that the analyzer is already inside of. The graph marks the call and does not follow it again. |
|
|
429
|
+
|
|
430
|
+
The steps in the graph come from `Step.make` calls at module level with a literal `id`, `title`, and `kind`.
|
|
431
|
+
The endpoints come from `HttpApi`, `HttpApiGroup`, and `HttpApiEndpoint` calls with literal names and paths.
|
|
432
|
+
|
|
433
|
+
The extraction never fails a build. It stops at 5 seconds, 24 named calls inside one another, 600 nodes,
|
|
434
|
+
256 KiB of graph JSON, 512 MiB of heap, 400 source files, or 4 MiB of files read. The analyzer checks the
|
|
435
|
+
size of a file before it reads the file. When it stops, or when the analyzer cannot read the source, the
|
|
436
|
+
build prints `warning: Static step graph omitted from the workflow manifest: <reason>` and writes the
|
|
437
|
+
manifest without `staticGraph`. It never writes a part of a graph. A workflow without steps gets no
|
|
438
|
+
`staticGraph`, so its manifest keeps its bytes. The same source gives the same `staticGraph` bytes.
|
|
439
|
+
|
|
440
|
+
`temper-workflow flow` prints the same data for a checkout, as
|
|
441
|
+
`{ status, sdkVersion, endpoints, steps, staticGraph, stepProblems, warnings }`:
|
|
442
|
+
|
|
443
|
+
- `ok`: every part was derived. `steps` is `[]` only when the source declares no step.
|
|
444
|
+
- `incomplete`: the endpoints were read, and the steps or their calls were not.
|
|
445
|
+
- `unavailable`: nothing was read, for example after a syntax error or the deadline. The output then ends with
|
|
446
|
+
`failureKind`: `source` when the source or a budget stopped the analyzer, and `runtime` when the analyzer gave
|
|
447
|
+
no answer (no `node`, no `typescript`, the deadline, or a crash).
|
|
448
|
+
|
|
449
|
+
A part that was not derived is `null`, never an empty list, and `warnings` says why. `stepProblems` holds the
|
|
450
|
+
step problems that the source alone shows, with the texts of the build. The bundle build loads the workflow,
|
|
451
|
+
so it stays the check before a deploy. `TEMPER_WORKFLOW_FLOW_TIMEOUT_MS` sets the deadline in milliseconds.
|
|
452
|
+
Code calls the same extraction with `extractWorkflowFlow` from `@temper/workflow/static-graph`.
|
|
453
|
+
|
|
454
|
+
A reader of a manifest decodes `staticGraph` apart from the manifest and apart from `steps`, with
|
|
455
|
+
`decodeWorkflowStaticGraph` from `@temper/workflow/contract`. `classifyManifestStaticGraph` answers
|
|
456
|
+
`available`, `empty` (the workflow declares no step), or `unavailable` (an SDK before
|
|
457
|
+
`STATIC_GRAPH_MIN_SDK_VERSION`, a graph that the build omitted, or a graph that the reader does not know).
|
|
458
|
+
|
|
346
459
|
## Invoke in a test
|
|
347
460
|
|
|
348
461
|
```ts
|
|
@@ -526,10 +639,13 @@ npm install --save-exact @temper/workflow@npm:@ontemper/sdk@<version>
|
|
|
526
639
|
A published version never changes. The workflow template and the examples pin one exact
|
|
527
640
|
version; `pnpm sdk:pin` moves them all together.
|
|
528
641
|
|
|
529
|
-
The package has
|
|
642
|
+
The package has ten entry points: `@temper/workflow`, `@temper/workflow/testing`,
|
|
530
643
|
`@temper/workflow/contract`, `@temper/workflow/sftp`, `@temper/workflow/sftp/testing`,
|
|
531
|
-
`@temper/workflow/edi`, `@temper/workflow/as2`, `@temper/workflow/as2/testing`,
|
|
532
|
-
|
|
644
|
+
`@temper/workflow/edi`, `@temper/workflow/as2`, `@temper/workflow/as2/testing`, `@temper/workflow/resources`,
|
|
645
|
+
and `@temper/workflow/static-graph`.
|
|
646
|
+
Only `/sftp` loads `ssh2`. No entry point loads `typescript`: only the analyzer process that `/static-graph` and
|
|
647
|
+
`temper-workflow flow` start loads it. It is an optional peer dependency, so a production install and a workflow
|
|
648
|
+
bundle never contain it. In `/resources`, only a PostgreSQL pool loads `pg` and `ws`, and only AWS MSK IAM loads
|
|
533
649
|
`@aws-sdk/credential-providers` and `aws-msk-iam-sasl-signer-js` (optional peer dependencies).
|
|
534
650
|
`@temper/workflow/contract` holds the runtime Resources HttpApi and the
|
|
535
651
|
manifest, trigger, and invocation schemas that the platform imports. Workflow code rarely needs it.
|
|
@@ -546,16 +662,22 @@ version, and the new pins.
|
|
|
546
662
|
| Another workflow repository | `npm install @temper/workflow@file:/tmp/sdk/<file>.tgz` |
|
|
547
663
|
| A dev stack | After CI publishes your version, deploy it with `scripts/seed-example-workflow.ts --sdk-version <version>` |
|
|
548
664
|
|
|
549
|
-
Every SDK source change needs a new version. Release it in the same pull request:
|
|
550
|
-
|
|
551
|
-
1.
|
|
552
|
-
`src/Manifest.ts`.
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
665
|
+
Every SDK source change needs a new stable version. Release it in the same pull request:
|
|
666
|
+
|
|
667
|
+
1. When you open the pull request, set the next stable version in `package.json` and the same
|
|
668
|
+
version in `SDK_VERSION` in `src/Manifest.ts`. Pick it from the version table below: a patch for a
|
|
669
|
+
fix or any other change, a minor before 1.0 for a new feature or a breaking change.
|
|
670
|
+
`scripts/check-sdk-consistency.ts` fails if the two versions differ.
|
|
671
|
+
2. Push. After a person or `unnbound-release-bot[bot]` approves the head, run the Workflow SDK
|
|
672
|
+
release workflow on `stg` with `pr=<N>`. CI publishes that exact stable version as `latest` in
|
|
673
|
+
about 5 minutes. A prerelease version (`x.y.z-<issue>.1`) publishes under `pr-<N>` without
|
|
674
|
+
approval. Set one only when someone asks to test the change before merge. A prerelease never
|
|
675
|
+
merges: the pin check rejects a prerelease consumer pin.
|
|
676
|
+
3. Run `pnpm sdk:pin`. It waits for npm, moves the template, every example, and the MCP catalog
|
|
677
|
+
stub to the new version, and regenerates their lockfiles. `--version <version>` pins another
|
|
678
|
+
version.
|
|
557
679
|
4. Commit and push the pins. The Quality Gate step "Check the workflow SDK pins against npm" passes.
|
|
558
|
-
5.
|
|
680
|
+
5. Merge when the checks and the review pass.
|
|
559
681
|
|
|
560
682
|
CI fails when npm already has the version from other SDK source: raise the version. CI also fails
|
|
561
683
|
when your branch lacks the highest version on npm, or your version is not above it: rebase the pull
|
|
@@ -231,6 +231,7 @@ export declare const WorkflowManifest: Schema.Struct<{
|
|
|
231
231
|
}>]>>, never>;
|
|
232
232
|
}>>;
|
|
233
233
|
readonly steps: Schema.optionalKey<Schema.Unknown>;
|
|
234
|
+
readonly staticGraph: Schema.optionalKey<Schema.Unknown>;
|
|
234
235
|
}>;
|
|
235
236
|
export type WorkflowManifest = typeof WorkflowManifest.Type;
|
|
236
237
|
/**
|
|
@@ -238,8 +239,8 @@ export type WorkflowManifest = typeof WorkflowManifest.Type;
|
|
|
238
239
|
* know, such as a step kind of a later SDK. Readers call this instead of reading `steps`.
|
|
239
240
|
*/
|
|
240
241
|
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'> & {
|
|
242
|
+
/** What `makeManifest` writes: `steps` passed the FLOW-2 checks, so it is a `WorkflowSteps`. The build adds `staticGraph` later. */
|
|
243
|
+
export type BuiltWorkflowManifest = Omit<WorkflowManifest, 'steps' | 'staticGraph'> & {
|
|
243
244
|
readonly steps?: WorkflowSteps;
|
|
244
245
|
};
|
|
245
246
|
//# 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,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErD,eAAO,MAAM,WAAW,sEAA8D,CAAC;AACvF,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;AAElD,eAAO,MA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BAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,aAAa,CACxD,CAAC;AAE5C,oIAAoI;AACpI,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,aAAa,CAAC,GAAG;IACpF,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;CAChC,CAAC"}
|
|
@@ -167,6 +167,8 @@ export const WorkflowManifest = Schema.Struct({
|
|
|
167
167
|
endpoints: Schema.Array(WorkflowManifestEndpoint),
|
|
168
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
169
|
steps: Schema.optionalKey(Schema.Unknown),
|
|
170
|
+
// Absent without steps, before SDK 0.12, or when derivation failed (FLOW-10). Unknown, so a later graph form cannot fail a deploy; read it with decodeWorkflowStaticGraph.
|
|
171
|
+
staticGraph: Schema.optionalKey(Schema.Unknown),
|
|
170
172
|
});
|
|
171
173
|
/**
|
|
172
174
|
* The catalog of a manifest's `steps`, or `none` when it is absent or has a shape this reader does not
|
|
@@ -1 +1 @@
|
|
|
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,MA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
/** The answer the caller holds at `ifGeneration` is still current; the caller keeps it and its redaction masks. */
|
|
9
|
-
export declare const RuntimeUnchangedSchema: Schema.Struct<{
|
|
10
|
-
readonly unchanged: Schema.Literal<true>;
|
|
11
|
-
readonly generation: Schema.String;
|
|
12
|
-
}>;
|
|
13
8
|
export declare const SelectResourceRuntimeInputSchema: Schema.Struct<{
|
|
14
9
|
readonly resourceTypeKey: Schema.String;
|
|
15
10
|
readonly match: Schema.$Record<Schema.String, Schema.String>;
|
|
@@ -79,11 +74,9 @@ export declare class RuntimeResourcesTooManyRequestsError extends RuntimeResourc
|
|
|
79
74
|
}
|
|
80
75
|
export declare const ResourcesRuntimeApi: HttpApi.HttpApi<"resources-runtime-api", HttpApiGroup.HttpApiGroup<"resourcesRuntime", HttpApiEndpoint.HttpApiEndpoint<"inspectResource", "POST", "/api/v1/runtime/resources/inspect", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
81
76
|
readonly key: Schema.String;
|
|
82
|
-
readonly ifGeneration: Schema.optionalKey<Schema.String>;
|
|
83
77
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
84
78
|
readonly authorization: Schema.optionalKey<Schema.String>;
|
|
85
|
-
}>>, Schema.toCodecJson<Schema.
|
|
86
|
-
readonly generation: Schema.optionalKey<Schema.String>;
|
|
79
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
87
80
|
readonly redactionMasks: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
88
81
|
readonly value: Schema.Struct<{
|
|
89
82
|
readonly id: Schema.String;
|
|
@@ -103,10 +96,7 @@ export declare const ResourcesRuntimeApi: HttpApi.HttpApi<"resources-runtime-api
|
|
|
103
96
|
readonly description: Schema.NullOr<Schema.String>;
|
|
104
97
|
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
105
98
|
}>;
|
|
106
|
-
}
|
|
107
|
-
readonly unchanged: Schema.Literal<true>;
|
|
108
|
-
readonly generation: Schema.String;
|
|
109
|
-
}>]>>, Schema.toCodecJson<Schema.decodeTo<typeof RuntimeResourcesUnauthorizedError, Schema.Struct<{
|
|
99
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<typeof RuntimeResourcesUnauthorizedError, Schema.Struct<{
|
|
110
100
|
readonly error: Schema.Literal<"Unauthorized">;
|
|
111
101
|
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesForbiddenError, Schema.Struct<{
|
|
112
102
|
readonly error: Schema.Literal<"Forbidden">;
|
|
@@ -146,17 +136,12 @@ export declare const ResourcesRuntimeApi: HttpApi.HttpApi<"resources-runtime-api
|
|
|
146
136
|
readonly error: Schema.String;
|
|
147
137
|
}>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"resolveResource", "POST", "/api/v1/runtime/resources/resolve", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
148
138
|
readonly key: Schema.String;
|
|
149
|
-
readonly ifGeneration: Schema.optionalKey<Schema.String>;
|
|
150
139
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
151
140
|
readonly authorization: Schema.optionalKey<Schema.String>;
|
|
152
|
-
}>>, Schema.toCodecJson<Schema.
|
|
153
|
-
readonly generation: Schema.optionalKey<Schema.String>;
|
|
141
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
154
142
|
readonly redactionMasks: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
155
143
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
156
|
-
}
|
|
157
|
-
readonly unchanged: Schema.Literal<true>;
|
|
158
|
-
readonly generation: Schema.String;
|
|
159
|
-
}>]>>, Schema.toCodecJson<Schema.decodeTo<typeof RuntimeResourcesUnauthorizedError, Schema.Struct<{
|
|
144
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<typeof RuntimeResourcesUnauthorizedError, Schema.Struct<{
|
|
160
145
|
readonly error: Schema.Literal<"Unauthorized">;
|
|
161
146
|
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesForbiddenError, Schema.Struct<{
|
|
162
147
|
readonly error: Schema.Literal<"Forbidden">;
|
|
@@ -172,17 +157,12 @@ export declare const ResourcesRuntimeApi: HttpApi.HttpApi<"resources-runtime-api
|
|
|
172
157
|
readonly error: Schema.String;
|
|
173
158
|
}>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"resolveVariable", "POST", "/api/v1/runtime/variables/resolve", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
174
159
|
readonly key: Schema.String;
|
|
175
|
-
readonly ifGeneration: Schema.optionalKey<Schema.String>;
|
|
176
160
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
177
161
|
readonly authorization: Schema.optionalKey<Schema.String>;
|
|
178
|
-
}>>, Schema.toCodecJson<Schema.
|
|
179
|
-
readonly generation: Schema.optionalKey<Schema.String>;
|
|
162
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
180
163
|
readonly redactionMasks: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
181
164
|
readonly value: Schema.String;
|
|
182
|
-
}
|
|
183
|
-
readonly unchanged: Schema.Literal<true>;
|
|
184
|
-
readonly generation: Schema.String;
|
|
185
|
-
}>]>>, Schema.toCodecJson<Schema.decodeTo<typeof RuntimeResourcesUnauthorizedError, Schema.Struct<{
|
|
165
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<typeof RuntimeResourcesUnauthorizedError, Schema.Struct<{
|
|
186
166
|
readonly error: Schema.Literal<"Unauthorized">;
|
|
187
167
|
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesForbiddenError, Schema.Struct<{
|
|
188
168
|
readonly error: Schema.Literal<"Forbidden">;
|
|
@@ -197,21 +177,16 @@ export declare const ResourcesRuntimeApi: HttpApi.HttpApi<"resources-runtime-api
|
|
|
197
177
|
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesTooManyRequestsError, Schema.Struct<{
|
|
198
178
|
readonly error: Schema.String;
|
|
199
179
|
}>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"selectResource", "POST", "/api/v1/runtime/resources/select", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
200
|
-
readonly ifGeneration: Schema.optionalKey<Schema.String>;
|
|
201
180
|
readonly resourceTypeKey: Schema.String;
|
|
202
181
|
readonly match: Schema.$Record<Schema.String, Schema.String>;
|
|
203
182
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
204
183
|
readonly authorization: Schema.optionalKey<Schema.String>;
|
|
205
|
-
}>>, Schema.toCodecJson<Schema.
|
|
206
|
-
readonly generation: Schema.optionalKey<Schema.String>;
|
|
184
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
207
185
|
readonly redactionMasks: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
208
186
|
readonly value: Schema.Struct<{
|
|
209
187
|
readonly key: Schema.String;
|
|
210
188
|
}>;
|
|
211
|
-
}
|
|
212
|
-
readonly unchanged: Schema.Literal<true>;
|
|
213
|
-
readonly generation: Schema.String;
|
|
214
|
-
}>]>>, Schema.toCodecJson<Schema.decodeTo<typeof RuntimeResourcesUnauthorizedError, Schema.Struct<{
|
|
189
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<typeof RuntimeResourcesUnauthorizedError, Schema.Struct<{
|
|
215
190
|
readonly error: Schema.Literal<"Unauthorized">;
|
|
216
191
|
}>, never, never> | Schema.decodeTo<typeof RuntimeResourcesForbiddenError, Schema.Struct<{
|
|
217
192
|
readonly error: Schema.Literal<"Forbidden">;
|
|
@@ -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;
|
|
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;AAWH,sGAAsG;AACtG,eAAO,MAAM,wBAAwB;;;EAGnC,CAAC;;;;AAqBH,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;;;;AAEJ,wHAAwH;AACxH,qBAAa,oCAAqC,SAAQ,yCAGzD;CAAG;AA2HJ,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAA0E,CAAC"}
|
|
@@ -11,44 +11,22 @@ const AuthorizationHeadersSchema = Schema.Struct({
|
|
|
11
11
|
const ResolveKeyInputSchema = Schema.Struct({
|
|
12
12
|
key: Schema.String.annotate({ description: 'Variable or resource key.' }),
|
|
13
13
|
});
|
|
14
|
-
/** The organization's resource generation, a decimal integer: answers read at one generation stay equal while it stays. */
|
|
15
|
-
const GenerationSchema = Schema.String.check(Schema.isPattern(/^[1-9][0-9]{0,18}$/u, { message: 'Expected a resource generation' })).annotate({
|
|
16
|
-
description: "The organization's resource generation. Every write a runtime read can see raises it.",
|
|
17
|
-
});
|
|
18
|
-
const revalidationField = {
|
|
19
|
-
ifGeneration: Schema.optionalKey(GenerationSchema.annotate({
|
|
20
|
-
description: 'The generation of the answer the caller holds. While it is current, the answer is `unchanged` and carries no value.',
|
|
21
|
-
})),
|
|
22
|
-
};
|
|
23
|
-
const generationField = { generation: Schema.optionalKey(GenerationSchema) };
|
|
24
|
-
/** The answer the caller holds at `ifGeneration` is still current; the caller keeps it and its redaction masks. */
|
|
25
|
-
export const RuntimeUnchangedSchema = Schema.Struct({
|
|
26
|
-
unchanged: Schema.Literal(true),
|
|
27
|
-
generation: GenerationSchema,
|
|
28
|
-
});
|
|
29
|
-
const RevalidatedKeyInputSchema = Schema.Struct({ ...ResolveKeyInputSchema.fields, ...revalidationField });
|
|
30
14
|
export const SelectResourceRuntimeInputSchema = Schema.Struct({
|
|
31
15
|
resourceTypeKey: Schema.String,
|
|
32
16
|
match: Schema.Record(Schema.String, Schema.String).annotate({
|
|
33
17
|
description: 'Exactly one selectable field to match on (enforced by the service).',
|
|
34
18
|
}),
|
|
35
19
|
});
|
|
36
|
-
const SelectResourceRuntimeRequestSchema = Schema.Struct({
|
|
37
|
-
...SelectResourceRuntimeInputSchema.fields,
|
|
38
|
-
...revalidationField,
|
|
39
|
-
});
|
|
40
20
|
/** Masks ride along so the caller can redact log output that embeds secret material. */
|
|
41
21
|
const redactionMasksField = {
|
|
42
22
|
redactionMasks: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
43
23
|
};
|
|
44
24
|
const VariableValueOutputSchema = Schema.Struct({
|
|
45
25
|
value: Schema.String,
|
|
46
|
-
...generationField,
|
|
47
26
|
...redactionMasksField,
|
|
48
27
|
});
|
|
49
28
|
const ResolvedResourceOutputSchema = Schema.Struct({
|
|
50
29
|
value: Schema.Json,
|
|
51
|
-
...generationField,
|
|
52
30
|
...redactionMasksField,
|
|
53
31
|
});
|
|
54
32
|
const JsonObjectSchema = Schema.Record(Schema.String, Schema.Json).annotate({ description: 'JSON object.' });
|
|
@@ -79,7 +57,6 @@ export const RuntimeInspectedResourceSchema = Schema.Struct({
|
|
|
79
57
|
});
|
|
80
58
|
const InspectedResourceOutputSchema = Schema.Struct({
|
|
81
59
|
value: RuntimeInspectedResourceSchema,
|
|
82
|
-
...generationField,
|
|
83
60
|
...redactionMasksField,
|
|
84
61
|
});
|
|
85
62
|
export const SelectResourceRuntimeOutputSchema = Schema.Struct({
|
|
@@ -87,7 +64,6 @@ export const SelectResourceRuntimeOutputSchema = Schema.Struct({
|
|
|
87
64
|
});
|
|
88
65
|
const SelectResourceRuntimeResponseSchema = Schema.Struct({
|
|
89
66
|
value: SelectResourceRuntimeOutputSchema,
|
|
90
|
-
...generationField,
|
|
91
67
|
...redactionMasksField,
|
|
92
68
|
});
|
|
93
69
|
const AccessTokenKeyField = {
|
|
@@ -167,26 +143,26 @@ const runtimeErrors = [
|
|
|
167
143
|
const ResourcesRuntimeHttpApiGroup = HttpApiGroup.make('resourcesRuntime')
|
|
168
144
|
.add(HttpApiEndpoint.post('resolveVariable', '/variables/resolve', {
|
|
169
145
|
headers: AuthorizationHeadersSchema,
|
|
170
|
-
payload:
|
|
171
|
-
success:
|
|
146
|
+
payload: ResolveKeyInputSchema,
|
|
147
|
+
success: VariableValueOutputSchema,
|
|
172
148
|
error: runtimeErrors,
|
|
173
149
|
}))
|
|
174
150
|
.add(HttpApiEndpoint.post('inspectResource', '/resources/inspect', {
|
|
175
151
|
headers: AuthorizationHeadersSchema,
|
|
176
|
-
payload:
|
|
177
|
-
success:
|
|
152
|
+
payload: ResolveKeyInputSchema,
|
|
153
|
+
success: InspectedResourceOutputSchema,
|
|
178
154
|
error: runtimeErrors,
|
|
179
155
|
}))
|
|
180
156
|
.add(HttpApiEndpoint.post('resolveResource', '/resources/resolve', {
|
|
181
157
|
headers: AuthorizationHeadersSchema,
|
|
182
|
-
payload:
|
|
183
|
-
success:
|
|
158
|
+
payload: ResolveKeyInputSchema,
|
|
159
|
+
success: ResolvedResourceOutputSchema,
|
|
184
160
|
error: runtimeErrors,
|
|
185
161
|
}))
|
|
186
162
|
.add(HttpApiEndpoint.post('selectResource', '/resources/select', {
|
|
187
163
|
headers: AuthorizationHeadersSchema,
|
|
188
|
-
payload:
|
|
189
|
-
success:
|
|
164
|
+
payload: SelectResourceRuntimeInputSchema,
|
|
165
|
+
success: SelectResourceRuntimeResponseSchema,
|
|
190
166
|
error: runtimeErrors,
|
|
191
167
|
}))
|
|
192
168
|
.add(HttpApiEndpoint.post('readAccessToken', '/resources/access-token/read', {
|
|
@@ -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,
|
|
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,EA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KAAK,EAAE,aAAa;CACrB,CAAC,CACH;KACA,GAAG,CACF,eAAe,CAAC,IAAI,CAAC,iBAAiB,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,GAAG,CACF,eAAe,CAAC,IAAI,CAAC,iBAAiB,EAAE,8BAA8B,EAAE;IACtE,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,2BAA2B;IACpC,KAAK,EAAE,aAAa;CACrB,CAAC,CACH;KACA,GAAG,CACF,eAAe,CAAC,IAAI,CAAC,kBAAkB,EAAE,+BAA+B,EAAE;IACxE,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,4BAA4B;IACrC,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"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Option, Schema } from 'effect';
|
|
2
|
+
import type { WorkflowManifest } from './Manifest.js';
|
|
3
|
+
/**
|
|
4
|
+
* The first SDK version whose build derives `staticGraph` (FLOW-10). A reader compares a manifest's `sdkVersion`
|
|
5
|
+
* with it; no manifest carries this value.
|
|
6
|
+
*/
|
|
7
|
+
export declare const STATIC_GRAPH_MIN_SDK_VERSION = "0.12.0";
|
|
8
|
+
/** Why the static resolver could not resolve a call; the graph marks the call and invents no step for it (FLOW-10). */
|
|
9
|
+
export declare const StaticFlowUnresolvedReason: Schema.Literals<readonly ["dynamic-call", "ambiguous-layer", "external-module", "recursion"]>;
|
|
10
|
+
export type StaticFlowUnresolvedReason = typeof StaticFlowUnresolvedReason.Type;
|
|
11
|
+
/** Runs of a loop body at one time: a number above 1, `unbounded`, or `dynamic` when the code decides at run time. */
|
|
12
|
+
export declare const StaticFlowConcurrency: Schema.Union<readonly [Schema.Number, Schema.Literals<readonly ["unbounded", "dynamic"]>]>;
|
|
13
|
+
export type StaticFlowConcurrency = typeof StaticFlowConcurrency.Type;
|
|
14
|
+
/**
|
|
15
|
+
* One possible call of an endpoint, in code order. A sequence is an array: a step holds the calls its code
|
|
16
|
+
* makes, a branch runs exactly one arm (an empty arm skips), and a loop may run its body many times.
|
|
17
|
+
*/
|
|
18
|
+
export type StaticFlowNode = {
|
|
19
|
+
readonly kind: 'step';
|
|
20
|
+
readonly stepId: string;
|
|
21
|
+
readonly body: ReadonlyArray<StaticFlowNode>;
|
|
22
|
+
} | {
|
|
23
|
+
readonly kind: 'branch';
|
|
24
|
+
readonly arms: ReadonlyArray<StaticFlowArm>;
|
|
25
|
+
} | {
|
|
26
|
+
readonly kind: 'loop';
|
|
27
|
+
readonly body: ReadonlyArray<StaticFlowNode>;
|
|
28
|
+
readonly concurrency?: StaticFlowConcurrency;
|
|
29
|
+
} | {
|
|
30
|
+
readonly kind: 'parallel';
|
|
31
|
+
readonly lanes: ReadonlyArray<ReadonlyArray<StaticFlowNode>>;
|
|
32
|
+
} | {
|
|
33
|
+
readonly kind: 'unresolved';
|
|
34
|
+
readonly reason: StaticFlowUnresolvedReason;
|
|
35
|
+
readonly label?: string;
|
|
36
|
+
};
|
|
37
|
+
/** One alternative of a branch; `label` names its role, such as `then`, `else`, or `catch:CarrierCallFailed`. */
|
|
38
|
+
export interface StaticFlowArm {
|
|
39
|
+
readonly label?: string;
|
|
40
|
+
readonly nodes: ReadonlyArray<StaticFlowNode>;
|
|
41
|
+
}
|
|
42
|
+
export declare const StaticFlowNode: Schema.Codec<StaticFlowNode>;
|
|
43
|
+
/** The possible Step calls of one endpoint, which `group`, `name`, `method`, and `path` identify as in `endpoints`. */
|
|
44
|
+
export declare const FlowStaticGraphEndpoint: Schema.Struct<{
|
|
45
|
+
readonly group: Schema.String;
|
|
46
|
+
readonly name: Schema.String;
|
|
47
|
+
readonly method: Schema.String;
|
|
48
|
+
readonly path: Schema.String;
|
|
49
|
+
readonly nodes: Schema.Codec<readonly StaticFlowNode[], readonly StaticFlowNode[], never, never>;
|
|
50
|
+
}>;
|
|
51
|
+
export type FlowStaticGraphEndpoint = typeof FlowStaticGraphEndpoint.Type;
|
|
52
|
+
/**
|
|
53
|
+
* The manifest's `staticGraph` (FLOW-10): for each endpoint, sorted like `endpoints`, the Step calls its code can
|
|
54
|
+
* make. It holds no offsets, source text, or Run state, so the same code gives the same bytes. A call in it
|
|
55
|
+
* is possible, never observed.
|
|
56
|
+
*/
|
|
57
|
+
export declare const FlowStaticGraph: Schema.Struct<{
|
|
58
|
+
readonly version: Schema.Literal<1>;
|
|
59
|
+
readonly endpoints: Schema.$Array<Schema.Struct<{
|
|
60
|
+
readonly group: Schema.String;
|
|
61
|
+
readonly name: Schema.String;
|
|
62
|
+
readonly method: Schema.String;
|
|
63
|
+
readonly path: Schema.String;
|
|
64
|
+
readonly nodes: Schema.Codec<readonly StaticFlowNode[], readonly StaticFlowNode[], never, never>;
|
|
65
|
+
}>>;
|
|
66
|
+
}>;
|
|
67
|
+
export type FlowStaticGraph = typeof FlowStaticGraph.Type;
|
|
68
|
+
/**
|
|
69
|
+
* The graph of a manifest's `staticGraph`, or `none` when it is absent or has a form this reader does not
|
|
70
|
+
* know, such as a node kind of a later SDK. Readers call this instead of reading `staticGraph`.
|
|
71
|
+
*/
|
|
72
|
+
export declare const decodeWorkflowStaticGraph: (staticGraph: WorkflowManifest['staticGraph']) => Option.Option<FlowStaticGraph>;
|
|
73
|
+
/**
|
|
74
|
+
* Whether `sdkVersion` is the SemVer 2.0.0 text of an SDK that derives `staticGraph`. A prerelease comes before its
|
|
75
|
+
* release, so `0.12.0-rc.1` does not. The bundle build calls this function with the field of a loaded manifest as
|
|
76
|
+
* it is, so the two read a version one way, and a value that is no text is no version.
|
|
77
|
+
*/
|
|
78
|
+
export declare const meetsStaticGraphMinSdkVersion: (sdkVersion: string | undefined) => boolean;
|
|
79
|
+
/** What a reader knows of a manifest's graph: it holds one, the workflow declares no step, or none can be read. */
|
|
80
|
+
export type StaticGraphAvailability = 'available' | 'empty' | 'unavailable';
|
|
81
|
+
/** The manifest fields the classification reads; `steps` and `staticGraph` stay as written, not decoded. */
|
|
82
|
+
export type StaticGraphSource = Partial<Pick<WorkflowManifest, 'sdkVersion' | 'steps' | 'staticGraph'>>;
|
|
83
|
+
/**
|
|
84
|
+
* Tells an empty graph from an unavailable one (FLOW-10, FLOW-12). It reads the raw `steps` key, so a catalog
|
|
85
|
+
* that `decodeWorkflowSteps` does not know still counts as declared steps.
|
|
86
|
+
*
|
|
87
|
+
* | `sdkVersion` | `steps` | `staticGraph` | Result |
|
|
88
|
+
* | ---------------------------- | ------- | ------------------- | ------------- |
|
|
89
|
+
* | absent, not SemVer, or older | any | any | `unavailable` |
|
|
90
|
+
* | derives the graph | absent | absent | `empty` |
|
|
91
|
+
* | derives the graph | present | absent | `unavailable` |
|
|
92
|
+
* | derives the graph | any | does not decode | `unavailable` |
|
|
93
|
+
* | derives the graph | any | decodes | `available` |
|
|
94
|
+
*/
|
|
95
|
+
export declare const classifyManifestStaticGraph: (manifest: StaticGraphSource) => StaticGraphAvailability;
|
|
96
|
+
//# sourceMappingURL=StaticGraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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