gennady 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -15
- package/ai/agents/agent-resolve-conflicts.xml +6 -0
- package/ai/agents/agent-review-verifier.xml +6 -0
- package/ai/directives/architecture/README.md +21 -0
- package/ai/directives/coding/README.md +23 -0
- package/ai/directives/coding/result-conventions.xml +55 -0
- package/ai/directives/coding/svelte5-runes.xml +248 -0
- package/ai/directives/coding/sveltekit-rules.xml +247 -0
- package/ai/directives/coding/typescript-rules.xml +589 -0
- package/ai/directives/coding/uikit-component-storybook.xml +347 -0
- package/ai/directives/coding/uikit-component-svelte.xml +344 -0
- package/ai/directives/coding/uikit-spec-drafting.xml +243 -0
- package/ai/directives/dbc-audit.directive.xml +131 -0
- package/ai/directives/dev-review.directive.xml +148 -0
- package/ai/directives/infra/README.md +11 -0
- package/ai/directives/infra/eslint-setup.xml +467 -0
- package/ai/directives/infra/git-setup.xml +261 -0
- package/ai/directives/infra/nodejs-npm-setup.xml +354 -0
- package/ai/directives/infra/storybook-setup.xml +153 -0
- package/ai/directives/knowledge.xml +206 -0
- package/ai/directives/perf-auditor/perf-auditor.directive.xml +75 -0
- package/ai/directives/perf-auditor/rules/async-latency.xml +101 -0
- package/ai/directives/perf-auditor/rules/data-structures.xml +103 -0
- package/ai/directives/perf-auditor/rules/iteration-fusion.xml +96 -0
- package/ai/directives/perf-auditor/rules/memory-gc.xml +102 -0
- package/ai/directives/sdd/README.md +49 -0
- package/ai/directives/sdd/audit.directive.xml +543 -0
- package/ai/directives/sdd/discovery.directive.xml +824 -0
- package/ai/directives/sdd/fix.directive.xml +249 -0
- package/ai/directives/sdd/module-decomposition.directive.xml +666 -0
- package/ai/directives/sdd/phase-execution-protocol.xml +339 -0
- package/ai/directives/sdd/scaffold.directive.xml +717 -0
- package/ai/directives/sdd/setup.directive.xml +213 -0
- package/ai/directives/sdd/svelte-ui-discovery.directive.xml +263 -0
- package/ai/directives/semantic-change-extractor.directive.xml +99 -0
- package/ai/directives/testing/README.md +25 -0
- package/ai/directives/testing/common.xml +234 -0
- package/ai/directives/testing/node-test.xml +288 -0
- package/ai/directives/testing/playwright-cli.xml +199 -0
- package/ai/directives/testing/playwright-e2e.xml +292 -0
- package/ai/directives/testing/storybook-usage.xml +173 -0
- package/ai/directives/testing/svelte-testing.xml +237 -0
- package/ai/directives/testing/vitest-rules.xml +326 -0
- package/ai/docs/README.md +17 -0
- package/ai/docs/ai-icl.md +538 -0
- package/ai/docs/ai-priming.md +548 -0
- package/ai/docs/ai-prompt-formats.md +406 -0
- package/ai/docs/ai-promting.md +572 -0
- package/ai/drafts/DRAFT.md +120 -0
- package/ai/drafts/agent-devgen-class-from-description.rules.xml +123 -0
- package/ai/drafts/agent-typescript-devgen.v1.xml +303 -0
- package/ai/drafts/d.md +65 -0
- package/ai/drafts/music-posts.md +105 -0
- package/ai/fw/v1/architecture/blueprint-factory.xml +77 -0
- package/ai/fw/v1/core/mental-model.xml +50 -0
- package/ai/fw/v1/discovery/intent-reactor.xml +92 -0
- package/ai/fw/v1/production/swarm-protocol.xml +122 -0
- package/ai/fw/v1/review/quality-pipeline.xml +102 -0
- package/ai/fw/v2/arch-universal.xml +73 -0
- package/ai/fw-draft/README.md +79 -0
- package/ai/fw-draft/bin/discovery.sh +116 -0
- package/ai/fw-draft/gennady.xml +58 -0
- package/ai/fw-draft/provider/claude.xml +16 -0
- package/ai/fw-draft/provider/cursor.xml +23 -0
- package/ai/fw-draft/provider/default.xml +12 -0
- package/ai/fw-draft/roles/developer.xml +18 -0
- package/ai/fw-draft/router.xml +39 -0
- package/ai/fw-draft/routes/development.xml +32 -0
- package/ai/fw-draft/routes/universal.xml +58 -0
- package/ai/fw-draft/rules/dev/base/file-structure-rules.xml +89 -0
- package/ai/fw-draft/rules/dev/typescript/contacts.xml +194 -0
- package/dist/ai/agents/agent-resolve-conflicts.xml +6 -0
- package/dist/ai/agents/agent-review-verifier.xml +6 -0
- package/dist/ai/directives/architecture/README.md +21 -0
- package/dist/ai/directives/coding/README.md +23 -0
- package/dist/ai/directives/coding/result-conventions.xml +55 -0
- package/dist/ai/directives/coding/svelte5-runes.xml +248 -0
- package/dist/ai/directives/coding/sveltekit-rules.xml +247 -0
- package/dist/ai/directives/coding/typescript-rules.xml +589 -0
- package/dist/ai/directives/coding/uikit-component-storybook.xml +347 -0
- package/dist/ai/directives/coding/uikit-component-svelte.xml +344 -0
- package/dist/ai/directives/coding/uikit-spec-drafting.xml +243 -0
- package/dist/ai/directives/dbc-audit.directive.xml +131 -0
- package/dist/ai/directives/dev-review.directive.xml +148 -0
- package/dist/ai/directives/infra/README.md +11 -0
- package/dist/ai/directives/infra/eslint-setup.xml +467 -0
- package/dist/ai/directives/infra/git-setup.xml +261 -0
- package/dist/ai/directives/infra/nodejs-npm-setup.xml +354 -0
- package/dist/ai/directives/infra/storybook-setup.xml +153 -0
- package/dist/ai/directives/knowledge.xml +206 -0
- package/dist/ai/directives/perf-auditor/perf-auditor.directive.xml +75 -0
- package/dist/ai/directives/perf-auditor/rules/async-latency.xml +101 -0
- package/dist/ai/directives/perf-auditor/rules/data-structures.xml +103 -0
- package/dist/ai/directives/perf-auditor/rules/iteration-fusion.xml +96 -0
- package/dist/ai/directives/perf-auditor/rules/memory-gc.xml +102 -0
- package/dist/ai/directives/sdd/README.md +49 -0
- package/dist/ai/directives/sdd/audit.directive.xml +543 -0
- package/dist/ai/directives/sdd/discovery.directive.xml +824 -0
- package/dist/ai/directives/sdd/fix.directive.xml +249 -0
- package/dist/ai/directives/sdd/module-decomposition.directive.xml +666 -0
- package/dist/ai/directives/sdd/phase-execution-protocol.xml +339 -0
- package/dist/ai/directives/sdd/scaffold.directive.xml +717 -0
- package/dist/ai/directives/sdd/setup.directive.xml +213 -0
- package/dist/ai/directives/sdd/svelte-ui-discovery.directive.xml +263 -0
- package/dist/ai/directives/semantic-change-extractor.directive.xml +99 -0
- package/dist/ai/directives/testing/README.md +25 -0
- package/dist/ai/directives/testing/common.xml +234 -0
- package/dist/ai/directives/testing/node-test.xml +288 -0
- package/dist/ai/directives/testing/playwright-cli.xml +199 -0
- package/dist/ai/directives/testing/playwright-e2e.xml +292 -0
- package/dist/ai/directives/testing/storybook-usage.xml +173 -0
- package/dist/ai/directives/testing/svelte-testing.xml +237 -0
- package/dist/ai/directives/testing/vitest-rules.xml +326 -0
- package/dist/ai/docs/README.md +17 -0
- package/dist/ai/docs/ai-icl.md +538 -0
- package/dist/ai/docs/ai-priming.md +548 -0
- package/dist/ai/docs/ai-prompt-formats.md +406 -0
- package/dist/ai/docs/ai-promting.md +572 -0
- package/dist/ai/drafts/DRAFT.md +120 -0
- package/dist/ai/drafts/agent-devgen-class-from-description.rules.xml +123 -0
- package/dist/ai/drafts/agent-typescript-devgen.v1.xml +303 -0
- package/dist/ai/drafts/d.md +65 -0
- package/dist/ai/drafts/music-posts.md +105 -0
- package/dist/ai/fw/v1/architecture/blueprint-factory.xml +77 -0
- package/dist/ai/fw/v1/core/mental-model.xml +50 -0
- package/dist/ai/fw/v1/discovery/intent-reactor.xml +92 -0
- package/dist/ai/fw/v1/production/swarm-protocol.xml +122 -0
- package/dist/ai/fw/v1/review/quality-pipeline.xml +102 -0
- package/dist/ai/fw/v2/arch-universal.xml +73 -0
- package/dist/ai/fw-draft/README.md +79 -0
- package/dist/ai/fw-draft/bin/discovery.sh +116 -0
- package/dist/ai/fw-draft/gennady.xml +58 -0
- package/dist/ai/fw-draft/provider/claude.xml +16 -0
- package/dist/ai/fw-draft/provider/cursor.xml +23 -0
- package/dist/ai/fw-draft/provider/default.xml +12 -0
- package/dist/ai/fw-draft/roles/developer.xml +18 -0
- package/dist/ai/fw-draft/router.xml +39 -0
- package/dist/ai/fw-draft/routes/development.xml +32 -0
- package/dist/ai/fw-draft/routes/universal.xml +58 -0
- package/dist/ai/fw-draft/rules/dev/base/file-structure-rules.xml +89 -0
- package/dist/ai/fw-draft/rules/dev/typescript/contacts.xml +194 -0
- package/dist/chunks/devtools-B-7ugZhF.js +79 -0
- package/dist/chunks/{help.cmd-CWasx25o.js → help.cmd-B_G7EWzF.js} +9 -2
- package/dist/chunks/{index-B63fYXL2.js → index-BeL1Zcbg.js} +1 -1
- package/dist/chunks/index-CVR66voe.js +26963 -0
- package/dist/chunks/index-CXuhZzS3.js +16979 -0
- package/dist/chunks/{index-B5bA2T7A.js → index-CaahtXiM.js} +33 -9
- package/dist/chunks/{index-iqg0w_pE.js → index-CiEM-8nJ.js} +35 -19
- package/dist/chunks/{index-B4m0-PAT.js → index-D1qsi0Uc.js} +57 -33
- package/dist/chunks/index-D9ceRUyB.js +443 -0
- package/dist/chunks/index-DJpVmyp2.js +176 -0
- package/dist/chunks/{index-C0andxna.js → index-DU6jD7SS.js} +1 -1
- package/dist/chunks/index-KxSZKmZn.js +540 -0
- package/dist/chunks/{index-Dqe1TdW4.js → index-UbHoePfr.js} +12 -12
- package/dist/chunks/{index-5xIgwwKx.js → index-g1LXlp77.js} +2 -2
- package/dist/chunks/index-zBnnuvLA.js +3788 -0
- package/dist/chunks/{run-review-command.logic-a_M3CkeZ.js → run-review-command.logic-DpkRoEi8.js} +2 -2
- package/dist/chunks/services-CaLOhuLV.js +2889 -0
- package/dist/chunks/shared-Bjy30TeM.js +665 -0
- package/dist/cli/cmd/_shared/prompt/io/load-agent-template.io.d.ts +3 -3
- package/dist/cli/cmd/_shared/prompt/logic/build-ai-first-knowledge-block.logic.d.ts +3 -3
- package/dist/cli/cmd/_shared/prompt/logic/build-ai-verify-placeholders.logic.d.ts +7 -4
- package/dist/cli/cmd/_shared/prompt/logic/verify-commands/resolve-verify-commands.logic.d.ts +5 -0
- package/dist/cli/cmd/_shared/update-check-worker.d.ts +1 -0
- package/dist/cli/cmd/_shared/update-check.d.ts +38 -0
- package/dist/cli/cmd/agent-mon/cmd/create-providers.d.ts +15 -0
- package/dist/cli/cmd/agent-mon/cmd/index.d.ts +1 -0
- package/dist/cli/cmd/agent-mon/cmd/run.d.ts +12 -0
- package/dist/cli/cmd/agent-mon/state/create-state-manager.d.ts +32 -0
- package/dist/cli/cmd/agent-mon/state/group-by-provider.d.ts +14 -0
- package/dist/cli/cmd/agent-mon/state/index.d.ts +5 -0
- package/dist/cli/cmd/agent-mon/state/is-waiting.d.ts +9 -0
- package/dist/cli/cmd/agent-mon/state/view-model.type.d.ts +74 -0
- package/dist/cli/cmd/agent-mon/ui/app.d.ts +16 -0
- package/dist/cli/cmd/agent-mon/ui/column-view.d.ts +14 -0
- package/dist/cli/cmd/agent-mon/ui/index.d.ts +10 -0
- package/dist/cli/cmd/agent-mon/ui/provider-column.d.ts +14 -0
- package/dist/cli/cmd/agent-mon/ui/session-card.d.ts +12 -0
- package/dist/cli/cmd/agent-mon/ui/status-badge.d.ts +10 -0
- package/dist/cli/cmd/alt-opinion/alt-opinion-parser.d.ts +18 -0
- package/dist/cli/cmd/alt-opinion/alt-opinion-runner.d.ts +32 -0
- package/dist/cli/cmd/alt-opinion/alt-opinion.cmd.d.ts +34 -0
- package/dist/cli/cmd/alt-opinion/alt-opinion.types.d.ts +88 -0
- package/dist/cli/cmd/alt-opinion/index.d.ts +1 -0
- package/dist/cli/cmd/cat/cat-url.fn.d.ts +19 -0
- package/dist/cli/cmd/lint/checks/anchor.check.d.ts +11 -0
- package/dist/cli/cmd/lint/checks/dbc-contract.check.d.ts +16 -0
- package/dist/cli/cmd/lint/checks/disables.check.d.ts +12 -0
- package/dist/cli/cmd/lint/checks/file-header.check.d.ts +10 -0
- package/dist/cli/cmd/lint/checks/language.check.d.ts +11 -0
- package/dist/cli/cmd/lint/index.d.ts +1 -0
- package/dist/cli/cmd/lint/lint.cmd.d.ts +18 -0
- package/dist/cli/cmd/lint/lint.types.d.ts +72 -0
- package/dist/cli/cmd/lint/utils/resolve-references.fn.d.ts +32 -0
- package/dist/cli/cmd/remote-console/index.d.ts +2 -0
- package/dist/cli/cmd/remote-console/remote-console.cmd.d.ts +55 -0
- package/dist/cli/cmd/resolve-conflicts/_core/io/resolve-conflicts-template-load.io.d.ts +2 -2
- package/dist/cli/cmd/resolve-conflicts/_core/logic/resolve-conflicts-command-args-parse.logic.d.ts +3 -3
- package/dist/cli/cmd/resolve-conflicts/_core/logic/resolve-conflicts-command-run.logic.d.ts +3 -3
- package/dist/cli/cmd/resolve-conflicts/_core/logic/resolve-conflicts-context-git-build.logic.d.ts +4 -4
- package/dist/cli/cmd/resolve-conflicts/_core/types/resolve-conflicts-artifact.type.d.ts +3 -1
- package/dist/cli/cmd/resolve-conflicts/_core/types/resolve-conflicts-command-args.type.d.ts +3 -1
- package/dist/cli/cmd/resolve-conflicts/_core/types/resolve-conflicts-command-result.type.d.ts +5 -1
- package/dist/cli/cmd/resolve-conflicts/_core/types/resolve-conflicts-context-git.type.d.ts +18 -2
- package/dist/cli/cmd/resolve-conflicts/_core/xml/resolve-conflicts-artifact-build.xml.d.ts +6 -6
- package/dist/cli/cmd/resolve-conflicts/_core/xml/resolve-conflicts-render.xml.d.ts +4 -4
- package/dist/cli/cmd/review/_core/io/load-review-verify-template.io.d.ts +2 -2
- package/dist/cli/cmd/review/_core/logic/build-review-context-git.logic.d.ts +3 -3
- package/dist/cli/cmd/review/_core/logic/build-review-context-vcs.logic.d.ts +2 -2
- package/dist/cli/cmd/review/_core/logic/load-review-context-mr.logic.d.ts +5 -5
- package/dist/cli/cmd/review/_core/logic/parse-review-command-args.logic.d.ts +3 -3
- package/dist/cli/cmd/review/_core/logic/resolve-review-intent.logic.d.ts +3 -3
- package/dist/cli/cmd/review/_core/logic/run-review-command.logic.d.ts +3 -3
- package/dist/cli/cmd/review/_core/types/review-artifact.type.d.ts +4 -1
- package/dist/cli/cmd/review/_core/types/review-command-args.type.d.ts +7 -1
- package/dist/cli/cmd/review/_core/types/review-command-mode.type.d.ts +1 -1
- package/dist/cli/cmd/review/_core/types/review-command-options.type.d.ts +3 -1
- package/dist/cli/cmd/review/_core/types/review-command-result.type.d.ts +5 -1
- package/dist/cli/cmd/review/_core/types/review-context-git.type.d.ts +3 -1
- package/dist/cli/cmd/review/_core/types/review-context-mr.type.d.ts +22 -3
- package/dist/cli/cmd/review/_core/types/review-context-vcs.type.d.ts +4 -1
- package/dist/cli/cmd/review/_core/types/review-intent.type.d.ts +1 -1
- package/dist/cli/cmd/review/_core/xml/build-review-artifact.xml.d.ts +10 -10
- package/dist/cli/cmd/review/_core/xml/render-review-issues.xml.d.ts +3 -3
- package/dist/cli/cmd/review/_core/xml/render-review-verify.xml.d.ts +4 -4
- package/dist/cli/cmd/sync/index.d.ts +1 -0
- package/dist/cli/cmd/sync/sync-core.d.ts +65 -0
- package/dist/cli/cmd/sync/sync-formatter.d.ts +12 -0
- package/dist/cli/cmd/sync/sync.cmd.d.ts +33 -0
- package/dist/cli/cmd/sync/sync.types.d.ts +50 -0
- package/dist/cli/cmd/vcs-reply/vcs-reply.cmd.d.ts +4 -4
- package/dist/cli/utils/ai-legacy/ai-legacy-agent.d.ts +12 -11
- package/dist/cli/utils/ai-legacy/ai-legacy-core.d.ts +33 -17
- package/dist/cli/utils/ai-legacy/ai-legacy-model.d.ts +42 -23
- package/dist/cli/utils/cat-gen/cat-gen.d.ts +19 -8
- package/dist/cli/utils/commit-gen/commit-gen.d.ts +39 -15
- package/dist/cli/utils/prompts/index.d.ts +6 -6
- package/dist/cli/utils/review-gen/review-gen.d.ts +33 -9
- package/dist/gennady.js +30 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +44 -23
- package/dist/services/agent-mon/diff/diff.d.ts +9 -0
- package/dist/services/agent-mon/diff/index.d.ts +1 -0
- package/dist/services/agent-mon/index.d.ts +10 -0
- package/dist/services/agent-mon/model/agent-provider.type.d.ts +20 -0
- package/dist/services/agent-mon/model/agent-session.type.d.ts +49 -0
- package/dist/services/agent-mon/model/errors.d.ts +20 -0
- package/dist/services/agent-mon/model/index.d.ts +7 -0
- package/dist/services/agent-mon/model/observe-opts.type.d.ts +7 -0
- package/dist/services/agent-mon/model/scan-opts.type.d.ts +7 -0
- package/dist/services/agent-mon/model/session-changes.type.d.ts +10 -0
- package/dist/services/agent-mon/monitor/agent-monitor.d.ts +44 -0
- package/dist/services/agent-mon/monitor/create-monitor.d.ts +6 -0
- package/dist/services/agent-mon/monitor/index.d.ts +2 -0
- package/dist/services/agent-mon/observe/index.d.ts +1 -0
- package/dist/services/agent-mon/observe/observe.d.ts +12 -0
- package/dist/services/agent-mon/providers/claude/claude-provider.d.ts +50 -0
- package/dist/services/agent-mon/providers/claude/index.d.ts +5 -0
- package/dist/services/agent-mon/providers/claude/ps.d.ts +36 -0
- package/dist/services/agent-mon/providers/claude/session-json.d.ts +37 -0
- package/dist/services/agent-mon/providers/opencode/db.d.ts +41 -0
- package/dist/services/agent-mon/providers/opencode/index.d.ts +3 -0
- package/dist/services/agent-mon/providers/opencode/model-parser.d.ts +6 -0
- package/dist/services/agent-mon/providers/opencode/opencode-provider.d.ts +45 -0
- package/dist/services/ai-client/providers/ai-model.type.d.ts +14 -0
- package/dist/services/ai-client/providers/open-router/open-router-model.type.d.ts +1 -4
- package/dist/services/ai-client/providers/open-router/open-router-provider.d.ts +17 -0
- package/dist/services/ai-client/providers/openai-like-provider.d.ts +1 -0
- package/dist/services/data-ore/telegram/telegram-data-ore.d.ts +17 -0
- package/dist/services/data-ore/telegram/telegram-data-ore.types.d.ts +4 -0
- package/dist/services/data-ore/telegram/telegram-demo-music-helper.d.ts +1 -0
- package/dist/services/data-ore/telegram/telegram-demo.d.ts +1 -0
- package/dist/services/dbc/linter/dbc-ast-adapter.types.d.ts +82 -0
- package/dist/services/dbc/linter/dbc-linter.types.d.ts +95 -0
- package/dist/services/dbc/linter/implementations/ts/dbc-ts-ast-adapter.d.ts +183 -0
- package/dist/services/dbc/linter/implementations/ts/dbc-ts-linter.d.ts +152 -0
- package/dist/services/dbc/parser/dbc-parser.types.d.ts +16 -16
- package/dist/services/dbc/parser/implementations/jsdoc/dbc-jsdoc-parser.d.ts +14 -4
- package/dist/services/logger/logger.d.ts +26 -6
- package/dist/services/remote-console/client/remote-console-client-serializer.d.ts +7 -0
- package/dist/services/remote-console/client/remote-console-client.d.ts +20 -0
- package/dist/services/remote-console/client/remote-console-client.types.d.ts +88 -0
- package/dist/services/remote-console/remote-console.d.ts +6 -0
- package/dist/services/remote-console/server/remote-console-server.d.ts +10 -0
- package/dist/services/remote-console/server/remote-console-server.types.d.ts +44 -0
- package/dist/services/remote-console/server/remote-console-stdout-writer.d.ts +26 -0
- package/dist/services/vcs-client/abstract/vcs-client-merge-discussions.d.ts +22 -14
- package/dist/services/vcs-client/abstract/vcs-client-merge-requests.d.ts +31 -14
- package/dist/services/vcs-client/abstract/vcs-client-repository-files.d.ts +16 -0
- package/dist/services/vcs-client/abstract/vcs-client.d.ts +9 -5
- package/dist/services/vcs-client/entities/vcs-file-content.type.d.ts +24 -0
- package/dist/services/vcs-client/entities/vcs-merge-request-changes.type.d.ts +32 -0
- package/dist/services/vcs-client/entities/vcs-url.type.d.ts +14 -0
- package/dist/services/vcs-client/entities/vcs-user.type.d.ts +3 -0
- package/dist/services/vcs-client/github/vcs-github-client.d.ts +31 -0
- package/dist/services/vcs-client/github/vcs-github-merge-requests.d.ts +40 -0
- package/dist/services/vcs-client/github/vcs-github-repository-files.d.ts +27 -0
- package/dist/services/vcs-client/gitlab/vcs-gitlab-client.d.ts +13 -4
- package/dist/services/vcs-client/gitlab/vcs-gitlab-merge-discussions.d.ts +16 -5
- package/dist/services/vcs-client/gitlab/vcs-gitlab-merge-requests.d.ts +24 -5
- package/dist/services/vcs-client/gitlab/vcs-gitlab-repository-files.d.ts +27 -0
- package/dist/services/vcs-client/parse-vcs-url.d.ts +3 -0
- package/dist/shared/backend/git/git-core.d.ts +24 -22
- package/dist/shared/backend/git/git-diff.d.ts +16 -5
- package/dist/shared/backend/rc/rc-config.d.ts +27 -15
- package/dist/shared/common/exec.d.ts +4 -6
- package/dist/shared/common/files.d.ts +1 -3
- package/dist/shared/common/language.d.ts +3 -6
- package/dist/shared/common/parse-args.d.ts +1 -4
- package/dist/shared/common/style.d.ts +3 -3
- package/dist/shared/common/think.d.ts +1 -5
- package/dist/shared/common/tokens.d.ts +1 -5
- package/dist/shared/common/unguard.d.ts +4 -8
- package/dist/shared/common/xml.d.ts +16 -12
- package/package.json +20 -4
- package/dist/.ai/agents/agent-review-verifier.xml +0 -181
- package/dist/chunks/index-CNbmXK8M.js +0 -3548
- package/dist/chunks/services-Sb7TwLxt.js +0 -122
- package/dist/chunks/shared-BgLzFWMH.js +0 -577
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
<SddFix keywords="fix, remediate, bugfix, code-review, findings, reopen, batch-fix" type="directive" ver="1.0">
|
|
2
|
+
<Directive_Context>
|
|
3
|
+
<Mission>
|
|
4
|
+
Turn operator findings (code review, audit, sdd-check, bug report) into concrete fixes:
|
|
5
|
+
classify each finding → plan fixes → agree with operator → execute direct edits + spec updates
|
|
6
|
+
→ reopen affected tasks → dispatch sdd-execute on each reopened task → verify with sdd-check.
|
|
7
|
+
|
|
8
|
+
Input: operator context (findings list, code review comments, sdd-check output).
|
|
9
|
+
Output: applied fixes in code/specs/trackers, reopened tasks dispatched through sdd-execute, sdd-check PASS.
|
|
10
|
+
</Mission>
|
|
11
|
+
</Directive_Context>
|
|
12
|
+
|
|
13
|
+
<Belief_State>
|
|
14
|
+
<Axiom id="AX_TASK_RESOLUTION">
|
|
15
|
+
BEFORE classification, resolve which task owns each affected file.
|
|
16
|
+
|
|
17
|
+
For every finding whose location is a .ts or .spec.md file:
|
|
18
|
+
1. Read the file's header (first lines before `import` / first `#`).
|
|
19
|
+
2. Extract `@tasks: TSK-NN[, TSK-MM, ...]` — this is the task that created/owns this file.
|
|
20
|
+
3. Build map: file → [Task-IDs].
|
|
21
|
+
4. If no `@tasks:` header → still classify the finding (the fix IS adding the header), but note "no task" for the plan.
|
|
22
|
+
|
|
23
|
+
Files in `tasks/` directory are tickets themselves — the Task-ID is in the filename.
|
|
24
|
+
Files in `specs/` are spec files — linked to scope, not a single task.
|
|
25
|
+
Trackers (`tasks/*/README.md`, `tasks/README.md`) — no task, global artifacts.
|
|
26
|
+
|
|
27
|
+
This map is used by AX_FIX_CLASSIFICATION to route fixes to the correct task.
|
|
28
|
+
</Axiom>
|
|
29
|
+
|
|
30
|
+
<Axiom id="AX_FIX_CLASSIFICATION">
|
|
31
|
+
Three action categories. Use AX_TASK_RESOLUTION map to determine task ownership.
|
|
32
|
+
|
|
33
|
+
**A. direct-fix** — file edit, NO task reopen needed. File is NOT a .ts implementation file.
|
|
34
|
+
Triggers: tracker desync (trackers are global), execution log placeholder (ticket file itself),
|
|
35
|
+
missing `@file:` / `@consumers:` / `@tasks:` headers on a file that has no other findings.
|
|
36
|
+
Action: Edit the file directly. Verify the fix.
|
|
37
|
+
|
|
38
|
+
**B. spec-update** — spec file edit. May trigger a task reopen if the spec change invalidates existing code.
|
|
39
|
+
Triggers: missing entity in Entity Inventory, DBC contract gap, Decision Log gap, stale pivot artifact.
|
|
40
|
+
Action: Edit the spec file. If spec change invalidates code → the owning task (from @tasks: on the code file) becomes Category C.
|
|
41
|
+
|
|
42
|
+
**C. task-reopen** — code change OR header fix on a .ts file that belongs to a task.
|
|
43
|
+
Triggers: ANY finding in a .ts file that has `@tasks:` header → reopen that task.
|
|
44
|
+
Specific triggers: code bug, missing null guard, logic error, type error,
|
|
45
|
+
DBC contract violation, missing test, BDD mismatch, RULES_COMPLIANCE_VIOLATION,
|
|
46
|
+
code review finding in implementation code.
|
|
47
|
+
Action: For each Task-ID from AX_TASK_RESOLUTION:
|
|
48
|
+
1. Read the ticket file: `tasks/<scope>/<scope>.task-NN.md`
|
|
49
|
+
2. Append new Round per AX_REOPEN_FORMAT
|
|
50
|
+
3. Add phase block(s):
|
|
51
|
+
- P1: kind `fix` — Target Files = affected .ts files, fix the issue
|
|
52
|
+
- P2: kind `test` — Target Files = corresponding test file, add regression test
|
|
53
|
+
**Every code fix MUST have a test phase to prevent regression.**
|
|
54
|
+
4. Set Status → `[ ] TODO`, increment Reopens
|
|
55
|
+
5. Sync tracker
|
|
56
|
+
Multiple findings in the same task → one reopen Round with all fixes grouped into phases.
|
|
57
|
+
</Axiom>
|
|
58
|
+
|
|
59
|
+
<Axiom id="AX_TEST_MANDATE">
|
|
60
|
+
Every Category C fix (code change) REQUIRES a test phase.
|
|
61
|
+
The test phase adds a unit test that:
|
|
62
|
+
- Reproduces the exact bug/finding that triggered the fix (red → green)
|
|
63
|
+
- Covers the edge case or missing scenario
|
|
64
|
+
- Uses the canonical test name format from the original task's BDD section
|
|
65
|
+
|
|
66
|
+
A fix without a regression test is incomplete and must not be dispatched.
|
|
67
|
+
</Axiom>
|
|
68
|
+
</Axiom>
|
|
69
|
+
|
|
70
|
+
<Axiom id="AX_OPERATOR_AGREEMENT">
|
|
71
|
+
Every fix must be operator-approved before execution. The plan is shown as a table.
|
|
72
|
+
No edits are made before explicit operator "yes" / "go" / "ok".
|
|
73
|
+
Operator may edit the plan (remove items, change classification, add notes).
|
|
74
|
+
</Axiom>
|
|
75
|
+
|
|
76
|
+
<Axiom id="AX_EXECUTION_ORDER">
|
|
77
|
+
Fixes execute in category order: A (direct) → B (spec) → C (reopen + dispatch).
|
|
78
|
+
Within each category, trackers and logs first, then spec, then code tasks.
|
|
79
|
+
Rationale: direct fixes are fast and unblock spec updates; task reopens are slow and go last.
|
|
80
|
+
</Axiom>
|
|
81
|
+
|
|
82
|
+
<Axiom id="AX_REOPEN_FORMAT">
|
|
83
|
+
When reopening a task ticket, append to section 7 Execution Log:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
### Round N — <YYYY-MM-DD>, fix: <one-line reason>
|
|
87
|
+
|
|
88
|
+
| Phase | Kind | Status | Target Files | Deps |
|
|
89
|
+
|-------|-------|--------|-------------|------|
|
|
90
|
+
| P1 | fix | [ ] | <paths> | — |
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Set ticket Meta Status → `[ ] TODO`. Update `Reopens: <new count>`.
|
|
94
|
+
Sync tracker: `tasks/<scope>/README.md` row → `[ ] TODO`, `tasks/README.md` index → adjust counts.
|
|
95
|
+
</Axiom>
|
|
96
|
+
|
|
97
|
+
<Axiom id="AX_DISPATCH_VIA_BATCH">
|
|
98
|
+
After all reopens are prepared, dispatch sdd-execute-batch on the reopened tasks.
|
|
99
|
+
The batch orchestrator will plan layers, run phases, close rounds, sync trackers.
|
|
100
|
+
|
|
101
|
+
Audit flag: pass `skip-audit` to batch — audit was already done by sdd-check at the end of this fix session.
|
|
102
|
+
(The batch should still run phases but skip the per-task audit dispatch.)
|
|
103
|
+
</Axiom>
|
|
104
|
+
|
|
105
|
+
<Axiom id="AX_VERIFY_AT_END">
|
|
106
|
+
After all tasks complete, run sdd-check. All checks must PASS.
|
|
107
|
+
If sdd-check finds issues → classify them as new findings → ask operator → fix cycle repeats.
|
|
108
|
+
</Axiom>
|
|
109
|
+
</Belief_State>
|
|
110
|
+
|
|
111
|
+
<Halt_Conditions>
|
|
112
|
+
| HALT | Trigger |
|
|
113
|
+
|-----------------|---------|
|
|
114
|
+
| H_NO_FINDINGS | No findings in context to fix |
|
|
115
|
+
| H_NO_AGREE | Operator rejects the plan |
|
|
116
|
+
| H_VERIFY_FAIL | sdd-check fails after fix cycle — operator must decide |
|
|
117
|
+
</Halt_Conditions>
|
|
118
|
+
|
|
119
|
+
<Execution_Plan>
|
|
120
|
+
<Step id="STEP_1_INTAKE">
|
|
121
|
+
Parse findings from the operator's context: code review, sdd-check, audit, bug report.
|
|
122
|
+
Normalize: file path, line, description, severity.
|
|
123
|
+
</Step>
|
|
124
|
+
|
|
125
|
+
<Step id="STEP_2_FIND_TASKS">
|
|
126
|
+
For each affected file, read its header. Extract `@tasks: TSK-NN`.
|
|
127
|
+
If file has no `@tasks:` → note "no task" — the fix includes adding the header.
|
|
128
|
+
Read each identified ticket file: `tasks/<scope>/<scope>.task-NN.md`.
|
|
129
|
+
Build map: Task-ID → [affected files, current status, last round number].
|
|
130
|
+
Multiple findings in the same task → group together.
|
|
131
|
+
</Step>
|
|
132
|
+
|
|
133
|
+
<Step id="STEP_3_FIND_SPECS">
|
|
134
|
+
For each ticket, read 1 Spec References. Trace to scope spec and module spec.
|
|
135
|
+
Read the relevant spec sections.
|
|
136
|
+
For each finding, determine: is there a spec gap that enabled this bug?
|
|
137
|
+
A spec gap = missing entity in Inventory, missing constraint in DbC, missing edge case in Requirements.
|
|
138
|
+
</Step>
|
|
139
|
+
|
|
140
|
+
<Step id="STEP_4_ROOT_CAUSE">
|
|
141
|
+
For each finding, answer: WHY did the agent make this mistake?
|
|
142
|
+
- Was the spec ambiguous or missing a constraint?
|
|
143
|
+
- Was the directive unclear about this case?
|
|
144
|
+
- Was the task ticket missing a test scenario?
|
|
145
|
+
- Was the rule file incomplete?
|
|
146
|
+
|
|
147
|
+
This root cause determines what to fix in the spec to prevent recurrence.
|
|
148
|
+
Without root cause analysis, we're only fixing symptoms.
|
|
149
|
+
</Step>
|
|
150
|
+
|
|
151
|
+
<Step id="STEP_5_PLAN">
|
|
152
|
+
Present the FULL plan to operator. This includes ALL four categories:
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
## 🔧 sdd-fix plan
|
|
156
|
+
|
|
157
|
+
### Root cause
|
|
158
|
+
| Finding | File | Why agent failed | Spec gap |
|
|
159
|
+
|---------|------|-----------------|----------|
|
|
160
|
+
| F-01 ... | path | <reason> | <what was missing in spec> |
|
|
161
|
+
|
|
162
|
+
### Direct fixes (N)
|
|
163
|
+
| # | What | File | Action |
|
|
164
|
+
|---|------|------|--------|
|
|
165
|
+
| 1 | Tracker desync | tasks/X/README.md | [ ] → [x] DONE |
|
|
166
|
+
|
|
167
|
+
### Spec improvements (N)
|
|
168
|
+
| # | Spec file | What to add | Why |
|
|
169
|
+
|---|-----------|-------------|-----|
|
|
170
|
+
| 2 | specs/X/X.spec.md2 | Entity: X | Missing from closed-world inventory |
|
|
171
|
+
| 3 | specs/X/X.spec.md4 | Constraint: value > 0 | Agent didn't know about this edge case |
|
|
172
|
+
|
|
173
|
+
### Task reopens (N)
|
|
174
|
+
| # | Task | Round | Phases | Fix | Regression test | Test file |
|
|
175
|
+
|---|------|-------|--------|-----|-----------------|-----------|
|
|
176
|
+
| 4 | TSK-27 | R2 | P1 fix, P2 test | Add null guard on parseVcsUrl | "should throw InvalidUrlError for malformed URL" | parse-vcs-url.test.ts |
|
|
177
|
+
| 5 | TSK-30 | R2 | P1 fix, P2 test | Add timeout to fetch | "should throw TimeoutError after 5s" | vcs-client.test.ts |
|
|
178
|
+
|
|
179
|
+
### Summary
|
|
180
|
+
Direct: N | Spec: N | Reopen: N tasks with N phases and N regression tests
|
|
181
|
+
|
|
182
|
+
Proceed? [yes / edit line N / cancel]
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Every code fix MUST have a regression test (AX_TEST_MANDATE).
|
|
186
|
+
Every spec improvement MUST cite the finding it prevents.
|
|
187
|
+
</Step>
|
|
188
|
+
|
|
189
|
+
<Step id="STEP_6_AGREE">
|
|
190
|
+
WAIT for operator response. Do not proceed without explicit "yes" / "go" / "ok".
|
|
191
|
+
Operator may edit any line. Re-plan if requested.
|
|
192
|
+
</Step>
|
|
193
|
+
|
|
194
|
+
<Step id="STEP_7_EXECUTE">
|
|
195
|
+
After agreement, execute in strict order:
|
|
196
|
+
|
|
197
|
+
**7a — Direct fixes.** Edit files per plan. Verify each fix.
|
|
198
|
+
|
|
199
|
+
**7b — Spec improvements.** Edit spec files. Update Entity Inventory, DbC contracts,
|
|
200
|
+
Requirements, Decision Log. Every change = traceable to a finding.
|
|
201
|
+
|
|
202
|
+
**7c — Task reopens.** For each task:
|
|
203
|
+
1. Read the ticket
|
|
204
|
+
2. Append `### Round N — <date>, fix: <reason>`
|
|
205
|
+
3. Add P1 `fix` phase with Target Files + description of the fix
|
|
206
|
+
4. Add P2 `test` phase with Target Test File + test name + what it verifies
|
|
207
|
+
5. Set Meta Status → `[ ] TODO`, increment `Reopens: N`
|
|
208
|
+
6. Sync tracker: `tasks/<scope>/README.md` row → `[ ] TODO`
|
|
209
|
+
`tasks/README.md` Tracker Index → adjust counts
|
|
210
|
+
</Step>
|
|
211
|
+
|
|
212
|
+
<Step id="STEP_8_DISPATCH">
|
|
213
|
+
Dispatch sdd-execute-batch on the reopened task list.
|
|
214
|
+
Pass `skip-audit` — audit was already done, sdd-check verifies at end.
|
|
215
|
+
Wait for all to complete.
|
|
216
|
+
</Step>
|
|
217
|
+
|
|
218
|
+
<Step id="STEP_9_VERIFY">
|
|
219
|
+
Run sdd-check on the affected scope.
|
|
220
|
+
All checks must PASS. If not → findings → go to STEP_2 for a second pass.
|
|
221
|
+
Show final summary per FIX_SUMMARY_FORMAT.
|
|
222
|
+
</Step>
|
|
223
|
+
</Execution_Plan>
|
|
224
|
+
|
|
225
|
+
<Output_Contracts>
|
|
226
|
+
<Contract id="PLAN_TABLE_FORMAT">
|
|
227
|
+
Shown to operator at STEP_3. Compact table per category. Operator may edit.
|
|
228
|
+
</Contract>
|
|
229
|
+
|
|
230
|
+
<Contract id="FIX_SUMMARY_FORMAT">
|
|
231
|
+
```
|
|
232
|
+
## ✅ sdd-fix complete
|
|
233
|
+
|
|
234
|
+
Direct fixes: N applied
|
|
235
|
+
✅ <what> → <file>
|
|
236
|
+
✅ <what> → <file>
|
|
237
|
+
|
|
238
|
+
Spec updates: N applied
|
|
239
|
+
✅ <what> → <file>
|
|
240
|
+
|
|
241
|
+
Tasks reopened: N
|
|
242
|
+
🔄 TSK-NN — Round N: <reason> → dispatched
|
|
243
|
+
🔄 TSK-MM — Round N: <reason> → dispatched
|
|
244
|
+
|
|
245
|
+
🔍 sdd-check: ✅ PASS (N/N checks)
|
|
246
|
+
```
|
|
247
|
+
</Contract>
|
|
248
|
+
</Output_Contracts>
|
|
249
|
+
</SddFix>
|