specweave 0.29.0 → 0.29.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/package.json +3 -1
- package/plugins/specweave-github/hooks/.specweave/logs/hooks-debug.log +12 -0
- package/plugins/specweave-release/hooks/.specweave/logs/dora-tracking.log +18 -0
- package/dist/plugins/specweave-github/lib/enhanced-github-sync.d.ts +0 -26
- package/dist/plugins/specweave-github/lib/enhanced-github-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/enhanced-github-sync.js +0 -249
- package/dist/plugins/specweave-github/lib/enhanced-github-sync.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.d.ts +0 -28
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.js +0 -156
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.js.map +0 -1
- package/dist/src/core/sync/bidirectional-engine.d.ts +0 -119
- package/dist/src/core/sync/bidirectional-engine.d.ts.map +0 -1
- package/dist/src/core/sync/bidirectional-engine.js +0 -359
- package/dist/src/core/sync/bidirectional-engine.js.map +0 -1
- package/dist/src/core/sync/conflict-resolver.d.ts +0 -66
- package/dist/src/core/sync/conflict-resolver.d.ts.map +0 -1
- package/dist/src/core/sync/conflict-resolver.js +0 -108
- package/dist/src/core/sync/conflict-resolver.js.map +0 -1
- package/dist/src/core/sync/enhanced-content-builder.d.ts +0 -55
- package/dist/src/core/sync/enhanced-content-builder.d.ts.map +0 -1
- package/dist/src/core/sync/enhanced-content-builder.js +0 -203
- package/dist/src/core/sync/enhanced-content-builder.js.map +0 -1
- package/dist/src/core/sync/folder-mapper.d.ts +0 -71
- package/dist/src/core/sync/folder-mapper.d.ts.map +0 -1
- package/dist/src/core/sync/folder-mapper.js +0 -203
- package/dist/src/core/sync/folder-mapper.js.map +0 -1
- package/dist/src/core/sync/label-detector.d.ts +0 -66
- package/dist/src/core/sync/label-detector.d.ts.map +0 -1
- package/dist/src/core/sync/label-detector.js +0 -224
- package/dist/src/core/sync/label-detector.js.map +0 -1
- package/dist/src/core/sync/performance-optimizer.d.ts +0 -153
- package/dist/src/core/sync/performance-optimizer.d.ts.map +0 -1
- package/dist/src/core/sync/performance-optimizer.js +0 -220
- package/dist/src/core/sync/performance-optimizer.js.map +0 -1
- package/dist/src/core/sync/profile-selector.d.ts +0 -52
- package/dist/src/core/sync/profile-selector.d.ts.map +0 -1
- package/dist/src/core/sync/profile-selector.js +0 -179
- package/dist/src/core/sync/profile-selector.js.map +0 -1
- package/dist/src/core/sync/profile-validator.d.ts +0 -52
- package/dist/src/core/sync/profile-validator.d.ts.map +0 -1
- package/dist/src/core/sync/profile-validator.js +0 -170
- package/dist/src/core/sync/profile-validator.js.map +0 -1
- package/dist/src/core/sync/rate-limiter.d.ts +0 -116
- package/dist/src/core/sync/rate-limiter.d.ts.map +0 -1
- package/dist/src/core/sync/rate-limiter.js +0 -308
- package/dist/src/core/sync/rate-limiter.js.map +0 -1
- package/dist/src/core/sync/retry-handler.d.ts +0 -98
- package/dist/src/core/sync/retry-handler.d.ts.map +0 -1
- package/dist/src/core/sync/retry-handler.js +0 -196
- package/dist/src/core/sync/retry-handler.js.map +0 -1
- package/dist/src/core/sync/retry-logic.d.ts +0 -64
- package/dist/src/core/sync/retry-logic.d.ts.map +0 -1
- package/dist/src/core/sync/retry-logic.js +0 -165
- package/dist/src/core/sync/retry-logic.js.map +0 -1
- package/dist/src/core/sync/status-cache.d.ts +0 -91
- package/dist/src/core/sync/status-cache.d.ts.map +0 -1
- package/dist/src/core/sync/status-cache.js +0 -140
- package/dist/src/core/sync/status-cache.js.map +0 -1
- package/dist/src/core/sync/status-mapper.d.ts +0 -69
- package/dist/src/core/sync/status-mapper.d.ts.map +0 -1
- package/dist/src/core/sync/status-mapper.js +0 -90
- package/dist/src/core/sync/status-mapper.js.map +0 -1
- package/dist/src/core/sync/status-sync-engine.d.ts +0 -162
- package/dist/src/core/sync/status-sync-engine.d.ts.map +0 -1
- package/dist/src/core/sync/status-sync-engine.js +0 -347
- package/dist/src/core/sync/status-sync-engine.js.map +0 -1
- package/dist/src/core/sync/sync-event-logger.d.ts +0 -113
- package/dist/src/core/sync/sync-event-logger.d.ts.map +0 -1
- package/dist/src/core/sync/sync-event-logger.js +0 -141
- package/dist/src/core/sync/sync-event-logger.js.map +0 -1
- package/dist/src/core/sync/time-range-selector.d.ts +0 -48
- package/dist/src/core/sync/time-range-selector.d.ts.map +0 -1
- package/dist/src/core/sync/time-range-selector.js +0 -224
- package/dist/src/core/sync/time-range-selector.js.map +0 -1
- package/dist/src/core/sync/types.d.ts +0 -52
- package/dist/src/core/sync/types.d.ts.map +0 -1
- package/dist/src/core/sync/types.js +0 -5
- package/dist/src/core/sync/types.js.map +0 -1
- package/dist/src/core/sync/workflow-detector.d.ts +0 -95
- package/dist/src/core/sync/workflow-detector.d.ts.map +0 -1
- package/dist/src/core/sync/workflow-detector.js +0 -175
- package/dist/src/core/sync/workflow-detector.js.map +0 -1
- package/plugins/specweave-github/lib/enhanced-github-sync.js +0 -220
- package/plugins/specweave-github/lib/enhanced-github-sync.ts +0 -322
- package/plugins/specweave-jira/lib/enhanced-jira-sync.js +0 -134
- package/plugins/specweave-jira/lib/enhanced-jira-sync.ts +0 -196
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specweave",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.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",
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"js-yaml": "^4.1.0",
|
|
96
96
|
"open": "^11.0.0",
|
|
97
97
|
"ora": "^9.0.0",
|
|
98
|
+
"uuid": "^13.0.0",
|
|
98
99
|
"yaml": "^2.3.4"
|
|
99
100
|
},
|
|
100
101
|
"devDependencies": {
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
"@playwright/test": "^1.48.0",
|
|
103
104
|
"@types/js-yaml": "^4.0.9",
|
|
104
105
|
"@types/node": "^24.10.0",
|
|
106
|
+
"@types/uuid": "^10.0.0",
|
|
105
107
|
"@vitest/coverage-v8": "^2.1.9",
|
|
106
108
|
"@vitest/ui": "^2.1.9",
|
|
107
109
|
"ajv": "^8.17.1",
|
|
@@ -58,3 +58,15 @@
|
|
|
58
58
|
[Mon Dec 1 20:40:32 EST 2025] [GitHub] ⚠️ sync-spec-content CLI not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-github/hooks/dist/src/cli/commands/sync-spec-content.js, skipping sync
|
|
59
59
|
[Mon Dec 1 20:40:33 EST 2025] [GitHub] 🔗 GitHub sync hook fired
|
|
60
60
|
[Mon Dec 1 20:40:33 EST 2025] [GitHub] ⚠️ sync-spec-content CLI not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-github/hooks/dist/src/cli/commands/sync-spec-content.js, skipping sync
|
|
61
|
+
[Mon Dec 1 22:13:45 EST 2025] [GitHub] 🔗 GitHub sync hook fired
|
|
62
|
+
[Mon Dec 1 22:13:45 EST 2025] [GitHub] ⚠️ sync-spec-content CLI not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-github/hooks/dist/src/cli/commands/sync-spec-content.js, skipping sync
|
|
63
|
+
[Mon Dec 1 22:13:45 EST 2025] [GitHub] 🔗 GitHub sync hook fired
|
|
64
|
+
[Mon Dec 1 22:13:45 EST 2025] [GitHub] ⚠️ sync-spec-content CLI not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-github/hooks/dist/src/cli/commands/sync-spec-content.js, skipping sync
|
|
65
|
+
[Mon Dec 1 22:13:45 EST 2025] [GitHub] 🔗 GitHub sync hook fired
|
|
66
|
+
[Mon Dec 1 22:13:45 EST 2025] [GitHub] ⚠️ sync-spec-content CLI not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-github/hooks/dist/src/cli/commands/sync-spec-content.js, skipping sync
|
|
67
|
+
[Mon Dec 1 22:16:15 EST 2025] [GitHub] 🔗 GitHub sync hook fired
|
|
68
|
+
[Mon Dec 1 22:16:15 EST 2025] [GitHub] ⚠️ sync-spec-content CLI not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-github/hooks/dist/src/cli/commands/sync-spec-content.js, skipping sync
|
|
69
|
+
[Mon Dec 1 22:16:15 EST 2025] [GitHub] 🔗 GitHub sync hook fired
|
|
70
|
+
[Mon Dec 1 22:16:15 EST 2025] [GitHub] ⚠️ sync-spec-content CLI not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-github/hooks/dist/src/cli/commands/sync-spec-content.js, skipping sync
|
|
71
|
+
[Mon Dec 1 22:16:16 EST 2025] [GitHub] 🔗 GitHub sync hook fired
|
|
72
|
+
[Mon Dec 1 22:16:16 EST 2025] [GitHub] ⚠️ sync-spec-content CLI not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-github/hooks/dist/src/cli/commands/sync-spec-content.js, skipping sync
|
|
@@ -88,3 +88,21 @@
|
|
|
88
88
|
[2025-12-01 20:40:33] 🎯 Post-Increment-Completion Hook Triggered
|
|
89
89
|
[2025-12-01 20:40:33] ⚠️ DORA calculator not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-release/hooks/dist/src/metrics/dora-calculator.js
|
|
90
90
|
[2025-12-01 20:40:33] Run: npm run build
|
|
91
|
+
[2025-12-01 22:13:45] 🎯 Post-Increment-Completion Hook Triggered
|
|
92
|
+
[2025-12-01 22:13:45] ⚠️ DORA calculator not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-release/hooks/dist/src/metrics/dora-calculator.js
|
|
93
|
+
[2025-12-01 22:13:45] Run: npm run build
|
|
94
|
+
[2025-12-01 22:13:45] 🎯 Post-Increment-Completion Hook Triggered
|
|
95
|
+
[2025-12-01 22:13:45] ⚠️ DORA calculator not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-release/hooks/dist/src/metrics/dora-calculator.js
|
|
96
|
+
[2025-12-01 22:13:45] Run: npm run build
|
|
97
|
+
[2025-12-01 22:13:45] 🎯 Post-Increment-Completion Hook Triggered
|
|
98
|
+
[2025-12-01 22:13:45] ⚠️ DORA calculator not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-release/hooks/dist/src/metrics/dora-calculator.js
|
|
99
|
+
[2025-12-01 22:13:45] Run: npm run build
|
|
100
|
+
[2025-12-01 22:16:15] 🎯 Post-Increment-Completion Hook Triggered
|
|
101
|
+
[2025-12-01 22:16:15] ⚠️ DORA calculator not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-release/hooks/dist/src/metrics/dora-calculator.js
|
|
102
|
+
[2025-12-01 22:16:15] Run: npm run build
|
|
103
|
+
[2025-12-01 22:16:16] 🎯 Post-Increment-Completion Hook Triggered
|
|
104
|
+
[2025-12-01 22:16:16] ⚠️ DORA calculator not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-release/hooks/dist/src/metrics/dora-calculator.js
|
|
105
|
+
[2025-12-01 22:16:16] Run: npm run build
|
|
106
|
+
[2025-12-01 22:16:16] 🎯 Post-Increment-Completion Hook Triggered
|
|
107
|
+
[2025-12-01 22:16:16] ⚠️ DORA calculator not found at /Users/antonabyzov/Documents/Projects/specweave/plugins/specweave-release/hooks/dist/src/metrics/dora-calculator.js
|
|
108
|
+
[2025-12-01 22:16:16] Run: npm run build
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enhanced GitHub Spec Content Sync
|
|
3
|
-
*
|
|
4
|
-
* Uses EnhancedContentBuilder and SpecIncrementMapper for rich external descriptions.
|
|
5
|
-
* NEW (v0.21.0): Supports task checkboxes and automatic labeling.
|
|
6
|
-
*/
|
|
7
|
-
export interface EnhancedGitHubSyncOptions {
|
|
8
|
-
specPath: string;
|
|
9
|
-
owner?: string;
|
|
10
|
-
repo?: string;
|
|
11
|
-
dryRun?: boolean;
|
|
12
|
-
verbose?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface EnhancedSyncResult {
|
|
15
|
-
success: boolean;
|
|
16
|
-
action: 'created' | 'updated' | 'no-change' | 'error';
|
|
17
|
-
issueNumber?: number;
|
|
18
|
-
issueUrl?: string;
|
|
19
|
-
error?: string;
|
|
20
|
-
tasksLinked?: number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Enhanced sync with rich content including task mappings
|
|
24
|
-
*/
|
|
25
|
-
export declare function syncSpecWithEnhancedContent(options: EnhancedGitHubSyncOptions): Promise<EnhancedSyncResult>;
|
|
26
|
-
//# sourceMappingURL=enhanced-github-sync.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enhanced-github-sync.d.ts","sourceRoot":"","sources":["../../../../plugins/specweave-github/lib/enhanced-github-sync.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,kBAAkB,CAAC,CAsL7B"}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enhanced GitHub Spec Content Sync
|
|
3
|
-
*
|
|
4
|
-
* Uses EnhancedContentBuilder and SpecIncrementMapper for rich external descriptions.
|
|
5
|
-
* NEW (v0.21.0): Supports task checkboxes and automatic labeling.
|
|
6
|
-
*/
|
|
7
|
-
import { GitHubClientV2 } from './github-client-v2.js';
|
|
8
|
-
import { EnhancedContentBuilder } from '../../../src/core/sync/enhanced-content-builder.js';
|
|
9
|
-
import { SpecIncrementMapper } from '../../../src/core/sync/spec-increment-mapper.js';
|
|
10
|
-
import { parseSpecContent } from '../../../src/core/spec-content-sync.js';
|
|
11
|
-
import { LabelDetector } from '../../../src/core/sync/label-detector.js';
|
|
12
|
-
import path from 'path';
|
|
13
|
-
import fs from 'fs/promises';
|
|
14
|
-
/**
|
|
15
|
-
* Enhanced sync with rich content including task mappings
|
|
16
|
-
*/
|
|
17
|
-
export async function syncSpecWithEnhancedContent(options) {
|
|
18
|
-
const { specPath, owner, repo, dryRun = false, verbose = false } = options;
|
|
19
|
-
try {
|
|
20
|
-
// 1. Parse spec content
|
|
21
|
-
const baseSpec = await parseSpecContent(specPath);
|
|
22
|
-
if (!baseSpec) {
|
|
23
|
-
return {
|
|
24
|
-
success: false,
|
|
25
|
-
action: 'error',
|
|
26
|
-
error: 'Failed to parse spec content',
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
if (verbose) {
|
|
30
|
-
console.log(`📄 Parsed spec: ${baseSpec.identifier.compact}`);
|
|
31
|
-
}
|
|
32
|
-
// 2. Build enhanced spec with task mappings
|
|
33
|
-
const specId = baseSpec.identifier.full || baseSpec.identifier.compact;
|
|
34
|
-
const rootDir = await findSpecWeaveRoot(specPath);
|
|
35
|
-
const mapper = new SpecIncrementMapper(rootDir);
|
|
36
|
-
const mapping = await mapper.mapSpecToIncrements(specId);
|
|
37
|
-
if (verbose) {
|
|
38
|
-
console.log(`🔗 Found ${mapping.increments.length} related increments`);
|
|
39
|
-
console.log(`📋 Mapped ${Object.keys(mapping.userStoryMappings).length} user stories to tasks`);
|
|
40
|
-
}
|
|
41
|
-
// 3. Build task mapping for EnhancedSpecContent
|
|
42
|
-
const taskMapping = buildTaskMapping(mapping.increments, owner, repo);
|
|
43
|
-
// 4. Build architecture docs references
|
|
44
|
-
const architectureDocs = await findArchitectureDocs(rootDir, specId);
|
|
45
|
-
// 5. Build source links
|
|
46
|
-
const sourceLinks = buildSourceLinks(mapping.increments[0]?.id, owner, repo);
|
|
47
|
-
// 6. Create enhanced spec content
|
|
48
|
-
const enhancedSpec = {
|
|
49
|
-
...baseSpec,
|
|
50
|
-
summary: baseSpec.description,
|
|
51
|
-
taskMapping,
|
|
52
|
-
architectureDocs,
|
|
53
|
-
sourceLinks
|
|
54
|
-
};
|
|
55
|
-
// 7. Build external description with task checkboxes
|
|
56
|
-
const builder = new EnhancedContentBuilder();
|
|
57
|
-
// NEW: Override buildTasksSection call to include checkboxes
|
|
58
|
-
const originalBuildExternal = builder.buildExternalDescription.bind(builder);
|
|
59
|
-
const description = (() => {
|
|
60
|
-
const sections = [];
|
|
61
|
-
// Summary
|
|
62
|
-
sections.push(builder.buildSummarySection(enhancedSpec));
|
|
63
|
-
// User stories
|
|
64
|
-
if (enhancedSpec.userStories && enhancedSpec.userStories.length > 0) {
|
|
65
|
-
sections.push(builder.buildUserStoriesSection(enhancedSpec.userStories));
|
|
66
|
-
}
|
|
67
|
-
// Tasks with checkboxes (NEW!)
|
|
68
|
-
if (enhancedSpec.taskMapping) {
|
|
69
|
-
sections.push(builder.buildTasksSection(enhancedSpec.taskMapping, {
|
|
70
|
-
showCheckboxes: true,
|
|
71
|
-
showProgressBar: true,
|
|
72
|
-
showCompletionStatus: true,
|
|
73
|
-
provider: 'github'
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
// Architecture
|
|
77
|
-
if (enhancedSpec.architectureDocs && enhancedSpec.architectureDocs.length > 0) {
|
|
78
|
-
sections.push(builder.buildArchitectureSection(enhancedSpec.architectureDocs));
|
|
79
|
-
}
|
|
80
|
-
// Source links
|
|
81
|
-
if (enhancedSpec.sourceLinks) {
|
|
82
|
-
sections.push(builder.buildSourceLinksSection(enhancedSpec.sourceLinks));
|
|
83
|
-
}
|
|
84
|
-
return sections.filter(s => s.length > 0).join('\n\n---\n\n');
|
|
85
|
-
})();
|
|
86
|
-
if (verbose) {
|
|
87
|
-
console.log(`📝 Generated description: ${description.length} characters`);
|
|
88
|
-
}
|
|
89
|
-
if (dryRun) {
|
|
90
|
-
console.log('🔍 DRY RUN - Would create/update issue with:');
|
|
91
|
-
console.log(` Title: ${baseSpec.title}`);
|
|
92
|
-
console.log(` Description length: ${description.length}`);
|
|
93
|
-
console.log(` Tasks linked: ${taskMapping?.tasks.length || 0}`);
|
|
94
|
-
return {
|
|
95
|
-
success: true,
|
|
96
|
-
action: 'no-change',
|
|
97
|
-
tasksLinked: taskMapping?.tasks.length || 0
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
// 8. Create or update GitHub issue
|
|
101
|
-
if (!owner || !repo) {
|
|
102
|
-
return {
|
|
103
|
-
success: false,
|
|
104
|
-
action: 'error',
|
|
105
|
-
error: 'GitHub owner/repo not specified',
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
const client = GitHubClientV2.fromRepo(owner, repo);
|
|
109
|
-
// NEW: Detect increment type and apply labels
|
|
110
|
-
const labelDetector = new LabelDetector(undefined, false); // Use GitHub format
|
|
111
|
-
const detection = labelDetector.detectType(await fs.readFile(specPath, 'utf-8'), mapping.increments[0]?.id);
|
|
112
|
-
const githubLabels = labelDetector.getGitHubLabels(detection.type);
|
|
113
|
-
const allLabels = ['spec', ...githubLabels]; // Include both 'spec' and type labels
|
|
114
|
-
if (verbose) {
|
|
115
|
-
console.log(`🏷️ Detected type: ${detection.type} (${detection.confidence}% confidence)`);
|
|
116
|
-
console.log(` Labels: ${allLabels.join(', ')}`);
|
|
117
|
-
}
|
|
118
|
-
// Check if issue already exists
|
|
119
|
-
const existingIssue = await findExistingIssue(client, baseSpec.identifier.compact);
|
|
120
|
-
let result;
|
|
121
|
-
if (existingIssue) {
|
|
122
|
-
// Update existing issue (body + labels)
|
|
123
|
-
await client.updateIssueBody(existingIssue.number, description);
|
|
124
|
-
// Update labels if autoApplyLabels is enabled
|
|
125
|
-
// TODO: Read from config, for now always apply
|
|
126
|
-
await client.addLabels(existingIssue.number, allLabels);
|
|
127
|
-
result = {
|
|
128
|
-
success: true,
|
|
129
|
-
action: 'updated',
|
|
130
|
-
issueNumber: existingIssue.number,
|
|
131
|
-
issueUrl: existingIssue.html_url,
|
|
132
|
-
tasksLinked: taskMapping?.tasks.length || 0
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
// Create new issue with labels
|
|
137
|
-
const issue = await client.createEpicIssue(`[${baseSpec.project === '_features' ? baseSpec.identifier.display : baseSpec.identifier.compact}] ${baseSpec.title}`, description, undefined, allLabels // Apply labels at creation
|
|
138
|
-
);
|
|
139
|
-
result = {
|
|
140
|
-
success: true,
|
|
141
|
-
action: 'created',
|
|
142
|
-
issueNumber: issue.number,
|
|
143
|
-
issueUrl: issue.html_url,
|
|
144
|
-
tasksLinked: taskMapping?.tasks.length || 0
|
|
145
|
-
};
|
|
146
|
-
// Update spec with GitHub link
|
|
147
|
-
await mapper.updateSpecWithIncrementLinks(specId, mapping.increments[0]?.id);
|
|
148
|
-
}
|
|
149
|
-
if (verbose) {
|
|
150
|
-
console.log(`✅ ${result.action === 'created' ? 'Created' : 'Updated'} issue #${result.issueNumber}`);
|
|
151
|
-
console.log(` URL: ${result.issueUrl}`);
|
|
152
|
-
console.log(` Tasks linked: ${result.tasksLinked}`);
|
|
153
|
-
}
|
|
154
|
-
return result;
|
|
155
|
-
}
|
|
156
|
-
catch (error) {
|
|
157
|
-
return {
|
|
158
|
-
success: false,
|
|
159
|
-
action: 'error',
|
|
160
|
-
error: error.message
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
// Helper functions
|
|
165
|
-
async function findSpecWeaveRoot(specPath) {
|
|
166
|
-
let currentDir = path.dirname(specPath);
|
|
167
|
-
while (true) {
|
|
168
|
-
const specweaveDir = path.join(currentDir, '.specweave');
|
|
169
|
-
try {
|
|
170
|
-
await fs.access(specweaveDir);
|
|
171
|
-
return currentDir;
|
|
172
|
-
}
|
|
173
|
-
catch {
|
|
174
|
-
const parentDir = path.dirname(currentDir);
|
|
175
|
-
if (parentDir === currentDir) {
|
|
176
|
-
throw new Error('.specweave directory not found');
|
|
177
|
-
}
|
|
178
|
-
currentDir = parentDir;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
function buildTaskMapping(increments, owner, repo) {
|
|
183
|
-
if (increments.length === 0)
|
|
184
|
-
return undefined;
|
|
185
|
-
const firstIncrement = increments[0];
|
|
186
|
-
const tasks = firstIncrement.tasks.map((task) => ({
|
|
187
|
-
id: task.id,
|
|
188
|
-
title: task.title,
|
|
189
|
-
userStories: task.userStories,
|
|
190
|
-
githubIssue: task.githubIssue
|
|
191
|
-
}));
|
|
192
|
-
return {
|
|
193
|
-
incrementId: firstIncrement.id,
|
|
194
|
-
tasks,
|
|
195
|
-
tasksUrl: `https://github.com/${owner}/${repo}/blob/develop/.specweave/increments/${firstIncrement.id}/tasks.md`
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
async function findArchitectureDocs(rootDir, specId) {
|
|
199
|
-
const docs = [];
|
|
200
|
-
const archDir = path.join(rootDir, '.specweave/docs/internal/architecture');
|
|
201
|
-
try {
|
|
202
|
-
// Check for ADRs
|
|
203
|
-
const adrDir = path.join(archDir, 'adr');
|
|
204
|
-
try {
|
|
205
|
-
const adrs = await fs.readdir(adrDir);
|
|
206
|
-
const relatedAdrs = adrs.filter(file => file.includes(specId.replace('spec-', '')));
|
|
207
|
-
for (const adr of relatedAdrs) {
|
|
208
|
-
docs.push({
|
|
209
|
-
type: 'adr',
|
|
210
|
-
path: path.join(adrDir, adr),
|
|
211
|
-
title: adr.replace('.md', '').replace(/-/g, ' ')
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
catch { }
|
|
216
|
-
// Check for HLD
|
|
217
|
-
const hlds = await fs.readdir(archDir);
|
|
218
|
-
const relatedHlds = hlds.filter(file => file.includes('hld') && file.includes(specId.replace('spec-', '')));
|
|
219
|
-
for (const hld of relatedHlds) {
|
|
220
|
-
docs.push({
|
|
221
|
-
type: 'hld',
|
|
222
|
-
path: path.join(archDir, hld),
|
|
223
|
-
title: hld.replace('.md', '').replace(/-/g, ' ')
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
catch { }
|
|
228
|
-
return docs;
|
|
229
|
-
}
|
|
230
|
-
function buildSourceLinks(incrementId, owner, repo) {
|
|
231
|
-
if (!incrementId)
|
|
232
|
-
return undefined;
|
|
233
|
-
const baseUrl = `https://github.com/${owner}/${repo}/blob/develop/.specweave`;
|
|
234
|
-
return {
|
|
235
|
-
spec: `${baseUrl}/docs/internal/specs/default/spec-${incrementId.replace(/^\d+-/, '')}.md`,
|
|
236
|
-
plan: `${baseUrl}/increments/${incrementId}/plan.md`,
|
|
237
|
-
tasks: `${baseUrl}/increments/${incrementId}/tasks.md`
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
async function findExistingIssue(client, specId) {
|
|
241
|
-
try {
|
|
242
|
-
const issues = await client.listIssuesInTimeRange('ALL');
|
|
243
|
-
return issues.find((issue) => issue.title.includes(`[${specId}]`) && issue.labels?.some((l) => l.name === 'spec')) || null;
|
|
244
|
-
}
|
|
245
|
-
catch {
|
|
246
|
-
return null;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
//# sourceMappingURL=enhanced-github-sync.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enhanced-github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WAAW;KACvD,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,iBAAiB,CAAC,MAAsB,EAAE,MAAc;IACrE,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,IAAI,IAAI,CAAC;IACvI,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enhanced JIRA Spec Content Sync
|
|
3
|
-
*
|
|
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
|
|
8
|
-
*/
|
|
9
|
-
export interface EnhancedJiraSyncOptions {
|
|
10
|
-
specPath: string;
|
|
11
|
-
domain?: string;
|
|
12
|
-
project?: string;
|
|
13
|
-
dryRun?: boolean;
|
|
14
|
-
verbose?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface EnhancedJiraSyncResult {
|
|
17
|
-
success: boolean;
|
|
18
|
-
action: 'created' | 'updated' | 'no-change' | 'error';
|
|
19
|
-
epicKey?: string;
|
|
20
|
-
epicUrl?: string;
|
|
21
|
-
error?: string;
|
|
22
|
-
tasksLinked?: number;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Enhanced sync with rich content including task mappings
|
|
26
|
-
*/
|
|
27
|
-
export declare function syncSpecToJiraWithEnhancedContent(options: EnhancedJiraSyncOptions): Promise<EnhancedJiraSyncResult>;
|
|
28
|
-
//# sourceMappingURL=enhanced-jira-sync.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enhanced-jira-sync.d.ts","sourceRoot":"","sources":["../../../../plugins/specweave-jira/lib/enhanced-jira-sync.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAsB,iCAAiC,CACrD,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,sBAAsB,CAAC,CA+FjC"}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enhanced JIRA Spec Content Sync
|
|
3
|
-
*
|
|
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
|
|
8
|
-
*/
|
|
9
|
-
import { EnhancedContentBuilder } from '../../../src/core/sync/enhanced-content-builder.js';
|
|
10
|
-
import { SpecIncrementMapper } from '../../../src/core/sync/spec-increment-mapper.js';
|
|
11
|
-
import { parseSpecContent } from '../../../src/core/spec-content-sync.js';
|
|
12
|
-
import * as path from 'path';
|
|
13
|
-
import * as fs from 'fs/promises';
|
|
14
|
-
/**
|
|
15
|
-
* Enhanced sync with rich content including task mappings
|
|
16
|
-
*/
|
|
17
|
-
export async function syncSpecToJiraWithEnhancedContent(options) {
|
|
18
|
-
const { specPath, domain, project, dryRun = false, verbose = false } = options;
|
|
19
|
-
try {
|
|
20
|
-
// 1. Parse spec content
|
|
21
|
-
const baseSpec = await parseSpecContent(specPath);
|
|
22
|
-
if (!baseSpec) {
|
|
23
|
-
return {
|
|
24
|
-
success: false,
|
|
25
|
-
action: 'error',
|
|
26
|
-
error: 'Failed to parse spec content',
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
if (verbose) {
|
|
30
|
-
console.log(`📄 Parsed spec: ${baseSpec.identifier.compact}`);
|
|
31
|
-
}
|
|
32
|
-
// 2. Build enhanced spec with task mappings
|
|
33
|
-
const specId = baseSpec.identifier.full || baseSpec.identifier.compact;
|
|
34
|
-
const rootDir = await findSpecWeaveRoot(specPath);
|
|
35
|
-
const mapper = new SpecIncrementMapper(rootDir);
|
|
36
|
-
const mapping = await mapper.mapSpecToIncrements(specId);
|
|
37
|
-
if (verbose) {
|
|
38
|
-
console.log(`🔗 Found ${mapping.increments.length} related increments`);
|
|
39
|
-
}
|
|
40
|
-
// 3. Build enhanced spec content
|
|
41
|
-
const taskMapping = buildTaskMapping(mapping.increments);
|
|
42
|
-
const architectureDocs = await findArchitectureDocs(rootDir, specId);
|
|
43
|
-
const enhancedSpec = {
|
|
44
|
-
...baseSpec,
|
|
45
|
-
summary: baseSpec.description,
|
|
46
|
-
taskMapping,
|
|
47
|
-
architectureDocs
|
|
48
|
-
};
|
|
49
|
-
// 4. Build external description
|
|
50
|
-
const builder = new EnhancedContentBuilder();
|
|
51
|
-
const description = builder.buildExternalDescription(enhancedSpec);
|
|
52
|
-
if (verbose) {
|
|
53
|
-
console.log(`📝 Generated description: ${description.length} characters`);
|
|
54
|
-
}
|
|
55
|
-
if (dryRun) {
|
|
56
|
-
console.log('🔍 DRY RUN - Would create/update epic with:');
|
|
57
|
-
console.log(` Summary: ${baseSpec.title}`);
|
|
58
|
-
console.log(` Description length: ${description.length}`);
|
|
59
|
-
return {
|
|
60
|
-
success: true,
|
|
61
|
-
action: 'no-change',
|
|
62
|
-
tasksLinked: taskMapping?.tasks.length || 0
|
|
63
|
-
};
|
|
64
|
-
}
|
|
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)',
|
|
71
|
-
};
|
|
72
|
-
}
|
|
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
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return result;
|
|
91
|
-
}
|
|
92
|
-
catch (error) {
|
|
93
|
-
return {
|
|
94
|
-
success: false,
|
|
95
|
-
action: 'error',
|
|
96
|
-
error: error.message
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
// Helper functions (similar to GitHub sync)
|
|
101
|
-
async function findSpecWeaveRoot(specPath) {
|
|
102
|
-
let currentDir = path.dirname(specPath);
|
|
103
|
-
while (true) {
|
|
104
|
-
const specweaveDir = path.join(currentDir, '.specweave');
|
|
105
|
-
try {
|
|
106
|
-
await fs.access(specweaveDir);
|
|
107
|
-
return currentDir;
|
|
108
|
-
}
|
|
109
|
-
catch {
|
|
110
|
-
const parentDir = path.dirname(currentDir);
|
|
111
|
-
if (parentDir === currentDir) {
|
|
112
|
-
throw new Error('.specweave directory not found');
|
|
113
|
-
}
|
|
114
|
-
currentDir = parentDir;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
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');
|
|
136
|
-
try {
|
|
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 { }
|
|
150
|
-
}
|
|
151
|
-
catch { }
|
|
152
|
-
return docs;
|
|
153
|
-
}
|
|
154
|
-
// NOTE: findExistingEpic not needed in this simplified version
|
|
155
|
-
// Real JIRA API integration is in jira-spec-sync.ts
|
|
156
|
-
//# sourceMappingURL=enhanced-jira-sync.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;IAE/E,IAAI,CAAC;QACH,wBAAwB;QACxB,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAClD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,8BAA8B;aACtC,CAAC;QACJ,CAAC;QAED,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,GAAG,CAAC,mBAAmB,QAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;QAChE,CAAC;QAED,4CAA4C;QAC5C,MAAM,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;QACvE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