@timurproko/a1 0.2.5-dev.683 → 0.2.5-dev.704

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 (76) hide show
  1. package/dist/app/session-shell/prompt-suggestion-controller.d.ts +2 -0
  2. package/dist/app/session-shell/prompt-suggestion-controller.js +10 -0
  3. package/dist/app/session-shell/session-shell-root.js +15 -2
  4. package/dist/app/session-shell/session-shell.js +80 -23
  5. package/dist/app/session-shell/share-operation.d.ts +3 -0
  6. package/dist/app/session-shell/share-operation.js +11 -0
  7. package/dist/composition/owned-ui.js +2 -0
  8. package/dist/composition/settings-route-host.js +1 -1
  9. package/dist/contracts/presentation/index.d.ts +11 -1
  10. package/dist/contracts/presentation/index.js +6 -2
  11. package/dist/features/owned-ui/project-trust-dialog.js +7 -5
  12. package/dist/features/owned-ui/reference-screen-app.d.ts +2 -2
  13. package/dist/features/owned-ui/reference-screen-app.js +10 -6
  14. package/dist/features/owned-ui/settings-app.d.ts +1 -1
  15. package/dist/features/owned-ui/settings-app.js +342 -66
  16. package/dist/integrations/pi/components/index.d.ts +3 -2
  17. package/dist/integrations/pi/components/index.js +2 -1
  18. package/dist/integrations/pi/components/modal-frame.d.ts +11 -1
  19. package/dist/integrations/pi/components/modal-frame.js +29 -1
  20. package/dist/integrations/pi/components/models-dialog.js +19 -19
  21. package/dist/integrations/pi/components/share-operation-dialog.d.ts +6 -0
  22. package/dist/integrations/pi/components/share-operation-dialog.js +40 -0
  23. package/dist/integrations/pi/components/shell-editor-autocomplete.js +55 -8
  24. package/dist/integrations/pi/components/shell-extension-ui.d.ts +3 -0
  25. package/dist/integrations/pi/components/shell-extension-ui.js +8 -4
  26. package/dist/integrations/pi/components/shell-selectors-dialogs.d.ts +0 -4
  27. package/dist/integrations/pi/components/shell-selectors-dialogs.js +56 -34
  28. package/dist/integrations/pi/components/shell-session-info-reference.js +35 -2
  29. package/dist/integrations/pi/components/shell-shared-facade.d.ts +3 -1
  30. package/dist/integrations/pi/components/shell-shared-facade.js +13 -1
  31. package/dist/integrations/pi/components/skills-dialog.js +21 -8
  32. package/dist/integrations/pi/components/theme.d.ts +8 -1
  33. package/dist/integrations/pi/components/theme.js +28 -1
  34. package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.d.ts +10 -2
  35. package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.js +20 -6
  36. package/dist/integrations/pi/components/upstream/components/extension-editor.js +2 -2
  37. package/dist/integrations/pi/components/upstream/components/extension-input.js +4 -5
  38. package/dist/integrations/pi/components/upstream/components/extension-selector.js +2 -3
  39. package/dist/integrations/pi/components/upstream/components/owned-editor.d.ts +4 -2
  40. package/dist/integrations/pi/components/upstream/components/owned-editor.js +48 -12
  41. package/dist/integrations/pi/components/upstream/components/scoped-models-selector.d.ts +3 -2
  42. package/dist/integrations/pi/components/upstream/components/scoped-models-selector.js +4 -15
  43. package/dist/integrations/pi/components/upstream/components/session-selector.d.ts +2 -0
  44. package/dist/integrations/pi/components/upstream/components/session-selector.js +137 -110
  45. package/dist/integrations/pi/components/upstream/components/thinking-selector.d.ts +9 -5
  46. package/dist/integrations/pi/components/upstream/components/thinking-selector.js +65 -26
  47. package/dist/integrations/pi/components/upstream/components/tree-selector.d.ts +31 -21
  48. package/dist/integrations/pi/components/upstream/components/tree-selector.js +255 -214
  49. package/dist/integrations/pi/components/upstream/components/trust-selector.js +13 -15
  50. package/dist/integrations/pi/engine/adapter.js +21 -2
  51. package/dist/integrations/pi/engine/workflow-runner.js +2 -1
  52. package/dist/native/darwin-arm64/manifest.json +1 -1
  53. package/dist/native/linux-x64/manifest.json +1 -1
  54. package/dist/native/win32-x64/manifest.json +2 -2
  55. package/dist/native/win32-x64/process-guardian.exe +0 -0
  56. package/dist/ui/apps/host.d.ts +4 -3
  57. package/dist/ui/apps/host.js +9 -4
  58. package/dist/ui/components/dialog-panel.d.ts +15 -0
  59. package/dist/ui/components/dialog-panel.js +55 -9
  60. package/dist/ui/components/index.d.ts +3 -3
  61. package/dist/ui/components/index.js +2 -2
  62. package/dist/ui/components/line-input.d.ts +2 -0
  63. package/dist/ui/components/line-input.js +2 -2
  64. package/dist/ui/components/list-view.d.ts +3 -3
  65. package/dist/ui/components/list-view.js +8 -9
  66. package/dist/ui/components/prompt-input.d.ts +2 -2
  67. package/dist/ui/components/prompt-input.js +5 -5
  68. package/dist/ui/components/shortcut-hints.d.ts +10 -3
  69. package/dist/ui/components/shortcut-hints.js +42 -6
  70. package/dist/ui/components/shortcuts.d.ts +1 -1
  71. package/dist/ui/components/shortcuts.js +4 -0
  72. package/dist/ui/components/theme.d.ts +1 -1
  73. package/dist/ui/components/value-menu.js +3 -1
  74. package/dist/ui/settings/manager.d.ts +1 -0
  75. package/dist/ui/settings/manager.js +9 -3
  76. package/package.json +1 -1
@@ -8,7 +8,7 @@ export interface UiTheme {
8
8
  * into a dark terminal, which is how the engine leaves its lists too.
9
9
  */
10
10
  plain(text: string): string;
11
- /** Inverted styling for the active row of a floating surface. */
11
+ /** Selection background for an active list item or floating-surface row. */
12
12
  highlight(text: string): string;
13
13
  /** A control that is present but cannot act: quieter than quiet text. */
14
14
  disabled(text: string): string;
@@ -9,7 +9,9 @@ export function valueMenuFrame(state, anchor, layout) {
9
9
  ? below
10
10
  : Math.max(bodyTop, anchor.screenRow - state.choices.length);
11
11
  const width = Math.max(...state.choices.map(choice => displayWidth(choice) + 4), 6);
12
- const column = Math.min(anchor.valueColumn, Math.max(0, layout.surfaceWidth - width - layout.reservedRight));
12
+ // Invariant: each row reserves two cells for its effective-value mark. Place those
13
+ // cells before the anchor so visible choice text starts in the source value column.
14
+ const column = Math.min(Math.max(0, anchor.valueColumn - 2), Math.max(0, layout.surfaceWidth - width - layout.reservedRight));
13
15
  return { top, column, width, rows: state.choices.length };
14
16
  }
15
17
  /** Draws the menu over the rows behind it, leaving them otherwise untouched. */
@@ -12,6 +12,7 @@ export interface OwnedSettingsManagerOptions {
12
12
  readonly agent?: AgentSettingsPort | null;
13
13
  readonly agentProvider?: () => AgentSettingsPort | null;
14
14
  readonly hiddenAgentSettingIds?: readonly string[];
15
+ readonly agentSettingLabelOverrides?: Readonly<Record<string, string>>;
15
16
  }
16
17
  export interface OwnedUiSettingsChangeOutcome {
17
18
  readonly status: "applied" | "deferred" | "unavailable" | "failed";
@@ -21,6 +21,7 @@ export class OwnedSettingsManager {
21
21
  #agentProvider;
22
22
  #listeners = new Set();
23
23
  #hiddenAgentSettingIds;
24
+ #agentSettingLabelOverrides;
24
25
  #resolution;
25
26
  #agentSnapshot = null;
26
27
  #pending = new Map();
@@ -35,6 +36,7 @@ export class OwnedSettingsManager {
35
36
  this.#agent = options.agent ?? null;
36
37
  this.#agentProvider = options.agentProvider ?? null;
37
38
  this.#hiddenAgentSettingIds = new Set(options.hiddenAgentSettingIds ?? []);
39
+ this.#agentSettingLabelOverrides = { ...(options.agentSettingLabelOverrides ?? {}) };
38
40
  this.#resolution = this.read();
39
41
  for (const setting of this.#resolution.settings) {
40
42
  if (setting.declaration.application === "restart")
@@ -83,9 +85,13 @@ export class OwnedSettingsManager {
83
85
  sections() {
84
86
  return buildOwnedUiSettingsSections({ resolution: this.#resolution, agent: this.#agentSnapshot }).map(section => ({
85
87
  ...section,
86
- entries: section.entries.map(entry => entry.backend === "a1" && this.#restartEffective.has(entry.id)
87
- ? { ...entry, effectiveValue: this.#restartEffective.get(entry.id) }
88
- : entry),
88
+ entries: section.entries.map(entry => {
89
+ if (entry.backend === "a1" && this.#restartEffective.has(entry.id)) {
90
+ return { ...entry, effectiveValue: this.#restartEffective.get(entry.id) };
91
+ }
92
+ const label = entry.backend === "agent" ? this.#agentSettingLabelOverrides[entry.id] : undefined;
93
+ return label === undefined ? entry : { ...entry, label };
94
+ }),
89
95
  }));
90
96
  }
91
97
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timurproko/a1",
3
- "version": "0.2.5-dev.683",
3
+ "version": "0.2.5-dev.704",
4
4
  "description": "Standalone terminal workspace for supervised native and managed agents",
5
5
  "type": "module",
6
6
  "privateLaunchContract": "neutral-launch-v1",