specweave 0.24.6 → 0.24.8
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 +64 -0
- package/README.md +34 -0
- package/dist/src/cli/helpers/issue-tracker/github-multi-repo.d.ts +5 -2
- package/dist/src/cli/helpers/issue-tracker/github-multi-repo.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/github-multi-repo.js +72 -6
- package/dist/src/cli/helpers/issue-tracker/github-multi-repo.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/github.d.ts +2 -1
- package/dist/src/cli/helpers/issue-tracker/github.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/github.js +4 -3
- package/dist/src/cli/helpers/issue-tracker/github.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/index.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/index.js +26 -9
- package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/types.d.ts +1 -0
- package/dist/src/cli/helpers/issue-tracker/types.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/types.js.map +1 -1
- package/dist/src/core/repo-structure/git-error-handler.d.ts +37 -0
- package/dist/src/core/repo-structure/git-error-handler.d.ts.map +1 -0
- package/dist/src/core/repo-structure/git-error-handler.js +214 -0
- package/dist/src/core/repo-structure/git-error-handler.js.map +1 -0
- package/dist/src/core/repo-structure/git-provider.d.ts +183 -0
- package/dist/src/core/repo-structure/git-provider.d.ts.map +1 -0
- package/dist/src/core/repo-structure/git-provider.js +57 -0
- package/dist/src/core/repo-structure/git-provider.js.map +1 -0
- package/dist/src/core/repo-structure/github-validator.d.ts +1 -0
- package/dist/src/core/repo-structure/github-validator.d.ts.map +1 -1
- package/dist/src/core/repo-structure/github-validator.js +35 -9
- package/dist/src/core/repo-structure/github-validator.js.map +1 -1
- package/dist/src/core/repo-structure/platform-registry.d.ts +114 -0
- package/dist/src/core/repo-structure/platform-registry.d.ts.map +1 -0
- package/dist/src/core/repo-structure/platform-registry.js +195 -0
- package/dist/src/core/repo-structure/platform-registry.js.map +1 -0
- package/dist/src/core/repo-structure/prompt-consolidator.d.ts +30 -0
- package/dist/src/core/repo-structure/prompt-consolidator.d.ts.map +1 -1
- package/dist/src/core/repo-structure/prompt-consolidator.js +69 -0
- package/dist/src/core/repo-structure/prompt-consolidator.js.map +1 -1
- package/dist/src/core/repo-structure/providers/bitbucket-provider.d.ts +54 -0
- package/dist/src/core/repo-structure/providers/bitbucket-provider.d.ts.map +1 -0
- package/dist/src/core/repo-structure/providers/bitbucket-provider.js +104 -0
- package/dist/src/core/repo-structure/providers/bitbucket-provider.js.map +1 -0
- package/dist/src/core/repo-structure/providers/github-provider.d.ts +53 -0
- package/dist/src/core/repo-structure/providers/github-provider.d.ts.map +1 -0
- package/dist/src/core/repo-structure/providers/github-provider.js +239 -0
- package/dist/src/core/repo-structure/providers/github-provider.js.map +1 -0
- package/dist/src/core/repo-structure/providers/gitlab-provider.d.ts +50 -0
- package/dist/src/core/repo-structure/providers/gitlab-provider.d.ts.map +1 -0
- package/dist/src/core/repo-structure/providers/gitlab-provider.js +97 -0
- package/dist/src/core/repo-structure/providers/gitlab-provider.js.map +1 -0
- package/dist/src/core/repo-structure/providers/index.d.ts +33 -0
- package/dist/src/core/repo-structure/providers/index.d.ts.map +1 -0
- package/dist/src/core/repo-structure/providers/index.js +60 -0
- package/dist/src/core/repo-structure/providers/index.js.map +1 -0
- package/dist/src/core/repo-structure/repo-structure-manager.d.ts +10 -3
- package/dist/src/core/repo-structure/repo-structure-manager.d.ts.map +1 -1
- package/dist/src/core/repo-structure/repo-structure-manager.js +125 -42
- package/dist/src/core/repo-structure/repo-structure-manager.js.map +1 -1
- package/dist/src/core/repo-structure/url-generator.d.ts +80 -0
- package/dist/src/core/repo-structure/url-generator.d.ts.map +1 -0
- package/dist/src/core/repo-structure/url-generator.js +110 -0
- package/dist/src/core/repo-structure/url-generator.js.map +1 -0
- package/package.json +1 -1
- package/plugins/specweave-ado/lib/ado-multi-project-sync.js +0 -1
- package/plugins/specweave-jira/lib/enhanced-jira-sync.js +3 -3
- package/plugins/specweave/agents/pm/AGENT.md.bak +0 -1893
- package/plugins/specweave/hooks/docs-changed.sh.backup +0 -79
- package/plugins/specweave/hooks/human-input-required.sh.backup +0 -75
- package/plugins/specweave/hooks/lib/migrate-increment-work.sh.bak +0 -245
- package/plugins/specweave/hooks/lib/sync-spec-content.sh.bak +0 -149
- package/plugins/specweave/hooks/lib/validate-spec-status.sh.bak +0 -163
- package/plugins/specweave/hooks/post-first-increment.sh.backup +0 -61
- package/plugins/specweave/hooks/post-first-increment.sh.bak +0 -61
- package/plugins/specweave/hooks/post-increment-change.sh.backup +0 -98
- package/plugins/specweave/hooks/post-increment-completion.sh.backup +0 -231
- package/plugins/specweave/hooks/post-increment-planning.sh.backup +0 -1048
- package/plugins/specweave/hooks/post-increment-status-change.sh.backup +0 -147
- package/plugins/specweave/hooks/post-spec-update.sh.backup +0 -158
- package/plugins/specweave/hooks/post-spec-update.sh.bak +0 -158
- package/plugins/specweave/hooks/post-user-story-complete.sh.backup +0 -179
- package/plugins/specweave/hooks/post-user-story-complete.sh.bak +0 -179
- package/plugins/specweave/hooks/pre-command-deduplication.sh.backup +0 -83
- package/plugins/specweave/hooks/pre-command-deduplication.sh.bak +0 -83
- package/plugins/specweave/hooks/pre-implementation.sh.backup +0 -67
- package/plugins/specweave/hooks/pre-task-completion.sh.backup +0 -194
- package/plugins/specweave/hooks/pre-tool-use.sh.backup +0 -133
- package/plugins/specweave/hooks/user-prompt-submit.sh.backup +0 -386
- package/plugins/specweave/hooks/user-prompt-submit.sh.bak +0 -386
- package/plugins/specweave/lib/hooks/auto-transition.js.bak +0 -50
- package/plugins/specweave/lib/hooks/auto-transition.ts.bak +0 -84
- package/plugins/specweave/lib/hooks/git-diff-analyzer.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.bak +0 -89
- package/plugins/specweave/lib/hooks/git-diff-analyzer.js.bak +0 -142
- package/plugins/specweave/lib/hooks/git-diff-analyzer.ts.bak +0 -269
- package/plugins/specweave/lib/hooks/invoke-translator-skill.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.bak +0 -60
- package/plugins/specweave/lib/hooks/invoke-translator-skill.js.bak +0 -155
- package/plugins/specweave/lib/hooks/invoke-translator-skill.ts.bak +0 -264
- package/plugins/specweave/lib/hooks/prepare-reflection-context.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.bak +0 -42
- package/plugins/specweave/lib/hooks/prepare-reflection-context.js.bak +0 -110
- package/plugins/specweave/lib/hooks/prepare-reflection-context.ts.bak +0 -178
- package/plugins/specweave/lib/hooks/reflection-config-loader.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.bak +0 -45
- package/plugins/specweave/lib/hooks/reflection-config-loader.js.bak +0 -92
- package/plugins/specweave/lib/hooks/reflection-config-loader.ts.bak +0 -156
- package/plugins/specweave/lib/hooks/reflection-parser.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/reflection-parser.d.ts.bak +0 -33
- package/plugins/specweave/lib/hooks/reflection-parser.js.bak +0 -301
- package/plugins/specweave/lib/hooks/reflection-parser.ts.bak +0 -484
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.bak +0 -56
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.js.bak +0 -182
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.ts.bak +0 -306
- package/plugins/specweave/lib/hooks/reflection-storage.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/reflection-storage.d.ts.bak +0 -64
- package/plugins/specweave/lib/hooks/reflection-storage.js.bak +0 -231
- package/plugins/specweave/lib/hooks/reflection-storage.ts.bak +0 -369
- package/plugins/specweave/lib/hooks/run-self-reflection.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.d.ts.bak +0 -43
- package/plugins/specweave/lib/hooks/run-self-reflection.js.bak +0 -132
- package/plugins/specweave/lib/hooks/run-self-reflection.ts.bak +0 -258
- package/plugins/specweave/lib/hooks/sync-cache.js.bak +0 -294
- package/plugins/specweave/lib/hooks/sync-living-docs.d.js.bak +0 -1
- package/plugins/specweave/lib/hooks/sync-living-docs.d.ts.bak +0 -27
- package/plugins/specweave/lib/hooks/sync-living-docs.js.bak +0 -339
- package/plugins/specweave/lib/hooks/sync-us-tasks.js.bak +0 -476
- package/plugins/specweave/lib/hooks/translate-file.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/translate-file.d.ts.bak +0 -59
- package/plugins/specweave/lib/hooks/translate-file.js.bak +0 -289
- package/plugins/specweave/lib/hooks/translate-file.ts.bak +0 -428
- package/plugins/specweave/lib/hooks/translate-living-docs.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.d.ts.bak +0 -13
- package/plugins/specweave/lib/hooks/translate-living-docs.js.bak +0 -119
- package/plugins/specweave/lib/hooks/translate-living-docs.ts.bak +0 -224
- package/plugins/specweave/lib/hooks/update-ac-status.js.bak +0 -51
- package/plugins/specweave/lib/hooks/update-ac-status.ts.bak +0 -103
- package/plugins/specweave/lib/hooks/update-tasks-md.d.js.bak +0 -1
- package/plugins/specweave/lib/hooks/update-tasks-md.d.ts.bak +0 -29
- package/plugins/specweave/lib/hooks/update-tasks-md.js.bak +0 -296
- package/plugins/specweave/lib/hooks/update-tasks-md.ts.bak +0 -489
- package/plugins/specweave-ado/hooks/post-living-docs-update.sh.backup +0 -353
- package/plugins/specweave-ado/hooks/post-task-completion.sh.backup +0 -172
- package/plugins/specweave-ado/lib/enhanced-ado-sync.js +0 -170
- package/plugins/specweave-github/hooks/.specweave/logs/hooks-debug.log +0 -360
- package/plugins/specweave-github/hooks/post-task-completion.sh.backup +0 -258
- package/plugins/specweave-jira/hooks/post-task-completion.sh.backup +0 -172
- package/plugins/specweave-release/hooks/.specweave/logs/dora-tracking.log +0 -444
- package/plugins/specweave-release/hooks/post-task-completion.sh.backup +0 -110
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git Remote URL Generator
|
|
3
|
+
*
|
|
4
|
+
* Generates platform-agnostic Git remote URLs in SSH or HTTPS format.
|
|
5
|
+
* Supports GitHub, GitLab, Bitbucket, and custom Git platforms.
|
|
6
|
+
*
|
|
7
|
+
* @module url-generator
|
|
8
|
+
*/
|
|
9
|
+
export type UrlType = 'ssh' | 'https';
|
|
10
|
+
export interface GitPlatform {
|
|
11
|
+
host: string;
|
|
12
|
+
sshUser?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Generate Git remote URL in SSH or HTTPS format
|
|
16
|
+
*
|
|
17
|
+
* @param owner - Repository owner/organization
|
|
18
|
+
* @param repo - Repository name
|
|
19
|
+
* @param urlType - 'ssh' or 'https'
|
|
20
|
+
* @param platform - Git platform configuration
|
|
21
|
+
* @returns Formatted Git remote URL
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* // SSH format
|
|
26
|
+
* generateGitRemoteUrl('myorg', 'myrepo', 'ssh', { host: 'github.com' })
|
|
27
|
+
* // => 'git@github.com:myorg/myrepo.git'
|
|
28
|
+
*
|
|
29
|
+
* // HTTPS format
|
|
30
|
+
* generateGitRemoteUrl('myorg', 'myrepo', 'https', { host: 'github.com' })
|
|
31
|
+
* // => 'https://github.com/myorg/myrepo.git'
|
|
32
|
+
*
|
|
33
|
+
* // GitLab SSH
|
|
34
|
+
* generateGitRemoteUrl('myorg', 'myrepo', 'ssh', { host: 'gitlab.com' })
|
|
35
|
+
* // => 'git@gitlab.com:myorg/myrepo.git'
|
|
36
|
+
*
|
|
37
|
+
* // Self-hosted GitLab HTTPS
|
|
38
|
+
* generateGitRemoteUrl('myorg', 'myrepo', 'https', { host: 'gitlab.company.com' })
|
|
39
|
+
* // => 'https://gitlab.company.com/myorg/myrepo.git'
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare function generateGitRemoteUrl(owner: string, repo: string, urlType: UrlType, platform?: GitPlatform): string;
|
|
43
|
+
/**
|
|
44
|
+
* Parse existing Git remote URL to extract components
|
|
45
|
+
*
|
|
46
|
+
* @param url - Git remote URL (SSH or HTTPS)
|
|
47
|
+
* @returns Parsed components or null if invalid
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* parseGitRemoteUrl('git@github.com:myorg/myrepo.git')
|
|
52
|
+
* // => { owner: 'myorg', repo: 'myrepo', urlType: 'ssh', host: 'github.com' }
|
|
53
|
+
*
|
|
54
|
+
* parseGitRemoteUrl('https://gitlab.com/myorg/myrepo.git')
|
|
55
|
+
* // => { owner: 'myorg', repo: 'myrepo', urlType: 'https', host: 'gitlab.com' }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare function parseGitRemoteUrl(url: string): {
|
|
59
|
+
owner: string;
|
|
60
|
+
repo: string;
|
|
61
|
+
urlType: UrlType;
|
|
62
|
+
host: string;
|
|
63
|
+
} | null;
|
|
64
|
+
/**
|
|
65
|
+
* Detect Git platform from hostname
|
|
66
|
+
*
|
|
67
|
+
* @param host - Hostname (e.g., 'github.com', 'gitlab.company.com')
|
|
68
|
+
* @returns Platform name or 'unknown'
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* detectGitPlatform('github.com') // => 'github'
|
|
73
|
+
* detectGitPlatform('gitlab.com') // => 'gitlab'
|
|
74
|
+
* detectGitPlatform('bitbucket.org') // => 'bitbucket'
|
|
75
|
+
* detectGitPlatform('gitlab.internal') // => 'gitlab' (self-hosted)
|
|
76
|
+
* detectGitPlatform('git.company.com') // => 'unknown'
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
export declare function detectGitPlatform(host: string): 'github' | 'gitlab' | 'bitbucket' | 'azure-devops' | 'unknown';
|
|
80
|
+
//# sourceMappingURL=url-generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-generator.d.ts","sourceRoot":"","sources":["../../../../src/core/repo-structure/url-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,OAAO,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,WAAoC,GAC7C,MAAM,CAQR;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,IAAI,CAwBP;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,cAAc,GAAG,SAAS,CAM9G"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git Remote URL Generator
|
|
3
|
+
*
|
|
4
|
+
* Generates platform-agnostic Git remote URLs in SSH or HTTPS format.
|
|
5
|
+
* Supports GitHub, GitLab, Bitbucket, and custom Git platforms.
|
|
6
|
+
*
|
|
7
|
+
* @module url-generator
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Generate Git remote URL in SSH or HTTPS format
|
|
11
|
+
*
|
|
12
|
+
* @param owner - Repository owner/organization
|
|
13
|
+
* @param repo - Repository name
|
|
14
|
+
* @param urlType - 'ssh' or 'https'
|
|
15
|
+
* @param platform - Git platform configuration
|
|
16
|
+
* @returns Formatted Git remote URL
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* // SSH format
|
|
21
|
+
* generateGitRemoteUrl('myorg', 'myrepo', 'ssh', { host: 'github.com' })
|
|
22
|
+
* // => 'git@github.com:myorg/myrepo.git'
|
|
23
|
+
*
|
|
24
|
+
* // HTTPS format
|
|
25
|
+
* generateGitRemoteUrl('myorg', 'myrepo', 'https', { host: 'github.com' })
|
|
26
|
+
* // => 'https://github.com/myorg/myrepo.git'
|
|
27
|
+
*
|
|
28
|
+
* // GitLab SSH
|
|
29
|
+
* generateGitRemoteUrl('myorg', 'myrepo', 'ssh', { host: 'gitlab.com' })
|
|
30
|
+
* // => 'git@gitlab.com:myorg/myrepo.git'
|
|
31
|
+
*
|
|
32
|
+
* // Self-hosted GitLab HTTPS
|
|
33
|
+
* generateGitRemoteUrl('myorg', 'myrepo', 'https', { host: 'gitlab.company.com' })
|
|
34
|
+
* // => 'https://gitlab.company.com/myorg/myrepo.git'
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export function generateGitRemoteUrl(owner, repo, urlType, platform = { host: 'github.com' }) {
|
|
38
|
+
const sshUser = platform.sshUser || 'git';
|
|
39
|
+
if (urlType === 'ssh') {
|
|
40
|
+
return `${sshUser}@${platform.host}:${owner}/${repo}.git`;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return `https://${platform.host}/${owner}/${repo}.git`;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Parse existing Git remote URL to extract components
|
|
48
|
+
*
|
|
49
|
+
* @param url - Git remote URL (SSH or HTTPS)
|
|
50
|
+
* @returns Parsed components or null if invalid
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* parseGitRemoteUrl('git@github.com:myorg/myrepo.git')
|
|
55
|
+
* // => { owner: 'myorg', repo: 'myrepo', urlType: 'ssh', host: 'github.com' }
|
|
56
|
+
*
|
|
57
|
+
* parseGitRemoteUrl('https://gitlab.com/myorg/myrepo.git')
|
|
58
|
+
* // => { owner: 'myorg', repo: 'myrepo', urlType: 'https', host: 'gitlab.com' }
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export function parseGitRemoteUrl(url) {
|
|
62
|
+
// SSH format: git@github.com:owner/repo.git
|
|
63
|
+
const sshMatch = url.match(/^(?:[\w-]+)@([\w.-]+):([\w-]+)\/([\w.-]+?)(?:\.git)?$/);
|
|
64
|
+
if (sshMatch) {
|
|
65
|
+
return {
|
|
66
|
+
host: sshMatch[1],
|
|
67
|
+
owner: sshMatch[2],
|
|
68
|
+
repo: sshMatch[3],
|
|
69
|
+
urlType: 'ssh'
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
// HTTPS format: https://github.com/owner/repo.git
|
|
73
|
+
const httpsMatch = url.match(/^https?:\/\/([\w.-]+)\/([\w-]+)\/([\w.-]+?)(?:\.git)?$/);
|
|
74
|
+
if (httpsMatch) {
|
|
75
|
+
return {
|
|
76
|
+
host: httpsMatch[1],
|
|
77
|
+
owner: httpsMatch[2],
|
|
78
|
+
repo: httpsMatch[3],
|
|
79
|
+
urlType: 'https'
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Detect Git platform from hostname
|
|
86
|
+
*
|
|
87
|
+
* @param host - Hostname (e.g., 'github.com', 'gitlab.company.com')
|
|
88
|
+
* @returns Platform name or 'unknown'
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```typescript
|
|
92
|
+
* detectGitPlatform('github.com') // => 'github'
|
|
93
|
+
* detectGitPlatform('gitlab.com') // => 'gitlab'
|
|
94
|
+
* detectGitPlatform('bitbucket.org') // => 'bitbucket'
|
|
95
|
+
* detectGitPlatform('gitlab.internal') // => 'gitlab' (self-hosted)
|
|
96
|
+
* detectGitPlatform('git.company.com') // => 'unknown'
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
export function detectGitPlatform(host) {
|
|
100
|
+
if (host.includes('github'))
|
|
101
|
+
return 'github';
|
|
102
|
+
if (host.includes('gitlab'))
|
|
103
|
+
return 'gitlab';
|
|
104
|
+
if (host.includes('bitbucket'))
|
|
105
|
+
return 'bitbucket';
|
|
106
|
+
if (host.includes('dev.azure.com') || host.includes('visualstudio.com'))
|
|
107
|
+
return 'azure-devops';
|
|
108
|
+
return 'unknown';
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=url-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-generator.js","sourceRoot":"","sources":["../../../../src/core/repo-structure/url-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,oBAAoB,CAClC,KAAa,EACb,IAAY,EACZ,OAAgB,EAChB,WAAwB,EAAE,IAAI,EAAE,YAAY,EAAE;IAE9C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,IAAI,KAAK,CAAC;IAE1C,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QACtB,OAAO,GAAG,OAAO,IAAI,QAAQ,CAAC,IAAI,IAAI,KAAK,IAAI,IAAI,MAAM,CAAC;IAC5D,CAAC;SAAM,CAAC;QACN,OAAO,WAAW,QAAQ,CAAC,IAAI,IAAI,KAAK,IAAI,IAAI,MAAM,CAAC;IACzD,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,iBAAiB,CAAC,GAAW;IAM3C,4CAA4C;IAC5C,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;IACpF,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;YACjB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;YAClB,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;YACjB,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;IAED,kDAAkD;IAClD,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;IACvF,IAAI,UAAU,EAAE,CAAC;QACf,OAAO;YACL,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;YACnB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;YACpB,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;YACnB,OAAO,EAAE,OAAO;SACjB,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC;IAC7C,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC;IAC7C,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;QAAE,OAAO,WAAW,CAAC;IACnD,IAAI,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QAAE,OAAO,cAAc,CAAC;IAC/F,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specweave",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.8",
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { EnhancedContentBuilder } from "../../../
|
|
2
|
-
import { SpecIncrementMapper } from "../../../
|
|
3
|
-
import { parseSpecContent } from "../../../
|
|
1
|
+
import { EnhancedContentBuilder } from "../../../src/core/sync/enhanced-content-builder.js";
|
|
2
|
+
import { SpecIncrementMapper } from "../../../src/core/sync/spec-increment-mapper.js";
|
|
3
|
+
import { parseSpecContent } from "../../../src/core/spec-content-sync.js";
|
|
4
4
|
import * as path from "path";
|
|
5
5
|
import * as fs from "fs/promises";
|
|
6
6
|
async function syncSpecToJiraWithEnhancedContent(options) {
|