@ww_nero/mini-cli 1.0.57 → 1.0.59
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/package.json +1 -1
- package/src/config.js +9 -3
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -77,8 +77,9 @@ const DEFAULT_COMMIT_MODEL = {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
const DEFAULT_WORKTREE_COMMANDS = [
|
|
80
|
-
{ base: 'codex', prompt: 'codex --full-auto {prompt}' },
|
|
81
|
-
{ base: 'claude', prompt: 'claude {prompt}' }
|
|
80
|
+
{ base: 'codex', prompt: 'codex --full-auto {prompt}', resume: 'codex resume' },
|
|
81
|
+
{ base: 'claude', prompt: 'claude --permission-mode acceptEdits {prompt}', resume: 'claude --continue' },
|
|
82
|
+
{ base: 'gemini', prompt: 'gemini -m pro --approval-mode=auto_edit -i {prompt}', resume: 'gemini --resume' }
|
|
82
83
|
];
|
|
83
84
|
|
|
84
85
|
const DEFAULT_SETTINGS = {
|
|
@@ -87,7 +88,8 @@ const DEFAULT_SETTINGS = {
|
|
|
87
88
|
commands: [],
|
|
88
89
|
maxToolTokens: DEFAULT_MAX_TOOL_TOKENS,
|
|
89
90
|
compactTokenThreshold: DEFAULT_COMPACT_TOKEN_THRESHOLD,
|
|
90
|
-
allowedCommands: [...DEFAULT_ALLOWED_COMMANDS]
|
|
91
|
+
allowedCommands: [...DEFAULT_ALLOWED_COMMANDS],
|
|
92
|
+
worktrees: 2
|
|
91
93
|
};
|
|
92
94
|
|
|
93
95
|
const DEFAULT_MINI_CONTENT = '# 在此填写全局系统指令。\n';
|
|
@@ -343,6 +345,10 @@ const loadSettings = ({ defaultTools = [] } = {}) => {
|
|
|
343
345
|
compactTokenThreshold: normalizePositiveInteger(
|
|
344
346
|
parsed.compactTokenThreshold,
|
|
345
347
|
DEFAULT_COMPACT_TOKEN_THRESHOLD
|
|
348
|
+
),
|
|
349
|
+
worktrees: normalizePositiveInteger(
|
|
350
|
+
parsed.worktrees,
|
|
351
|
+
DEFAULT_SETTINGS.worktrees
|
|
346
352
|
)
|
|
347
353
|
};
|
|
348
354
|
|