clawt 2.3.7 → 2.3.8
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/index.js +3 -3
- package/package.json +1 -1
- package/src/commands/resume.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -959,8 +959,8 @@ async function handleRun(options) {
|
|
|
959
959
|
|
|
960
960
|
// src/commands/resume.ts
|
|
961
961
|
function registerResumeCommand(program2) {
|
|
962
|
-
program2.command("resume").description("\u5728\u5DF2\u6709 worktree \u4E2D\u6062\u590D Claude Code \u4EA4\u4E92\u5F0F\u4F1A\u8BDD").requiredOption("-b, --branch <branchName>", "\u8981\u6062\u590D\u7684\u5206\u652F\u540D").action(
|
|
963
|
-
|
|
962
|
+
program2.command("resume").description("\u5728\u5DF2\u6709 worktree \u4E2D\u6062\u590D Claude Code \u4EA4\u4E92\u5F0F\u4F1A\u8BDD").requiredOption("-b, --branch <branchName>", "\u8981\u6062\u590D\u7684\u5206\u652F\u540D").action((options) => {
|
|
963
|
+
handleResume(options);
|
|
964
964
|
});
|
|
965
965
|
}
|
|
966
966
|
function findWorktreeByBranch(branchName) {
|
|
@@ -971,7 +971,7 @@ function findWorktreeByBranch(branchName) {
|
|
|
971
971
|
}
|
|
972
972
|
return matched;
|
|
973
973
|
}
|
|
974
|
-
|
|
974
|
+
function handleResume(options) {
|
|
975
975
|
validateMainWorktree();
|
|
976
976
|
validateClaudeCodeInstalled();
|
|
977
977
|
logger.info(`resume \u547D\u4EE4\u6267\u884C\uFF0C\u5206\u652F: ${options.branch}`);
|
package/package.json
CHANGED
package/src/commands/resume.ts
CHANGED
|
@@ -19,8 +19,8 @@ export function registerResumeCommand(program: Command): void {
|
|
|
19
19
|
.command('resume')
|
|
20
20
|
.description('在已有 worktree 中恢复 Claude Code 交互式会话')
|
|
21
21
|
.requiredOption('-b, --branch <branchName>', '要恢复的分支名')
|
|
22
|
-
.action(
|
|
23
|
-
|
|
22
|
+
.action((options: ResumeOptions) => {
|
|
23
|
+
handleResume(options);
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -46,7 +46,7 @@ function findWorktreeByBranch(branchName: string): WorktreeInfo {
|
|
|
46
46
|
* 查找已有 worktree 并恢复 Claude Code 会话
|
|
47
47
|
* @param {ResumeOptions} options - 命令选项
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
function handleResume(options: ResumeOptions): void {
|
|
50
50
|
validateMainWorktree();
|
|
51
51
|
validateClaudeCodeInstalled();
|
|
52
52
|
|