specweave 0.18.1 → 0.20.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/CLAUDE.md +229 -1817
- package/README.md +68 -0
- package/bin/specweave.js +62 -6
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +1 -1
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.js +3 -0
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.js.map +1 -1
- package/dist/plugins/specweave/lib/hooks/update-ac-status.d.ts +21 -0
- package/dist/plugins/specweave/lib/hooks/update-ac-status.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/update-ac-status.js +162 -0
- package/dist/plugins/specweave/lib/hooks/update-ac-status.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-spec-content-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-ado/lib/ado-spec-content-sync.js +65 -6
- package/dist/plugins/specweave-ado/lib/ado-spec-content-sync.js.map +1 -1
- package/dist/plugins/specweave-github/lib/completion-calculator.d.ts +112 -0
- package/dist/plugins/specweave-github/lib/completion-calculator.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/completion-calculator.js +301 -0
- package/dist/plugins/specweave-github/lib/completion-calculator.js.map +1 -0
- package/dist/plugins/specweave-github/lib/duplicate-detector.d.ts +3 -3
- package/dist/plugins/specweave-github/lib/duplicate-detector.js +3 -3
- package/dist/plugins/specweave-github/lib/epic-content-builder.d.ts +7 -0
- package/dist/plugins/specweave-github/lib/epic-content-builder.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/epic-content-builder.js +42 -0
- package/dist/plugins/specweave-github/lib/epic-content-builder.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts +14 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-client-v2.js +51 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-epic-sync.js +1 -1
- package/dist/plugins/specweave-github/lib/github-epic-sync.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-feature-sync.d.ts +87 -0
- package/dist/plugins/specweave-github/lib/github-feature-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-feature-sync.js +412 -0
- package/dist/plugins/specweave-github/lib/github-feature-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.js +64 -13
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.js.map +1 -1
- package/dist/plugins/specweave-github/lib/progress-comment-builder.d.ts +78 -0
- package/dist/plugins/specweave-github/lib/progress-comment-builder.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/progress-comment-builder.js +237 -0
- package/dist/plugins/specweave-github/lib/progress-comment-builder.js.map +1 -0
- package/dist/plugins/specweave-github/lib/user-story-content-builder.d.ts +97 -0
- package/dist/plugins/specweave-github/lib/user-story-content-builder.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/user-story-content-builder.js +301 -0
- package/dist/plugins/specweave-github/lib/user-story-content-builder.js.map +1 -0
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.d.ts +83 -0
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.js +386 -0
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.d.ts +8 -6
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.js +78 -117
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.js.map +1 -1
- package/dist/plugins/specweave-kafka/lib/cli/kcat-wrapper.d.ts +57 -0
- package/dist/plugins/specweave-kafka/lib/cli/kcat-wrapper.d.ts.map +1 -0
- package/dist/plugins/specweave-kafka/lib/cli/kcat-wrapper.js +248 -0
- package/dist/plugins/specweave-kafka/lib/cli/kcat-wrapper.js.map +1 -0
- package/dist/plugins/specweave-kafka/lib/cli/types.d.ts +82 -0
- package/dist/plugins/specweave-kafka/lib/cli/types.d.ts.map +1 -0
- package/dist/plugins/specweave-kafka/lib/cli/types.js +13 -0
- package/dist/plugins/specweave-kafka/lib/cli/types.js.map +1 -0
- package/dist/plugins/specweave-kafka/lib/mcp/detector.d.ts +49 -0
- package/dist/plugins/specweave-kafka/lib/mcp/detector.d.ts.map +1 -0
- package/dist/plugins/specweave-kafka/lib/mcp/detector.js +316 -0
- package/dist/plugins/specweave-kafka/lib/mcp/detector.js.map +1 -0
- package/dist/plugins/specweave-kafka/lib/mcp/types.d.ts +70 -0
- package/dist/plugins/specweave-kafka/lib/mcp/types.d.ts.map +1 -0
- package/dist/plugins/specweave-kafka/lib/mcp/types.js +23 -0
- package/dist/plugins/specweave-kafka/lib/mcp/types.js.map +1 -0
- package/dist/plugins/specweave-kafka/lib/utils/partitioning.d.ts +85 -0
- package/dist/plugins/specweave-kafka/lib/utils/partitioning.d.ts.map +1 -0
- package/dist/plugins/specweave-kafka/lib/utils/partitioning.js +281 -0
- package/dist/plugins/specweave-kafka/lib/utils/partitioning.js.map +1 -0
- package/dist/plugins/specweave-kafka/lib/utils/sizing.d.ts +75 -0
- package/dist/plugins/specweave-kafka/lib/utils/sizing.d.ts.map +1 -0
- package/dist/plugins/specweave-kafka/lib/utils/sizing.js +238 -0
- package/dist/plugins/specweave-kafka/lib/utils/sizing.js.map +1 -0
- package/dist/src/cli/commands/import-docs.js +4 -4
- package/dist/src/cli/commands/import-docs.js.map +1 -1
- package/dist/src/cli/commands/init-multiproject.d.ts.map +1 -1
- package/dist/src/cli/commands/init-multiproject.js +17 -18
- package/dist/src/cli/commands/init-multiproject.js.map +1 -1
- package/dist/src/cli/commands/migrate-to-multiproject.d.ts.map +1 -1
- package/dist/src/cli/commands/migrate-to-multiproject.js +8 -4
- package/dist/src/cli/commands/migrate-to-multiproject.js.map +1 -1
- package/dist/src/cli/commands/switch-project.d.ts.map +1 -1
- package/dist/src/cli/commands/switch-project.js +9 -26
- package/dist/src/cli/commands/switch-project.js.map +1 -1
- package/dist/src/cli/commands/sync-spec-content.js +3 -0
- package/dist/src/cli/commands/sync-spec-content.js.map +1 -1
- package/dist/src/core/deduplication/command-deduplicator.d.ts +166 -0
- package/dist/src/core/deduplication/command-deduplicator.d.ts.map +1 -0
- package/dist/src/core/deduplication/command-deduplicator.js +254 -0
- package/dist/src/core/deduplication/command-deduplicator.js.map +1 -0
- package/dist/src/core/increment/active-increment-manager.d.ts +42 -15
- package/dist/src/core/increment/active-increment-manager.d.ts.map +1 -1
- package/dist/src/core/increment/active-increment-manager.js +113 -46
- package/dist/src/core/increment/active-increment-manager.js.map +1 -1
- package/dist/src/core/increment/conflict-resolver.d.ts +40 -0
- package/dist/src/core/increment/conflict-resolver.d.ts.map +1 -0
- package/dist/src/core/increment/conflict-resolver.js +219 -0
- package/dist/src/core/increment/conflict-resolver.js.map +1 -0
- package/dist/src/core/increment/discipline-checker.d.ts.map +1 -1
- package/dist/src/core/increment/discipline-checker.js +7 -1
- package/dist/src/core/increment/discipline-checker.js.map +1 -1
- package/dist/src/core/increment/duplicate-detector.d.ts +52 -0
- package/dist/src/core/increment/duplicate-detector.d.ts.map +1 -0
- package/dist/src/core/increment/duplicate-detector.js +276 -0
- package/dist/src/core/increment/duplicate-detector.js.map +1 -0
- package/dist/src/core/increment/increment-archiver.d.ts +90 -0
- package/dist/src/core/increment/increment-archiver.d.ts.map +1 -0
- package/dist/src/core/increment/increment-archiver.js +368 -0
- package/dist/src/core/increment/increment-archiver.js.map +1 -0
- package/dist/src/core/increment/increment-reopener.d.ts +165 -0
- package/dist/src/core/increment/increment-reopener.d.ts.map +1 -0
- package/dist/src/core/increment/increment-reopener.js +390 -0
- package/dist/src/core/increment/increment-reopener.js.map +1 -0
- package/dist/src/core/increment/metadata-manager.d.ts +26 -1
- package/dist/src/core/increment/metadata-manager.d.ts.map +1 -1
- package/dist/src/core/increment/metadata-manager.js +143 -5
- package/dist/src/core/increment/metadata-manager.js.map +1 -1
- package/dist/src/core/increment/recent-work-scanner.d.ts +121 -0
- package/dist/src/core/increment/recent-work-scanner.d.ts.map +1 -0
- package/dist/src/core/increment/recent-work-scanner.js +303 -0
- package/dist/src/core/increment/recent-work-scanner.js.map +1 -0
- package/dist/src/core/increment/types.d.ts +1 -0
- package/dist/src/core/increment/types.d.ts.map +1 -1
- package/dist/src/core/increment-utils.d.ts +112 -0
- package/dist/src/core/increment-utils.d.ts.map +1 -0
- package/dist/src/core/increment-utils.js +210 -0
- package/dist/src/core/increment-utils.js.map +1 -0
- package/dist/src/core/living-docs/ac-project-specific-generator.d.ts +65 -0
- package/dist/src/core/living-docs/ac-project-specific-generator.d.ts.map +1 -0
- package/dist/src/core/living-docs/ac-project-specific-generator.js +175 -0
- package/dist/src/core/living-docs/ac-project-specific-generator.js.map +1 -0
- package/dist/src/core/living-docs/feature-archiver.d.ts +130 -0
- package/dist/src/core/living-docs/feature-archiver.d.ts.map +1 -0
- package/dist/src/core/living-docs/feature-archiver.js +549 -0
- package/dist/src/core/living-docs/feature-archiver.js.map +1 -0
- package/dist/src/core/living-docs/feature-id-manager.d.ts +81 -0
- package/dist/src/core/living-docs/feature-id-manager.d.ts.map +1 -0
- package/dist/src/core/living-docs/feature-id-manager.js +339 -0
- package/dist/src/core/living-docs/feature-id-manager.js.map +1 -0
- package/dist/src/core/living-docs/hierarchy-mapper.d.ts +144 -83
- package/dist/src/core/living-docs/hierarchy-mapper.d.ts.map +1 -1
- package/dist/src/core/living-docs/hierarchy-mapper.js +488 -270
- package/dist/src/core/living-docs/hierarchy-mapper.js.map +1 -1
- package/dist/src/core/living-docs/index.d.ts +6 -0
- package/dist/src/core/living-docs/index.d.ts.map +1 -1
- package/dist/src/core/living-docs/index.js +6 -0
- package/dist/src/core/living-docs/index.js.map +1 -1
- package/dist/src/core/living-docs/project-detector.d.ts +6 -0
- package/dist/src/core/living-docs/project-detector.d.ts.map +1 -1
- package/dist/src/core/living-docs/project-detector.js +35 -1
- package/dist/src/core/living-docs/project-detector.js.map +1 -1
- package/dist/src/core/living-docs/spec-distributor.d.ts +100 -26
- package/dist/src/core/living-docs/spec-distributor.d.ts.map +1 -1
- package/dist/src/core/living-docs/spec-distributor.js +1275 -258
- package/dist/src/core/living-docs/spec-distributor.js.map +1 -1
- package/dist/src/core/living-docs/task-project-specific-generator.d.ts +109 -0
- package/dist/src/core/living-docs/task-project-specific-generator.d.ts.map +1 -0
- package/dist/src/core/living-docs/task-project-specific-generator.js +221 -0
- package/dist/src/core/living-docs/task-project-specific-generator.js.map +1 -0
- package/dist/src/core/living-docs/types.d.ts +143 -0
- package/dist/src/core/living-docs/types.d.ts.map +1 -1
- package/dist/src/core/project-manager.d.ts +2 -17
- package/dist/src/core/project-manager.d.ts.map +1 -1
- package/dist/src/core/project-manager.js +68 -48
- package/dist/src/core/project-manager.js.map +1 -1
- package/dist/src/core/spec-content-sync.d.ts +1 -1
- package/dist/src/core/spec-content-sync.d.ts.map +1 -1
- package/dist/src/core/sync/enhanced-content-builder.d.ts.map +1 -1
- package/dist/src/core/sync/enhanced-content-builder.js +2 -1
- package/dist/src/core/sync/enhanced-content-builder.js.map +1 -1
- package/dist/src/core/sync/performance-optimizer.d.ts +153 -0
- package/dist/src/core/sync/performance-optimizer.d.ts.map +1 -0
- package/dist/src/core/sync/performance-optimizer.js +220 -0
- package/dist/src/core/sync/performance-optimizer.js.map +1 -0
- package/dist/src/core/sync/retry-handler.d.ts +98 -0
- package/dist/src/core/sync/retry-handler.d.ts.map +1 -0
- package/dist/src/core/sync/retry-handler.js +196 -0
- package/dist/src/core/sync/retry-handler.js.map +1 -0
- package/dist/src/core/types/config.d.ts +94 -0
- package/dist/src/core/types/config.d.ts.map +1 -1
- package/dist/src/core/types/config.js +16 -0
- package/dist/src/core/types/config.js.map +1 -1
- package/dist/src/core/types/increment-metadata.d.ts +6 -0
- package/dist/src/core/types/increment-metadata.d.ts.map +1 -1
- package/dist/src/core/types/increment-metadata.js +10 -1
- package/dist/src/core/types/increment-metadata.js.map +1 -1
- package/dist/src/integrations/jira/jira-incremental-mapper.d.ts.map +1 -1
- package/dist/src/integrations/jira/jira-incremental-mapper.js +4 -8
- package/dist/src/integrations/jira/jira-incremental-mapper.js.map +1 -1
- package/dist/src/integrations/jira/jira-mapper.d.ts.map +1 -1
- package/dist/src/integrations/jira/jira-mapper.js +4 -8
- package/dist/src/integrations/jira/jira-mapper.js.map +1 -1
- package/package.json +1 -1
- package/plugins/specweave/COMMANDS.md +13 -4
- package/plugins/specweave/commands/specweave-abandon.md +22 -20
- package/plugins/specweave/commands/specweave-archive-features.md +121 -0
- package/plugins/specweave/commands/specweave-archive-increments.md +82 -0
- package/plugins/specweave/commands/specweave-archive.md +363 -0
- package/plugins/specweave/commands/specweave-backlog.md +211 -0
- package/plugins/specweave/commands/specweave-fix-duplicates.md +517 -0
- package/plugins/specweave/commands/specweave-increment.md +4 -3
- package/plugins/specweave/commands/specweave-progress.md +176 -27
- package/plugins/specweave/commands/specweave-reopen.md +391 -0
- package/plugins/specweave/commands/specweave-restore-feature.md +90 -0
- package/plugins/specweave/commands/specweave-restore.md +309 -0
- package/plugins/specweave/commands/specweave-resume.md +51 -23
- package/plugins/specweave/commands/specweave-status.md +41 -7
- package/plugins/specweave/commands/specweave-sync-specs.md +425 -0
- package/plugins/specweave/hooks/hooks.json +4 -0
- package/plugins/specweave/hooks/lib/sync-spec-content.sh +2 -2
- package/plugins/specweave/hooks/post-task-completion.sh +39 -0
- package/plugins/specweave/hooks/pre-command-deduplication.sh +83 -0
- package/plugins/specweave/hooks/user-prompt-submit.sh +1 -1
- package/plugins/specweave/lib/hooks/sync-living-docs.js +2 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.ts +4 -0
- package/plugins/specweave/lib/hooks/update-ac-status.js +102 -0
- package/plugins/specweave/lib/hooks/update-ac-status.ts +192 -0
- package/plugins/specweave/skills/archive-increments/SKILL.md +198 -0
- package/plugins/specweave/skills/increment-planner/scripts/feature-utils.js +14 -0
- package/plugins/specweave/skills/smart-reopen-detector/SKILL.md +244 -0
- package/plugins/specweave-ado/lib/ado-spec-content-sync.js +49 -5
- package/plugins/specweave-ado/lib/ado-spec-content-sync.ts +72 -6
- package/plugins/specweave-confluent/.claude-plugin/plugin.json +23 -0
- package/plugins/specweave-confluent/README.md +375 -0
- package/plugins/specweave-confluent/agents/confluent-architect/AGENT.md +306 -0
- package/plugins/specweave-confluent/skills/confluent-kafka-connect/SKILL.md +453 -0
- package/plugins/specweave-confluent/skills/confluent-ksqldb/SKILL.md +470 -0
- package/plugins/specweave-confluent/skills/confluent-schema-registry/SKILL.md +316 -0
- package/plugins/specweave-github/agents/github-task-splitter/AGENT.md +2 -2
- package/plugins/specweave-github/agents/user-story-updater/AGENT.md +148 -0
- package/plugins/specweave-github/commands/specweave-github-cleanup-duplicates.md +1 -1
- package/plugins/specweave-github/commands/specweave-github-update-user-story.md +156 -0
- package/plugins/specweave-github/hooks/post-task-completion.sh +10 -9
- package/plugins/specweave-github/lib/completion-calculator.js +262 -0
- package/plugins/specweave-github/lib/completion-calculator.ts +434 -0
- package/plugins/specweave-github/lib/duplicate-detector.js +3 -3
- package/plugins/specweave-github/lib/duplicate-detector.ts +4 -4
- package/plugins/specweave-github/lib/epic-content-builder.js +38 -0
- package/plugins/specweave-github/lib/epic-content-builder.ts +59 -0
- package/plugins/specweave-github/lib/github-client-v2.js +49 -0
- package/plugins/specweave-github/lib/github-client-v2.ts +59 -0
- package/plugins/specweave-github/lib/github-epic-sync.ts +1 -1
- package/plugins/specweave-github/lib/github-feature-sync.js +381 -0
- package/plugins/specweave-github/lib/github-feature-sync.ts +568 -0
- package/plugins/specweave-github/lib/github-spec-content-sync.js +40 -10
- package/plugins/specweave-github/lib/github-spec-content-sync.ts +82 -14
- package/plugins/specweave-github/lib/progress-comment-builder.js +229 -0
- package/plugins/specweave-github/lib/progress-comment-builder.ts +324 -0
- package/plugins/specweave-github/lib/user-story-content-builder.js +299 -0
- package/plugins/specweave-github/lib/user-story-content-builder.ts +413 -0
- package/plugins/specweave-github/lib/user-story-issue-builder.js +344 -0
- package/plugins/specweave-github/lib/user-story-issue-builder.ts +543 -0
- package/plugins/specweave-github/skills/github-issue-standard/SKILL.md +189 -0
- package/plugins/specweave-jira/lib/enhanced-jira-sync.js +134 -0
- package/plugins/specweave-jira/lib/{enhanced-jira-sync.ts.disabled → enhanced-jira-sync.ts} +26 -52
- package/plugins/specweave-kafka/.claude-plugin/plugin.json +26 -0
- package/plugins/specweave-kafka/IMPLEMENTATION-COMPLETE.md +483 -0
- package/plugins/specweave-kafka/README.md +242 -0
- package/plugins/specweave-kafka/agents/kafka-architect/AGENT.md +235 -0
- package/plugins/specweave-kafka/agents/kafka-devops/AGENT.md +209 -0
- package/plugins/specweave-kafka/agents/kafka-observability/AGENT.md +266 -0
- package/plugins/specweave-kafka/commands/deploy.md +99 -0
- package/plugins/specweave-kafka/commands/dev-env.md +176 -0
- package/plugins/specweave-kafka/commands/mcp-configure.md +101 -0
- package/plugins/specweave-kafka/commands/monitor-setup.md +96 -0
- package/plugins/specweave-kafka/docker/kafka-local/docker-compose.yml +187 -0
- package/plugins/specweave-kafka/docker/redpanda/docker-compose.yml +199 -0
- package/plugins/specweave-kafka/docker/templates/consumer-nodejs.js +225 -0
- package/plugins/specweave-kafka/docker/templates/consumer-python.py +220 -0
- package/plugins/specweave-kafka/docker/templates/producer-nodejs.js +168 -0
- package/plugins/specweave-kafka/docker/templates/producer-python.py +167 -0
- package/plugins/specweave-kafka/lib/adapters/apache-kafka-adapter.js +438 -0
- package/plugins/specweave-kafka/lib/adapters/apache-kafka-adapter.ts +541 -0
- package/plugins/specweave-kafka/lib/adapters/platform-adapter.js +47 -0
- package/plugins/specweave-kafka/lib/adapters/platform-adapter.ts +343 -0
- package/plugins/specweave-kafka/lib/cli/kcat-wrapper.js +258 -0
- package/plugins/specweave-kafka/lib/cli/kcat-wrapper.ts +298 -0
- package/plugins/specweave-kafka/lib/cli/types.js +10 -0
- package/plugins/specweave-kafka/lib/cli/types.ts +92 -0
- package/plugins/specweave-kafka/lib/connectors/connector-catalog.js +305 -0
- package/plugins/specweave-kafka/lib/connectors/connector-catalog.ts +528 -0
- package/plugins/specweave-kafka/lib/documentation/diagram-generator.js +114 -0
- package/plugins/specweave-kafka/lib/documentation/diagram-generator.ts +195 -0
- package/plugins/specweave-kafka/lib/documentation/exporter.js +210 -0
- package/plugins/specweave-kafka/lib/documentation/exporter.ts +338 -0
- package/plugins/specweave-kafka/lib/documentation/schema-catalog-generator.js +60 -0
- package/plugins/specweave-kafka/lib/documentation/schema-catalog-generator.ts +130 -0
- package/plugins/specweave-kafka/lib/documentation/topology-generator.js +143 -0
- package/plugins/specweave-kafka/lib/documentation/topology-generator.ts +290 -0
- package/plugins/specweave-kafka/lib/mcp/detector.js +298 -0
- package/plugins/specweave-kafka/lib/mcp/detector.ts +352 -0
- package/plugins/specweave-kafka/lib/mcp/types.js +21 -0
- package/plugins/specweave-kafka/lib/mcp/types.ts +77 -0
- package/plugins/specweave-kafka/lib/multi-cluster/cluster-config-manager.js +193 -0
- package/plugins/specweave-kafka/lib/multi-cluster/cluster-config-manager.ts +362 -0
- package/plugins/specweave-kafka/lib/multi-cluster/cluster-switcher.js +188 -0
- package/plugins/specweave-kafka/lib/multi-cluster/cluster-switcher.ts +359 -0
- package/plugins/specweave-kafka/lib/multi-cluster/health-aggregator.js +195 -0
- package/plugins/specweave-kafka/lib/multi-cluster/health-aggregator.ts +380 -0
- package/plugins/specweave-kafka/lib/observability/opentelemetry-kafka.js +209 -0
- package/plugins/specweave-kafka/lib/observability/opentelemetry-kafka.ts +358 -0
- package/plugins/specweave-kafka/lib/patterns/advanced-ksqldb-patterns.js +354 -0
- package/plugins/specweave-kafka/lib/patterns/advanced-ksqldb-patterns.ts +563 -0
- package/plugins/specweave-kafka/lib/patterns/circuit-breaker-resilience.js +259 -0
- package/plugins/specweave-kafka/lib/patterns/circuit-breaker-resilience.ts +516 -0
- package/plugins/specweave-kafka/lib/patterns/dead-letter-queue.js +233 -0
- package/plugins/specweave-kafka/lib/patterns/dead-letter-queue.ts +423 -0
- package/plugins/specweave-kafka/lib/patterns/exactly-once-semantics.js +266 -0
- package/plugins/specweave-kafka/lib/patterns/exactly-once-semantics.ts +445 -0
- package/plugins/specweave-kafka/lib/patterns/flink-kafka-integration.js +312 -0
- package/plugins/specweave-kafka/lib/patterns/flink-kafka-integration.ts +561 -0
- package/plugins/specweave-kafka/lib/patterns/multi-dc-replication.js +289 -0
- package/plugins/specweave-kafka/lib/patterns/multi-dc-replication.ts +607 -0
- package/plugins/specweave-kafka/lib/patterns/rate-limiting-backpressure.js +264 -0
- package/plugins/specweave-kafka/lib/patterns/rate-limiting-backpressure.ts +498 -0
- package/plugins/specweave-kafka/lib/patterns/stream-processing-optimization.js +263 -0
- package/plugins/specweave-kafka/lib/patterns/stream-processing-optimization.ts +549 -0
- package/plugins/specweave-kafka/lib/patterns/tiered-storage-compaction.js +205 -0
- package/plugins/specweave-kafka/lib/patterns/tiered-storage-compaction.ts +399 -0
- package/plugins/specweave-kafka/lib/performance/performance-optimizer.js +249 -0
- package/plugins/specweave-kafka/lib/performance/performance-optimizer.ts +427 -0
- package/plugins/specweave-kafka/lib/security/kafka-security.js +252 -0
- package/plugins/specweave-kafka/lib/security/kafka-security.ts +494 -0
- package/plugins/specweave-kafka/lib/utils/capacity-planner.js +203 -0
- package/plugins/specweave-kafka/lib/utils/capacity-planner.ts +469 -0
- package/plugins/specweave-kafka/lib/utils/config-validator.js +419 -0
- package/plugins/specweave-kafka/lib/utils/config-validator.ts +564 -0
- package/plugins/specweave-kafka/lib/utils/partitioning.js +329 -0
- package/plugins/specweave-kafka/lib/utils/partitioning.ts +473 -0
- package/plugins/specweave-kafka/lib/utils/sizing.js +221 -0
- package/plugins/specweave-kafka/lib/utils/sizing.ts +374 -0
- package/plugins/specweave-kafka/monitoring/grafana/dashboards/kafka-broker-metrics.json +628 -0
- package/plugins/specweave-kafka/monitoring/grafana/dashboards/kafka-cluster-overview.json +564 -0
- package/plugins/specweave-kafka/monitoring/grafana/dashboards/kafka-consumer-lag.json +509 -0
- package/plugins/specweave-kafka/monitoring/grafana/dashboards/kafka-jvm-metrics.json +674 -0
- package/plugins/specweave-kafka/monitoring/grafana/dashboards/kafka-topic-metrics.json +578 -0
- package/plugins/specweave-kafka/monitoring/grafana/provisioning/dashboards/kafka.yml +17 -0
- package/plugins/specweave-kafka/monitoring/grafana/provisioning/datasources/prometheus.yml +17 -0
- package/plugins/specweave-kafka/monitoring/prometheus/kafka-alerts.yml +415 -0
- package/plugins/specweave-kafka/monitoring/prometheus/kafka-jmx-exporter.yml +256 -0
- package/plugins/specweave-kafka/package.json +41 -0
- package/plugins/specweave-kafka/skills/kafka-architecture/SKILL.md +647 -0
- package/plugins/specweave-kafka/skills/kafka-cli-tools/SKILL.md +433 -0
- package/plugins/specweave-kafka/skills/kafka-iac-deployment/SKILL.md +449 -0
- package/plugins/specweave-kafka/skills/kafka-kubernetes/SKILL.md +667 -0
- package/plugins/specweave-kafka/skills/kafka-mcp-integration/SKILL.md +273 -0
- package/plugins/specweave-kafka/skills/kafka-observability/SKILL.md +576 -0
- package/plugins/specweave-kafka/templates/config/broker-production.properties +254 -0
- package/plugins/specweave-kafka/templates/config/consumer-low-latency.properties +112 -0
- package/plugins/specweave-kafka/templates/config/producer-high-throughput.properties +120 -0
- package/plugins/specweave-kafka/templates/migration/mirrormaker2-config.properties +234 -0
- package/plugins/specweave-kafka/templates/monitoring/grafana/multi-cluster-dashboard.json +686 -0
- package/plugins/specweave-kafka/terraform/apache-kafka/main.tf +347 -0
- package/plugins/specweave-kafka/terraform/apache-kafka/outputs.tf +107 -0
- package/plugins/specweave-kafka/terraform/apache-kafka/templates/kafka-broker-init.sh.tpl +216 -0
- package/plugins/specweave-kafka/terraform/apache-kafka/variables.tf +156 -0
- package/plugins/specweave-kafka/terraform/aws-msk/main.tf +362 -0
- package/plugins/specweave-kafka/terraform/aws-msk/outputs.tf +93 -0
- package/plugins/specweave-kafka/terraform/aws-msk/templates/server.properties.tpl +32 -0
- package/plugins/specweave-kafka/terraform/aws-msk/variables.tf +235 -0
- package/plugins/specweave-kafka/terraform/azure-event-hubs/main.tf +281 -0
- package/plugins/specweave-kafka/terraform/azure-event-hubs/outputs.tf +118 -0
- package/plugins/specweave-kafka/terraform/azure-event-hubs/variables.tf +148 -0
- package/plugins/specweave-kafka/tsconfig.json +21 -0
- package/plugins/specweave-kafka-streams/.claude-plugin/plugin.json +23 -0
- package/plugins/specweave-kafka-streams/README.md +310 -0
- package/plugins/specweave-kafka-streams/skills/kafka-streams-topology/SKILL.md +539 -0
- package/plugins/specweave-n8n/.claude-plugin/plugin.json +22 -0
- package/plugins/specweave-n8n/README.md +354 -0
- package/plugins/specweave-n8n/skills/n8n-kafka-workflows/SKILL.md +504 -0
- package/plugins/specweave-release/commands/specweave-release-platform.md +1 -1
- package/plugins/specweave-release/hooks/post-task-completion.sh +2 -2
- package/src/templates/AGENTS.md.template +601 -7
- package/src/templates/CLAUDE.md.template +188 -88
- package/plugins/specweave-ado/commands/specweave-ado-sync-spec.md +0 -255
- package/plugins/specweave-github/commands/specweave-github-sync-epic.md +0 -248
- package/plugins/specweave-github/commands/specweave-github-sync-from.md +0 -147
- package/plugins/specweave-github/commands/specweave-github-sync-spec.md +0 -208
- package/plugins/specweave-github/commands/specweave-github-sync-tasks.md +0 -530
- package/plugins/specweave-jira/commands/specweave-jira-sync-epic.md +0 -267
- package/plugins/specweave-jira/commands/specweave-jira-sync-spec.md +0 -240
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Enhanced JIRA Spec Content Sync
|
|
3
3
|
*
|
|
4
|
-
* Uses EnhancedContentBuilder for rich epic descriptions.
|
|
5
|
-
*
|
|
4
|
+
* Uses EnhancedContentBuilder and SpecIncrementMapper for rich epic descriptions.
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This version focuses on enhanced content building.
|
|
7
|
+
* Actual JIRA API integration requires jira-spec-sync.ts
|
|
6
8
|
*/
|
|
7
|
-
import { JiraClient } from '../../../src/integrations/jira/jira-client.js';
|
|
8
9
|
import { EnhancedContentBuilder } from '../../../src/core/sync/enhanced-content-builder.js';
|
|
9
10
|
import { SpecIncrementMapper } from '../../../src/core/sync/spec-increment-mapper.js';
|
|
10
11
|
import { parseSpecContent } from '../../../src/core/spec-content-sync.js';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import fs from 'fs/promises';
|
|
12
|
+
import * as path from 'path';
|
|
13
|
+
import * as fs from 'fs/promises';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Enhanced sync with rich content including task mappings
|
|
16
16
|
*/
|
|
17
|
-
export async function
|
|
18
|
-
const { specPath,
|
|
17
|
+
export async function syncSpecToJiraWithEnhancedContent(options) {
|
|
18
|
+
const { specPath, domain, project, dryRun = false, verbose = false } = options;
|
|
19
19
|
try {
|
|
20
20
|
// 1. Parse spec content
|
|
21
21
|
const baseSpec = await parseSpecContent(specPath);
|
|
@@ -29,130 +29,63 @@ export async function syncSpecWithEnhancedContent(options) {
|
|
|
29
29
|
if (verbose) {
|
|
30
30
|
console.log(`📄 Parsed spec: ${baseSpec.identifier.compact}`);
|
|
31
31
|
}
|
|
32
|
-
// 2. Build task
|
|
32
|
+
// 2. Build enhanced spec with task mappings
|
|
33
33
|
const specId = baseSpec.identifier.full || baseSpec.identifier.compact;
|
|
34
34
|
const rootDir = await findSpecWeaveRoot(specPath);
|
|
35
35
|
const mapper = new SpecIncrementMapper(rootDir);
|
|
36
36
|
const mapping = await mapper.mapSpecToIncrements(specId);
|
|
37
37
|
if (verbose) {
|
|
38
38
|
console.log(`🔗 Found ${mapping.increments.length} related increments`);
|
|
39
|
-
console.log(`📋 Mapped ${Object.keys(mapping.userStoryMappings).length} user stories to tasks`);
|
|
40
39
|
}
|
|
41
|
-
// 3. Build
|
|
42
|
-
const taskMapping =
|
|
43
|
-
|
|
44
|
-
tasks: mapping.increments[0]?.tasks.map(t => ({
|
|
45
|
-
id: t.id,
|
|
46
|
-
title: t.title,
|
|
47
|
-
userStories: t.userStories,
|
|
48
|
-
jiraIssue: t.jiraIssue,
|
|
49
|
-
completed: t.status === 'completed',
|
|
50
|
-
status: t.status
|
|
51
|
-
})) || [],
|
|
52
|
-
tasksUrl: `https://github.com/owner/repo/blob/develop/.specweave/increments/${mapping.increments[0]?.id}/tasks.md`
|
|
53
|
-
};
|
|
54
|
-
// 4. Build enhanced spec
|
|
40
|
+
// 3. Build enhanced spec content
|
|
41
|
+
const taskMapping = buildTaskMapping(mapping.increments);
|
|
42
|
+
const architectureDocs = await findArchitectureDocs(rootDir, specId);
|
|
55
43
|
const enhancedSpec = {
|
|
56
44
|
...baseSpec,
|
|
57
45
|
summary: baseSpec.description,
|
|
58
46
|
taskMapping,
|
|
59
|
-
architectureDocs
|
|
60
|
-
sourceLinks: {
|
|
61
|
-
spec: specPath,
|
|
62
|
-
plan: path.join(path.dirname(specPath), 'plan.md'),
|
|
63
|
-
tasks: path.join(path.dirname(specPath), 'tasks.md')
|
|
64
|
-
}
|
|
47
|
+
architectureDocs
|
|
65
48
|
};
|
|
66
|
-
//
|
|
49
|
+
// 4. Build external description
|
|
67
50
|
const builder = new EnhancedContentBuilder();
|
|
68
|
-
const
|
|
69
|
-
// Summary
|
|
70
|
-
sections.push(builder.buildSummarySection(enhancedSpec));
|
|
71
|
-
// User stories
|
|
72
|
-
if (enhancedSpec.userStories && enhancedSpec.userStories.length > 0) {
|
|
73
|
-
sections.push(builder.buildUserStoriesSection(enhancedSpec.userStories));
|
|
74
|
-
}
|
|
75
|
-
// Tasks with Jira checkboxes
|
|
76
|
-
if (enhancedSpec.taskMapping) {
|
|
77
|
-
sections.push(builder.buildTasksSection(enhancedSpec.taskMapping, {
|
|
78
|
-
showCheckboxes: true,
|
|
79
|
-
showProgressBar: true,
|
|
80
|
-
showCompletionStatus: false, // Jira doesn't need emoji
|
|
81
|
-
provider: 'jira'
|
|
82
|
-
}));
|
|
83
|
-
}
|
|
84
|
-
// Source links
|
|
85
|
-
if (enhancedSpec.sourceLinks) {
|
|
86
|
-
sections.push(builder.buildSourceLinksSection(enhancedSpec.sourceLinks));
|
|
87
|
-
}
|
|
88
|
-
const description = sections.filter(s => s.length > 0).join('\n\n---\n\n');
|
|
51
|
+
const description = builder.buildExternalDescription(enhancedSpec);
|
|
89
52
|
if (verbose) {
|
|
90
|
-
console.log(`📝 Generated
|
|
91
|
-
}
|
|
92
|
-
// 6. Detect labels
|
|
93
|
-
const labelDetector = new LabelDetector();
|
|
94
|
-
const detection = labelDetector.detectType(await fs.readFile(specPath, 'utf-8'), mapping.increments[0]?.id);
|
|
95
|
-
const jiraLabels = labelDetector.getJiraLabels(detection.type);
|
|
96
|
-
if (verbose) {
|
|
97
|
-
console.log(`🏷️ Detected type: ${detection.type} (${detection.confidence}% confidence)`);
|
|
98
|
-
console.log(` Labels: ${jiraLabels.join(', ')}`);
|
|
53
|
+
console.log(`📝 Generated description: ${description.length} characters`);
|
|
99
54
|
}
|
|
100
55
|
if (dryRun) {
|
|
101
|
-
console.log('🔍 DRY RUN - Would create/update
|
|
102
|
-
console.log(`
|
|
56
|
+
console.log('🔍 DRY RUN - Would create/update epic with:');
|
|
57
|
+
console.log(` Summary: ${baseSpec.title}`);
|
|
103
58
|
console.log(` Description length: ${description.length}`);
|
|
104
|
-
console.log(` Labels: ${jiraLabels.join(', ')}`);
|
|
105
|
-
console.log(` Tasks linked: ${taskMapping.tasks.length}`);
|
|
106
59
|
return {
|
|
107
60
|
success: true,
|
|
108
61
|
action: 'no-change',
|
|
109
|
-
tasksLinked: taskMapping
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
// 7. Create or update Jira epic
|
|
113
|
-
const client = new JiraClient(domain, projectKey);
|
|
114
|
-
// Check if epic exists (search by summary containing spec ID)
|
|
115
|
-
const existingEpic = await findExistingEpic(client, baseSpec.identifier.compact);
|
|
116
|
-
let result;
|
|
117
|
-
if (existingEpic) {
|
|
118
|
-
// Update existing epic
|
|
119
|
-
await client.updateIssue(existingEpic.key, {
|
|
120
|
-
fields: {
|
|
121
|
-
description,
|
|
122
|
-
labels: jiraLabels
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
result = {
|
|
126
|
-
success: true,
|
|
127
|
-
action: 'updated',
|
|
128
|
-
epicKey: existingEpic.key,
|
|
129
|
-
epicUrl: `https://${domain}.atlassian.net/browse/${existingEpic.key}`,
|
|
130
|
-
tasksLinked: taskMapping.tasks.length
|
|
62
|
+
tasksLinked: taskMapping?.tasks.length || 0
|
|
131
63
|
};
|
|
132
64
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
description,
|
|
140
|
-
issuetype: { name: 'Epic' },
|
|
141
|
-
labels: jiraLabels
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
result = {
|
|
145
|
-
success: true,
|
|
146
|
-
action: 'created',
|
|
147
|
-
epicKey: epic.key,
|
|
148
|
-
epicUrl: `https://${domain}.atlassian.net/browse/${epic.key}`,
|
|
149
|
-
tasksLinked: taskMapping.tasks.length
|
|
65
|
+
// 5. Validate domain/project (if not dry run)
|
|
66
|
+
if (!dryRun && (!domain || !project)) {
|
|
67
|
+
return {
|
|
68
|
+
success: false,
|
|
69
|
+
action: 'error',
|
|
70
|
+
error: 'JIRA domain/project not specified (required for actual sync)',
|
|
150
71
|
};
|
|
151
72
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
73
|
+
// For now, we focus on content building
|
|
74
|
+
// Actual JIRA API integration is in jira-spec-sync.ts
|
|
75
|
+
const result = {
|
|
76
|
+
success: true,
|
|
77
|
+
action: dryRun ? 'no-change' : 'created', // Assume create if not dry run
|
|
78
|
+
tasksLinked: taskMapping?.tasks.length || 0
|
|
79
|
+
};
|
|
80
|
+
if (domain && project && !dryRun) {
|
|
81
|
+
// In a real implementation, this would use JIRA API
|
|
82
|
+
// For now, just simulate success
|
|
83
|
+
result.epicKey = `SPEC-001`; // Placeholder
|
|
84
|
+
result.epicUrl = `https://${domain}/browse/SPEC-001`;
|
|
85
|
+
if (verbose) {
|
|
86
|
+
console.log(`⚠️ JIRA API integration not implemented in this file`);
|
|
87
|
+
console.log(` Use jira-spec-sync.ts for actual JIRA synchronization`);
|
|
88
|
+
}
|
|
156
89
|
}
|
|
157
90
|
return result;
|
|
158
91
|
}
|
|
@@ -164,7 +97,7 @@ export async function syncSpecWithEnhancedContent(options) {
|
|
|
164
97
|
};
|
|
165
98
|
}
|
|
166
99
|
}
|
|
167
|
-
// Helper functions
|
|
100
|
+
// Helper functions (similar to GitHub sync)
|
|
168
101
|
async function findSpecWeaveRoot(specPath) {
|
|
169
102
|
let currentDir = path.dirname(specPath);
|
|
170
103
|
while (true) {
|
|
@@ -182,14 +115,42 @@ async function findSpecWeaveRoot(specPath) {
|
|
|
182
115
|
}
|
|
183
116
|
}
|
|
184
117
|
}
|
|
185
|
-
|
|
118
|
+
function buildTaskMapping(increments) {
|
|
119
|
+
if (increments.length === 0)
|
|
120
|
+
return undefined;
|
|
121
|
+
const firstIncrement = increments[0];
|
|
122
|
+
const tasks = firstIncrement.tasks.map((task) => ({
|
|
123
|
+
id: task.id,
|
|
124
|
+
title: task.title,
|
|
125
|
+
userStories: task.userStories
|
|
126
|
+
}));
|
|
127
|
+
return {
|
|
128
|
+
incrementId: firstIncrement.id,
|
|
129
|
+
tasks,
|
|
130
|
+
tasksUrl: `tasks.md` // JIRA doesn't support external links in same way
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
async function findArchitectureDocs(rootDir, specId) {
|
|
134
|
+
const docs = [];
|
|
135
|
+
const archDir = path.join(rootDir, '.specweave/docs/internal/architecture');
|
|
186
136
|
try {
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
137
|
+
const adrDir = path.join(archDir, 'adr');
|
|
138
|
+
try {
|
|
139
|
+
const adrs = await fs.readdir(adrDir);
|
|
140
|
+
const relatedAdrs = adrs.filter(file => file.includes(specId.replace('spec-', '')));
|
|
141
|
+
for (const adr of relatedAdrs) {
|
|
142
|
+
docs.push({
|
|
143
|
+
type: 'adr',
|
|
144
|
+
path: path.join(adrDir, adr),
|
|
145
|
+
title: adr.replace('.md', '').replace(/-/g, ' ')
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
catch { }
|
|
193
150
|
}
|
|
151
|
+
catch { }
|
|
152
|
+
return docs;
|
|
194
153
|
}
|
|
154
|
+
// NOTE: findExistingEpic not needed in this simplified version
|
|
155
|
+
// Real JIRA API integration is in jira-spec-sync.ts
|
|
195
156
|
//# sourceMappingURL=enhanced-jira-sync.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enhanced-jira-sync.js","sourceRoot":"","sources":["../../../../plugins/specweave-jira/lib/enhanced-jira-sync.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"enhanced-jira-sync.js","sourceRoot":"","sources":["../../../../plugins/specweave-jira/lib/enhanced-jira-sync.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,sBAAsB,EAAuB,MAAM,oDAAoD,CAAC;AACjH,OAAO,EAAE,mBAAmB,EAAY,MAAM,iDAAiD,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAmBlC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iCAAiC,CACrD,OAAgC;IAEhC,MAAM,EA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@@
|
|
|
1
|
+
/**
|
|
2
|
+
* kcat CLI Wrapper
|
|
3
|
+
*
|
|
4
|
+
* Type-safe TypeScript wrapper for kcat (kafkacat) CLI tool.
|
|
5
|
+
* Provides produce, consume, metadata, and query operations.
|
|
6
|
+
*/
|
|
7
|
+
import { KcatProduceOptions, KcatConsumeOptions, KcatMetadataOptions, KcatQueryOptions, ClusterMetadata, ConsumerMessage, CLIExecutionResult } from './types';
|
|
8
|
+
export declare class KcatWrapper {
|
|
9
|
+
/**
|
|
10
|
+
* Produce a message to Kafka topic
|
|
11
|
+
*/
|
|
12
|
+
produce(message: string, options: KcatProduceOptions): Promise<CLIExecutionResult>;
|
|
13
|
+
/**
|
|
14
|
+
* Consume messages from Kafka topic
|
|
15
|
+
*/
|
|
16
|
+
consume(options: KcatConsumeOptions): Promise<ConsumerMessage[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Get cluster metadata
|
|
19
|
+
*/
|
|
20
|
+
getMetadata(options: KcatMetadataOptions): Promise<ClusterMetadata>;
|
|
21
|
+
/**
|
|
22
|
+
* Query topic offsets
|
|
23
|
+
*/
|
|
24
|
+
queryOffsets(options: KcatQueryOptions): Promise<Record<number, {
|
|
25
|
+
earliest: number;
|
|
26
|
+
latest: number;
|
|
27
|
+
}>>;
|
|
28
|
+
/**
|
|
29
|
+
* Execute kcat command
|
|
30
|
+
*/
|
|
31
|
+
private execute;
|
|
32
|
+
/**
|
|
33
|
+
* Parse consume output into messages
|
|
34
|
+
*/
|
|
35
|
+
private parseConsumeOutput;
|
|
36
|
+
/**
|
|
37
|
+
* Parse metadata JSON output
|
|
38
|
+
*/
|
|
39
|
+
private parseMetadataOutput;
|
|
40
|
+
/**
|
|
41
|
+
* Calculate replication factor from partitions
|
|
42
|
+
*/
|
|
43
|
+
private calculateReplicationFactor;
|
|
44
|
+
/**
|
|
45
|
+
* Parse query offset output
|
|
46
|
+
*/
|
|
47
|
+
private parseQueryOutput;
|
|
48
|
+
/**
|
|
49
|
+
* Check if kcat is installed
|
|
50
|
+
*/
|
|
51
|
+
static isInstalled(): Promise<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Get kcat version
|
|
54
|
+
*/
|
|
55
|
+
static getVersion(): Promise<string>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=kcat-wrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kcat-wrapper.d.ts","sourceRoot":"","sources":["../../../../../plugins/specweave-kafka/lib/cli/kcat-wrapper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,kBAAkB,EAGnB,MAAM,SAAS,CAAC;AAIjB,qBAAa,WAAW;IACtB;;OAEG;IACG,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA+BxF;;OAEG;IACG,OAAO,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAmCtE;;OAEG;IACG,WAAW,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC;IAsBzE;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAsB5G;;OAEG;YACW,OAAO;IAsCrB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAsB1B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA4B3B;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAKlC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAmBxB;;OAEG;WACU,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAS5C;;OAEG;WACU,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;CAS3C"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* kcat CLI Wrapper
|
|
3
|
+
*
|
|
4
|
+
* Type-safe TypeScript wrapper for kcat (kafkacat) CLI tool.
|
|
5
|
+
* Provides produce, consume, metadata, and query operations.
|
|
6
|
+
*/
|
|
7
|
+
import { exec } from 'child_process';
|
|
8
|
+
import { promisify } from 'util';
|
|
9
|
+
const execAsync = promisify(exec);
|
|
10
|
+
export class KcatWrapper {
|
|
11
|
+
/**
|
|
12
|
+
* Produce a message to Kafka topic
|
|
13
|
+
*/
|
|
14
|
+
async produce(message, options) {
|
|
15
|
+
const args = [
|
|
16
|
+
'kcat',
|
|
17
|
+
'-P', // Producer mode
|
|
18
|
+
'-b', options.brokers,
|
|
19
|
+
'-t', options.topic
|
|
20
|
+
];
|
|
21
|
+
if (options.key) {
|
|
22
|
+
args.push('-K', ':'); // Key delimiter
|
|
23
|
+
}
|
|
24
|
+
if (options.partition !== undefined) {
|
|
25
|
+
args.push('-p', options.partition.toString());
|
|
26
|
+
}
|
|
27
|
+
if (options.compression) {
|
|
28
|
+
args.push('-z', options.compression);
|
|
29
|
+
}
|
|
30
|
+
if (options.acks !== undefined) {
|
|
31
|
+
const acksValue = options.acks === 'all' ? '-1' : options.acks.toString();
|
|
32
|
+
args.push('-X', `acks=${acksValue}`);
|
|
33
|
+
}
|
|
34
|
+
const command = args.join(' ');
|
|
35
|
+
const input = options.key ? `${options.key}:${message}` : message;
|
|
36
|
+
return this.execute(command, input);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Consume messages from Kafka topic
|
|
40
|
+
*/
|
|
41
|
+
async consume(options) {
|
|
42
|
+
const args = [
|
|
43
|
+
'kcat',
|
|
44
|
+
'-C', // Consumer mode
|
|
45
|
+
'-b', options.brokers,
|
|
46
|
+
'-t', options.topic,
|
|
47
|
+
'-f', '%t:%p:%o:%k:%s\\n' // Format: topic:partition:offset:key:value
|
|
48
|
+
];
|
|
49
|
+
if (options.offset) {
|
|
50
|
+
args.push('-o', options.offset.toString());
|
|
51
|
+
}
|
|
52
|
+
if (options.partition !== undefined) {
|
|
53
|
+
args.push('-p', options.partition.toString());
|
|
54
|
+
}
|
|
55
|
+
if (options.count) {
|
|
56
|
+
args.push('-c', options.count.toString());
|
|
57
|
+
}
|
|
58
|
+
if (options.groupId) {
|
|
59
|
+
args.push('-G', options.groupId);
|
|
60
|
+
}
|
|
61
|
+
const command = args.join(' ');
|
|
62
|
+
const result = await this.execute(command);
|
|
63
|
+
if (!result.success) {
|
|
64
|
+
throw new Error(`kcat consume failed: ${result.error}`);
|
|
65
|
+
}
|
|
66
|
+
return this.parseConsumeOutput(result.output);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Get cluster metadata
|
|
70
|
+
*/
|
|
71
|
+
async getMetadata(options) {
|
|
72
|
+
const args = [
|
|
73
|
+
'kcat',
|
|
74
|
+
'-L', // Metadata mode
|
|
75
|
+
'-b', options.brokers,
|
|
76
|
+
'-J' // JSON output
|
|
77
|
+
];
|
|
78
|
+
if (options.topic) {
|
|
79
|
+
args.push('-t', options.topic);
|
|
80
|
+
}
|
|
81
|
+
const command = args.join(' ');
|
|
82
|
+
const result = await this.execute(command);
|
|
83
|
+
if (!result.success) {
|
|
84
|
+
throw new Error(`kcat metadata failed: ${result.error}`);
|
|
85
|
+
}
|
|
86
|
+
return this.parseMetadataOutput(result.output);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Query topic offsets
|
|
90
|
+
*/
|
|
91
|
+
async queryOffsets(options) {
|
|
92
|
+
const args = [
|
|
93
|
+
'kcat',
|
|
94
|
+
'-Q', // Query mode
|
|
95
|
+
'-b', options.brokers,
|
|
96
|
+
'-t', options.topic
|
|
97
|
+
];
|
|
98
|
+
if (options.partition !== undefined) {
|
|
99
|
+
args.push('-p', options.partition.toString());
|
|
100
|
+
}
|
|
101
|
+
const command = args.join(' ');
|
|
102
|
+
const result = await this.execute(command);
|
|
103
|
+
if (!result.success) {
|
|
104
|
+
throw new Error(`kcat query failed: ${result.error}`);
|
|
105
|
+
}
|
|
106
|
+
return this.parseQueryOutput(result.output);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Execute kcat command
|
|
110
|
+
*/
|
|
111
|
+
async execute(command, input) {
|
|
112
|
+
const startTime = Date.now();
|
|
113
|
+
try {
|
|
114
|
+
const execOptions = {
|
|
115
|
+
maxBuffer: 10 * 1024 * 1024, // 10MB buffer
|
|
116
|
+
timeout: 30000 // 30 second timeout
|
|
117
|
+
};
|
|
118
|
+
if (input) {
|
|
119
|
+
execOptions.input = input;
|
|
120
|
+
}
|
|
121
|
+
const { stdout, stderr } = await execAsync(command, execOptions);
|
|
122
|
+
const duration = Date.now() - startTime;
|
|
123
|
+
return {
|
|
124
|
+
success: true,
|
|
125
|
+
output: stdout,
|
|
126
|
+
error: stderr || undefined,
|
|
127
|
+
exitCode: 0,
|
|
128
|
+
command,
|
|
129
|
+
duration
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
catch (error) {
|
|
133
|
+
const duration = Date.now() - startTime;
|
|
134
|
+
return {
|
|
135
|
+
success: false,
|
|
136
|
+
output: error.stdout || '',
|
|
137
|
+
error: error.stderr || error.message,
|
|
138
|
+
exitCode: error.code || 1,
|
|
139
|
+
command,
|
|
140
|
+
duration
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Parse consume output into messages
|
|
146
|
+
*/
|
|
147
|
+
parseConsumeOutput(output) {
|
|
148
|
+
const lines = output.trim().split('\n').filter(line => line.length > 0);
|
|
149
|
+
const messages = [];
|
|
150
|
+
for (const line of lines) {
|
|
151
|
+
// Format: topic:partition:offset:key:value
|
|
152
|
+
const parts = line.split(':');
|
|
153
|
+
if (parts.length >= 5) {
|
|
154
|
+
messages.push({
|
|
155
|
+
topic: parts[0],
|
|
156
|
+
partition: parseInt(parts[1]),
|
|
157
|
+
offset: parseInt(parts[2]),
|
|
158
|
+
key: parts[3] || undefined,
|
|
159
|
+
value: parts.slice(4).join(':'), // Rejoin in case value contains ':'
|
|
160
|
+
timestamp: Date.now() // kcat doesn't provide timestamp in this format
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return messages;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Parse metadata JSON output
|
|
168
|
+
*/
|
|
169
|
+
parseMetadataOutput(output) {
|
|
170
|
+
const metadata = JSON.parse(output);
|
|
171
|
+
return {
|
|
172
|
+
clusterId: metadata.originatingBroker?.cluster || 'unknown',
|
|
173
|
+
controllerId: metadata.controllerId || -1,
|
|
174
|
+
brokers: (metadata.brokers || []).map((b) => ({
|
|
175
|
+
id: b.id,
|
|
176
|
+
host: b.host,
|
|
177
|
+
port: b.port,
|
|
178
|
+
rack: b.rack
|
|
179
|
+
})),
|
|
180
|
+
topics: (metadata.topics || []).map((t) => ({
|
|
181
|
+
name: t.topic,
|
|
182
|
+
replicationFactor: this.calculateReplicationFactor(t.partitions),
|
|
183
|
+
configs: {},
|
|
184
|
+
partitions: (t.partitions || []).map((p) => ({
|
|
185
|
+
id: p.partition,
|
|
186
|
+
leader: p.leader,
|
|
187
|
+
replicas: p.replicas || [],
|
|
188
|
+
isr: p.isrs || [],
|
|
189
|
+
earliestOffset: 0, // Not provided in metadata
|
|
190
|
+
latestOffset: 0 // Not provided in metadata
|
|
191
|
+
}))
|
|
192
|
+
}))
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Calculate replication factor from partitions
|
|
197
|
+
*/
|
|
198
|
+
calculateReplicationFactor(partitions) {
|
|
199
|
+
if (!partitions || partitions.length === 0)
|
|
200
|
+
return 0;
|
|
201
|
+
return partitions[0].replicas?.length || 0;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Parse query offset output
|
|
205
|
+
*/
|
|
206
|
+
parseQueryOutput(output) {
|
|
207
|
+
const lines = output.trim().split('\n');
|
|
208
|
+
const offsets = {};
|
|
209
|
+
for (const line of lines) {
|
|
210
|
+
// Format: topic partition [earliest] [latest]
|
|
211
|
+
const match = line.match(/(\d+)\s+\[(\d+)\]\s+\[(\d+)\]/);
|
|
212
|
+
if (match) {
|
|
213
|
+
const partition = parseInt(match[1]);
|
|
214
|
+
offsets[partition] = {
|
|
215
|
+
earliest: parseInt(match[2]),
|
|
216
|
+
latest: parseInt(match[3])
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return offsets;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Check if kcat is installed
|
|
224
|
+
*/
|
|
225
|
+
static async isInstalled() {
|
|
226
|
+
try {
|
|
227
|
+
const { stdout } = await execAsync('which kcat 2>/dev/null || which kafkacat 2>/dev/null');
|
|
228
|
+
return !!stdout.trim();
|
|
229
|
+
}
|
|
230
|
+
catch {
|
|
231
|
+
return false;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Get kcat version
|
|
236
|
+
*/
|
|
237
|
+
static async getVersion() {
|
|
238
|
+
try {
|
|
239
|
+
const { stdout } = await execAsync('kcat -V 2>&1 || kafkacat -V 2>&1');
|
|
240
|
+
const match = stdout.match(/kafkacat - Apache Kafka producer and consumer tool\s+(\S+)/);
|
|
241
|
+
return match ? match[1] : 'unknown';
|
|
242
|
+
}
|
|
243
|
+
catch {
|
|
244
|
+
return 'unknown';
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
//# sourceMappingURL=kcat-wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kcat-wrapper.js","sourceRoot":"","sources":["../../../../../plugins/specweave-kafka/lib/cli/kcat-wrapper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,M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