@co0ontty/wand 1.5.1 → 1.5.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/dist/web-ui/content/scripts.js +11 -11
- package/package.json +1 -1
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
cwdValue: "",
|
|
101
101
|
modeValue: "managed",
|
|
102
102
|
chatMode: "managed",
|
|
103
|
-
sessionCreateKind: "
|
|
103
|
+
sessionCreateKind: "structured",
|
|
104
104
|
sessionTool: "claude",
|
|
105
105
|
preferredCommand: "claude",
|
|
106
106
|
structuredRunner: "claude-cli-print",
|
|
@@ -1815,7 +1815,7 @@
|
|
|
1815
1815
|
{ id: "full-access", label: "全权限", desc: "自动确认权限" },
|
|
1816
1816
|
{ id: "auto-edit", label: "自动编辑", desc: "自动确认修改" },
|
|
1817
1817
|
{ id: "default", label: "标准", desc: "逐步确认操作" },
|
|
1818
|
-
{ id: "native", label: "原生", desc: "
|
|
1818
|
+
{ id: "native", label: "原生", desc: "原生结构化输出" }
|
|
1819
1819
|
];
|
|
1820
1820
|
return modes.map(function(m) {
|
|
1821
1821
|
var active = m.id === selectedMode ? " active" : "";
|
|
@@ -1828,8 +1828,8 @@
|
|
|
1828
1828
|
|
|
1829
1829
|
function renderSessionKindOptions(selectedKind) {
|
|
1830
1830
|
var kinds = [
|
|
1831
|
-
{ id: "
|
|
1832
|
-
{ id: "
|
|
1831
|
+
{ id: "structured", label: "结构化", desc: "智能对话模式" },
|
|
1832
|
+
{ id: "pty", label: "PTY", desc: "交互式终端会话" }
|
|
1833
1833
|
];
|
|
1834
1834
|
return kinds.map(function(kind) {
|
|
1835
1835
|
var active = kind.id === selectedKind ? " active" : "";
|
|
@@ -1842,15 +1842,15 @@
|
|
|
1842
1842
|
|
|
1843
1843
|
function getSessionKindHint(kind) {
|
|
1844
1844
|
if (kind === "structured") {
|
|
1845
|
-
return "
|
|
1845
|
+
return "结构化聊天界面,支持多轮对话、流式输出和工具调用展示。";
|
|
1846
1846
|
}
|
|
1847
|
-
return "
|
|
1847
|
+
return "原始 PTY 终端会话,支持持续交互、终端视图和权限流。";
|
|
1848
1848
|
}
|
|
1849
1849
|
|
|
1850
1850
|
function renderSessionModal() {
|
|
1851
1851
|
var modalTool = getPreferredTool();
|
|
1852
1852
|
var modalMode = getSafeModeForTool(modalTool, state.modeValue || state.chatMode || "default");
|
|
1853
|
-
var sessionKind = state.sessionCreateKind || "
|
|
1853
|
+
var sessionKind = state.sessionCreateKind || "structured";
|
|
1854
1854
|
return '<section id="session-modal" class="modal-backdrop hidden">' +
|
|
1855
1855
|
'<div class="modal session-modal">' +
|
|
1856
1856
|
'<div class="modal-header">' +
|
|
@@ -3462,7 +3462,7 @@
|
|
|
3462
3462
|
return "保留交互式会话,同时更偏向直接编辑代码。";
|
|
3463
3463
|
}
|
|
3464
3464
|
if (mode === "native") {
|
|
3465
|
-
return "
|
|
3465
|
+
return "调用 Claude 原生 API 输出,适合快速问答或一次性生成。";
|
|
3466
3466
|
}
|
|
3467
3467
|
if (mode === "managed") {
|
|
3468
3468
|
return "AI 自动完成所有工作,无需中途确认,适合有明确目标的任务。";
|
|
@@ -3612,7 +3612,7 @@
|
|
|
3612
3612
|
var modeHint = document.getElementById("mode-description");
|
|
3613
3613
|
var kindHint = document.getElementById("session-kind-description");
|
|
3614
3614
|
var tool = "claude";
|
|
3615
|
-
var sessionKind = state.sessionCreateKind || "
|
|
3615
|
+
var sessionKind = state.sessionCreateKind || "structured";
|
|
3616
3616
|
|
|
3617
3617
|
state.sessionTool = tool;
|
|
3618
3618
|
state.modeValue = getSafeModeForTool(tool, state.modeValue || state.chatMode || "default");
|
|
@@ -4007,7 +4007,7 @@
|
|
|
4007
4007
|
modal.classList.remove("hidden");
|
|
4008
4008
|
lastFocusedElement = document.activeElement;
|
|
4009
4009
|
state.sessionTool = getPreferredTool();
|
|
4010
|
-
state.sessionCreateKind = "
|
|
4010
|
+
state.sessionCreateKind = "structured";
|
|
4011
4011
|
state.modeValue = getSafeModeForTool(state.sessionTool, state.modeValue || state.chatMode);
|
|
4012
4012
|
syncSessionModalUI();
|
|
4013
4013
|
loadRecentPathBubbles();
|
|
@@ -4535,7 +4535,7 @@
|
|
|
4535
4535
|
var cwdEl = document.getElementById("cwd");
|
|
4536
4536
|
var errorEl = document.getElementById("modal-error");
|
|
4537
4537
|
var command = getPreferredTool();
|
|
4538
|
-
var sessionKind = state.sessionCreateKind || "
|
|
4538
|
+
var sessionKind = state.sessionCreateKind || "structured";
|
|
4539
4539
|
|
|
4540
4540
|
hideError(errorEl);
|
|
4541
4541
|
|