workflow-agent-cli 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-RDVTKGQV.js +165 -0
- package/dist/chunk-RDVTKGQV.js.map +1 -0
- package/dist/chunk-YI3LBZ7I.js +1425 -0
- package/dist/chunk-YI3LBZ7I.js.map +1 -0
- package/dist/cli/index.js +380 -2259
- package/dist/cli/index.js.map +1 -1
- package/dist/config/index.d.ts +3 -8
- package/dist/config/index.js +3 -9
- package/dist/index.d.ts +114 -2
- package/dist/index.js +25 -9
- package/dist/schema-OJg7YAI_.d.ts +181 -0
- package/dist/validators/index.d.ts +1 -1
- package/package.json +4 -9
- package/dist/chunk-JCDT4363.js +0 -339
- package/dist/chunk-JCDT4363.js.map +0 -1
- package/dist/schema-Bdv6BQqI.d.ts +0 -437
package/dist/config/index.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { W as WorkflowConfig } from '../schema-
|
|
2
|
-
export { B as BranchType, C as ConventionalType,
|
|
1
|
+
import { W as WorkflowConfig } from '../schema-OJg7YAI_.js';
|
|
2
|
+
export { B as BranchType, C as ConventionalType, S as Scope, a as WorkflowConfigSchema } from '../schema-OJg7YAI_.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare function loadConfig(cwd?: string): Promise<WorkflowConfig | null>;
|
|
6
|
-
declare function validateConfig(cwd?: string): Promise<{
|
|
7
|
-
valid: boolean;
|
|
8
|
-
errors: string[];
|
|
9
|
-
warnings: string[];
|
|
10
|
-
}>;
|
|
11
6
|
declare function hasConfig(cwd?: string): boolean;
|
|
12
7
|
|
|
13
|
-
export { WorkflowConfig, hasConfig, loadConfig
|
|
8
|
+
export { WorkflowConfig, hasConfig, loadConfig };
|
package/dist/config/index.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
DEFAULT_RESERVED_SCOPE_NAMES,
|
|
3
2
|
WorkflowConfigSchema,
|
|
4
3
|
hasConfig,
|
|
5
|
-
loadConfig
|
|
6
|
-
|
|
7
|
-
validateScopeName
|
|
8
|
-
} from "../chunk-JCDT4363.js";
|
|
4
|
+
loadConfig
|
|
5
|
+
} from "../chunk-RDVTKGQV.js";
|
|
9
6
|
export {
|
|
10
|
-
DEFAULT_RESERVED_SCOPE_NAMES,
|
|
11
7
|
WorkflowConfigSchema,
|
|
12
8
|
hasConfig,
|
|
13
|
-
loadConfig
|
|
14
|
-
validateConfig,
|
|
15
|
-
validateScopeName
|
|
9
|
+
loadConfig
|
|
16
10
|
};
|
|
17
11
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,116 @@
|
|
|
1
|
-
export { hasConfig, loadConfig
|
|
1
|
+
export { hasConfig, loadConfig } from './config/index.js';
|
|
2
2
|
export { ValidationResult, discoverCustomScopes, getAllScopes, invalidateCustomScopesCache, validateBranchName, validateCommitMessage, validatePRTitle } from './validators/index.js';
|
|
3
|
-
export { B as BranchType, C as ConventionalType,
|
|
3
|
+
export { B as BranchType, C as ConventionalType, S as Scope, W as WorkflowConfig, a as WorkflowConfigSchema } from './schema-OJg7YAI_.js';
|
|
4
4
|
import 'zod';
|
|
5
|
+
|
|
6
|
+
interface CheckDefinition {
|
|
7
|
+
name: string;
|
|
8
|
+
displayName: string;
|
|
9
|
+
command: string;
|
|
10
|
+
args: string[];
|
|
11
|
+
fixCommand?: string;
|
|
12
|
+
fixArgs?: string[];
|
|
13
|
+
canAutoFix: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface CheckResult {
|
|
16
|
+
check: CheckDefinition;
|
|
17
|
+
success: boolean;
|
|
18
|
+
output: string;
|
|
19
|
+
error?: string;
|
|
20
|
+
duration: number;
|
|
21
|
+
}
|
|
22
|
+
interface RunAllChecksResult {
|
|
23
|
+
success: boolean;
|
|
24
|
+
results: CheckResult[];
|
|
25
|
+
totalAttempts: number;
|
|
26
|
+
fixesApplied: number;
|
|
27
|
+
pendingFixes?: Array<{
|
|
28
|
+
check: CheckDefinition;
|
|
29
|
+
command: string;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
type ProgressType = "info" | "success" | "error" | "warning";
|
|
33
|
+
interface CheckRunnerOptions {
|
|
34
|
+
maxRetries?: number;
|
|
35
|
+
autoFix?: boolean;
|
|
36
|
+
dryRun?: boolean;
|
|
37
|
+
onProgress?: (message: string, type: ProgressType) => void;
|
|
38
|
+
}
|
|
39
|
+
declare const QUALITY_CHECKS: CheckDefinition[];
|
|
40
|
+
declare function runCheck(check: CheckDefinition, cwd: string): Promise<CheckResult>;
|
|
41
|
+
declare function applyFix(check: CheckDefinition, cwd: string): Promise<{
|
|
42
|
+
success: boolean;
|
|
43
|
+
output: string;
|
|
44
|
+
}>;
|
|
45
|
+
declare function runAllChecks(cwd: string, options?: CheckRunnerOptions): Promise<RunAllChecksResult>;
|
|
46
|
+
declare function hasUncommittedChanges(cwd: string): Promise<boolean>;
|
|
47
|
+
declare function stageAllChanges(cwd: string): Promise<boolean>;
|
|
48
|
+
|
|
49
|
+
type PackageManager = "npm" | "pnpm" | "yarn" | "bun";
|
|
50
|
+
|
|
51
|
+
interface ProjectAnalysis {
|
|
52
|
+
packageManager: PackageManager;
|
|
53
|
+
isMonorepo: boolean;
|
|
54
|
+
isTypeScript: boolean;
|
|
55
|
+
framework: FrameworkType;
|
|
56
|
+
existing: ExistingConfigs;
|
|
57
|
+
scripts: ExistingScripts;
|
|
58
|
+
setupPlans: SetupPlan[];
|
|
59
|
+
}
|
|
60
|
+
interface ExistingConfigs {
|
|
61
|
+
typescript: boolean;
|
|
62
|
+
eslint: boolean;
|
|
63
|
+
eslintFlat: boolean;
|
|
64
|
+
prettier: boolean;
|
|
65
|
+
vitest: boolean;
|
|
66
|
+
jest: boolean;
|
|
67
|
+
husky: boolean;
|
|
68
|
+
simpleGitHooks: boolean;
|
|
69
|
+
githubActions: boolean;
|
|
70
|
+
}
|
|
71
|
+
interface ExistingScripts {
|
|
72
|
+
build: boolean;
|
|
73
|
+
test: boolean;
|
|
74
|
+
lint: boolean;
|
|
75
|
+
format: boolean;
|
|
76
|
+
typecheck: boolean;
|
|
77
|
+
verify: boolean;
|
|
78
|
+
}
|
|
79
|
+
interface SetupPlan {
|
|
80
|
+
name: string;
|
|
81
|
+
description: string;
|
|
82
|
+
priority: "high" | "medium" | "low";
|
|
83
|
+
changes: ConfigChange[];
|
|
84
|
+
dependencies: string[];
|
|
85
|
+
devDependencies: string[];
|
|
86
|
+
}
|
|
87
|
+
interface ConfigChange {
|
|
88
|
+
type: "add" | "modify" | "unchanged";
|
|
89
|
+
file: string;
|
|
90
|
+
key?: string;
|
|
91
|
+
oldValue?: unknown;
|
|
92
|
+
newValue?: unknown;
|
|
93
|
+
description: string;
|
|
94
|
+
}
|
|
95
|
+
interface SetupResult {
|
|
96
|
+
success: boolean;
|
|
97
|
+
name: string;
|
|
98
|
+
message: string;
|
|
99
|
+
filesCreated: string[];
|
|
100
|
+
filesUpdated: string[];
|
|
101
|
+
packagesInstalled: string[];
|
|
102
|
+
}
|
|
103
|
+
interface AuditReport {
|
|
104
|
+
analysis: ProjectAnalysis;
|
|
105
|
+
totalChanges: number;
|
|
106
|
+
allDependencies: string[];
|
|
107
|
+
allDevDependencies: string[];
|
|
108
|
+
plans: SetupPlan[];
|
|
109
|
+
}
|
|
110
|
+
type FrameworkType = "nextjs" | "remix" | "react" | "vue" | "nuxt" | "svelte" | "node" | "express" | "hono" | "shopify" | "unknown";
|
|
111
|
+
declare function analyzeProject(projectPath?: string): Promise<ProjectAnalysis>;
|
|
112
|
+
declare function generateAuditReport(projectPath?: string): Promise<AuditReport>;
|
|
113
|
+
declare function formatAuditReport(report: AuditReport): string;
|
|
114
|
+
declare function runAllSetups(projectPath?: string, onProgress?: (step: string, status: "start" | "done" | "error") => void): Promise<SetupResult[]>;
|
|
115
|
+
|
|
116
|
+
export { type AuditReport, type CheckDefinition, type CheckResult, type CheckRunnerOptions, type ConfigChange, type ExistingConfigs, type ExistingScripts, type FrameworkType, type ProgressType, type ProjectAnalysis, QUALITY_CHECKS, type RunAllChecksResult, type SetupPlan, type SetupResult, analyzeProject, applyFix, formatAuditReport, generateAuditReport, hasUncommittedChanges, runAllChecks, runAllSetups, runCheck, stageAllChanges };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
QUALITY_CHECKS,
|
|
3
|
+
analyzeProject,
|
|
4
|
+
applyFix,
|
|
5
|
+
formatAuditReport,
|
|
6
|
+
generateAuditReport,
|
|
7
|
+
hasUncommittedChanges,
|
|
8
|
+
runAllChecks,
|
|
9
|
+
runAllSetups,
|
|
10
|
+
runCheck,
|
|
11
|
+
stageAllChanges
|
|
12
|
+
} from "./chunk-YI3LBZ7I.js";
|
|
1
13
|
import {
|
|
2
14
|
discoverCustomScopes,
|
|
3
15
|
getAllScopes,
|
|
@@ -7,25 +19,29 @@ import {
|
|
|
7
19
|
validatePRTitle
|
|
8
20
|
} from "./chunk-NMHWD2GA.js";
|
|
9
21
|
import {
|
|
10
|
-
DEFAULT_RESERVED_SCOPE_NAMES,
|
|
11
22
|
WorkflowConfigSchema,
|
|
12
23
|
hasConfig,
|
|
13
|
-
loadConfig
|
|
14
|
-
|
|
15
|
-
validateScopeName
|
|
16
|
-
} from "./chunk-JCDT4363.js";
|
|
24
|
+
loadConfig
|
|
25
|
+
} from "./chunk-RDVTKGQV.js";
|
|
17
26
|
export {
|
|
18
|
-
|
|
27
|
+
QUALITY_CHECKS,
|
|
19
28
|
WorkflowConfigSchema,
|
|
29
|
+
analyzeProject,
|
|
30
|
+
applyFix,
|
|
20
31
|
discoverCustomScopes,
|
|
32
|
+
formatAuditReport,
|
|
33
|
+
generateAuditReport,
|
|
21
34
|
getAllScopes,
|
|
22
35
|
hasConfig,
|
|
36
|
+
hasUncommittedChanges,
|
|
23
37
|
invalidateCustomScopesCache,
|
|
24
38
|
loadConfig,
|
|
39
|
+
runAllChecks,
|
|
40
|
+
runAllSetups,
|
|
41
|
+
runCheck,
|
|
42
|
+
stageAllChanges,
|
|
25
43
|
validateBranchName,
|
|
26
44
|
validateCommitMessage,
|
|
27
|
-
|
|
28
|
-
validatePRTitle,
|
|
29
|
-
validateScopeName
|
|
45
|
+
validatePRTitle
|
|
30
46
|
};
|
|
31
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ScopeSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
5
|
+
description: z.ZodString;
|
|
6
|
+
emoji: z.ZodOptional<z.ZodString>;
|
|
7
|
+
category: z.ZodOptional<z.ZodEnum<["auth", "features", "infrastructure", "documentation", "testing", "performance", "other"]>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
emoji?: string | undefined;
|
|
12
|
+
category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
emoji?: string | undefined;
|
|
17
|
+
category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
declare const BranchTypeSchema: z.ZodEnum<["feature", "bugfix", "hotfix", "chore", "refactor", "docs", "test", "release"]>;
|
|
20
|
+
declare const ConventionalTypeSchema: z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "perf", "style", "ci", "build", "revert"]>;
|
|
21
|
+
declare const WorkflowConfigSchema: z.ZodObject<{
|
|
22
|
+
projectName: z.ZodString;
|
|
23
|
+
scopes: z.ZodArray<z.ZodObject<{
|
|
24
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
25
|
+
description: z.ZodString;
|
|
26
|
+
emoji: z.ZodOptional<z.ZodString>;
|
|
27
|
+
category: z.ZodOptional<z.ZodEnum<["auth", "features", "infrastructure", "documentation", "testing", "performance", "other"]>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
emoji?: string | undefined;
|
|
32
|
+
category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
emoji?: string | undefined;
|
|
37
|
+
category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
|
|
38
|
+
}>, "many">;
|
|
39
|
+
branchTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["feature", "bugfix", "hotfix", "chore", "refactor", "docs", "test", "release"]>, "many">>;
|
|
40
|
+
conventionalTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["feat", "fix", "refactor", "chore", "docs", "test", "perf", "style", "ci", "build", "revert"]>, "many">>;
|
|
41
|
+
enforcement: z.ZodDefault<z.ZodEnum<["strict", "advisory", "learning"]>>;
|
|
42
|
+
language: z.ZodDefault<z.ZodString>;
|
|
43
|
+
analytics: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
+
shareAnonymous: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
shareAnonymous: boolean;
|
|
49
|
+
}, {
|
|
50
|
+
enabled?: boolean | undefined;
|
|
51
|
+
shareAnonymous?: boolean | undefined;
|
|
52
|
+
}>>;
|
|
53
|
+
adapter: z.ZodOptional<z.ZodString>;
|
|
54
|
+
syncRemote: z.ZodOptional<z.ZodString>;
|
|
55
|
+
ci: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
provider: z.ZodDefault<z.ZodEnum<["github", "gitlab", "azure"]>>;
|
|
57
|
+
nodeVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
58
|
+
defaultBranch: z.ZodDefault<z.ZodString>;
|
|
59
|
+
checks: z.ZodOptional<z.ZodArray<z.ZodEnum<["lint", "typecheck", "format", "build", "test"]>, "many">>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
provider: "github" | "gitlab" | "azure";
|
|
62
|
+
defaultBranch: string;
|
|
63
|
+
nodeVersions?: string[] | undefined;
|
|
64
|
+
checks?: ("build" | "test" | "lint" | "typecheck" | "format")[] | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
provider?: "github" | "gitlab" | "azure" | undefined;
|
|
67
|
+
nodeVersions?: string[] | undefined;
|
|
68
|
+
defaultBranch?: string | undefined;
|
|
69
|
+
checks?: ("build" | "test" | "lint" | "typecheck" | "format")[] | undefined;
|
|
70
|
+
}>>;
|
|
71
|
+
hooks: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
preCommit: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
73
|
+
commitMsg: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
74
|
+
prePush: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
preCommit?: string[] | undefined;
|
|
77
|
+
commitMsg?: string[] | undefined;
|
|
78
|
+
prePush?: string[] | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
preCommit?: string[] | undefined;
|
|
81
|
+
commitMsg?: string[] | undefined;
|
|
82
|
+
prePush?: string[] | undefined;
|
|
83
|
+
}>>;
|
|
84
|
+
guidelines: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
mandatoryTemplates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
86
|
+
optionalTemplates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
87
|
+
customTemplatesDir: z.ZodOptional<z.ZodString>;
|
|
88
|
+
additionalMandatory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
89
|
+
optionalOverrides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
mandatoryTemplates?: string[] | undefined;
|
|
92
|
+
optionalTemplates?: string[] | undefined;
|
|
93
|
+
customTemplatesDir?: string | undefined;
|
|
94
|
+
additionalMandatory?: string[] | undefined;
|
|
95
|
+
optionalOverrides?: string[] | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
mandatoryTemplates?: string[] | undefined;
|
|
98
|
+
optionalTemplates?: string[] | undefined;
|
|
99
|
+
customTemplatesDir?: string | undefined;
|
|
100
|
+
additionalMandatory?: string[] | undefined;
|
|
101
|
+
optionalOverrides?: string[] | undefined;
|
|
102
|
+
}>>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
projectName: string;
|
|
105
|
+
scopes: {
|
|
106
|
+
name: string;
|
|
107
|
+
description: string;
|
|
108
|
+
emoji?: string | undefined;
|
|
109
|
+
category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
|
|
110
|
+
}[];
|
|
111
|
+
enforcement: "strict" | "advisory" | "learning";
|
|
112
|
+
language: string;
|
|
113
|
+
ci?: {
|
|
114
|
+
provider: "github" | "gitlab" | "azure";
|
|
115
|
+
defaultBranch: string;
|
|
116
|
+
nodeVersions?: string[] | undefined;
|
|
117
|
+
checks?: ("build" | "test" | "lint" | "typecheck" | "format")[] | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
branchTypes?: ("test" | "docs" | "feature" | "bugfix" | "hotfix" | "chore" | "refactor" | "release")[] | undefined;
|
|
120
|
+
conventionalTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
|
|
121
|
+
analytics?: {
|
|
122
|
+
enabled: boolean;
|
|
123
|
+
shareAnonymous: boolean;
|
|
124
|
+
} | undefined;
|
|
125
|
+
adapter?: string | undefined;
|
|
126
|
+
syncRemote?: string | undefined;
|
|
127
|
+
hooks?: {
|
|
128
|
+
preCommit?: string[] | undefined;
|
|
129
|
+
commitMsg?: string[] | undefined;
|
|
130
|
+
prePush?: string[] | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
guidelines?: {
|
|
133
|
+
mandatoryTemplates?: string[] | undefined;
|
|
134
|
+
optionalTemplates?: string[] | undefined;
|
|
135
|
+
customTemplatesDir?: string | undefined;
|
|
136
|
+
additionalMandatory?: string[] | undefined;
|
|
137
|
+
optionalOverrides?: string[] | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
projectName: string;
|
|
141
|
+
scopes: {
|
|
142
|
+
name: string;
|
|
143
|
+
description: string;
|
|
144
|
+
emoji?: string | undefined;
|
|
145
|
+
category?: "auth" | "features" | "infrastructure" | "documentation" | "testing" | "performance" | "other" | undefined;
|
|
146
|
+
}[];
|
|
147
|
+
ci?: {
|
|
148
|
+
provider?: "github" | "gitlab" | "azure" | undefined;
|
|
149
|
+
nodeVersions?: string[] | undefined;
|
|
150
|
+
defaultBranch?: string | undefined;
|
|
151
|
+
checks?: ("build" | "test" | "lint" | "typecheck" | "format")[] | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
branchTypes?: ("test" | "docs" | "feature" | "bugfix" | "hotfix" | "chore" | "refactor" | "release")[] | undefined;
|
|
154
|
+
conventionalTypes?: ("build" | "test" | "docs" | "ci" | "chore" | "refactor" | "feat" | "fix" | "perf" | "style" | "revert")[] | undefined;
|
|
155
|
+
enforcement?: "strict" | "advisory" | "learning" | undefined;
|
|
156
|
+
language?: string | undefined;
|
|
157
|
+
analytics?: {
|
|
158
|
+
enabled?: boolean | undefined;
|
|
159
|
+
shareAnonymous?: boolean | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
adapter?: string | undefined;
|
|
162
|
+
syncRemote?: string | undefined;
|
|
163
|
+
hooks?: {
|
|
164
|
+
preCommit?: string[] | undefined;
|
|
165
|
+
commitMsg?: string[] | undefined;
|
|
166
|
+
prePush?: string[] | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
guidelines?: {
|
|
169
|
+
mandatoryTemplates?: string[] | undefined;
|
|
170
|
+
optionalTemplates?: string[] | undefined;
|
|
171
|
+
customTemplatesDir?: string | undefined;
|
|
172
|
+
additionalMandatory?: string[] | undefined;
|
|
173
|
+
optionalOverrides?: string[] | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
type Scope = z.infer<typeof ScopeSchema>;
|
|
177
|
+
type BranchType = z.infer<typeof BranchTypeSchema>;
|
|
178
|
+
type ConventionalType = z.infer<typeof ConventionalTypeSchema>;
|
|
179
|
+
type WorkflowConfig = z.infer<typeof WorkflowConfigSchema>;
|
|
180
|
+
|
|
181
|
+
export { type BranchType as B, type ConventionalType as C, type Scope as S, type WorkflowConfig as W, WorkflowConfigSchema as a };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow-agent-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "A self-evolving workflow management system for AI agent development",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"workflow",
|
|
@@ -52,13 +52,11 @@
|
|
|
52
52
|
"fast-glob": "^3.3.2",
|
|
53
53
|
"mustache": "^4.2.0",
|
|
54
54
|
"picocolors": "^1.0.0",
|
|
55
|
-
"prompts": "^2.4.2",
|
|
56
55
|
"zod": "^3.22.4"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"@types/mustache": "^4.2.5",
|
|
60
59
|
"@types/node": "^20.11.5",
|
|
61
|
-
"@types/prompts": "^2.4.9",
|
|
62
60
|
"eslint": "^8.56.0",
|
|
63
61
|
"tsup": "^8.0.1",
|
|
64
62
|
"typescript": "^5.3.3",
|
|
@@ -73,12 +71,9 @@
|
|
|
73
71
|
"scripts": {
|
|
74
72
|
"build": "tsup",
|
|
75
73
|
"dev": "tsup --watch",
|
|
76
|
-
"test": "
|
|
77
|
-
"test:
|
|
78
|
-
"
|
|
79
|
-
"test:unit": "vitest run --exclude 'src/**/*.e2e.test.ts'",
|
|
80
|
-
"test:e2e": "vitest run 'src/**/*.e2e.test.ts'",
|
|
81
|
-
"lint": "exit 0",
|
|
74
|
+
"test": "echo \"No tests yet\"",
|
|
75
|
+
"test:coverage": "echo \"No tests yet\"",
|
|
76
|
+
"lint": "echo \"ESLint not configured - skipping\"",
|
|
82
77
|
"typecheck": "tsc --noEmit",
|
|
83
78
|
"clean": "rm -rf dist",
|
|
84
79
|
"postinstall": "node dist/scripts/postinstall.js || true"
|