@tutti-os/agent-gui 0.0.5 → 0.0.6

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.
@@ -3652,6 +3652,7 @@ aside.workspace-agents-status-panel
3652
3652
  --agent-conversation-user-text: var(--text-primary);
3653
3653
  --agent-conversation-user-bg: var(--agent-gui-surface-muted);
3654
3654
  --agent-gui-detail-padding-x: 28px;
3655
+ --agent-gui-detail-flow-max-width: 1280px;
3655
3656
  width: 100%;
3656
3657
  height: 100%;
3657
3658
  container: agent-gui-node / inline-size;
@@ -4993,7 +4994,10 @@ button.agent-gui-node__conversation-section-toggle:hover
4993
4994
  bottom: 0;
4994
4995
  z-index: 4;
4995
4996
  display: grid;
4997
+ align-self: center;
4998
+ box-sizing: border-box;
4996
4999
  gap: 0;
5000
+ width: min(100%, var(--agent-gui-detail-flow-max-width));
4997
5001
  margin-top: auto;
4998
5002
  padding-top: 0;
4999
5003
  background: transparent;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  translate,
3
3
  useTranslation
4
- } from "./chunk-BHCCGKOP.js";
4
+ } from "./chunk-JWVLIF5R.js";
5
5
  import {
6
6
  resolveAgentWorkspaceFileVisualKind
7
7
  } from "./chunk-PJP5BUU6.js";
@@ -246,7 +246,8 @@ function approvalOptionDisplayLabel(option, intent = {}) {
246
246
  const label = option.label.trim();
247
247
  const specificTranslationKey = approvalOptionSpecificTranslationKey(
248
248
  idToken,
249
- label
249
+ label,
250
+ intent
250
251
  );
251
252
  if (specificTranslationKey) {
252
253
  return translate(specificTranslationKey);
@@ -261,7 +262,7 @@ function approvalOptionDisplayLabel(option, intent = {}) {
261
262
  if ((idToken === "allowonce" || kindToken === "allowonce") && isGenericAllowOnceLabel(label)) {
262
263
  return translate("agentHost.agentGui.approvalOptions.allowOnce");
263
264
  }
264
- if ((idToken === "allowalways" || idToken === "allowall") && isGenericApprovalLabel(label)) {
265
+ if ((idToken === "allowalways" || idToken === "allowall" || kindToken === "allowalways") && isGenericApprovalLabel(label)) {
265
266
  return translate("agentHost.agentGui.approvalOptions.allowAlways");
266
267
  }
267
268
  if (idToken === "rejectalways" || kindToken === "rejectalways") {
@@ -289,9 +290,15 @@ function approvalOptionVisualPresentation(option, intent = {}) {
289
290
  function normalizeApprovalOptionToken(value) {
290
291
  return value.trim().toLowerCase().replace(/[^a-z0-9]+/g, "");
291
292
  }
292
- function approvalOptionSpecificTranslationKey(token, label) {
293
+ function approvalOptionSpecificTranslationKey(token, label, intent = {}) {
293
294
  const labelToken = normalizeApprovalOptionToken(label);
294
295
  switch (token) {
296
+ case "approved":
297
+ return isGenericAllowOnceLabel(label) ? "agentHost.agentGui.approvalOptions.allowOnce" : null;
298
+ case "approvedforsession":
299
+ return labelToken === "allowforthissession" ? "agentHost.agentGui.approvalOptions.allowForSession" : null;
300
+ case "approvedalways":
301
+ return isGenericApprovalLabel(label) ? "agentHost.agentGui.approvalOptions.allowAlways" : null;
295
302
  case "bypasspermissions":
296
303
  return "agentHost.agentGui.approvalOptions.bypassPermissions";
297
304
  case "auto":
@@ -300,6 +307,8 @@ function approvalOptionSpecificTranslationKey(token, label) {
300
307
  return "agentHost.agentGui.approvalOptions.acceptEdits";
301
308
  case "default":
302
309
  return labelToken === "yesandmanuallyapproveedits" ? "agentHost.agentGui.approvalOptions.manualApproval" : null;
310
+ case "cancel":
311
+ return !intent.feedback && labelToken === "cancel" ? "common.cancel" : null;
303
312
  default:
304
313
  return null;
305
314
  }
@@ -336,7 +345,7 @@ function approvalOptionCommandPrefix(label) {
336
345
  }
337
346
  function isGenericApprovalLabel(label) {
338
347
  const token = normalizeApprovalOptionToken(label);
339
- return token === "" || token === "allowalways" || token === "allowall" || token === "alwaysallow" || token === "yesanddontaskagain";
348
+ return token === "" || token === "allowalways" || token === "allowall" || token === "alwaysallow" || token === "allowanddontaskagain" || token === "yesanddontaskagain";
340
349
  }
341
350
  function isGenericAllowOnceLabel(label) {
342
351
  const token = normalizeApprovalOptionToken(label);
@@ -3464,7 +3473,6 @@ export {
3464
3473
  isPromptRequestIdTitle,
3465
3474
  AgentInteractivePromptSurface,
3466
3475
  user_avatar_placeholder_default,
3467
- normalizeWorkspaceAgentActivityDisplayStatus,
3468
3476
  workspaceAgentActivityStatusLabel
3469
3477
  };
3470
- //# sourceMappingURL=chunk-F55LU7IJ.js.map
3478
+ //# sourceMappingURL=chunk-FKCXHCPO.js.map