@ontemper/sdk 0.10.4 → 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/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/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,MAAM,cAAc,oDAA4C,CAAC;AACxE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AAQxD,gHAAgH;AAChH,eAAO,MAAM,iCAAiC,OAAQ,CAAC;AACvD,qGAAqG;AACrG,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,eAAe;;IAGxB;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;;;IAKH,iHAAiH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AQ,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,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,CAA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AM;IACnB,OAAO,EAAE,eAAe;IACxB,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;CAClG,CAAC,CAAC;AAGH,0GAA0G;AAC1G,MAAM,CAAC,MAAM,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;IACzC,2KAA2K;IAC3K,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;CAChD,CAAC,CAAC;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAC9B,MAAM,CAAC,mBAAmB,CAAC,aAAa,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
|
+
{"version":3,"file":"StaticGraph.d.ts","sourceRoot":"","sources":["../../src/Contract/StaticGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,EAAU,MAAM,QAAQ,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,WAAW,CAAC;AAErD,uHAAuH;AACvH,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AAEH,uHAAuH;AACvH,eAAO,MAAM,uBAAuB;;;;;;EAMlC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,CACtC,WAAW,EAAE,gBAAgB,CAAC,aAAa,CAAC,KACzC,MAAM,CAAC,MAAM,CAAC,eAAe,CAA+C,CAAC;AAIlF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,eAAgB,MAAM,GAAG,SAAS,KAAG,OAI9E,CAAC;AAEF,mHAAmH;AACnH,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,OAAO,GAAG,aAAa,CAAC;AAE5E,4GAA4G;AAC5G,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC;AAExG;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,aAAc,iBAAiB,KAAG,uBAQzE,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Option, Predicate, Result, Schema, SemVer } from 'effect';
|
|
2
|
+
/**
|
|
3
|
+
* The first SDK version whose build derives `staticGraph` (FLOW-10). A reader compares a manifest's `sdkVersion`
|
|
4
|
+
* with it; no manifest carries this value.
|
|
5
|
+
*/
|
|
6
|
+
export const STATIC_GRAPH_MIN_SDK_VERSION = '0.12.0';
|
|
7
|
+
/** Why the static resolver could not resolve a call; the graph marks the call and invents no step for it (FLOW-10). */
|
|
8
|
+
export const StaticFlowUnresolvedReason = Schema.Literals([
|
|
9
|
+
'dynamic-call',
|
|
10
|
+
'ambiguous-layer',
|
|
11
|
+
'external-module',
|
|
12
|
+
'recursion',
|
|
13
|
+
]);
|
|
14
|
+
/** Runs of a loop body at one time: a number above 1, `unbounded`, or `dynamic` when the code decides at run time. */
|
|
15
|
+
export const StaticFlowConcurrency = Schema.Union([Schema.Number, Schema.Literals(['unbounded', 'dynamic'])]);
|
|
16
|
+
// The identifier names the recursive list once in an OpenAPI document, so the API reuses this schema as it is.
|
|
17
|
+
const Nodes = Schema.Array(Schema.suspend(() => StaticFlowNode)).annotate({ identifier: 'StaticFlowNodes' });
|
|
18
|
+
export const StaticFlowNode = Schema.Union([
|
|
19
|
+
Schema.Struct({ kind: Schema.Literal('step'), stepId: Schema.String, body: Nodes }),
|
|
20
|
+
Schema.Struct({
|
|
21
|
+
kind: Schema.Literal('branch'),
|
|
22
|
+
arms: Schema.Array(Schema.Struct({ label: Schema.optionalKey(Schema.String), nodes: Nodes })),
|
|
23
|
+
}),
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
kind: Schema.Literal('loop'),
|
|
26
|
+
body: Nodes,
|
|
27
|
+
concurrency: Schema.optionalKey(StaticFlowConcurrency),
|
|
28
|
+
}),
|
|
29
|
+
Schema.Struct({ kind: Schema.Literal('parallel'), lanes: Schema.Array(Nodes) }),
|
|
30
|
+
Schema.Struct({
|
|
31
|
+
kind: Schema.Literal('unresolved'),
|
|
32
|
+
reason: StaticFlowUnresolvedReason,
|
|
33
|
+
label: Schema.optionalKey(Schema.String),
|
|
34
|
+
}),
|
|
35
|
+
]);
|
|
36
|
+
/** The possible Step calls of one endpoint, which `group`, `name`, `method`, and `path` identify as in `endpoints`. */
|
|
37
|
+
export const FlowStaticGraphEndpoint = Schema.Struct({
|
|
38
|
+
group: Schema.String,
|
|
39
|
+
name: Schema.String,
|
|
40
|
+
method: Schema.String,
|
|
41
|
+
path: Schema.String,
|
|
42
|
+
nodes: Nodes,
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* The manifest's `staticGraph` (FLOW-10): for each endpoint, sorted like `endpoints`, the Step calls its code can
|
|
46
|
+
* make. It holds no offsets, source text, or Run state, so the same code gives the same bytes. A call in it
|
|
47
|
+
* is possible, never observed.
|
|
48
|
+
*/
|
|
49
|
+
export const FlowStaticGraph = Schema.Struct({
|
|
50
|
+
version: Schema.Literal(1),
|
|
51
|
+
endpoints: Schema.Array(FlowStaticGraphEndpoint),
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* The graph of a manifest's `staticGraph`, or `none` when it is absent or has a form this reader does not
|
|
55
|
+
* know, such as a node kind of a later SDK. Readers call this instead of reading `staticGraph`.
|
|
56
|
+
*/
|
|
57
|
+
export const decodeWorkflowStaticGraph = Schema.decodeUnknownOption(FlowStaticGraph);
|
|
58
|
+
const MIN_VERSION = SemVer.parseUnsafe(STATIC_GRAPH_MIN_SDK_VERSION);
|
|
59
|
+
/**
|
|
60
|
+
* Whether `sdkVersion` is the SemVer 2.0.0 text of an SDK that derives `staticGraph`. A prerelease comes before its
|
|
61
|
+
* release, so `0.12.0-rc.1` does not. The bundle build calls this function with the field of a loaded manifest as
|
|
62
|
+
* it is, so the two read a version one way, and a value that is no text is no version.
|
|
63
|
+
*/
|
|
64
|
+
export const meetsStaticGraphMinSdkVersion = (sdkVersion) => {
|
|
65
|
+
if (!Predicate.isString(sdkVersion))
|
|
66
|
+
return false;
|
|
67
|
+
const version = SemVer.parse(sdkVersion);
|
|
68
|
+
return Result.isSuccess(version) && SemVer.isGreaterThanOrEqualTo(version.success, MIN_VERSION);
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Tells an empty graph from an unavailable one (FLOW-10, FLOW-12). It reads the raw `steps` key, so a catalog
|
|
72
|
+
* that `decodeWorkflowSteps` does not know still counts as declared steps.
|
|
73
|
+
*
|
|
74
|
+
* | `sdkVersion` | `steps` | `staticGraph` | Result |
|
|
75
|
+
* | ---------------------------- | ------- | ------------------- | ------------- |
|
|
76
|
+
* | absent, not SemVer, or older | any | any | `unavailable` |
|
|
77
|
+
* | derives the graph | absent | absent | `empty` |
|
|
78
|
+
* | derives the graph | present | absent | `unavailable` |
|
|
79
|
+
* | derives the graph | any | does not decode | `unavailable` |
|
|
80
|
+
* | derives the graph | any | decodes | `available` |
|
|
81
|
+
*/
|
|
82
|
+
export const classifyManifestStaticGraph = (manifest) => {
|
|
83
|
+
if (!meetsStaticGraphMinSdkVersion(manifest.sdkVersion))
|
|
84
|
+
return 'unavailable';
|
|
85
|
+
if (manifest.staticGraph !== undefined) {
|
|
86
|
+
return Option.isSome(decodeWorkflowStaticGraph(manifest.staticGraph)) ? 'available' : 'unavailable';
|
|
87
|
+
}
|
|
88
|
+
// The build omits the graph when derivation fails, so declared steps without a graph are not an empty graph.
|
|
89
|
+
const declaresSteps = 'steps' in manifest && manifest.steps !== undefined;
|
|
90
|
+
return declaresSteps ? 'unavailable' : 'empty';
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=StaticGraph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StaticGraph.js","sourceRoot":"","sources":["../../src/Contract/StaticGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGnE;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,QAAQ,CAAC;AAErD,uHAAuH;AACvH,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,QAAQ,CAAC;IACxD,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,WAAW;CACZ,CAAC,CAAC;AAGH,sHAAsH;AACtH,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAwB9G,+GAA+G;AAC/G,MAAM,KAAK,GAAgD,MAAM,CAAC,KAAK,CACrE,MAAM,CAAC,OAAO,C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C,CAAC,CAAC,aAAa,CAAC;IACtG,CAAC;IACD,6GAA6G;IAC7G,MAAM,aAAa,GAAG,OAAO,IAAI,QAAQ,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,CAAC;IAC1E,OAAO,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC;AACjD,CAAC,CAAC"}
|
package/dist/Contract/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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
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
|
+
export { classifyManifestStaticGraph, decodeWorkflowStaticGraph, FlowStaticGraph, FlowStaticGraphEndpoint, meetsStaticGraphMinSdkVersion, STATIC_GRAPH_MIN_SDK_VERSION, type StaticFlowArm, StaticFlowConcurrency, StaticFlowNode, StaticFlowUnresolvedReason, type StaticGraphAvailability, type StaticGraphSource, } from './StaticGraph.js';
|
|
4
5
|
export { ResourcesRuntimeApi, RuntimeResourcesBadRequestError, RuntimeResourcesConflictError, RuntimeResourcesForbiddenError, RuntimeResourcesNotFoundError, RuntimeResourcesTooManyRequestsError, RuntimeResourcesUnauthorizedError, RuntimeResourcesUnavailableError, SelectResourceRuntimeInputSchema, SelectResourceRuntimeOutputSchema, } from './RuntimeApi.js';
|
|
5
6
|
//# 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,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,oCAAoC,EACpC,iCAAiC,EACjC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,iBAAiB,CAAC"}
|
|
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,2BAA2B,EAC3B,yBAAyB,EACzB,eAAe,EACf,uBAAuB,EACvB,6BAA6B,EAC7B,4BAA4B,EAC5B,KAAK,aAAa,EAClB,qBAAqB,EACrB,cAAc,EACd,0BAA0B,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,GACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,oCAAoC,EACpC,iCAAiC,EACjC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,iBAAiB,CAAC"}
|
package/dist/Contract/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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
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
|
+
export { classifyManifestStaticGraph, decodeWorkflowStaticGraph, FlowStaticGraph, FlowStaticGraphEndpoint, meetsStaticGraphMinSdkVersion, STATIC_GRAPH_MIN_SDK_VERSION, StaticFlowConcurrency, StaticFlowNode, StaticFlowUnresolvedReason, } from './StaticGraph.js';
|
|
3
4
|
export { ResourcesRuntimeApi, RuntimeResourcesBadRequestError, RuntimeResourcesConflictError, RuntimeResourcesForbiddenError, RuntimeResourcesNotFoundError, RuntimeResourcesTooManyRequestsError, RuntimeResourcesUnauthorizedError, RuntimeResourcesUnavailableError, SelectResourceRuntimeInputSchema, SelectResourceRuntimeOutputSchema, } from './RuntimeApi.js';
|
|
4
5
|
//# 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,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,oCAAoC,EACpC,iCAAiC,EACjC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,iBAAiB,CAAC"}
|
|
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,2BAA2B,EAC3B,yBAAyB,EACzB,eAAe,EACf,uBAAuB,EACvB,6BAA6B,EAC7B,4BAA4B,EAE5B,qBAAqB,EACrB,cAAc,EACd,0BAA0B,GAG3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,oCAAoC,EACpC,iCAAiC,EACjC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,iBAAiB,CAAC"}
|
package/dist/Manifest.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApi, type HttpApiGroup } from 'effect/http-api';
|
|
2
2
|
import { type BuiltWorkflowManifest } from './Contract/Manifest.js';
|
|
3
|
-
export declare const SDK_VERSION = "0.
|
|
3
|
+
export declare const SDK_VERSION = "0.12.0";
|
|
4
4
|
export declare const RUNTIME_API_VERSION = 1;
|
|
5
5
|
/** The route the SDK serves for platform probes; an API declaring `GET` on it collides with it on every request. */
|
|
6
6
|
export declare const HEALTHCHECK_PATH = "/healthcheck";
|
package/dist/Manifest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../src/Manifest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../src/Manifest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAGL,KAAK,qBAAqB,EAO3B,MAAM,wBAAwB,CAAC;AAYhC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,oHAAoH;AACpH,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAyF/C,kHAAkH;AAClH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;IACzC,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC9C;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,EAAE,SAAS,MAAM,EAAE,MAAM,SAAS,YAAY,CAAC,UAAU,OAChF,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,KAC/B,aAiEF,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,YAAY,GAAI,EAAE,SAAS,MAAM,EAAE,MAAM,SAAS,YAAY,CAAC,UAAU,OAC/E,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,KAC/B,qBAAoD,CAAC"}
|