@tsuzuku/arise 0.2.0 → 0.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 +28 -4
- package/index.js +47 -9
- package/lib/cli.js +39 -2
- package/lib/config/init.js +862 -0
- package/lib/config.js +18 -6
- package/lib/git.js +12 -0
- package/lib/herdr.js +47 -6
- package/lib/interactive.js +644 -0
- package/lib/layout.js +21 -7
- package/lib/lifecycle/create.js +27 -3
- package/lib/lifecycle/nuke.js +43 -2
- package/lib/logger.js +85 -0
- package/lib/skill.js +6 -0
- package/lib/tui/ansi.js +294 -0
- package/lib/tui/prompt.js +629 -0
- package/package.json +1 -1
- package/skills/arise/SKILL.md +6 -0
- package/types.d.ts +46 -0
package/types.d.ts
CHANGED
|
@@ -6,12 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export interface CliFlags {
|
|
9
|
+
interactive: boolean;
|
|
10
|
+
isInit: boolean;
|
|
11
|
+
quick: boolean;
|
|
9
12
|
isCleanup: boolean;
|
|
10
13
|
cleanupTarget: string | null;
|
|
11
14
|
dirOnly: boolean;
|
|
12
15
|
keepRemote: boolean;
|
|
13
16
|
force: boolean;
|
|
14
17
|
yes: boolean;
|
|
18
|
+
debug: boolean;
|
|
19
|
+
verbose: boolean;
|
|
15
20
|
branch: string | null;
|
|
16
21
|
dirname: string | null;
|
|
17
22
|
workspaceName: string | null;
|
|
@@ -21,6 +26,8 @@ export interface CliFlags {
|
|
|
21
26
|
focusTarget: string | null;
|
|
22
27
|
installSkill: boolean;
|
|
23
28
|
skillScope: 'global' | 'local' | null;
|
|
29
|
+
targetPath: string | null;
|
|
30
|
+
gitignore: boolean | null;
|
|
24
31
|
showHelp: boolean;
|
|
25
32
|
showVersion: boolean;
|
|
26
33
|
rawArgs: string[];
|
|
@@ -155,3 +162,42 @@ export interface WorktreeConfig {
|
|
|
155
162
|
/** Path to config file that was loaded (if any) */
|
|
156
163
|
configFile?: string | null;
|
|
157
164
|
}
|
|
165
|
+
|
|
166
|
+
export interface InitWizardOptions {
|
|
167
|
+
quick?: boolean;
|
|
168
|
+
local?: boolean;
|
|
169
|
+
global?: boolean;
|
|
170
|
+
targetPath?: string;
|
|
171
|
+
cwd?: string;
|
|
172
|
+
force?: boolean;
|
|
173
|
+
gitignore?: boolean | null;
|
|
174
|
+
addToGitignore?: boolean | null;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface SelectOption<T = string> {
|
|
178
|
+
label: string;
|
|
179
|
+
value: T;
|
|
180
|
+
hint?: string;
|
|
181
|
+
description?: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface MultiSelectOption<T = string> {
|
|
185
|
+
label: string;
|
|
186
|
+
value: T;
|
|
187
|
+
hint?: string;
|
|
188
|
+
description?: string;
|
|
189
|
+
selected?: boolean;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface PromptTextOptions {
|
|
193
|
+
message?: string;
|
|
194
|
+
question?: string;
|
|
195
|
+
defaultValue?: string;
|
|
196
|
+
validate?: (val: string) => boolean | string;
|
|
197
|
+
completer?: import('readline').Completer | 'path' | 'dir';
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export declare class ConfigInitWizard {
|
|
201
|
+
static run(options?: InitWizardOptions): Promise<string | null>;
|
|
202
|
+
}
|
|
203
|
+
|