@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.
- package/dist/app/session-shell/prompt-suggestion-controller.d.ts +2 -0
- package/dist/app/session-shell/prompt-suggestion-controller.js +10 -0
- package/dist/app/session-shell/session-shell-root.js +15 -2
- package/dist/app/session-shell/session-shell.js +80 -23
- package/dist/app/session-shell/share-operation.d.ts +3 -0
- package/dist/app/session-shell/share-operation.js +11 -0
- package/dist/composition/owned-ui.js +2 -0
- package/dist/composition/settings-route-host.js +1 -1
- package/dist/contracts/presentation/index.d.ts +11 -1
- package/dist/contracts/presentation/index.js +6 -2
- package/dist/features/owned-ui/project-trust-dialog.js +7 -5
- package/dist/features/owned-ui/reference-screen-app.d.ts +2 -2
- package/dist/features/owned-ui/reference-screen-app.js +10 -6
- package/dist/features/owned-ui/settings-app.d.ts +1 -1
- package/dist/features/owned-ui/settings-app.js +342 -66
- package/dist/integrations/pi/components/index.d.ts +3 -2
- package/dist/integrations/pi/components/index.js +2 -1
- package/dist/integrations/pi/components/modal-frame.d.ts +11 -1
- package/dist/integrations/pi/components/modal-frame.js +29 -1
- package/dist/integrations/pi/components/models-dialog.js +19 -19
- package/dist/integrations/pi/components/share-operation-dialog.d.ts +6 -0
- package/dist/integrations/pi/components/share-operation-dialog.js +40 -0
- package/dist/integrations/pi/components/shell-editor-autocomplete.js +55 -8
- package/dist/integrations/pi/components/shell-extension-ui.d.ts +3 -0
- package/dist/integrations/pi/components/shell-extension-ui.js +8 -4
- package/dist/integrations/pi/components/shell-selectors-dialogs.d.ts +0 -4
- package/dist/integrations/pi/components/shell-selectors-dialogs.js +56 -34
- package/dist/integrations/pi/components/shell-session-info-reference.js +35 -2
- package/dist/integrations/pi/components/shell-shared-facade.d.ts +3 -1
- package/dist/integrations/pi/components/shell-shared-facade.js +13 -1
- package/dist/integrations/pi/components/skills-dialog.js +21 -8
- package/dist/integrations/pi/components/theme.d.ts +8 -1
- package/dist/integrations/pi/components/theme.js +28 -1
- package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.d.ts +10 -2
- package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.js +20 -6
- package/dist/integrations/pi/components/upstream/components/extension-editor.js +2 -2
- package/dist/integrations/pi/components/upstream/components/extension-input.js +4 -5
- package/dist/integrations/pi/components/upstream/components/extension-selector.js +2 -3
- package/dist/integrations/pi/components/upstream/components/owned-editor.d.ts +4 -2
- package/dist/integrations/pi/components/upstream/components/owned-editor.js +48 -12
- package/dist/integrations/pi/components/upstream/components/scoped-models-selector.d.ts +3 -2
- package/dist/integrations/pi/components/upstream/components/scoped-models-selector.js +4 -15
- package/dist/integrations/pi/components/upstream/components/session-selector.d.ts +2 -0
- package/dist/integrations/pi/components/upstream/components/session-selector.js +137 -110
- package/dist/integrations/pi/components/upstream/components/thinking-selector.d.ts +9 -5
- package/dist/integrations/pi/components/upstream/components/thinking-selector.js +65 -26
- package/dist/integrations/pi/components/upstream/components/tree-selector.d.ts +31 -21
- package/dist/integrations/pi/components/upstream/components/tree-selector.js +255 -214
- package/dist/integrations/pi/components/upstream/components/trust-selector.js +13 -15
- package/dist/integrations/pi/engine/adapter.js +21 -2
- package/dist/integrations/pi/engine/workflow-runner.js +2 -1
- package/dist/native/darwin-arm64/manifest.json +1 -1
- package/dist/native/linux-x64/manifest.json +1 -1
- package/dist/native/win32-x64/manifest.json +2 -2
- package/dist/native/win32-x64/process-guardian.exe +0 -0
- package/dist/ui/apps/host.d.ts +4 -3
- package/dist/ui/apps/host.js +9 -4
- package/dist/ui/components/dialog-panel.d.ts +15 -0
- package/dist/ui/components/dialog-panel.js +55 -9
- package/dist/ui/components/index.d.ts +3 -3
- package/dist/ui/components/index.js +2 -2
- package/dist/ui/components/line-input.d.ts +2 -0
- package/dist/ui/components/line-input.js +2 -2
- package/dist/ui/components/list-view.d.ts +3 -3
- package/dist/ui/components/list-view.js +8 -9
- package/dist/ui/components/prompt-input.d.ts +2 -2
- package/dist/ui/components/prompt-input.js +5 -5
- package/dist/ui/components/shortcut-hints.d.ts +10 -3
- package/dist/ui/components/shortcut-hints.js +42 -6
- package/dist/ui/components/shortcuts.d.ts +1 -1
- package/dist/ui/components/shortcuts.js +4 -0
- package/dist/ui/components/theme.d.ts +1 -1
- package/dist/ui/components/value-menu.js +3 -1
- package/dist/ui/settings/manager.d.ts +1 -0
- package/dist/ui/settings/manager.js +9 -3
- 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
|
-
/**
|
|
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
|
-
|
|
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 =>
|
|
87
|
-
|
|
88
|
-
|
|
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