@shipfox/api-workflows 12.1.0 → 12.3.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.
Files changed (159) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/CHANGELOG.md +45 -0
  3. package/README.md +20 -0
  4. package/dist/config.d.ts +11 -0
  5. package/dist/config.d.ts.map +1 -0
  6. package/dist/config.js +56 -0
  7. package/dist/config.js.map +1 -0
  8. package/dist/core/entities/job.d.ts +1 -1
  9. package/dist/core/entities/job.d.ts.map +1 -1
  10. package/dist/core/entities/step.d.ts +2 -2
  11. package/dist/core/entities/step.d.ts.map +1 -1
  12. package/dist/core/errors.d.ts +18 -1
  13. package/dist/core/errors.d.ts.map +1 -1
  14. package/dist/core/errors.js +21 -2
  15. package/dist/core/errors.js.map +1 -1
  16. package/dist/core/step-config/assemble-run-context.d.ts +15 -5
  17. package/dist/core/step-config/assemble-run-context.d.ts.map +1 -1
  18. package/dist/core/step-config/assemble-run-context.js +77 -27
  19. package/dist/core/step-config/assemble-run-context.js.map +1 -1
  20. package/dist/core/step-config/fields.d.ts +5 -0
  21. package/dist/core/step-config/fields.d.ts.map +1 -1
  22. package/dist/core/step-config/fields.js +21 -3
  23. package/dist/core/step-config/fields.js.map +1 -1
  24. package/dist/core/step-config/index.d.ts +1 -1
  25. package/dist/core/step-config/index.d.ts.map +1 -1
  26. package/dist/core/step-config/index.js +1 -1
  27. package/dist/core/step-config/index.js.map +1 -1
  28. package/dist/core/step-config/job-output-limits.d.ts +11 -0
  29. package/dist/core/step-config/job-output-limits.d.ts.map +1 -0
  30. package/dist/core/step-config/job-output-limits.js +88 -0
  31. package/dist/core/step-config/job-output-limits.js.map +1 -0
  32. package/dist/core/step-config/materialize-workflow-model.d.ts +1 -1
  33. package/dist/core/step-config/materialize-workflow-model.d.ts.map +1 -1
  34. package/dist/core/step-config/materialize-workflow-model.js +47 -18
  35. package/dist/core/step-config/materialize-workflow-model.js.map +1 -1
  36. package/dist/db/db.d.ts +50 -50
  37. package/dist/db/index.d.ts +2 -2
  38. package/dist/db/index.d.ts.map +1 -1
  39. package/dist/db/index.js +1 -1
  40. package/dist/db/index.js.map +1 -1
  41. package/dist/db/job-listeners.d.ts.map +1 -1
  42. package/dist/db/job-listeners.js +6 -5
  43. package/dist/db/job-listeners.js.map +1 -1
  44. package/dist/db/schema/job-executions.d.ts +3 -3
  45. package/dist/db/schema/job-listener-events.d.ts +1 -1
  46. package/dist/db/schema/jobs.d.ts +7 -7
  47. package/dist/db/schema/outbox.d.ts +1 -1
  48. package/dist/db/schema/step-attempts.d.ts +2 -2
  49. package/dist/db/schema/steps.d.ts +5 -5
  50. package/dist/db/schema/workflow-run-attempts.d.ts +3 -3
  51. package/dist/db/schema/workflow-run-counters.d.ts +1 -1
  52. package/dist/db/schema/workflow-runs.d.ts +2 -2
  53. package/dist/db/workflow-runs/job-executions.d.ts.map +1 -1
  54. package/dist/db/workflow-runs/job-executions.js +4 -2
  55. package/dist/db/workflow-runs/job-executions.js.map +1 -1
  56. package/dist/db/workflow-runs/jobs.d.ts.map +1 -1
  57. package/dist/db/workflow-runs/jobs.js +33 -3
  58. package/dist/db/workflow-runs/jobs.js.map +1 -1
  59. package/dist/db/workflow-runs/outbox.d.ts +1 -0
  60. package/dist/db/workflow-runs/outbox.d.ts.map +1 -1
  61. package/dist/db/workflow-runs/outbox.js +1 -0
  62. package/dist/db/workflow-runs/outbox.js.map +1 -1
  63. package/dist/db/workflow-runs/steps.d.ts +28 -0
  64. package/dist/db/workflow-runs/steps.d.ts.map +1 -1
  65. package/dist/db/workflow-runs/steps.js +49 -1
  66. package/dist/db/workflow-runs/steps.js.map +1 -1
  67. package/dist/db/workflow-runs.d.ts +2 -2
  68. package/dist/db/workflow-runs.d.ts.map +1 -1
  69. package/dist/db/workflow-runs.js +1 -1
  70. package/dist/db/workflow-runs.js.map +1 -1
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +4 -2
  73. package/dist/index.js.map +1 -1
  74. package/dist/metrics/instance.d.ts +1 -0
  75. package/dist/metrics/instance.d.ts.map +1 -1
  76. package/dist/metrics/instance.js +8 -0
  77. package/dist/metrics/instance.js.map +1 -1
  78. package/dist/presentation/dto/evaluation-trace.d.ts +4 -0
  79. package/dist/presentation/dto/evaluation-trace.d.ts.map +1 -0
  80. package/dist/presentation/dto/evaluation-trace.js +39 -0
  81. package/dist/presentation/dto/evaluation-trace.js.map +1 -0
  82. package/dist/presentation/dto/index.d.ts +2 -1
  83. package/dist/presentation/dto/index.d.ts.map +1 -1
  84. package/dist/presentation/dto/index.js +2 -1
  85. package/dist/presentation/dto/index.js.map +1 -1
  86. package/dist/presentation/dto/job.d.ts.map +1 -1
  87. package/dist/presentation/dto/job.js +6 -0
  88. package/dist/presentation/dto/job.js.map +1 -1
  89. package/dist/presentation/dto/step.d.ts +2 -1
  90. package/dist/presentation/dto/step.d.ts.map +1 -1
  91. package/dist/presentation/dto/step.js +12 -0
  92. package/dist/presentation/dto/step.js.map +1 -1
  93. package/dist/presentation/index.d.ts +1 -1
  94. package/dist/presentation/index.d.ts.map +1 -1
  95. package/dist/presentation/index.js +1 -1
  96. package/dist/presentation/index.js.map +1 -1
  97. package/dist/presentation/routes/get-step-attempt-detail.d.ts +3 -0
  98. package/dist/presentation/routes/get-step-attempt-detail.d.ts.map +1 -0
  99. package/dist/presentation/routes/get-step-attempt-detail.js +38 -0
  100. package/dist/presentation/routes/get-step-attempt-detail.js.map +1 -0
  101. package/dist/presentation/routes/index.d.ts.map +1 -1
  102. package/dist/presentation/routes/index.js +2 -0
  103. package/dist/presentation/routes/index.js.map +1 -1
  104. package/dist/presentation/routes/project-access.d.ts +1 -1
  105. package/dist/presentation/subscribers/index.d.ts +1 -0
  106. package/dist/presentation/subscribers/index.d.ts.map +1 -1
  107. package/dist/presentation/subscribers/index.js +1 -0
  108. package/dist/presentation/subscribers/index.js.map +1 -1
  109. package/dist/presentation/subscribers/on-failure-annotations.d.ts +5 -0
  110. package/dist/presentation/subscribers/on-failure-annotations.d.ts.map +1 -0
  111. package/dist/presentation/subscribers/on-failure-annotations.js +160 -0
  112. package/dist/presentation/subscribers/on-failure-annotations.js.map +1 -0
  113. package/dist/temporal/activities/index.d.ts +1 -1
  114. package/dist/temporal/activities/index.d.ts.map +1 -1
  115. package/dist/temporal/activities/orchestration-activities.d.ts +1 -1
  116. package/dist/temporal/activities/orchestration-activities.d.ts.map +1 -1
  117. package/dist/temporal/workflows/test-env.d.ts +2 -2
  118. package/dist/tsconfig.test.tsbuildinfo +1 -1
  119. package/package.json +18 -16
  120. package/src/config.test.ts +85 -0
  121. package/src/config.ts +71 -0
  122. package/src/core/errors.ts +44 -2
  123. package/src/core/job-execution.test.ts +1 -0
  124. package/src/core/step-config/assemble-run-context.test.ts +232 -20
  125. package/src/core/step-config/assemble-run-context.ts +126 -28
  126. package/src/core/step-config/fields.ts +42 -3
  127. package/src/core/step-config/index.ts +2 -0
  128. package/src/core/step-config/job-output-limits.ts +130 -0
  129. package/src/core/step-config/materialize-workflow-model.catalog.test.ts +117 -0
  130. package/src/core/step-config/materialize-workflow-model.test.ts +306 -1
  131. package/src/core/step-config/materialize-workflow-model.ts +65 -18
  132. package/src/db/index.ts +4 -0
  133. package/src/db/job-listeners.ts +14 -3
  134. package/src/db/workflow-runs/job-executions.test.ts +207 -1
  135. package/src/db/workflow-runs/job-executions.ts +15 -2
  136. package/src/db/workflow-runs/job-status.test.ts +10 -3
  137. package/src/db/workflow-runs/jobs.test.ts +49 -0
  138. package/src/db/workflow-runs/jobs.ts +53 -6
  139. package/src/db/workflow-runs/outbox.ts +7 -1
  140. package/src/db/workflow-runs/run-create.test.ts +56 -0
  141. package/src/db/workflow-runs/steps.test.ts +148 -0
  142. package/src/db/workflow-runs/steps.ts +105 -1
  143. package/src/db/workflow-runs.ts +4 -0
  144. package/src/index.ts +9 -0
  145. package/src/metrics/instance.ts +10 -0
  146. package/src/presentation/dto/evaluation-trace.ts +27 -0
  147. package/src/presentation/dto/index.ts +2 -1
  148. package/src/presentation/dto/job.ts +6 -0
  149. package/src/presentation/dto/step.test.ts +96 -1
  150. package/src/presentation/dto/step.ts +17 -0
  151. package/src/presentation/index.ts +2 -0
  152. package/src/presentation/routes/get-step-attempt-detail.test.ts +159 -0
  153. package/src/presentation/routes/get-step-attempt-detail.ts +33 -0
  154. package/src/presentation/routes/index.ts +2 -0
  155. package/src/presentation/subscribers/index.ts +4 -0
  156. package/src/presentation/subscribers/on-failure-annotations.test.ts +510 -0
  157. package/src/presentation/subscribers/on-failure-annotations.ts +237 -0
  158. package/test/factories/workflow-model.ts +2 -0
  159. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1,6 +1,6 @@
1
1
  $ shipfox-swc && shipfox-temporal-bundle dist/temporal/workflows/index.js
2
- Successfully compiled: 119 files with swc (757.97ms)
3
- 2026-08-04T14:51:31.477Z [INFO] asset workflow-bundle-a5487a6112facdf4dd9d.js 3.32 MiB [emitted] [immutable] (name: main)
2
+ Successfully compiled: 124 files with swc (710.79ms)
3
+ 2026-08-07T08:46:27.214Z [INFO] asset workflow-bundle-a5487a6112facdf4dd9d.js 3.32 MiB [emitted] [immutable] (name: main)
4
4
  orphan modules 33.5 KiB [orphan] 21 modules
5
5
  runtime modules 1.13 KiB 5 modules
6
6
  modules by path ../../../node_modules/.pnpm/ 970 KiB 196 modules
@@ -16,6 +16,6 @@ optional modules 30 bytes [optional]
16
16
  __temporal_custom_payload_converter (ignored) 15 bytes [optional] [built] [code generated]
17
17
  __temporal_custom_failure_converter (ignored) 15 bytes [optional] [built] [code generated]
18
18
  ../../shared/node/temporal/dist/workflow-error-interceptor.js 1.21 KiB [built] [code generated]
19
- webpack 5.107.2 compiled successfully in 7052 ms
20
- 2026-08-04T14:51:31.488Z [INFO] Workflow bundle created { size: '3.32MB' }
19
+ webpack 5.107.2 compiled successfully in 6823 ms
20
+ 2026-08-07T08:46:27.241Z [INFO] Workflow bundle created { size: '3.32MB' }
21
21
  /home/runner/work/shipfox/shipfox/libs/api/workflows/dist/temporal/workflows/index.js: 3476109 bytes
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @shipfox/api-workflows
2
2
 
3
+ ## 12.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4b0731e: Adds workflow troubleshooting details, evaluation traces, failure annotations, runner context, step output metadata, and lazy paginated annotation summaries.
8
+ - a830294: Loads configured runner catalog names when materializing workflow runner labels.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies [4b0731e]
13
+ - Updated dependencies [3e7fe76]
14
+ - @shipfox/api-workflows-dto@12.3.0
15
+ - @shipfox/annotations-dto@12.3.0
16
+ - @shipfox/expression@2.2.0
17
+ - @shipfox/api-definitions-dto@12.3.0
18
+
19
+ ## 12.2.0
20
+
21
+ ### Minor Changes
22
+
23
+ - ce0984d: Preserve structured values when jobs map typed step outputs, normalize them for JSON persistence, and bound materialized job output sizes and entry counts.
24
+
25
+ ### Patch Changes
26
+
27
+ - 214b8f2: Expose execution and run numeric fields as CEL integers, preserve zero-based execution indices,
28
+ and keep listener filter snapshots aligned with live CEL values after persistence.
29
+ - Updated dependencies [78b771c]
30
+ - Updated dependencies [7901a60]
31
+ - Updated dependencies [df2ed79]
32
+ - Updated dependencies [ce0984d]
33
+ - @shipfox/api-runners-dto@12.2.0
34
+ - @shipfox/api-integration-core-dto@12.2.0
35
+ - @shipfox/api-projects-dto@12.2.0
36
+ - @shipfox/runner-labels@0.2.0
37
+ - @shipfox/expression@2.1.0
38
+ - @shipfox/api-workflows-dto@12.2.0
39
+ - @shipfox/workflow-document@3.0.1
40
+ - @shipfox/node-opentelemetry@0.6.4
41
+ - @shipfox/api-definitions-dto@12.2.0
42
+ - @shipfox/api-agent-dto@12.2.0
43
+ - @shipfox/node-fastify@0.4.2
44
+ - @shipfox/node-module@1.0.6
45
+ - @shipfox/node-temporal@0.4.5
46
+ - @shipfox/api-auth-context@12.2.0
47
+
3
48
  ## 12.1.0
4
49
 
5
50
  ### Patch Changes
package/README.md CHANGED
@@ -37,6 +37,26 @@ const run = await runWorkflow(definitions, {
37
37
  });
38
38
  ```
39
39
 
40
+ ## Environment
41
+
42
+ | Variable | Default | Purpose |
43
+ | --- | --- | --- |
44
+ | `RUNNER_CATALOG_PATH` | empty | Optional path to a YAML file mapping runner catalog names to complete runner label sets. |
45
+
46
+ The catalog is loaded and validated once when the Workflows module is imported;
47
+ restart the API after changing the file. An empty YAML document behaves like an
48
+ unset path; a `null` or comment-only document is invalid. Catalog names and
49
+ labels are canonicalized to lowercase.
50
+ Values that do not match a catalog name remain literal labels, so a misspelled
51
+ catalog name can leave a job waiting for a runner that never advertises it.
52
+
53
+ ```yaml
54
+ # runner-catalog.yaml
55
+ shipfox-4cpu:
56
+ - arch.amd64
57
+ - cpu.4
58
+ ```
59
+
40
60
  ## Routes / API / Data Model
41
61
 
42
62
  Workflow routes keep UUIDs in path and query parameters. The run response
@@ -0,0 +1,11 @@
1
+ import { type RunnerCatalog } from '@shipfox/runner-labels';
2
+ export declare const config: Readonly<{
3
+ RUNNER_CATALOG_PATH: string;
4
+ } & import("@shipfox/config").CleanedEnvAccessors>;
5
+ /** Raised when the configured runner catalog cannot be read, parsed, or validated. */
6
+ export declare class RunnerCatalogConfigError extends Error {
7
+ constructor(message: string, options?: ErrorOptions);
8
+ }
9
+ export declare function loadRunnerCatalog(filePath: string): RunnerCatalog;
10
+ export declare const runnerCatalog: Readonly<Record<string, readonly string[]>>;
11
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwC,KAAK,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAGjG,eAAO,MAAM,MAAM;;kDAKjB,CAAC;AAEH,sFAAsF;AACtF,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,YAAY,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,EAGlD;CACF;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,CA4CjE;AAED,eAAO,MAAM,aAAa,6CAAgD,CAAC"}
package/dist/config.js ADDED
@@ -0,0 +1,56 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { createConfig, str } from '@shipfox/config';
3
+ import { MAX_RUNNER_LABELS, parseRunnerCatalog } from '@shipfox/runner-labels';
4
+ import yaml from 'js-yaml';
5
+ export const config = createConfig({
6
+ RUNNER_CATALOG_PATH: str({
7
+ desc: 'Path to the YAML file that maps runner catalog names to complete label sets. Leave it empty to use every job runner value as a literal label. The file is loaded at startup; restart the API after changing it.',
8
+ default: ''
9
+ })
10
+ });
11
+ /** Raised when the configured runner catalog cannot be read, parsed, or validated. */ export class RunnerCatalogConfigError extends Error {
12
+ constructor(message, options){
13
+ super(message, options);
14
+ this.name = 'RunnerCatalogConfigError';
15
+ }
16
+ }
17
+ export function loadRunnerCatalog(filePath) {
18
+ if (filePath === '') return {};
19
+ let contents;
20
+ try {
21
+ contents = readFileSync(filePath, 'utf8');
22
+ } catch (error) {
23
+ throw new RunnerCatalogConfigError(`Cannot read runner catalog config at ${filePath}: ${errorMessage(error)}`, {
24
+ cause: error
25
+ });
26
+ }
27
+ if (contents.trim() === '') return {};
28
+ let raw;
29
+ try {
30
+ raw = yaml.load(contents);
31
+ } catch (error) {
32
+ throw new RunnerCatalogConfigError(`Cannot parse runner catalog config at ${filePath}: ${errorMessage(error)}`, {
33
+ cause: error
34
+ });
35
+ }
36
+ let catalog;
37
+ try {
38
+ catalog = parseRunnerCatalog(raw);
39
+ } catch (error) {
40
+ throw new RunnerCatalogConfigError(`Invalid runner catalog config at ${filePath}: ${errorMessage(error)}`, {
41
+ cause: error
42
+ });
43
+ }
44
+ for (const [name, labels] of Object.entries(catalog)){
45
+ if (labels.length > MAX_RUNNER_LABELS) {
46
+ throw new RunnerCatalogConfigError(`Runner catalog entry "${name}" in ${filePath} has ${labels.length} labels; the maximum is ${MAX_RUNNER_LABELS}.`);
47
+ }
48
+ }
49
+ return catalog;
50
+ }
51
+ export const runnerCatalog = loadRunnerCatalog(config.RUNNER_CATALOG_PATH);
52
+ function errorMessage(error) {
53
+ return error instanceof Error ? error.message : String(error);
54
+ }
55
+
56
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config.ts"],"sourcesContent":["import {readFileSync} from 'node:fs';\nimport {createConfig, str} from '@shipfox/config';\nimport {MAX_RUNNER_LABELS, parseRunnerCatalog, type RunnerCatalog} from '@shipfox/runner-labels';\nimport yaml from 'js-yaml';\n\nexport const config = createConfig({\n RUNNER_CATALOG_PATH: str({\n desc: 'Path to the YAML file that maps runner catalog names to complete label sets. Leave it empty to use every job runner value as a literal label. The file is loaded at startup; restart the API after changing it.',\n default: '',\n }),\n});\n\n/** Raised when the configured runner catalog cannot be read, parsed, or validated. */\nexport class RunnerCatalogConfigError extends Error {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n this.name = 'RunnerCatalogConfigError';\n }\n}\n\nexport function loadRunnerCatalog(filePath: string): RunnerCatalog {\n if (filePath === '') return {};\n\n let contents: string;\n try {\n contents = readFileSync(filePath, 'utf8');\n } catch (error) {\n throw new RunnerCatalogConfigError(\n `Cannot read runner catalog config at ${filePath}: ${errorMessage(error)}`,\n {cause: error},\n );\n }\n\n if (contents.trim() === '') return {};\n\n let raw: unknown;\n try {\n raw = yaml.load(contents);\n } catch (error) {\n throw new RunnerCatalogConfigError(\n `Cannot parse runner catalog config at ${filePath}: ${errorMessage(error)}`,\n {cause: error},\n );\n }\n\n let catalog: RunnerCatalog;\n try {\n catalog = parseRunnerCatalog(raw);\n } catch (error) {\n throw new RunnerCatalogConfigError(\n `Invalid runner catalog config at ${filePath}: ${errorMessage(error)}`,\n {cause: error},\n );\n }\n\n for (const [name, labels] of Object.entries(catalog)) {\n if (labels.length > MAX_RUNNER_LABELS) {\n throw new RunnerCatalogConfigError(\n `Runner catalog entry \"${name}\" in ${filePath} has ${labels.length} labels; the maximum is ${MAX_RUNNER_LABELS}.`,\n );\n }\n }\n\n return catalog;\n}\n\nexport const runnerCatalog = loadRunnerCatalog(config.RUNNER_CATALOG_PATH);\n\nfunction errorMessage(error: unknown): string {\n return error instanceof Error ? error.message : String(error);\n}\n"],"names":["readFileSync","createConfig","str","MAX_RUNNER_LABELS","parseRunnerCatalog","yaml","config","RUNNER_CATALOG_PATH","desc","default","RunnerCatalogConfigError","Error","message","options","name","loadRunnerCatalog","filePath","contents","error","errorMessage","cause","trim","raw","load","catalog","labels","Object","entries","length","runnerCatalog","String"],"mappings":"AAAA,SAAQA,YAAY,QAAO,UAAU;AACrC,SAAQC,YAAY,EAAEC,GAAG,QAAO,kBAAkB;AAClD,SAAQC,iBAAiB,EAAEC,kBAAkB,QAA2B,yBAAyB;AACjG,OAAOC,UAAU,UAAU;AAE3B,OAAO,MAAMC,SAASL,aAAa;IACjCM,qBAAqBL,IAAI;QACvBM,MAAM;QACNC,SAAS;IACX;AACF,GAAG;AAEH,oFAAoF,GACpF,OAAO,MAAMC,iCAAiCC;IAC5C,YAAYC,OAAe,EAAEC,OAAsB,CAAE;QACnD,KAAK,CAACD,SAASC;QACf,IAAI,CAACC,IAAI,GAAG;IACd;AACF;AAEA,OAAO,SAASC,kBAAkBC,QAAgB;IAChD,IAAIA,aAAa,IAAI,OAAO,CAAC;IAE7B,IAAIC;IACJ,IAAI;QACFA,WAAWjB,aAAagB,UAAU;IACpC,EAAE,OAAOE,OAAO;QACd,MAAM,IAAIR,yBACR,CAAC,qCAAqC,EAAEM,SAAS,EAAE,EAAEG,aAAaD,QAAQ,EAC1E;YAACE,OAAOF;QAAK;IAEjB;IAEA,IAAID,SAASI,IAAI,OAAO,IAAI,OAAO,CAAC;IAEpC,IAAIC;IACJ,IAAI;QACFA,MAAMjB,KAAKkB,IAAI,CAACN;IAClB,EAAE,OAAOC,OAAO;QACd,MAAM,IAAIR,yBACR,CAAC,sCAAsC,EAAEM,SAAS,EAAE,EAAEG,aAAaD,QAAQ,EAC3E;YAACE,OAAOF;QAAK;IAEjB;IAEA,IAAIM;IACJ,IAAI;QACFA,UAAUpB,mBAAmBkB;IAC/B,EAAE,OAAOJ,OAAO;QACd,MAAM,IAAIR,yBACR,CAAC,iCAAiC,EAAEM,SAAS,EAAE,EAAEG,aAAaD,QAAQ,EACtE;YAACE,OAAOF;QAAK;IAEjB;IAEA,KAAK,MAAM,CAACJ,MAAMW,OAAO,IAAIC,OAAOC,OAAO,CAACH,SAAU;QACpD,IAAIC,OAAOG,MAAM,GAAGzB,mBAAmB;YACrC,MAAM,IAAIO,yBACR,CAAC,sBAAsB,EAAEI,KAAK,KAAK,EAAEE,SAAS,KAAK,EAAES,OAAOG,MAAM,CAAC,wBAAwB,EAAEzB,kBAAkB,CAAC,CAAC;QAErH;IACF;IAEA,OAAOqB;AACT;AAEA,OAAO,MAAMK,gBAAgBd,kBAAkBT,OAAOC,mBAAmB,EAAE;AAE3E,SAASY,aAAaD,KAAc;IAClC,OAAOA,iBAAiBP,QAAQO,MAAMN,OAAO,GAAGkB,OAAOZ;AACzD"}
@@ -9,7 +9,7 @@ export interface JobCheckout {
9
9
  };
10
10
  persistCredentials: boolean;
11
11
  }
12
- export declare const JOB_STATUS_REASONS: readonly ["dependency_not_completed", "condition_false", "default_gate_rejected", "condition_rejected", "condition_errored", "user_cancelled", "run_cancelled", "timed_out", "runner_lost", "step_failed", "unknown"];
12
+ export declare const JOB_STATUS_REASONS: readonly ['dependency_not_completed', 'condition_false', 'default_gate_rejected', 'condition_rejected', 'condition_errored', 'user_cancelled', 'run_cancelled', 'timed_out', 'runner_lost', 'step_failed', 'unknown'];
13
13
  export type JobStatusReason = (typeof JOB_STATUS_REASONS)[number];
14
14
  export interface Job {
15
15
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"job.d.ts","sourceRoot":"","sources":["../../../src/core/entities/job.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6B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AE,MAAM,GAAG,IAAI,GAAG,eAAe,GAAG,IAAI,CAK9E"}
@@ -3,9 +3,9 @@ import type { EvaluationTraceEntry, EvaluationTraceLimitEntry, ResolvedField, Wo
3
3
  import type { Harness } from '@shipfox/workflow-document';
4
4
  import type { InterpolationUnresolvableField } from '../errors.js';
5
5
  export type StepStatus = 'pending' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'skipped';
6
- export declare const STEP_TYPES: readonly ["setup", "run", "agent", "checkout"];
6
+ export declare const STEP_TYPES: readonly ['setup', 'run', 'agent', 'checkout'];
7
7
  export type StepType = (typeof STEP_TYPES)[number];
8
- export declare const STEP_STATUS_REASONS: readonly ["default_gate_rejected", "condition_rejected", "condition_errored"];
8
+ export declare const STEP_STATUS_REASONS: readonly ['default_gate_rejected', 'condition_rejected', 'condition_errored'];
9
9
  export type StepStatusReason = (typeof STEP_STATUS_REASONS)[number];
10
10
  export declare function toStepStatusReason(value: string | null): StepStatusReason | null;
11
11
  export type StepAttemptLogOutcome = 'drained' | 'abandoned';
@@ -1 +1 @@
1
- {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../src/core/entities/step.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kCAAkC,EAClC,qCAAqC,EACtC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,aAAa,EACb,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAC;AACxD,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,cAAc,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAElG,eAAO,MAAM,UAAU,gDAAiD,CAAC;AAEzE,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,C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AO,CAAC,GAAG,IAAI,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAIhB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAKD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvC,eAAe,EAAE,SAAS,6BAA6B,EAAE,GAAG,IAAI,CAAC;IACjE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC3C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACzC,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -50,7 +50,24 @@ export declare class JobNotFoundError extends Error {
50
50
  }
51
51
  export declare class InvalidJobRunnerLabelsError extends Error {
52
52
  readonly labels: readonly string[];
53
- constructor(labels: readonly string[]);
53
+ readonly requestedLabels: readonly string[];
54
+ constructor(labels: readonly string[], requestedLabels?: readonly string[]);
55
+ }
56
+ export declare class JobOutputTooLargeError extends Error {
57
+ readonly outputKey: string;
58
+ readonly limitBytes: number;
59
+ readonly scope: 'value' | 'total';
60
+ constructor(outputKey: string, limitBytes: number, scope: 'value' | 'total');
61
+ }
62
+ export declare class JobOutputTooManyEntriesError extends Error {
63
+ readonly entryCount: number;
64
+ readonly limitEntries: number;
65
+ constructor(entryCount: number, limitEntries: number);
66
+ }
67
+ export declare class JobOutputNotJsonSafeError extends Error {
68
+ readonly outputKey: string;
69
+ readonly reason: string;
70
+ constructor(outputKey: string, reason: string);
54
71
  }
55
72
  export declare class JobNotActiveError extends Error {
56
73
  readonly jobId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC;AAElE,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,YAAY,EAAE,MAAM;CAIjC;AAED,qBAAa,oBAAqB,SAAQ,KAAK;gBACjC,mBAAmB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;CAMlE;AAED,qBAAa,uBAAwB,SAAQ,KAAK;IACpC,QAAQ,CAAC,WAAW,EAAE,MAAM;gBAAnB,WAAW,EAAE,MAAM;CAIzC;AAED,qBAAa,qBAAsB,SAAQ,KAAK;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM;gBAAnB,WAAW,EAAE,MAAM;CAIzC;AAED,qBAAa,sBAAuB,SAAQ,KAAK;IACnC,QAAQ,CAAC,WAAW,EAAE,MAAM;gBAAnB,WAAW,EAAE,MAAM;CAIzC;AAED,qBAAa,4BAA6B,SAAQ,KAAK;IAEnD,QAAQ,CAAC,YAAY,EAAE,MAAM;gBAApB,YAAY,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE,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E,MAAM,EAAE,KAAK,EAAE,MAAM,EAGxC;CACF;AAKD,qBAAa,qBAAsB,SAAQ,KAAK;IAE5C,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM;IACtB,QAAQ,CAAC,eAAe,EAAE,MAAM;IAChC,QAAQ,CAAC,cAAc,EAAE,MAAM;IAJjC,YACW,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,MAAM,EAMhC;CACF"}
@@ -70,11 +70,30 @@ export class JobNotFoundError extends Error {
70
70
  }
71
71
  }
72
72
  export class InvalidJobRunnerLabelsError extends Error {
73
- constructor(labels){
74
- super(`Job runner labels are invalid: ${labels.join(', ')}`), this.labels = labels;
73
+ constructor(labels, requestedLabels = labels){
74
+ const requestedSuffix = requestedLabels.join(', ') === labels.join(', ') ? '' : ` (requested: ${requestedLabels.join(', ')})`;
75
+ super(`Job runner labels are invalid: ${labels.join(', ')}${requestedSuffix}`), this.labels = labels, this.requestedLabels = requestedLabels;
75
76
  this.name = 'InvalidJobRunnerLabelsError';
76
77
  }
77
78
  }
79
+ export class JobOutputTooLargeError extends Error {
80
+ constructor(outputKey, limitBytes, scope){
81
+ super(scope === 'total' ? `Job outputs exceed the ${limitBytes}-byte total limit (at "${outputKey}")` : `Job output "${outputKey}" exceeds the ${limitBytes}-byte size limit`), this.outputKey = outputKey, this.limitBytes = limitBytes, this.scope = scope;
82
+ this.name = 'JobOutputTooLargeError';
83
+ }
84
+ }
85
+ export class JobOutputTooManyEntriesError extends Error {
86
+ constructor(entryCount, limitEntries){
87
+ super(`Job outputs cannot define more than ${limitEntries} entries (found ${entryCount})`), this.entryCount = entryCount, this.limitEntries = limitEntries;
88
+ this.name = 'JobOutputTooManyEntriesError';
89
+ }
90
+ }
91
+ export class JobOutputNotJsonSafeError extends Error {
92
+ constructor(outputKey, reason){
93
+ super(`Job output "${outputKey}" cannot be persisted as JSON: ${reason}`), this.outputKey = outputKey, this.reason = reason;
94
+ this.name = 'JobOutputNotJsonSafeError';
95
+ }
96
+ }
78
97
  // The job named by a lease is terminal, so it must not exchange its lease for
79
98
  // fresh checkout credentials. Server state is the final gate, not the token.
80
99
  export class JobNotActiveError extends Error {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/core/errors.ts"],"sourcesContent":["import type {JobStatus} from './entities/job.js';\nimport type {WorkflowRunStatus} from './entities/workflow-run.js';\n\nexport class DefinitionNotFoundError extends Error {\n constructor(definitionId: string) {\n super(`Definition not found: ${definitionId}`);\n this.name = 'DefinitionNotFoundError';\n }\n}\n\nexport class ProjectMismatchError extends Error {\n constructor(definitionProjectId: string, requestProjectId: string) {\n super(\n `Definition belongs to project ${definitionProjectId}, but request targets project ${requestProjectId}`,\n );\n this.name = 'ProjectMismatchError';\n }\n}\n\nexport class WorkspaceSuspendedError extends Error {\n constructor(readonly workspaceId: string) {\n super(`Workspace is suspended: ${workspaceId}`);\n this.name = 'WorkspaceSuspendedError';\n }\n}\n\nexport class WorkspaceDeletedError extends Error {\n constructor(readonly workspaceId: string) {\n super(`Workspace is deleted: ${workspaceId}`);\n this.name = 'WorkspaceDeletedError';\n }\n}\n\nexport class WorkspaceNotFoundError extends Error {\n constructor(readonly workspaceId: string) {\n super(`Workspace not found: ${workspaceId}`);\n this.name = 'WorkspaceNotFoundError';\n }\n}\n\nexport class AgentConfigUnresolvableError extends Error {\n constructor(\n readonly definitionId: string,\n options?: ErrorOptions | undefined,\n ) {\n super(`Agent configuration cannot be resolved for definition ${definitionId}`, options);\n this.name = 'AgentConfigUnresolvableError';\n }\n}\n\nexport class AgentIntegrationMaterializationError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'AgentIntegrationMaterializationError';\n }\n}\n\nexport type InterpolationUnresolvableField =\n | 'run'\n | 'env'\n | 'agent.prompt'\n | 'agent.model'\n | 'agent.provider'\n | 'agent.thinking'\n | 'job.runner'\n | 'job.outputs'\n | 'job.execution_name'\n | 'workflow.run_name'\n | 'step.name'\n | 'step.working_directory'\n | 'step.feedback'\n | 'checkout.project'\n | 'checkout.connection'\n | 'checkout.repository'\n | 'checkout.ref'\n | 'checkout.path';\n\nexport class InterpolationUnresolvableError extends Error {\n readonly field: InterpolationUnresolvableField;\n readonly source: string;\n readonly envKey?: string;\n\n constructor(\n readonly definitionId: string,\n params: {\n readonly field: InterpolationUnresolvableField;\n readonly source: string;\n readonly envKey?: string;\n readonly cause?: unknown;\n },\n ) {\n super(interpolationUnresolvableMessage(definitionId, params), {cause: params.cause});\n this.name = 'InterpolationUnresolvableError';\n this.field = params.field;\n this.source = params.source;\n if (params.envKey !== undefined) this.envKey = params.envKey;\n }\n}\n\nfunction interpolationUnresolvableMessage(\n definitionId: string,\n params: {\n readonly field: InterpolationUnresolvableField;\n readonly source: string;\n readonly envKey?: string;\n },\n): string {\n const envSuffix = params.envKey === undefined ? '' : ` (${params.envKey})`;\n return `Workflow interpolation cannot be resolved for definition ${definitionId}: ${params.field}${envSuffix} uses \\`${params.source}\\`. Use has(x) ? x : '' for optional references.`;\n}\n\n/**\n * True when a `runWorkflow` failure can never succeed on retry: the definition is gone or\n * the subscription points at the wrong project. Callers (e.g. the trigger dispatcher) use this\n * to skip a permanently-broken target instead of retrying it forever. Every other failure is\n * treated as transient so at-least-once delivery can converge.\n */\nexport function isPermanentRunWorkflowError(error: unknown): boolean {\n return (\n error instanceof DefinitionNotFoundError ||\n error instanceof ProjectMismatchError ||\n error instanceof AgentConfigUnresolvableError ||\n error instanceof AgentIntegrationMaterializationError ||\n error instanceof InterpolationUnresolvableError ||\n error instanceof InvalidJobRunnerLabelsError\n );\n}\n\nexport class JobNotFoundError extends Error {\n constructor(jobId: string) {\n super(`Job not found or has no steps: ${jobId}`);\n this.name = 'JobNotFoundError';\n }\n}\n\nexport class InvalidJobRunnerLabelsError extends Error {\n constructor(readonly labels: readonly string[]) {\n super(`Job runner labels are invalid: ${labels.join(', ')}`);\n this.name = 'InvalidJobRunnerLabelsError';\n }\n}\n\n// The job named by a lease is terminal, so it must not exchange its lease for\n// fresh checkout credentials. Server state is the final gate, not the token.\nexport class JobNotActiveError extends Error {\n constructor(\n readonly jobId: string,\n readonly status: JobStatus,\n ) {\n super(`Job ${jobId} is ${status} and cannot mint checkout credentials`);\n this.name = 'JobNotActiveError';\n }\n}\n\nexport class WorkflowRunNotFoundError extends Error {\n constructor(workflowRunId: string) {\n super(`Workflow run not found: ${workflowRunId}`);\n this.name = 'WorkflowRunNotFoundError';\n }\n}\n\nexport class WorkflowRunNotCancellableError extends Error {\n constructor(\n readonly workflowRunId: string,\n readonly status: WorkflowRunStatus,\n ) {\n super(`Workflow run ${workflowRunId} is ${status} and cannot be cancelled`);\n this.name = 'WorkflowRunNotCancellableError';\n }\n}\n\nexport class SourceRunNotFoundError extends Error {\n constructor(workflowRunId: string) {\n super(`Source workflow run not found: ${workflowRunId}`);\n this.name = 'SourceRunNotFoundError';\n }\n}\n\nexport class RunNotTerminalError extends Error {\n constructor(workflowRunId: string) {\n super(`Workflow run is not terminal: ${workflowRunId}`);\n this.name = 'RunNotTerminalError';\n }\n}\n\nexport class NoFailedJobsError extends Error {\n constructor(workflowRunId: string) {\n super(`Workflow run has no failed or cancelled jobs to re-run: ${workflowRunId}`);\n this.name = 'NoFailedJobsError';\n }\n}\n\n// The checkout target cannot be resolved, so there is nothing to check out.\nexport class CheckoutIntentUnresolvedError extends Error {\n constructor(target: {kind: 'project' | 'connection'; value: string}) {\n super(`Checkout intent unresolved: ${target.kind} ${target.value} not found`);\n this.name = 'CheckoutIntentUnresolvedError';\n }\n}\n\nexport class CheckoutConfigInvalidError extends Error {\n constructor(readonly stepId: string) {\n super(`Checkout config is invalid for step ${stepId}`);\n this.name = 'CheckoutConfigInvalidError';\n }\n}\n\nexport class StepNotFoundError extends Error {\n constructor(stepId: string, jobId: string) {\n super(`Step ${stepId} not found in job ${jobId}`);\n this.name = 'StepNotFoundError';\n }\n}\n\nexport class StepNotRunningError extends Error {\n constructor(stepId: string, jobId: string) {\n super(`Step ${stepId} in job ${jobId} is not running and cannot accept a result`);\n this.name = 'StepNotRunningError';\n }\n}\n\n// A report whose attempt is ahead of the step's current attempt. The host\n// allocates attempt numbers, so a runner can never report one it was not\n// dispatched: this is a protocol error, not an idempotent no-op.\nexport class StepAttemptAheadError extends Error {\n constructor(\n readonly stepId: string,\n readonly jobId: string,\n readonly reportedAttempt: number,\n readonly currentAttempt: number,\n ) {\n super(\n `Step ${stepId} in job ${jobId} reported attempt ${reportedAttempt} ahead of current attempt ${currentAttempt}`,\n );\n this.name = 'StepAttemptAheadError';\n }\n}\n"],"names":["DefinitionNotFoundError","Error","definitionId","name","ProjectMismatchError","definitionProjectId","requestProjectId","WorkspaceSuspendedError","workspaceId","WorkspaceDeletedError","WorkspaceNotFoundError","AgentConfigUnresolvableError","options","AgentIntegrationMaterializationError","message","InterpolationUnresolvableError","params","interpolationUnresolvableMessage","cause","field","source","envKey","undefined","envSuffix","isPermanentRunWorkflowError","error","InvalidJobRunnerLabelsError","JobNotFoundError","jobId","labels","join","JobNotActiveError","status","WorkflowRunNotFoundError","workflowRunId","WorkflowRunNotCancellableError","SourceRunNotFoundError","RunNotTerminalError","NoFailedJobsError","CheckoutIntentUnresolvedError","target","kind","value","CheckoutConfigInvalidError","stepId","StepNotFoundError","StepNotRunningError","StepAttemptAheadError","reportedAttempt","currentAttempt"],"mappings":"AAGA,OAAO,MAAMA,gCAAgCC;IAC3C,YAAYC,YAAoB,CAAE;QAChC,KAAK,CAAC,CAAC,sBAAsB,EAAEA,cAAc;QAC7C,IAAI,CAACC,IAAI,GAAG;IACd;AACF;AAEA,OAAO,MAAMC,6BAA6BH;IACxC,YAAYI,mBAA2B,EAAEC,gBAAwB,CAAE;QACjE,KAAK,CACH,CAAC,8BAA8B,EAAED,oBAAoB,8BAA8B,EAAEC,kBAAkB;QAEzG,IAAI,CAACH,IAAI,GAAG;IACd;AACF;AAEA,OAAO,MAAMI,gCAAgCN;IAC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MAAM,0CAA0C,CAAC;QAChF,IAAI,CAACzB,IAAI,GAAG;IACd;AACF;AAEA,0EAA0E;AAC1E,yEAAyE;AACzE,iEAAiE;AACjE,OAAO,MAAM4C,8BAA8B9C;IACzC,YACE,AAAS2C,MAAc,EACvB,AAAShB,KAAa,EACtB,AAASoB,eAAuB,EAChC,AAASC,cAAsB,CAC/B;QACA,KAAK,CACH,CAAC,KAAK,EAAEL,OAAO,QAAQ,EAAEhB,MAAM,kBAAkB,EAAEoB,gBAAgB,0BAA0B,EAAEC,gBAAgB,QANxGL,SAAAA,aACAhB,QAAAA,YACAoB,kBAAAA,sBACAC,iBAAAA;QAKT,IAAI,CAAC9C,IAAI,GAAG;IACd;AACF"}
1
+ {"version":3,"sources":["../../src/core/errors.ts"],"sourcesContent":["import type {JobStatus} from './entities/job.js';\nimport type {WorkflowRunStatus} from './entities/workflow-run.js';\n\nexport class DefinitionNotFoundError extends Error {\n constructor(definitionId: string) {\n super(`Definition not found: ${definitionId}`);\n this.name = 'DefinitionNotFoundError';\n }\n}\n\nexport class ProjectMismatchError extends Error {\n constructor(definitionProjectId: string, requestProjectId: string) {\n super(\n `Definition belongs to project ${definitionProjectId}, but request targets project ${requestProjectId}`,\n );\n this.name = 'ProjectMismatchError';\n }\n}\n\nexport class WorkspaceSuspendedError extends Error {\n constructor(readonly workspaceId: string) {\n super(`Workspace is suspended: ${workspaceId}`);\n this.name = 'WorkspaceSuspendedError';\n }\n}\n\nexport class WorkspaceDeletedError extends Error {\n constructor(readonly workspaceId: string) {\n super(`Workspace is deleted: ${workspaceId}`);\n this.name = 'WorkspaceDeletedError';\n }\n}\n\nexport class WorkspaceNotFoundError extends Error {\n constructor(readonly workspaceId: string) {\n super(`Workspace not found: ${workspaceId}`);\n this.name = 'WorkspaceNotFoundError';\n }\n}\n\nexport class AgentConfigUnresolvableError extends Error {\n constructor(\n readonly definitionId: string,\n options?: ErrorOptions | undefined,\n ) {\n super(`Agent configuration cannot be resolved for definition ${definitionId}`, options);\n this.name = 'AgentConfigUnresolvableError';\n }\n}\n\nexport class AgentIntegrationMaterializationError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'AgentIntegrationMaterializationError';\n }\n}\n\nexport type InterpolationUnresolvableField =\n | 'run'\n | 'env'\n | 'agent.prompt'\n | 'agent.model'\n | 'agent.provider'\n | 'agent.thinking'\n | 'job.runner'\n | 'job.outputs'\n | 'job.execution_name'\n | 'workflow.run_name'\n | 'step.name'\n | 'step.working_directory'\n | 'step.feedback'\n | 'checkout.project'\n | 'checkout.connection'\n | 'checkout.repository'\n | 'checkout.ref'\n | 'checkout.path';\n\nexport class InterpolationUnresolvableError extends Error {\n readonly field: InterpolationUnresolvableField;\n readonly source: string;\n readonly envKey?: string;\n\n constructor(\n readonly definitionId: string,\n params: {\n readonly field: InterpolationUnresolvableField;\n readonly source: string;\n readonly envKey?: string;\n readonly cause?: unknown;\n },\n ) {\n super(interpolationUnresolvableMessage(definitionId, params), {cause: params.cause});\n this.name = 'InterpolationUnresolvableError';\n this.field = params.field;\n this.source = params.source;\n if (params.envKey !== undefined) this.envKey = params.envKey;\n }\n}\n\nfunction interpolationUnresolvableMessage(\n definitionId: string,\n params: {\n readonly field: InterpolationUnresolvableField;\n readonly source: string;\n readonly envKey?: string;\n },\n): string {\n const envSuffix = params.envKey === undefined ? '' : ` (${params.envKey})`;\n return `Workflow interpolation cannot be resolved for definition ${definitionId}: ${params.field}${envSuffix} uses \\`${params.source}\\`. Use has(x) ? x : '' for optional references.`;\n}\n\n/**\n * True when a `runWorkflow` failure can never succeed on retry: the definition is gone or\n * the subscription points at the wrong project. Callers (e.g. the trigger dispatcher) use this\n * to skip a permanently-broken target instead of retrying it forever. Every other failure is\n * treated as transient so at-least-once delivery can converge.\n */\nexport function isPermanentRunWorkflowError(error: unknown): boolean {\n return (\n error instanceof DefinitionNotFoundError ||\n error instanceof ProjectMismatchError ||\n error instanceof AgentConfigUnresolvableError ||\n error instanceof AgentIntegrationMaterializationError ||\n error instanceof InterpolationUnresolvableError ||\n error instanceof InvalidJobRunnerLabelsError\n );\n}\n\nexport class JobNotFoundError extends Error {\n constructor(jobId: string) {\n super(`Job not found or has no steps: ${jobId}`);\n this.name = 'JobNotFoundError';\n }\n}\n\nexport class InvalidJobRunnerLabelsError extends Error {\n constructor(\n readonly labels: readonly string[],\n readonly requestedLabels: readonly string[] = labels,\n ) {\n const requestedSuffix =\n requestedLabels.join(', ') === labels.join(', ')\n ? ''\n : ` (requested: ${requestedLabels.join(', ')})`;\n super(`Job runner labels are invalid: ${labels.join(', ')}${requestedSuffix}`);\n this.name = 'InvalidJobRunnerLabelsError';\n }\n}\n\nexport class JobOutputTooLargeError extends Error {\n constructor(\n readonly outputKey: string,\n readonly limitBytes: number,\n readonly scope: 'value' | 'total',\n ) {\n super(\n scope === 'total'\n ? `Job outputs exceed the ${limitBytes}-byte total limit (at \"${outputKey}\")`\n : `Job output \"${outputKey}\" exceeds the ${limitBytes}-byte size limit`,\n );\n this.name = 'JobOutputTooLargeError';\n }\n}\n\nexport class JobOutputTooManyEntriesError extends Error {\n constructor(\n readonly entryCount: number,\n readonly limitEntries: number,\n ) {\n super(`Job outputs cannot define more than ${limitEntries} entries (found ${entryCount})`);\n this.name = 'JobOutputTooManyEntriesError';\n }\n}\n\nexport class JobOutputNotJsonSafeError extends Error {\n constructor(\n readonly outputKey: string,\n readonly reason: string,\n ) {\n super(`Job output \"${outputKey}\" cannot be persisted as JSON: ${reason}`);\n this.name = 'JobOutputNotJsonSafeError';\n }\n}\n\n// The job named by a lease is terminal, so it must not exchange its lease for\n// fresh checkout credentials. Server state is the final gate, not the token.\nexport class JobNotActiveError extends Error {\n constructor(\n readonly jobId: string,\n readonly status: JobStatus,\n ) {\n super(`Job ${jobId} is ${status} and cannot mint checkout credentials`);\n this.name = 'JobNotActiveError';\n }\n}\n\nexport class WorkflowRunNotFoundError extends Error {\n constructor(workflowRunId: string) {\n super(`Workflow run not found: ${workflowRunId}`);\n this.name = 'WorkflowRunNotFoundError';\n }\n}\n\nexport class WorkflowRunNotCancellableError extends Error {\n constructor(\n readonly workflowRunId: string,\n readonly status: WorkflowRunStatus,\n ) {\n super(`Workflow run ${workflowRunId} is ${status} and cannot be cancelled`);\n this.name = 'WorkflowRunNotCancellableError';\n }\n}\n\nexport class SourceRunNotFoundError extends Error {\n constructor(workflowRunId: string) {\n super(`Source workflow run not found: ${workflowRunId}`);\n this.name = 'SourceRunNotFoundError';\n }\n}\n\nexport class RunNotTerminalError extends Error {\n constructor(workflowRunId: string) {\n super(`Workflow run is not terminal: ${workflowRunId}`);\n this.name = 'RunNotTerminalError';\n }\n}\n\nexport class NoFailedJobsError extends Error {\n constructor(workflowRunId: string) {\n super(`Workflow run has no failed or cancelled jobs to re-run: ${workflowRunId}`);\n this.name = 'NoFailedJobsError';\n }\n}\n\n// The checkout target cannot be resolved, so there is nothing to check out.\nexport class CheckoutIntentUnresolvedError extends Error {\n constructor(target: {kind: 'project' | 'connection'; value: string}) {\n super(`Checkout intent unresolved: ${target.kind} ${target.value} not found`);\n this.name = 'CheckoutIntentUnresolvedError';\n }\n}\n\nexport class CheckoutConfigInvalidError extends Error {\n constructor(readonly stepId: string) {\n super(`Checkout config is invalid for step ${stepId}`);\n this.name = 'CheckoutConfigInvalidError';\n }\n}\n\nexport class StepNotFoundError extends Error {\n constructor(stepId: string, jobId: string) {\n super(`Step ${stepId} not found in job ${jobId}`);\n this.name = 'StepNotFoundError';\n }\n}\n\nexport class StepNotRunningError extends Error {\n constructor(stepId: string, jobId: string) {\n super(`Step ${stepId} in job ${jobId} is not running and cannot accept a result`);\n this.name = 'StepNotRunningError';\n }\n}\n\n// A report whose attempt is ahead of the step's current attempt. The host\n// allocates attempt numbers, so a runner can never report one it was not\n// dispatched: this is a protocol error, not an idempotent no-op.\nexport class StepAttemptAheadError extends Error {\n constructor(\n readonly stepId: string,\n readonly jobId: string,\n readonly reportedAttempt: number,\n readonly currentAttempt: number,\n ) {\n super(\n `Step ${stepId} in job ${jobId} reported attempt ${reportedAttempt} ahead of current attempt ${currentAttempt}`,\n );\n this.name = 'StepAttemptAheadError';\n }\n}\n"],"names":["DefinitionNotFoundError","Error","definitionId","name","ProjectMismatchError","definitionProjectId","requestProjectId","WorkspaceSuspendedError","workspaceId","WorkspaceDeletedError","WorkspaceNotFoundError","AgentConfigUnresolvableError","options","AgentIntegrationMaterializationError","message","InterpolationUnresolvableError","params","interpolationUnresolvableMessage","cause","field","source","envKey","undefined","envSuffix","isPermanentRunWorkflowError","error","InvalidJobRunnerLabelsError","JobNotFoundError","jobId","labels","requestedLabels","requestedSuffix","join","JobOutputTooLargeError","outputKey","limitBytes","scope","JobOutputTooManyEntriesError","entryCount","limitEntries","JobOutputNotJsonSafeError","reason","JobNotActiveError","status","WorkflowRunNotFoundError","workflowRunId","WorkflowRunNotCancellableError","SourceRunNotFoundError","RunNotTerminalError","NoFailedJobsError","CheckoutIntentUnresolvedError","target","kind","value","CheckoutConfigInvalidError","stepId","StepNotFoundError","StepNotRunningError","StepAttemptAheadError","reportedAttempt","currentAttempt"],"mappings":"AAGA,OAAO,MAAMA,gCAAgCC;IAC3C,YAAYC,YAAoB,CAAE;QAChC,KAAK,CAAC,CAAC,sBAAsB,EAAEA,cAAc;QAC7C,IAAI,CAACC,IAAI,GAAG;IACd;AACF;AAEA,OAAO,MAAMC,6BAA6BH;IACxC,YAAYI,mBAA2B,EAAEC,gBAAwB,CAAE;QACjE,KAAK,CACH,CAAC,8BAA8B,EAAED,oBAAoB,8BAA8B,EAAEC,kBAAkB;QAEzG,IAAI,CAACH,IAAI,GAAG;IACd;AACF;AAEA,OAAO,MAAMI,gCAAgCN;IAC3C,YAAY,AAASO,WAAmB,CAAE;QACxC,KAAK,CAAC,CAAC,wBAAwB,EAAEA,aAAa,QAD3BA,cAAAA;QAEnB,IAAI,CAACL,IAAI,GAAG;IACd;AACF;AAEA,OAAO,MAAMM,8BAA8BR;IACzC,YAAY,AAASO,WAAmB,CAAE;QACxC,KAAK,CAAC,CA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import { type WorkflowExpressionEvaluationContext, type WorkflowPredicateContextRoot } from '@shipfox/expression';
1
+ import { type ExpressionType, type WorkflowExpressionEvaluationContext, type WorkflowPredicateContextRoot } from '@shipfox/expression';
2
2
  import type { Job, JobListeningTrigger } from '#core/entities/job.js';
3
3
  import type { JobExecution } from '#core/entities/job-execution.js';
4
4
  import type { Step, StepAttempt, StepStatus } from '#core/entities/step.js';
@@ -6,8 +6,13 @@ import type { TriggerPayload, WorkflowRun, WorkflowRunTriggerReference } from '#
6
6
  import type { WorkflowEvaluationContext } from './workflow-evaluation-context.js';
7
7
  export interface JobContextInput {
8
8
  readonly job: Pick<Job, 'key' | 'status' | 'outputs'>;
9
+ readonly outputTypes?: Readonly<Record<string, ExpressionType>>;
9
10
  readonly executions: readonly JobExecution[];
10
11
  }
12
+ export interface AssembleJobsContextOptions {
13
+ readonly skipTypedOutputRehydration?: boolean;
14
+ readonly skipCelNativeRehydration?: boolean;
15
+ }
11
16
  export interface AssembleWorkflowRunContextParams {
12
17
  readonly run: Pick<WorkflowRun, 'id' | 'number' | 'name' | 'workflowName' | 'definitionId' | 'projectId' | 'workspaceId' | 'createdAt'> & {
13
18
  readonly triggerReference?: WorkflowRunTriggerReference | null | undefined;
@@ -16,7 +21,9 @@ export interface AssembleWorkflowRunContextParams {
16
21
  readonly inputs?: Record<string, unknown> | null | undefined;
17
22
  readonly vars?: Record<string, string> | undefined;
18
23
  }
19
- export declare function assembleWorkflowRunContext(params: AssembleWorkflowRunContextParams): WorkflowExpressionEvaluationContext;
24
+ interface AssembleContextOptions extends AssembleJobsContextOptions {
25
+ }
26
+ export declare function assembleWorkflowRunContext(params: AssembleWorkflowRunContextParams, options?: AssembleContextOptions): WorkflowExpressionEvaluationContext;
20
27
  export declare function assembleCreationContext(params: AssembleWorkflowRunContextParams): WorkflowEvaluationContext;
21
28
  export interface AssembleExecutionCreationContextParams extends AssembleWorkflowRunContextParams {
22
29
  readonly job: Pick<Job, 'id' | 'key' | 'name'>;
@@ -32,8 +39,8 @@ export declare function assembleExecutionCreationContext(params: AssembleExecuti
32
39
  * Keeps job-success predicate values aligned with the registry's `executions`
33
40
  * type environment.
34
41
  */
35
- export declare function assembleExecutionsContext(executions: readonly JobExecution[]): WorkflowExpressionEvaluationContext;
36
- export declare function assembleJobsContext(jobs: readonly JobContextInput[]): WorkflowExpressionEvaluationContext & {
42
+ export declare function assembleExecutionsContext(executions: readonly JobExecution[], outputTypes?: Readonly<Record<string, ExpressionType>>, options?: AssembleContextOptions): WorkflowExpressionEvaluationContext;
43
+ export declare function assembleJobsContext(jobs: readonly JobContextInput[], options?: AssembleJobsContextOptions): WorkflowExpressionEvaluationContext & {
37
44
  readonly jobs: Record<string, unknown>;
38
45
  };
39
46
  export interface AssembleJobActivationContextParams extends AssembleWorkflowRunContextParams {
@@ -53,6 +60,7 @@ export interface ListenerSnapshotPlan {
53
60
  readonly roots: ReadonlySet<ListenerSnapshotRoot>;
54
61
  readonly jobKeys: ReadonlySet<string>;
55
62
  }
63
+ export type ListenerFilterOutputTypes = Record<string, Record<string, ExpressionType>>;
56
64
  export declare function planListenerFilterSnapshots(params: {
57
65
  readonly on: readonly JobListeningTrigger[];
58
66
  readonly until: readonly JobListeningTrigger[] | null;
@@ -68,8 +76,10 @@ export declare function assembleListenerSnapshotContext(params: {
68
76
  }): WorkflowExpressionEvaluationContext;
69
77
  export type ListenerTriggerWithSnapshot = JobListeningTrigger & {
70
78
  readonly filter_snapshot?: Record<string, unknown>;
79
+ readonly filter_output_types?: ListenerFilterOutputTypes;
71
80
  };
72
- export declare function applyListenerFilterSnapshots(plans: readonly MatcherSnapshotPlan[], context: WorkflowExpressionEvaluationContext): ListenerTriggerWithSnapshot[];
81
+ export declare function applyListenerFilterSnapshots(plans: readonly MatcherSnapshotPlan[], context: WorkflowExpressionEvaluationContext, outputTypes?: ListenerFilterOutputTypes): ListenerTriggerWithSnapshot[];
82
+ export declare function listenerFilterOutputTypesForJobs(jobs: readonly JobContextInput[]): ListenerFilterOutputTypes;
73
83
  export declare function assembleStepDispatchContext(params: {
74
84
  readonly steps: readonly Step[];
75
85
  readonly attempts: readonly StepAttempt[];
@@ -1 +1 @@
1
- {"version":3,"file":"assemble-run-context.d.ts","sourceRoot":"","sources":["../../../src/core/step-config/assemble-run-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,mCAAmC,EACxC,KAAK,4BAA4B,EAClC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,GAAG,EAAE,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAC,IAAI,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,2BAA2B,EAC5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,kCAAkC,CAAC;AAEhF,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAC;IACtD,QAAQ,CAAC,UAAU,EAAE,SAAS,YAAY,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,GAAG,EAAE,IAAI,CAChB,WAAW,EACT,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,cAAc,GACd,cAAc,GACd,WAAW,GACX,aAAa,GACb,WAAW,CACd,GAAG;QAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,2BAA2B,GAAG,IAAI,GAAG,SAAS,CAAA;KAAC,CAAC;IACjF,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7D,QA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