@shipfox/api-workflows-dto 9.3.0 → 12.0.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 (58) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +46 -0
  3. package/dist/index.d.ts +3 -2
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +3 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/inter-module.d.ts +53 -1
  8. package/dist/inter-module.d.ts.map +1 -1
  9. package/dist/inter-module.js +30 -2
  10. package/dist/inter-module.js.map +1 -1
  11. package/dist/schemas/checkout-token.d.ts +9 -0
  12. package/dist/schemas/checkout-token.d.ts.map +1 -1
  13. package/dist/schemas/checkout-token.js +7 -0
  14. package/dist/schemas/checkout-token.js.map +1 -1
  15. package/dist/schemas/index.d.ts +3 -3
  16. package/dist/schemas/index.d.ts.map +1 -1
  17. package/dist/schemas/index.js +3 -3
  18. package/dist/schemas/index.js.map +1 -1
  19. package/dist/schemas/job-execution.d.ts +15 -0
  20. package/dist/schemas/job-execution.d.ts.map +1 -1
  21. package/dist/schemas/job-execution.js +7 -0
  22. package/dist/schemas/job-execution.js.map +1 -1
  23. package/dist/schemas/job-listening.d.ts +18 -0
  24. package/dist/schemas/job-listening.d.ts.map +1 -1
  25. package/dist/schemas/job-listening.js +6 -0
  26. package/dist/schemas/job-listening.js.map +1 -1
  27. package/dist/schemas/step.d.ts +3 -0
  28. package/dist/schemas/step.d.ts.map +1 -1
  29. package/dist/schemas/step.js +8 -6
  30. package/dist/schemas/step.js.map +1 -1
  31. package/dist/schemas/workflow-run-detail.d.ts +36 -0
  32. package/dist/schemas/workflow-run-detail.d.ts.map +1 -1
  33. package/dist/schemas/workflow-run.d.ts +155 -0
  34. package/dist/schemas/workflow-run.d.ts.map +1 -1
  35. package/dist/schemas/workflow-run.js +39 -1
  36. package/dist/schemas/workflow-run.js.map +1 -1
  37. package/dist/tsconfig.test.tsbuildinfo +1 -1
  38. package/dist/working-directory.d.ts +9 -0
  39. package/dist/working-directory.d.ts.map +1 -0
  40. package/dist/working-directory.js +23 -0
  41. package/dist/working-directory.js.map +1 -0
  42. package/package.json +3 -3
  43. package/src/index.ts +16 -0
  44. package/src/inter-module.test.ts +17 -0
  45. package/src/inter-module.ts +27 -1
  46. package/src/schemas/checkout-token.test.ts +44 -2
  47. package/src/schemas/checkout-token.ts +13 -0
  48. package/src/schemas/index.ts +15 -0
  49. package/src/schemas/job-execution.test.ts +15 -0
  50. package/src/schemas/job-execution.ts +13 -0
  51. package/src/schemas/job-listening.test.ts +4 -0
  52. package/src/schemas/job-listening.ts +4 -0
  53. package/src/schemas/step.test.ts +13 -0
  54. package/src/schemas/step.ts +7 -5
  55. package/src/schemas/workflow-run.test.ts +106 -1
  56. package/src/schemas/workflow-run.ts +56 -1
  57. package/src/working-directory.ts +28 -0
  58. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 14 files with swc (309.4ms)
2
+ Successfully compiled: 15 files with swc (107.83ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @shipfox/api-workflows-dto
2
2
 
3
+ ## 12.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - adf07e7: Cut over workflow and job display names to literal-only `name` fields, with runtime interpolation supported through `run_name` and `execution_name`.
8
+ - 54c820e: Add the trigger reference and the current attempt's jobs to each workflow run in the run list response.
9
+
10
+ `trigger_reference` carries the repository, ref, commit, and actor a source-control trigger resolved, or null for triggers that resolve none. Jobs arrive as `jobs`, a preview bounded by the new `WORKFLOW_RUN_JOB_PREVIEW_LIMIT`, alongside `job_status_counts` covering every job of the attempt including those past the preview.
11
+
12
+ - 032d316: Scope checkout credential minting to the currently running checkout step and return its fetch depth.
13
+
14
+ ### Minor Changes
15
+
16
+ - ee2ce67: Accept a `${{ }}` interpolation in an agent step's `thinking` field. The schema
17
+ still offers the per-harness enum for editor completion, and the dispatcher
18
+ checks the resolved value against the harness levels. An unsupported
19
+ resolved level fails the step.
20
+ - f7939c7: Add resolved checkout details as a dedicated step-report field.
21
+ - dea1ffd: Expose normalized repository references on listening execution events.
22
+ - 285fff2: Persist resolved workflow job execution names and handle dynamic naming failures consistently.
23
+ - e44a279: Persist nullable resolved workflow run-name overrides alongside static workflow-name snapshots.
24
+ - 35a42bd: Resolve run and agent step working directories against the runner job workspace.
25
+ - d77baaa: Add per-definition sequential numbers to workflow runs and expose them in the API and expression context.
26
+ - c2a8e54: Normalize checkout target fields for step-dispatch resolution, reject unsupported job-level checkout fields, and keep the workflow model and runtime checkout contracts aligned.
27
+ - cb0abfa: Expose the normalized trigger project, repository, ref, and commit in workflow context.
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [ee2ce67]
32
+ - Updated dependencies [f78740d]
33
+ - Updated dependencies [28daafe]
34
+ - @shipfox/api-agent-dto@12.0.0
35
+ - @shipfox/inter-module@0.2.3
36
+
37
+ ## 10.0.0
38
+
39
+ ### Minor Changes
40
+
41
+ - 22bf8a2: Classifies runner agent harness startup failures separately from user-fixable agent configuration errors.
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [43ce975]
46
+ - @shipfox/api-agent-dto@10.0.0
47
+ - @shipfox/inter-module@0.2.2
48
+
3
49
  ## 9.3.0
4
50
 
5
51
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export { type AgentConfigIssueDto, type AgentRuntimeConfigQueryDto, agentConfigIssueSchema, agentRuntimeConfigQuerySchema, type CheckoutIntentDto, type CheckoutTokenAuthDto, type CheckoutTokenResponseDto, checkoutIntentSchema, checkoutTokenAuthSchema, checkoutTokenResponseSchema, type JobDto, type JobExecutionDto, type JobListeningDto, type JobModeDto, type JobStatusDto, type JobStatusReasonDto, jobDtoSchema, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, jobStatusReasonSchema, jobStatusSchema, type ListenerStatusDto, type ListeningTriggerDto, type LogOutcomeDto, listenerStatusSchema, listeningTriggerSchema, logOutcomeSchema, type NextStepResponseDto, nextStepResponseSchema, type ReportStepBodyDto, type ReportStepResponseDto, type RerunWorkflowRunBodyDto, type ResolutionReasonDto, reportStepBodySchema, reportStepResponseSchema, rerunWorkflowRunBodySchema, resolutionReasonSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_RESPONSE_MAX_LENGTH, type StepAttemptDto, type StepDto, type StepErrorCategoryDto, type StepErrorDto, type StepErrorReasonDto, type StepGateResultDto, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, type TriggerEventsBatchDto, triggerEventsBatchSchema, type WorkflowExecutionContextDto, type WorkflowExecutionEventDto, type WorkflowRunAggregatesQueryDto, type WorkflowRunAggregatesResponseDto, type WorkflowRunAttemptDto, type WorkflowRunAttemptsResponseDto, type WorkflowRunDetailResponseDto, type WorkflowRunDto, type WorkflowRunJobDetailDto, type WorkflowRunJobExecutionDetailDto, type WorkflowRunListQueryDto, type WorkflowRunListResponseDto, type WorkflowRunRerunModeDto, type WorkflowRunResponseDto, type WorkflowRunStatusDto, type WorkflowRunStepDetailDto, workflowExecutionContextSchema, workflowExecutionEventSchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDetailResponseSchema, workflowRunDtoSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunStepDetailDtoSchema, } from '#schemas/index.js';
1
+ export { type AgentConfigIssueDto, type AgentRuntimeConfigQueryDto, agentConfigIssueSchema, agentRuntimeConfigQuerySchema, type CheckoutIntentDto, type CheckoutResultDto, type CheckoutTokenAuthDto, type CheckoutTokenParamsDto, type CheckoutTokenQueryDto, type CheckoutTokenResponseDto, checkoutIntentSchema, checkoutResultSchema, checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema, type JobDto, type JobExecutionDto, type JobListeningDto, type JobModeDto, type JobStatusDto, type JobStatusReasonDto, jobDtoSchema, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, jobStatusReasonSchema, jobStatusSchema, type ListenerStatusDto, type ListeningTriggerDto, type LogOutcomeDto, listenerStatusSchema, listeningTriggerSchema, logOutcomeSchema, type NextStepResponseDto, nextStepResponseSchema, type ReportStepBodyDto, type ReportStepResponseDto, type RerunWorkflowRunBodyDto, type ResolutionReasonDto, reportStepBodySchema, reportStepResponseSchema, rerunWorkflowRunBodySchema, resolutionReasonSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_RESPONSE_MAX_LENGTH, type StepAttemptDto, type StepDto, type StepErrorCategoryDto, type StepErrorDto, type StepErrorReasonDto, type StepGateResultDto, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, type TriggerEventsBatchDto, triggerEventsBatchSchema, type WorkflowExecutionContextDto, type WorkflowExecutionEventDto, type WorkflowRunAggregatesQueryDto, type WorkflowRunAggregatesResponseDto, type WorkflowRunAttemptDto, type WorkflowRunAttemptsResponseDto, type WorkflowRunDetailResponseDto, type WorkflowRunDto, type WorkflowRunJobDetailDto, type WorkflowRunJobExecutionDetailDto, type WorkflowRunListQueryDto, type WorkflowRunListResponseDto, type WorkflowRunRerunModeDto, type WorkflowRunResponseDto, type WorkflowRunStatusDto, type WorkflowRunStepDetailDto, workflowExecutionContextSchema, workflowExecutionEventSchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDetailResponseSchema, workflowRunDtoSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunStepDetailDtoSchema, } from '#schemas/index.js';
2
2
  export { type StepSourceLocationDto, stepSourceLocationSchema } from '#schemas/step.js';
3
- export { type WorkflowSourceSnapshotDto, workflowSourceSnapshotSchema, } from '#schemas/workflow-run.js';
3
+ export { WORKFLOW_RUN_JOB_PREVIEW_LIMIT, type WorkflowRunJobStatusCountDto, type WorkflowRunJobSummaryDto, type WorkflowRunListItemDto, type WorkflowRunTriggerReferenceDto, type WorkflowSourceSnapshotDto, workflowRunTriggerReferenceSchema, workflowSourceSnapshotSchema, } from '#schemas/workflow-run.js';
4
4
  export { jobTerminalStatusSchema, terminalStatusSchema, WORKFLOWS_JOB_ACTIVATED, WORKFLOWS_JOB_EVENT_DELIVERED, WORKFLOWS_JOB_EXECUTION_TIMED_OUT, WORKFLOWS_JOB_STEPS_SETTLED, WORKFLOWS_JOB_TERMINATED, WORKFLOWS_STEP_ATTEMPT_TERMINATED, WORKFLOWS_STEP_RESTART_ENQUEUED, WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED, WORKFLOWS_WORKFLOW_RUN_CANCELLED, WORKFLOWS_WORKFLOW_RUN_TERMINATED, type WorkflowsEventMapDto, type WorkflowsJobActivatedEventDto, type WorkflowsJobEventDeliveredEventDto, type WorkflowsJobExecutionTimedOutEventDto, type WorkflowsJobStepsSettledEventDto, type WorkflowsJobTerminatedEventDto, type WorkflowsStepAttemptTerminatedEventDto, type WorkflowsStepRestartEnqueuedEventDto, type WorkflowsWorkflowRunAttemptCreatedEventDto, type WorkflowsWorkflowRunCancelledEventDto, type WorkflowsWorkflowRunTerminatedEventDto, workflowRunTerminalStatusSchema, workflowsEventSchemas, workflowsJobActivatedSchema, workflowsJobEventDeliveredSchema, workflowsJobExecutionTimedOutSchema, workflowsJobStepsSettledSchema, workflowsJobTerminatedSchema, workflowsStepAttemptTerminatedSchema, workflowsStepRestartEnqueuedSchema, workflowsWorkflowRunAttemptCreatedSchema, workflowsWorkflowRunCancelledSchema, workflowsWorkflowRunTerminatedSchema, } from './events.js';
5
+ export { assertWorkingDirectory, InvalidWorkingDirectoryError } from './working-directory.js';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,sBAAsB,EACtB,6BAA6B,EAC7B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,oBAAoB,EACpB,uBAAuB,EACvB,2BAA2B,EAC3B,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,wBAAwB,EACxB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,qBAAqB,EAC1B,wBAAwB,EACxB,KAAK,2BAA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C,8BAA8B,EAC9B,4BAA4B,EAC5B,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,mCAAmC,EACnC,oCAAoC,GACrC,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,sBAAsB,EACtB,6BAA6B,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,wBAAwB,EACxB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,qBAAqB,EAC1B,wBAAwB,EACxB,KAAK,2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C3C,KAAK,oCAAoC,EACzC,KAAK,0CAA0C,EAC/C,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAC3C,+BAA+B,EAC/B,qBAAqB,EACrB,2BAA2B,EAC3B,gCAAgC,EAChC,mCAAmC,EACnC,8BAA8B,EAC9B,4BAA4B,EAC5B,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,mCAAmC,EACnC,oCAAoC,GACrC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,sBAAsB,EAAE,4BAA4B,EAAC,MAAM,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
- export { agentConfigIssueSchema, agentRuntimeConfigQuerySchema, checkoutIntentSchema, checkoutTokenAuthSchema, checkoutTokenResponseSchema, jobDtoSchema, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, jobStatusReasonSchema, jobStatusSchema, listenerStatusSchema, listeningTriggerSchema, logOutcomeSchema, nextStepResponseSchema, reportStepBodySchema, reportStepResponseSchema, rerunWorkflowRunBodySchema, resolutionReasonSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_RESPONSE_MAX_LENGTH, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, triggerEventsBatchSchema, workflowExecutionContextSchema, workflowExecutionEventSchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDetailResponseSchema, workflowRunDtoSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunStepDetailDtoSchema } from '#schemas/index.js';
1
+ export { agentConfigIssueSchema, agentRuntimeConfigQuerySchema, checkoutIntentSchema, checkoutResultSchema, checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema, jobDtoSchema, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, jobStatusReasonSchema, jobStatusSchema, listenerStatusSchema, listeningTriggerSchema, logOutcomeSchema, nextStepResponseSchema, reportStepBodySchema, reportStepResponseSchema, rerunWorkflowRunBodySchema, resolutionReasonSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_RESPONSE_MAX_LENGTH, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, triggerEventsBatchSchema, workflowExecutionContextSchema, workflowExecutionEventSchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDetailResponseSchema, workflowRunDtoSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunStepDetailDtoSchema } from '#schemas/index.js';
2
2
  export { stepSourceLocationSchema } from '#schemas/step.js';
3
- export { workflowSourceSnapshotSchema } from '#schemas/workflow-run.js';
3
+ export { WORKFLOW_RUN_JOB_PREVIEW_LIMIT, workflowRunTriggerReferenceSchema, workflowSourceSnapshotSchema } from '#schemas/workflow-run.js';
4
4
  export { jobTerminalStatusSchema, terminalStatusSchema, WORKFLOWS_JOB_ACTIVATED, WORKFLOWS_JOB_EVENT_DELIVERED, WORKFLOWS_JOB_EXECUTION_TIMED_OUT, WORKFLOWS_JOB_STEPS_SETTLED, WORKFLOWS_JOB_TERMINATED, WORKFLOWS_STEP_ATTEMPT_TERMINATED, WORKFLOWS_STEP_RESTART_ENQUEUED, WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED, WORKFLOWS_WORKFLOW_RUN_CANCELLED, WORKFLOWS_WORKFLOW_RUN_TERMINATED, workflowRunTerminalStatusSchema, workflowsEventSchemas, workflowsJobActivatedSchema, workflowsJobEventDeliveredSchema, workflowsJobExecutionTimedOutSchema, workflowsJobStepsSettledSchema, workflowsJobTerminatedSchema, workflowsStepAttemptTerminatedSchema, workflowsStepRestartEnqueuedSchema, workflowsWorkflowRunAttemptCreatedSchema, workflowsWorkflowRunCancelledSchema, workflowsWorkflowRunTerminatedSchema } from './events.js';
5
+ export { assertWorkingDirectory, InvalidWorkingDirectoryError } from './working-directory.js';
5
6
 
6
7
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type AgentConfigIssueDto,\n type AgentRuntimeConfigQueryDto,\n agentConfigIssueSchema,\n agentRuntimeConfigQuerySchema,\n type CheckoutIntentDto,\n type CheckoutTokenAuthDto,\n type CheckoutTokenResponseDto,\n checkoutIntentSchema,\n checkoutTokenAuthSchema,\n checkoutTokenResponseSchema,\n type JobDto,\n type JobExecutionDto,\n type JobListeningDto,\n type JobModeDto,\n type JobStatusDto,\n type JobStatusReasonDto,\n jobDtoSchema,\n jobListeningBatchSchema,\n jobListeningSchema,\n jobModeSchema,\n jobStatusReasonSchema,\n jobStatusSchema,\n type ListenerStatusDto,\n type ListeningTriggerDto,\n type LogOutcomeDto,\n listenerStatusSchema,\n listeningTriggerSchema,\n logOutcomeSchema,\n type NextStepResponseDto,\n nextStepResponseSchema,\n type ReportStepBodyDto,\n type ReportStepResponseDto,\n type RerunWorkflowRunBodyDto,\n type ResolutionReasonDto,\n reportStepBodySchema,\n reportStepResponseSchema,\n rerunWorkflowRunBodySchema,\n resolutionReasonSchema,\n STEP_ERROR_MESSAGE_MAX_LENGTH,\n STEP_RESPONSE_MAX_LENGTH,\n type StepAttemptDto,\n type StepDto,\n type StepErrorCategoryDto,\n type StepErrorDto,\n type StepErrorReasonDto,\n type StepGateResultDto,\n stepAttemptDtoSchema,\n stepDtoSchema,\n stepErrorCategorySchema,\n stepErrorDtoSchema,\n stepErrorReasonSchema,\n stepGateResultDtoSchema,\n type TriggerEventsBatchDto,\n triggerEventsBatchSchema,\n type WorkflowExecutionContextDto,\n type WorkflowExecutionEventDto,\n type WorkflowRunAggregatesQueryDto,\n type WorkflowRunAggregatesResponseDto,\n type WorkflowRunAttemptDto,\n type WorkflowRunAttemptsResponseDto,\n type WorkflowRunDetailResponseDto,\n type WorkflowRunDto,\n type WorkflowRunJobDetailDto,\n type WorkflowRunJobExecutionDetailDto,\n type WorkflowRunListQueryDto,\n type WorkflowRunListResponseDto,\n type WorkflowRunRerunModeDto,\n type WorkflowRunResponseDto,\n type WorkflowRunStatusDto,\n type WorkflowRunStepDetailDto,\n workflowExecutionContextSchema,\n workflowExecutionEventSchema,\n workflowRunAggregatesQuerySchema,\n workflowRunAggregatesResponseSchema,\n workflowRunAttemptDtoSchema,\n workflowRunAttemptsResponseSchema,\n workflowRunDetailResponseSchema,\n workflowRunDtoSchema,\n workflowRunJobDetailDtoSchema,\n workflowRunJobExecutionDetailDtoSchema,\n workflowRunListQuerySchema,\n workflowRunListResponseSchema,\n workflowRunRerunModeSchema,\n workflowRunResponseSchema,\n workflowRunStatusSchema,\n workflowRunStepDetailDtoSchema,\n} from '#schemas/index.js';\nexport {type StepSourceLocationDto, stepSourceLocationSchema} from '#schemas/step.js';\nexport {\n type WorkflowSourceSnapshotDto,\n workflowSourceSnapshotSchema,\n} from '#schemas/workflow-run.js';\nexport {\n jobTerminalStatusSchema,\n terminalStatusSchema,\n WORKFLOWS_JOB_ACTIVATED,\n WORKFLOWS_JOB_EVENT_DELIVERED,\n WORKFLOWS_JOB_EXECUTION_TIMED_OUT,\n WORKFLOWS_JOB_STEPS_SETTLED,\n WORKFLOWS_JOB_TERMINATED,\n WORKFLOWS_STEP_ATTEMPT_TERMINATED,\n WORKFLOWS_STEP_RESTART_ENQUEUED,\n WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED,\n WORKFLOWS_WORKFLOW_RUN_CANCELLED,\n WORKFLOWS_WORKFLOW_RUN_TERMINATED,\n type WorkflowsEventMapDto,\n type WorkflowsJobActivatedEventDto,\n type WorkflowsJobEventDeliveredEventDto,\n type WorkflowsJobExecutionTimedOutEventDto,\n type WorkflowsJobStepsSettledEventDto,\n type WorkflowsJobTerminatedEventDto,\n type WorkflowsStepAttemptTerminatedEventDto,\n type WorkflowsStepRestartEnqueuedEventDto,\n type WorkflowsWorkflowRunAttemptCreatedEventDto,\n type WorkflowsWorkflowRunCancelledEventDto,\n type WorkflowsWorkflowRunTerminatedEventDto,\n workflowRunTerminalStatusSchema,\n workflowsEventSchemas,\n workflowsJobActivatedSchema,\n workflowsJobEventDeliveredSchema,\n workflowsJobExecutionTimedOutSchema,\n workflowsJobStepsSettledSchema,\n workflowsJobTerminatedSchema,\n workflowsStepAttemptTerminatedSchema,\n workflowsStepRestartEnqueuedSchema,\n workflowsWorkflowRunAttemptCreatedSchema,\n workflowsWorkflowRunCancelledSchema,\n workflowsWorkflowRunTerminatedSchema,\n} from './events.js';\n"],"names":["agentConfigIssueSchema","agentRuntimeConfigQuerySchema","checkoutIntentSchema","checkoutTokenAuthSchema","checkoutTokenResponseSchema","jobDtoSchema","jobListeningBatchSchema","jobListeningSchema","jobModeSchema","jobStatusReasonSchema","jobStatusSchema","listenerStatusSchema","listeningTriggerSchema","logOutcomeSchema","nextStepResponseSchema","reportStepBodySchema","reportStepResponseSchema","rerunWorkflowRunBodySchema","resolutionReasonSchema","STEP_ERROR_MESSAGE_MAX_LENGTH","STEP_RESPONSE_MAX_LENGTH","stepAttemptDtoSchema","stepDtoSchema","stepErrorCategorySchema","stepErrorDtoSchema","stepErrorReasonSchema","stepGateResultDtoSchema","triggerEventsBatchSchema","workflowExecutionContextSchema","workflowExecutionEventSchema","workflowRunAggregatesQuerySchema","workflowRunAggregatesResponseSchema","workflowRunAttemptDtoSchema","workflowRunAttemptsResponseSchema","workflowRunDetailResponseSchema","workflowRunDtoSchema","workflowRunJobDetailDtoSchema","workflowRunJobExecutionDetailDtoSchema","workflowRunListQuerySchema","workflowRunListResponseSchema","workflowRunRerunModeSchema","workflowRunResponseSchema","workflowRunStatusSchema","workflowRunStepDetailDtoSchema","stepSourceLocationSchema","workflowSourceSnapshotSchema","jobTerminalStatusSchema","terminalStatusSchema","WORKFLOWS_JOB_ACTIVATED","WORKFLOWS_JOB_EVENT_DELIVERED","WORKFLOWS_JOB_EXECUTION_TIMED_OUT","WORKFLOWS_JOB_STEPS_SETTLED","WORKFLOWS_JOB_TERMINATED","WORKFLOWS_STEP_ATTEMPT_TERMINATED","WORKFLOWS_STEP_RESTART_ENQUEUED","WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED","WORKFLOWS_WORKFLOW_RUN_CANCELLED","WORKFLOWS_WORKFLOW_RUN_TERMINATED","workflowRunTerminalStatusSchema","workflowsEventSchemas","workflowsJobActivatedSchema","workflowsJobEventDeliveredSchema","workflowsJobExecutionTimedOutSchema","workflowsJobStepsSettledSchema","workflowsJobTerminatedSchema","workflowsStepAttemptTerminatedSchema","workflowsStepRestartEnqueuedSchema","workflowsWorkflowRunAttemptCreatedSchema","workflowsWorkflowRunCancelledSchema","workflowsWorkflowRunTerminatedSchema"],"mappings":"AAAA,SAGEA,sBAAsB,EACtBC,6BAA6B,EAI7BC,oBAAoB,EACpBC,uBAAuB,EACvBC,2BAA2B,EAO3BC,YAAY,EACZC,uBAAuB,EACvBC,kBAAkB,EAClBC,aAAa,EACbC,qBAAqB,EACrBC,eAAe,EAIfC,oBAAoB,EACpBC,sBAAsB,EACtBC,gBAAgB,EAEhBC,sBAAsB,EAKtBC,oBAAoB,EACpBC,wBAAwB,EACxBC,0BAA0B,EAC1BC,sBAAsB,EACtBC,6BAA6B,EAC7BC,wBAAwB,EAOxBC,oBAAoB,EACpBC,aAAa,EACbC,uBAAuB,EACvBC,kBAAkB,EAClBC,qBAAqB,EACrBC,uBAAuB,EAEvBC,wBAAwB,EAiBxBC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,gCAAgC,EAChCC,mCAAmC,EACnCC,2BAA2B,EAC3BC,iCAAiC,EACjCC,+BAA+B,EAC/BC,oBAAoB,EACpBC,6BAA6B,EAC7BC,sCAAsC,EACtCC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,0BAA0B,EAC1BC,yBAAyB,EACzBC,uBAAuB,EACvBC,8BAA8B,QACzB,oBAAoB;AAC3B,SAAoCC,wBAAwB,QAAO,mBAAmB;AACtF,SAEEC,4BAA4B,QACvB,2BAA2B;AAClC,SACEC,uBAAuB,EACvBC,oBAAoB,EACpBC,uBAAuB,EACvBC,6BAA6B,EAC7BC,iCAAiC,EACjCC,2BAA2B,EAC3BC,wBAAwB,EACxBC,iCAAiC,EACjCC,+BAA+B,EAC/BC,sCAAsC,EACtCC,gCAAgC,EAChCC,iCAAiC,EAYjCC,+BAA+B,EAC/BC,qBAAqB,EACrBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,mCAAmC,EACnCC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,oCAAoC,EACpCC,kCAAkC,EAClCC,wCAAwC,EACxCC,mCAAmC,EACnCC,oCAAoC,QAC/B,cAAc"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type AgentConfigIssueDto,\n type AgentRuntimeConfigQueryDto,\n agentConfigIssueSchema,\n agentRuntimeConfigQuerySchema,\n type CheckoutIntentDto,\n type CheckoutResultDto,\n type CheckoutTokenAuthDto,\n type CheckoutTokenParamsDto,\n type CheckoutTokenQueryDto,\n type CheckoutTokenResponseDto,\n checkoutIntentSchema,\n checkoutResultSchema,\n checkoutTokenAuthSchema,\n checkoutTokenParamsSchema,\n checkoutTokenQuerySchema,\n checkoutTokenResponseSchema,\n type JobDto,\n type JobExecutionDto,\n type JobListeningDto,\n type JobModeDto,\n type JobStatusDto,\n type JobStatusReasonDto,\n jobDtoSchema,\n jobListeningBatchSchema,\n jobListeningSchema,\n jobModeSchema,\n jobStatusReasonSchema,\n jobStatusSchema,\n type ListenerStatusDto,\n type ListeningTriggerDto,\n type LogOutcomeDto,\n listenerStatusSchema,\n listeningTriggerSchema,\n logOutcomeSchema,\n type NextStepResponseDto,\n nextStepResponseSchema,\n type ReportStepBodyDto,\n type ReportStepResponseDto,\n type RerunWorkflowRunBodyDto,\n type ResolutionReasonDto,\n reportStepBodySchema,\n reportStepResponseSchema,\n rerunWorkflowRunBodySchema,\n resolutionReasonSchema,\n STEP_ERROR_MESSAGE_MAX_LENGTH,\n STEP_RESPONSE_MAX_LENGTH,\n type StepAttemptDto,\n type StepDto,\n type StepErrorCategoryDto,\n type StepErrorDto,\n type StepErrorReasonDto,\n type StepGateResultDto,\n stepAttemptDtoSchema,\n stepDtoSchema,\n stepErrorCategorySchema,\n stepErrorDtoSchema,\n stepErrorReasonSchema,\n stepGateResultDtoSchema,\n type TriggerEventsBatchDto,\n triggerEventsBatchSchema,\n type WorkflowExecutionContextDto,\n type WorkflowExecutionEventDto,\n type WorkflowRunAggregatesQueryDto,\n type WorkflowRunAggregatesResponseDto,\n type WorkflowRunAttemptDto,\n type WorkflowRunAttemptsResponseDto,\n type WorkflowRunDetailResponseDto,\n type WorkflowRunDto,\n type WorkflowRunJobDetailDto,\n type WorkflowRunJobExecutionDetailDto,\n type WorkflowRunListQueryDto,\n type WorkflowRunListResponseDto,\n type WorkflowRunRerunModeDto,\n type WorkflowRunResponseDto,\n type WorkflowRunStatusDto,\n type WorkflowRunStepDetailDto,\n workflowExecutionContextSchema,\n workflowExecutionEventSchema,\n workflowRunAggregatesQuerySchema,\n workflowRunAggregatesResponseSchema,\n workflowRunAttemptDtoSchema,\n workflowRunAttemptsResponseSchema,\n workflowRunDetailResponseSchema,\n workflowRunDtoSchema,\n workflowRunJobDetailDtoSchema,\n workflowRunJobExecutionDetailDtoSchema,\n workflowRunJobStatusCountDtoSchema,\n workflowRunJobSummaryDtoSchema,\n workflowRunListItemSchema,\n workflowRunListQuerySchema,\n workflowRunListResponseSchema,\n workflowRunRerunModeSchema,\n workflowRunResponseSchema,\n workflowRunStatusSchema,\n workflowRunStepDetailDtoSchema,\n} from '#schemas/index.js';\nexport {type StepSourceLocationDto, stepSourceLocationSchema} from '#schemas/step.js';\nexport {\n WORKFLOW_RUN_JOB_PREVIEW_LIMIT,\n type WorkflowRunJobStatusCountDto,\n type WorkflowRunJobSummaryDto,\n type WorkflowRunListItemDto,\n type WorkflowRunTriggerReferenceDto,\n type WorkflowSourceSnapshotDto,\n workflowRunTriggerReferenceSchema,\n workflowSourceSnapshotSchema,\n} from '#schemas/workflow-run.js';\nexport {\n jobTerminalStatusSchema,\n terminalStatusSchema,\n WORKFLOWS_JOB_ACTIVATED,\n WORKFLOWS_JOB_EVENT_DELIVERED,\n WORKFLOWS_JOB_EXECUTION_TIMED_OUT,\n WORKFLOWS_JOB_STEPS_SETTLED,\n WORKFLOWS_JOB_TERMINATED,\n WORKFLOWS_STEP_ATTEMPT_TERMINATED,\n WORKFLOWS_STEP_RESTART_ENQUEUED,\n WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED,\n WORKFLOWS_WORKFLOW_RUN_CANCELLED,\n WORKFLOWS_WORKFLOW_RUN_TERMINATED,\n type WorkflowsEventMapDto,\n type WorkflowsJobActivatedEventDto,\n type WorkflowsJobEventDeliveredEventDto,\n type WorkflowsJobExecutionTimedOutEventDto,\n type WorkflowsJobStepsSettledEventDto,\n type WorkflowsJobTerminatedEventDto,\n type WorkflowsStepAttemptTerminatedEventDto,\n type WorkflowsStepRestartEnqueuedEventDto,\n type WorkflowsWorkflowRunAttemptCreatedEventDto,\n type WorkflowsWorkflowRunCancelledEventDto,\n type WorkflowsWorkflowRunTerminatedEventDto,\n workflowRunTerminalStatusSchema,\n workflowsEventSchemas,\n workflowsJobActivatedSchema,\n workflowsJobEventDeliveredSchema,\n workflowsJobExecutionTimedOutSchema,\n workflowsJobStepsSettledSchema,\n workflowsJobTerminatedSchema,\n workflowsStepAttemptTerminatedSchema,\n workflowsStepRestartEnqueuedSchema,\n workflowsWorkflowRunAttemptCreatedSchema,\n workflowsWorkflowRunCancelledSchema,\n workflowsWorkflowRunTerminatedSchema,\n} from './events.js';\nexport {assertWorkingDirectory, InvalidWorkingDirectoryError} from './working-directory.js';\n"],"names":["agentConfigIssueSchema","agentRuntimeConfigQuerySchema","checkoutIntentSchema","checkoutResultSchema","checkoutTokenAuthSchema","checkoutTokenParamsSchema","checkoutTokenQuerySchema","checkoutTokenResponseSchema","jobDtoSchema","jobListeningBatchSchema","jobListeningSchema","jobModeSchema","jobStatusReasonSchema","jobStatusSchema","listenerStatusSchema","listeningTriggerSchema","logOutcomeSchema","nextStepResponseSchema","reportStepBodySchema","reportStepResponseSchema","rerunWorkflowRunBodySchema","resolutionReasonSchema","STEP_ERROR_MESSAGE_MAX_LENGTH","STEP_RESPONSE_MAX_LENGTH","stepAttemptDtoSchema","stepDtoSchema","stepErrorCategorySchema","stepErrorDtoSchema","stepErrorReasonSchema","stepGateResultDtoSchema","triggerEventsBatchSchema","workflowExecutionContextSchema","workflowExecutionEventSchema","workflowRunAggregatesQuerySchema","workflowRunAggregatesResponseSchema","workflowRunAttemptDtoSchema","workflowRunAttemptsResponseSchema","workflowRunDetailResponseSchema","workflowRunDtoSchema","workflowRunJobDetailDtoSchema","workflowRunJobExecutionDetailDtoSchema","workflowRunJobStatusCountDtoSchema","workflowRunJobSummaryDtoSchema","workflowRunListItemSchema","workflowRunListQuerySchema","workflowRunListResponseSchema","workflowRunRerunModeSchema","workflowRunResponseSchema","workflowRunStatusSchema","workflowRunStepDetailDtoSchema","stepSourceLocationSchema","WORKFLOW_RUN_JOB_PREVIEW_LIMIT","workflowRunTriggerReferenceSchema","workflowSourceSnapshotSchema","jobTerminalStatusSchema","terminalStatusSchema","WORKFLOWS_JOB_ACTIVATED","WORKFLOWS_JOB_EVENT_DELIVERED","WORKFLOWS_JOB_EXECUTION_TIMED_OUT","WORKFLOWS_JOB_STEPS_SETTLED","WORKFLOWS_JOB_TERMINATED","WORKFLOWS_STEP_ATTEMPT_TERMINATED","WORKFLOWS_STEP_RESTART_ENQUEUED","WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED","WORKFLOWS_WORKFLOW_RUN_CANCELLED","WORKFLOWS_WORKFLOW_RUN_TERMINATED","workflowRunTerminalStatusSchema","workflowsEventSchemas","workflowsJobActivatedSchema","workflowsJobEventDeliveredSchema","workflowsJobExecutionTimedOutSchema","workflowsJobStepsSettledSchema","workflowsJobTerminatedSchema","workflowsStepAttemptTerminatedSchema","workflowsStepRestartEnqueuedSchema","workflowsWorkflowRunAttemptCreatedSchema","workflowsWorkflowRunCancelledSchema","workflowsWorkflowRunTerminatedSchema","assertWorkingDirectory","InvalidWorkingDirectoryError"],"mappings":"AAAA,SAGEA,sBAAsB,EACtBC,6BAA6B,EAO7BC,oBAAoB,EACpBC,oBAAoB,EACpBC,uBAAuB,EACvBC,yBAAyB,EACzBC,wBAAwB,EACxBC,2BAA2B,EAO3BC,YAAY,EACZC,uBAAuB,EACvBC,kBAAkB,EAClBC,aAAa,EACbC,qBAAqB,EACrBC,eAAe,EAIfC,oBAAoB,EACpBC,sBAAsB,EACtBC,gBAAgB,EAEhBC,sBAAsB,EAKtBC,oBAAoB,EACpBC,wBAAwB,EACxBC,0BAA0B,EAC1BC,sBAAsB,EACtBC,6BAA6B,EAC7BC,wBAAwB,EAOxBC,oBAAoB,EACpBC,aAAa,EACbC,uBAAuB,EACvBC,kBAAkB,EAClBC,qBAAqB,EACrBC,uBAAuB,EAEvBC,wBAAwB,EAiBxBC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,gCAAgC,EAChCC,mCAAmC,EACnCC,2BAA2B,EAC3BC,iCAAiC,EACjCC,+BAA+B,EAC/BC,oBAAoB,EACpBC,6BAA6B,EAC7BC,sCAAsC,EACtCC,kCAAkC,EAClCC,8BAA8B,EAC9BC,yBAAyB,EACzBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,0BAA0B,EAC1BC,yBAAyB,EACzBC,uBAAuB,EACvBC,8BAA8B,QACzB,oBAAoB;AAC3B,SAAoCC,wBAAwB,QAAO,mBAAmB;AACtF,SACEC,8BAA8B,EAM9BC,iCAAiC,EACjCC,4BAA4B,QACvB,2BAA2B;AAClC,SACEC,uBAAuB,EACvBC,oBAAoB,EACpBC,uBAAuB,EACvBC,6BAA6B,EAC7BC,iCAAiC,EACjCC,2BAA2B,EAC3BC,wBAAwB,EACxBC,iCAAiC,EACjCC,+BAA+B,EAC/BC,sCAAsC,EACtCC,gCAAgC,EAChCC,iCAAiC,EAYjCC,+BAA+B,EAC/BC,qBAAqB,EACrBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,mCAAmC,EACnCC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,oCAAoC,EACpCC,kCAAkC,EAClCC,wCAAwC,EACxCC,mCAAmC,EACnCC,oCAAoC,QAC/B,cAAc;AACrB,SAAQC,sBAAsB,EAAEC,4BAA4B,QAAO,yBAAyB"}
@@ -12,6 +12,7 @@ export declare const workflowsInterModuleContract: import("@shipfox/inter-module
12
12
  workspaceId: z.ZodString;
13
13
  projectId: z.ZodString;
14
14
  definitionId: z.ZodString;
15
+ triggerConnectionId: z.ZodOptional<z.ZodString>;
15
16
  triggerPayload: z.ZodUnion<readonly [z.ZodObject<{
16
17
  provider: z.ZodOptional<z.ZodLiteral<"manual">>;
17
18
  source: z.ZodLiteral<"manual">;
@@ -63,11 +64,19 @@ export declare const workflowsInterModuleContract: import("@shipfox/inter-module
63
64
  "agent.prompt": "agent.prompt";
64
65
  "agent.model": "agent.model";
65
66
  "agent.provider": "agent.provider";
67
+ "agent.thinking": "agent.thinking";
66
68
  "job.runner": "job.runner";
67
69
  "job.outputs": "job.outputs";
68
- "job.name": "job.name";
70
+ "job.execution_name": "job.execution_name";
71
+ "workflow.run_name": "workflow.run_name";
69
72
  "step.name": "step.name";
73
+ "step.working_directory": "step.working_directory";
70
74
  "step.feedback": "step.feedback";
75
+ "checkout.project": "checkout.project";
76
+ "checkout.connection": "checkout.connection";
77
+ "checkout.repository": "checkout.repository";
78
+ "checkout.ref": "checkout.ref";
79
+ "checkout.path": "checkout.path";
71
80
  }>;
72
81
  source: z.ZodString;
73
82
  envKey: z.ZodOptional<z.ZodString>;
@@ -77,6 +86,39 @@ export declare const workflowsInterModuleContract: import("@shipfox/inter-module
77
86
  }, z.core.$strip>;
78
87
  };
79
88
  };
89
+ readonly resolveWorkflowRunTriggerReference: {
90
+ readonly input: z.ZodObject<{
91
+ workspaceId: z.ZodString;
92
+ triggerConnectionId: z.ZodString;
93
+ triggerPayload: z.ZodUnion<readonly [z.ZodObject<{
94
+ provider: z.ZodOptional<z.ZodLiteral<"manual">>;
95
+ source: z.ZodLiteral<"manual">;
96
+ event: z.ZodLiteral<"fire">;
97
+ subscriptionId: z.ZodString;
98
+ userId: z.ZodString;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ provider: z.ZodOptional<z.ZodLiteral<"cron">>;
101
+ source: z.ZodLiteral<"cron">;
102
+ event: z.ZodLiteral<"tick">;
103
+ scheduleId: z.ZodString;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ provider: z.ZodString;
106
+ source: z.ZodString;
107
+ event: z.ZodString;
108
+ deliveryId: z.ZodString;
109
+ data: z.ZodUnknown;
110
+ }, z.core.$strip>]>;
111
+ }, z.core.$strip>;
112
+ readonly output: z.ZodNullable<z.ZodObject<{
113
+ project: z.ZodNullable<z.ZodObject<{
114
+ id: z.ZodString;
115
+ }, z.core.$strip>>;
116
+ repository: z.ZodNullable<z.ZodString>;
117
+ ref: z.ZodNullable<z.ZodString>;
118
+ commit: z.ZodNullable<z.ZodString>;
119
+ actor: z.ZodNullable<z.ZodString>;
120
+ }, z.core.$strip>>;
121
+ };
80
122
  readonly deliverEventToJobListener: {
81
123
  readonly input: z.ZodObject<{
82
124
  jobId: z.ZodString;
@@ -89,6 +131,16 @@ export declare const workflowsInterModuleContract: import("@shipfox/inter-module
89
131
  source: z.ZodString;
90
132
  event: z.ZodString;
91
133
  provider: z.ZodString;
134
+ triggerConnectionId: z.ZodOptional<z.ZodString>;
135
+ triggerReference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
136
+ project: z.ZodNullable<z.ZodObject<{
137
+ id: z.ZodString;
138
+ }, z.core.$strip>>;
139
+ repository: z.ZodNullable<z.ZodString>;
140
+ ref: z.ZodNullable<z.ZodString>;
141
+ commit: z.ZodNullable<z.ZodString>;
142
+ actor: z.ZodNullable<z.ZodString>;
143
+ }, z.core.$strip>>>;
92
144
  payload: z.ZodUnknown;
93
145
  receivedAt: z.ZodString;
94
146
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAuCtB;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4EvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAsDtB;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuFvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -2,6 +2,15 @@ import { harnessSchema, materializedAgentIntegrationSchema } from '@shipfox/api-
2
2
  import { defineInterModuleContract } from '@shipfox/inter-module';
3
3
  import { z } from 'zod';
4
4
  const idSchema = z.string().uuid();
5
+ const workflowRunTriggerReferenceSchema = z.object({
6
+ project: z.object({
7
+ id: idSchema
8
+ }).nullable(),
9
+ repository: z.string().nullable(),
10
+ ref: z.string().nullable(),
11
+ commit: z.string().nullable(),
12
+ actor: z.string().nullable()
13
+ });
5
14
  const triggerPayloadSchema = z.union([
6
15
  z.object({
7
16
  provider: z.literal('manual').optional(),
@@ -30,11 +39,19 @@ const interpolationFieldSchema = z.enum([
30
39
  'agent.prompt',
31
40
  'agent.model',
32
41
  'agent.provider',
42
+ 'agent.thinking',
33
43
  'job.runner',
34
44
  'job.outputs',
35
- 'job.name',
45
+ 'job.execution_name',
46
+ 'workflow.run_name',
36
47
  'step.name',
37
- 'step.feedback'
48
+ 'step.working_directory',
49
+ 'step.feedback',
50
+ 'checkout.project',
51
+ 'checkout.connection',
52
+ 'checkout.repository',
53
+ 'checkout.ref',
54
+ 'checkout.path'
38
55
  ]);
39
56
  /**
40
57
  * Producer-owned Workflows commands used by synchronous callers. Commands carry
@@ -47,6 +64,7 @@ const interpolationFieldSchema = z.enum([
47
64
  workspaceId: idSchema,
48
65
  projectId: idSchema,
49
66
  definitionId: idSchema,
67
+ triggerConnectionId: idSchema.optional(),
50
68
  triggerPayload: triggerPayloadSchema,
51
69
  inputs: z.record(z.string(), z.unknown()).optional(),
52
70
  idempotencyKey: z.string().min(1)
@@ -84,6 +102,14 @@ const interpolationFieldSchema = z.enum([
84
102
  })
85
103
  }
86
104
  },
105
+ resolveWorkflowRunTriggerReference: {
106
+ input: z.object({
107
+ workspaceId: idSchema,
108
+ triggerConnectionId: idSchema,
109
+ triggerPayload: triggerPayloadSchema
110
+ }),
111
+ output: workflowRunTriggerReferenceSchema.nullable()
112
+ },
87
113
  deliverEventToJobListener: {
88
114
  input: z.object({
89
115
  jobId: idSchema,
@@ -96,6 +122,8 @@ const interpolationFieldSchema = z.enum([
96
122
  source: z.string().min(1),
97
123
  event: z.string().min(1),
98
124
  provider: z.string().min(1),
125
+ triggerConnectionId: idSchema.optional(),
126
+ triggerReference: workflowRunTriggerReferenceSchema.nullable().optional(),
99
127
  payload: z.unknown(),
100
128
  receivedAt: z.string().datetime()
101
129
  }),
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {harnessSchema, materializedAgentIntegrationSchema} from '@shipfox/api-agent-dto';\nimport {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\n\nconst idSchema = z.string().uuid();\nconst triggerPayloadSchema = z.union([\n z.object({\n provider: z.literal('manual').optional(),\n source: z.literal('manual'),\n event: z.literal('fire'),\n subscriptionId: idSchema,\n userId: idSchema,\n }),\n z.object({\n provider: z.literal('cron').optional(),\n source: z.literal('cron'),\n event: z.literal('tick'),\n scheduleId: idSchema,\n }),\n z.object({\n provider: z.string(),\n source: z.string(),\n event: z.string(),\n deliveryId: z.string(),\n data: z.unknown(),\n }),\n]);\n\nconst interpolationFieldSchema = z.enum([\n 'run',\n 'env',\n 'agent.prompt',\n 'agent.model',\n 'agent.provider',\n 'job.runner',\n 'job.outputs',\n 'job.name',\n 'step.name',\n 'step.feedback',\n]);\n\n/**\n * Producer-owned Workflows commands used by synchronous callers. Commands carry\n * stable identities whenever a retry could create a duplicate run.\n */\nexport const workflowsInterModuleContract = defineInterModuleContract({\n module: 'workflows',\n methods: {\n startRunFromTrigger: {\n input: z.object({\n workspaceId: idSchema,\n projectId: idSchema,\n definitionId: idSchema,\n triggerPayload: triggerPayloadSchema,\n inputs: z.record(z.string(), z.unknown()).optional(),\n idempotencyKey: z.string().min(1),\n }),\n output: z.object({id: idSchema, name: z.string()}),\n errors: {\n 'workspace-not-found': z.object({workspaceId: idSchema}),\n 'workspace-suspended': z.object({workspaceId: idSchema}),\n 'workspace-deleted': z.object({workspaceId: idSchema}),\n 'definition-not-found': z.object({definitionId: idSchema}),\n 'project-mismatch': z.object({}),\n 'agent-config-unresolvable': z.object({definitionId: idSchema}),\n 'agent-integration-materialization-failed': z.object({}),\n 'interpolation-unresolvable': z.object({\n definitionId: idSchema,\n field: interpolationFieldSchema,\n source: z.string(),\n envKey: z.string().optional(),\n }),\n 'invalid-job-runner-labels': z.object({labels: z.array(z.string())}),\n },\n },\n deliverEventToJobListener: {\n input: z.object({\n jobId: idSchema,\n disposition: z.enum(['fire', 'resolve']),\n eventRef: z.string().min(1),\n deliveryId: z.string().min(1),\n source: z.string().min(1),\n event: z.string().min(1),\n provider: z.string().min(1),\n payload: z.unknown(),\n receivedAt: z.string().datetime(),\n }),\n output: z.object({buffered: z.boolean(), skipped: z.boolean()}),\n errors: {\n 'workspace-not-found': z.object({workspaceId: idSchema}),\n 'workspace-suspended': z.object({workspaceId: idSchema}),\n 'workspace-deleted': z.object({workspaceId: idSchema}),\n },\n },\n getStepLogContext: {\n input: z.object({stepId: idSchema}),\n output: z.object({harness: harnessSchema}),\n },\n getLeasedAgentToolContext: {\n input: z.object({\n jobId: idSchema,\n jobExecutionId: idSchema,\n runnerSessionId: idSchema,\n stepId: idSchema,\n attempt: z.number().int().positive(),\n }),\n output: z.object({\n workspaceId: idSchema,\n integrations: z.array(materializedAgentIntegrationSchema),\n }),\n errors: {\n 'lease-not-active': z.object({}),\n 'step-not-found': z.object({}),\n 'job-not-found': z.object({}),\n 'step-attempt-mismatch': z.object({}),\n 'step-not-running': z.object({}),\n 'leased-step-not-agent': z.object({}),\n 'agent-step-config-invalid': z.object({}),\n },\n },\n },\n});\n\nexport type WorkflowsModuleClient = InterModuleClient<typeof workflowsInterModuleContract>;\n"],"names":["harnessSchema","materializedAgentIntegrationSchema","defineInterModuleContract","z","idSchema","string","uuid","triggerPayloadSchema","union","object","provider","literal","optional","source","event","subscriptionId","userId","scheduleId","deliveryId","data","unknown","interpolationFieldSchema","enum","workflowsInterModuleContract","module","methods","startRunFromTrigger","input","workspaceId","projectId","definitionId","triggerPayload","inputs","record","idempotencyKey","min","output","id","name","errors","field","envKey","labels","array","deliverEventToJobListener","jobId","disposition","eventRef","payload","receivedAt","datetime","buffered","boolean","skipped","getStepLogContext","stepId","harness","getLeasedAgentToolContext","jobExecutionId","runnerSessionId","attempt","number","int","positive","integrations"],"mappings":"AAAA,SAAQA,aAAa,EAAEC,kCAAkC,QAAO,yBAAyB;AACzF,SAAQC,yBAAyB,QAA+B,wBAAwB;AACxF,SAAQC,CAAC,QAAO,MAAM;AAEtB,MAAMC,WAAWD,EAAEE,MAAM,GAAGC,IAAI;AAChC,MAAMC,uBAAuBJ,EAAEK,KAAK,CAAC;IACnCL,EAAEM,MAAM,CAAC;QACPC,UAAUP,EAAEQ,OAAO,CAAC,UAAUC,QAAQ;QACtCC,QAAQV,EAAEQ,OAAO,CAAC;QAClBG,OAAOX,EAAEQ,OAAO,CAAC;QACjBI,gBAAgBX;QAChBY,QAAQZ;IACV;IACAD,EAAEM,MAAM,CAAC;QACPC,UAAUP,EAAEQ,OAAO,CAAC,QAAQC,QAAQ;QACpCC,QAAQV,EAAEQ,OAAO,CAAC;QAClBG,OAAOX,EAAEQ,OAAO,CAAC;QACjBM,YAAYb;IACd;IACAD,EAAEM,MAAM,CAAC;QACPC,UAAUP,EAAEE,MAAM;QAClBQ,QAAQV,EAAEE,MAAM;QAChBS,OAAOX,EAAEE,MAAM;QACfa,YAAYf,EAAEE,MAAM;QACpBc,MAAMhB,EAAEiB,OAAO;IACjB;CACD;AAED,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gBAC9B,kBAAkBN,EAAEM,MAAM,CAAC,CAAC;gBAC5B,iBAAiBN,EAAEM,MAAM,CAAC,CAAC;gBAC3B,yBAAyBN,EAAEM,MAAM,CAAC,CAAC;gBACnC,oBAAoBN,EAAEM,MAAM,CAAC,CAAC;gBAC9B,yBAAyBN,EAAEM,MAAM,CAAC,CAAC;gBACnC,6BAA6BN,EAAEM,MAAM,CAAC,CAAC;YACzC;QACF;IACF;AACF,GAAG"}
1
+ {"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {harnessSchema, materializedAgentIntegrationSchema} from '@shipfox/api-agent-dto';\nimport {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\n\nconst idSchema = z.string().uuid();\nconst workflowRunTriggerReferenceSchema = z.object({\n project: z.object({id: idSchema}).nullable(),\n repository: z.string().nullable(),\n ref: z.string().nullable(),\n commit: z.string().nullable(),\n actor: z.string().nullable(),\n});\nconst triggerPayloadSchema = z.union([\n z.object({\n provider: z.literal('manual').optional(),\n source: z.literal('manual'),\n event: z.literal('fire'),\n subscriptionId: idSchema,\n userId: idSchema,\n }),\n z.object({\n provider: z.literal('cron').optional(),\n source: z.literal('cron'),\n event: z.literal('tick'),\n scheduleId: idSchema,\n }),\n z.object({\n provider: z.string(),\n source: z.string(),\n event: z.string(),\n deliveryId: z.string(),\n data: z.unknown(),\n }),\n]);\n\nconst interpolationFieldSchema = z.enum([\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]);\n\n/**\n * Producer-owned Workflows commands used by synchronous callers. Commands carry\n * stable identities whenever a retry could create a duplicate run.\n */\nexport const workflowsInterModuleContract = defineInterModuleContract({\n module: 'workflows',\n methods: {\n startRunFromTrigger: {\n input: z.object({\n workspaceId: idSchema,\n projectId: idSchema,\n definitionId: idSchema,\n triggerConnectionId: idSchema.optional(),\n triggerPayload: triggerPayloadSchema,\n inputs: z.record(z.string(), z.unknown()).optional(),\n idempotencyKey: z.string().min(1),\n }),\n output: z.object({id: idSchema, name: z.string()}),\n errors: {\n 'workspace-not-found': z.object({workspaceId: idSchema}),\n 'workspace-suspended': z.object({workspaceId: idSchema}),\n 'workspace-deleted': z.object({workspaceId: idSchema}),\n 'definition-not-found': z.object({definitionId: idSchema}),\n 'project-mismatch': z.object({}),\n 'agent-config-unresolvable': z.object({definitionId: idSchema}),\n 'agent-integration-materialization-failed': z.object({}),\n 'interpolation-unresolvable': z.object({\n definitionId: idSchema,\n field: interpolationFieldSchema,\n source: z.string(),\n envKey: z.string().optional(),\n }),\n 'invalid-job-runner-labels': z.object({labels: z.array(z.string())}),\n },\n },\n resolveWorkflowRunTriggerReference: {\n input: z.object({\n workspaceId: idSchema,\n triggerConnectionId: idSchema,\n triggerPayload: triggerPayloadSchema,\n }),\n output: workflowRunTriggerReferenceSchema.nullable(),\n },\n deliverEventToJobListener: {\n input: z.object({\n jobId: idSchema,\n disposition: z.enum(['fire', 'resolve']),\n eventRef: z.string().min(1),\n deliveryId: z.string().min(1),\n source: z.string().min(1),\n event: z.string().min(1),\n provider: z.string().min(1),\n triggerConnectionId: idSchema.optional(),\n triggerReference: workflowRunTriggerReferenceSchema.nullable().optional(),\n payload: z.unknown(),\n receivedAt: z.string().datetime(),\n }),\n output: z.object({buffered: z.boolean(), skipped: z.boolean()}),\n errors: {\n 'workspace-not-found': z.object({workspaceId: idSchema}),\n 'workspace-suspended': z.object({workspaceId: idSchema}),\n 'workspace-deleted': z.object({workspaceId: idSchema}),\n },\n },\n getStepLogContext: {\n input: z.object({stepId: idSchema}),\n output: z.object({harness: harnessSchema}),\n },\n getLeasedAgentToolContext: {\n input: z.object({\n jobId: idSchema,\n jobExecutionId: idSchema,\n runnerSessionId: idSchema,\n stepId: idSchema,\n attempt: z.number().int().positive(),\n }),\n output: z.object({\n workspaceId: idSchema,\n integrations: z.array(materializedAgentIntegrationSchema),\n }),\n errors: {\n 'lease-not-active': z.object({}),\n 'step-not-found': z.object({}),\n 'job-not-found': z.object({}),\n 'step-attempt-mismatch': z.object({}),\n 'step-not-running': z.object({}),\n 'leased-step-not-agent': z.object({}),\n 'agent-step-config-invalid': z.object({}),\n },\n },\n },\n});\n\nexport type WorkflowsModuleClient = InterModuleClient<typeof workflowsInterModuleContract>;\n"],"names":["harnessSchema","materializedAgentIntegrationSchema","defineInterModuleContract","z","idSchema","string","uuid","workflowRunTriggerReferenceSchema","object","project","id","nullable","repository","ref","commit","actor","triggerPayloadSchema","union","provider","literal","optional","source","event","subscriptionId","userId","scheduleId","deliveryId","data","unknown","interpolationFieldSchema","enum","workflowsInterModuleContract","module","methods","startRunFromTrigger","input","workspaceId","projectId","definitionId","triggerConnectionId","triggerPayload","inputs","record","idempotencyKey","min","output","name","errors","field","envKey","labels","array","resolveWorkflowRunTriggerReference","deliverEventToJobListener","jobId","disposition","eventRef","triggerReference","payload","receivedAt","datetime","buffered","boolean","skipped","getStepLogContext","stepId","harness","getLeasedAgentToolContext","jobExecutionId","runnerSessionId","attempt","number","int","positive","integrations"],"mappings":"AAAA,SAAQA,aAAa,EAAEC,kCAAkC,QAAO,yBAAyB;AACzF,SAAQC,yBAAyB,QAA+B,wBAAwB;AACxF,SAAQC,CAAC,QAAO,MAAM;AAEtB,MAAMC,WAAWD,EAAEE,MAAM,GAAGC,IAAI;AAChC,MAAMC,oCAAoCJ,EAAEK,MAAM,CAAC;IACjDC,SAASN,EAAEK,MAAM,CAAC;QAACE,IAAIN;IAAQ,GAAGO,QAAQ;IAC1CC,YAAYT,EAAEE,MAAM,GAAGM,QAAQ;IAC/BE,KAAKV,EAAEE,MAAM,GAAGM,QAAQ;IACxBG,QAAQX,EAAEE,MAAM,GAAGM,QAAQ;IAC3BI,OAAOZ,EAAEE,MAAM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TokenAuthSchema: z.ZodDiscriminatedUnion<[z.ZodObje
22
22
  expires_at: z.ZodString;
23
23
  }, z.core.$strip>], "kind">;
24
24
  export type CheckoutTokenAuthDto = z.infer<typeof checkoutTokenAuthSchema>;
25
+ export declare const checkoutTokenParamsSchema: z.ZodObject<{
26
+ stepId: z.ZodString;
27
+ }, z.core.$strip>;
28
+ export type CheckoutTokenParamsDto = z.infer<typeof checkoutTokenParamsSchema>;
29
+ export declare const checkoutTokenQuerySchema: z.ZodObject<{
30
+ attempt: z.ZodCoercedNumber<unknown>;
31
+ }, z.core.$strip>;
32
+ export type CheckoutTokenQueryDto = z.infer<typeof checkoutTokenQuerySchema>;
25
33
  export declare const checkoutTokenResponseSchema: z.ZodObject<{
26
34
  repository_url: z.ZodString;
27
35
  ref: z.ZodString;
36
+ fetch_depth: z.ZodNumber;
28
37
  git_author: z.ZodOptional<z.ZodObject<{
29
38
  name: z.ZodString;
30
39
  email: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"checkout-token.d.ts","sourceRoot":"","sources":["../../src/schemas/checkout-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AA4BtB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;2BAGlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOtC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
1
+ {"version":3,"file":"checkout-token.d.ts","sourceRoot":"","sources":["../../src/schemas/checkout-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AA4BtB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;2BAGlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE7E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQtC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -32,9 +32,16 @@ export const checkoutTokenAuthSchema = z.discriminatedUnion('kind', [
32
32
  checkoutTokenBasicAuthSchema,
33
33
  checkoutTokenBearerAuthSchema
34
34
  ]);
35
+ export const checkoutTokenParamsSchema = z.object({
36
+ stepId: z.string().uuid()
37
+ });
38
+ export const checkoutTokenQuerySchema = z.object({
39
+ attempt: z.coerce.number().int().positive()
40
+ });
35
41
  export const checkoutTokenResponseSchema = z.object({
36
42
  repository_url: z.string().min(1),
37
43
  ref: z.string().min(1),
44
+ fetch_depth: z.number().int().nonnegative(),
38
45
  git_author: checkoutGitAuthorSchema.optional(),
39
46
  // Optional: credential-free providers (e.g. the debug source control) return a
40
47
  // public clone URL with no auth material, so the runner clones without a token.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/checkout-token.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst carryFields = {\n carry: z.enum(['header', 'userinfo']),\n host: z.string().min(1),\n persist: z.boolean(),\n};\n\nconst checkoutGitAuthorSchema = z.object({\n name: z.string().min(1),\n email: z.string().min(1),\n});\n\nconst checkoutTokenBasicAuthSchema = z.object({\n kind: z.literal('basic'),\n username: z.string().min(1),\n token: z.string().min(1),\n expires_at: z.string().datetime({offset: true}),\n ...carryFields,\n});\n\nconst checkoutTokenBearerAuthSchema = z.object({\n kind: z.literal('bearer'),\n token: z.string().min(1),\n expires_at: z.string().datetime({offset: true}),\n ...carryFields,\n});\n\nexport const checkoutTokenAuthSchema = z.discriminatedUnion('kind', [\n checkoutTokenBasicAuthSchema,\n checkoutTokenBearerAuthSchema,\n]);\n\nexport type CheckoutTokenAuthDto = z.infer<typeof checkoutTokenAuthSchema>;\n\nexport const checkoutTokenResponseSchema = z.object({\n repository_url: z.string().min(1),\n ref: z.string().min(1),\n git_author: checkoutGitAuthorSchema.optional(),\n // Optional: credential-free providers (e.g. the debug source control) return a\n // public clone URL with no auth material, so the runner clones without a token.\n auth: checkoutTokenAuthSchema.optional(),\n});\n\nexport type CheckoutTokenResponseDto = z.infer<typeof checkoutTokenResponseSchema>;\n"],"names":["z","carryFields","carry","enum","host","string","min","persist","boolean","checkoutGitAuthorSchema","object","name","email","checkoutTokenBasicAuthSchema","kind","literal","username","token","expires_at","datetime","offset","checkoutTokenBearerAuthSchema","checkoutTokenAuthSchema","discriminatedUnion","checkoutTokenResponseSchema","repository_url","ref","git_author","optional","auth"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,MAAMC,cAAc;IAClBC,OAAOF,EAAEG,IAAI,CAAC;QAAC;QAAU;KAAW;IACpCC,MAAMJ,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACrBC,SAASP,EAAEQ,OAAO;AACpB;AAEA,MAAMC,0BAA0BT,EAAEU,MAAM,CAAC;IACvCC,MAAMX,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACrBM,OAAOZ,EAAEK,MAAM,GAAGC,GAAG,CAAC;AACxB;AAEA,MAAMO,+BAA+Bb,EAAEU,MAAM,CAAC;IAC5CI,MAAMd,EAAEe,OAAO,CAAC;IAChBC,UAAUhB,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACzBW,OAAOjB,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACtBY,YAAYlB,EAAEK,MAAM,GAAGc,QAAQ,CAAC;QAACC,QAAQ;IAAI;IAC7C,GAAGnB,WAAW;AAChB;AAEA,MAAMoB,gCAAgCrB,EAAEU,MAAM,CAAC;IAC7CI,MAAMd,EAAEe,OAAO,CAAC;IAChBE,OAAOjB,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACtBY,YAAYlB,EAAEK,MAAM,GAAGc,QAAQ,CAAC;QAACC,QAAQ;IAAI;IAC7C,GAAGnB,WAAW;AAChB;AAEA,OAAO,MAAMqB,0BAA0BtB,EAAEuB,kBAAkB,CAAC,QAAQ;IAClEV;IACAQ;CACD,EAAE;AAIH,OAAO,MAAMG,8BAA8BxB,EAAEU,MAAM,CAAC;IAClDe,gBAAgBzB,EAAEK,MAAM,GAAGC,GAAG,CAAC;IAC/BoB,KAAK1B,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACpBqB,YAAYlB,wBAAwBmB,QAAQ;IAC5C,+EAA+E;IAC/E,gFAAgF;IAChFC,MAAMP,wBAAwBM,QAAQ;AACxC,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/checkout-token.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst carryFields = {\n carry: z.enum(['header', 'userinfo']),\n host: z.string().min(1),\n persist: z.boolean(),\n};\n\nconst checkoutGitAuthorSchema = z.object({\n name: z.string().min(1),\n email: z.string().min(1),\n});\n\nconst checkoutTokenBasicAuthSchema = z.object({\n kind: z.literal('basic'),\n username: z.string().min(1),\n token: z.string().min(1),\n expires_at: z.string().datetime({offset: true}),\n ...carryFields,\n});\n\nconst checkoutTokenBearerAuthSchema = z.object({\n kind: z.literal('bearer'),\n token: z.string().min(1),\n expires_at: z.string().datetime({offset: true}),\n ...carryFields,\n});\n\nexport const checkoutTokenAuthSchema = z.discriminatedUnion('kind', [\n checkoutTokenBasicAuthSchema,\n checkoutTokenBearerAuthSchema,\n]);\n\nexport type CheckoutTokenAuthDto = z.infer<typeof checkoutTokenAuthSchema>;\n\nexport const checkoutTokenParamsSchema = z.object({\n stepId: z.string().uuid(),\n});\n\nexport type CheckoutTokenParamsDto = z.infer<typeof checkoutTokenParamsSchema>;\n\nexport const checkoutTokenQuerySchema = z.object({\n attempt: z.coerce.number().int().positive(),\n});\n\nexport type CheckoutTokenQueryDto = z.infer<typeof checkoutTokenQuerySchema>;\n\nexport const checkoutTokenResponseSchema = z.object({\n repository_url: z.string().min(1),\n ref: z.string().min(1),\n fetch_depth: z.number().int().nonnegative(),\n git_author: checkoutGitAuthorSchema.optional(),\n // Optional: credential-free providers (e.g. the debug source control) return a\n // public clone URL with no auth material, so the runner clones without a token.\n auth: checkoutTokenAuthSchema.optional(),\n});\n\nexport type CheckoutTokenResponseDto = z.infer<typeof checkoutTokenResponseSchema>;\n"],"names":["z","carryFields","carry","enum","host","string","min","persist","boolean","checkoutGitAuthorSchema","object","name","email","checkoutTokenBasicAuthSchema","kind","literal","username","token","expires_at","datetime","offset","checkoutTokenBearerAuthSchema","checkoutTokenAuthSchema","discriminatedUnion","checkoutTokenParamsSchema","stepId","uuid","checkoutTokenQuerySchema","attempt","coerce","number","int","positive","checkoutTokenResponseSchema","repository_url","ref","fetch_depth","nonnegative","git_author","optional","auth"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,MAAMC,cAAc;IAClBC,OAAOF,EAAEG,IAAI,CAAC;QAAC;QAAU;KAAW;IACpCC,MAAMJ,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACrBC,SAASP,EAAEQ,OAAO;AACpB;AAEA,MAAMC,0BAA0BT,EAAEU,MAAM,CAAC;IACvCC,MAAMX,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACrBM,OAAOZ,EAAEK,MAAM,GAAGC,GAAG,CAAC;AACxB;AAEA,MAAMO,+BAA+Bb,EAAEU,MAAM,CAAC;IAC5CI,MAAMd,EAAEe,OAAO,CAAC;IAChBC,UAAUhB,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACzBW,OAAOjB,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACtBY,YAAYlB,EAAEK,MAAM,GAAGc,QAAQ,CAAC;QAACC,QAAQ;IAAI;IAC7C,GAAGnB,WAAW;AAChB;AAEA,MAAMoB,gCAAgCrB,EAAEU,MAAM,CAAC;IAC7CI,MAAMd,EAAEe,OAAO,CAAC;IAChBE,OAAOjB,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACtBY,YAAYlB,EAAEK,MAAM,GAAGc,QAAQ,CAAC;QAACC,QAAQ;IAAI;IAC7C,GAAGnB,WAAW;AAChB;AAEA,OAAO,MAAMqB,0BAA0BtB,EAAEuB,kBAAkB,CAAC,QAAQ;IAClEV;IACAQ;CACD,EAAE;AAIH,OAAO,MAAMG,4BAA4BxB,EAAEU,MAAM,CAAC;IAChDe,QAAQzB,EAAEK,MAAM,GAAGqB,IAAI;AACzB,GAAG;AAIH,OAAO,MAAMC,2BAA2B3B,EAAEU,MAAM,CAAC;IAC/CkB,SAAS5B,EAAE6B,MAAM,CAACC,MAAM,GAAGC,GAAG,GAAGC,QAAQ;AAC3C,GAAG;AAIH,OAAO,MAAMC,8BAA8BjC,EAAEU,MAAM,CAAC;IAClDwB,gBAAgBlC,EAAEK,MAAM,GAAGC,GAAG,CAAC;IAC/B6B,KAAKnC,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACpB8B,aAAapC,EAAE8B,MAAM,GAAGC,GAAG,GAAGM,WAAW;IACzCC,YAAY7B,wBAAwB8B,QAAQ;IAC5C,+EAA+E;IAC/E,gFAAgF;IAChFC,MAAMlB,wBAAwBiB,QAAQ;AACxC,GAAG"}
@@ -1,11 +1,11 @@
1
1
  export { type AgentRuntimeConfigQueryDto, agentRuntimeConfigQuerySchema, } from './agent-runtime-config.js';
2
2
  export { type CheckoutIntentDto, checkoutIntentSchema } from './checkout.js';
3
- export { type CheckoutTokenAuthDto, type CheckoutTokenResponseDto, checkoutTokenAuthSchema, checkoutTokenResponseSchema, } from './checkout-token.js';
3
+ export { type CheckoutTokenAuthDto, type CheckoutTokenParamsDto, type CheckoutTokenQueryDto, type CheckoutTokenResponseDto, checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema, } from './checkout-token.js';
4
4
  export { type JobDto, type JobStatusDto, type JobStatusReasonDto, jobDtoSchema, jobStatusReasonSchema, jobStatusSchema, } from './job.js';
5
- export { type NextStepResponseDto, nextStepResponseSchema, type ReportStepBodyDto, type ReportStepResponseDto, reportStepBodySchema, reportStepResponseSchema, STEP_RESPONSE_MAX_LENGTH, } from './job-execution.js';
5
+ export { type CheckoutResultDto, checkoutResultSchema, type NextStepResponseDto, nextStepResponseSchema, type ReportStepBodyDto, type ReportStepResponseDto, reportStepBodySchema, reportStepResponseSchema, STEP_RESPONSE_MAX_LENGTH, } from './job-execution.js';
6
6
  export { type JobListeningDto, type JobModeDto, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, type ListenerStatusDto, type ListeningTriggerDto, listenerStatusSchema, listeningTriggerSchema, type ResolutionReasonDto, resolutionReasonSchema, type TriggerEventsBatchDto, triggerEventsBatchSchema, type WorkflowExecutionContextDto, type WorkflowExecutionEventDto, workflowExecutionContextSchema, workflowExecutionEventSchema, } from './job-listening.js';
7
7
  export { type LogOutcomeDto, logOutcomeSchema } from './log-outcome.js';
8
8
  export { type AgentConfigIssueDto, agentConfigIssueSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, type StepAttemptDto, type StepDto, type StepErrorCategoryDto, type StepErrorDto, type StepErrorReasonDto, type StepGateResultDto, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, } from './step.js';
9
- export { type RerunWorkflowRunBodyDto, rerunWorkflowRunBodySchema, type WorkflowRunAggregatesQueryDto, type WorkflowRunAggregatesResponseDto, type WorkflowRunAttemptDto, type WorkflowRunAttemptsResponseDto, type WorkflowRunDto, type WorkflowRunListQueryDto, type WorkflowRunListResponseDto, type WorkflowRunRerunModeDto, type WorkflowRunResponseDto, type WorkflowRunStatusDto, type WorkflowSourceSnapshotDto, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDtoSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowSourceSnapshotSchema, } from './workflow-run.js';
9
+ export { type RerunWorkflowRunBodyDto, rerunWorkflowRunBodySchema, WORKFLOW_RUN_JOB_PREVIEW_LIMIT, type WorkflowRunAggregatesQueryDto, type WorkflowRunAggregatesResponseDto, type WorkflowRunAttemptDto, type WorkflowRunAttemptsResponseDto, type WorkflowRunDto, type WorkflowRunJobStatusCountDto, type WorkflowRunJobSummaryDto, type WorkflowRunListItemDto, type WorkflowRunListQueryDto, type WorkflowRunListResponseDto, type WorkflowRunRerunModeDto, type WorkflowRunResponseDto, type WorkflowRunStatusDto, type WorkflowRunTriggerReferenceDto, type WorkflowSourceSnapshotDto, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunTriggerReferenceSchema, workflowSourceSnapshotSchema, } from './workflow-run.js';
10
10
  export { type JobExecutionDto, jobExecutionDtoSchema, jobExecutionStatusSchema, type WorkflowRunDetailResponseDto, type WorkflowRunJobDetailDto, type WorkflowRunJobExecutionDetailDto, type WorkflowRunStepDetailDto, workflowRunDetailResponseSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunStepDetailDtoSchema, } from './workflow-run-detail.js';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAC,KAAK,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAC3E,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,YAAY,EACZ,qBAAqB,EACrB,eAAe,GAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,KAAK,qBAAqB,EAC1B,wBAAwB,EACxB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,KAAK,aAAa,EAAE,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AACtE,OAAO,EACL,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,6BAA6B,EAC7B,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,oBAAoB,EACpB,aA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AC/B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,gCAAgC,EAChC,mCAAmC,EACnC,2BAA2B,EAC3B,iCAAiC,EACjC,oBAAoB,EACpB,kCAAkC,EAClC,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,iCAAiC,EACjC,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,eAAe,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,sCAAsC,EACtC,8BAA8B,GAC/B,MAAM,0BAA0B,CAAC"}
@@ -1,12 +1,12 @@
1
1
  export { agentRuntimeConfigQuerySchema } from './agent-runtime-config.js';
2
2
  export { checkoutIntentSchema } from './checkout.js';
3
- export { checkoutTokenAuthSchema, checkoutTokenResponseSchema } from './checkout-token.js';
3
+ export { checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema } from './checkout-token.js';
4
4
  export { jobDtoSchema, jobStatusReasonSchema, jobStatusSchema } from './job.js';
5
- export { nextStepResponseSchema, reportStepBodySchema, reportStepResponseSchema, STEP_RESPONSE_MAX_LENGTH } from './job-execution.js';
5
+ export { checkoutResultSchema, nextStepResponseSchema, reportStepBodySchema, reportStepResponseSchema, STEP_RESPONSE_MAX_LENGTH } from './job-execution.js';
6
6
  export { jobListeningBatchSchema, jobListeningSchema, jobModeSchema, listenerStatusSchema, listeningTriggerSchema, resolutionReasonSchema, triggerEventsBatchSchema, workflowExecutionContextSchema, workflowExecutionEventSchema } from './job-listening.js';
7
7
  export { logOutcomeSchema } from './log-outcome.js';
8
8
  export { agentConfigIssueSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema } from './step.js';
9
- export { rerunWorkflowRunBodySchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDtoSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowSourceSnapshotSchema } from './workflow-run.js';
9
+ export { rerunWorkflowRunBodySchema, WORKFLOW_RUN_JOB_PREVIEW_LIMIT, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunTriggerReferenceSchema, workflowSourceSnapshotSchema } from './workflow-run.js';
10
10
  export { jobExecutionDtoSchema, jobExecutionStatusSchema, workflowRunDetailResponseSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunStepDetailDtoSchema } from './workflow-run-detail.js';
11
11
 
12
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AgentRuntimeConfigQueryDto,\n agentRuntimeConfigQuerySchema,\n} from './agent-runtime-config.js';\nexport {type CheckoutIntentDto, checkoutIntentSchema} from './checkout.js';\nexport {\n type CheckoutTokenAuthDto,\n type CheckoutTokenResponseDto,\n checkoutTokenAuthSchema,\n checkoutTokenResponseSchema,\n} from './checkout-token.js';\nexport {\n type JobDto,\n type JobStatusDto,\n type JobStatusReasonDto,\n jobDtoSchema,\n jobStatusReasonSchema,\n jobStatusSchema,\n} from './job.js';\nexport {\n type NextStepResponseDto,\n nextStepResponseSchema,\n type ReportStepBodyDto,\n type ReportStepResponseDto,\n reportStepBodySchema,\n reportStepResponseSchema,\n STEP_RESPONSE_MAX_LENGTH,\n} from './job-execution.js';\nexport {\n type JobListeningDto,\n type JobModeDto,\n jobListeningBatchSchema,\n jobListeningSchema,\n jobModeSchema,\n type ListenerStatusDto,\n type ListeningTriggerDto,\n listenerStatusSchema,\n listeningTriggerSchema,\n type ResolutionReasonDto,\n resolutionReasonSchema,\n type TriggerEventsBatchDto,\n triggerEventsBatchSchema,\n type WorkflowExecutionContextDto,\n type WorkflowExecutionEventDto,\n workflowExecutionContextSchema,\n workflowExecutionEventSchema,\n} from './job-listening.js';\nexport {type LogOutcomeDto, logOutcomeSchema} from './log-outcome.js';\nexport {\n type AgentConfigIssueDto,\n agentConfigIssueSchema,\n STEP_ERROR_MESSAGE_MAX_LENGTH,\n type StepAttemptDto,\n type StepDto,\n type StepErrorCategoryDto,\n type StepErrorDto,\n type StepErrorReasonDto,\n type StepGateResultDto,\n stepAttemptDtoSchema,\n stepDtoSchema,\n stepErrorCategorySchema,\n stepErrorDtoSchema,\n stepErrorReasonSchema,\n stepGateResultDtoSchema,\n} from './step.js';\nexport {\n type RerunWorkflowRunBodyDto,\n rerunWorkflowRunBodySchema,\n type WorkflowRunAggregatesQueryDto,\n type WorkflowRunAggregatesResponseDto,\n type WorkflowRunAttemptDto,\n type WorkflowRunAttemptsResponseDto,\n type WorkflowRunDto,\n type WorkflowRunListQueryDto,\n type WorkflowRunListResponseDto,\n type WorkflowRunRerunModeDto,\n type WorkflowRunResponseDto,\n type WorkflowRunStatusDto,\n type WorkflowSourceSnapshotDto,\n workflowRunAggregatesQuerySchema,\n workflowRunAggregatesResponseSchema,\n workflowRunAttemptDtoSchema,\n workflowRunAttemptsResponseSchema,\n workflowRunDtoSchema,\n workflowRunListQuerySchema,\n workflowRunListResponseSchema,\n workflowRunRerunModeSchema,\n workflowRunResponseSchema,\n workflowRunStatusSchema,\n workflowSourceSnapshotSchema,\n} from './workflow-run.js';\nexport {\n type JobExecutionDto,\n jobExecutionDtoSchema,\n jobExecutionStatusSchema,\n type WorkflowRunDetailResponseDto,\n type WorkflowRunJobDetailDto,\n type WorkflowRunJobExecutionDetailDto,\n type WorkflowRunStepDetailDto,\n workflowRunDetailResponseSchema,\n workflowRunJobDetailDtoSchema,\n workflowRunJobExecutionDetailDtoSchema,\n workflowRunStepDetailDtoSchema,\n} from './workflow-run-detail.js';\n"],"names":["agentRuntimeConfigQuerySchema","checkoutIntentSchema","checkoutTokenAuthSchema","checkoutTokenResponseSchema","jobDtoSchema","jobStatusReasonSchema","jobStatusSchema","nextStepResponseSchema","reportStepBodySchema","reportStepResponseSchema","STEP_RESPONSE_MAX_LENGTH","jobListeningBatchSchema","jobListeningSchema","jobModeSchema","listenerStatusSchema","listeningTriggerSchema","resolutionReasonSchema","triggerEventsBatchSchema","workflowExecutionContextSchema","workflowExecutionEventSchema","logOutcomeSchema","agentConfigIssueSchema","STEP_ERROR_MESSAGE_MAX_LENGTH","stepAttemptDtoSchema","stepDtoSchema","stepErrorCategorySchema","stepErrorDtoSchema","stepErrorReasonSchema","stepGateResultDtoSchema","rerunWorkflowRunBodySchema","workflowRunAggregatesQuerySchema","workflowRunAggregatesResponseSchema","workflowRunAttemptDtoSchema","workflowRunAttemptsResponseSchema","workflowRunDtoSchema","workflowRunListQuerySchema","workflowRunListResponseSchema","workflowRunRerunModeSchema","workflowRunResponseSchema","workflowRunStatusSchema","workflowSourceSnapshotSchema","jobExecutionDtoSchema","jobExecutionStatusSchema","workflowRunDetailResponseSchema","workflowRunJobDetailDtoSchema","workflowRunJobExecutionDetailDtoSchema","workflowRunStepDetailDtoSchema"],"mappings":"AAAA,SAEEA,6BAA6B,QACxB,4BAA4B;AACnC,SAAgCC,oBAAoB,QAAO,gBAAgB;AAC3E,SAGEC,uBAAuB,EACvBC,2BAA2B,QACtB,sBAAsB;AAC7B,SAIEC,YAAY,EACZC,qBAAqB,EACrBC,eAAe,QACV,WAAW;AAClB,SAEEC,sBAAsB,EAGtBC,oBAAoB,EACpBC,wBAAwB,EACxBC,wBAAwB,QACnB,qBAAqB;AAC5B,SAGEC,uBAAuB,EACvBC,kBAAkB,EAClBC,aAAa,EAGbC,oBAAoB,EACpBC,sBAAsB,EAEtBC,sBAAsB,EAEtBC,wBAAwB,EAGxBC,8BAA8B,EAC9BC,4BAA4B,QACvB,qBAAqB;AAC5B,SAA4BC,gBAAgB,QAAO,mBAAmB;AACtE,SAEEC,sBAAsB,EACtBC,6BAA6B,EAO7BC,oBAAoB,EACpBC,aAAa,EACbC,uBAAuB,EACvBC,kBAAkB,EAClBC,qBAAqB,EACrBC,uBAAuB,QAClB,YAAY;AACnB,SAEEC,0BAA0B,EAY1BC,gCAAgC,EAChCC,mCAAmC,EACnCC,2BAA2B,EAC3BC,iCAAiC,EACjCC,oBAAoB,EACpBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,0BAA0B,EAC1BC,yBAAyB,EACzBC,uBAAuB,EACvBC,4BAA4B,QACvB,oBAAoB;AAC3B,SAEEC,qBAAqB,EACrBC,wBAAwB,EAKxBC,+BAA+B,EAC/BC,6BAA6B,EAC7BC,sCAAsC,EACtCC,8BAA8B,QACzB,2BAA2B"}
1
+ {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AgentRuntimeConfigQueryDto,\n agentRuntimeConfigQuerySchema,\n} from './agent-runtime-config.js';\nexport {type CheckoutIntentDto, checkoutIntentSchema} from './checkout.js';\nexport {\n type CheckoutTokenAuthDto,\n type CheckoutTokenParamsDto,\n type CheckoutTokenQueryDto,\n type CheckoutTokenResponseDto,\n checkoutTokenAuthSchema,\n checkoutTokenParamsSchema,\n checkoutTokenQuerySchema,\n checkoutTokenResponseSchema,\n} from './checkout-token.js';\nexport {\n type JobDto,\n type JobStatusDto,\n type JobStatusReasonDto,\n jobDtoSchema,\n jobStatusReasonSchema,\n jobStatusSchema,\n} from './job.js';\nexport {\n type CheckoutResultDto,\n checkoutResultSchema,\n type NextStepResponseDto,\n nextStepResponseSchema,\n type ReportStepBodyDto,\n type ReportStepResponseDto,\n reportStepBodySchema,\n reportStepResponseSchema,\n STEP_RESPONSE_MAX_LENGTH,\n} from './job-execution.js';\nexport {\n type JobListeningDto,\n type JobModeDto,\n jobListeningBatchSchema,\n jobListeningSchema,\n jobModeSchema,\n type ListenerStatusDto,\n type ListeningTriggerDto,\n listenerStatusSchema,\n listeningTriggerSchema,\n type ResolutionReasonDto,\n resolutionReasonSchema,\n type TriggerEventsBatchDto,\n triggerEventsBatchSchema,\n type WorkflowExecutionContextDto,\n type WorkflowExecutionEventDto,\n workflowExecutionContextSchema,\n workflowExecutionEventSchema,\n} from './job-listening.js';\nexport {type LogOutcomeDto, logOutcomeSchema} from './log-outcome.js';\nexport {\n type AgentConfigIssueDto,\n agentConfigIssueSchema,\n STEP_ERROR_MESSAGE_MAX_LENGTH,\n type StepAttemptDto,\n type StepDto,\n type StepErrorCategoryDto,\n type StepErrorDto,\n type StepErrorReasonDto,\n type StepGateResultDto,\n stepAttemptDtoSchema,\n stepDtoSchema,\n stepErrorCategorySchema,\n stepErrorDtoSchema,\n stepErrorReasonSchema,\n stepGateResultDtoSchema,\n} from './step.js';\nexport {\n type RerunWorkflowRunBodyDto,\n rerunWorkflowRunBodySchema,\n WORKFLOW_RUN_JOB_PREVIEW_LIMIT,\n type WorkflowRunAggregatesQueryDto,\n type WorkflowRunAggregatesResponseDto,\n type WorkflowRunAttemptDto,\n type WorkflowRunAttemptsResponseDto,\n type WorkflowRunDto,\n type WorkflowRunJobStatusCountDto,\n type WorkflowRunJobSummaryDto,\n type WorkflowRunListItemDto,\n type WorkflowRunListQueryDto,\n type WorkflowRunListResponseDto,\n type WorkflowRunRerunModeDto,\n type WorkflowRunResponseDto,\n type WorkflowRunStatusDto,\n type WorkflowRunTriggerReferenceDto,\n type WorkflowSourceSnapshotDto,\n workflowRunAggregatesQuerySchema,\n workflowRunAggregatesResponseSchema,\n workflowRunAttemptDtoSchema,\n workflowRunAttemptsResponseSchema,\n workflowRunDtoSchema,\n workflowRunJobStatusCountDtoSchema,\n workflowRunJobSummaryDtoSchema,\n workflowRunListItemSchema,\n workflowRunListQuerySchema,\n workflowRunListResponseSchema,\n workflowRunRerunModeSchema,\n workflowRunResponseSchema,\n workflowRunStatusSchema,\n workflowRunTriggerReferenceSchema,\n workflowSourceSnapshotSchema,\n} from './workflow-run.js';\nexport {\n type JobExecutionDto,\n jobExecutionDtoSchema,\n jobExecutionStatusSchema,\n type WorkflowRunDetailResponseDto,\n type WorkflowRunJobDetailDto,\n type WorkflowRunJobExecutionDetailDto,\n type WorkflowRunStepDetailDto,\n workflowRunDetailResponseSchema,\n workflowRunJobDetailDtoSchema,\n workflowRunJobExecutionDetailDtoSchema,\n workflowRunStepDetailDtoSchema,\n} from './workflow-run-detail.js';\n"],"names":["agentRuntimeConfigQuerySchema","checkoutIntentSchema","checkoutTokenAuthSchema","checkoutTokenParamsSchema","checkoutTokenQuerySchema","checkoutTokenResponseSchema","jobDtoSchema","jobStatusReasonSchema","jobStatusSchema","checkoutResultSchema","nextStepResponseSchema","reportStepBodySchema","reportStepResponseSchema","STEP_RESPONSE_MAX_LENGTH","jobListeningBatchSchema","jobListeningSchema","jobModeSchema","listenerStatusSchema","listeningTriggerSchema","resolutionReasonSchema","triggerEventsBatchSchema","workflowExecutionContextSchema","workflowExecutionEventSchema","logOutcomeSchema","agentConfigIssueSchema","STEP_ERROR_MESSAGE_MAX_LENGTH","stepAttemptDtoSchema","stepDtoSchema","stepErrorCategorySchema","stepErrorDtoSchema","stepErrorReasonSchema","stepGateResultDtoSchema","rerunWorkflowRunBodySchema","WORKFLOW_RUN_JOB_PREVIEW_LIMIT","workflowRunAggregatesQuerySchema","workflowRunAggregatesResponseSchema","workflowRunAttemptDtoSchema","workflowRunAttemptsResponseSchema","workflowRunDtoSchema","workflowRunJobStatusCountDtoSchema","workflowRunJobSummaryDtoSchema","workflowRunListItemSchema","workflowRunListQuerySchema","workflowRunListResponseSchema","workflowRunRerunModeSchema","workflowRunResponseSchema","workflowRunStatusSchema","workflowRunTriggerReferenceSchema","workflowSourceSnapshotSchema","jobExecutionDtoSchema","jobExecutionStatusSchema","workflowRunDetailResponseSchema","workflowRunJobDetailDtoSchema","workflowRunJobExecutionDetailDtoSchema","workflowRunStepDetailDtoSchema"],"mappings":"AAAA,SAEEA,6BAA6B,QACxB,4BAA4B;AACnC,SAAgCC,oBAAoB,QAAO,gBAAgB;AAC3E,SAKEC,uBAAuB,EACvBC,yBAAyB,EACzBC,wBAAwB,EACxBC,2BAA2B,QACtB,sBAAsB;AAC7B,SAIEC,YAAY,EACZC,qBAAqB,EACrBC,eAAe,QACV,WAAW;AAClB,SAEEC,oBAAoB,EAEpBC,sBAAsB,EAGtBC,oBAAoB,EACpBC,wBAAwB,EACxBC,wBAAwB,QACnB,qBAAqB;AAC5B,SAGEC,uBAAuB,EACvBC,kBAAkB,EAClBC,aAAa,EAGbC,oBAAoB,EACpBC,sBAAsB,EAEtBC,sBAAsB,EAEtBC,wBAAwB,EAGxBC,8BAA8B,EAC9BC,4BAA4B,QACvB,qBAAqB;AAC5B,SAA4BC,gBAAgB,QAAO,mBAAmB;AACtE,SAEEC,sBAAsB,EACtBC,6BAA6B,EAO7BC,oBAAoB,EACpBC,aAAa,EACbC,uBAAuB,EACvBC,kBAAkB,EAClBC,qBAAqB,EACrBC,uBAAuB,QAClB,YAAY;AACnB,SAEEC,0BAA0B,EAC1BC,8BAA8B,EAgB9BC,gCAAgC,EAChCC,mCAAmC,EACnCC,2BAA2B,EAC3BC,iCAAiC,EACjCC,oBAAoB,EACpBC,kCAAkC,EAClCC,8BAA8B,EAC9BC,yBAAyB,EACzBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,0BAA0B,EAC1BC,yBAAyB,EACzBC,uBAAuB,EACvBC,iCAAiC,EACjCC,4BAA4B,QACvB,oBAAoB;AAC3B,SAEEC,qBAAqB,EACrBC,wBAAwB,EAKxBC,+BAA+B,EAC/BC,6BAA6B,EAC7BC,sCAAsC,EACtCC,8BAA8B,QACzB,2BAA2B"}
@@ -33,6 +33,7 @@ export declare const nextStepResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
33
33
  output_invalid: "output_invalid";
34
34
  agent_config_invalid: "agent_config_invalid";
35
35
  agent_invocation_failed: "agent_invocation_failed";
36
+ agent_harness_unavailable: "agent_harness_unavailable";
36
37
  }>>;
37
38
  field: z.ZodOptional<z.ZodString>;
38
39
  source: z.ZodOptional<z.ZodString>;
@@ -63,6 +64,13 @@ export declare const nextStepResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
63
64
  }>;
64
65
  }, z.core.$strip>], "kind">;
65
66
  export type NextStepResponseDto = z.infer<typeof nextStepResponseSchema>;
67
+ export declare const checkoutResultSchema: z.ZodObject<{
68
+ repository: z.ZodString;
69
+ ref: z.ZodString;
70
+ commit: z.ZodString;
71
+ path: z.ZodString;
72
+ }, z.core.$strip>;
73
+ export type CheckoutResultDto = z.infer<typeof checkoutResultSchema>;
66
74
  export declare const reportStepBodySchema: z.ZodObject<{
67
75
  status: z.ZodEnum<{
68
76
  succeeded: "succeeded";
@@ -83,6 +91,7 @@ export declare const reportStepBodySchema: z.ZodObject<{
83
91
  output_invalid: "output_invalid";
84
92
  agent_config_invalid: "agent_config_invalid";
85
93
  agent_invocation_failed: "agent_invocation_failed";
94
+ agent_harness_unavailable: "agent_harness_unavailable";
86
95
  }>>;
87
96
  field: z.ZodOptional<z.ZodString>;
88
97
  source: z.ZodOptional<z.ZodString>;
@@ -101,6 +110,12 @@ export declare const reportStepBodySchema: z.ZodObject<{
101
110
  attempt: z.ZodOptional<z.ZodNumber>;
102
111
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
103
112
  output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
113
+ checkout: z.ZodOptional<z.ZodObject<{
114
+ repository: z.ZodString;
115
+ ref: z.ZodString;
116
+ commit: z.ZodString;
117
+ path: z.ZodString;
118
+ }, z.core.$strip>>;
104
119
  response: z.ZodOptional<z.ZodString>;
105
120
  log_outcome: z.ZodEnum<{
106
121
  drained: "drained";
@@ -1 +1 @@
1
- {"version":3,"file":"job-execution.d.ts","sourceRoot":"","sources":["../../src/schemas/job-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,wBAAwB,QAAW,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwBjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwC7B,CAAC;AAEL,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,wBAAwB;;;iBAOnC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"job-execution.d.ts","sourceRoot":"","sources":["../../src/schemas/job-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,wBAAwB,QAAW,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwBjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,oBAAoB;;;;;iBAO0C,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2C7B,CAAC;AAEL,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,wBAAwB;;;iBAOnC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -20,6 +20,12 @@ export const STEP_RESPONSE_MAX_LENGTH = 8 * 1024;
20
20
  ]).describe('Terminal status of the job when no step remains to run.')
21
21
  })
22
22
  ]);
23
+ export const checkoutResultSchema = z.object({
24
+ repository: z.string().min(1),
25
+ ref: z.string().min(1),
26
+ commit: z.string().min(1),
27
+ path: z.string().min(1)
28
+ }).describe('Resolved repository checkout details reported by the runner.');
23
29
  export const reportStepBodySchema = z.object({
24
30
  status: z.enum([
25
31
  'succeeded',
@@ -29,6 +35,7 @@ export const reportStepBodySchema = z.object({
29
35
  attempt: z.number().int().positive().optional().describe('Attempt number echoed from next-step. Older runners may omit it; when present, it protects the workflow from stale reports.'),
30
36
  exit_code: z.number().int().nullable().optional().describe('Process exit code for the step attempt. Persisted as the canonical attempt exit code and used by gate evaluation.'),
31
37
  output: z.record(z.string(), z.unknown()).nullable().optional().describe('Structured output captured for attempt history. Large textual logs are stored separately.'),
38
+ checkout: checkoutResultSchema.optional().describe('Resolved repository checkout details captured for attempt history.'),
32
39
  response: z.string().max(STEP_RESPONSE_MAX_LENGTH).optional().describe('Capped final assistant response for agent step attempts. Omitted for run steps.'),
33
40
  log_outcome: logOutcomeSchema.describe('Whether the runner drained all locally spooled logs before reporting, or abandoned the log stream for backend closure.')
34
41
  }).refine((body)=>body.status === 'succeeded' ? body.error == null : body.error != null, {