self-evolving-workflow 0.0.0-stage → 0.1.4
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 +27 -0
- package/README.md +195 -2
- package/dist/agent-memory-prompts.d.ts +13 -0
- package/dist/agent-memory-prompts.js +55 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +6 -0
- package/dist/closeout.d.ts +105 -0
- package/dist/closeout.js +473 -0
- package/dist/code.d.ts +39 -0
- package/dist/code.js +124 -0
- package/dist/codex-memory.d.ts +24 -0
- package/dist/codex-memory.js +217 -0
- package/dist/common.d.ts +16 -0
- package/dist/common.js +52 -0
- package/dist/context-envelope.d.ts +59 -0
- package/dist/context-envelope.js +23 -0
- package/dist/host-adapters.d.ts +34 -0
- package/dist/host-adapters.js +151 -0
- package/dist/http.d.ts +3 -0
- package/dist/http.js +90 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +13 -0
- package/dist/knowledge-cli.d.ts +198 -0
- package/dist/knowledge-cli.js +761 -0
- package/dist/knowledge-reads.d.ts +72 -0
- package/dist/knowledge-reads.js +201 -0
- package/dist/memory-config.d.ts +44 -0
- package/dist/memory-config.js +204 -0
- package/dist/memory-evidence.d.ts +13 -0
- package/dist/memory-evidence.js +40 -0
- package/dist/memory-history.d.ts +46 -0
- package/dist/memory-history.js +432 -0
- package/dist/memory.d.ts +96 -0
- package/dist/memory.js +362 -0
- package/dist/retrospective.d.ts +57 -0
- package/dist/retrospective.js +240 -0
- package/dist/search.d.ts +36 -0
- package/dist/search.js +112 -0
- package/dist/skill-addition.d.ts +25 -0
- package/dist/skill-addition.js +89 -0
- package/dist/skill-design.d.ts +96 -0
- package/dist/skill-design.js +226 -0
- package/dist/skill-replay.d.ts +55 -0
- package/dist/skill-replay.js +448 -0
- package/dist/skill-route.d.ts +30 -0
- package/dist/skill-route.js +75 -0
- package/dist/transcript-evidence.d.ts +3 -0
- package/dist/transcript-evidence.js +58 -0
- package/dist/upstream/chunker.d.ts +24 -0
- package/dist/upstream/chunker.js +96 -0
- package/dist/upstream/file-protocol.d.ts +45 -0
- package/dist/upstream/file-protocol.js +117 -0
- package/dist/upstream/frontmatter.d.ts +47 -0
- package/dist/upstream/frontmatter.js +86 -0
- package/dist/upstream/graph-search.d.ts +33 -0
- package/dist/upstream/graph-search.js +67 -0
- package/dist/upstream/l1-extraction.d.ts +26 -0
- package/dist/upstream/l1-extraction.js +405 -0
- package/dist/upstream/llm.d.ts +8 -0
- package/dist/upstream/llm.js +1 -0
- package/dist/upstream/merge.d.ts +50 -0
- package/dist/upstream/merge.js +153 -0
- package/dist/upstream/prompts.d.ts +53 -0
- package/dist/upstream/prompts.js +181 -0
- package/dist/upstream/search-utils.d.ts +34 -0
- package/dist/upstream/search-utils.js +55 -0
- package/dist/upstream/slug.d.ts +26 -0
- package/dist/upstream/slug.js +103 -0
- package/dist/upstream/template.d.ts +29 -0
- package/dist/upstream/template.js +80 -0
- package/dist/upstream/tokenize.d.ts +4 -0
- package/dist/upstream/tokenize.js +29 -0
- package/dist/wiki-change.d.ts +76 -0
- package/dist/wiki-change.js +299 -0
- package/dist/wiki-entry.d.ts +26 -0
- package/dist/wiki-entry.js +93 -0
- package/dist/wiki-ingest.d.ts +12 -0
- package/dist/wiki-ingest.js +126 -0
- package/dist/wiki-migration.d.ts +16 -0
- package/dist/wiki-migration.js +268 -0
- package/dist/wiki-tokens.d.ts +1 -0
- package/dist/wiki-tokens.js +46 -0
- package/dist/wiki.d.ts +103 -0
- package/dist/wiki.js +330 -0
- package/dist/workflow-cli.d.ts +2 -0
- package/dist/workflow-cli.js +319 -0
- package/dist/workflow-install.d.ts +37 -0
- package/dist/workflow-install.js +148 -0
- package/dist/workflow-knowledge.d.ts +18 -0
- package/dist/workflow-knowledge.js +32 -0
- package/dist/workflow-mcp.d.ts +2 -0
- package/dist/workflow-mcp.js +137 -0
- package/dist/workflow-names.d.ts +4 -0
- package/dist/workflow-names.js +31 -0
- package/dist/workflow-runtime.d.ts +735 -0
- package/dist/workflow-runtime.js +747 -0
- package/dist/workflow-skills.d.ts +48 -0
- package/dist/workflow-skills.js +141 -0
- package/docs/images/impeccable-skill.png +0 -0
- package/docs/images/workflow-overview.png +0 -0
- package/docs/images/workflow-skills.png +0 -0
- package/package.json +77 -4
- package/skills/ew-impeccable/LICENSE +191 -0
- package/skills/ew-impeccable/NOTICE.md +19 -0
- package/skills/ew-impeccable/SKILL.md +91 -0
- package/skills/ew-impeccable/UPSTREAM.md +23 -0
- package/skills/ew-impeccable/reference/adapt.md +314 -0
- package/skills/ew-impeccable/reference/adapt.native.md +60 -0
- package/skills/ew-impeccable/reference/android.md +46 -0
- package/skills/ew-impeccable/reference/animate.md +91 -0
- package/skills/ew-impeccable/reference/audit.md +138 -0
- package/skills/ew-impeccable/reference/audit.native.md +141 -0
- package/skills/ew-impeccable/reference/bolder.md +35 -0
- package/skills/ew-impeccable/reference/clarify.md +96 -0
- package/skills/ew-impeccable/reference/colorize.md +88 -0
- package/skills/ew-impeccable/reference/craft-floor.md +44 -0
- package/skills/ew-impeccable/reference/craft.md +5 -0
- package/skills/ew-impeccable/reference/critique.md +808 -0
- package/skills/ew-impeccable/reference/degraded/asset-producer.md +36 -0
- package/skills/ew-impeccable/reference/degraded/documenter.md +23 -0
- package/skills/ew-impeccable/reference/degraded/finish-reviewer.md +72 -0
- package/skills/ew-impeccable/reference/degraded/manual-edit-applier.md +91 -0
- package/skills/ew-impeccable/reference/delight.md +72 -0
- package/skills/ew-impeccable/reference/distill.md +113 -0
- package/skills/ew-impeccable/reference/doctor.md +56 -0
- package/skills/ew-impeccable/reference/document.md +418 -0
- package/skills/ew-impeccable/reference/extract.md +68 -0
- package/skills/ew-impeccable/reference/harden.md +338 -0
- package/skills/ew-impeccable/reference/hooks.md +113 -0
- package/skills/ew-impeccable/reference/init.md +133 -0
- package/skills/ew-impeccable/reference/ios.md +51 -0
- package/skills/ew-impeccable/reference/layout.md +86 -0
- package/skills/ew-impeccable/reference/live-setup.md +102 -0
- package/skills/ew-impeccable/reference/live.md +326 -0
- package/skills/ew-impeccable/reference/new-work.md +209 -0
- package/skills/ew-impeccable/reference/onboard.md +236 -0
- package/skills/ew-impeccable/reference/operate.md +61 -0
- package/skills/ew-impeccable/reference/optimize.md +260 -0
- package/skills/ew-impeccable/reference/overdrive.md +127 -0
- package/skills/ew-impeccable/reference/polish.md +105 -0
- package/skills/ew-impeccable/reference/quieter.md +101 -0
- package/skills/ew-impeccable/reference/routing.md +20 -0
- package/skills/ew-impeccable/reference/shape.md +59 -0
- package/skills/ew-impeccable/reference/typeset.md +82 -0
- package/skills/ew-impeccable/reference/visualize.md +46 -0
- package/skills/ew-impeccable/scripts/build-phase.mjs +1022 -0
- package/skills/ew-impeccable/scripts/command-metadata.json +94 -0
- package/skills/ew-impeccable/scripts/comp-diff.mjs +391 -0
- package/skills/ew-impeccable/scripts/comp-spec.mjs +513 -0
- package/skills/ew-impeccable/scripts/concept-seed.mjs +814 -0
- package/skills/ew-impeccable/scripts/context-signals.mjs +325 -0
- package/skills/ew-impeccable/scripts/context.mjs +1521 -0
- package/skills/ew-impeccable/scripts/critique-storage.mjs +473 -0
- package/skills/ew-impeccable/scripts/data/font-index-failures.json +121 -0
- package/skills/ew-impeccable/scripts/data/font-index.json +1 -0
- package/skills/ew-impeccable/scripts/detect-csp.mjs +246 -0
- package/skills/ew-impeccable/scripts/detect.mjs +30 -0
- package/skills/ew-impeccable/scripts/detector/browser/injected/index.mjs +2580 -0
- package/skills/ew-impeccable/scripts/detector/cli/main.mjs +498 -0
- package/skills/ew-impeccable/scripts/detector/design-system.mjs +1311 -0
- package/skills/ew-impeccable/scripts/detector/detect-antipatterns-browser.js +9486 -0
- package/skills/ew-impeccable/scripts/detector/detect-antipatterns.mjs +51 -0
- package/skills/ew-impeccable/scripts/detector/engines/browser/detect-url.mjs +434 -0
- package/skills/ew-impeccable/scripts/detector/engines/regex/detect-text.mjs +1439 -0
- package/skills/ew-impeccable/scripts/detector/engines/static-html/css-cascade.mjs +1242 -0
- package/skills/ew-impeccable/scripts/detector/engines/static-html/detect-html.mjs +263 -0
- package/skills/ew-impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +189 -0
- package/skills/ew-impeccable/scripts/detector/findings.mjs +23 -0
- package/skills/ew-impeccable/scripts/detector/node/file-system.mjs +225 -0
- package/skills/ew-impeccable/scripts/detector/profile/profiler.mjs +166 -0
- package/skills/ew-impeccable/scripts/detector/registry/antipatterns.mjs +636 -0
- package/skills/ew-impeccable/scripts/detector/rules/checks.mjs +5750 -0
- package/skills/ew-impeccable/scripts/detector/shared/color.mjs +596 -0
- package/skills/ew-impeccable/scripts/detector/shared/constants.mjs +127 -0
- package/skills/ew-impeccable/scripts/detector/shared/fonts.mjs +30 -0
- package/skills/ew-impeccable/scripts/detector/shared/inline-ignores.mjs +148 -0
- package/skills/ew-impeccable/scripts/detector/shared/page.mjs +7 -0
- package/skills/ew-impeccable/scripts/detector/vendor/MDN-DATA-LICENSE +116 -0
- package/skills/ew-impeccable/scripts/detector/vendor/THIRD_PARTY_LICENSES.md +227 -0
- package/skills/ew-impeccable/scripts/detector/vendor/static-html-parser.build-entry.txt +11 -0
- package/skills/ew-impeccable/scripts/detector/vendor/static-html-parser.bundle.mjs +9121 -0
- package/skills/ew-impeccable/scripts/doctor.mjs +330 -0
- package/skills/ew-impeccable/scripts/embed-prompt.mjs +166 -0
- package/skills/ew-impeccable/scripts/font-match.mjs +457 -0
- package/skills/ew-impeccable/scripts/generate-image.mjs +447 -0
- package/skills/ew-impeccable/scripts/hook-admin.mjs +829 -0
- package/skills/ew-impeccable/scripts/hook-before-edit.mjs +538 -0
- package/skills/ew-impeccable/scripts/hook-lib.mjs +2493 -0
- package/skills/ew-impeccable/scripts/hook.mjs +79 -0
- package/skills/ew-impeccable/scripts/lib/artifact-schema.mjs +93 -0
- package/skills/ew-impeccable/scripts/lib/composition-catalog.mjs +200 -0
- package/skills/ew-impeccable/scripts/lib/concept-catalog.mjs +395 -0
- package/skills/ew-impeccable/scripts/lib/design-parser.mjs +880 -0
- package/skills/ew-impeccable/scripts/lib/font-fingerprint.mjs +564 -0
- package/skills/ew-impeccable/scripts/lib/font-index.mjs +130 -0
- package/skills/ew-impeccable/scripts/lib/hero-checks.mjs +246 -0
- package/skills/ew-impeccable/scripts/lib/image-metrics.mjs +306 -0
- package/skills/ew-impeccable/scripts/lib/impeccable-config.mjs +640 -0
- package/skills/ew-impeccable/scripts/lib/impeccable-paths.mjs +137 -0
- package/skills/ew-impeccable/scripts/lib/is-generated.mjs +72 -0
- package/skills/ew-impeccable/scripts/lib/live-path-globs.mjs +37 -0
- package/skills/ew-impeccable/scripts/lib/open-system-browser.mjs +26 -0
- package/skills/ew-impeccable/scripts/lib/png.mjs +281 -0
- package/skills/ew-impeccable/scripts/lib/provider.mjs +5 -0
- package/skills/ew-impeccable/scripts/lib/raster.mjs +194 -0
- package/skills/ew-impeccable/scripts/lib/roll-selection.mjs +369 -0
- package/skills/ew-impeccable/scripts/lib/staleness-deep.mjs +491 -0
- package/skills/ew-impeccable/scripts/lib/staleness-notice.mjs +169 -0
- package/skills/ew-impeccable/scripts/lib/staleness.mjs +532 -0
- package/skills/ew-impeccable/scripts/lib/surface-briefs.mjs +149 -0
- package/skills/ew-impeccable/scripts/lib/target-args.mjs +42 -0
- package/skills/ew-impeccable/scripts/lib/target-slug.mjs +33 -0
- package/skills/ew-impeccable/scripts/lib/template-extensions.mjs +146 -0
- package/skills/ew-impeccable/scripts/live/accept-css.mjs +617 -0
- package/skills/ew-impeccable/scripts/live/accept-verify.mjs +60 -0
- package/skills/ew-impeccable/scripts/live/browser-script-parts.mjs +84 -0
- package/skills/ew-impeccable/scripts/live/completion.mjs +28 -0
- package/skills/ew-impeccable/scripts/live/event-validation.mjs +199 -0
- package/skills/ew-impeccable/scripts/live/frameworks/astro.mjs +47 -0
- package/skills/ew-impeccable/scripts/live/frameworks/detect-utils.mjs +73 -0
- package/skills/ew-impeccable/scripts/live/frameworks/index.mjs +143 -0
- package/skills/ew-impeccable/scripts/live/frameworks/journal.mjs +197 -0
- package/skills/ew-impeccable/scripts/live/frameworks/nextjs.mjs +49 -0
- package/skills/ew-impeccable/scripts/live/frameworks/nuxt.mjs +161 -0
- package/skills/ew-impeccable/scripts/live/frameworks/script-src.mjs +17 -0
- package/skills/ew-impeccable/scripts/live/frameworks/static-html.mjs +26 -0
- package/skills/ew-impeccable/scripts/live/frameworks/sveltekit.mjs +71 -0
- package/skills/ew-impeccable/scripts/live/frameworks/tag-strategy.mjs +247 -0
- package/skills/ew-impeccable/scripts/live/frameworks/tanstack-start.mjs +70 -0
- package/skills/ew-impeccable/scripts/live/frameworks/vite-generic.mjs +42 -0
- package/skills/ew-impeccable/scripts/live/generation-preflight.mjs +149 -0
- package/skills/ew-impeccable/scripts/live/insert-ui.mjs +458 -0
- package/skills/ew-impeccable/scripts/live/instructions.mjs +142 -0
- package/skills/ew-impeccable/scripts/live/manual-apply.mjs +939 -0
- package/skills/ew-impeccable/scripts/live/manual-edit-routes.mjs +357 -0
- package/skills/ew-impeccable/scripts/live/manual-edits-buffer.mjs +152 -0
- package/skills/ew-impeccable/scripts/live/poll-lanes.mjs +14 -0
- package/skills/ew-impeccable/scripts/live/project-ignores.mjs +139 -0
- package/skills/ew-impeccable/scripts/live/roots.mjs +508 -0
- package/skills/ew-impeccable/scripts/live/session-store.mjs +563 -0
- package/skills/ew-impeccable/scripts/live/source-lock.mjs +105 -0
- package/skills/ew-impeccable/scripts/live/source-search.mjs +105 -0
- package/skills/ew-impeccable/scripts/live/svelte-ast.mjs +969 -0
- package/skills/ew-impeccable/scripts/live/svelte-component.mjs +1366 -0
- package/skills/ew-impeccable/scripts/live/sveltekit-adapter.mjs +304 -0
- package/skills/ew-impeccable/scripts/live/tanstack-adapter.mjs +259 -0
- package/skills/ew-impeccable/scripts/live/ui-surfaces.mjs +75 -0
- package/skills/ew-impeccable/scripts/live/vocabulary.mjs +171 -0
- package/skills/ew-impeccable/scripts/live-accept.mjs +938 -0
- package/skills/ew-impeccable/scripts/live-browser-dom.js +167 -0
- package/skills/ew-impeccable/scripts/live-browser-ignores.js +242 -0
- package/skills/ew-impeccable/scripts/live-browser-session.js +144 -0
- package/skills/ew-impeccable/scripts/live-browser.js +12851 -0
- package/skills/ew-impeccable/scripts/live-commit-manual-edits.mjs +1200 -0
- package/skills/ew-impeccable/scripts/live-complete.mjs +107 -0
- package/skills/ew-impeccable/scripts/live-copy-edit-agent.mjs +800 -0
- package/skills/ew-impeccable/scripts/live-discard-manual-edits.mjs +51 -0
- package/skills/ew-impeccable/scripts/live-inject.mjs +463 -0
- package/skills/ew-impeccable/scripts/live-insert.mjs +292 -0
- package/skills/ew-impeccable/scripts/live-manual-edit-evidence.mjs +368 -0
- package/skills/ew-impeccable/scripts/live-poll.mjs +430 -0
- package/skills/ew-impeccable/scripts/live-resume.mjs +123 -0
- package/skills/ew-impeccable/scripts/live-server.mjs +1698 -0
- package/skills/ew-impeccable/scripts/live-status.mjs +71 -0
- package/skills/ew-impeccable/scripts/live-target.mjs +30 -0
- package/skills/ew-impeccable/scripts/live-wrap.mjs +927 -0
- package/skills/ew-impeccable/scripts/live.mjs +334 -0
- package/skills/ew-impeccable/scripts/modern-screenshot.umd.js +14 -0
- package/skills/ew-impeccable/scripts/palette.mjs +628 -0
- package/skills/ew-impeccable/scripts/pin.mjs +352 -0
- package/skills/ew-impeccable/scripts/serve-question.mjs +1783 -0
- package/skills/ew-impeccable/scripts/surface-brief.mjs +74 -0
- package/skills/ew-knowledge/SKILL.md +35 -0
- package/skills/ew-knowledge/references/closeout-protocol.md +68 -0
- package/skills/ew-knowledge/references/knowledge-route.md +73 -0
- package/skills/ew-knowledge/references/wiki-maintenance.md +27 -0
- package/skills/ew-odyssey/SKILL.md +106 -0
- package/skills/ew-odyssey/references/audit-artifacts.md +7 -0
- package/skills/ew-odyssey/references/odyssey-base.md +104 -0
- package/skills/ew-odyssey/references/odyssey-debug.md +264 -0
- package/skills/ew-odyssey/references/odyssey-defensive.md +351 -0
- package/skills/ew-odyssey/references/odyssey-improve.md +230 -0
- package/skills/ew-odyssey/references/odyssey-planex.md +294 -0
- package/skills/ew-odyssey/references/odyssey-review.md +233 -0
- package/skills/ew-odyssey/references/odyssey-security.md +231 -0
- package/skills/ew-odyssey/references/odyssey-ui.md +232 -0
- package/skills/ew-odyssey/references/prepare/odyssey-debug.md +102 -0
- package/skills/ew-odyssey/references/prepare/odyssey-defensive.md +117 -0
- package/skills/ew-odyssey/references/prepare/odyssey-improve.md +95 -0
- package/skills/ew-odyssey/references/prepare/odyssey-planex.md +105 -0
- package/skills/ew-odyssey/references/prepare/odyssey-review.md +105 -0
- package/skills/ew-odyssey/references/prepare/odyssey-security.md +91 -0
- package/skills/ew-odyssey/references/prepare/odyssey-ui.md +88 -0
- package/skills/ew-odyssey/references/runtime-adapters.md +31 -0
- package/skills/ew-orchestrate/SKILL.md +89 -0
- package/skills/ew-orchestrate/references/auto-policy.md +66 -0
- package/skills/ew-orchestrate/references/boundary-grill.md +51 -0
- package/skills/ew-orchestrate/references/companion-route.md +40 -0
- package/skills/ew-orchestrate/references/ew-orchestrate.md +44 -0
- package/skills/ew-orchestrate/references/goal.md +51 -0
- package/skills/ew-orchestrate/references/orchestrator-run-loop.md +33 -0
- package/skills/ew-orchestrate/references/planning.md +54 -0
- package/skills/ew-orchestrate/steps/ew-analyze/SKILL.md +70 -0
- package/skills/ew-orchestrate/steps/ew-analyze/references/issue-gaps-analyze.md +24 -0
- package/skills/ew-orchestrate/steps/ew-analyze/references/prepare.md +8 -0
- package/skills/ew-orchestrate/steps/ew-analyze/references/workflow.md +138 -0
- package/skills/ew-orchestrate/steps/ew-auto-test/SKILL.md +80 -0
- package/skills/ew-orchestrate/steps/ew-auto-test/references/prepare.md +23 -0
- package/skills/ew-orchestrate/steps/ew-auto-test/references/workflow.md +31 -0
- package/skills/ew-orchestrate/steps/ew-blueprint/SKILL.md +122 -0
- package/skills/ew-orchestrate/steps/ew-blueprint/references/prepare.md +21 -0
- package/skills/ew-orchestrate/steps/ew-blueprint/references/workflow.md +28 -0
- package/skills/ew-orchestrate/steps/ew-brainstorm/SKILL.md +49 -0
- package/skills/ew-orchestrate/steps/ew-companion/SKILL.md +50 -0
- package/skills/ew-orchestrate/steps/ew-debug/SKILL.md +85 -0
- package/skills/ew-orchestrate/steps/ew-debug/references/prepare.md +27 -0
- package/skills/ew-orchestrate/steps/ew-debug/references/workflow.md +31 -0
- package/skills/ew-orchestrate/steps/ew-execute/SKILL.md +74 -0
- package/skills/ew-orchestrate/steps/ew-execute/references/prepare.md +27 -0
- package/skills/ew-orchestrate/steps/ew-execute/references/workflow.md +87 -0
- package/skills/ew-orchestrate/steps/ew-grill/SKILL.md +62 -0
- package/skills/ew-orchestrate/steps/ew-grill/references/prepare.md +26 -0
- package/skills/ew-orchestrate/steps/ew-grill/references/workflow.md +31 -0
- package/skills/ew-orchestrate/steps/ew-init/SKILL.md +56 -0
- package/skills/ew-orchestrate/steps/ew-init/references/prepare.md +25 -0
- package/skills/ew-orchestrate/steps/ew-init/references/workflow.md +28 -0
- package/skills/ew-orchestrate/steps/ew-plan/SKILL.md +131 -0
- package/skills/ew-orchestrate/steps/ew-plan/references/prepare.md +8 -0
- package/skills/ew-orchestrate/steps/ew-plan/references/tdd.md +53 -0
- package/skills/ew-orchestrate/steps/ew-plan/references/workflow.md +100 -0
- package/skills/ew-orchestrate/steps/ew-retrospective/SKILL.md +68 -0
- package/skills/ew-orchestrate/steps/ew-retrospective/references/prepare.md +18 -0
- package/skills/ew-orchestrate/steps/ew-retrospective/references/workflow.md +34 -0
- package/skills/ew-orchestrate/steps/ew-review/SKILL.md +45 -0
- package/skills/ew-orchestrate/steps/ew-review/references/prepare.md +17 -0
- package/skills/ew-orchestrate/steps/ew-review/references/workflow.md +116 -0
- package/skills/ew-orchestrate/steps/ew-roadmap/SKILL.md +62 -0
- package/skills/ew-orchestrate/steps/ew-roadmap/references/prepare.md +27 -0
- package/skills/ew-orchestrate/steps/ew-roadmap/references/workflow.md +28 -0
- package/skills/ew-orchestrate/steps/ew-test/SKILL.md +99 -0
- package/skills/ew-orchestrate/steps/ew-test/references/prepare.md +23 -0
- package/skills/ew-orchestrate/steps/ew-test/references/workflow.md +23 -0
- package/skills/ew-orchestrate/steps/ew-verify/SKILL.md +73 -0
- package/skills/ew-orchestrate/steps/ew-verify/references/prepare.md +21 -0
- package/skills/ew-orchestrate/steps/ew-verify/references/workflow.md +29 -0
- package/skills/ew-skill-design/SKILL.md +30 -0
- package/skills/ew-skill-design/references/package-contract.md +40 -0
- package/skills/ew-skill-design/references/validation.md +21 -0
- package/skills/team-swarm/SKILL.md +68 -0
- package/skills/team-swarm/references/mcp-coordination.md +14 -0
- package/skills/team-swarm/roles/analyst/role.md +181 -0
- package/skills/team-swarm/roles/ant/role.md +149 -0
- package/skills/team-swarm/roles/coordinator/commands/converge.md +112 -0
- package/skills/team-swarm/roles/coordinator/commands/init-swarm.md +136 -0
- package/skills/team-swarm/roles/coordinator/commands/iterate.md +171 -0
- package/skills/team-swarm/roles/coordinator/role.md +170 -0
- package/skills/team-swarm/roles/scorer/role.md +150 -0
- package/skills/team-swarm/scripts/aco.py +646 -0
- package/skills/team-swarm/scripts/pheromone.py +144 -0
- package/skills/team-swarm/scripts/scoring.py +111 -0
- package/skills/team-swarm/scripts/test_aco.py +606 -0
- package/skills/team-swarm/specs/ant-output-schema.md +127 -0
- package/skills/team-swarm/specs/convergence-criteria.md +108 -0
- package/skills/team-swarm/specs/pheromone-schema.md +125 -0
- package/skills/team-swarm/specs/swarm-config-template.json +71 -0
- package/skills/team-swarm/specs/swarm-protocol.md +119 -0
- package/skills/workflow-evolve/SKILL.md +64 -0
- package/skills/workflow-evolve/references/agy-gate.md +27 -0
- package/skills/workflow-evolve/references/auto-loop.md +23 -0
- package/skills/workflow-evolve/references/history-review.md +15 -0
- package/skills/workflow-evolve/scripts/codex-memory-replay.mjs +86 -0
- package/skills/workflow-evolve/scripts/codex-replay.mjs +1 -0
- package/skills/workflow-evolve/scripts/evolve-loop.mjs +260 -0
- package/skills/workflow-evolve/scripts/memory-codex-mcp.mjs +124 -0
- package/workflows/index.json +33 -0
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
import { KnowledgeReads, type KnowledgePriorReuse, type KnowledgeReadsReceipt } from './knowledge-reads.js';
|
|
2
|
+
import { type WikiLookupScope, type WikiPrior } from './workflow-knowledge.js';
|
|
3
|
+
import { type ArtifactType, type WorkflowSkill } from './workflow-skills.js';
|
|
4
|
+
type StepStatus = 'pending' | 'running' | 'completed' | 'skipped';
|
|
5
|
+
type RunStatus = 'running' | 'blocked' | 'failed' | 'cancelled' | 'sealed';
|
|
6
|
+
export interface BoundaryContract {
|
|
7
|
+
in_scope?: string[];
|
|
8
|
+
out_of_scope?: string[];
|
|
9
|
+
constraints?: string[];
|
|
10
|
+
definition_of_done?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SessionGoal {
|
|
13
|
+
id: string;
|
|
14
|
+
goal: string;
|
|
15
|
+
boundary?: string;
|
|
16
|
+
done_when?: string;
|
|
17
|
+
evidence?: string;
|
|
18
|
+
lifecycle?: string[];
|
|
19
|
+
status?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface SessionAmendment {
|
|
22
|
+
id: string;
|
|
23
|
+
recorded_at: string;
|
|
24
|
+
previous_objective: string;
|
|
25
|
+
objective: string;
|
|
26
|
+
definition_of_done?: string;
|
|
27
|
+
evidence: string[];
|
|
28
|
+
reason?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface SessionPolicy {
|
|
31
|
+
auto_mode?: boolean;
|
|
32
|
+
goal_mode?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface WorkflowStep {
|
|
35
|
+
id: string;
|
|
36
|
+
command: string;
|
|
37
|
+
args: string[];
|
|
38
|
+
kind?: 'step' | 'decision';
|
|
39
|
+
retry_max?: number;
|
|
40
|
+
decision_ref?: string;
|
|
41
|
+
stage?: string;
|
|
42
|
+
goal_ref?: string;
|
|
43
|
+
}
|
|
44
|
+
interface Step extends WorkflowStep {
|
|
45
|
+
status: StepStatus;
|
|
46
|
+
run_id?: string;
|
|
47
|
+
decision?: 'proceed' | 'fix' | 'escalate';
|
|
48
|
+
confidence?: number;
|
|
49
|
+
}
|
|
50
|
+
interface Run {
|
|
51
|
+
id: string;
|
|
52
|
+
owner: string;
|
|
53
|
+
step_id: string;
|
|
54
|
+
status: RunStatus;
|
|
55
|
+
revision: number;
|
|
56
|
+
skill: WorkflowSkill;
|
|
57
|
+
task: {
|
|
58
|
+
command: string;
|
|
59
|
+
args: string[];
|
|
60
|
+
goal: string;
|
|
61
|
+
};
|
|
62
|
+
inputs: string[];
|
|
63
|
+
input_aliases: Record<string, string>;
|
|
64
|
+
reads: Record<string, string>;
|
|
65
|
+
retry_of_run_id?: string;
|
|
66
|
+
summary?: string;
|
|
67
|
+
finished_at?: string;
|
|
68
|
+
verdict?: 'done' | 'done_with_concerns';
|
|
69
|
+
knowledge_reads?: KnowledgeReadsReceipt;
|
|
70
|
+
wiki_priors?: WikiPrior[];
|
|
71
|
+
priors_reuse?: KnowledgePriorReuse[];
|
|
72
|
+
assignments?: Record<string, Assignment>;
|
|
73
|
+
}
|
|
74
|
+
interface Assignment {
|
|
75
|
+
id: string;
|
|
76
|
+
role: string;
|
|
77
|
+
path: string;
|
|
78
|
+
result?: {
|
|
79
|
+
summary: string;
|
|
80
|
+
sha256: string;
|
|
81
|
+
};
|
|
82
|
+
cancellation?: string;
|
|
83
|
+
}
|
|
84
|
+
interface Artifact extends ArtifactType {
|
|
85
|
+
id: string;
|
|
86
|
+
path: string;
|
|
87
|
+
run_id: string;
|
|
88
|
+
sha256: string;
|
|
89
|
+
derived_from: string[];
|
|
90
|
+
status: 'sealed';
|
|
91
|
+
wiki_priors?: true;
|
|
92
|
+
}
|
|
93
|
+
interface Session {
|
|
94
|
+
schema_version: 'evolve-session/1.0';
|
|
95
|
+
id: string;
|
|
96
|
+
objective: string;
|
|
97
|
+
definition_of_done: string;
|
|
98
|
+
boundary_contract?: BoundaryContract;
|
|
99
|
+
goals?: SessionGoal[];
|
|
100
|
+
amendments?: SessionAmendment[];
|
|
101
|
+
policy?: SessionPolicy;
|
|
102
|
+
status: 'open' | 'completed';
|
|
103
|
+
revision: number;
|
|
104
|
+
created_at: string;
|
|
105
|
+
completed_at?: string;
|
|
106
|
+
steps: Step[];
|
|
107
|
+
runs: Run[];
|
|
108
|
+
aliases: Record<string, string>;
|
|
109
|
+
artifacts: Record<string, Artifact>;
|
|
110
|
+
}
|
|
111
|
+
export interface Mutation {
|
|
112
|
+
actor: string;
|
|
113
|
+
requestId?: string;
|
|
114
|
+
revision?: number;
|
|
115
|
+
runRevision?: number;
|
|
116
|
+
evidence?: string[];
|
|
117
|
+
reason?: string;
|
|
118
|
+
}
|
|
119
|
+
export declare function workflowId(value: unknown, label: string): string;
|
|
120
|
+
export declare function workflowDbPath(root: string): string;
|
|
121
|
+
export declare function readEvolveSessions(root: string, id?: string): Session[];
|
|
122
|
+
export declare function evolveSessionReceipt(session: Session): {
|
|
123
|
+
schema_version: string;
|
|
124
|
+
id: string;
|
|
125
|
+
session_id: string;
|
|
126
|
+
recorded_at: string;
|
|
127
|
+
messages: {
|
|
128
|
+
id: string;
|
|
129
|
+
role: "tool";
|
|
130
|
+
timestamp: string;
|
|
131
|
+
content: string;
|
|
132
|
+
}[];
|
|
133
|
+
};
|
|
134
|
+
export declare class WorkflowStore {
|
|
135
|
+
readonly root: string;
|
|
136
|
+
private readonly db;
|
|
137
|
+
constructor(root: string);
|
|
138
|
+
close(): void;
|
|
139
|
+
find(id: string): Session | undefined;
|
|
140
|
+
status(id: string): {
|
|
141
|
+
orchestration_revision: number;
|
|
142
|
+
continuation: {
|
|
143
|
+
action: string;
|
|
144
|
+
authority: string;
|
|
145
|
+
run_id?: undefined;
|
|
146
|
+
decision_ref?: undefined;
|
|
147
|
+
} | {
|
|
148
|
+
action: string;
|
|
149
|
+
run_id: string;
|
|
150
|
+
authority: string;
|
|
151
|
+
decision_ref?: undefined;
|
|
152
|
+
} | {
|
|
153
|
+
action: string;
|
|
154
|
+
decision_ref: string | undefined;
|
|
155
|
+
authority: string;
|
|
156
|
+
run_id?: undefined;
|
|
157
|
+
};
|
|
158
|
+
schema_version: "evolve-session/1.0";
|
|
159
|
+
id: string;
|
|
160
|
+
objective: string;
|
|
161
|
+
definition_of_done: string;
|
|
162
|
+
boundary_contract?: BoundaryContract;
|
|
163
|
+
goals?: SessionGoal[];
|
|
164
|
+
amendments?: SessionAmendment[];
|
|
165
|
+
policy?: SessionPolicy;
|
|
166
|
+
status: "open" | "completed";
|
|
167
|
+
revision: number;
|
|
168
|
+
created_at: string;
|
|
169
|
+
completed_at?: string;
|
|
170
|
+
steps: Step[];
|
|
171
|
+
runs: Run[];
|
|
172
|
+
aliases: Record<string, string>;
|
|
173
|
+
artifacts: Record<string, Artifact>;
|
|
174
|
+
};
|
|
175
|
+
list(filter?: {
|
|
176
|
+
status?: 'open' | 'completed';
|
|
177
|
+
query?: string;
|
|
178
|
+
}): {
|
|
179
|
+
continuation: {
|
|
180
|
+
action: string;
|
|
181
|
+
authority: string;
|
|
182
|
+
run_id?: undefined;
|
|
183
|
+
decision_ref?: undefined;
|
|
184
|
+
} | {
|
|
185
|
+
action: string;
|
|
186
|
+
run_id: string;
|
|
187
|
+
authority: string;
|
|
188
|
+
decision_ref?: undefined;
|
|
189
|
+
} | {
|
|
190
|
+
action: string;
|
|
191
|
+
decision_ref: string | undefined;
|
|
192
|
+
authority: string;
|
|
193
|
+
run_id?: undefined;
|
|
194
|
+
};
|
|
195
|
+
policy?: SessionPolicy | undefined;
|
|
196
|
+
goals?: SessionGoal[] | undefined;
|
|
197
|
+
id: string;
|
|
198
|
+
objective: string;
|
|
199
|
+
status: "completed" | "open";
|
|
200
|
+
orchestration_revision: number;
|
|
201
|
+
steps: Step[];
|
|
202
|
+
}[];
|
|
203
|
+
private save;
|
|
204
|
+
private change;
|
|
205
|
+
private mutate;
|
|
206
|
+
open(id: string, objective: string, definition: string, steps: WorkflowStep[], change: Mutation, options?: {
|
|
207
|
+
boundaryContract?: BoundaryContract;
|
|
208
|
+
goals?: SessionGoal[];
|
|
209
|
+
policy?: SessionPolicy;
|
|
210
|
+
}): {
|
|
211
|
+
session_id: string;
|
|
212
|
+
status: string;
|
|
213
|
+
orchestration_revision: number;
|
|
214
|
+
continuation: {
|
|
215
|
+
action: string;
|
|
216
|
+
authority: string;
|
|
217
|
+
run_id?: undefined;
|
|
218
|
+
decision_ref?: undefined;
|
|
219
|
+
} | {
|
|
220
|
+
action: string;
|
|
221
|
+
run_id: string;
|
|
222
|
+
authority: string;
|
|
223
|
+
decision_ref?: undefined;
|
|
224
|
+
} | {
|
|
225
|
+
action: string;
|
|
226
|
+
decision_ref: string | undefined;
|
|
227
|
+
authority: string;
|
|
228
|
+
run_id?: undefined;
|
|
229
|
+
};
|
|
230
|
+
} & {
|
|
231
|
+
receipt: {
|
|
232
|
+
request_id: string;
|
|
233
|
+
action: string;
|
|
234
|
+
actor: string;
|
|
235
|
+
recorded_at: string;
|
|
236
|
+
evidence: string[];
|
|
237
|
+
reason?: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
private validateStep;
|
|
241
|
+
amend(id: string, objective: string, definition: string | undefined, change: Mutation): {
|
|
242
|
+
amendment_id: string;
|
|
243
|
+
previous_objective: string;
|
|
244
|
+
objective: string;
|
|
245
|
+
definition_of_done: string;
|
|
246
|
+
} & {
|
|
247
|
+
session_id: string;
|
|
248
|
+
orchestration_revision: number;
|
|
249
|
+
continuation: {
|
|
250
|
+
action: string;
|
|
251
|
+
authority: string;
|
|
252
|
+
run_id?: undefined;
|
|
253
|
+
decision_ref?: undefined;
|
|
254
|
+
} | {
|
|
255
|
+
action: string;
|
|
256
|
+
run_id: string;
|
|
257
|
+
authority: string;
|
|
258
|
+
decision_ref?: undefined;
|
|
259
|
+
} | {
|
|
260
|
+
action: string;
|
|
261
|
+
decision_ref: string | undefined;
|
|
262
|
+
authority: string;
|
|
263
|
+
run_id?: undefined;
|
|
264
|
+
};
|
|
265
|
+
} & {
|
|
266
|
+
receipt: {
|
|
267
|
+
request_id: string;
|
|
268
|
+
action: string;
|
|
269
|
+
actor: string;
|
|
270
|
+
recorded_at: string;
|
|
271
|
+
evidence: string[];
|
|
272
|
+
reason?: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
chain(id: string, action: 'insert' | 'replace' | 'skip', step: WorkflowStep, after: string | undefined, change: Mutation): {
|
|
276
|
+
step_id: string;
|
|
277
|
+
status: string;
|
|
278
|
+
} & {
|
|
279
|
+
session_id: string;
|
|
280
|
+
orchestration_revision: number;
|
|
281
|
+
continuation: {
|
|
282
|
+
action: string;
|
|
283
|
+
authority: string;
|
|
284
|
+
run_id?: undefined;
|
|
285
|
+
decision_ref?: undefined;
|
|
286
|
+
} | {
|
|
287
|
+
action: string;
|
|
288
|
+
run_id: string;
|
|
289
|
+
authority: string;
|
|
290
|
+
decision_ref?: undefined;
|
|
291
|
+
} | {
|
|
292
|
+
action: string;
|
|
293
|
+
decision_ref: string | undefined;
|
|
294
|
+
authority: string;
|
|
295
|
+
run_id?: undefined;
|
|
296
|
+
};
|
|
297
|
+
} & {
|
|
298
|
+
receipt: {
|
|
299
|
+
request_id: string;
|
|
300
|
+
action: string;
|
|
301
|
+
actor: string;
|
|
302
|
+
recorded_at: string;
|
|
303
|
+
evidence: string[];
|
|
304
|
+
reason?: string;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
private runDir;
|
|
308
|
+
private packet;
|
|
309
|
+
next(id: string, change: Mutation, gates?: string[], stepId?: string): {
|
|
310
|
+
knowledge_reads?: KnowledgeReadsReceipt | undefined;
|
|
311
|
+
policy?: SessionPolicy | undefined;
|
|
312
|
+
amendments?: SessionAmendment[] | undefined;
|
|
313
|
+
goals?: SessionGoal[] | undefined;
|
|
314
|
+
boundary_contract?: BoundaryContract | undefined;
|
|
315
|
+
session_id: string;
|
|
316
|
+
run_id: string;
|
|
317
|
+
run_dir: string;
|
|
318
|
+
status: RunStatus;
|
|
319
|
+
revision: number;
|
|
320
|
+
orchestration_revision: number;
|
|
321
|
+
task: {
|
|
322
|
+
input_refs: string[];
|
|
323
|
+
command: string;
|
|
324
|
+
args: string[];
|
|
325
|
+
goal: string;
|
|
326
|
+
};
|
|
327
|
+
skill_ref: WorkflowSkill;
|
|
328
|
+
gates: {
|
|
329
|
+
entry: string[];
|
|
330
|
+
exit: string[];
|
|
331
|
+
};
|
|
332
|
+
upstream_aliases: Record<string, string>;
|
|
333
|
+
upstream: {
|
|
334
|
+
[k: string]: Artifact;
|
|
335
|
+
};
|
|
336
|
+
skill_reads: {
|
|
337
|
+
reference: WorkflowSkill;
|
|
338
|
+
reads: {
|
|
339
|
+
path: string;
|
|
340
|
+
sha256: string;
|
|
341
|
+
}[];
|
|
342
|
+
missing: string[];
|
|
343
|
+
};
|
|
344
|
+
retry_of_run_id: string | undefined;
|
|
345
|
+
} & {
|
|
346
|
+
session_id: string;
|
|
347
|
+
orchestration_revision: number;
|
|
348
|
+
continuation: {
|
|
349
|
+
action: string;
|
|
350
|
+
authority: string;
|
|
351
|
+
run_id?: undefined;
|
|
352
|
+
decision_ref?: undefined;
|
|
353
|
+
} | {
|
|
354
|
+
action: string;
|
|
355
|
+
run_id: string;
|
|
356
|
+
authority: string;
|
|
357
|
+
decision_ref?: undefined;
|
|
358
|
+
} | {
|
|
359
|
+
action: string;
|
|
360
|
+
decision_ref: string | undefined;
|
|
361
|
+
authority: string;
|
|
362
|
+
run_id?: undefined;
|
|
363
|
+
};
|
|
364
|
+
} & {
|
|
365
|
+
receipt: {
|
|
366
|
+
request_id: string;
|
|
367
|
+
action: string;
|
|
368
|
+
actor: string;
|
|
369
|
+
recorded_at: string;
|
|
370
|
+
evidence: string[];
|
|
371
|
+
reason?: string;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
brief(id: string, runId: string): {
|
|
375
|
+
continuation: {
|
|
376
|
+
action: string;
|
|
377
|
+
authority: string;
|
|
378
|
+
run_id?: undefined;
|
|
379
|
+
decision_ref?: undefined;
|
|
380
|
+
} | {
|
|
381
|
+
action: string;
|
|
382
|
+
run_id: string;
|
|
383
|
+
authority: string;
|
|
384
|
+
decision_ref?: undefined;
|
|
385
|
+
} | {
|
|
386
|
+
action: string;
|
|
387
|
+
decision_ref: string | undefined;
|
|
388
|
+
authority: string;
|
|
389
|
+
run_id?: undefined;
|
|
390
|
+
};
|
|
391
|
+
knowledge_reads?: KnowledgeReadsReceipt | undefined;
|
|
392
|
+
policy?: SessionPolicy | undefined;
|
|
393
|
+
amendments?: SessionAmendment[] | undefined;
|
|
394
|
+
goals?: SessionGoal[] | undefined;
|
|
395
|
+
boundary_contract?: BoundaryContract | undefined;
|
|
396
|
+
session_id: string;
|
|
397
|
+
run_id: string;
|
|
398
|
+
run_dir: string;
|
|
399
|
+
status: RunStatus;
|
|
400
|
+
revision: number;
|
|
401
|
+
orchestration_revision: number;
|
|
402
|
+
task: {
|
|
403
|
+
input_refs: string[];
|
|
404
|
+
command: string;
|
|
405
|
+
args: string[];
|
|
406
|
+
goal: string;
|
|
407
|
+
};
|
|
408
|
+
skill_ref: WorkflowSkill;
|
|
409
|
+
gates: {
|
|
410
|
+
entry: string[];
|
|
411
|
+
exit: string[];
|
|
412
|
+
};
|
|
413
|
+
upstream_aliases: Record<string, string>;
|
|
414
|
+
upstream: {
|
|
415
|
+
[k: string]: Artifact;
|
|
416
|
+
};
|
|
417
|
+
skill_reads: {
|
|
418
|
+
reference: WorkflowSkill;
|
|
419
|
+
reads: {
|
|
420
|
+
path: string;
|
|
421
|
+
sha256: string;
|
|
422
|
+
}[];
|
|
423
|
+
missing: string[];
|
|
424
|
+
};
|
|
425
|
+
retry_of_run_id: string | undefined;
|
|
426
|
+
};
|
|
427
|
+
readSkill(id: string, runId: string, from?: string, destination?: string): {
|
|
428
|
+
recorded: boolean;
|
|
429
|
+
path: string;
|
|
430
|
+
markdown: string;
|
|
431
|
+
sha256: string;
|
|
432
|
+
};
|
|
433
|
+
readArtifact(id: string, runId: string, artifactId: string, scope?: WikiLookupScope): {
|
|
434
|
+
content: string;
|
|
435
|
+
id: string;
|
|
436
|
+
path: string;
|
|
437
|
+
run_id: string;
|
|
438
|
+
sha256: string;
|
|
439
|
+
derived_from: string[];
|
|
440
|
+
status: "sealed";
|
|
441
|
+
wiki_priors?: true;
|
|
442
|
+
kind: string;
|
|
443
|
+
schema: string;
|
|
444
|
+
role: string;
|
|
445
|
+
alias?: string;
|
|
446
|
+
};
|
|
447
|
+
private readProof;
|
|
448
|
+
private cliWikiPriors;
|
|
449
|
+
private outputs;
|
|
450
|
+
check(id: string, runId: string, gates: string[]): {
|
|
451
|
+
completion_preflight: {
|
|
452
|
+
ready: boolean;
|
|
453
|
+
errors: string[];
|
|
454
|
+
};
|
|
455
|
+
knowledge_reads: KnowledgeReadsReceipt | undefined;
|
|
456
|
+
policy?: SessionPolicy | undefined;
|
|
457
|
+
amendments?: SessionAmendment[] | undefined;
|
|
458
|
+
goals?: SessionGoal[] | undefined;
|
|
459
|
+
boundary_contract?: BoundaryContract | undefined;
|
|
460
|
+
session_id: string;
|
|
461
|
+
run_id: string;
|
|
462
|
+
run_dir: string;
|
|
463
|
+
status: RunStatus;
|
|
464
|
+
revision: number;
|
|
465
|
+
orchestration_revision: number;
|
|
466
|
+
task: {
|
|
467
|
+
input_refs: string[];
|
|
468
|
+
command: string;
|
|
469
|
+
args: string[];
|
|
470
|
+
goal: string;
|
|
471
|
+
};
|
|
472
|
+
skill_ref: WorkflowSkill;
|
|
473
|
+
gates: {
|
|
474
|
+
entry: string[];
|
|
475
|
+
exit: string[];
|
|
476
|
+
};
|
|
477
|
+
upstream_aliases: Record<string, string>;
|
|
478
|
+
upstream: {
|
|
479
|
+
[k: string]: Artifact;
|
|
480
|
+
};
|
|
481
|
+
skill_reads: {
|
|
482
|
+
reference: WorkflowSkill;
|
|
483
|
+
reads: {
|
|
484
|
+
path: string;
|
|
485
|
+
sha256: string;
|
|
486
|
+
}[];
|
|
487
|
+
missing: string[];
|
|
488
|
+
};
|
|
489
|
+
retry_of_run_id: string | undefined;
|
|
490
|
+
};
|
|
491
|
+
completeRun(id: string, runId: string, summary: string, verdict: 'done' | 'done_with_concerns', gates: string[], change: Mutation): {
|
|
492
|
+
artifact_publication: {
|
|
493
|
+
artifacts: Record<string, Artifact>;
|
|
494
|
+
aliases: Record<string, string>;
|
|
495
|
+
};
|
|
496
|
+
knowledge_reads: KnowledgeReadsReceipt | undefined;
|
|
497
|
+
policy?: SessionPolicy | undefined;
|
|
498
|
+
amendments?: SessionAmendment[] | undefined;
|
|
499
|
+
goals?: SessionGoal[] | undefined;
|
|
500
|
+
boundary_contract?: BoundaryContract | undefined;
|
|
501
|
+
session_id: string;
|
|
502
|
+
run_id: string;
|
|
503
|
+
run_dir: string;
|
|
504
|
+
status: RunStatus;
|
|
505
|
+
revision: number;
|
|
506
|
+
orchestration_revision: number;
|
|
507
|
+
task: {
|
|
508
|
+
input_refs: string[];
|
|
509
|
+
command: string;
|
|
510
|
+
args: string[];
|
|
511
|
+
goal: string;
|
|
512
|
+
};
|
|
513
|
+
skill_ref: WorkflowSkill;
|
|
514
|
+
gates: {
|
|
515
|
+
entry: string[];
|
|
516
|
+
exit: string[];
|
|
517
|
+
};
|
|
518
|
+
upstream_aliases: Record<string, string>;
|
|
519
|
+
upstream: {
|
|
520
|
+
[k: string]: Artifact;
|
|
521
|
+
};
|
|
522
|
+
skill_reads: {
|
|
523
|
+
reference: WorkflowSkill;
|
|
524
|
+
reads: {
|
|
525
|
+
path: string;
|
|
526
|
+
sha256: string;
|
|
527
|
+
}[];
|
|
528
|
+
missing: string[];
|
|
529
|
+
};
|
|
530
|
+
retry_of_run_id: string | undefined;
|
|
531
|
+
} & {
|
|
532
|
+
session_id: string;
|
|
533
|
+
orchestration_revision: number;
|
|
534
|
+
continuation: {
|
|
535
|
+
action: string;
|
|
536
|
+
authority: string;
|
|
537
|
+
run_id?: undefined;
|
|
538
|
+
decision_ref?: undefined;
|
|
539
|
+
} | {
|
|
540
|
+
action: string;
|
|
541
|
+
run_id: string;
|
|
542
|
+
authority: string;
|
|
543
|
+
decision_ref?: undefined;
|
|
544
|
+
} | {
|
|
545
|
+
action: string;
|
|
546
|
+
decision_ref: string | undefined;
|
|
547
|
+
authority: string;
|
|
548
|
+
run_id?: undefined;
|
|
549
|
+
};
|
|
550
|
+
} & {
|
|
551
|
+
receipt: {
|
|
552
|
+
request_id: string;
|
|
553
|
+
action: string;
|
|
554
|
+
actor: string;
|
|
555
|
+
recorded_at: string;
|
|
556
|
+
evidence: string[];
|
|
557
|
+
reason?: string;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
transition(id: string, runId: string, status: 'running' | 'blocked' | 'failed' | 'cancelled', reason: string, change: Mutation): {
|
|
561
|
+
knowledge_reads?: KnowledgeReadsReceipt | undefined;
|
|
562
|
+
policy?: SessionPolicy | undefined;
|
|
563
|
+
amendments?: SessionAmendment[] | undefined;
|
|
564
|
+
goals?: SessionGoal[] | undefined;
|
|
565
|
+
boundary_contract?: BoundaryContract | undefined;
|
|
566
|
+
session_id: string;
|
|
567
|
+
run_id: string;
|
|
568
|
+
run_dir: string;
|
|
569
|
+
status: RunStatus;
|
|
570
|
+
revision: number;
|
|
571
|
+
orchestration_revision: number;
|
|
572
|
+
task: {
|
|
573
|
+
input_refs: string[];
|
|
574
|
+
command: string;
|
|
575
|
+
args: string[];
|
|
576
|
+
goal: string;
|
|
577
|
+
};
|
|
578
|
+
skill_ref: WorkflowSkill;
|
|
579
|
+
gates: {
|
|
580
|
+
entry: string[];
|
|
581
|
+
exit: string[];
|
|
582
|
+
};
|
|
583
|
+
upstream_aliases: Record<string, string>;
|
|
584
|
+
upstream: {
|
|
585
|
+
[k: string]: Artifact;
|
|
586
|
+
};
|
|
587
|
+
skill_reads: {
|
|
588
|
+
reference: WorkflowSkill;
|
|
589
|
+
reads: {
|
|
590
|
+
path: string;
|
|
591
|
+
sha256: string;
|
|
592
|
+
}[];
|
|
593
|
+
missing: string[];
|
|
594
|
+
};
|
|
595
|
+
retry_of_run_id: string | undefined;
|
|
596
|
+
} & {
|
|
597
|
+
session_id: string;
|
|
598
|
+
orchestration_revision: number;
|
|
599
|
+
continuation: {
|
|
600
|
+
action: string;
|
|
601
|
+
authority: string;
|
|
602
|
+
run_id?: undefined;
|
|
603
|
+
decision_ref?: undefined;
|
|
604
|
+
} | {
|
|
605
|
+
action: string;
|
|
606
|
+
run_id: string;
|
|
607
|
+
authority: string;
|
|
608
|
+
decision_ref?: undefined;
|
|
609
|
+
} | {
|
|
610
|
+
action: string;
|
|
611
|
+
decision_ref: string | undefined;
|
|
612
|
+
authority: string;
|
|
613
|
+
run_id?: undefined;
|
|
614
|
+
};
|
|
615
|
+
} & {
|
|
616
|
+
receipt: {
|
|
617
|
+
request_id: string;
|
|
618
|
+
action: string;
|
|
619
|
+
actor: string;
|
|
620
|
+
recorded_at: string;
|
|
621
|
+
evidence: string[];
|
|
622
|
+
reason?: string;
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
decide(id: string, decisionId: string, verdict: 'proceed' | 'fix' | 'escalate', summary: string, change: Mutation, options?: {
|
|
626
|
+
targetStepId?: string;
|
|
627
|
+
confidence?: number;
|
|
628
|
+
}): {
|
|
629
|
+
confidence?: number | undefined;
|
|
630
|
+
decision_ref: string;
|
|
631
|
+
verdict: "proceed" | "fix" | "escalate";
|
|
632
|
+
summary: string;
|
|
633
|
+
} & {
|
|
634
|
+
session_id: string;
|
|
635
|
+
orchestration_revision: number;
|
|
636
|
+
continuation: {
|
|
637
|
+
action: string;
|
|
638
|
+
authority: string;
|
|
639
|
+
run_id?: undefined;
|
|
640
|
+
decision_ref?: undefined;
|
|
641
|
+
} | {
|
|
642
|
+
action: string;
|
|
643
|
+
run_id: string;
|
|
644
|
+
authority: string;
|
|
645
|
+
decision_ref?: undefined;
|
|
646
|
+
} | {
|
|
647
|
+
action: string;
|
|
648
|
+
decision_ref: string | undefined;
|
|
649
|
+
authority: string;
|
|
650
|
+
run_id?: undefined;
|
|
651
|
+
};
|
|
652
|
+
} & {
|
|
653
|
+
receipt: {
|
|
654
|
+
request_id: string;
|
|
655
|
+
action: string;
|
|
656
|
+
actor: string;
|
|
657
|
+
recorded_at: string;
|
|
658
|
+
evidence: string[];
|
|
659
|
+
reason?: string;
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
completeSession(id: string, change: Mutation): {
|
|
663
|
+
status: "completed";
|
|
664
|
+
completed_at: string;
|
|
665
|
+
completion_id: string;
|
|
666
|
+
} & {
|
|
667
|
+
session_id: string;
|
|
668
|
+
orchestration_revision: number;
|
|
669
|
+
continuation: {
|
|
670
|
+
action: string;
|
|
671
|
+
authority: string;
|
|
672
|
+
run_id?: undefined;
|
|
673
|
+
decision_ref?: undefined;
|
|
674
|
+
} | {
|
|
675
|
+
action: string;
|
|
676
|
+
run_id: string;
|
|
677
|
+
authority: string;
|
|
678
|
+
decision_ref?: undefined;
|
|
679
|
+
} | {
|
|
680
|
+
action: string;
|
|
681
|
+
decision_ref: string | undefined;
|
|
682
|
+
authority: string;
|
|
683
|
+
run_id?: undefined;
|
|
684
|
+
};
|
|
685
|
+
} & {
|
|
686
|
+
receipt: {
|
|
687
|
+
request_id: string;
|
|
688
|
+
action: string;
|
|
689
|
+
actor: string;
|
|
690
|
+
recorded_at: string;
|
|
691
|
+
evidence: string[];
|
|
692
|
+
reason?: string;
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
team(id: string, runId: string, action: 'assign' | 'report' | 'cancel', assignment: Assignment, change: Mutation): {
|
|
696
|
+
run_id: string;
|
|
697
|
+
assignment: Assignment;
|
|
698
|
+
} & {
|
|
699
|
+
session_id: string;
|
|
700
|
+
orchestration_revision: number;
|
|
701
|
+
continuation: {
|
|
702
|
+
action: string;
|
|
703
|
+
authority: string;
|
|
704
|
+
run_id?: undefined;
|
|
705
|
+
decision_ref?: undefined;
|
|
706
|
+
} | {
|
|
707
|
+
action: string;
|
|
708
|
+
run_id: string;
|
|
709
|
+
authority: string;
|
|
710
|
+
decision_ref?: undefined;
|
|
711
|
+
} | {
|
|
712
|
+
action: string;
|
|
713
|
+
decision_ref: string | undefined;
|
|
714
|
+
authority: string;
|
|
715
|
+
run_id?: undefined;
|
|
716
|
+
};
|
|
717
|
+
} & {
|
|
718
|
+
receipt: {
|
|
719
|
+
request_id: string;
|
|
720
|
+
action: string;
|
|
721
|
+
actor: string;
|
|
722
|
+
recorded_at: string;
|
|
723
|
+
evidence: string[];
|
|
724
|
+
reason?: string;
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
teamList(id: string, runId: string): Assignment[];
|
|
728
|
+
swarmController(id: string, runId: string): {
|
|
729
|
+
controller_dir: string;
|
|
730
|
+
script: string;
|
|
731
|
+
config_template: string;
|
|
732
|
+
};
|
|
733
|
+
recordKnowledge(id: string, runId: string, update: (trace: KnowledgeReads, pin: (prior: Omit<WikiPrior, 'content_sha256'>) => void) => void): KnowledgeReadsReceipt;
|
|
734
|
+
}
|
|
735
|
+
export {};
|