@generacy-ai/workflow-engine 0.0.0-preview-20260304013206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +191 -0
- package/README.md +265 -0
- package/dist/actions/base-action.d.ts +63 -0
- package/dist/actions/base-action.d.ts.map +1 -0
- package/dist/actions/base-action.js +130 -0
- package/dist/actions/base-action.js.map +1 -0
- package/dist/actions/builtin/agent-invoke.d.ts +16 -0
- package/dist/actions/builtin/agent-invoke.d.ts.map +1 -0
- package/dist/actions/builtin/agent-invoke.js +108 -0
- package/dist/actions/builtin/agent-invoke.js.map +1 -0
- package/dist/actions/builtin/humancy-api-handler.d.ts +191 -0
- package/dist/actions/builtin/humancy-api-handler.d.ts.map +1 -0
- package/dist/actions/builtin/humancy-api-handler.js +521 -0
- package/dist/actions/builtin/humancy-api-handler.js.map +1 -0
- package/dist/actions/builtin/humancy-review.d.ts +83 -0
- package/dist/actions/builtin/humancy-review.d.ts.map +1 -0
- package/dist/actions/builtin/humancy-review.js +250 -0
- package/dist/actions/builtin/humancy-review.js.map +1 -0
- package/dist/actions/builtin/pr-create.d.ts +16 -0
- package/dist/actions/builtin/pr-create.d.ts.map +1 -0
- package/dist/actions/builtin/pr-create.js +110 -0
- package/dist/actions/builtin/pr-create.js.map +1 -0
- package/dist/actions/builtin/shell.d.ts +16 -0
- package/dist/actions/builtin/shell.d.ts.map +1 -0
- package/dist/actions/builtin/shell.js +80 -0
- package/dist/actions/builtin/shell.js.map +1 -0
- package/dist/actions/builtin/speckit/index.d.ts +47 -0
- package/dist/actions/builtin/speckit/index.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/index.js +347 -0
- package/dist/actions/builtin/speckit/index.js.map +1 -0
- package/dist/actions/builtin/speckit/lib/feature.d.ts +17 -0
- package/dist/actions/builtin/speckit/lib/feature.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/lib/feature.js +430 -0
- package/dist/actions/builtin/speckit/lib/feature.js.map +1 -0
- package/dist/actions/builtin/speckit/lib/fs.d.ts +62 -0
- package/dist/actions/builtin/speckit/lib/fs.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/lib/fs.js +181 -0
- package/dist/actions/builtin/speckit/lib/fs.js.map +1 -0
- package/dist/actions/builtin/speckit/lib/paths.d.ts +7 -0
- package/dist/actions/builtin/speckit/lib/paths.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/lib/paths.js +161 -0
- package/dist/actions/builtin/speckit/lib/paths.js.map +1 -0
- package/dist/actions/builtin/speckit/lib/prereqs.d.ts +8 -0
- package/dist/actions/builtin/speckit/lib/prereqs.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/lib/prereqs.js +194 -0
- package/dist/actions/builtin/speckit/lib/prereqs.js.map +1 -0
- package/dist/actions/builtin/speckit/lib/stream-batcher.d.ts +14 -0
- package/dist/actions/builtin/speckit/lib/stream-batcher.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/lib/stream-batcher.js +31 -0
- package/dist/actions/builtin/speckit/lib/stream-batcher.js.map +1 -0
- package/dist/actions/builtin/speckit/lib/templates.d.ts +15 -0
- package/dist/actions/builtin/speckit/lib/templates.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/lib/templates.js +176 -0
- package/dist/actions/builtin/speckit/lib/templates.js.map +1 -0
- package/dist/actions/builtin/speckit/operations/check-prereqs.d.ts +11 -0
- package/dist/actions/builtin/speckit/operations/check-prereqs.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/operations/check-prereqs.js +22 -0
- package/dist/actions/builtin/speckit/operations/check-prereqs.js.map +1 -0
- package/dist/actions/builtin/speckit/operations/clarify.d.ts +7 -0
- package/dist/actions/builtin/speckit/operations/clarify.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/operations/clarify.js +302 -0
- package/dist/actions/builtin/speckit/operations/clarify.js.map +1 -0
- package/dist/actions/builtin/speckit/operations/copy-template.d.ts +11 -0
- package/dist/actions/builtin/speckit/operations/copy-template.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/operations/copy-template.js +23 -0
- package/dist/actions/builtin/speckit/operations/copy-template.js.map +1 -0
- package/dist/actions/builtin/speckit/operations/create-feature.d.ts +11 -0
- package/dist/actions/builtin/speckit/operations/create-feature.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/operations/create-feature.js +25 -0
- package/dist/actions/builtin/speckit/operations/create-feature.js.map +1 -0
- package/dist/actions/builtin/speckit/operations/get-paths.d.ts +11 -0
- package/dist/actions/builtin/speckit/operations/get-paths.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/operations/get-paths.js +17 -0
- package/dist/actions/builtin/speckit/operations/get-paths.js.map +1 -0
- package/dist/actions/builtin/speckit/operations/implement.d.ts +7 -0
- package/dist/actions/builtin/speckit/operations/implement.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/operations/implement.js +246 -0
- package/dist/actions/builtin/speckit/operations/implement.js.map +1 -0
- package/dist/actions/builtin/speckit/operations/plan.d.ts +7 -0
- package/dist/actions/builtin/speckit/operations/plan.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/operations/plan.js +253 -0
- package/dist/actions/builtin/speckit/operations/plan.js.map +1 -0
- package/dist/actions/builtin/speckit/operations/specify.d.ts +7 -0
- package/dist/actions/builtin/speckit/operations/specify.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/operations/specify.js +178 -0
- package/dist/actions/builtin/speckit/operations/specify.js.map +1 -0
- package/dist/actions/builtin/speckit/operations/tasks-to-issues.d.ts +42 -0
- package/dist/actions/builtin/speckit/operations/tasks-to-issues.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/operations/tasks-to-issues.js +386 -0
- package/dist/actions/builtin/speckit/operations/tasks-to-issues.js.map +1 -0
- package/dist/actions/builtin/speckit/operations/tasks.d.ts +7 -0
- package/dist/actions/builtin/speckit/operations/tasks.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/operations/tasks.js +234 -0
- package/dist/actions/builtin/speckit/operations/tasks.js.map +1 -0
- package/dist/actions/builtin/speckit/types.d.ts +268 -0
- package/dist/actions/builtin/speckit/types.d.ts.map +1 -0
- package/dist/actions/builtin/speckit/types.js +11 -0
- package/dist/actions/builtin/speckit/types.js.map +1 -0
- package/dist/actions/builtin/verification-check.d.ts +16 -0
- package/dist/actions/builtin/verification-check.d.ts.map +1 -0
- package/dist/actions/builtin/verification-check.js +99 -0
- package/dist/actions/builtin/verification-check.js.map +1 -0
- package/dist/actions/builtin/workspace-prepare.d.ts +16 -0
- package/dist/actions/builtin/workspace-prepare.d.ts.map +1 -0
- package/dist/actions/builtin/workspace-prepare.js +108 -0
- package/dist/actions/builtin/workspace-prepare.js.map +1 -0
- package/dist/actions/cli-utils.d.ts +76 -0
- package/dist/actions/cli-utils.d.ts.map +1 -0
- package/dist/actions/cli-utils.js +278 -0
- package/dist/actions/cli-utils.js.map +1 -0
- package/dist/actions/epic/check-completion.d.ts +14 -0
- package/dist/actions/epic/check-completion.d.ts.map +1 -0
- package/dist/actions/epic/check-completion.js +57 -0
- package/dist/actions/epic/check-completion.js.map +1 -0
- package/dist/actions/epic/close.d.ts +18 -0
- package/dist/actions/epic/close.d.ts.map +1 -0
- package/dist/actions/epic/close.js +76 -0
- package/dist/actions/epic/close.js.map +1 -0
- package/dist/actions/epic/create-pr.d.ts +22 -0
- package/dist/actions/epic/create-pr.d.ts.map +1 -0
- package/dist/actions/epic/create-pr.js +140 -0
- package/dist/actions/epic/create-pr.js.map +1 -0
- package/dist/actions/epic/dispatch-children.d.ts +16 -0
- package/dist/actions/epic/dispatch-children.d.ts.map +1 -0
- package/dist/actions/epic/dispatch-children.js +95 -0
- package/dist/actions/epic/dispatch-children.js.map +1 -0
- package/dist/actions/epic/find-children.d.ts +16 -0
- package/dist/actions/epic/find-children.d.ts.map +1 -0
- package/dist/actions/epic/find-children.js +92 -0
- package/dist/actions/epic/find-children.js.map +1 -0
- package/dist/actions/epic/index.d.ts +20 -0
- package/dist/actions/epic/index.d.ts.map +1 -0
- package/dist/actions/epic/index.js +35 -0
- package/dist/actions/epic/index.js.map +1 -0
- package/dist/actions/epic/post-tasks-summary.d.ts +18 -0
- package/dist/actions/epic/post-tasks-summary.d.ts.map +1 -0
- package/dist/actions/epic/post-tasks-summary.js +123 -0
- package/dist/actions/epic/post-tasks-summary.js.map +1 -0
- package/dist/actions/epic/update-status.d.ts +22 -0
- package/dist/actions/epic/update-status.d.ts.map +1 -0
- package/dist/actions/epic/update-status.js +105 -0
- package/dist/actions/epic/update-status.js.map +1 -0
- package/dist/actions/github/add-comment.d.ts +14 -0
- package/dist/actions/github/add-comment.d.ts.map +1 -0
- package/dist/actions/github/add-comment.js +44 -0
- package/dist/actions/github/add-comment.js.map +1 -0
- package/dist/actions/github/client/gh-cli.d.ts +68 -0
- package/dist/actions/github/client/gh-cli.d.ts.map +1 -0
- package/dist/actions/github/client/gh-cli.js +781 -0
- package/dist/actions/github/client/gh-cli.js.map +1 -0
- package/dist/actions/github/client/index.d.ts +12 -0
- package/dist/actions/github/client/index.d.ts.map +1 -0
- package/dist/actions/github/client/index.js +10 -0
- package/dist/actions/github/client/index.js.map +1 -0
- package/dist/actions/github/client/interface.d.ts +270 -0
- package/dist/actions/github/client/interface.d.ts.map +1 -0
- package/dist/actions/github/client/interface.js +2 -0
- package/dist/actions/github/client/interface.js.map +1 -0
- package/dist/actions/github/commit-and-push.d.ts +19 -0
- package/dist/actions/github/commit-and-push.d.ts.map +1 -0
- package/dist/actions/github/commit-and-push.js +86 -0
- package/dist/actions/github/commit-and-push.js.map +1 -0
- package/dist/actions/github/create-draft-pr.d.ts +18 -0
- package/dist/actions/github/create-draft-pr.d.ts.map +1 -0
- package/dist/actions/github/create-draft-pr.js +76 -0
- package/dist/actions/github/create-draft-pr.js.map +1 -0
- package/dist/actions/github/get-context.d.ts +23 -0
- package/dist/actions/github/get-context.d.ts.map +1 -0
- package/dist/actions/github/get-context.js +109 -0
- package/dist/actions/github/get-context.js.map +1 -0
- package/dist/actions/github/index.d.ts +32 -0
- package/dist/actions/github/index.d.ts.map +1 -0
- package/dist/actions/github/index.js +67 -0
- package/dist/actions/github/index.js.map +1 -0
- package/dist/actions/github/label-definitions.d.ts +19 -0
- package/dist/actions/github/label-definitions.d.ts.map +1 -0
- package/dist/actions/github/label-definitions.js +71 -0
- package/dist/actions/github/label-definitions.js.map +1 -0
- package/dist/actions/github/mark-pr-ready.d.ts +14 -0
- package/dist/actions/github/mark-pr-ready.d.ts.map +1 -0
- package/dist/actions/github/mark-pr-ready.js +43 -0
- package/dist/actions/github/mark-pr-ready.js.map +1 -0
- package/dist/actions/github/merge-from-base.d.ts +15 -0
- package/dist/actions/github/merge-from-base.d.ts.map +1 -0
- package/dist/actions/github/merge-from-base.js +120 -0
- package/dist/actions/github/merge-from-base.js.map +1 -0
- package/dist/actions/github/preflight.d.ts +36 -0
- package/dist/actions/github/preflight.d.ts.map +1 -0
- package/dist/actions/github/preflight.js +292 -0
- package/dist/actions/github/preflight.js.map +1 -0
- package/dist/actions/github/read-pr-feedback.d.ts +14 -0
- package/dist/actions/github/read-pr-feedback.d.ts.map +1 -0
- package/dist/actions/github/read-pr-feedback.js +53 -0
- package/dist/actions/github/read-pr-feedback.js.map +1 -0
- package/dist/actions/github/respond-pr-feedback.d.ts +14 -0
- package/dist/actions/github/respond-pr-feedback.d.ts.map +1 -0
- package/dist/actions/github/respond-pr-feedback.js +58 -0
- package/dist/actions/github/respond-pr-feedback.js.map +1 -0
- package/dist/actions/github/review-changes.d.ts +19 -0
- package/dist/actions/github/review-changes.d.ts.map +1 -0
- package/dist/actions/github/review-changes.js +95 -0
- package/dist/actions/github/review-changes.js.map +1 -0
- package/dist/actions/github/sync-labels.d.ts +14 -0
- package/dist/actions/github/sync-labels.d.ts.map +1 -0
- package/dist/actions/github/sync-labels.js +81 -0
- package/dist/actions/github/sync-labels.js.map +1 -0
- package/dist/actions/github/update-pr.d.ts +14 -0
- package/dist/actions/github/update-pr.d.ts.map +1 -0
- package/dist/actions/github/update-pr.js +63 -0
- package/dist/actions/github/update-pr.js.map +1 -0
- package/dist/actions/index.d.ts +109 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +233 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/workflow/check-gate.d.ts +15 -0
- package/dist/actions/workflow/check-gate.d.ts.map +1 -0
- package/dist/actions/workflow/check-gate.js +75 -0
- package/dist/actions/workflow/check-gate.js.map +1 -0
- package/dist/actions/workflow/index.d.ts +21 -0
- package/dist/actions/workflow/index.d.ts.map +1 -0
- package/dist/actions/workflow/index.js +31 -0
- package/dist/actions/workflow/index.js.map +1 -0
- package/dist/actions/workflow/update-phase.d.ts +15 -0
- package/dist/actions/workflow/update-phase.d.ts.map +1 -0
- package/dist/actions/workflow/update-phase.js +143 -0
- package/dist/actions/workflow/update-phase.js.map +1 -0
- package/dist/actions/workflow/update-stage.d.ts +19 -0
- package/dist/actions/workflow/update-stage.d.ts.map +1 -0
- package/dist/actions/workflow/update-stage.js +137 -0
- package/dist/actions/workflow/update-stage.js.map +1 -0
- package/dist/errors/base-workflow-not-found.d.ts +10 -0
- package/dist/errors/base-workflow-not-found.d.ts.map +1 -0
- package/dist/errors/base-workflow-not-found.js +18 -0
- package/dist/errors/base-workflow-not-found.js.map +1 -0
- package/dist/errors/circular-extends.d.ts +9 -0
- package/dist/errors/circular-extends.d.ts.map +1 -0
- package/dist/errors/circular-extends.js +13 -0
- package/dist/errors/circular-extends.js.map +1 -0
- package/dist/errors/correlation-timeout.d.ts +9 -0
- package/dist/errors/correlation-timeout.d.ts.map +1 -0
- package/dist/errors/correlation-timeout.js +13 -0
- package/dist/errors/correlation-timeout.js.map +1 -0
- package/dist/errors/workflow-override.d.ts +9 -0
- package/dist/errors/workflow-override.d.ts.map +1 -0
- package/dist/errors/workflow-override.js +12 -0
- package/dist/errors/workflow-override.js.map +1 -0
- package/dist/executor/events.d.ts +55 -0
- package/dist/executor/events.d.ts.map +1 -0
- package/dist/executor/events.js +72 -0
- package/dist/executor/events.js.map +1 -0
- package/dist/executor/gate-handler.d.ts +55 -0
- package/dist/executor/gate-handler.d.ts.map +1 -0
- package/dist/executor/gate-handler.js +139 -0
- package/dist/executor/gate-handler.js.map +1 -0
- package/dist/executor/index.d.ts +140 -0
- package/dist/executor/index.d.ts.map +1 -0
- package/dist/executor/index.js +681 -0
- package/dist/executor/index.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/dist/interpolation/context.d.ts +117 -0
- package/dist/interpolation/context.d.ts.map +1 -0
- package/dist/interpolation/context.js +256 -0
- package/dist/interpolation/context.js.map +1 -0
- package/dist/interpolation/index.d.ts +76 -0
- package/dist/interpolation/index.d.ts.map +1 -0
- package/dist/interpolation/index.js +264 -0
- package/dist/interpolation/index.js.map +1 -0
- package/dist/loader/extends.d.ts +48 -0
- package/dist/loader/extends.d.ts.map +1 -0
- package/dist/loader/extends.js +140 -0
- package/dist/loader/extends.js.map +1 -0
- package/dist/loader/index.d.ts +50 -0
- package/dist/loader/index.d.ts.map +1 -0
- package/dist/loader/index.js +190 -0
- package/dist/loader/index.js.map +1 -0
- package/dist/loader/schema.d.ts +506 -0
- package/dist/loader/schema.d.ts.map +1 -0
- package/dist/loader/schema.js +63 -0
- package/dist/loader/schema.js.map +1 -0
- package/dist/loader/validator.d.ts +33 -0
- package/dist/loader/validator.d.ts.map +1 -0
- package/dist/loader/validator.js +135 -0
- package/dist/loader/validator.js.map +1 -0
- package/dist/registry/index.d.ts +42 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +77 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/retry/index.d.ts +37 -0
- package/dist/retry/index.d.ts.map +1 -0
- package/dist/retry/index.js +225 -0
- package/dist/retry/index.js.map +1 -0
- package/dist/retry/strategies.d.ts +74 -0
- package/dist/retry/strategies.d.ts.map +1 -0
- package/dist/retry/strategies.js +136 -0
- package/dist/retry/strategies.js.map +1 -0
- package/dist/store/filesystem-store.d.ts +52 -0
- package/dist/store/filesystem-store.d.ts.map +1 -0
- package/dist/store/filesystem-store.js +230 -0
- package/dist/store/filesystem-store.js.map +1 -0
- package/dist/store/index.d.ts +7 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +6 -0
- package/dist/store/index.js.map +1 -0
- package/dist/types/action.d.ts +358 -0
- package/dist/types/action.d.ts.map +1 -0
- package/dist/types/action.js +96 -0
- package/dist/types/action.js.map +1 -0
- package/dist/types/events.d.ts +25 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/events.js +6 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/execution.d.ts +145 -0
- package/dist/types/execution.d.ts.map +1 -0
- package/dist/types/execution.js +2 -0
- package/dist/types/execution.js.map +1 -0
- package/dist/types/gate.d.ts +98 -0
- package/dist/types/gate.d.ts.map +1 -0
- package/dist/types/gate.js +41 -0
- package/dist/types/gate.js.map +1 -0
- package/dist/types/github.d.ts +706 -0
- package/dist/types/github.d.ts.map +1 -0
- package/dist/types/github.js +6 -0
- package/dist/types/github.js.map +1 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +8 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/logger.d.ts +60 -0
- package/dist/types/logger.d.ts.map +1 -0
- package/dist/types/logger.js +66 -0
- package/dist/types/logger.js.map +1 -0
- package/dist/types/retry.d.ts +36 -0
- package/dist/types/retry.d.ts.map +1 -0
- package/dist/types/retry.js +6 -0
- package/dist/types/retry.js.map +1 -0
- package/dist/types/store.d.ts +88 -0
- package/dist/types/store.d.ts.map +1 -0
- package/dist/types/store.js +6 -0
- package/dist/types/store.js.map +1 -0
- package/dist/types/workflow.d.ts +105 -0
- package/dist/types/workflow.d.ts.map +1 -0
- package/dist/types/workflow.js +6 -0
- package/dist/types/workflow.js.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action system types.
|
|
3
|
+
* Defines interfaces for action handlers, context, and results.
|
|
4
|
+
*/
|
|
5
|
+
import type { ExecutableWorkflow } from './execution.js';
|
|
6
|
+
import type { PhaseDefinition, StepDefinition } from './workflow.js';
|
|
7
|
+
import type { Logger } from './logger.js';
|
|
8
|
+
/**
|
|
9
|
+
* Built-in action types supported by the workflow engine.
|
|
10
|
+
* These are the core actions that are always available.
|
|
11
|
+
*/
|
|
12
|
+
export type BuiltinActionType = 'workspace.prepare' | 'agent.invoke' | 'verification.check' | 'pr.create' | 'shell' | 'humancy.request_review' | 'speckit';
|
|
13
|
+
/**
|
|
14
|
+
* GitHub action namespace types
|
|
15
|
+
*/
|
|
16
|
+
export type GitHubActionType = 'github.preflight' | 'github.get_context' | 'github.review_changes' | 'github.commit_and_push' | 'github.merge_from_base' | 'github.create_draft_pr' | 'github.mark_pr_ready' | 'github.update_pr' | 'github.read_pr_feedback' | 'github.respond_pr_feedback' | 'github.add_comment' | 'github.sync_labels';
|
|
17
|
+
/**
|
|
18
|
+
* Workflow action namespace types
|
|
19
|
+
*/
|
|
20
|
+
export type WorkflowActionType = 'workflow.update_phase' | 'workflow.check_gate' | 'workflow.update_stage';
|
|
21
|
+
/**
|
|
22
|
+
* Epic action namespace types
|
|
23
|
+
*/
|
|
24
|
+
export type EpicActionType = 'epic.post_tasks_summary' | 'epic.check_completion' | 'epic.update_status' | 'epic.create_pr' | 'epic.close' | 'epic.dispatch_children';
|
|
25
|
+
/**
|
|
26
|
+
* All known action types (built-in + namespaced).
|
|
27
|
+
* Use ActionIdentifier for dynamic/custom actions.
|
|
28
|
+
*/
|
|
29
|
+
export type ActionType = BuiltinActionType | GitHubActionType | WorkflowActionType | EpicActionType;
|
|
30
|
+
/**
|
|
31
|
+
* Action identifier - can be any namespaced string (e.g., 'github.preflight', 'custom.action')
|
|
32
|
+
* This allows for extensibility beyond the predefined types.
|
|
33
|
+
*/
|
|
34
|
+
export type ActionIdentifier = string;
|
|
35
|
+
/**
|
|
36
|
+
* Action namespace definition for plugin registration
|
|
37
|
+
*/
|
|
38
|
+
export interface ActionNamespace {
|
|
39
|
+
/** Namespace name (e.g., 'github', 'workflow', 'epic') */
|
|
40
|
+
namespace: string;
|
|
41
|
+
/** Description of the namespace */
|
|
42
|
+
description?: string;
|
|
43
|
+
/** Action handlers in this namespace */
|
|
44
|
+
handlers: ActionHandler[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Step output stored for variable interpolation
|
|
48
|
+
*/
|
|
49
|
+
export interface StepOutput {
|
|
50
|
+
/** Raw string output */
|
|
51
|
+
raw: string;
|
|
52
|
+
/** Parsed JSON output (null if not valid JSON) */
|
|
53
|
+
parsed: unknown | null;
|
|
54
|
+
/** Exit code from execution */
|
|
55
|
+
exitCode: number;
|
|
56
|
+
/** Timestamp when step completed */
|
|
57
|
+
completedAt: Date;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Context provided to action handlers during execution
|
|
61
|
+
*/
|
|
62
|
+
export interface ActionContext {
|
|
63
|
+
/** The full workflow definition */
|
|
64
|
+
workflow: ExecutableWorkflow;
|
|
65
|
+
/** Current phase being executed */
|
|
66
|
+
phase: PhaseDefinition;
|
|
67
|
+
/** Current step being executed */
|
|
68
|
+
step: StepDefinition;
|
|
69
|
+
/** Workflow input parameters */
|
|
70
|
+
inputs: Record<string, unknown>;
|
|
71
|
+
/** Outputs from previously executed steps (keyed by stepId) */
|
|
72
|
+
stepOutputs: Map<string, StepOutput>;
|
|
73
|
+
/** Merged environment variables */
|
|
74
|
+
env: Record<string, string>;
|
|
75
|
+
/** Working directory for command execution */
|
|
76
|
+
workdir: string;
|
|
77
|
+
/** Abort signal for cancellation */
|
|
78
|
+
signal: AbortSignal;
|
|
79
|
+
/** Logger for action execution */
|
|
80
|
+
logger: Logger;
|
|
81
|
+
/** Emit a streaming event (log output or step output) */
|
|
82
|
+
emitEvent?: (event: {
|
|
83
|
+
type: 'log:append' | 'step:output';
|
|
84
|
+
data: Record<string, unknown>;
|
|
85
|
+
}) => void;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Result returned by action handlers
|
|
89
|
+
*/
|
|
90
|
+
export interface ActionResult {
|
|
91
|
+
/** Whether the action completed successfully */
|
|
92
|
+
success: boolean;
|
|
93
|
+
/** Structured output from the action (preferably JSON) */
|
|
94
|
+
output: unknown;
|
|
95
|
+
/** Raw stdout from command execution */
|
|
96
|
+
stdout?: string;
|
|
97
|
+
/** Raw stderr from command execution */
|
|
98
|
+
stderr?: string;
|
|
99
|
+
/** Error message if action failed */
|
|
100
|
+
error?: string;
|
|
101
|
+
/** Exit code from command (0 = success) */
|
|
102
|
+
exitCode?: number;
|
|
103
|
+
/** Execution duration in milliseconds */
|
|
104
|
+
duration: number;
|
|
105
|
+
/** Files modified by this action (for tracking) */
|
|
106
|
+
filesModified?: string[];
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Validation error structure
|
|
110
|
+
*/
|
|
111
|
+
export interface ValidationError {
|
|
112
|
+
field: string;
|
|
113
|
+
message: string;
|
|
114
|
+
code: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Validation warning structure
|
|
118
|
+
*/
|
|
119
|
+
export interface ValidationWarning {
|
|
120
|
+
field: string;
|
|
121
|
+
message: string;
|
|
122
|
+
suggestion?: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Validation result from step configuration check
|
|
126
|
+
*/
|
|
127
|
+
export interface ValidationResult {
|
|
128
|
+
/** Whether validation passed */
|
|
129
|
+
valid: boolean;
|
|
130
|
+
/** Validation errors (if any) */
|
|
131
|
+
errors: ValidationError[];
|
|
132
|
+
/** Validation warnings (if any) */
|
|
133
|
+
warnings: ValidationWarning[];
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Action handler interface
|
|
137
|
+
* Defines the contract for all action implementations
|
|
138
|
+
*/
|
|
139
|
+
export interface ActionHandler {
|
|
140
|
+
/** The action type this handler processes (can be namespaced) */
|
|
141
|
+
readonly type: ActionIdentifier;
|
|
142
|
+
/**
|
|
143
|
+
* Check if this handler can process the given step
|
|
144
|
+
* @param step The workflow step to check
|
|
145
|
+
* @returns true if this handler can process the step
|
|
146
|
+
*/
|
|
147
|
+
canHandle(step: StepDefinition): boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Execute the action and return structured result
|
|
150
|
+
* @param step The workflow step to execute
|
|
151
|
+
* @param context Execution context with inputs, outputs, and environment
|
|
152
|
+
* @returns Promise resolving to action result
|
|
153
|
+
*/
|
|
154
|
+
execute(step: StepDefinition, context: ActionContext): Promise<ActionResult>;
|
|
155
|
+
/**
|
|
156
|
+
* Validate step configuration before execution (optional)
|
|
157
|
+
* @param step The workflow step to validate
|
|
158
|
+
* @returns Validation result with errors and warnings
|
|
159
|
+
*/
|
|
160
|
+
validate?(step: StepDefinition): ValidationResult;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Input for workspace.prepare action
|
|
164
|
+
*/
|
|
165
|
+
export interface WorkspacePrepareInput {
|
|
166
|
+
/** Branch name to create/checkout */
|
|
167
|
+
branch: string;
|
|
168
|
+
/** Base branch to create from (optional, defaults to current) */
|
|
169
|
+
baseBranch?: string;
|
|
170
|
+
/** Whether to force checkout (discard local changes) */
|
|
171
|
+
force?: boolean;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Output from workspace.prepare action
|
|
175
|
+
*/
|
|
176
|
+
export interface WorkspacePrepareOutput {
|
|
177
|
+
/** The branch that was checked out */
|
|
178
|
+
branch: string;
|
|
179
|
+
/** Previous branch before checkout */
|
|
180
|
+
previousBranch: string;
|
|
181
|
+
/** Whether a new branch was created */
|
|
182
|
+
created: boolean;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Input for agent.invoke action
|
|
186
|
+
*/
|
|
187
|
+
export interface AgentInvokeInput {
|
|
188
|
+
/** The prompt/task to send to the agent */
|
|
189
|
+
prompt: string;
|
|
190
|
+
/** Optional list of allowed tools */
|
|
191
|
+
allowedTools?: string[];
|
|
192
|
+
/** Maximum execution time in seconds */
|
|
193
|
+
timeout?: number;
|
|
194
|
+
/** Maximum number of agent turns */
|
|
195
|
+
maxTurns?: number;
|
|
196
|
+
/** Working directory for the agent */
|
|
197
|
+
workdir?: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Output from agent.invoke action
|
|
201
|
+
*/
|
|
202
|
+
export interface AgentInvokeOutput {
|
|
203
|
+
/** Summary of what the agent accomplished */
|
|
204
|
+
summary: string;
|
|
205
|
+
/** Files modified by the agent */
|
|
206
|
+
filesModified: string[];
|
|
207
|
+
/** Conversation ID for reference */
|
|
208
|
+
conversationId?: string;
|
|
209
|
+
/** Number of turns taken */
|
|
210
|
+
turns: number;
|
|
211
|
+
/** Any structured data returned by agent */
|
|
212
|
+
data?: Record<string, unknown>;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Input for verification.check action
|
|
216
|
+
*/
|
|
217
|
+
export interface VerificationCheckInput {
|
|
218
|
+
/** Command to run (e.g., "npm test", "npm run lint") */
|
|
219
|
+
command: string;
|
|
220
|
+
/** Working directory */
|
|
221
|
+
workdir?: string;
|
|
222
|
+
/** Environment variables to set */
|
|
223
|
+
env?: Record<string, string>;
|
|
224
|
+
/** Expected exit code (default: 0) */
|
|
225
|
+
expectedExitCode?: number;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Output from verification.check action
|
|
229
|
+
*/
|
|
230
|
+
export interface VerificationCheckOutput {
|
|
231
|
+
/** Whether verification passed */
|
|
232
|
+
passed: boolean;
|
|
233
|
+
/** Test/lint output */
|
|
234
|
+
output: string;
|
|
235
|
+
/** Number of tests passed (if applicable) */
|
|
236
|
+
testsPassed?: number;
|
|
237
|
+
/** Number of tests failed (if applicable) */
|
|
238
|
+
testsFailed?: number;
|
|
239
|
+
/** Lint errors count (if applicable) */
|
|
240
|
+
lintErrors?: number;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Input for pr.create action
|
|
244
|
+
*/
|
|
245
|
+
export interface PrCreateInput {
|
|
246
|
+
/** PR title */
|
|
247
|
+
title: string;
|
|
248
|
+
/** PR body/description */
|
|
249
|
+
body?: string;
|
|
250
|
+
/** Base branch for the PR */
|
|
251
|
+
base?: string;
|
|
252
|
+
/** Whether to create as draft */
|
|
253
|
+
draft?: boolean;
|
|
254
|
+
/** Labels to add to the PR */
|
|
255
|
+
labels?: string[];
|
|
256
|
+
/** Reviewers to request */
|
|
257
|
+
reviewers?: string[];
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Output from pr.create action
|
|
261
|
+
*/
|
|
262
|
+
export interface PrCreateOutput {
|
|
263
|
+
/** Created PR number */
|
|
264
|
+
number: number;
|
|
265
|
+
/** PR URL */
|
|
266
|
+
url: string;
|
|
267
|
+
/** PR state */
|
|
268
|
+
state: 'open' | 'draft';
|
|
269
|
+
/** Head branch */
|
|
270
|
+
headBranch: string;
|
|
271
|
+
/** Base branch */
|
|
272
|
+
baseBranch: string;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Urgency levels for human review requests
|
|
276
|
+
*/
|
|
277
|
+
export type HumancyUrgency = 'low' | 'normal' | 'blocking_soon' | 'blocking_now';
|
|
278
|
+
/**
|
|
279
|
+
* Input for humancy.request_review action
|
|
280
|
+
*/
|
|
281
|
+
export interface HumancyReviewInput {
|
|
282
|
+
/**
|
|
283
|
+
* Content or file path to present for review.
|
|
284
|
+
* Supports variable interpolation: ${steps.preview.output.summary}
|
|
285
|
+
*/
|
|
286
|
+
artifact: string;
|
|
287
|
+
/**
|
|
288
|
+
* Review instructions and context for the human reviewer.
|
|
289
|
+
* Describes what to check and why approval is needed.
|
|
290
|
+
*/
|
|
291
|
+
context: string;
|
|
292
|
+
/**
|
|
293
|
+
* Review urgency level.
|
|
294
|
+
* - 'low': No time pressure, can wait days
|
|
295
|
+
* - 'normal': Default, expect response within hours
|
|
296
|
+
* - 'blocking_soon': Blocking workflow, need response soon
|
|
297
|
+
* - 'blocking_now': Critical, immediate attention needed
|
|
298
|
+
* @default 'normal'
|
|
299
|
+
*/
|
|
300
|
+
urgency?: HumancyUrgency;
|
|
301
|
+
/**
|
|
302
|
+
* Timeout in milliseconds for waiting on human response.
|
|
303
|
+
* After timeout, action fails with timeout reason.
|
|
304
|
+
* @default 86400000 (24 hours)
|
|
305
|
+
*/
|
|
306
|
+
timeout?: number;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Output from humancy.request_review action
|
|
310
|
+
*/
|
|
311
|
+
export interface HumancyReviewOutput {
|
|
312
|
+
/**
|
|
313
|
+
* Whether the human approved the review.
|
|
314
|
+
* Used in conditional step execution: ${steps.review.approved}
|
|
315
|
+
*/
|
|
316
|
+
approved: boolean;
|
|
317
|
+
/**
|
|
318
|
+
* Optional comments from the reviewer.
|
|
319
|
+
* Present when rejection requires explanation.
|
|
320
|
+
*/
|
|
321
|
+
comments?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Identifier of the user who responded.
|
|
324
|
+
* From Humancy user profile.
|
|
325
|
+
*/
|
|
326
|
+
respondedBy?: string;
|
|
327
|
+
/**
|
|
328
|
+
* ISO timestamp when response was received.
|
|
329
|
+
*/
|
|
330
|
+
respondedAt?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Unique ID of the review request.
|
|
333
|
+
* Can be used for audit/tracking.
|
|
334
|
+
*/
|
|
335
|
+
reviewId: string;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Check if an action identifier is a namespaced action
|
|
339
|
+
* @param identifier The action identifier to check
|
|
340
|
+
* @returns true if the identifier contains a namespace (e.g., 'github.preflight')
|
|
341
|
+
*/
|
|
342
|
+
export declare function isNamespacedAction(identifier: string): boolean;
|
|
343
|
+
/**
|
|
344
|
+
* Parse namespace and action name from an identifier
|
|
345
|
+
* @param identifier The action identifier (e.g., 'github.preflight')
|
|
346
|
+
* @returns Object with namespace and name, or null if not namespaced
|
|
347
|
+
*/
|
|
348
|
+
export declare function parseNamespacedAction(identifier: string): {
|
|
349
|
+
namespace: string;
|
|
350
|
+
name: string;
|
|
351
|
+
} | null;
|
|
352
|
+
/**
|
|
353
|
+
* Parse action type from a workflow step's 'uses' or 'action' field
|
|
354
|
+
* @param step The workflow step to parse
|
|
355
|
+
* @returns The detected action type, or 'shell' as fallback
|
|
356
|
+
*/
|
|
357
|
+
export declare function parseActionType(step: StepDefinition): ActionType;
|
|
358
|
+
//# sourceMappingURL=action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/types/action.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GACzB,mBAAmB,GACnB,cAAc,GACd,oBAAoB,GACpB,WAAW,GACX,OAAO,GACP,wBAAwB,GACxB,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,kBAAkB,GAClB,oBAAoB,GACpB,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,GACxB,wBAAwB,GACxB,sBAAsB,GACtB,kBAAkB,GAClB,yBAAyB,GACzB,4BAA4B,GAC5B,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,uBAAuB,GACvB,qBAAqB,GACrB,uBAAuB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,yBAAyB,GACzB,uBAAuB,GACvB,oBAAoB,GACpB,gBAAgB,GAChB,YAAY,G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AEjB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CASpG;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,CAuEhE"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if an action identifier is a namespaced action
|
|
3
|
+
* @param identifier The action identifier to check
|
|
4
|
+
* @returns true if the identifier contains a namespace (e.g., 'github.preflight')
|
|
5
|
+
*/
|
|
6
|
+
export function isNamespacedAction(identifier) {
|
|
7
|
+
return identifier.includes('.') && !identifier.startsWith('.');
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Parse namespace and action name from an identifier
|
|
11
|
+
* @param identifier The action identifier (e.g., 'github.preflight')
|
|
12
|
+
* @returns Object with namespace and name, or null if not namespaced
|
|
13
|
+
*/
|
|
14
|
+
export function parseNamespacedAction(identifier) {
|
|
15
|
+
if (!isNamespacedAction(identifier)) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const dotIndex = identifier.indexOf('.');
|
|
19
|
+
return {
|
|
20
|
+
namespace: identifier.substring(0, dotIndex),
|
|
21
|
+
name: identifier.substring(dotIndex + 1),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Parse action type from a workflow step's 'uses' or 'action' field
|
|
26
|
+
* @param step The workflow step to parse
|
|
27
|
+
* @returns The detected action type, or 'shell' as fallback
|
|
28
|
+
*/
|
|
29
|
+
export function parseActionType(step) {
|
|
30
|
+
// Check 'uses' field first (preferred for action specification)
|
|
31
|
+
const uses = step.uses;
|
|
32
|
+
if (uses) {
|
|
33
|
+
// Check for compound namespace patterns first - these map to a base action type
|
|
34
|
+
// (e.g., 'speckit.create_feature' → 'speckit', not the full identifier)
|
|
35
|
+
if (uses.startsWith('speckit.') || uses.startsWith('speckit/')) {
|
|
36
|
+
return 'speckit';
|
|
37
|
+
}
|
|
38
|
+
if (uses.includes('workspace.prepare') || uses.includes('workspace/prepare')) {
|
|
39
|
+
return 'workspace.prepare';
|
|
40
|
+
}
|
|
41
|
+
if (uses.includes('agent.invoke') || uses.includes('agent/invoke') || uses.includes('claude')) {
|
|
42
|
+
return 'agent.invoke';
|
|
43
|
+
}
|
|
44
|
+
if (uses.includes('verification.check') || uses.includes('verification/check') || uses.includes('test') || uses.includes('lint')) {
|
|
45
|
+
return 'verification.check';
|
|
46
|
+
}
|
|
47
|
+
if (uses.includes('pr.create') || uses.includes('pr/create') || uses.includes('pull-request')) {
|
|
48
|
+
return 'pr.create';
|
|
49
|
+
}
|
|
50
|
+
if (uses.includes('humancy.request_review') || uses.includes('humancy/request_review') || uses.includes('humancy')) {
|
|
51
|
+
return 'humancy.request_review';
|
|
52
|
+
}
|
|
53
|
+
// For other namespaced actions (e.g., 'github.preflight', 'workflow.update_phase'),
|
|
54
|
+
// return the full identifier as the action type
|
|
55
|
+
if (isNamespacedAction(uses)) {
|
|
56
|
+
return uses;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
// Check 'action' field as fallback
|
|
60
|
+
const action = step.action;
|
|
61
|
+
if (action) {
|
|
62
|
+
// Check for compound namespace patterns first
|
|
63
|
+
if (action.startsWith('speckit.') || action.startsWith('speckit/')) {
|
|
64
|
+
return 'speckit';
|
|
65
|
+
}
|
|
66
|
+
if (action === 'workspace.prepare' || action === 'workspace-prepare') {
|
|
67
|
+
return 'workspace.prepare';
|
|
68
|
+
}
|
|
69
|
+
if (action === 'agent.invoke' || action === 'agent-invoke') {
|
|
70
|
+
return 'agent.invoke';
|
|
71
|
+
}
|
|
72
|
+
if (action === 'verification.check' || action === 'verification-check' || action === 'test' || action === 'lint') {
|
|
73
|
+
return 'verification.check';
|
|
74
|
+
}
|
|
75
|
+
if (action === 'pr.create' || action === 'pr-create') {
|
|
76
|
+
return 'pr.create';
|
|
77
|
+
}
|
|
78
|
+
if (action === 'humancy.request_review' || action === 'humancy-request-review') {
|
|
79
|
+
return 'humancy.request_review';
|
|
80
|
+
}
|
|
81
|
+
if (action === 'shell' || action === 'run') {
|
|
82
|
+
return 'shell';
|
|
83
|
+
}
|
|
84
|
+
// For other namespaced actions, return the full identifier
|
|
85
|
+
if (isNamespacedAction(action)) {
|
|
86
|
+
return action;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
// If step has command or script, treat as shell
|
|
90
|
+
if (step.command || step.script) {
|
|
91
|
+
return 'shell';
|
|
92
|
+
}
|
|
93
|
+
// Default to shell for unknown actions
|
|
94
|
+
return 'shell';
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.js","sourceRoot":"","sources":["../../src/types/action.ts"],"names":[],"mappings":"AAsZA;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,UAAkB;IACnD,OAAO,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC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AAE,CAAC;YACrD,OAAO,WAAW,CAAC;QACrB,CAAC;QACD,IAAI,MAAM,KAAK,wBAAwB,IAAI,MAAM,KAAK,wBAAwB,EAAE,CAAC;YAC/E,OAAO,wBAAwB,CAAC;QAClC,CAAC;QACD,IAAI,MAAM,KAAK,OAAO,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;YAC3C,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,2DAA2D;QAC3D,IAAI,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,OAAO,MAAoB,CAAC;QAC9B,CAAC;IACH,CAAC;IAED,gDAAgD;IAChD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QAChC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,uCAAuC;IACvC,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execution event types.
|
|
3
|
+
* Defines events emitted during workflow execution.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Execution event types
|
|
7
|
+
*/
|
|
8
|
+
export type ExecutionEventType = 'execution:start' | 'execution:complete' | 'execution:error' | 'execution:cancel' | 'phase:start' | 'phase:complete' | 'phase:error' | 'step:start' | 'step:complete' | 'step:error' | 'step:output' | 'action:start' | 'action:complete' | 'action:error' | 'action:retry' | 'log:append';
|
|
9
|
+
/**
|
|
10
|
+
* Execution event data
|
|
11
|
+
*/
|
|
12
|
+
export interface ExecutionEvent {
|
|
13
|
+
type: ExecutionEventType;
|
|
14
|
+
timestamp: number;
|
|
15
|
+
workflowName: string;
|
|
16
|
+
phaseName?: string;
|
|
17
|
+
stepName?: string;
|
|
18
|
+
message?: string;
|
|
19
|
+
data?: unknown;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Execution event listener
|
|
23
|
+
*/
|
|
24
|
+
export type ExecutionEventListener = (event: ExecutionEvent) => void;
|
|
25
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,iBAAiB,GACjB,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,aAAa,GACb,gBAAgB,GAChB,aAAa,GACb,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,YAAY,CAAC;AAEjB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execution state types.
|
|
3
|
+
* Defines runtime state for workflow execution.
|
|
4
|
+
*/
|
|
5
|
+
import type { PhaseDefinition, StepDefinition } from './workflow.js';
|
|
6
|
+
/**
|
|
7
|
+
* Workflow execution status
|
|
8
|
+
*/
|
|
9
|
+
export type ExecutionStatus = 'idle' | 'running' | 'paused' | 'completed' | 'failed' | 'cancelled';
|
|
10
|
+
/**
|
|
11
|
+
* Step execution status
|
|
12
|
+
*/
|
|
13
|
+
export type StepStatus = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';
|
|
14
|
+
/**
|
|
15
|
+
* Execution mode
|
|
16
|
+
*/
|
|
17
|
+
export type ExecutionMode = 'normal' | 'dry-run';
|
|
18
|
+
/**
|
|
19
|
+
* Parsed workflow structure for execution
|
|
20
|
+
* Extends WorkflowDefinition with runtime-resolved values
|
|
21
|
+
*/
|
|
22
|
+
export interface ExecutableWorkflow {
|
|
23
|
+
/** Workflow name */
|
|
24
|
+
name: string;
|
|
25
|
+
/** Workflow description */
|
|
26
|
+
description?: string;
|
|
27
|
+
/** Workflow phases */
|
|
28
|
+
phases: PhaseDefinition[];
|
|
29
|
+
/** Resolved environment variables */
|
|
30
|
+
env?: Record<string, string>;
|
|
31
|
+
/** Default timeout */
|
|
32
|
+
timeout?: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Step execution result
|
|
36
|
+
*/
|
|
37
|
+
export interface StepResult {
|
|
38
|
+
/** Step name */
|
|
39
|
+
stepName: string;
|
|
40
|
+
/** Phase name containing the step */
|
|
41
|
+
phaseName: string;
|
|
42
|
+
/** Execution status */
|
|
43
|
+
status: StepStatus;
|
|
44
|
+
/** Start timestamp */
|
|
45
|
+
startTime: number;
|
|
46
|
+
/** End timestamp */
|
|
47
|
+
endTime?: number;
|
|
48
|
+
/** Duration in milliseconds */
|
|
49
|
+
duration?: number;
|
|
50
|
+
/** Step output */
|
|
51
|
+
output?: string;
|
|
52
|
+
/** Error message if failed */
|
|
53
|
+
error?: string;
|
|
54
|
+
/** Exit code from command */
|
|
55
|
+
exitCode?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Phase execution result
|
|
59
|
+
*/
|
|
60
|
+
export interface PhaseResult {
|
|
61
|
+
/** Phase name */
|
|
62
|
+
phaseName: string;
|
|
63
|
+
/** Execution status */
|
|
64
|
+
status: StepStatus;
|
|
65
|
+
/** Start timestamp */
|
|
66
|
+
startTime: number;
|
|
67
|
+
/** End timestamp */
|
|
68
|
+
endTime?: number;
|
|
69
|
+
/** Duration in milliseconds */
|
|
70
|
+
duration?: number;
|
|
71
|
+
/** Results for each step in the phase */
|
|
72
|
+
stepResults: StepResult[];
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Workflow execution result
|
|
76
|
+
*/
|
|
77
|
+
export interface ExecutionResult {
|
|
78
|
+
/** Workflow name */
|
|
79
|
+
workflowName: string;
|
|
80
|
+
/** Final execution status */
|
|
81
|
+
status: ExecutionStatus;
|
|
82
|
+
/** Execution mode used */
|
|
83
|
+
mode: ExecutionMode;
|
|
84
|
+
/** Start timestamp */
|
|
85
|
+
startTime: number;
|
|
86
|
+
/** End timestamp */
|
|
87
|
+
endTime?: number;
|
|
88
|
+
/** Duration in milliseconds */
|
|
89
|
+
duration?: number;
|
|
90
|
+
/** Results for each phase */
|
|
91
|
+
phaseResults: PhaseResult[];
|
|
92
|
+
/** Environment variables used */
|
|
93
|
+
env: Record<string, string>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Execution options
|
|
97
|
+
*/
|
|
98
|
+
export interface ExecutionOptions {
|
|
99
|
+
/** Execution mode */
|
|
100
|
+
mode: ExecutionMode;
|
|
101
|
+
/** Environment variables */
|
|
102
|
+
env?: Record<string, string>;
|
|
103
|
+
/** Working directory */
|
|
104
|
+
cwd?: string;
|
|
105
|
+
/** Start from specific phase */
|
|
106
|
+
startPhase?: string;
|
|
107
|
+
/** Start from specific step */
|
|
108
|
+
startStep?: string;
|
|
109
|
+
/** Enable verbose output */
|
|
110
|
+
verbose?: boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Request for executing a single step via the debug adapter.
|
|
114
|
+
* Used by DebugSession to delegate individual step execution to WorkflowExecutor.
|
|
115
|
+
*/
|
|
116
|
+
export interface SingleStepRequest {
|
|
117
|
+
/** The step to execute */
|
|
118
|
+
step: StepDefinition;
|
|
119
|
+
/** The phase containing the step */
|
|
120
|
+
phase: PhaseDefinition;
|
|
121
|
+
/** Execution context for variable interpolation and output storage */
|
|
122
|
+
context: unknown;
|
|
123
|
+
/** Index of the phase in the workflow */
|
|
124
|
+
phaseIndex: number;
|
|
125
|
+
/** Index of the step within the phase */
|
|
126
|
+
stepIndex: number;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Result from executing a single step via the debug adapter.
|
|
130
|
+
*/
|
|
131
|
+
export interface SingleStepResult {
|
|
132
|
+
/** Whether the step completed successfully */
|
|
133
|
+
success: boolean;
|
|
134
|
+
/** Step output (structured or string) */
|
|
135
|
+
output: unknown | null;
|
|
136
|
+
/** Error if step failed */
|
|
137
|
+
error: Error | null;
|
|
138
|
+
/** Execution duration in milliseconds */
|
|
139
|
+
duration: number;
|
|
140
|
+
/** Whether the step was skipped (e.g., condition not met) */
|
|
141
|
+
skipped: boolean;
|
|
142
|
+
/** Exit code from the action handler */
|
|
143
|
+
exitCode?: number;
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=execution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/types/execution.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAsB,MAAM,eAAe,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEnG;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjD;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAA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