@sanqianx/claude-ai-workbench 0.13.4 → 0.13.5

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.
@@ -182,7 +182,7 @@
182
182
  .rd-composer-wrap .send { margin-left:auto; }
183
183
  .rd-composer-wrap .composer textarea { font-size:14px; min-height:48px; }
184
184
  .rd-continue { align-self:center; border:1px solid var(--line); border-radius:8px; background:var(--page); color:var(--text); font-size:13px; padding:9px 16px; margin:12px 20px 20px; }
185
- .rd-permissions { padding:0 20px; flex:0 1 auto; min-height:0; overflow-y:auto; }
185
+ .rd-permissions { padding:0; }
186
186
  .rd-permissions:empty { display:none; }
187
187
  .rd-permissions .question-fields { max-height:min(38vh,360px); }
188
188
  .rd-pane[hidden], .rd-host-pane[hidden] { display:none; }
@@ -701,7 +701,7 @@
701
701
  try {
702
702
  await client.send(view.childSessionId, text, { permissionMode: 'default' });
703
703
  if (epoch !== scopeEpoch || !tabs.includes(tab)) return;
704
- tab.draft = ''; saveTabDraft(tab); tab.pane.composer.input.value = '';
704
+ tab.draft = ''; saveTabDraft(tab); tab.pane.composer.input.value = ''; tab.pane.composer.input.style.height = 'auto';
705
705
  void loadDelegationFirstPage(tab); void validateScopeDelegations();
706
706
  } catch { if (epoch === scopeEpoch && tabs.includes(tab)) tab.error = '消息暂未发送成功,草稿已保留。请查看对话结果后再决定是否重试。'; }
707
707
  finally { if (epoch === scopeEpoch && tabs.includes(tab)) { tab.sending = false; render(); flushPersist(); } }
@@ -782,7 +782,10 @@
782
782
  const pane = tab.pane, view = delegationIndex.get(tab.delegationId);
783
783
  if (!pane.permissions || !view) return;
784
784
  pane.permissions.textContent = '';
785
- if (!view.child.active) return;
785
+ if (!view.child.active) {
786
+ for (const card of pane.questionCards?.values() || []) card.settle({ cancelled: true });
787
+ pane.questionCards?.clear(); return;
788
+ }
786
789
  const pending = new Map();
787
790
  for (const event of tab.panel.events) {
788
791
  if (event.type === 'claude/permission-request') pending.set(event.requestId, event);
@@ -821,6 +824,8 @@
821
824
  }
822
825
  pane.permissions.append(card);
823
826
  }
827
+ pane.scroll.append(pane.permissions);
828
+ if (pane.follow !== false) pane.scroll.scrollTop = pane.scroll.scrollHeight;
824
829
  }
825
830
 
826
831
  function openDelegation(delegationId) {
@@ -1145,7 +1150,7 @@
1145
1150
  tab.pane.node.classList.add('rd-delegation-pane');
1146
1151
  tab.pane.composer = buildComposer(tab);
1147
1152
  tab.pane.permissions = el('div', 'rd-permissions');
1148
- tab.pane.node.append(tab.pane.permissions, tab.pane.composer.node);
1153
+ tab.pane.node.append(tab.pane.composer.node);
1149
1154
  }
1150
1155
 
1151
1156
  function refreshDelegationPane(tab) {
@@ -1,7 +1,7 @@
1
1
  openapi: 3.1.0
2
2
  info:
3
3
  title: Claude AI Workbench API
4
- version: 0.13.4
4
+ version: 0.13.5
5
5
  description: Versioned local API for AI Profile, credential and Claude Code session management.
6
6
  servers:
7
7
  - url: http://127.0.0.1:5760/api/claude-workbench/v1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanqianx/claude-ai-workbench",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
4
4
  "description": "Shared Claude Code terminal and Anthropic-compatible AI profile modules for local developer tools.",
5
5
  "type": "commonjs",
6
6
  "main": "src/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-ai-workbench/client",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
4
4
  "type": "commonjs",
5
5
  "main": "index.js",
6
6
  "browser": "index.js",
@@ -20,7 +20,7 @@
20
20
  "README.md"
21
21
  ],
22
22
  "dependencies": {
23
- "@claude-ai-workbench/contracts": "0.13.4"
23
+ "@claude-ai-workbench/contracts": "0.13.5"
24
24
  },
25
25
  "engines": {
26
26
  "node": ">=18"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-ai-workbench/contracts",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
4
4
  "type": "commonjs",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-ai-workbench/core",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
4
4
  "type": "commonjs",
5
5
  "main": "index.js",
6
6
  "browser": "index.js",
@@ -20,7 +20,7 @@
20
20
  "README.md"
21
21
  ],
22
22
  "dependencies": {
23
- "@claude-ai-workbench/contracts": "0.13.4"
23
+ "@claude-ai-workbench/contracts": "0.13.5"
24
24
  },
25
25
  "engines": {
26
26
  "node": ">=18"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-ai-workbench/server",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
4
4
  "type": "commonjs",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@anthropic-ai/claude-agent-sdk": "^0.2.141",
28
- "@claude-ai-workbench/contracts": "0.13.4"
28
+ "@claude-ai-workbench/contracts": "0.13.5"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">=18"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-ai-workbench/ui",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
4
4
  "type": "commonjs",
5
5
  "main": "ai-profile-settings.js",
6
6
  "browser": "ai-profile-settings.js",
@@ -33,7 +33,7 @@
33
33
  "README.md"
34
34
  ],
35
35
  "dependencies": {
36
- "@claude-ai-workbench/core": "0.13.4"
36
+ "@claude-ai-workbench/core": "0.13.5"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=18"