@task-shepherd/agent 1.0.8 → 1.0.12
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/cli/index.js +166 -161
- package/dist/index.js +1 -1
- package/dist/meta.json +1263 -86
- package/package.json +1 -2
- package/shared/dist/index.d.ts +0 -15
- package/shared/dist/index.js +0 -12
- package/shared/dist/mcp-client/client.d.ts +0 -18
- package/shared/dist/mcp-client/client.js +0 -49
- package/shared/dist/mcp-client/index.d.ts +0 -7
- package/shared/dist/mcp-client/index.js +0 -7
- package/shared/dist/mcp-client/types.d.ts +0 -822
- package/shared/dist/mcp-client/types.js +0 -193
- package/shared/dist/schema/index.d.ts +0 -189
- package/shared/dist/schema/index.js +0 -142
- package/shared/dist/schema/mcp-mappings.d.ts +0 -50
- package/shared/dist/schema/mcp-mappings.js +0 -563
- package/shared/dist/schema/validation.d.ts +0 -91
- package/shared/dist/schema/validation.js +0 -282
- package/shared/dist/work-queue/index.d.ts +0 -7
- package/shared/dist/work-queue/index.js +0 -7
- package/shared/dist/work-queue/types.d.ts +0 -147
- package/shared/dist/work-queue/types.js +0 -4
- package/shared/dist/work-queue/validation.d.ts +0 -24
- package/shared/dist/work-queue/validation.js +0 -160
- package/shared/dist/workspace/constants.d.ts +0 -148
- package/shared/dist/workspace/constants.js +0 -432
- package/shared/dist/workspace/index.d.ts +0 -10
- package/shared/dist/workspace/index.js +0 -10
- package/shared/dist/workspace/types.d.ts +0 -477
- package/shared/dist/workspace/types.js +0 -9
- package/shared/dist/workspace/utils.d.ts +0 -79
- package/shared/dist/workspace/utils.js +0 -334
- package/shared/dist/workspace/validation.d.ts +0 -1312
- package/shared/dist/workspace/validation.js +0 -467
- package/shared/graphql/generated-internal.ts +0 -3629
- package/shared/graphql/generated-public.ts +0 -773
- package/shared/graphql/generated.d.ts +0 -7456
- package/shared/graphql/generated.js +0 -11799
- package/shared/graphql/generated.ts +0 -27569
- package/shared/graphql/generated.ts.backup +0 -16531
- package/shared/graphql/generated.ts.working +0 -4828
- package/shared/graphql/introspection-internal.json +0 -15845
- package/shared/graphql/introspection-public.json +0 -9658
- package/shared/graphql/introspection.json +0 -44263
- package/shared/graphql/operations/ai-service.graphql +0 -131
- package/shared/graphql/operations/ai-work-queue.graphql +0 -31
- package/shared/graphql/operations/analytics.graphql +0 -283
- package/shared/graphql/operations/analytics.ts +0 -3
- package/shared/graphql/operations/api-keys.graphql +0 -126
- package/shared/graphql/operations/attachments.graphql +0 -53
- package/shared/graphql/operations/attachments.ts +0 -39
- package/shared/graphql/operations/audit.graphql +0 -46
- package/shared/graphql/operations/auth.graphql +0 -83
- package/shared/graphql/operations/claude-usage.graphql +0 -178
- package/shared/graphql/operations/comments.graphql +0 -4
- package/shared/graphql/operations/dashboard.graphql +0 -29
- package/shared/graphql/operations/development-plans.graphql +0 -408
- package/shared/graphql/operations/early-access.graphql.disabled +0 -21
- package/shared/graphql/operations/errors.graphql.disabled +0 -83
- package/shared/graphql/operations/internal-api.graphql +0 -931
- package/shared/graphql/operations/notifications.graphql +0 -4
- package/shared/graphql/operations/organization-invites.graphql.disabled +0 -32
- package/shared/graphql/operations/performance.graphql +0 -4
- package/shared/graphql/operations/project-reviews.graphql +0 -610
- package/shared/graphql/operations/projects.graphql +0 -98
- package/shared/graphql/operations/settings.graphql +0 -4
- package/shared/graphql/operations/stories.graphql +0 -113
- package/shared/graphql/operations/subscriptions.graphql +0 -235
- package/shared/graphql/operations/subscriptions.graphql.disabled +0 -96
- package/shared/graphql/operations/tasks.graphql +0 -257
- package/shared/graphql/operations/team.graphql +0 -111
- package/shared/graphql/operations/team.ts +0 -226
- package/shared/graphql/operations/time-tracking.graphql.disabled +0 -96
- package/shared/graphql/operations/work-queue.graphql +0 -210
- package/shared/graphql/operations/work-queue.graphql.disabled +0 -474
- package/shared/graphql/operations/workspace.graphql +0 -146
- package/shared/graphql/schema-internal.graphql +0 -1085
- package/shared/graphql/schema-public.graphql +0 -709
- package/shared/graphql/schema.graphql +0 -3473
- package/shared/package.json +0 -23
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workspace Configuration Constants
|
|
3
|
-
*
|
|
4
|
-
* Defines constants and default values for workspace configuration.
|
|
5
|
-
*/
|
|
6
|
-
import type { WorkspaceTemplate, AICapabilities, WorkspacePaths, SecurityConfig, DevelopmentConfig } from './types.js';
|
|
7
|
-
/**
|
|
8
|
-
* Configuration file constants
|
|
9
|
-
*/
|
|
10
|
-
export declare const WORKSPACE_CONFIG_VERSION = "1.0.0";
|
|
11
|
-
export declare const WORKSPACE_CONFIG_FILE = ".tasqhub-workspace.json";
|
|
12
|
-
export declare const WORKSPACE_LOCK_FILE = ".tasqhub-workspace.lock";
|
|
13
|
-
export declare const WORKSPACE_CACHE_DIR = ".tasqhub-cache";
|
|
14
|
-
/**
|
|
15
|
-
* Default AI capabilities
|
|
16
|
-
*/
|
|
17
|
-
export declare const DEFAULT_AI_CAPABILITIES: AICapabilities;
|
|
18
|
-
/**
|
|
19
|
-
* Default workspace paths
|
|
20
|
-
*/
|
|
21
|
-
export declare const DEFAULT_WORKSPACE_PATHS: WorkspacePaths;
|
|
22
|
-
/**
|
|
23
|
-
* Default security configuration
|
|
24
|
-
*/
|
|
25
|
-
export declare const DEFAULT_SECURITY_CONFIG: SecurityConfig;
|
|
26
|
-
/**
|
|
27
|
-
* Default development configuration
|
|
28
|
-
*/
|
|
29
|
-
export declare const DEFAULT_DEVELOPMENT_CONFIG: DevelopmentConfig;
|
|
30
|
-
/**
|
|
31
|
-
* Common service port ranges
|
|
32
|
-
*/
|
|
33
|
-
export declare const COMMON_SERVICE_PORTS: {
|
|
34
|
-
development: {
|
|
35
|
-
frontend: number[];
|
|
36
|
-
backend: number[];
|
|
37
|
-
database: number[];
|
|
38
|
-
cache: number[];
|
|
39
|
-
queue: number[];
|
|
40
|
-
monitoring: number[];
|
|
41
|
-
};
|
|
42
|
-
production: {
|
|
43
|
-
http: number[];
|
|
44
|
-
https: number[];
|
|
45
|
-
database: number[];
|
|
46
|
-
cache: number[];
|
|
47
|
-
queue: number[];
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Workspace templates
|
|
52
|
-
*/
|
|
53
|
-
export declare const WORKSPACE_TEMPLATES: Record<string, WorkspaceTemplate>;
|
|
54
|
-
/**
|
|
55
|
-
* Service discovery patterns
|
|
56
|
-
*/
|
|
57
|
-
export declare const SERVICE_DISCOVERY_PATTERNS: {
|
|
58
|
-
files: string[];
|
|
59
|
-
directories: string[];
|
|
60
|
-
portRanges: {
|
|
61
|
-
start: number;
|
|
62
|
-
end: number;
|
|
63
|
-
}[];
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Common workspace validation rules
|
|
67
|
-
*/
|
|
68
|
-
export declare const COMMON_VALIDATION_RULES: {
|
|
69
|
-
requiredServices: {
|
|
70
|
-
'full-stack': string[];
|
|
71
|
-
'api-only': string[];
|
|
72
|
-
'frontend-only': string[];
|
|
73
|
-
'ai-enhanced': string[];
|
|
74
|
-
};
|
|
75
|
-
portConflicts: {
|
|
76
|
-
severity: "warning";
|
|
77
|
-
exclusions: string[];
|
|
78
|
-
};
|
|
79
|
-
circularDependencies: {
|
|
80
|
-
severity: "error";
|
|
81
|
-
allowedPatterns: never[];
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Environment-specific defaults
|
|
86
|
-
*/
|
|
87
|
-
export declare const ENVIRONMENT_DEFAULTS: {
|
|
88
|
-
development: {
|
|
89
|
-
security: {
|
|
90
|
-
filePermissions: {
|
|
91
|
-
execute: boolean;
|
|
92
|
-
read: boolean;
|
|
93
|
-
write: boolean;
|
|
94
|
-
restricted: string[];
|
|
95
|
-
readOnly: string[];
|
|
96
|
-
};
|
|
97
|
-
networkPermissions: {
|
|
98
|
-
http: boolean;
|
|
99
|
-
https: boolean;
|
|
100
|
-
allowedDomains: string[];
|
|
101
|
-
blockedDomains: string[];
|
|
102
|
-
allowedPorts?: number[];
|
|
103
|
-
};
|
|
104
|
-
apiAccess?: {
|
|
105
|
-
allowedEndpoints: string[];
|
|
106
|
-
rateLimits?: Record<string, number>;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
production: {
|
|
111
|
-
security: {
|
|
112
|
-
filePermissions: {
|
|
113
|
-
write: boolean;
|
|
114
|
-
execute: boolean;
|
|
115
|
-
read: boolean;
|
|
116
|
-
restricted: string[];
|
|
117
|
-
readOnly: string[];
|
|
118
|
-
};
|
|
119
|
-
networkPermissions: {
|
|
120
|
-
allowedDomains: never[];
|
|
121
|
-
http: boolean;
|
|
122
|
-
https: boolean;
|
|
123
|
-
blockedDomains: string[];
|
|
124
|
-
allowedPorts?: number[];
|
|
125
|
-
};
|
|
126
|
-
apiAccess?: {
|
|
127
|
-
allowedEndpoints: string[];
|
|
128
|
-
rateLimits?: Record<string, number>;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
test: {
|
|
133
|
-
paths: {
|
|
134
|
-
excluded: string[];
|
|
135
|
-
root: string;
|
|
136
|
-
src: string[];
|
|
137
|
-
tests: string[];
|
|
138
|
-
docs: string[];
|
|
139
|
-
config: string[];
|
|
140
|
-
build: string[];
|
|
141
|
-
temp: string[];
|
|
142
|
-
logs: string[];
|
|
143
|
-
cache: string[];
|
|
144
|
-
assets: string[];
|
|
145
|
-
servicePaths?: Record<string, string[]>;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
};
|
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workspace Configuration Constants
|
|
3
|
-
*
|
|
4
|
-
* Defines constants and default values for workspace configuration.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Configuration file constants
|
|
8
|
-
*/
|
|
9
|
-
export const WORKSPACE_CONFIG_VERSION = '1.0.0';
|
|
10
|
-
export const WORKSPACE_CONFIG_FILE = '.tasqhub-workspace.json';
|
|
11
|
-
export const WORKSPACE_LOCK_FILE = '.tasqhub-workspace.lock';
|
|
12
|
-
export const WORKSPACE_CACHE_DIR = '.tasqhub-cache';
|
|
13
|
-
/**
|
|
14
|
-
* Default AI capabilities
|
|
15
|
-
*/
|
|
16
|
-
export const DEFAULT_AI_CAPABILITIES = {
|
|
17
|
-
maxConcurrentOperations: 3,
|
|
18
|
-
supportedAnalysisTypes: [
|
|
19
|
-
'project_review',
|
|
20
|
-
'development_plan',
|
|
21
|
-
'code_analysis',
|
|
22
|
-
'dependency_analysis',
|
|
23
|
-
'security_scan'
|
|
24
|
-
],
|
|
25
|
-
isolationLevel: 'moderate'
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Default workspace paths
|
|
29
|
-
*/
|
|
30
|
-
export const DEFAULT_WORKSPACE_PATHS = {
|
|
31
|
-
root: '.',
|
|
32
|
-
src: ['src', 'lib'],
|
|
33
|
-
tests: ['test', 'tests', '__tests__', 'spec'],
|
|
34
|
-
docs: ['docs', 'documentation'],
|
|
35
|
-
config: ['config', 'configs', '.config'],
|
|
36
|
-
build: ['build', 'dist', 'out'],
|
|
37
|
-
temp: ['tmp', 'temp', '.tmp'],
|
|
38
|
-
logs: ['logs', '.logs'],
|
|
39
|
-
cache: ['cache', '.cache', 'node_modules/.cache'],
|
|
40
|
-
assets: ['assets', 'public', 'static'],
|
|
41
|
-
excluded: [
|
|
42
|
-
'node_modules',
|
|
43
|
-
'.git',
|
|
44
|
-
'.env',
|
|
45
|
-
'.env.local',
|
|
46
|
-
'.env.production',
|
|
47
|
-
'.DS_Store',
|
|
48
|
-
'Thumbs.db',
|
|
49
|
-
'*.log',
|
|
50
|
-
'*.pid',
|
|
51
|
-
'*.seed',
|
|
52
|
-
'*.pid.lock'
|
|
53
|
-
]
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Default security configuration
|
|
57
|
-
*/
|
|
58
|
-
export const DEFAULT_SECURITY_CONFIG = {
|
|
59
|
-
filePermissions: {
|
|
60
|
-
read: true,
|
|
61
|
-
write: true,
|
|
62
|
-
execute: false,
|
|
63
|
-
restricted: [
|
|
64
|
-
'.env',
|
|
65
|
-
'.env.local',
|
|
66
|
-
'.env.production',
|
|
67
|
-
'*.key',
|
|
68
|
-
'*.pem',
|
|
69
|
-
'*.p12',
|
|
70
|
-
'*.pfx',
|
|
71
|
-
'id_rsa',
|
|
72
|
-
'id_ed25519'
|
|
73
|
-
],
|
|
74
|
-
readOnly: [
|
|
75
|
-
'package-lock.json',
|
|
76
|
-
'yarn.lock',
|
|
77
|
-
'pnpm-lock.yaml',
|
|
78
|
-
'Cargo.lock',
|
|
79
|
-
'go.sum'
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
networkPermissions: {
|
|
83
|
-
http: true,
|
|
84
|
-
https: true,
|
|
85
|
-
allowedDomains: [
|
|
86
|
-
'api.anthropic.com',
|
|
87
|
-
'api.openai.com',
|
|
88
|
-
'api.github.com',
|
|
89
|
-
'registry.npmjs.org',
|
|
90
|
-
'pypi.org',
|
|
91
|
-
'crates.io',
|
|
92
|
-
'pkg.go.dev'
|
|
93
|
-
],
|
|
94
|
-
blockedDomains: []
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Default development configuration
|
|
99
|
-
*/
|
|
100
|
-
export const DEFAULT_DEVELOPMENT_CONFIG = {
|
|
101
|
-
packageManager: 'npm',
|
|
102
|
-
scripts: {
|
|
103
|
-
start: 'npm start',
|
|
104
|
-
build: 'npm run build',
|
|
105
|
-
test: 'npm test',
|
|
106
|
-
lint: 'npm run lint',
|
|
107
|
-
typeCheck: 'npm run type-check'
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Common service port ranges
|
|
112
|
-
*/
|
|
113
|
-
export const COMMON_SERVICE_PORTS = {
|
|
114
|
-
development: {
|
|
115
|
-
frontend: [3000, 3001, 3002, 5173, 8080],
|
|
116
|
-
backend: [4000, 4001, 4002, 8000, 8001],
|
|
117
|
-
database: [5432, 5433, 3306, 27017],
|
|
118
|
-
cache: [6379, 6380, 11211],
|
|
119
|
-
queue: [5672, 15672, 9092],
|
|
120
|
-
monitoring: [9090, 3001, 16686]
|
|
121
|
-
},
|
|
122
|
-
production: {
|
|
123
|
-
http: [80, 8080],
|
|
124
|
-
https: [443, 8443],
|
|
125
|
-
database: [5432, 3306, 27017],
|
|
126
|
-
cache: [6379, 11211],
|
|
127
|
-
queue: [5672, 9092]
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Workspace templates
|
|
132
|
-
*/
|
|
133
|
-
export const WORKSPACE_TEMPLATES = {
|
|
134
|
-
minimal: {
|
|
135
|
-
id: 'minimal',
|
|
136
|
-
name: 'Minimal Workspace',
|
|
137
|
-
description: 'Basic workspace configuration with essential settings',
|
|
138
|
-
patterns: ['monorepo', 'multi-repo'],
|
|
139
|
-
config: {
|
|
140
|
-
workspace: {
|
|
141
|
-
pattern: 'monorepo',
|
|
142
|
-
version: WORKSPACE_CONFIG_VERSION
|
|
143
|
-
},
|
|
144
|
-
services: {},
|
|
145
|
-
ai: {
|
|
146
|
-
models: {
|
|
147
|
-
claude: {
|
|
148
|
-
provider: 'claude',
|
|
149
|
-
model: 'claude-3-5-sonnet-20241022',
|
|
150
|
-
apiKey: '${CLAUDE_API_KEY}'
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
defaultModel: 'claude',
|
|
154
|
-
capabilities: DEFAULT_AI_CAPABILITIES
|
|
155
|
-
},
|
|
156
|
-
paths: DEFAULT_WORKSPACE_PATHS,
|
|
157
|
-
development: DEFAULT_DEVELOPMENT_CONFIG,
|
|
158
|
-
security: DEFAULT_SECURITY_CONFIG
|
|
159
|
-
},
|
|
160
|
-
requiredServices: [],
|
|
161
|
-
optionalServices: ['backend', 'frontend', 'agent']
|
|
162
|
-
},
|
|
163
|
-
'full-stack': {
|
|
164
|
-
id: 'full-stack',
|
|
165
|
-
name: 'Full-Stack Application',
|
|
166
|
-
description: 'Complete full-stack workspace with frontend, backend, and database',
|
|
167
|
-
patterns: ['monorepo'],
|
|
168
|
-
config: {
|
|
169
|
-
workspace: {
|
|
170
|
-
pattern: 'monorepo',
|
|
171
|
-
version: WORKSPACE_CONFIG_VERSION
|
|
172
|
-
},
|
|
173
|
-
services: {
|
|
174
|
-
frontend: {
|
|
175
|
-
id: 'frontend',
|
|
176
|
-
name: 'Frontend Application',
|
|
177
|
-
url: 'http://localhost:3000',
|
|
178
|
-
port: 3000,
|
|
179
|
-
protocol: 'http',
|
|
180
|
-
technology: 'react',
|
|
181
|
-
environment: 'development',
|
|
182
|
-
dependencies: [
|
|
183
|
-
{ service: 'backend', type: 'required' }
|
|
184
|
-
]
|
|
185
|
-
},
|
|
186
|
-
backend: {
|
|
187
|
-
id: 'backend',
|
|
188
|
-
name: 'Backend API',
|
|
189
|
-
url: 'http://localhost:4000',
|
|
190
|
-
port: 4000,
|
|
191
|
-
protocol: 'http',
|
|
192
|
-
technology: 'nodejs',
|
|
193
|
-
environment: 'development',
|
|
194
|
-
dependencies: [
|
|
195
|
-
{ service: 'database', type: 'required' }
|
|
196
|
-
]
|
|
197
|
-
},
|
|
198
|
-
database: {
|
|
199
|
-
id: 'database',
|
|
200
|
-
name: 'PostgreSQL Database',
|
|
201
|
-
url: 'postgresql://localhost:5432',
|
|
202
|
-
port: 5432,
|
|
203
|
-
protocol: 'postgresql',
|
|
204
|
-
technology: 'database',
|
|
205
|
-
environment: 'development',
|
|
206
|
-
dependencies: []
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
ai: {
|
|
210
|
-
models: {
|
|
211
|
-
claude: {
|
|
212
|
-
provider: 'claude',
|
|
213
|
-
model: 'claude-3-5-sonnet-20241022',
|
|
214
|
-
apiKey: '${CLAUDE_API_KEY}'
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
defaultModel: 'claude',
|
|
218
|
-
capabilities: DEFAULT_AI_CAPABILITIES
|
|
219
|
-
},
|
|
220
|
-
paths: DEFAULT_WORKSPACE_PATHS,
|
|
221
|
-
development: DEFAULT_DEVELOPMENT_CONFIG,
|
|
222
|
-
security: DEFAULT_SECURITY_CONFIG
|
|
223
|
-
},
|
|
224
|
-
requiredServices: ['frontend', 'backend', 'database'],
|
|
225
|
-
optionalServices: ['cache', 'queue', 'agent']
|
|
226
|
-
},
|
|
227
|
-
'ai-enhanced': {
|
|
228
|
-
id: 'ai-enhanced',
|
|
229
|
-
name: 'AI-Enhanced Development',
|
|
230
|
-
description: 'Workspace optimized for AI-assisted development workflows',
|
|
231
|
-
patterns: ['monorepo', 'multi-repo'],
|
|
232
|
-
config: {
|
|
233
|
-
workspace: {
|
|
234
|
-
pattern: 'monorepo',
|
|
235
|
-
version: WORKSPACE_CONFIG_VERSION
|
|
236
|
-
},
|
|
237
|
-
services: {
|
|
238
|
-
'agent': {
|
|
239
|
-
id: 'agent',
|
|
240
|
-
name: 'AI Agent Service',
|
|
241
|
-
url: 'http://localhost:8547',
|
|
242
|
-
port: 8547,
|
|
243
|
-
protocol: 'http',
|
|
244
|
-
technology: 'nodejs',
|
|
245
|
-
environment: 'development',
|
|
246
|
-
dependencies: []
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
ai: {
|
|
250
|
-
models: {
|
|
251
|
-
claude: {
|
|
252
|
-
provider: 'claude',
|
|
253
|
-
model: 'claude-3-5-sonnet-20241022',
|
|
254
|
-
apiKey: '${CLAUDE_API_KEY}'
|
|
255
|
-
},
|
|
256
|
-
openai: {
|
|
257
|
-
provider: 'openai',
|
|
258
|
-
model: 'gpt-4',
|
|
259
|
-
apiKey: '${OPENAI_API_KEY}'
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
defaultModel: 'claude',
|
|
263
|
-
capabilities: {
|
|
264
|
-
...DEFAULT_AI_CAPABILITIES,
|
|
265
|
-
maxConcurrentOperations: 5,
|
|
266
|
-
supportedAnalysisTypes: [
|
|
267
|
-
...DEFAULT_AI_CAPABILITIES.supportedAnalysisTypes,
|
|
268
|
-
'code_generation',
|
|
269
|
-
'test_generation',
|
|
270
|
-
'documentation_generation',
|
|
271
|
-
'refactoring_suggestions'
|
|
272
|
-
]
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
paths: DEFAULT_WORKSPACE_PATHS,
|
|
276
|
-
development: DEFAULT_DEVELOPMENT_CONFIG,
|
|
277
|
-
security: DEFAULT_SECURITY_CONFIG
|
|
278
|
-
},
|
|
279
|
-
requiredServices: ['agent'],
|
|
280
|
-
optionalServices: ['frontend', 'backend', 'database']
|
|
281
|
-
},
|
|
282
|
-
microservices: {
|
|
283
|
-
id: 'microservices',
|
|
284
|
-
name: 'Microservices Architecture',
|
|
285
|
-
description: 'Multi-repository workspace for microservices architecture',
|
|
286
|
-
patterns: ['multi-repo', 'hybrid'],
|
|
287
|
-
config: {
|
|
288
|
-
workspace: {
|
|
289
|
-
pattern: 'multi-repo',
|
|
290
|
-
version: WORKSPACE_CONFIG_VERSION
|
|
291
|
-
},
|
|
292
|
-
services: {},
|
|
293
|
-
repositories: {
|
|
294
|
-
'api-gateway': {
|
|
295
|
-
id: 'api-gateway',
|
|
296
|
-
name: 'API Gateway',
|
|
297
|
-
url: 'https://github.com/org/api-gateway.git',
|
|
298
|
-
path: './services/api-gateway',
|
|
299
|
-
branch: 'main',
|
|
300
|
-
type: 'service',
|
|
301
|
-
services: ['api-gateway']
|
|
302
|
-
},
|
|
303
|
-
'user-service': {
|
|
304
|
-
id: 'user-service',
|
|
305
|
-
name: 'User Service',
|
|
306
|
-
url: 'https://github.com/org/user-service.git',
|
|
307
|
-
path: './services/user-service',
|
|
308
|
-
branch: 'main',
|
|
309
|
-
type: 'service',
|
|
310
|
-
services: ['user-service']
|
|
311
|
-
},
|
|
312
|
-
'shared-lib': {
|
|
313
|
-
id: 'shared-lib',
|
|
314
|
-
name: 'Shared Library',
|
|
315
|
-
url: 'https://github.com/org/shared-lib.git',
|
|
316
|
-
path: './shared',
|
|
317
|
-
branch: 'main',
|
|
318
|
-
type: 'library',
|
|
319
|
-
services: []
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
ai: {
|
|
323
|
-
models: {
|
|
324
|
-
claude: {
|
|
325
|
-
provider: 'claude',
|
|
326
|
-
model: 'claude-3-5-sonnet-20241022',
|
|
327
|
-
apiKey: '${CLAUDE_API_KEY}'
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
defaultModel: 'claude',
|
|
331
|
-
capabilities: DEFAULT_AI_CAPABILITIES
|
|
332
|
-
},
|
|
333
|
-
paths: DEFAULT_WORKSPACE_PATHS,
|
|
334
|
-
development: DEFAULT_DEVELOPMENT_CONFIG,
|
|
335
|
-
security: DEFAULT_SECURITY_CONFIG
|
|
336
|
-
},
|
|
337
|
-
requiredServices: [],
|
|
338
|
-
optionalServices: ['api-gateway', 'user-service', 'product-service', 'order-service']
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
/**
|
|
342
|
-
* Service discovery patterns
|
|
343
|
-
*/
|
|
344
|
-
export const SERVICE_DISCOVERY_PATTERNS = {
|
|
345
|
-
files: [
|
|
346
|
-
'package.json',
|
|
347
|
-
'Dockerfile',
|
|
348
|
-
'docker-compose.yml',
|
|
349
|
-
'docker-compose.yaml',
|
|
350
|
-
'Cargo.toml',
|
|
351
|
-
'go.mod',
|
|
352
|
-
'pom.xml',
|
|
353
|
-
'build.gradle',
|
|
354
|
-
'requirements.txt',
|
|
355
|
-
'pyproject.toml'
|
|
356
|
-
],
|
|
357
|
-
directories: [
|
|
358
|
-
'src',
|
|
359
|
-
'app',
|
|
360
|
-
'services',
|
|
361
|
-
'packages',
|
|
362
|
-
'apps',
|
|
363
|
-
'microservices',
|
|
364
|
-
'lambda',
|
|
365
|
-
'functions'
|
|
366
|
-
],
|
|
367
|
-
portRanges: [
|
|
368
|
-
{ start: 3000, end: 3010 }, // Frontend development servers
|
|
369
|
-
{ start: 4000, end: 4010 }, // Backend API servers
|
|
370
|
-
{ start: 5000, end: 5010 }, // Additional services
|
|
371
|
-
{ start: 8000, end: 8090 } // Common web servers
|
|
372
|
-
]
|
|
373
|
-
};
|
|
374
|
-
/**
|
|
375
|
-
* Common workspace validation rules
|
|
376
|
-
*/
|
|
377
|
-
export const COMMON_VALIDATION_RULES = {
|
|
378
|
-
requiredServices: {
|
|
379
|
-
'full-stack': ['frontend', 'backend', 'database'],
|
|
380
|
-
'api-only': ['backend', 'database'],
|
|
381
|
-
'frontend-only': ['frontend'],
|
|
382
|
-
'ai-enhanced': ['agent']
|
|
383
|
-
},
|
|
384
|
-
portConflicts: {
|
|
385
|
-
severity: 'warning',
|
|
386
|
-
exclusions: ['database', 'cache'] // These can share ports in different environments
|
|
387
|
-
},
|
|
388
|
-
circularDependencies: {
|
|
389
|
-
severity: 'error',
|
|
390
|
-
allowedPatterns: [] // No circular dependencies allowed by default
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
/**
|
|
394
|
-
* Environment-specific defaults
|
|
395
|
-
*/
|
|
396
|
-
export const ENVIRONMENT_DEFAULTS = {
|
|
397
|
-
development: {
|
|
398
|
-
security: {
|
|
399
|
-
...DEFAULT_SECURITY_CONFIG,
|
|
400
|
-
filePermissions: {
|
|
401
|
-
...DEFAULT_SECURITY_CONFIG.filePermissions,
|
|
402
|
-
execute: true // Allow execution in development
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
production: {
|
|
407
|
-
security: {
|
|
408
|
-
...DEFAULT_SECURITY_CONFIG,
|
|
409
|
-
filePermissions: {
|
|
410
|
-
...DEFAULT_SECURITY_CONFIG.filePermissions,
|
|
411
|
-
write: false, // Read-only in production
|
|
412
|
-
execute: false
|
|
413
|
-
},
|
|
414
|
-
networkPermissions: {
|
|
415
|
-
...DEFAULT_SECURITY_CONFIG.networkPermissions,
|
|
416
|
-
allowedDomains: [] // Restrict domains in production
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
},
|
|
420
|
-
test: {
|
|
421
|
-
paths: {
|
|
422
|
-
...DEFAULT_WORKSPACE_PATHS,
|
|
423
|
-
excluded: [
|
|
424
|
-
...DEFAULT_WORKSPACE_PATHS.excluded,
|
|
425
|
-
'coverage',
|
|
426
|
-
'test-results',
|
|
427
|
-
'*.test.js',
|
|
428
|
-
'*.spec.js'
|
|
429
|
-
]
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Comprehensive Workspace Configuration Types and Validation
|
|
3
|
-
*
|
|
4
|
-
* This module defines the core workspace configuration types that support
|
|
5
|
-
* monorepo, multi-repo, and hybrid patterns across the TasqHub ecosystem.
|
|
6
|
-
*/
|
|
7
|
-
export * from './types.js';
|
|
8
|
-
export * from './validation.js';
|
|
9
|
-
export * from './constants.js';
|
|
10
|
-
export * from './utils.js';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Comprehensive Workspace Configuration Types and Validation
|
|
3
|
-
*
|
|
4
|
-
* This module defines the core workspace configuration types that support
|
|
5
|
-
* monorepo, multi-repo, and hybrid patterns across the TasqHub ecosystem.
|
|
6
|
-
*/
|
|
7
|
-
export * from './types.js';
|
|
8
|
-
export * from './validation.js';
|
|
9
|
-
export * from './constants.js';
|
|
10
|
-
export * from './utils.js';
|