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.
Files changed (135) hide show
  1. package/dist/{AutomodeManager-TJSW2SQY.cjs → AutomodeManager-HV6M7EAX.cjs} +61 -22
  2. package/dist/{AutomodeManager-WIMHLG4W.js → AutomodeManager-YVCJXOMQ.js} +61 -22
  3. package/dist/CommunitySkillsCache-2BITCEAA.cjs +7 -0
  4. package/dist/{CommunitySkillsCache-XPDVYU3K.js → CommunitySkillsCache-Q22FUAR5.js} +2 -2
  5. package/dist/HookManager-X47HCM5G.cjs +6 -0
  6. package/dist/{HookManager-VIX56KFU.js → HookManager-ZXKHCD7U.js} +1 -1
  7. package/dist/MemoryManager-2ATHG7BH.js +7 -0
  8. package/dist/MemoryManager-AENCGCEW.cjs +7 -0
  9. package/dist/PermissionManager-6HZGTK2N.cjs +10 -0
  10. package/dist/{PermissionManager-YFZI4ZZ6.js → PermissionManager-HATZKTRC.js} +3 -3
  11. package/dist/SessionManager-AG4WT3DP.cjs +9 -0
  12. package/dist/{SessionManager-XDBEQUPG.js → SessionManager-S5R6O3NU.js} +2 -2
  13. package/dist/{SkillsRegistry-7NICF6FY.js → SkillsRegistry-R5WDM6T3.js} +2 -2
  14. package/dist/SkillsRegistry-ZXU6YDRP.cjs +8 -0
  15. package/dist/SyncApiClient-FAOMIZAP.js +10 -0
  16. package/dist/SyncApiClient-UOA4VLLD.cjs +10 -0
  17. package/dist/add-dir-OMK3Y4DM.cjs +8 -0
  18. package/dist/add-dir-PNU7AGKO.js +8 -0
  19. package/dist/{agents-B33IAATH.js → agents-ICAC3KD3.js} +2 -2
  20. package/dist/agents-YONWPKFS.cjs +9 -0
  21. package/dist/agents-new-NV557UVG.cjs +10 -0
  22. package/dist/{agents-new-KTXJFC5E.js → agents-new-QHM3CO4B.js} +2 -2
  23. package/dist/{chunk-MFLRXVKU.js → chunk-23JQSCTO.js} +1 -1
  24. package/dist/chunk-2JPUEN44.cjs +299 -0
  25. package/dist/{chunk-5PD2L6WI.js → chunk-3YEDXG6S.js} +1 -1
  26. package/dist/{chunk-3ZUWWML7.cjs → chunk-4M2GX7RH.cjs} +2 -2
  27. package/dist/{chunk-R5KNHJ27.js → chunk-4RWTUT2Z.js} +1 -1
  28. package/dist/{chunk-CHQMK2ZG.js → chunk-52MLYK5P.js} +1 -1
  29. package/dist/{chunk-CVYEUA3D.cjs → chunk-53BR4MUW.cjs} +3 -3
  30. package/dist/{chunk-5WKR4HIB.js → chunk-5DN5KNXU.js} +1 -1
  31. package/dist/{chunk-3CO5R6M2.cjs → chunk-7TOHYAUF.cjs} +2 -2
  32. package/dist/{chunk-67NJKV5A.cjs → chunk-7VW3A7DO.cjs} +2 -2
  33. package/dist/{chunk-2W3QTBNG.cjs → chunk-A552JHUJ.cjs} +2 -2
  34. package/dist/{chunk-NGSLABLS.js → chunk-A6QBABQ7.js} +1 -1
  35. package/dist/chunk-ARVFUZOB.js +736 -0
  36. package/dist/{chunk-VO3JKFUH.js → chunk-AVL4DKQO.js} +1 -1
  37. package/dist/{chunk-CT2VTDPQ.cjs → chunk-B4ZPNXZE.cjs} +1 -1
  38. package/dist/{chunk-OKMYLMCR.cjs → chunk-B7EUETGY.cjs} +4 -4
  39. package/dist/chunk-C26EN22G.cjs +328 -0
  40. package/dist/chunk-DOTAX65F.js +328 -0
  41. package/dist/{chunk-SKT2CRNY.cjs → chunk-DSKVMFRM.cjs} +56 -8
  42. package/dist/{chunk-FUEL6BK7.js → chunk-EKY5PKQI.js} +15 -0
  43. package/dist/{chunk-YMP7AGNT.js → chunk-G77ZY4QG.js} +1 -1
  44. package/dist/{chunk-KN5C4TR4.cjs → chunk-GDTZQSJ6.cjs} +2 -2
  45. package/dist/{chunk-536VWSZK.cjs → chunk-GFJ6AETU.cjs} +4 -4
  46. package/dist/{chunk-723DZKBU.js → chunk-GR7VWN63.js} +2 -2
  47. package/dist/{chunk-PVM5I5WI.js → chunk-GWIAMKKF.js} +1 -1
  48. package/dist/{chunk-XAM7SFVB.cjs → chunk-GWXXFQ3F.cjs} +2 -2
  49. package/dist/{chunk-REPKBECD.cjs → chunk-JHFH3N4U.cjs} +2 -2
  50. package/dist/{chunk-4L5WYXHN.js → chunk-KH7BCZJN.js} +1 -1
  51. package/dist/{chunk-JXOXZTMA.js → chunk-L5ZFPWHY.js} +54 -6
  52. package/dist/chunk-MDWULS57.js +288 -0
  53. package/dist/{chunk-6LP2GO5C.js → chunk-MJFBVQHB.js} +2 -2
  54. package/dist/{chunk-MWLAHCU7.js → chunk-NI3BQXKU.js} +1 -1
  55. package/dist/{chunk-KJ67C72C.cjs → chunk-NYQVQYIF.cjs} +2 -2
  56. package/dist/{chunk-SKU4M27Z.js → chunk-OBV3UUIL.js} +1 -1
  57. package/dist/{chunk-27ISZOFA.js → chunk-P2Z6GDEN.js} +1 -1
  58. package/dist/{chunk-XTHHDIBG.cjs → chunk-PMMSDR44.cjs} +16 -1
  59. package/dist/{chunk-K6NBYSME.cjs → chunk-PR53E47T.cjs} +6 -6
  60. package/dist/{chunk-URY4AS4L.cjs → chunk-PU534KPO.cjs} +4 -4
  61. package/dist/{chunk-5MCDN53U.js → chunk-Q3WCMY3Z.js} +4 -2
  62. package/dist/{chunk-4KZCGK7D.js → chunk-QXAPHGEW.js} +1 -1
  63. package/dist/chunk-SFGJQPGC.cjs +288 -0
  64. package/dist/{chunk-53YDUYNS.cjs → chunk-SLISYSP4.cjs} +2 -2
  65. package/dist/{chunk-2E2COWKB.cjs → chunk-SYJLMBLP.cjs} +66 -10
  66. package/dist/chunk-U5WIP4HS.js +674 -0
  67. package/dist/{chunk-7HB7GSQF.js → chunk-UL7YPRCU.js} +1 -1
  68. package/dist/{chunk-JYTXG6OV.cjs → chunk-VDZJ3W4M.cjs} +4 -2
  69. package/dist/{chunk-LUKMRIKJ.cjs → chunk-VEDIYPWY.cjs} +2 -2
  70. package/dist/{chunk-C2NFLFHH.js → chunk-VPAN5H7Q.js} +1 -1
  71. package/dist/chunk-WH3D42BQ.js +299 -0
  72. package/dist/{chunk-2FSQPRPJ.js → chunk-WIUGUR5T.js} +59 -3
  73. package/dist/{chunk-QMVTT55Y.cjs → chunk-WQSWU2QA.cjs} +4 -4
  74. package/dist/chunk-XFPITUFJ.cjs +674 -0
  75. package/dist/chunk-XFQS2VGT.cjs +736 -0
  76. package/dist/{chunk-HYTYXN2G.cjs → chunk-YAGD43KA.cjs} +10 -10
  77. package/dist/constants-G2PLP5HH.cjs +20 -0
  78. package/dist/{constants-QYBEF3DB.js → constants-ZLG6M5SI.js} +3 -1
  79. package/dist/{defaultHooks-3G3DVF6I.js → defaultHooks-R56VYG7I.js} +315 -1
  80. package/dist/{defaultHooks-Z4KA6U5C.cjs → defaultHooks-WLMRQUXG.cjs} +315 -1
  81. package/dist/{feedback-PZ2PINDU.js → feedback-HZBCTSFG.js} +2 -2
  82. package/dist/feedback-JBQ3UPGZ.cjs +10 -0
  83. package/dist/index.cjs +897 -600
  84. package/dist/index.js +1438 -1141
  85. package/dist/language-KODBDE5R.js +12 -0
  86. package/dist/language-SJT475NW.cjs +12 -0
  87. package/dist/localProjectPermissions-AYQYGTOE.cjs +17 -0
  88. package/dist/{localProjectPermissions-DURCNDZG.js → localProjectPermissions-YFFAKLUZ.js} +2 -2
  89. package/dist/login-TC2KROQI.js +14 -0
  90. package/dist/login-TYMR2ZD3.cjs +14 -0
  91. package/dist/logout-2ECV365P.js +12 -0
  92. package/dist/logout-CO3CPYZJ.cjs +12 -0
  93. package/dist/resume-EPOEF3WV.cjs +9 -0
  94. package/dist/{resume-CWYAK6XR.js → resume-LOYD5MMP.js} +2 -2
  95. package/dist/share-544SIZOY.js +10 -0
  96. package/dist/share-OETK2GUF.cjs +10 -0
  97. package/dist/{skills-CRFOVWEQ.js → skills-3YEEODHK.js} +1 -1
  98. package/dist/skills-CRM55MKM.cjs +12 -0
  99. package/dist/{skills-install-Z27KPEGF.cjs → skills-install-FTGOHOZ4.cjs} +5 -5
  100. package/dist/{skills-install-RMPXN6RK.js → skills-install-KAXAQSN6.js} +2 -2
  101. package/dist/skills-new-JF4FKNUT.cjs +11 -0
  102. package/dist/{skills-new-S2YPO635.js → skills-new-JYX2GBKM.js} +2 -2
  103. package/dist/{status-GPAZ67ZZ.js → status-7LCXYYY4.js} +2 -2
  104. package/dist/status-E7MZEQ26.cjs +9 -0
  105. package/dist/sync-3B7SNBYC.js +14 -0
  106. package/dist/sync-4RARBQIH.cjs +39 -0
  107. package/dist/sync-H4UHHLKU.js +39 -0
  108. package/dist/sync-YZ6YZ42H.cjs +14 -0
  109. package/dist/theme-3XV5BWUB.js +12 -0
  110. package/dist/theme-Z2WS5XWZ.cjs +12 -0
  111. package/package.json +4 -2
  112. package/dist/CommunitySkillsCache-X3X237QQ.cjs +0 -7
  113. package/dist/HookManager-EOMUXKJ4.cjs +0 -6
  114. package/dist/MemoryManager-UVHILGV5.js +0 -7
  115. package/dist/MemoryManager-WO3KUZVA.cjs +0 -7
  116. package/dist/PermissionManager-PMTQN263.cjs +0 -10
  117. package/dist/SessionManager-M5ZLCLCW.cjs +0 -9
  118. package/dist/SkillsRegistry-OINIPILA.cjs +0 -8
  119. package/dist/agents-GRAFXZY3.cjs +0 -9
  120. package/dist/agents-new-67NJJSDA.cjs +0 -10
  121. package/dist/constants-PE5DLI7Q.cjs +0 -18
  122. package/dist/feedback-R66B3B3C.cjs +0 -10
  123. package/dist/localProjectPermissions-75X3ZGKH.cjs +0 -17
  124. package/dist/login-NYWZRZO5.js +0 -12
  125. package/dist/login-QNJ5C42G.cjs +0 -12
  126. package/dist/logout-MBS7L3ZW.js +0 -12
  127. package/dist/logout-MVUP7GPU.cjs +0 -12
  128. package/dist/resume-ANISKRWL.cjs +0 -9
  129. package/dist/share-3PSV53CQ.js +0 -10
  130. package/dist/share-4ACH6626.cjs +0 -10
  131. package/dist/skills-6PIGHOWS.cjs +0 -12
  132. package/dist/skills-new-3QJUST7P.cjs +0 -11
  133. package/dist/status-4U5CPUVT.cjs +0 -9
  134. package/dist/theme-CVY6MVEK.cjs +0 -12
  135. 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
- prompt: options.prompt,
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
- actions: result.actions,
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
- sessionId: currentState.sessionId,
1058
- reason,
1059
- iteration: currentState.currentIteration
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
- sessionId: currentState.sessionId,
1076
- iteration: currentState.currentIteration
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
- sessionId: currentState.sessionId,
1093
- iteration: currentState.currentIteration
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
- sessionId: currentState.sessionId,
1129
- iterations: currentState.currentIteration,
1130
- filesCreated: currentState.filesCreated,
1131
- filesModified: currentState.filesModified
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
- sessionId: currentState.sessionId,
1246
- iteration,
1247
- commit: hash
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
- prompt: options.prompt,
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
- actions: result.actions,
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
- sessionId: currentState.sessionId,
1058
- reason,
1059
- iteration: currentState.currentIteration
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
- sessionId: currentState.sessionId,
1076
- iteration: currentState.currentIteration
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
- sessionId: currentState.sessionId,
1093
- iteration: currentState.currentIteration
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
- sessionId: currentState.sessionId,
1129
- iterations: currentState.currentIteration,
1130
- filesCreated: currentState.filesCreated,
1131
- filesModified: currentState.filesModified
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
- sessionId: currentState.sessionId,
1246
- iteration,
1247
- commit: hash
1284
+ automodeSessionId: currentState.sessionId,
1285
+ automodeIteration: iteration,
1286
+ automodeCheckpointCommit: hash
1248
1287
  });
1249
1288
  }
1250
1289
  } catch (error) {
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGDTZQSJ6cjs = require('./chunk-GDTZQSJ6.cjs');
4
+ require('./chunk-PMMSDR44.cjs');
5
+
6
+
7
+ exports.CommunitySkillsCache = _chunkGDTZQSJ6cjs.CommunitySkillsCache;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CommunitySkillsCache
3
- } from "./chunk-5PD2L6WI.js";
4
- import "./chunk-FUEL6BK7.js";
3
+ } from "./chunk-3YEDXG6S.js";
4
+ import "./chunk-EKY5PKQI.js";
5
5
  export {
6
6
  CommunitySkillsCache
7
7
  };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkDSKVMFRMcjs = require('./chunk-DSKVMFRM.cjs');
4
+
5
+
6
+ exports.HookManager = _chunkDSKVMFRMcjs.HookManager;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HookManager
3
- } from "./chunk-JXOXZTMA.js";
3
+ } from "./chunk-L5ZFPWHY.js";
4
4
  export {
5
5
  HookManager
6
6
  };
@@ -0,0 +1,7 @@
1
+ import {
2
+ MemoryManager
3
+ } from "./chunk-KH7BCZJN.js";
4
+ import "./chunk-EKY5PKQI.js";
5
+ export {
6
+ MemoryManager
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPU534KPOcjs = require('./chunk-PU534KPO.cjs');
4
+ require('./chunk-PMMSDR44.cjs');
5
+
6
+
7
+ exports.MemoryManager = _chunkPU534KPOcjs.MemoryManager;
@@ -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-YMP7AGNT.js";
5
- import "./chunk-27ISZOFA.js";
6
- import "./chunk-FUEL6BK7.js";
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;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Session,
3
3
  SessionManager
4
- } from "./chunk-VO3JKFUH.js";
5
- import "./chunk-FUEL6BK7.js";
4
+ } from "./chunk-AVL4DKQO.js";
5
+ import "./chunk-EKY5PKQI.js";
6
6
  export {
7
7
  Session,
8
8
  SessionManager
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  SkillsRegistry
3
- } from "./chunk-SKU4M27Z.js";
3
+ } from "./chunk-OBV3UUIL.js";
4
4
  import "./chunk-QHPFA6OE.js";
5
- import "./chunk-FUEL6BK7.js";
5
+ import "./chunk-EKY5PKQI.js";
6
6
  export {
7
7
  SkillsRegistry
8
8
  };
@@ -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
+ import {
2
+ SyncApiClient,
3
+ getSyncApiClient,
4
+ resetSyncApiClient
5
+ } from "./chunk-MDWULS57.js";
6
+ export {
7
+ SyncApiClient,
8
+ getSyncApiClient,
9
+ resetSyncApiClient
10
+ };
@@ -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,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkC26EN22Gcjs = require('./chunk-C26EN22G.cjs');
5
+
6
+
7
+
8
+ exports.addDir = _chunkC26EN22Gcjs.addDir; exports.metadata = _chunkC26EN22Gcjs.metadata;
@@ -0,0 +1,8 @@
1
+ import {
2
+ addDir,
3
+ metadata
4
+ } from "./chunk-DOTAX65F.js";
5
+ export {
6
+ addDir,
7
+ metadata
8
+ };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  handler,
3
3
  metadata
4
- } from "./chunk-7HB7GSQF.js";
5
- import "./chunk-FUEL6BK7.js";
4
+ } from "./chunk-UL7YPRCU.js";
5
+ import "./chunk-EKY5PKQI.js";
6
6
  export {
7
7
  handler,
8
8
  metadata
@@ -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;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createAgent,
3
3
  metadata
4
- } from "./chunk-MWLAHCU7.js";
4
+ } from "./chunk-NI3BQXKU.js";
5
5
  import "./chunk-7BYSXAKS.js";
6
- import "./chunk-FUEL6BK7.js";
6
+ import "./chunk-EKY5PKQI.js";
7
7
  export {
8
8
  createAgent,
9
9
  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-RMPXN6RK.js");
229
+ const { skillsInstall } = await import("./skills-install-KAXAQSN6.js");
230
230
  const result = await skillsInstall(
231
231
  {
232
232
  skillsRegistry,