hamster-wheel-cli 0.1.0 → 0.2.0-beta.2
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/CHANGELOG.md +31 -1
- package/README.md +36 -0
- package/dist/cli.js +1917 -309
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +1917 -309
- package/dist/index.js.map +1 -1
- package/docs/ai-workflow.md +27 -36
- package/package.json +1 -1
- package/src/ai.ts +346 -1
- package/src/alias-viewer.ts +221 -0
- package/src/cli.ts +480 -29
- package/src/config.ts +6 -2
- package/src/gh.ts +20 -0
- package/src/git.ts +38 -3
- package/src/global-config.ts +149 -11
- package/src/log-tailer.ts +103 -0
- package/src/logs-viewer.ts +33 -11
- package/src/logs.ts +1 -0
- package/src/loop.ts +458 -120
- package/src/monitor.ts +240 -23
- package/src/multi-task.ts +117 -0
- package/src/plan.ts +61 -0
- package/src/quality.ts +48 -0
- package/src/runtime-tracker.ts +2 -1
- package/src/types.ts +23 -0
- package/tests/branch-name.test.ts +28 -0
- package/tests/e2e/cli.e2e.test.ts +41 -0
- package/tests/global-config.test.ts +52 -1
- package/tests/monitor.test.ts +17 -0
- package/tests/multi-task.test.ts +77 -0
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ interface PrConfig {
|
|
|
33
33
|
readonly bodyPath?: string;
|
|
34
34
|
readonly draft?: boolean;
|
|
35
35
|
readonly reviewers?: string[];
|
|
36
|
+
readonly autoMerge?: boolean;
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* webhook 配置。
|
|
@@ -70,11 +71,18 @@ interface LoopConfig {
|
|
|
70
71
|
readonly autoCommit: boolean;
|
|
71
72
|
readonly autoPush: boolean;
|
|
72
73
|
readonly skipInstall: boolean;
|
|
74
|
+
readonly skipQuality: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 主流程返回信息。
|
|
78
|
+
*/
|
|
79
|
+
interface LoopResult {
|
|
80
|
+
readonly branchName?: string;
|
|
73
81
|
}
|
|
74
82
|
|
|
75
83
|
/**
|
|
76
84
|
* 执行主迭代循环。
|
|
77
85
|
*/
|
|
78
|
-
declare function runLoop(config: LoopConfig): Promise<
|
|
86
|
+
declare function runLoop(config: LoopConfig): Promise<LoopResult>;
|
|
79
87
|
|
|
80
88
|
export { type AiCliConfig, type LoopConfig, type PrConfig, type TestConfig, type WebhookConfig, type WorktreeConfig, runLoop };
|