@timurproko/a1 0.2.3-dev.651 → 0.2.3-dev.655
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/session-shell.js +9 -2
- package/dist/contracts/owned-ui/model.d.ts +5 -0
- package/dist/foundation/startup/startup-descriptor.js +2 -2
- package/dist/integrations/pi/components/resources/builtin-themes.d.ts +114 -126
- package/dist/integrations/pi/components/resources/builtin-themes.js +145 -157
- package/dist/integrations/pi/components/shell-footer-status.js +12 -8
- package/dist/integrations/pi/components/shell-presenters-info.js +1 -1
- package/dist/integrations/pi/components/shell-selectors-dialogs.js +1 -0
- package/dist/integrations/pi/components/shell-shared-facade.js +1 -2
- package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.d.ts +2 -2
- package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.js +2 -2
- package/dist/integrations/pi/components/upstream/assets/earendil-image.json +2 -2
- package/dist/integrations/pi/components/upstream/components/countdown-timer.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/daxnuts.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/daxnuts.js +1 -1
- package/dist/integrations/pi/components/upstream/components/earendil-announcement.js +1 -1
- package/dist/integrations/pi/components/upstream/components/extension-editor.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/extension-editor.js +1 -1
- package/dist/integrations/pi/components/upstream/components/extension-input.js +1 -1
- package/dist/integrations/pi/components/upstream/components/extension-selector.js +1 -1
- package/dist/integrations/pi/components/upstream/components/mermaid.js +1 -1
- package/dist/integrations/pi/components/upstream/components/owned-editor.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/owned-editor.js +1 -1
- package/dist/integrations/pi/components/upstream/components/pi-logo.d.ts +2 -0
- package/dist/integrations/pi/components/upstream/components/pi-logo.js +21 -0
- package/dist/integrations/pi/components/upstream/components/scoped-models-selector.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/session-footer.js +13 -6
- package/dist/integrations/pi/components/upstream/components/session-selector-search.js +1 -1
- package/dist/integrations/pi/components/upstream/components/session-selector.js +1 -1
- package/dist/integrations/pi/components/upstream/components/skill-invocation-message.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/skill-invocation-message.js +1 -1
- package/dist/integrations/pi/components/upstream/components/status-indicator.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/status-indicator.js +1 -1
- package/dist/integrations/pi/components/upstream/components/themed-text.d.ts +16 -0
- package/dist/integrations/pi/components/upstream/components/themed-text.js +28 -0
- package/dist/integrations/pi/components/upstream/components/thinking-selector.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/thinking-selector.js +1 -1
- package/dist/integrations/pi/components/upstream/components/tool-execution.js +25 -3
- package/dist/integrations/pi/components/upstream/components/tree-selector.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/tree-selector.js +1 -1
- package/dist/integrations/pi/components/upstream/components/trust-selector.js +1 -1
- package/dist/integrations/pi/components/upstream/external-editor.js +1 -1
- package/dist/integrations/pi/components/upstream/history/editor-core.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/history/editor-core.js +5 -3
- package/dist/integrations/pi/components/upstream/history/kill-ring.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/history/kill-ring.js +1 -1
- package/dist/integrations/pi/components/upstream/history/printable-key.js +1 -1
- package/dist/integrations/pi/components/upstream/history/text-helpers.js +1 -1
- package/dist/integrations/pi/components/upstream/history/undo-stack.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/history/undo-stack.js +1 -1
- package/dist/integrations/pi/components/upstream/history/word-navigation.js +1 -1
- package/dist/integrations/pi/components/upstream/model-search.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/theme/system-theme.d.ts +60 -0
- package/dist/integrations/pi/components/upstream/theme/system-theme.js +695 -0
- package/dist/integrations/pi/components/upstream/theme/theme-controller.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/theme/theme.d.ts +6 -2
- package/dist/integrations/pi/components/upstream/theme/theme.js +22 -7
- package/dist/integrations/pi/engine/adapter.js +6 -0
- package/dist/integrations/pi/engine/pi-settings-metadata.json +10 -0
- package/dist/integrations/pi/engine/resources/changelog.json +4 -4
- package/dist/integrations/pi/engine/session-integration.d.ts +2 -2
- package/dist/integrations/pi/engine/session-integration.js +1 -1
- package/dist/integrations/pi/engine/settings-bridge.d.ts +1 -1
- package/dist/integrations/pi/engine/settings-bridge.js +9 -0
- package/dist/integrations/pi/engine/settings-port.js +4 -1
- package/dist/integrations/pi/engine/workflows.d.ts +2 -1
- package/dist/integrations/pi/engine/workflows.js +1 -0
- package/dist/integrations/pi/startup-public.js +1925 -1309
- package/dist/integrations/pi/startup-public.manifest.json +1611 -929
- package/dist/integrations/pi/tui-runtime/adapter.d.ts +2 -0
- package/dist/integrations/pi/tui-runtime/adapter.js +5 -0
- package/dist/integrations/pi/tui-runtime/contracts.d.ts +2 -1
- package/dist/integrations/pi/tui-runtime/damage-aware-terminal.d.ts +1 -1
- package/dist/integrations/pi/tui-runtime/damage-aware-terminal.js +1 -1
- package/dist/native/darwin-arm64/manifest.json +3 -3
- package/dist/native/darwin-arm64/process-guardian +0 -0
- package/dist/native/linux-x64/manifest.json +3 -3
- package/dist/native/linux-x64/process-guardian +0 -0
- package/dist/native/win32-x64/manifest.json +3 -3
- package/dist/native/win32-x64/process-guardian.exe +0 -0
- package/dist/runtime-payload-inventory.json +40622 -27400
- package/docs/ci-release-runbook.md +10 -7
- package/package.json +3 -3
|
@@ -6,8 +6,8 @@ export interface PiDocumentedSessionCommands {
|
|
|
6
6
|
readonly isRetrying: AgentSession["isRetrying"];
|
|
7
7
|
readonly isCompacting: AgentSession["isCompacting"];
|
|
8
8
|
prompt(text: string, options?: Parameters<AgentSession["prompt"]>[1]): Promise<void>;
|
|
9
|
-
steer(text: string, images?: PiPromptImages): Promise<
|
|
10
|
-
followUp(text: string, images?: PiPromptImages): Promise<
|
|
9
|
+
steer(text: string, images?: PiPromptImages): Promise<unknown>;
|
|
10
|
+
followUp(text: string, images?: PiPromptImages): Promise<unknown>;
|
|
11
11
|
abort(): Promise<void>;
|
|
12
12
|
abortRetry(): void;
|
|
13
13
|
abortCompaction(): void;
|
|
@@ -89,7 +89,7 @@ export class PiSessionCommandIntegration {
|
|
|
89
89
|
let accepted = false;
|
|
90
90
|
const started = this.session.prompt(first.text, {
|
|
91
91
|
streamingBehavior: first.mode,
|
|
92
|
-
preflightResult:
|
|
92
|
+
preflightResult: () => { accepted = true; },
|
|
93
93
|
...(first.images === undefined ? {} : { images: [...first.images] }),
|
|
94
94
|
});
|
|
95
95
|
for (const item of rest)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SettingsManager } from "../startup-public.js";
|
|
2
2
|
import type { AgentJsonValue, AgentSettingApplicationBoundary, AgentSettingChangeOutcome, AgentSettingDescriptor, AgentSettingOwner, AgentSettingsPort } from "../../../contracts/agent-engine/index.js";
|
|
3
|
-
export type PiSettingKey = "autoCompact" | "showImages" | "imageWidthCells" | "autoResizeImages" | "blockImages" | "enableSkillCommands" | "steeringMode" | "followUpMode" | "transport" | "httpIdleTimeoutMs" | "cacheWarmingMode" | "modelThinkingLevels" | "theme" | "hideThinkingBlock" | "mermaidRenderingMode" | "showCacheMissNotices" | "collapseChangelog" | "enableInstallTelemetry" | "quietStartup" | "defaultProjectTrust" | "doubleEscapeAction" | "treeFilterMode" | "showHardwareCursor" | "editorPaddingX" | "outputPad" | "autocompleteMaxVisible" | "clearOnShrink" | "showTerminalProgress" | "tuiMode" | "fullscreenExitOutput" | "fullscreenScrollbar" | "fullscreenCopyOnSelect" | "warnings";
|
|
3
|
+
export type PiSettingKey = "autoCompact" | "showImages" | "imageWidthCells" | "autoResizeImages" | "blockImages" | "enableSkillCommands" | "steeringMode" | "followUpMode" | "transport" | "httpIdleTimeoutMs" | "cacheWarmingMode" | "modelThinkingLevels" | "theme" | "hideThinkingBlock" | "mermaidRenderingMode" | "showCacheMissNotices" | "collapseChangelog" | "enableInstallTelemetry" | "quietStartup" | "defaultProjectTrust" | "doubleEscapeAction" | "treeFilterMode" | "showHardwareCursor" | "editorPaddingX" | "outputPad" | "autocompleteMaxVisible" | "clearOnShrink" | "showTerminalProgress" | "tuiMode" | "fullscreenExitOutput" | "fullscreenScrollbar" | "fullscreenCopyOnSelect" | "fullscreenWheelScrollLines" | "warnings";
|
|
4
4
|
export type PiSettingVisualClass = "none" | "transcript" | "transcript-geometry" | "editor-menu" | "queue-transcript" | "status-error" | "retry-error" | "footer-transcript" | "markdown" | "transcript-notice" | "startup-transcript" | "startup-selector" | "selector" | "terminal-cursor" | "editor-geometry" | "menu-geometry" | "terminal-frame" | "terminal-status" | "hidden";
|
|
5
5
|
export interface PiSettingVisualEvidence {
|
|
6
6
|
/** Reviewed visual family; `none` still names the behavior that can emit styled diagnostics. */
|
|
@@ -36,6 +36,7 @@ export const PI_SETTING_EFFECTS = Object.freeze({
|
|
|
36
36
|
fullscreenExitOutput: hiddenEffect("current-exit", "shutdown", "pinned styled transcript and compact dim resume hint", "pinned-fullscreen-exit-parity"),
|
|
37
37
|
fullscreenScrollbar: hiddenEffect("live", "shell", "pinned fullscreen scrollbar reservation", "pi-terminal-operation-parity"),
|
|
38
38
|
fullscreenCopyOnSelect: effect("live", "shell", "terminal-status", "pinned fullscreen copy-on-select toggle and copy acknowledgement", "pi-terminal-operation-parity"),
|
|
39
|
+
fullscreenWheelScrollLines: effect("live", "shell", "terminal-frame", "pinned fullscreen wheel distance and acceleration", "pi-terminal-operation-parity"),
|
|
39
40
|
warnings: effect("live", "agent", "transcript-notice", "pinned warning rows by warning part", "pinned-transcript-lifecycle-parity"),
|
|
40
41
|
});
|
|
41
42
|
function effect(application, owner, visualClass, pinnedSurface, evidence) {
|
|
@@ -424,6 +425,7 @@ function operations(settings, providers) {
|
|
|
424
425
|
choice("fullscreenExitOutput", offered("fullscreenExitOutput"), () => settings.getFullscreenExitOutput(), value => settings.setFullscreenExitOutput(value)),
|
|
425
426
|
choice("fullscreenScrollbar", offered("fullscreenScrollbar"), () => settings.getFullscreenScrollbar(), value => settings.setFullscreenScrollbar(value)),
|
|
426
427
|
bool("fullscreenCopyOnSelect", () => settings.getFullscreenCopyOnSelect(), value => settings.setFullscreenCopyOnSelect(value)),
|
|
428
|
+
wheelScrollLinesSetting(settings),
|
|
427
429
|
jsonObject("warnings", () => settings.getWarnings(), value => settings.setWarnings(value)),
|
|
428
430
|
];
|
|
429
431
|
}
|
|
@@ -470,6 +472,13 @@ function numberSetting(key, read, write, minimum) {
|
|
|
470
472
|
invalid(key);
|
|
471
473
|
}, value => write(value));
|
|
472
474
|
}
|
|
475
|
+
function wheelScrollLinesSetting(settings) {
|
|
476
|
+
const key = "fullscreenWheelScrollLines";
|
|
477
|
+
return operation(key, "json", () => settings.getFullscreenWheelScrollLines(), value => {
|
|
478
|
+
if (value !== "auto" && (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1 || value > 100))
|
|
479
|
+
invalid(key);
|
|
480
|
+
}, value => settings.setFullscreenWheelScrollLines(value));
|
|
481
|
+
}
|
|
473
482
|
function jsonObject(key, read, write) {
|
|
474
483
|
const boundedRead = () => Object.fromEntries(Object.entries(read()).filter((entry) => typeof entry[1] === "boolean"));
|
|
475
484
|
return operation(key, "json", boundedRead, value => {
|
|
@@ -230,6 +230,7 @@ export class PiEngineSettings {
|
|
|
230
230
|
fullscreenExitOutput: setting(settings?.getFullscreenExitOutput, "transcript"),
|
|
231
231
|
fullscreenScrollbar: setting(settings?.getFullscreenScrollbar, "auto"),
|
|
232
232
|
fullscreenCopyOnSelect: setting(settings?.getFullscreenCopyOnSelect, true),
|
|
233
|
+
fullscreenWheelScrollLines: setting(settings?.getFullscreenWheelScrollLines, "auto"),
|
|
233
234
|
warnings: setting(settings?.getWarnings, { anthropicExtraUsage: true }),
|
|
234
235
|
};
|
|
235
236
|
}
|
|
@@ -286,6 +287,7 @@ export class PiEngineSettings {
|
|
|
286
287
|
onTuiModeChange: snapshot.tuiMode,
|
|
287
288
|
onFullscreenExitOutputChange: snapshot.fullscreenExitOutput,
|
|
288
289
|
onFullscreenScrollbarChange: snapshot.fullscreenScrollbar,
|
|
290
|
+
onFullscreenWheelScrollLinesChange: snapshot.fullscreenWheelScrollLines,
|
|
289
291
|
onWarningsChange: snapshot.warnings,
|
|
290
292
|
};
|
|
291
293
|
selectedValue = currentValues[callback];
|
|
@@ -335,7 +337,8 @@ function settingKeyForCallback(callback) {
|
|
|
335
337
|
onTreeFilterModeChange: "treeFilterMode", onShowHardwareCursorChange: "showHardwareCursor",
|
|
336
338
|
onEditorPaddingXChange: "editorPaddingX", onOutputPadChange: "outputPad", onAutocompleteMaxVisibleChange: "autocompleteMaxVisible",
|
|
337
339
|
onClearOnShrinkChange: "clearOnShrink", onShowTerminalProgressChange: "showTerminalProgress", onTuiModeChange: "tuiMode",
|
|
338
|
-
onFullscreenExitOutputChange: "fullscreenExitOutput", onFullscreenScrollbarChange: "fullscreenScrollbar",
|
|
340
|
+
onFullscreenExitOutputChange: "fullscreenExitOutput", onFullscreenScrollbarChange: "fullscreenScrollbar",
|
|
341
|
+
onFullscreenWheelScrollLinesChange: "fullscreenWheelScrollLines", onWarningsChange: "warnings",
|
|
339
342
|
};
|
|
340
343
|
return keys[callback] ?? null;
|
|
341
344
|
}
|
|
@@ -20,7 +20,7 @@ export type PiProductMode = "bare" | "comparison";
|
|
|
20
20
|
/** The advertised command catalog for a product mode; hidden routes are shared by both. */
|
|
21
21
|
export declare function workflowCommandNames(productMode: PiProductMode): readonly (PiWorkflowCommandName | OwnedModelsCommandName)[];
|
|
22
22
|
export type PiWorkflowRoute = PiWorkflowCommandName | PiHiddenWorkflowCommandName | OwnedModelsCommandName;
|
|
23
|
-
export declare const PINNED_PI_SETTINGS_CALLBACKS: readonly ["onAutoCompactChange", "onShowImagesChange", "onImageWidthCellsChange", "onAutoResizeImagesChange", "onBlockImagesChange", "onEnableSkillCommandsChange", "onSteeringModeChange", "onFollowUpModeChange", "onTransportChange", "onHttpIdleTimeoutMsChange", "onCacheWarmingModeChange", "onModelThinkingLevelChange", "onModelThinkingLevelRemove", "onThemeChange", "onThemePreview", "onHideThinkingBlockChange", "onMermaidRenderingModeChange", "onShowCacheMissNoticesChange", "onCollapseChangelogChange", "onEnableInstallTelemetryChange", "onQuietStartupChange", "onDefaultProjectTrustChange", "onDoubleEscapeActionChange", "onTreeFilterModeChange", "onShowHardwareCursorChange", "onEditorPaddingXChange", "onOutputPadChange", "onAutocompleteMaxVisibleChange", "onClearOnShrinkChange", "onShowTerminalProgressChange", "onTuiModeChange", "onFullscreenExitOutputChange", "onFullscreenScrollbarChange", "onFullscreenCopyOnSelectChange", "onWarningsChange", "onCancel"];
|
|
23
|
+
export declare const PINNED_PI_SETTINGS_CALLBACKS: readonly ["onAutoCompactChange", "onShowImagesChange", "onImageWidthCellsChange", "onAutoResizeImagesChange", "onBlockImagesChange", "onEnableSkillCommandsChange", "onSteeringModeChange", "onFollowUpModeChange", "onTransportChange", "onHttpIdleTimeoutMsChange", "onCacheWarmingModeChange", "onModelThinkingLevelChange", "onModelThinkingLevelRemove", "onThemeChange", "onThemePreview", "onHideThinkingBlockChange", "onMermaidRenderingModeChange", "onShowCacheMissNoticesChange", "onCollapseChangelogChange", "onEnableInstallTelemetryChange", "onQuietStartupChange", "onDefaultProjectTrustChange", "onDoubleEscapeActionChange", "onTreeFilterModeChange", "onShowHardwareCursorChange", "onEditorPaddingXChange", "onOutputPadChange", "onAutocompleteMaxVisibleChange", "onClearOnShrinkChange", "onShowTerminalProgressChange", "onTuiModeChange", "onFullscreenExitOutputChange", "onFullscreenScrollbarChange", "onFullscreenCopyOnSelectChange", "onFullscreenWheelScrollLinesChange", "onWarningsChange", "onCancel"];
|
|
24
24
|
export type PiPinnedSettingsCallback = typeof PINNED_PI_SETTINGS_CALLBACKS[number];
|
|
25
25
|
export interface PiPinnedSettingsSnapshot {
|
|
26
26
|
readonly autoCompact: boolean;
|
|
@@ -66,6 +66,7 @@ export interface PiPinnedSettingsSnapshot {
|
|
|
66
66
|
readonly fullscreenExitOutput: "transcript" | "resume-hint";
|
|
67
67
|
readonly fullscreenScrollbar: "hidden" | "auto" | "always";
|
|
68
68
|
readonly fullscreenCopyOnSelect: boolean;
|
|
69
|
+
readonly fullscreenWheelScrollLines: number | "auto";
|
|
69
70
|
readonly warnings: {
|
|
70
71
|
readonly anthropicExtraUsage?: boolean;
|
|
71
72
|
};
|