@idea1/cli 1.2.2 → 1.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/README.md +19 -152
- package/dist/cli/parser.d.ts +20 -0
- package/dist/cli/parser.d.ts.map +1 -0
- package/dist/cli/parser.js +105 -0
- package/dist/cli/parser.js.map +1 -0
- package/dist/cli/resolver.d.ts +16 -0
- package/dist/cli/resolver.d.ts.map +1 -0
- package/dist/cli/resolver.js +72 -0
- package/dist/cli/resolver.js.map +1 -0
- package/dist/cli.d.ts +0 -5
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +38 -357
- package/dist/cli.js.map +1 -1
- package/dist/commands/approve-pr.d.ts.map +1 -1
- package/dist/commands/approve-pr.js +13 -28
- package/dist/commands/approve-pr.js.map +1 -1
- package/dist/commands/close-worktree.d.ts.map +1 -1
- package/dist/commands/close-worktree.js +29 -42
- package/dist/commands/close-worktree.js.map +1 -1
- package/dist/commands/create-worktree.d.ts.map +1 -1
- package/dist/commands/create-worktree.js +34 -55
- package/dist/commands/create-worktree.js.map +1 -1
- package/dist/commands/help.d.ts.map +1 -1
- package/dist/commands/help.js +107 -68
- package/dist/commands/help.js.map +1 -1
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +10 -8
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/next-workflow-step.js +4 -4
- package/dist/commands/next-workflow-step.js.map +1 -1
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +45 -54
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/ready-for-approval.d.ts.map +1 -1
- package/dist/commands/ready-for-approval.js +25 -62
- package/dist/commands/ready-for-approval.js.map +1 -1
- package/dist/commands/release.d.ts.map +1 -1
- package/dist/commands/release.js +47 -98
- package/dist/commands/release.js.map +1 -1
- package/dist/commands/start-dev-implementation.d.ts.map +1 -1
- package/dist/commands/start-dev-implementation.js +41 -43
- package/dist/commands/start-dev-implementation.js.map +1 -1
- package/dist/commands/start-project-item.d.ts.map +1 -1
- package/dist/commands/start-project-item.js +214 -150
- package/dist/commands/start-project-item.js.map +1 -1
- package/dist/commands/update-branch.d.ts +3 -0
- package/dist/commands/update-branch.d.ts.map +1 -0
- package/dist/commands/update-branch.js +191 -0
- package/dist/commands/update-branch.js.map +1 -0
- package/dist/commands/update-docs.js +1 -1
- package/dist/commands/update-docs.js.map +1 -1
- package/dist/index.js +0 -0
- package/dist/interactive.d.ts +19 -0
- package/dist/interactive.d.ts.map +1 -1
- package/dist/interactive.js +14 -56
- package/dist/interactive.js.map +1 -1
- package/dist/lib/settings.d.ts +18 -0
- package/dist/lib/settings.d.ts.map +1 -1
- package/dist/lib/settings.js +30 -0
- package/dist/lib/settings.js.map +1 -1
- package/dist/services/claude.d.ts +5 -0
- package/dist/services/claude.d.ts.map +1 -1
- package/dist/services/claude.js +16 -0
- package/dist/services/claude.js.map +1 -1
- package/dist/services/config.d.ts +8 -0
- package/dist/services/config.d.ts.map +1 -1
- package/dist/services/config.js +14 -1
- package/dist/services/config.js.map +1 -1
- package/dist/services/git.d.ts +49 -0
- package/dist/services/git.d.ts.map +1 -1
- package/dist/services/git.js +129 -2
- package/dist/services/git.js.map +1 -1
- package/dist/services/worktree.d.ts +36 -2
- package/dist/services/worktree.d.ts.map +1 -1
- package/dist/services/worktree.js +164 -7
- package/dist/services/worktree.js.map +1 -1
- package/dist/types/index.d.ts +31 -93
- package/dist/types/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Unified command option definition following the ops pattern.
|
|
3
|
+
* Every option can be supplied as a CLI argument or an interactive prompt.
|
|
4
|
+
*
|
|
5
|
+
* Required = no default value (no explicit `required` property).
|
|
6
|
+
* All options are named: --longName or -shortName (no positional arguments).
|
|
3
7
|
*/
|
|
4
|
-
export interface
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
/**
|
|
8
|
+
export interface CommandOption {
|
|
9
|
+
/** Long option name, e.g. "url", "base-branch" — used as dict key and --longName */
|
|
10
|
+
longName: string;
|
|
11
|
+
/** Short option name, e.g. "b" — used as -b on CLI */
|
|
12
|
+
shortName?: string;
|
|
13
|
+
/** Displayed in help and as prompt label */
|
|
10
14
|
description: string;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
15
|
+
/** Boolean flag — never prompted, default false when absent */
|
|
16
|
+
isFlag?: boolean;
|
|
17
|
+
/** Static or dynamic default; absence means required */
|
|
18
|
+
defaultValue?: string | (() => string);
|
|
19
|
+
/** Whether to prompt when a default exists. Default: true. Only relevant when defaultValue is set. */
|
|
20
|
+
promptWhenDefaultExists?: boolean;
|
|
21
|
+
/** Selection prompt instead of text input */
|
|
16
22
|
choices?: Array<{
|
|
17
23
|
label: string;
|
|
18
24
|
value: string;
|
|
19
25
|
}>;
|
|
20
|
-
/**
|
|
21
|
-
defaultValue?: string;
|
|
22
|
-
/** Validation function - returns error message or undefined */
|
|
26
|
+
/** Validation function — return error message or undefined */
|
|
23
27
|
validate?: (value: string) => string | undefined;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
@@ -29,18 +33,8 @@ export interface Command {
|
|
|
29
33
|
name: string;
|
|
30
34
|
aliases: string[];
|
|
31
35
|
description: string;
|
|
32
|
-
execute: (args: string[]) => Promise<void>;
|
|
33
|
-
/** Argument definitions for interactive prompting */
|
|
34
|
-
arguments?: CommandArgument[];
|
|
35
36
|
options?: CommandOption[];
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Command option definition
|
|
39
|
-
*/
|
|
40
|
-
export interface CommandOption {
|
|
41
|
-
flags: string;
|
|
42
|
-
description: string;
|
|
43
|
-
defaultValue?: string | boolean;
|
|
37
|
+
execute: (resolved: Record<string, string>) => Promise<void>;
|
|
44
38
|
}
|
|
45
39
|
/**
|
|
46
40
|
* Hook input definition for collecting user input before running a hook
|
|
@@ -89,49 +83,27 @@ export interface Idea1Settings {
|
|
|
89
83
|
testCommand?: string;
|
|
90
84
|
releaseBranch?: string;
|
|
91
85
|
releaseTargetBranch?: string;
|
|
86
|
+
integrationBranchPrefix?: string;
|
|
87
|
+
integrationBranchTemplate?: string;
|
|
88
|
+
integrationWorkBranchTemplate?: string;
|
|
89
|
+
removeWorktreeOnDevTransition?: boolean;
|
|
92
90
|
};
|
|
93
91
|
}
|
|
94
|
-
/**
|
|
95
|
-
* Create worktree options
|
|
96
|
-
*/
|
|
97
|
-
export interface CreateWorktreeOptions {
|
|
98
|
-
sourcePath?: string;
|
|
99
|
-
destBranch: string;
|
|
100
|
-
branchPrefix: string;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Push options
|
|
104
|
-
*/
|
|
105
|
-
export interface PushOptions {
|
|
106
|
-
projectItemUrl?: string;
|
|
107
|
-
noProjectItem: boolean;
|
|
108
|
-
noTests: boolean;
|
|
109
|
-
createPr: boolean;
|
|
110
|
-
destBranch: string;
|
|
111
|
-
}
|
|
112
92
|
/**
|
|
113
93
|
* Valid Claude permission modes
|
|
114
94
|
*/
|
|
115
95
|
export type ClaudePermissionMode = 'acceptEdits' | 'bypassPermissions' | 'default' | 'delegate' | 'dontAsk' | 'plan';
|
|
116
96
|
/**
|
|
117
|
-
*
|
|
97
|
+
* How Claude is invoked after setup completes.
|
|
98
|
+
* - 'launch': Launch a new Claude process with the prompt (default)
|
|
99
|
+
* - 'inline': Output the prompt as structured output for an already-running Claude session
|
|
100
|
+
* - 'none': Do not invoke Claude
|
|
118
101
|
*/
|
|
119
|
-
export
|
|
120
|
-
isolationMode: 'worktree' | 'container';
|
|
121
|
-
sourcePath?: string;
|
|
122
|
-
baseBranch: string;
|
|
123
|
-
buildImage: boolean;
|
|
124
|
-
disableFirewall: boolean;
|
|
125
|
-
permissionMode: ClaudePermissionMode;
|
|
126
|
-
}
|
|
102
|
+
export type ClaudeEntryPointMode = 'launch' | 'inline' | 'none';
|
|
127
103
|
/**
|
|
128
|
-
*
|
|
104
|
+
* Development workflow types for branching strategies
|
|
129
105
|
*/
|
|
130
|
-
export
|
|
131
|
-
sourcePath?: string;
|
|
132
|
-
baseBranch?: string;
|
|
133
|
-
promptPr: boolean;
|
|
134
|
-
}
|
|
106
|
+
export type DevWorkflowType = 'independent' | 'integration';
|
|
135
107
|
/**
|
|
136
108
|
* Git branch info
|
|
137
109
|
*/
|
|
@@ -148,19 +120,6 @@ export interface PrInfo {
|
|
|
148
120
|
url: string;
|
|
149
121
|
state: string;
|
|
150
122
|
}
|
|
151
|
-
/**
|
|
152
|
-
* Release command options
|
|
153
|
-
*/
|
|
154
|
-
export interface ReleaseOptions {
|
|
155
|
-
/** Source branch to release from */
|
|
156
|
-
branch?: string;
|
|
157
|
-
/** Target branch to release to */
|
|
158
|
-
target?: string;
|
|
159
|
-
/** PR mode: merge or review */
|
|
160
|
-
prMode?: 'merge' | 'review';
|
|
161
|
-
/** PR title */
|
|
162
|
-
title?: string;
|
|
163
|
-
}
|
|
164
123
|
/**
|
|
165
124
|
* Workflow state representing the current status of a project item
|
|
166
125
|
*/
|
|
@@ -169,25 +128,4 @@ export type WorkflowState = 'Agent implementation' | 'Dev implementation' | 'PR
|
|
|
169
128
|
* Workflow transition command names for moving between workflow states
|
|
170
129
|
*/
|
|
171
130
|
export type WorkflowTransition = 'start-dev-implementation' | 'ready-for-approval' | 'approve-pr';
|
|
172
|
-
/**
|
|
173
|
-
* Options for the start-dev-implementation transition
|
|
174
|
-
*/
|
|
175
|
-
export interface StartDevImplementationOptions {
|
|
176
|
-
/** Source path for the implementation */
|
|
177
|
-
sourcePath?: string;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Options for the ready-for-approval transition
|
|
181
|
-
*/
|
|
182
|
-
export interface ReadyForApprovalOptions {
|
|
183
|
-
/** Reviewer to assign for approval */
|
|
184
|
-
reviewer?: string;
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Options for the approve-pr transition
|
|
188
|
-
*/
|
|
189
|
-
export interface ApprovePrOptions {
|
|
190
|
-
/** Comment to add when approving */
|
|
191
|
-
comment?: string;
|
|
192
|
-
}
|
|
193
131
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;IACvC,sGAAsG;IACtG,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,6CAA6C;IAC7C,OAAO,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,O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O,CAAC;KACzC,CAAC;CACH;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,mBAAmB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAErH;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,aAAa,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,sBAAsB,GACtB,oBAAoB,GACpB,mBAAmB,GACnB,UAAU,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,0BAA0B,GAC1B,oBAAoB,GACpB,YAAY,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idea1/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "CLI tool for Idea1.ai workflow automation - AI-assisted development workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"boxen": "^8.0.1",
|
|
39
39
|
"chalk": "^5.3.0",
|
|
40
|
-
"commander": "^12.1.0",
|
|
41
40
|
"conf": "^13.0.1",
|
|
42
41
|
"execa": "^9.5.1",
|
|
43
42
|
"inquirer": "^12.1.0",
|