autohand-cli 0.7.6 → 0.7.7
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/{AutomodeManager-TJSW2SQY.cjs → AutomodeManager-HV6M7EAX.cjs} +61 -22
- package/dist/{AutomodeManager-WIMHLG4W.js → AutomodeManager-YVCJXOMQ.js} +61 -22
- package/dist/CommunitySkillsCache-2BITCEAA.cjs +7 -0
- package/dist/{CommunitySkillsCache-XPDVYU3K.js → CommunitySkillsCache-Q22FUAR5.js} +2 -2
- package/dist/HookManager-X47HCM5G.cjs +6 -0
- package/dist/{HookManager-VIX56KFU.js → HookManager-ZXKHCD7U.js} +1 -1
- package/dist/MemoryManager-2ATHG7BH.js +7 -0
- package/dist/MemoryManager-AENCGCEW.cjs +7 -0
- package/dist/PermissionManager-6HZGTK2N.cjs +10 -0
- package/dist/{PermissionManager-YFZI4ZZ6.js → PermissionManager-HATZKTRC.js} +3 -3
- package/dist/SessionManager-AG4WT3DP.cjs +9 -0
- package/dist/{SessionManager-XDBEQUPG.js → SessionManager-S5R6O3NU.js} +2 -2
- package/dist/{SkillsRegistry-7NICF6FY.js → SkillsRegistry-R5WDM6T3.js} +2 -2
- package/dist/SkillsRegistry-ZXU6YDRP.cjs +8 -0
- package/dist/SyncApiClient-FAOMIZAP.js +10 -0
- package/dist/SyncApiClient-UOA4VLLD.cjs +10 -0
- package/dist/add-dir-OMK3Y4DM.cjs +8 -0
- package/dist/add-dir-PNU7AGKO.js +8 -0
- package/dist/{agents-B33IAATH.js → agents-ICAC3KD3.js} +2 -2
- package/dist/agents-YONWPKFS.cjs +9 -0
- package/dist/agents-new-NV557UVG.cjs +10 -0
- package/dist/{agents-new-KTXJFC5E.js → agents-new-QHM3CO4B.js} +2 -2
- package/dist/{chunk-MFLRXVKU.js → chunk-23JQSCTO.js} +1 -1
- package/dist/chunk-2JPUEN44.cjs +299 -0
- package/dist/{chunk-5PD2L6WI.js → chunk-3YEDXG6S.js} +1 -1
- package/dist/{chunk-3ZUWWML7.cjs → chunk-4M2GX7RH.cjs} +2 -2
- package/dist/{chunk-R5KNHJ27.js → chunk-4RWTUT2Z.js} +1 -1
- package/dist/{chunk-CHQMK2ZG.js → chunk-52MLYK5P.js} +1 -1
- package/dist/{chunk-CVYEUA3D.cjs → chunk-53BR4MUW.cjs} +3 -3
- package/dist/{chunk-5WKR4HIB.js → chunk-5DN5KNXU.js} +1 -1
- package/dist/{chunk-3CO5R6M2.cjs → chunk-7TOHYAUF.cjs} +2 -2
- package/dist/{chunk-67NJKV5A.cjs → chunk-7VW3A7DO.cjs} +2 -2
- package/dist/{chunk-2W3QTBNG.cjs → chunk-A552JHUJ.cjs} +2 -2
- package/dist/{chunk-NGSLABLS.js → chunk-A6QBABQ7.js} +1 -1
- package/dist/chunk-ARVFUZOB.js +736 -0
- package/dist/{chunk-VO3JKFUH.js → chunk-AVL4DKQO.js} +1 -1
- package/dist/{chunk-CT2VTDPQ.cjs → chunk-B4ZPNXZE.cjs} +1 -1
- package/dist/{chunk-OKMYLMCR.cjs → chunk-B7EUETGY.cjs} +4 -4
- package/dist/chunk-C26EN22G.cjs +328 -0
- package/dist/chunk-DOTAX65F.js +328 -0
- package/dist/{chunk-SKT2CRNY.cjs → chunk-DSKVMFRM.cjs} +56 -8
- package/dist/{chunk-FUEL6BK7.js → chunk-EKY5PKQI.js} +15 -0
- package/dist/{chunk-YMP7AGNT.js → chunk-G77ZY4QG.js} +1 -1
- package/dist/{chunk-KN5C4TR4.cjs → chunk-GDTZQSJ6.cjs} +2 -2
- package/dist/{chunk-536VWSZK.cjs → chunk-GFJ6AETU.cjs} +4 -4
- package/dist/{chunk-723DZKBU.js → chunk-GR7VWN63.js} +2 -2
- package/dist/{chunk-PVM5I5WI.js → chunk-GWIAMKKF.js} +1 -1
- package/dist/{chunk-XAM7SFVB.cjs → chunk-GWXXFQ3F.cjs} +2 -2
- package/dist/{chunk-REPKBECD.cjs → chunk-JHFH3N4U.cjs} +2 -2
- package/dist/{chunk-4L5WYXHN.js → chunk-KH7BCZJN.js} +1 -1
- package/dist/{chunk-JXOXZTMA.js → chunk-L5ZFPWHY.js} +54 -6
- package/dist/chunk-MDWULS57.js +288 -0
- package/dist/{chunk-6LP2GO5C.js → chunk-MJFBVQHB.js} +2 -2
- package/dist/{chunk-MWLAHCU7.js → chunk-NI3BQXKU.js} +1 -1
- package/dist/{chunk-KJ67C72C.cjs → chunk-NYQVQYIF.cjs} +2 -2
- package/dist/{chunk-SKU4M27Z.js → chunk-OBV3UUIL.js} +1 -1
- package/dist/{chunk-27ISZOFA.js → chunk-P2Z6GDEN.js} +1 -1
- package/dist/{chunk-XTHHDIBG.cjs → chunk-PMMSDR44.cjs} +16 -1
- package/dist/{chunk-K6NBYSME.cjs → chunk-PR53E47T.cjs} +6 -6
- package/dist/{chunk-URY4AS4L.cjs → chunk-PU534KPO.cjs} +4 -4
- package/dist/{chunk-5MCDN53U.js → chunk-Q3WCMY3Z.js} +4 -2
- package/dist/{chunk-4KZCGK7D.js → chunk-QXAPHGEW.js} +1 -1
- package/dist/chunk-SFGJQPGC.cjs +288 -0
- package/dist/{chunk-53YDUYNS.cjs → chunk-SLISYSP4.cjs} +2 -2
- package/dist/{chunk-2E2COWKB.cjs → chunk-SYJLMBLP.cjs} +66 -10
- package/dist/chunk-U5WIP4HS.js +674 -0
- package/dist/{chunk-7HB7GSQF.js → chunk-UL7YPRCU.js} +1 -1
- package/dist/{chunk-JYTXG6OV.cjs → chunk-VDZJ3W4M.cjs} +4 -2
- package/dist/{chunk-LUKMRIKJ.cjs → chunk-VEDIYPWY.cjs} +2 -2
- package/dist/{chunk-C2NFLFHH.js → chunk-VPAN5H7Q.js} +1 -1
- package/dist/chunk-WH3D42BQ.js +299 -0
- package/dist/{chunk-2FSQPRPJ.js → chunk-WIUGUR5T.js} +59 -3
- package/dist/{chunk-QMVTT55Y.cjs → chunk-WQSWU2QA.cjs} +4 -4
- package/dist/chunk-XFPITUFJ.cjs +674 -0
- package/dist/chunk-XFQS2VGT.cjs +736 -0
- package/dist/{chunk-HYTYXN2G.cjs → chunk-YAGD43KA.cjs} +10 -10
- package/dist/constants-G2PLP5HH.cjs +20 -0
- package/dist/{constants-QYBEF3DB.js → constants-ZLG6M5SI.js} +3 -1
- package/dist/{defaultHooks-3G3DVF6I.js → defaultHooks-R56VYG7I.js} +315 -1
- package/dist/{defaultHooks-Z4KA6U5C.cjs → defaultHooks-WLMRQUXG.cjs} +315 -1
- package/dist/{feedback-PZ2PINDU.js → feedback-HZBCTSFG.js} +2 -2
- package/dist/feedback-JBQ3UPGZ.cjs +10 -0
- package/dist/index.cjs +897 -600
- package/dist/index.js +1438 -1141
- package/dist/language-KODBDE5R.js +12 -0
- package/dist/language-SJT475NW.cjs +12 -0
- package/dist/localProjectPermissions-AYQYGTOE.cjs +17 -0
- package/dist/{localProjectPermissions-DURCNDZG.js → localProjectPermissions-YFFAKLUZ.js} +2 -2
- package/dist/login-TC2KROQI.js +14 -0
- package/dist/login-TYMR2ZD3.cjs +14 -0
- package/dist/logout-2ECV365P.js +12 -0
- package/dist/logout-CO3CPYZJ.cjs +12 -0
- package/dist/resume-EPOEF3WV.cjs +9 -0
- package/dist/{resume-CWYAK6XR.js → resume-LOYD5MMP.js} +2 -2
- package/dist/share-544SIZOY.js +10 -0
- package/dist/share-OETK2GUF.cjs +10 -0
- package/dist/{skills-CRFOVWEQ.js → skills-3YEEODHK.js} +1 -1
- package/dist/skills-CRM55MKM.cjs +12 -0
- package/dist/{skills-install-Z27KPEGF.cjs → skills-install-FTGOHOZ4.cjs} +5 -5
- package/dist/{skills-install-RMPXN6RK.js → skills-install-KAXAQSN6.js} +2 -2
- package/dist/skills-new-JF4FKNUT.cjs +11 -0
- package/dist/{skills-new-S2YPO635.js → skills-new-JYX2GBKM.js} +2 -2
- package/dist/{status-GPAZ67ZZ.js → status-7LCXYYY4.js} +2 -2
- package/dist/status-E7MZEQ26.cjs +9 -0
- package/dist/sync-3B7SNBYC.js +14 -0
- package/dist/sync-4RARBQIH.cjs +39 -0
- package/dist/sync-H4UHHLKU.js +39 -0
- package/dist/sync-YZ6YZ42H.cjs +14 -0
- package/dist/theme-3XV5BWUB.js +12 -0
- package/dist/theme-Z2WS5XWZ.cjs +12 -0
- package/package.json +4 -2
- package/dist/CommunitySkillsCache-X3X237QQ.cjs +0 -7
- package/dist/HookManager-EOMUXKJ4.cjs +0 -6
- package/dist/MemoryManager-UVHILGV5.js +0 -7
- package/dist/MemoryManager-WO3KUZVA.cjs +0 -7
- package/dist/PermissionManager-PMTQN263.cjs +0 -10
- package/dist/SessionManager-M5ZLCLCW.cjs +0 -9
- package/dist/SkillsRegistry-OINIPILA.cjs +0 -8
- package/dist/agents-GRAFXZY3.cjs +0 -9
- package/dist/agents-new-67NJJSDA.cjs +0 -10
- package/dist/constants-PE5DLI7Q.cjs +0 -18
- package/dist/feedback-R66B3B3C.cjs +0 -10
- package/dist/localProjectPermissions-75X3ZGKH.cjs +0 -17
- package/dist/login-NYWZRZO5.js +0 -12
- package/dist/login-QNJ5C42G.cjs +0 -12
- package/dist/logout-MBS7L3ZW.js +0 -12
- package/dist/logout-MVUP7GPU.cjs +0 -12
- package/dist/resume-ANISKRWL.cjs +0 -9
- package/dist/share-3PSV53CQ.js +0 -10
- package/dist/share-4ACH6626.cjs +0 -10
- package/dist/skills-6PIGHOWS.cjs +0 -12
- package/dist/skills-new-3QJUST7P.cjs +0 -11
- package/dist/status-4U5CPUVT.cjs +0 -9
- package/dist/theme-CVY6MVEK.cjs +0 -12
- package/dist/theme-CY7WF4M6.js +0 -12
|
@@ -846,6 +846,42 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
846
846
|
getState() {
|
|
847
847
|
return this.state.getState();
|
|
848
848
|
}
|
|
849
|
+
/**
|
|
850
|
+
* Get the effective workspace path (worktree if set up, otherwise original)
|
|
851
|
+
*/
|
|
852
|
+
getEffectiveWorkspace() {
|
|
853
|
+
return _nullishCoalesce(this.worktreePath, () => ( this.workspaceRoot));
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Get the worktree path if set up
|
|
857
|
+
*/
|
|
858
|
+
getWorktreePath() {
|
|
859
|
+
return this.worktreePath;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Get the branch name if worktree is set up
|
|
863
|
+
*/
|
|
864
|
+
getBranchName() {
|
|
865
|
+
return this.branchName;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* Prepare worktree for auto-mode (call before start if you need the workspace path)
|
|
869
|
+
* Returns the worktree path if created, or null if worktree is disabled or failed
|
|
870
|
+
*/
|
|
871
|
+
async prepareWorktree(useWorktree = true) {
|
|
872
|
+
if (!useWorktree) {
|
|
873
|
+
return null;
|
|
874
|
+
}
|
|
875
|
+
try {
|
|
876
|
+
const sessionId = `automode-${Date.now()}-${_crypto2.default.randomBytes(4).toString("hex")}`;
|
|
877
|
+
await this.setupWorktree(sessionId);
|
|
878
|
+
return this.worktreePath;
|
|
879
|
+
} catch (error) {
|
|
880
|
+
console.log(_chalk2.default.yellow(`\u26A0 Worktree setup failed: ${error}`));
|
|
881
|
+
console.log(_chalk2.default.gray(" Continuing in current workspace"));
|
|
882
|
+
return null;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
849
885
|
/**
|
|
850
886
|
* Start auto-mode loop
|
|
851
887
|
*/
|
|
@@ -882,7 +918,7 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
882
918
|
console.log(_chalk2.default.gray(` Max iterations: ${maxIterations}`));
|
|
883
919
|
console.log(_chalk2.default.gray(` Completion promise: "${completionPromise}"`));
|
|
884
920
|
console.log(_chalk2.default.gray(` Worktree isolation: ${useWorktree ? "enabled" : "disabled"}`));
|
|
885
|
-
if (useWorktree) {
|
|
921
|
+
if (useWorktree && !this.worktreePath) {
|
|
886
922
|
try {
|
|
887
923
|
await this.setupWorktree(sessionId);
|
|
888
924
|
console.log(_chalk2.default.gray(` Branch: ${this.branchName}`));
|
|
@@ -890,6 +926,9 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
890
926
|
console.log(_chalk2.default.yellow(` \u26A0 Worktree setup failed, continuing in current branch`));
|
|
891
927
|
console.log(_chalk2.default.gray(` ${error}`));
|
|
892
928
|
}
|
|
929
|
+
} else if (this.worktreePath) {
|
|
930
|
+
console.log(_chalk2.default.gray(` Branch: ${this.branchName}`));
|
|
931
|
+
console.log(_chalk2.default.gray(` Worktree: ${this.worktreePath}`));
|
|
893
932
|
}
|
|
894
933
|
await this.state.initialize({
|
|
895
934
|
sessionId,
|
|
@@ -912,9 +951,9 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
912
951
|
}
|
|
913
952
|
})]);
|
|
914
953
|
await this.emitHookEvent("automode:start", {
|
|
915
|
-
sessionId,
|
|
916
|
-
|
|
917
|
-
maxIterations
|
|
954
|
+
automodeSessionId: sessionId,
|
|
955
|
+
automodePrompt: options.prompt,
|
|
956
|
+
automodeMaxIterations: maxIterations
|
|
918
957
|
});
|
|
919
958
|
try {
|
|
920
959
|
for (let iteration = 1; iteration <= maxIterations; iteration++) {
|
|
@@ -971,9 +1010,9 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
971
1010
|
);
|
|
972
1011
|
}
|
|
973
1012
|
await this.emitHookEvent("automode:iteration", {
|
|
974
|
-
sessionId,
|
|
975
|
-
iteration,
|
|
976
|
-
|
|
1013
|
+
automodeSessionId: sessionId,
|
|
1014
|
+
automodeIteration: iteration,
|
|
1015
|
+
automodeActions: result.actions,
|
|
977
1016
|
tokensUsed: result.tokensUsed
|
|
978
1017
|
});
|
|
979
1018
|
const hasChanges = (_nullishCoalesce(result.filesCreated, () => ( 0))) + (_nullishCoalesce(result.filesModified, () => ( 0))) > 0;
|
|
@@ -1021,7 +1060,7 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
1021
1060
|
\u274C Auto-mode error: ${error}`));
|
|
1022
1061
|
await this.state.setStatus("failed", "error", String(error));
|
|
1023
1062
|
await this.emitHookEvent("automode:error", {
|
|
1024
|
-
sessionId,
|
|
1063
|
+
automodeSessionId: sessionId,
|
|
1025
1064
|
error: String(error)
|
|
1026
1065
|
});
|
|
1027
1066
|
} finally {
|
|
@@ -1054,9 +1093,9 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
1054
1093
|
}
|
|
1055
1094
|
})]);
|
|
1056
1095
|
await this.emitHookEvent("automode:cancel", {
|
|
1057
|
-
|
|
1058
|
-
reason,
|
|
1059
|
-
|
|
1096
|
+
automodeSessionId: currentState.sessionId,
|
|
1097
|
+
automodeCancelReason: reason,
|
|
1098
|
+
automodeIteration: currentState.currentIteration
|
|
1060
1099
|
});
|
|
1061
1100
|
}
|
|
1062
1101
|
}
|
|
@@ -1072,8 +1111,8 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
1072
1111
|
console.log(_chalk2.default.yellow(`
|
|
1073
1112
|
\u23F8\uFE0F Auto-mode paused at iteration ${currentState.currentIteration}`));
|
|
1074
1113
|
await this.emitHookEvent("automode:pause", {
|
|
1075
|
-
|
|
1076
|
-
|
|
1114
|
+
automodeSessionId: currentState.sessionId,
|
|
1115
|
+
automodeIteration: currentState.currentIteration
|
|
1077
1116
|
});
|
|
1078
1117
|
}
|
|
1079
1118
|
}
|
|
@@ -1089,8 +1128,8 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
1089
1128
|
console.log(_chalk2.default.cyan(`
|
|
1090
1129
|
\u25B6\uFE0F Auto-mode resumed at iteration ${currentState.currentIteration}`));
|
|
1091
1130
|
await this.emitHookEvent("automode:resume", {
|
|
1092
|
-
|
|
1093
|
-
|
|
1131
|
+
automodeSessionId: currentState.sessionId,
|
|
1132
|
+
automodeIteration: currentState.currentIteration
|
|
1094
1133
|
});
|
|
1095
1134
|
}
|
|
1096
1135
|
}
|
|
@@ -1125,10 +1164,10 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
1125
1164
|
}
|
|
1126
1165
|
})]);
|
|
1127
1166
|
await this.emitHookEvent("automode:complete", {
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1167
|
+
automodeSessionId: currentState.sessionId,
|
|
1168
|
+
automodeIteration: currentState.currentIteration,
|
|
1169
|
+
automodeFilesCreated: currentState.filesCreated,
|
|
1170
|
+
automodeFilesModified: currentState.filesModified
|
|
1132
1171
|
});
|
|
1133
1172
|
if (this.worktreePath && this.branchName && this.originalBranch) {
|
|
1134
1173
|
await this.mergeWorktree();
|
|
@@ -1242,9 +1281,9 @@ var AutomodeManager = class extends _events.EventEmitter {
|
|
|
1242
1281
|
const currentState = this.state.getState();
|
|
1243
1282
|
if (currentState) {
|
|
1244
1283
|
await this.emitHookEvent("automode:checkpoint", {
|
|
1245
|
-
|
|
1246
|
-
iteration,
|
|
1247
|
-
|
|
1284
|
+
automodeSessionId: currentState.sessionId,
|
|
1285
|
+
automodeIteration: iteration,
|
|
1286
|
+
automodeCheckpointCommit: hash
|
|
1248
1287
|
});
|
|
1249
1288
|
}
|
|
1250
1289
|
} catch (error) {
|
|
@@ -846,6 +846,42 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
846
846
|
getState() {
|
|
847
847
|
return this.state.getState();
|
|
848
848
|
}
|
|
849
|
+
/**
|
|
850
|
+
* Get the effective workspace path (worktree if set up, otherwise original)
|
|
851
|
+
*/
|
|
852
|
+
getEffectiveWorkspace() {
|
|
853
|
+
return this.worktreePath ?? this.workspaceRoot;
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Get the worktree path if set up
|
|
857
|
+
*/
|
|
858
|
+
getWorktreePath() {
|
|
859
|
+
return this.worktreePath;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Get the branch name if worktree is set up
|
|
863
|
+
*/
|
|
864
|
+
getBranchName() {
|
|
865
|
+
return this.branchName;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* Prepare worktree for auto-mode (call before start if you need the workspace path)
|
|
869
|
+
* Returns the worktree path if created, or null if worktree is disabled or failed
|
|
870
|
+
*/
|
|
871
|
+
async prepareWorktree(useWorktree = true) {
|
|
872
|
+
if (!useWorktree) {
|
|
873
|
+
return null;
|
|
874
|
+
}
|
|
875
|
+
try {
|
|
876
|
+
const sessionId = `automode-${Date.now()}-${crypto.randomBytes(4).toString("hex")}`;
|
|
877
|
+
await this.setupWorktree(sessionId);
|
|
878
|
+
return this.worktreePath;
|
|
879
|
+
} catch (error) {
|
|
880
|
+
console.log(chalk.yellow(`\u26A0 Worktree setup failed: ${error}`));
|
|
881
|
+
console.log(chalk.gray(" Continuing in current workspace"));
|
|
882
|
+
return null;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
849
885
|
/**
|
|
850
886
|
* Start auto-mode loop
|
|
851
887
|
*/
|
|
@@ -882,7 +918,7 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
882
918
|
console.log(chalk.gray(` Max iterations: ${maxIterations}`));
|
|
883
919
|
console.log(chalk.gray(` Completion promise: "${completionPromise}"`));
|
|
884
920
|
console.log(chalk.gray(` Worktree isolation: ${useWorktree ? "enabled" : "disabled"}`));
|
|
885
|
-
if (useWorktree) {
|
|
921
|
+
if (useWorktree && !this.worktreePath) {
|
|
886
922
|
try {
|
|
887
923
|
await this.setupWorktree(sessionId);
|
|
888
924
|
console.log(chalk.gray(` Branch: ${this.branchName}`));
|
|
@@ -890,6 +926,9 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
890
926
|
console.log(chalk.yellow(` \u26A0 Worktree setup failed, continuing in current branch`));
|
|
891
927
|
console.log(chalk.gray(` ${error}`));
|
|
892
928
|
}
|
|
929
|
+
} else if (this.worktreePath) {
|
|
930
|
+
console.log(chalk.gray(` Branch: ${this.branchName}`));
|
|
931
|
+
console.log(chalk.gray(` Worktree: ${this.worktreePath}`));
|
|
893
932
|
}
|
|
894
933
|
await this.state.initialize({
|
|
895
934
|
sessionId,
|
|
@@ -912,9 +951,9 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
912
951
|
}
|
|
913
952
|
});
|
|
914
953
|
await this.emitHookEvent("automode:start", {
|
|
915
|
-
sessionId,
|
|
916
|
-
|
|
917
|
-
maxIterations
|
|
954
|
+
automodeSessionId: sessionId,
|
|
955
|
+
automodePrompt: options.prompt,
|
|
956
|
+
automodeMaxIterations: maxIterations
|
|
918
957
|
});
|
|
919
958
|
try {
|
|
920
959
|
for (let iteration = 1; iteration <= maxIterations; iteration++) {
|
|
@@ -971,9 +1010,9 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
971
1010
|
);
|
|
972
1011
|
}
|
|
973
1012
|
await this.emitHookEvent("automode:iteration", {
|
|
974
|
-
sessionId,
|
|
975
|
-
iteration,
|
|
976
|
-
|
|
1013
|
+
automodeSessionId: sessionId,
|
|
1014
|
+
automodeIteration: iteration,
|
|
1015
|
+
automodeActions: result.actions,
|
|
977
1016
|
tokensUsed: result.tokensUsed
|
|
978
1017
|
});
|
|
979
1018
|
const hasChanges = (result.filesCreated ?? 0) + (result.filesModified ?? 0) > 0;
|
|
@@ -1021,7 +1060,7 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
1021
1060
|
\u274C Auto-mode error: ${error}`));
|
|
1022
1061
|
await this.state.setStatus("failed", "error", String(error));
|
|
1023
1062
|
await this.emitHookEvent("automode:error", {
|
|
1024
|
-
sessionId,
|
|
1063
|
+
automodeSessionId: sessionId,
|
|
1025
1064
|
error: String(error)
|
|
1026
1065
|
});
|
|
1027
1066
|
} finally {
|
|
@@ -1054,9 +1093,9 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
1054
1093
|
}
|
|
1055
1094
|
});
|
|
1056
1095
|
await this.emitHookEvent("automode:cancel", {
|
|
1057
|
-
|
|
1058
|
-
reason,
|
|
1059
|
-
|
|
1096
|
+
automodeSessionId: currentState.sessionId,
|
|
1097
|
+
automodeCancelReason: reason,
|
|
1098
|
+
automodeIteration: currentState.currentIteration
|
|
1060
1099
|
});
|
|
1061
1100
|
}
|
|
1062
1101
|
}
|
|
@@ -1072,8 +1111,8 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
1072
1111
|
console.log(chalk.yellow(`
|
|
1073
1112
|
\u23F8\uFE0F Auto-mode paused at iteration ${currentState.currentIteration}`));
|
|
1074
1113
|
await this.emitHookEvent("automode:pause", {
|
|
1075
|
-
|
|
1076
|
-
|
|
1114
|
+
automodeSessionId: currentState.sessionId,
|
|
1115
|
+
automodeIteration: currentState.currentIteration
|
|
1077
1116
|
});
|
|
1078
1117
|
}
|
|
1079
1118
|
}
|
|
@@ -1089,8 +1128,8 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
1089
1128
|
console.log(chalk.cyan(`
|
|
1090
1129
|
\u25B6\uFE0F Auto-mode resumed at iteration ${currentState.currentIteration}`));
|
|
1091
1130
|
await this.emitHookEvent("automode:resume", {
|
|
1092
|
-
|
|
1093
|
-
|
|
1131
|
+
automodeSessionId: currentState.sessionId,
|
|
1132
|
+
automodeIteration: currentState.currentIteration
|
|
1094
1133
|
});
|
|
1095
1134
|
}
|
|
1096
1135
|
}
|
|
@@ -1125,10 +1164,10 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
1125
1164
|
}
|
|
1126
1165
|
});
|
|
1127
1166
|
await this.emitHookEvent("automode:complete", {
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1167
|
+
automodeSessionId: currentState.sessionId,
|
|
1168
|
+
automodeIteration: currentState.currentIteration,
|
|
1169
|
+
automodeFilesCreated: currentState.filesCreated,
|
|
1170
|
+
automodeFilesModified: currentState.filesModified
|
|
1132
1171
|
});
|
|
1133
1172
|
if (this.worktreePath && this.branchName && this.originalBranch) {
|
|
1134
1173
|
await this.mergeWorktree();
|
|
@@ -1242,9 +1281,9 @@ var AutomodeManager = class extends EventEmitter {
|
|
|
1242
1281
|
const currentState = this.state.getState();
|
|
1243
1282
|
if (currentState) {
|
|
1244
1283
|
await this.emitHookEvent("automode:checkpoint", {
|
|
1245
|
-
|
|
1246
|
-
iteration,
|
|
1247
|
-
|
|
1284
|
+
automodeSessionId: currentState.sessionId,
|
|
1285
|
+
automodeIteration: iteration,
|
|
1286
|
+
automodeCheckpointCommit: hash
|
|
1248
1287
|
});
|
|
1249
1288
|
}
|
|
1250
1289
|
} catch (error) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkB7EUETGYcjs = require('./chunk-B7EUETGY.cjs');
|
|
5
|
+
require('./chunk-7TOHYAUF.cjs');
|
|
6
|
+
require('./chunk-PMMSDR44.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.DEFAULT_SECURITY_BLACKLIST = _chunkB7EUETGYcjs.DEFAULT_SECURITY_BLACKLIST; exports.PermissionManager = _chunkB7EUETGYcjs.PermissionManager;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_SECURITY_BLACKLIST,
|
|
3
3
|
PermissionManager
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-G77ZY4QG.js";
|
|
5
|
+
import "./chunk-P2Z6GDEN.js";
|
|
6
|
+
import "./chunk-EKY5PKQI.js";
|
|
7
7
|
export {
|
|
8
8
|
DEFAULT_SECURITY_BLACKLIST,
|
|
9
9
|
PermissionManager
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk7VW3A7DOcjs = require('./chunk-7VW3A7DO.cjs');
|
|
5
|
+
require('./chunk-PMMSDR44.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Session = _chunk7VW3A7DOcjs.Session; exports.SessionManager = _chunk7VW3A7DOcjs.SessionManager;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk53BR4MUWcjs = require('./chunk-53BR4MUW.cjs');
|
|
4
|
+
require('./chunk-JHGIWNHL.cjs');
|
|
5
|
+
require('./chunk-PMMSDR44.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.SkillsRegistry = _chunk53BR4MUWcjs.SkillsRegistry;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkSFGJQPGCcjs = require('./chunk-SFGJQPGC.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.SyncApiClient = _chunkSFGJQPGCcjs.SyncApiClient; exports.getSyncApiClient = _chunkSFGJQPGCcjs.getSyncApiClient; exports.resetSyncApiClient = _chunkSFGJQPGCcjs.resetSyncApiClient;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk4M2GX7RHcjs = require('./chunk-4M2GX7RH.cjs');
|
|
5
|
+
require('./chunk-PMMSDR44.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.handler = _chunk4M2GX7RHcjs.handler; exports.metadata = _chunk4M2GX7RHcjs.metadata;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkSLISYSP4cjs = require('./chunk-SLISYSP4.cjs');
|
|
5
|
+
require('./chunk-3HPUOQJN.cjs');
|
|
6
|
+
require('./chunk-PMMSDR44.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.createAgent = _chunkSLISYSP4cjs.createAgent; exports.metadata = _chunkSLISYSP4cjs.metadata;
|
|
@@ -226,7 +226,7 @@ async function handleSkillsInstall(ctx, skillName) {
|
|
|
226
226
|
if (!workspaceRoot) {
|
|
227
227
|
return "Workspace root not available.";
|
|
228
228
|
}
|
|
229
|
-
const { skillsInstall } = await import("./skills-install-
|
|
229
|
+
const { skillsInstall } = await import("./skills-install-KAXAQSN6.js");
|
|
230
230
|
const result = await skillsInstall(
|
|
231
231
|
{
|
|
232
232
|
skillsRegistry,
|