specweave 0.24.8 → 0.24.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli/commands/init.d.ts.map +1 -1
- package/dist/src/cli/commands/init.js +3 -1
- package/dist/src/cli/commands/init.js.map +1 -1
- 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 +18 -2
- package/dist/src/cli/helpers/issue-tracker/github-multi-repo.js.map +1 -1
- package/dist/src/core/repo-structure/git-error-handler.d.ts +1 -1
- package/dist/src/core/repo-structure/git-error-handler.d.ts.map +1 -1
- package/dist/src/core/repo-structure/git-provider.d.ts +1 -1
- package/dist/src/core/repo-structure/git-provider.d.ts.map +1 -1
- package/dist/src/core/repo-structure/platform-registry.d.ts.map +1 -1
- package/dist/src/core/repo-structure/platform-registry.js +20 -9
- package/dist/src/core/repo-structure/platform-registry.js.map +1 -1
- package/dist/src/core/repo-structure/prompt-consolidator.d.ts +13 -1
- package/dist/src/core/repo-structure/prompt-consolidator.d.ts.map +1 -1
- package/dist/src/core/repo-structure/prompt-consolidator.js +38 -5
- package/dist/src/core/repo-structure/prompt-consolidator.js.map +1 -1
- package/dist/src/core/repo-structure/providers/azure-devops-provider.d.ts +64 -0
- package/dist/src/core/repo-structure/providers/azure-devops-provider.d.ts.map +1 -0
- package/dist/src/core/repo-structure/providers/azure-devops-provider.js +263 -0
- package/dist/src/core/repo-structure/providers/azure-devops-provider.js.map +1 -0
- package/dist/src/core/repo-structure/providers/bitbucket-provider.d.ts +12 -11
- package/dist/src/core/repo-structure/providers/bitbucket-provider.d.ts.map +1 -1
- package/dist/src/core/repo-structure/providers/bitbucket-provider.js +164 -30
- package/dist/src/core/repo-structure/providers/bitbucket-provider.js.map +1 -1
- package/dist/src/core/repo-structure/providers/gitlab-provider.d.ts +10 -9
- package/dist/src/core/repo-structure/providers/gitlab-provider.d.ts.map +1 -1
- package/dist/src/core/repo-structure/providers/gitlab-provider.js +182 -28
- package/dist/src/core/repo-structure/providers/gitlab-provider.js.map +1 -1
- package/dist/src/core/repo-structure/providers/index.d.ts +3 -1
- package/dist/src/core/repo-structure/providers/index.d.ts.map +1 -1
- package/dist/src/core/repo-structure/providers/index.js +10 -2
- package/dist/src/core/repo-structure/providers/index.js.map +1 -1
- package/dist/src/core/repo-structure/providers/local-provider.d.ts +61 -0
- package/dist/src/core/repo-structure/providers/local-provider.d.ts.map +1 -0
- package/dist/src/core/repo-structure/providers/local-provider.js +148 -0
- package/dist/src/core/repo-structure/providers/local-provider.js.map +1 -0
- package/dist/src/core/repo-structure/repo-structure-manager.d.ts +11 -1
- package/dist/src/core/repo-structure/repo-structure-manager.d.ts.map +1 -1
- package/dist/src/core/repo-structure/repo-structure-manager.js +268 -84
- package/dist/src/core/repo-structure/repo-structure-manager.js.map +1 -1
- package/package.json +1 -1
- package/plugins/specweave/agents/pm/AGENT.md.bak +1893 -0
- package/plugins/specweave/hooks/docs-changed.sh.backup +79 -0
- package/plugins/specweave/hooks/human-input-required.sh.backup +75 -0
- package/plugins/specweave/hooks/lib/migrate-increment-work.sh.bak +245 -0
- package/plugins/specweave/hooks/lib/sync-spec-content.sh.bak +149 -0
- package/plugins/specweave/hooks/lib/validate-spec-status.sh.bak +163 -0
- package/plugins/specweave/hooks/post-first-increment.sh.backup +61 -0
- package/plugins/specweave/hooks/post-first-increment.sh.bak +61 -0
- package/plugins/specweave/hooks/post-increment-change.sh.backup +98 -0
- package/plugins/specweave/hooks/post-increment-completion.sh.backup +231 -0
- package/plugins/specweave/hooks/post-increment-planning.sh.backup +1048 -0
- package/plugins/specweave/hooks/post-increment-status-change.sh.backup +147 -0
- package/plugins/specweave/hooks/post-spec-update.sh.backup +158 -0
- package/plugins/specweave/hooks/post-spec-update.sh.bak +158 -0
- package/plugins/specweave/hooks/post-task-completion.sh +69 -175
- package/plugins/specweave/hooks/post-user-story-complete.sh.backup +179 -0
- package/plugins/specweave/hooks/post-user-story-complete.sh.bak +179 -0
- package/plugins/specweave/hooks/pre-command-deduplication.sh.backup +83 -0
- package/plugins/specweave/hooks/pre-command-deduplication.sh.bak +83 -0
- package/plugins/specweave/hooks/pre-implementation.sh.backup +67 -0
- package/plugins/specweave/hooks/pre-task-completion.sh.backup +194 -0
- package/plugins/specweave/hooks/pre-tool-use.sh.backup +133 -0
- package/plugins/specweave/hooks/user-prompt-submit.sh.backup +386 -0
- package/plugins/specweave/hooks/user-prompt-submit.sh.bak +386 -0
- package/plugins/specweave/lib/hooks/auto-transition.js.bak +50 -0
- package/plugins/specweave/lib/hooks/auto-transition.ts.bak +84 -0
- package/plugins/specweave/lib/hooks/consolidated-sync.js +183 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.bak +89 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.js.bak +142 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.ts.bak +269 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.bak +60 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.js.bak +155 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.ts.bak +264 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.bak +42 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.js.bak +110 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.ts.bak +178 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.bak +45 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.js.bak +92 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.ts.bak +156 -0
- package/plugins/specweave/lib/hooks/reflection-parser.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/reflection-parser.d.ts.bak +33 -0
- package/plugins/specweave/lib/hooks/reflection-parser.js.bak +301 -0
- package/plugins/specweave/lib/hooks/reflection-parser.ts.bak +484 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.bak +56 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.js.bak +182 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.ts.bak +306 -0
- package/plugins/specweave/lib/hooks/reflection-storage.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/reflection-storage.d.ts.bak +64 -0
- package/plugins/specweave/lib/hooks/reflection-storage.js.bak +231 -0
- package/plugins/specweave/lib/hooks/reflection-storage.ts.bak +369 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.d.ts.bak +43 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.js.bak +132 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.ts.bak +258 -0
- package/plugins/specweave/lib/hooks/sync-cache.js.bak +294 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.d.js.bak +1 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.d.ts.bak +27 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.js.bak +339 -0
- package/plugins/specweave/lib/hooks/sync-us-tasks.js.bak +476 -0
- package/plugins/specweave/lib/hooks/translate-file.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/translate-file.d.ts.bak +59 -0
- package/plugins/specweave/lib/hooks/translate-file.js.bak +289 -0
- package/plugins/specweave/lib/hooks/translate-file.ts.bak +428 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.d.js.bak +0 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.d.ts.bak +13 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.js.bak +119 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.ts.bak +224 -0
- package/plugins/specweave/lib/hooks/update-ac-status.js.bak +51 -0
- package/plugins/specweave/lib/hooks/update-ac-status.ts.bak +103 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.d.js.bak +1 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.d.ts.bak +29 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.js.bak +296 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.ts.bak +489 -0
- package/plugins/specweave-ado/hooks/post-living-docs-update.sh.backup +353 -0
- package/plugins/specweave-ado/hooks/post-task-completion.sh.backup +172 -0
- package/plugins/specweave-ado/lib/ado-multi-project-sync.js +1 -0
- package/plugins/specweave-ado/lib/enhanced-ado-sync.js +170 -0
- package/plugins/specweave-github/hooks/.specweave/logs/hooks-debug.log +424 -0
- package/plugins/specweave-github/hooks/post-task-completion.sh.backup +258 -0
- package/plugins/specweave-jira/hooks/post-task-completion.sh.backup +172 -0
- package/plugins/specweave-jira/lib/enhanced-jira-sync.js +3 -3
- package/plugins/specweave-release/hooks/.specweave/logs/dora-tracking.log +540 -0
- package/plugins/specweave-release/hooks/post-task-completion.sh.backup +110 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Local Git Provider Implementation
|
|
3
|
+
*
|
|
4
|
+
* Implements GitProvider interface for local-only Git repositories.
|
|
5
|
+
* Suitable for repositories without remote hosting (GitHub, GitLab, etc.).
|
|
6
|
+
*
|
|
7
|
+
* @module providers/local-provider
|
|
8
|
+
*/
|
|
9
|
+
import { BaseGitProvider, type PlatformConfig, type RepoValidationResult, type OwnerValidationResult, type CreateRepoOptions } from '../git-provider.js';
|
|
10
|
+
import type { UrlType } from '../url-generator.js';
|
|
11
|
+
/**
|
|
12
|
+
* Local Git Provider
|
|
13
|
+
*
|
|
14
|
+
* Implements Git operations for local-only repositories.
|
|
15
|
+
* Does not require API tokens or remote hosting.
|
|
16
|
+
*/
|
|
17
|
+
export declare class LocalGitProvider extends BaseGitProvider {
|
|
18
|
+
constructor(config?: Partial<PlatformConfig>);
|
|
19
|
+
/**
|
|
20
|
+
* Validate if a local repository exists
|
|
21
|
+
* owner represents the parent directory path
|
|
22
|
+
* repo represents the repository directory name
|
|
23
|
+
*/
|
|
24
|
+
validateRepository(owner: string, repo: string, token?: string): Promise<RepoValidationResult>;
|
|
25
|
+
/**
|
|
26
|
+
* Validate if a local directory (owner) exists
|
|
27
|
+
*/
|
|
28
|
+
validateOwner(owner: string, token?: string): Promise<OwnerValidationResult>;
|
|
29
|
+
/**
|
|
30
|
+
* Create a new local repository
|
|
31
|
+
* Note: This creates a bare directory, not a Git repository.
|
|
32
|
+
* Users should run `git init` separately.
|
|
33
|
+
*/
|
|
34
|
+
createRepository(options: CreateRepoOptions, token: string): Promise<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Local directories are never organizations
|
|
37
|
+
*/
|
|
38
|
+
isOrganization(account: string, token?: string): Promise<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* Get token creation URL (not applicable for local Git)
|
|
41
|
+
*/
|
|
42
|
+
getTokenUrl(): string;
|
|
43
|
+
/**
|
|
44
|
+
* Get required token scopes (none for local Git)
|
|
45
|
+
*/
|
|
46
|
+
getRequiredScopes(isOrganization?: boolean): string[];
|
|
47
|
+
/**
|
|
48
|
+
* Generate Git remote URL for local repositories
|
|
49
|
+
* Local repos use file:// protocol
|
|
50
|
+
*/
|
|
51
|
+
getRemoteUrl(owner: string, repo: string, urlType: UrlType): string;
|
|
52
|
+
/**
|
|
53
|
+
* Override getAuthHeaders (not needed for local Git)
|
|
54
|
+
*/
|
|
55
|
+
protected getAuthHeaders(token: string): Record<string, string>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Create a Local Git provider instance
|
|
59
|
+
*/
|
|
60
|
+
export declare function createLocalGitProvider(config?: Partial<PlatformConfig>): LocalGitProvider;
|
|
61
|
+
//# sourceMappingURL=local-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-provider.d.ts","sourceRoot":"","sources":["../../../../../src/core/repo-structure/providers/local-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACzJ,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAInD;;;;;GAKG;AACH,qBAAa,gBAAiB,SAAQ,eAAe;gBACvC,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC;IAW5C;;;;OAIG;IACG,kBAAkB,CACtB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,oBAAoB,CAAC;IAqChC;;OAEG;IACG,aAAa,CACjB,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,qBAAqB,CAAC;IAsBjC;;;;OAIG;IACG,gBAAgB,CACpB,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,MAAM,CAAC;IAmBlB;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvE;;OAEG;IACH,WAAW,IAAI,MAAM;IAIrB;;OAEG;IACH,iBAAiB,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE;IAIrD;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM;IAKnE;;OAEG;IACH,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAGhE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,gBAAgB,CAEzF"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Local Git Provider Implementation
|
|
3
|
+
*
|
|
4
|
+
* Implements GitProvider interface for local-only Git repositories.
|
|
5
|
+
* Suitable for repositories without remote hosting (GitHub, GitLab, etc.).
|
|
6
|
+
*
|
|
7
|
+
* @module providers/local-provider
|
|
8
|
+
*/
|
|
9
|
+
import { BaseGitProvider } from '../git-provider.js';
|
|
10
|
+
import { existsSync } from 'fs';
|
|
11
|
+
import { resolve, join } from 'path';
|
|
12
|
+
/**
|
|
13
|
+
* Local Git Provider
|
|
14
|
+
*
|
|
15
|
+
* Implements Git operations for local-only repositories.
|
|
16
|
+
* Does not require API tokens or remote hosting.
|
|
17
|
+
*/
|
|
18
|
+
export class LocalGitProvider extends BaseGitProvider {
|
|
19
|
+
constructor(config) {
|
|
20
|
+
super({
|
|
21
|
+
type: 'custom',
|
|
22
|
+
name: 'Local Git',
|
|
23
|
+
host: 'localhost',
|
|
24
|
+
apiBaseUrl: '',
|
|
25
|
+
selfHosted: true,
|
|
26
|
+
customDomain: config?.customDomain
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Validate if a local repository exists
|
|
31
|
+
* owner represents the parent directory path
|
|
32
|
+
* repo represents the repository directory name
|
|
33
|
+
*/
|
|
34
|
+
async validateRepository(owner, repo, token) {
|
|
35
|
+
try {
|
|
36
|
+
// Resolve the full path
|
|
37
|
+
const repoPath = resolve(owner, repo);
|
|
38
|
+
const gitPath = join(repoPath, '.git');
|
|
39
|
+
// Check if directory exists
|
|
40
|
+
if (!existsSync(repoPath)) {
|
|
41
|
+
return { exists: false, valid: true };
|
|
42
|
+
}
|
|
43
|
+
// Check if it's a Git repository
|
|
44
|
+
const isGitRepo = existsSync(gitPath);
|
|
45
|
+
if (isGitRepo) {
|
|
46
|
+
return {
|
|
47
|
+
exists: true,
|
|
48
|
+
valid: true,
|
|
49
|
+
url: `file://${repoPath}`
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
// Directory exists but is not a Git repository
|
|
54
|
+
return {
|
|
55
|
+
exists: false,
|
|
56
|
+
valid: true
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
return {
|
|
62
|
+
exists: false,
|
|
63
|
+
valid: false,
|
|
64
|
+
error: `File system error: ${error instanceof Error ? error.message : String(error)}`
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Validate if a local directory (owner) exists
|
|
70
|
+
*/
|
|
71
|
+
async validateOwner(owner, token) {
|
|
72
|
+
try {
|
|
73
|
+
const ownerPath = resolve(owner);
|
|
74
|
+
if (!existsSync(ownerPath)) {
|
|
75
|
+
return {
|
|
76
|
+
valid: false,
|
|
77
|
+
error: `Directory does not exist: ${ownerPath}`
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
// Local directories are always treated as "user" type
|
|
81
|
+
return { valid: true, type: 'user' };
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
return {
|
|
85
|
+
valid: false,
|
|
86
|
+
error: `File system error: ${error instanceof Error ? error.message : String(error)}`
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Create a new local repository
|
|
92
|
+
* Note: This creates a bare directory, not a Git repository.
|
|
93
|
+
* Users should run `git init` separately.
|
|
94
|
+
*/
|
|
95
|
+
async createRepository(options, token) {
|
|
96
|
+
const repoPath = resolve(options.owner, options.name);
|
|
97
|
+
// Check if directory already exists
|
|
98
|
+
if (existsSync(repoPath)) {
|
|
99
|
+
return `file://${repoPath}`;
|
|
100
|
+
}
|
|
101
|
+
// Note: We don't actually create the directory here
|
|
102
|
+
// The repository initialization should be done separately with git init
|
|
103
|
+
throw new Error(`Local repository creation requires manual setup:\n` +
|
|
104
|
+
` mkdir -p "${repoPath}"\n` +
|
|
105
|
+
` cd "${repoPath}"\n` +
|
|
106
|
+
` git init\n\n` +
|
|
107
|
+
`SpecWeave does not automatically create local Git repositories.`);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Local directories are never organizations
|
|
111
|
+
*/
|
|
112
|
+
async isOrganization(account, token) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Get token creation URL (not applicable for local Git)
|
|
117
|
+
*/
|
|
118
|
+
getTokenUrl() {
|
|
119
|
+
return '';
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Get required token scopes (none for local Git)
|
|
123
|
+
*/
|
|
124
|
+
getRequiredScopes(isOrganization) {
|
|
125
|
+
return [];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Generate Git remote URL for local repositories
|
|
129
|
+
* Local repos use file:// protocol
|
|
130
|
+
*/
|
|
131
|
+
getRemoteUrl(owner, repo, urlType) {
|
|
132
|
+
const repoPath = resolve(owner, repo);
|
|
133
|
+
return `file://${repoPath}`;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Override getAuthHeaders (not needed for local Git)
|
|
137
|
+
*/
|
|
138
|
+
getAuthHeaders(token) {
|
|
139
|
+
return {};
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Create a Local Git provider instance
|
|
144
|
+
*/
|
|
145
|
+
export function createLocalGitProvider(config) {
|
|
146
|
+
return new LocalGitProvider(config);
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=local-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-provider.js","sourceRoot":"","sources":["../../../../../src/core/repo-structure/providers/local-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,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,iEAAiE,CAClE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,cAAc,CAAC,OAAe,EAAE,KAAc;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,EAAE,CAAC;IACZ,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,cAAwB;QACxC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,KAAa,EAAE,IAAY,EAAE,OAAgB;QACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACtC,OAAO,UAAU,QAAQ,EAAE,CAAC;IAC9B,CAAC;IAED;;OAEG;IACO,cAAc,CAAC,KAAa;QACpC,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAAgC;IACrE,OAAO,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* - Organize specs per project/team
|
|
15
15
|
* - Split tasks between repositories
|
|
16
16
|
*/
|
|
17
|
+
import { type ArchitectureChoice } from './prompt-consolidator.js';
|
|
17
18
|
import type { GitProvider, GitPlatformType } from './git-provider.js';
|
|
18
19
|
export type RepoArchitecture = 'single' | 'multi-repo' | 'monorepo' | 'parent';
|
|
19
20
|
export interface RepoStructureConfig {
|
|
@@ -47,12 +48,21 @@ export declare class RepoStructureManager {
|
|
|
47
48
|
constructor(projectPath: string, githubToken?: string);
|
|
48
49
|
/**
|
|
49
50
|
* Prompt user for repository structure decisions
|
|
51
|
+
*
|
|
52
|
+
* @param preSelectedArchitecture - Optional pre-selected architecture to skip duplicate prompts
|
|
50
53
|
*/
|
|
51
|
-
promptStructure(): Promise<RepoStructureConfig>;
|
|
54
|
+
promptStructure(preSelectedArchitecture?: ArchitectureChoice): Promise<RepoStructureConfig>;
|
|
52
55
|
/**
|
|
53
56
|
* Map ArchitectureChoice to internal RepoArchitecture (2 options)
|
|
54
57
|
*/
|
|
55
58
|
private mapArchitectureChoice;
|
|
59
|
+
/**
|
|
60
|
+
* Format architecture choice for display
|
|
61
|
+
*
|
|
62
|
+
* @param choice - Architecture choice
|
|
63
|
+
* @returns Human-readable format
|
|
64
|
+
*/
|
|
65
|
+
private formatArchitectureForDisplay;
|
|
56
66
|
/**
|
|
57
67
|
* Resume setup from saved state
|
|
58
68
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-structure-manager.d.ts","sourceRoot":"","sources":["../../../../src/core/repo-structure/repo-structure-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;
|
|
1
|
+
{"version":3,"file":"repo-structure-manager.d.ts","sourceRoot":"","sources":["../../../../src/core/repo-structure/repo-structure-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAcH,OAAO,EAML,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGtE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE/E,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,OAAO,EAAE,KAAK,GAAG,OAAO,CAAC;IACzB,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,SAAS,GAAG,QAAQ,CAAC;QACjC,cAAc,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,YAAY,EAAE,KAAK,CAAC;QAClB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,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