specweave 0.18.0 → 0.18.1
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/dist/locales/de/.gitkeep +0 -0
- package/dist/locales/de/cli.json +108 -0
- package/dist/locales/en/cli.json +287 -0
- package/dist/locales/en/errors.json +7 -0
- package/dist/locales/en/templates.json +6 -0
- package/dist/locales/es/.gitkeep +0 -0
- package/dist/locales/es/cli.json +41 -0
- package/dist/locales/fr/.gitkeep +0 -0
- package/dist/locales/fr/cli.json +108 -0
- package/dist/locales/ja/.gitkeep +0 -0
- package/dist/locales/ja/cli.json +108 -0
- package/dist/locales/ko/.gitkeep +0 -0
- package/dist/locales/ko/cli.json +108 -0
- package/dist/locales/pt/.gitkeep +0 -0
- package/dist/locales/pt/cli.json +108 -0
- package/dist/locales/ru/.gitkeep +0 -0
- package/dist/locales/ru/cli.json +269 -0
- package/dist/locales/zh/.gitkeep +0 -0
- package/dist/locales/zh/cli.json +108 -0
- package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.d.ts +25 -0
- package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.js +191 -0
- package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/epic-content-builder.d.ts +63 -0
- package/dist/plugins/specweave-github/lib/epic-content-builder.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/epic-content-builder.js +216 -0
- package/dist/plugins/specweave-github/lib/epic-content-builder.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-epic-sync.d.ts +2 -2
- package/dist/plugins/specweave-github/lib/github-epic-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-epic-sync.js +19 -4
- package/dist/plugins/specweave-github/lib/github-epic-sync.js.map +1 -1
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.d.ts +26 -0
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.js +195 -0
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.js.map +1 -0
- package/dist/spec-parser.js +629 -0
- package/dist/src/cli/commands/init.d.ts.map +1 -1
- package/dist/src/cli/commands/init.js +107 -3
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/core/sync/enhanced-content-builder.d.ts +32 -54
- package/dist/src/core/sync/enhanced-content-builder.d.ts.map +1 -1
- package/dist/src/core/sync/enhanced-content-builder.js +141 -138
- package/dist/src/core/sync/enhanced-content-builder.js.map +1 -1
- package/dist/src/core/sync/spec-content-sync.d.ts +88 -0
- package/dist/src/core/sync/spec-content-sync.d.ts.map +1 -0
- package/dist/src/core/sync/spec-content-sync.js +5 -0
- package/dist/src/core/sync/spec-content-sync.js.map +1 -0
- package/dist/src/core/sync/types.d.ts +52 -0
- package/dist/src/core/sync/types.d.ts.map +1 -0
- package/dist/src/core/sync/types.js +5 -0
- package/dist/src/core/sync/types.js.map +1 -0
- package/dist/src/core/types/config.d.ts +31 -0
- package/dist/src/core/types/config.d.ts.map +1 -1
- package/dist/src/core/types/config.js +9 -0
- package/dist/src/core/types/config.js.map +1 -1
- package/dist/src/core/types/increment-metadata.d.ts +4 -0
- package/dist/src/core/types/increment-metadata.d.ts.map +1 -1
- package/dist/src/core/types/increment-metadata.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/plugins/specweave/agents/pm/AGENT.md +159 -12
- package/plugins/specweave/commands/specweave.md +70 -405
- package/plugins/specweave/hooks/post-increment-planning.sh +26 -2
- package/plugins/specweave-ado/lib/enhanced-ado-sync.js +170 -0
- package/plugins/specweave-github/hooks/post-task-completion.sh +32 -0
- package/plugins/specweave-github/lib/epic-content-builder.js +227 -0
- package/plugins/specweave-github/lib/epic-content-builder.ts +317 -0
- package/plugins/specweave-github/lib/github-epic-sync.js +23 -24
- package/plugins/specweave-github/lib/github-epic-sync.ts +29 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/core/types/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/core/types/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA2IxD;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAA6B;IACtD,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;QACX,SAAS,EAAE,CAAC,IAAI,CAAC;QACjB,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,MAAM;QACd,sBAAsB,EAAE,IAAI;KAC7B;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,QAAQ;KAClB;IACD,OAAO,EAAE;QACP,eAAe,EAAE,KAAK;QACtB,qBAAqB,EAAE,EAAE;QACzB,eAAe,EAAE;YACf,IAAI,EAAE,EAAE;YACR,WAAW,EAAE,EAAE;YACf,GAAG,EAAE,EAAE;SACR;KACF;IACD,MAAM,EAAE;QACN,mBAAmB,EAAE,CAAC,EAAS,8CAA8C;QAC7E,OAAO,EAAE,CAAC,EAAqB,+BAA+B;QAC9D,uBAAuB,EAAE,IAAI,EAAE,gCAAgC;QAC/D,aAAa,EAAE;YACb,YAAY,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,iCAAiC;YAC1F,eAAe,EAAE;gBACf,UAAU,EAAE,EAAE,EAAa,iCAAiC;aAC7D;SACF;QACD,SAAS,EAAE;YACT,MAAM,EAAE,CAAC,EAAoB,yBAAyB;YACtD,MAAM,EAAE,EAAE,EAAmB,0BAA0B;SACxD;KACF;IACD,KAAK,EAAE;QACL,oBAAoB,EAAE;YACpB,gBAAgB,EAAE,IAAI,EAAO,mDAAmD;YAChF,aAAa,EAAE,IAAI,EAAU,yCAAyC;YACtE,qBAAqB,EAAE,IAAI,EAAE,wCAAwC;SACtE;KACF;IACD,IAAI,EAAE;QACJ,UAAU,EAAE;YACV,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,IAAI;YAChB,kBAAkB,EAAE,iBAAiB;YACrC,QAAQ,EAAE;gBACR,MAAM,EAAE;oBACN,QAAQ,EAAE,MAAM;oBAChB,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,aAAa,CAAC,EAAE;oBAClD,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE;oBAC7C,SAAS,EAAE,QAAQ;oBACnB,SAAS,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE;iBACpD;gBACD,IAAI,EAAE;oBACJ,QAAQ,EAAE,OAAO;oBACjB,MAAM,EAAE,aAAa;oBACrB,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,MAAM;oBACjB,SAAS,EAAE,WAAW;iBACvB;gBACD,GAAG,EAAE;oBACH,QAAQ,EAAE,KAAK;oBACf,MAAM,EAAE,QAAQ;oBAChB,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,QAAQ;oBACnB,SAAS,EAAE,SAAS;iBACrB;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -51,6 +51,10 @@ export interface IncrementMetadata {
|
|
|
51
51
|
created: string;
|
|
52
52
|
/** Last activity timestamp (ISO 8601) */
|
|
53
53
|
lastActivity: string;
|
|
54
|
+
/** Testing mode for this increment (defaults to global config) */
|
|
55
|
+
testMode?: 'TDD' | 'test-after' | 'manual';
|
|
56
|
+
/** Coverage target percentage (70-95, defaults to global config) */
|
|
57
|
+
coverageTarget?: number;
|
|
54
58
|
/** Reason for pausing (only if status = paused) */
|
|
55
59
|
pausedReason?: string;
|
|
56
60
|
/** Timestamp when paused (ISO 8601) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"increment-metadata.d.ts","sourceRoot":"","sources":["../../../../src/core/types/increment-metadata.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,oBAAY,eAAe;IACzB,gCAAgC;IAChC,MAAM,WAAW;IAEjB,0EAA0E;IAC1E,MAAM,WAAW;IAEjB,6CAA6C;IAC7C,SAAS,cAAc;IAEvB,4DAA4D;IAC5D,SAAS,cAAc;CACxB;AAED;;;GAGG;AACH,oBAAY,aAAa;IACvB,oDAAoD;IACpD,MAAM,WAAW;IAEjB,qDAAqD;IACrD,OAAO,YAAY;IAEnB,oEAAoE;IACpE,GAAG,QAAQ;IAEX,yDAAyD;IACzD,cAAc,mBAAmB;IAEjC,yCAAyC;IACzC,QAAQ,aAAa;IAErB,6DAA6D;IAC7D,UAAU,eAAe;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,6DAA6D;IAC7D,EAAE,EAAE,MAAM,CAAC;IAEX,qBAAqB;IACrB,MAAM,EAAE,eAAe,CAAC;IAExB,qBAAqB;IACrB,IAAI,EAAE,aAAa,CAAC;IAEpB,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAEhB,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAC;IAErB,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yDAAyD;IACzD,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,gCAAgC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,eAAe,EAAE,eAAe,EAAE,CAgBxE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAO5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;IAC/B,kDAAkD;;IAGlD,kDAAkD;;IAGlD,oDAAoD;;CAErD,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,GAAE,aAAqC,GAAG,iBAAiB,CAUhH;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,eAAe,GAAG,OAAO,CAGrF;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAgB5D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAUtE"}
|
|
1
|
+
{"version":3,"file":"increment-metadata.d.ts","sourceRoot":"","sources":["../../../../src/core/types/increment-metadata.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,oBAAY,eAAe;IACzB,gCAAgC;IAChC,MAAM,WAAW;IAEjB,0EAA0E;IAC1E,MAAM,WAAW;IAEjB,6CAA6C;IAC7C,SAAS,cAAc;IAEvB,4DAA4D;IAC5D,SAAS,cAAc;CACxB;AAED;;;GAGG;AACH,oBAAY,aAAa;IACvB,oDAAoD;IACpD,MAAM,WAAW;IAEjB,qDAAqD;IACrD,OAAO,YAAY;IAEnB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AM,GAAG,IAAI,CAO5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;IAC/B,kDAAkD;;IAGlD,kDAAkD;;IAGlD,oDAAoD;;CAErD,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,GAAE,aAAqC,GAAG,iBAAiB,CAUhH;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,eAAe,GAAG,OAAO,CAGrF;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAgB5D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAUtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"increment-metadata.js","sourceRoot":"","sources":["../../../../src/core/types/increment-metadata.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,MAAM,CAAN,IAAY,eAYX;AAZD,WAAY,eAAe;IACzB,gCAAgC;IAChC,oCAAiB,CAAA;IAEjB,0EAA0E;IAC1E,oCAAiB,CAAA;IAEjB,6CAA6C;IAC7C,0CAAuB,CAAA;IAEvB,4DAA4D;IAC5D,0CAAuB,CAAA;AACzB,CAAC,EAZW,eAAe,KAAf,eAAe,QAY1B;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,aAkBX;AAlBD,WAAY,aAAa;IACvB,oDAAoD;IACpD,kCAAiB,CAAA;IAEjB,qDAAqD;IACrD,oCAAmB,CAAA;IAEnB,oEAAoE;IACpE,4BAAW,CAAA;IAEX,yDAAyD;IACzD,kDAAiC,CAAA;IAEjC,yCAAyC;IACzC,sCAAqB,CAAA;IAErB,6DAA6D;IAC7D,0CAAyB,CAAA;AAC3B,CAAC,EAlBW,aAAa,KAAb,aAAa,QAkBxB;
|
|
1
|
+
{"version":3,"file":"increment-met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ents-md-generator.ts","../src/adapters/claude-md-generator.ts","../src/adapters/doc-generator.ts","../src/adapters/claude/adapter.ts","../src/adapters/codex/adapter.ts","../src/adapters/cursor/adapter.ts","../src/adapters/gemini/adapter.ts","../src/adapters/generic/adapter.ts","../src/cli/commands/abandon.ts","../src/cli/commands/check-discipline.ts","../src/cli/commands/cicd-monitor.ts","../src/cli/commands/detect-project.ts","../src/cli/commands/detect-specs.ts","../src/cli/commands/import-docs.ts","../src/cli/commands/init-multiproject.ts","../src/cli/commands/init.ts","../src/cli/commands/install.ts","../src/cli/commands/list.ts","../src/cli/commands/migrate-to-multiproject.ts","../src/cli/commands/migrate-to-profiles.ts","../src/cli/commands/pause.ts","../src/cli/commands/qa.ts","../src/cli/commands/resume.ts","../src/cli/commands/revert-wip-limit.ts","../src/cli/commands/status-line.ts","../src/cli/commands/status.ts","../src/cli/commands/switch-project.ts","../src/cli/commands/sync-spec-commits.ts","../src/cli/commands/sync-spec-content.ts","../src/cli/commands/validate-jira.ts","../src/cli/commands/validate-parent-repo.ts","../src/cli/commands/validate-plugins.ts","../src/cli/helpers/github/increment-profile-selector.ts","../src/cli/helpers/github/profile-manager.ts","../src/cli/helpers/issue-tracker/ado.ts","../src/cli/helpers/issue-tracker/github-multi-repo.ts","../src/cli/helpers/issue-tracker/github.ts","../src/cli/helpers/issue-tracker/index.ts","../src/cli/helpers/issue-tracker/jira.ts","../src/cli/helpers/issue-tracker/types.ts","../src/cli/helpers/issue-tracker/utils.ts","../src/core/comment-builder.ts","../src/core/config-manager.ts","../src/core/cost-tracker.ts","../src/core/credentials-manager.ts","../src/core/increment-status.ts","../src/core/plugin-loader.ts","../src/core/project-manager.ts","../src/core/project-structure-detector.ts","../src/core/rfc-generator-v2.ts","../src/core/spec-content-sync.ts","../src/core/spec-detector.ts","../src/core/spec-identifier-detector.ts","../src/core/spec-task-mapper.ts","../src/core/brownfield/analyzer.ts","../src/core/brownfield/importer.ts","../src/core/cicd/config-loader.ts","../src/core/cicd/index.ts","../src/core/cicd/monitor-service.ts","../src/core/cicd/notifier.ts","../src/core/cicd/parent-repo-validator.ts","../src/core/cicd/state-manager.ts","../src/core/cicd/types.ts","../src/core/cicd/workflow-monitor.ts","../src/core/i18n/language-detector.ts","../src/core/i18n/language-manager.ts","../src/core/i18n/language-registry.ts","../src/core/i18n/locale-manager.ts","../src/core/i18n/system-prompt-injector.ts","../src/core/i18n/types.ts","../src/core/increment/active-increment-manager.ts","../src/core/increment/discipline-checker.ts","../src/core/increment/limits.ts","../src/core/increment/metadata-manager.ts","../src/core/increment/metadata-validator.ts","../src/core/increment/status-commands.ts","../src/core/increment/types.ts","../src/core/living-docs/content-classifier.ts","../src/core/living-docs/content-distributor.ts","../src/core/living-docs/content-parser.ts","../src/core/living-docs/cross-linker.ts","../src/core/living-docs/index.ts","../src/core/living-docs/project-detector.ts","../src/core/living-docs/spec-distributor.ts","../src/core/living-docs/types.ts","../src/core/qa/qa-runner.ts","../src/core/qa/quality-gate-decider.ts","../src/core/qa/risk-calculator.ts","../src/core/qa/types.ts","../src/core/repo-structure/folder-detector.ts","../src/core/repo-structure/github-validator.ts","../src/core/repo-structure/prompt-consolidator.ts","../src/core/repo-structure/repo-id-generator.ts","../src/core/repo-structure/repo-structure-manager.ts","../src/core/repo-structure/setup-state-manager.ts","../src/core/repo-structure/setup-summary.ts","../src/core/specs/spec-metadata-manager.ts","../src/core/specs/spec-parser.ts","../src/core/status-line/status-line-manager.ts","../src/core/status-line/types.ts","../src/core/sync/bidirectional-engine.ts","../src/core/sync/conflict-resolver.ts","../src/core/sync/enhanced-content-builder.ts","../src/core/sync/folder-mapper.ts","../src/core/sync/profile-manager.ts","../src/core/sync/profile-selector.ts","../src/core/sync/profile-validator.ts","../src/core/sync/project-context.ts","../src/core/sync/rate-limiter.ts","../src/core/sync/retry-logic.ts","../src/core/sync/spec-increment-mapper.ts","../src/core/sync/status-cache.ts","../src/core/sync/status-mapper.ts","../src/core/sync/status-sync-engine.ts","../src/core/sync/sync-event-logger.ts","../src/core/sync/time-range-selector.ts","../src/core/sync/workflow-detector.ts","../src/core/types/config.ts","../src/core/types/increment-metadata.ts","../src/core/types/plugin.ts","../src/core/types/spec-identifier.ts","../src/core/types/spec-metadata.ts","../src/core/types/sync-profile.ts","../src/integrations/ado/ado-client.ts","../src/integrations/jira/jira-client.ts","../src/integrations/jira/jira-incremental-mapper.ts","../src/integrations/jira/jira-mapper.ts","../src/metrics/dora-calculator.ts","../src/metrics/github-client.ts","../src/metrics/report-generator.ts","../src/metrics/types.ts","../src/metrics/calculators/change-failure-rate.ts","../src/metrics/calculators/deployment-frequency.ts","../src/metrics/calculators/lead-time.ts","../src/metrics/calculators/mttr.ts","../src/metrics/utils/percentile.ts","../src/metrics/utils/tier-classifier.ts","../src/testing/test-generator.ts","../src/types/cost-tracking.ts","../src/types/model-selection.ts","../src/utils/agents-md-compiler.ts","../src/utils/auth-helpers.ts","../src/utils/auto-install.ts","../src/utils/claude-cli-detector.ts","../src/utils/cost-reporter.ts","../src/utils/env-file-generator.ts","../src/utils/env-file.ts","../src/utils/env-multi-project-parser.ts","../src/utils/esm-helpers.ts","../src/utils/execfilenothrow.ts","../src/utils/external-resource-validator.ts","../src/utils/generate-skills-index.ts","../src/utils/git-detector.ts","../src/utils/git-utils.ts","../src/utils/model-selection.ts","../src/utils/plugin-validator.ts","../src/utils/pricing-constants.ts","../src/utils/project-detection.ts","../src/utils/project-mapper.ts","../src/utils/project-validator.ts","../src/utils/spec-parser.ts","../src/utils/spec-splitter.ts","../src/utils/string-utils.ts","../src/utils/translation.ts","../src/utils/docs-preview/config-generator.ts","../src/utils/docs-preview/docusaurus-setup.ts","../src/utils/docs-preview/index.ts","../src/utils/docs-preview/package-installer.ts","../src/utils/docs-preview/server-manager.ts","../src/utils/docs-preview/sidebar-builder.ts","../src/utils/docs-preview/types.ts","../plugins/specweave/lib/hooks/git-diff-analyzer.ts","../plugins/specweave/lib/hooks/invoke-translator-skill.ts","../plugins/specweave/lib/hooks/prepare-reflection-context.ts","../plugins/specweave/lib/hooks/reflection-config-loader.ts","../plugins/specweave/lib/hooks/reflection-parser.ts","../plugins/specweave/lib/hooks/reflection-prompt-builder.ts","../plugins/specweave/lib/hooks/reflection-storage.ts","../plugins/specweave/lib/hooks/run-self-reflection.ts","../plugins/specweave/lib/hooks/sync-living-docs.ts","../plugins/specweave/lib/hooks/translate-file.ts","../plugins/specweave/lib/hooks/translate-living-docs.ts","../plugins/specweave/lib/hooks/update-tasks-md.ts","../plugins/specweave/lib/hooks/types/reflection-types.ts","../plugins/specweave-ado/lib/ado-board-resolver.d.ts","../plugins/specweave-ado/lib/ado-client-v2.ts","../plugins/specweave-ado/lib/ado-client.ts","../plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts","../plugins/specweave-ado/lib/ado-spec-commit-sync.ts","../plugins/specweave-ado/lib/ado-spec-content-sync.ts","../plugins/specweave-ado/lib/ado-spec-sync.ts","../plugins/specweave-ado/lib/ado-status-sync.ts","../plugins/specweave-ado/lib/enhanced-ado-sync.ts","../plugins/specweave-ado/lib/project-selector.d.ts","../plugins/specweave-github/lib/cli-sync-increment-changes.ts","../plugins/specweave-github/lib/enhanced-github-sync.ts","../plugins/specweave-github/lib/github-board-resolver.d.ts","../plugins/specweave-github/lib/github-client-v2.ts","../plugins/specweave-github/lib/github-client.ts","../plugins/specweave-github/lib/github-epic-sync.ts","../plugins/specweave-github/lib/github-hierarchical-sync.d.ts","../plugins/specweave-github/lib/github-issue-updater.ts","../plugins/specweave-github/lib/github-spec-commit-sync.ts","../plugins/specweave-github/lib/github-spec-content-sync.ts","../plugins/specweave-github/lib/github-spec-sync.ts","../plugins/specweave-github/lib/github-status-sync.ts","../plugins/specweave-github/lib/github-sync-bidirectional.ts","../plugins/specweave-github/lib/github-sync-increment-changes.ts","../plugins/specweave-github/lib/index.ts","../plugins/specweave-github/lib/repo-selector.d.ts","../plugins/specweave-github/lib/subtask-sync.ts","../plugins/specweave-github/lib/task-parser.ts","../plugins/specweave-github/lib/task-sync.ts","../plugins/specweave-github/lib/types.ts","../plugins/specweave-jira/lib/enhanced-jira-sync.ts","../plugins/specweave-jira/lib/jira-board-resolver.d.ts","../plugins/specweave-jira/lib/jira-epic-sync.ts","../plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts","../plugins/specweave-jira/lib/jira-spec-commit-sync.ts","../plugins/specweave-jira/lib/jira-spec-content-sync.ts","../plugins/specweave-jira/lib/jira-spec-sync.ts","../plugins/specweave-jira/lib/jira-status-sync.ts","../plugins/specweave-jira/lib/project-selector.d.ts","../plugins/specweave-jira/lib/reorganization-detector.ts","../plugins/specweave-jira/lib/setup-wizard.ts","../plugins/specweave-release/lib/dashboard-generator.ts","../plugins/specweave-release/lib/dora-tracker.ts"],"errors":true,"version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specweave",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "Spec-driven development framework for Claude Code. AI-native workflow with living documentation, intelligent agents, and multilingual support (9 languages). Enterprise-grade traceability with permanent specs and temporary increments.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pm
|
|
3
3
|
description: Product Manager AI agent for product strategy, requirements gathering, user story creation, feature prioritization, and stakeholder communication. Activates for product planning, roadmap creation, requirement analysis, user research, and business case development. Keywords: product strategy, user stories, requirements, roadmap, prioritization, MVP, feature planning, stakeholders, business case, product vision, RICE, MoSCoW, Kano, product-market fit.
|
|
4
|
-
tools: Read, Grep, Glob
|
|
4
|
+
tools: Read, Write, Grep, Glob
|
|
5
5
|
model: claude-sonnet-4-5-20250929
|
|
6
6
|
model_preference: sonnet
|
|
7
7
|
cost_profile: planning
|
|
@@ -1036,7 +1036,7 @@ measurement_plan:
|
|
|
1036
1036
|
|
|
1037
1037
|
## ✅ Post-Creation Validation (CRITICAL - v0.14.0+)
|
|
1038
1038
|
|
|
1039
|
-
**MANDATORY STEP**: After creating increment files,
|
|
1039
|
+
**MANDATORY STEP**: After creating increment files, you MUST ACTUALLY EXECUTE metadata.json validation using Read and Write tools.
|
|
1040
1040
|
|
|
1041
1041
|
### Why This Matters
|
|
1042
1042
|
|
|
@@ -1046,17 +1046,132 @@ Without metadata.json:
|
|
|
1046
1046
|
- ❌ External sync breaks (no GitHub/JIRA/ADO links)
|
|
1047
1047
|
- ❌ `/specweave:status`, `/pause`, `/resume` commands fail
|
|
1048
1048
|
|
|
1049
|
-
### Validation Workflow
|
|
1049
|
+
### Validation Workflow (EXECUTE WITH TOOLS!)
|
|
1050
1050
|
|
|
1051
|
-
**STEP:
|
|
1051
|
+
**STEP 1: Use Read Tool to Check if metadata.json Exists**
|
|
1052
1052
|
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1053
|
+
After creating spec.md, plan.md, tasks.md, you MUST use the Read tool to check for metadata.json:
|
|
1054
|
+
|
|
1055
|
+
```
|
|
1056
|
+
Use Read tool:
|
|
1057
|
+
file_path: .specweave/increments/{incrementId}/metadata.json
|
|
1058
|
+
```
|
|
1059
|
+
|
|
1060
|
+
If the Read tool returns "file not found", proceed to STEP 2.
|
|
1061
|
+
If the Read tool returns JSON content, validation passed! Report success to user.
|
|
1062
|
+
|
|
1063
|
+
**STEP 2: If Missing, Use Write Tool to Create Minimal Metadata**
|
|
1064
|
+
|
|
1065
|
+
When metadata.json is missing, you MUST use the Write tool to create it:
|
|
1066
|
+
|
|
1067
|
+
```
|
|
1068
|
+
Use Write tool:
|
|
1069
|
+
file_path: .specweave/increments/{incrementId}/metadata.json
|
|
1070
|
+
content: {
|
|
1071
|
+
"id": "{incrementId}",
|
|
1072
|
+
"status": "planned",
|
|
1073
|
+
"type": "{type}", // Extract from spec.md frontmatter
|
|
1074
|
+
"priority": "{priority}", // Extract from spec.md frontmatter
|
|
1075
|
+
"created": "{ISO-8601-timestamp}",
|
|
1076
|
+
"lastActivity": "{ISO-8601-timestamp}",
|
|
1077
|
+
"testMode": "{testMode}", // Extract from spec.md frontmatter or use "TDD"
|
|
1078
|
+
"coverageTarget": {coverageTarget} // Extract from spec.md frontmatter or use 95
|
|
1079
|
+
}
|
|
1080
|
+
```
|
|
1081
|
+
|
|
1082
|
+
**STEP 3: Report to User**
|
|
1083
|
+
|
|
1084
|
+
After creating metadata.json, output:
|
|
1085
|
+
```
|
|
1086
|
+
⚠️ Warning: metadata.json not found for {incrementId}
|
|
1087
|
+
This indicates the post-increment-planning hook may have failed.
|
|
1088
|
+
✅ Created minimal metadata.json
|
|
1089
|
+
⚠️ Note: No GitHub issue linked.
|
|
1090
|
+
💡 Run /specweave-github:create-issue {incrementId} to create one manually.
|
|
1091
|
+
```
|
|
1092
|
+
|
|
1093
|
+
### Example Execution (ACTUAL TOOL USAGE)
|
|
1094
|
+
|
|
1095
|
+
**WRONG (Don't do this)** ❌:
|
|
1096
|
+
```markdown
|
|
1097
|
+
I should validate metadata.json exists...
|
|
1098
|
+
The code would check if the file exists...
|
|
1099
|
+
If missing, it would create minimal metadata...
|
|
1100
|
+
```
|
|
1101
|
+
|
|
1102
|
+
**CORRECT (Do this)** ✅:
|
|
1103
|
+
```markdown
|
|
1104
|
+
1. Let me check if metadata.json exists using Read tool:
|
|
1105
|
+
[Actually use Read tool with file_path: .specweave/increments/0032/metadata.json]
|
|
1106
|
+
|
|
1107
|
+
2. Read tool returned "file not found"
|
|
1108
|
+
|
|
1109
|
+
3. Creating minimal metadata.json using Write tool:
|
|
1110
|
+
[Actually use Write tool with proper JSON content]
|
|
1111
|
+
|
|
1112
|
+
4. ✅ metadata.json created successfully
|
|
1113
|
+
⚠️ Note: No GitHub issue linked (hook may have failed)
|
|
1114
|
+
```
|
|
1115
|
+
|
|
1116
|
+
### Implementation Guide
|
|
1117
|
+
|
|
1118
|
+
**Add this validation as the FINAL STEP** in your increment creation workflow:
|
|
1058
1119
|
|
|
1059
|
-
|
|
1120
|
+
1. ✅ Create spec.md (via Write tool)
|
|
1121
|
+
2. ✅ Create plan.md (via Write tool)
|
|
1122
|
+
3. ✅ Create tasks.md (via Write tool or test-aware-planner agent)
|
|
1123
|
+
4. ✅ **EXECUTE VALIDATION**: Use Read tool → If missing → Use Write tool
|
|
1124
|
+
|
|
1125
|
+
**Example workflow**:
|
|
1126
|
+
|
|
1127
|
+
```markdown
|
|
1128
|
+
User: /specweave:increment "Add user authentication"
|
|
1129
|
+
|
|
1130
|
+
PM Agent workflow:
|
|
1131
|
+
1. Validate no incomplete increments ✅
|
|
1132
|
+
2. Research & gather requirements ✅
|
|
1133
|
+
3. Generate spec.md ✅ (Write tool)
|
|
1134
|
+
4. Invoke Architect for plan.md ✅ (Task tool)
|
|
1135
|
+
5. Invoke test-aware-planner for tasks.md ✅ (Task tool)
|
|
1136
|
+
6. **EXECUTE VALIDATION** ✅:
|
|
1137
|
+
a. Use Read tool to check .specweave/increments/0023/metadata.json
|
|
1138
|
+
b. If "file not found" → Use Write tool to create minimal metadata
|
|
1139
|
+
c. Report to user (warn if GitHub issue not created)
|
|
1140
|
+
7. Report completion to user ✅
|
|
1141
|
+
```
|
|
1142
|
+
|
|
1143
|
+
### Metadata.json Template
|
|
1144
|
+
|
|
1145
|
+
When creating metadata.json, extract values from spec.md frontmatter:
|
|
1146
|
+
|
|
1147
|
+
```json
|
|
1148
|
+
{
|
|
1149
|
+
"id": "0032-prevent-increment-gaps",
|
|
1150
|
+
"status": "planned",
|
|
1151
|
+
"type": "bug",
|
|
1152
|
+
"priority": "P1",
|
|
1153
|
+
"created": "2025-11-14T10:00:00Z",
|
|
1154
|
+
"lastActivity": "2025-11-14T10:00:00Z",
|
|
1155
|
+
"testMode": "TDD",
|
|
1156
|
+
"coverageTarget": 95,
|
|
1157
|
+
"epic": "FS-25-11-14"
|
|
1158
|
+
}
|
|
1159
|
+
```
|
|
1160
|
+
|
|
1161
|
+
**Extract from spec.md frontmatter**:
|
|
1162
|
+
- `type`: Look for `type: bug|feature|hotfix|change-request|refactor|experiment`
|
|
1163
|
+
- `priority`: Look for `priority: P1|P2|P3`
|
|
1164
|
+
- `testMode`: Look for `test_mode: TDD|BDD|Standard` (default: "TDD")
|
|
1165
|
+
- `coverageTarget`: Look for `coverage_target: 80|85|90|95|100` (default: 95)
|
|
1166
|
+
- `epic`: Look for `epic: FS-YY-MM-DD` (optional)
|
|
1167
|
+
|
|
1168
|
+
**DO NOT hardcode values** - always extract from spec.md when possible!
|
|
1169
|
+
|
|
1170
|
+
### Code Reference (TypeScript Pseudocode)
|
|
1171
|
+
|
|
1172
|
+
This is what you're executing with Read/Write tools:
|
|
1173
|
+
|
|
1174
|
+
```typescript
|
|
1060
1175
|
const incrementPath = `.specweave/increments/${incrementId}`;
|
|
1061
1176
|
const metadataPath = `${incrementPath}/metadata.json`;
|
|
1062
1177
|
|
|
@@ -1066,13 +1181,45 @@ if (!fs.existsSync(metadataPath)) {
|
|
|
1066
1181
|
console.warn(` This indicates the post-increment-planning hook may have failed.`);
|
|
1067
1182
|
console.warn(` Creating minimal metadata as fallback...`);
|
|
1068
1183
|
|
|
1069
|
-
//
|
|
1184
|
+
// Read global testing config (NEW - v0.18.0+)
|
|
1185
|
+
const configPath = path.join(process.cwd(), '.specweave', 'config.json');
|
|
1186
|
+
let testMode = 'TDD'; // Default if config missing
|
|
1187
|
+
let coverageTarget = 80; // Default if config missing
|
|
1188
|
+
|
|
1189
|
+
if (fs.existsSync(configPath)) {
|
|
1190
|
+
try {
|
|
1191
|
+
const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
1192
|
+
testMode = config.testing?.defaultTestMode || 'TDD';
|
|
1193
|
+
coverageTarget = config.testing?.defaultCoverageTarget || 80;
|
|
1194
|
+
} catch (error) {
|
|
1195
|
+
// Config parse error - use defaults
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
// Check spec.md frontmatter for overrides
|
|
1200
|
+
const specPath = `${incrementPath}/spec.md`;
|
|
1201
|
+
if (fs.existsSync(specPath)) {
|
|
1202
|
+
const specContent = fs.readFileSync(specPath, 'utf-8');
|
|
1203
|
+
const frontmatterMatch = specContent.match(/^---\n([\s\S]*?)\n---/);
|
|
1204
|
+
if (frontmatterMatch) {
|
|
1205
|
+
const frontmatter = frontmatterMatch[1];
|
|
1206
|
+
const testModeMatch = frontmatter.match(/test_mode:\s*(.+)/);
|
|
1207
|
+
const coverageMatch = frontmatter.match(/coverage_target:\s*(\d+)/);
|
|
1208
|
+
|
|
1209
|
+
if (testModeMatch) testMode = testModeMatch[1].trim();
|
|
1210
|
+
if (coverageMatch) coverageTarget = parseInt(coverageMatch[1]);
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
// Create minimal metadata with testing config
|
|
1070
1215
|
const metadata = {
|
|
1071
1216
|
id: incrementId,
|
|
1072
1217
|
status: "active",
|
|
1073
1218
|
type: "feature", // or derive from spec.md frontmatter
|
|
1074
1219
|
created: new Date().toISOString(),
|
|
1075
|
-
lastActivity: new Date().toISOString()
|
|
1220
|
+
lastActivity: new Date().toISOString(),
|
|
1221
|
+
testMode, // From config or frontmatter override
|
|
1222
|
+
coverageTarget // From config or frontmatter override
|
|
1076
1223
|
};
|
|
1077
1224
|
|
|
1078
1225
|
fs.writeFileSync(metadataPath, JSON.stringify(metadata, null, 2), 'utf-8');
|