@timurproko/a1 0.2.7-dev.809 → 0.2.7-dev.810

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 (79) hide show
  1. package/README.md +4 -2
  2. package/dist/app/session-shell/response-copy-transport.d.ts +13 -0
  3. package/dist/app/session-shell/response-copy-transport.js +16 -7
  4. package/dist/foundation/release/progress-palette.generated.d.ts +2 -2
  5. package/dist/foundation/release/progress-palette.generated.js +2 -2
  6. package/dist/foundation/startup/startup-descriptor.js +2 -2
  7. package/dist/integrations/pi/components/resources/builtin-themes.d.ts +2 -2
  8. package/dist/integrations/pi/components/resources/builtin-themes.js +2 -2
  9. package/dist/integrations/pi/components/shell-extension-ui.js +79 -60
  10. package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.d.ts +1 -1
  11. package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.js +1 -1
  12. package/dist/integrations/pi/components/upstream/assets/earendil-image.json +2 -2
  13. package/dist/integrations/pi/components/upstream/components/countdown-timer.d.ts +1 -1
  14. package/dist/integrations/pi/components/upstream/components/earendil-announcement.js +1 -1
  15. package/dist/integrations/pi/components/upstream/components/extension-editor.d.ts +1 -1
  16. package/dist/integrations/pi/components/upstream/components/extension-editor.js +1 -1
  17. package/dist/integrations/pi/components/upstream/components/extension-input.js +1 -1
  18. package/dist/integrations/pi/components/upstream/components/extension-selector.js +1 -1
  19. package/dist/integrations/pi/components/upstream/components/mermaid.js +1 -1
  20. package/dist/integrations/pi/components/upstream/components/owned-editor.d.ts +1 -1
  21. package/dist/integrations/pi/components/upstream/components/owned-editor.js +1 -1
  22. package/dist/integrations/pi/components/upstream/components/pi-logo.js +1 -1
  23. package/dist/integrations/pi/components/upstream/components/scoped-models-selector.d.ts +1 -1
  24. package/dist/integrations/pi/components/upstream/components/session-footer.js +1 -1
  25. package/dist/integrations/pi/components/upstream/components/session-selector-search.js +1 -1
  26. package/dist/integrations/pi/components/upstream/components/session-selector.js +1 -1
  27. package/dist/integrations/pi/components/upstream/components/skill-invocation-message.d.ts +1 -1
  28. package/dist/integrations/pi/components/upstream/components/skill-invocation-message.js +1 -1
  29. package/dist/integrations/pi/components/upstream/components/status-indicator.d.ts +1 -1
  30. package/dist/integrations/pi/components/upstream/components/status-indicator.js +1 -1
  31. package/dist/integrations/pi/components/upstream/components/themed-text.d.ts +1 -1
  32. package/dist/integrations/pi/components/upstream/components/themed-text.js +1 -1
  33. package/dist/integrations/pi/components/upstream/components/thinking-selector.d.ts +1 -1
  34. package/dist/integrations/pi/components/upstream/components/thinking-selector.js +1 -1
  35. package/dist/integrations/pi/components/upstream/components/tool-execution.d.ts +2 -4
  36. package/dist/integrations/pi/components/upstream/components/tool-execution.js +77 -98
  37. package/dist/integrations/pi/components/upstream/components/tree-selector.d.ts +1 -1
  38. package/dist/integrations/pi/components/upstream/components/tree-selector.js +1 -1
  39. package/dist/integrations/pi/components/upstream/components/trust-selector.js +1 -1
  40. package/dist/integrations/pi/components/upstream/external-editor.js +1 -1
  41. package/dist/integrations/pi/components/upstream/history/editor-core.d.ts +1 -1
  42. package/dist/integrations/pi/components/upstream/history/editor-core.js +1 -1
  43. package/dist/integrations/pi/components/upstream/history/kill-ring.d.ts +1 -1
  44. package/dist/integrations/pi/components/upstream/history/kill-ring.js +1 -1
  45. package/dist/integrations/pi/components/upstream/history/printable-key.js +1 -1
  46. package/dist/integrations/pi/components/upstream/history/text-helpers.js +1 -1
  47. package/dist/integrations/pi/components/upstream/history/undo-stack.d.ts +1 -1
  48. package/dist/integrations/pi/components/upstream/history/undo-stack.js +1 -1
  49. package/dist/integrations/pi/components/upstream/history/word-navigation.js +1 -1
  50. package/dist/integrations/pi/components/upstream/model-search.d.ts +1 -1
  51. package/dist/integrations/pi/components/upstream/program-status-reporter.d.ts +1 -1
  52. package/dist/integrations/pi/components/upstream/theme/theme-controller.d.ts +1 -1
  53. package/dist/integrations/pi/components/upstream/theme/theme.js +1 -1
  54. package/dist/integrations/pi/engine/resources/changelog.json +4 -4
  55. package/dist/integrations/pi/startup-public.js +164 -150
  56. package/dist/integrations/pi/startup-public.manifest.json +351 -310
  57. package/dist/integrations/pi/tui-runtime/adapter.js +4 -0
  58. package/dist/integrations/pi/tui-runtime/contracts.d.ts +5 -0
  59. package/dist/integrations/pi/tui-runtime/damage-aware-terminal.d.ts +1 -1
  60. package/dist/integrations/pi/tui-runtime/damage-aware-terminal.js +1 -1
  61. package/dist/native/darwin-arm64/manifest.json +1 -1
  62. package/dist/native/darwin-arm64/terminal-host.manifest.json +3 -3
  63. package/dist/native/darwin-arm64/terminal-host.node +0 -0
  64. package/dist/native/darwin-x64/manifest.json +1 -1
  65. package/dist/native/darwin-x64/terminal-host.manifest.json +3 -3
  66. package/dist/native/darwin-x64/terminal-host.node +0 -0
  67. package/dist/native/linux-x64/manifest.json +1 -1
  68. package/dist/native/linux-x64/terminal-host.manifest.json +3 -3
  69. package/dist/native/linux-x64/terminal-host.node +0 -0
  70. package/dist/native/win32-x64/manifest.json +2 -2
  71. package/dist/native/win32-x64/process-guardian.node +0 -0
  72. package/dist/native/win32-x64/terminal-host.manifest.json +3 -3
  73. package/dist/native/win32-x64/terminal-host.node +0 -0
  74. package/dist/runtime-payload-inventory.json +5181 -5369
  75. package/dist/ui/components/transcript-viewport.js +10 -19
  76. package/docs/architecture/resident-tabs.md +2 -2
  77. package/docs/architecture/response-copy-delivery.md +1 -1
  78. package/docs/architecture/toolchain.md +2 -2
  79. package/package.json +5 -5
@@ -181,6 +181,10 @@ export class PiTuiRuntimeAdapter {
181
181
  this.#tuiTerminal = this.#inputCoordinator === undefined
182
182
  ? preInputTerminal(decoratedTerminal, data => this.#routePreInput(data), this.#overlayGeometry !== undefined)
183
183
  : coordinatedInputTerminal(decoratedTerminal, this.#inputCoordinator, sink => { this.#inputSink = sink; }, this.#overlayGeometry !== undefined);
184
+ // Invariant: Pi TUI's exit-time restore reaches the undecorated terminal directly. Decorators only shape
185
+ // presentation, and the frozen gate must not swallow the last-resort mode reset when the process exits.
186
+ const exitTerminal = this.#terminal;
187
+ this.#tuiTerminal.restoreOnExit = (before, after) => exitTerminal.restoreOnExit?.(before, after);
184
188
  this.#layoutRoot = options.layoutRoot;
185
189
  this.#logDirectory = options.logDirectory;
186
190
  this.#rootBridge = new ComponentBridge(options.root, options.inputDiagnostics === undefined
@@ -34,6 +34,11 @@ export interface PiTuiTerminalPort {
34
34
  setProgress(active: boolean): void;
35
35
  /** Optional for neutral test/decorator ports; the Pi-facing adapter always supplies it. */
36
36
  setProgramStatus?(status: ProgramStatus): void;
37
+ /**
38
+ * Optional synchronous last-resort mode restore that Pi TUI invokes from a process `exit` handler when
39
+ * `stop()` did not run; the runtime adapter binds it to the undecorated terminal, so decorators need not forward it.
40
+ */
41
+ restoreOnExit?(before: string, after: string): void;
37
42
  }
38
43
  export type PiTuiSizeValue = number | `${number}%`;
39
44
  export type PiTuiOverlayAnchor = "center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center" | "left-center" | "right-center";
@@ -1,5 +1,5 @@
1
1
  import type { PiTuiTerminalPort } from "./contracts.js";
2
- export declare const PINNED_PI_TUI_DAMAGE_GRAMMAR = "@earendil-works/pi-tui@1.3.0:tui-alt-screen-one-write-v1";
2
+ export declare const PINNED_PI_TUI_DAMAGE_GRAMMAR = "@earendil-works/pi-tui@1.4.0:tui-alt-screen-one-write-v1";
3
3
  export interface PiTuiDamageFrameDescriptor {
4
4
  /**
5
5
  * Frame ids are compared only within one presentation epoch; absent means the current epoch. A
@@ -1,4 +1,4 @@
1
- export const PINNED_PI_TUI_DAMAGE_GRAMMAR = "@earendil-works/pi-tui@1.3.0:tui-alt-screen-one-write-v1";
1
+ export const PINNED_PI_TUI_DAMAGE_GRAMMAR = "@earendil-works/pi-tui@1.4.0:tui-alt-screen-one-write-v1";
2
2
  const BEGIN_SYNCHRONIZED_OUTPUT = "\u001b[?2026h";
3
3
  const END_SYNCHRONIZED_OUTPUT = "\u001b[?2026l";
4
4
  const ROW_MARKER = /\u001b\[(\d+);1H\u001b\[2K/gu;
@@ -7,7 +7,7 @@
7
7
  "platform": "darwin",
8
8
  "architecture": "arm64",
9
9
  "capability": "supported",
10
- "builtAt": "2026-10-20T08:53:57.218Z",
10
+ "builtAt": "2026-10-23T09:16:51.110Z",
11
11
  "artifact": {
12
12
  "filename": "process-guardian.node",
13
13
  "sha256": "a87eaaffcd986b624c8b044b756446cc1bdaf4334a1775b97820542fe34f9fb7",
@@ -9,11 +9,11 @@
9
9
  "architecture": "arm64",
10
10
  "target": "aarch64-apple-darwin",
11
11
  "capability": "supported",
12
- "builtAt": "2026-10-20T08:57:24.837Z",
12
+ "builtAt": "2026-10-23T09:19:57.936Z",
13
13
  "artifact": {
14
14
  "filename": "terminal-host.node",
15
- "sha256": "1885cc705611eb1b5a06148d77cb3e85dc99321124b7fec4be382630292555c6",
16
- "size": 5747616
15
+ "sha256": "62c8a0656c7496194cd20649e3f2011f460cb381da2a04fde7ce54cbd38d5a50",
16
+ "size": 5748592
17
17
  },
18
18
  "entry": {
19
19
  "filename": "dist/foundation/resident-tabs/host-entry.js",
@@ -7,7 +7,7 @@
7
7
  "platform": "darwin",
8
8
  "architecture": "x64",
9
9
  "capability": "supported",
10
- "builtAt": "2026-10-20T08:54:05.958Z",
10
+ "builtAt": "2026-10-23T09:16:58.302Z",
11
11
  "artifact": {
12
12
  "filename": "process-guardian.node",
13
13
  "sha256": "783a65f0de287a1c02cd5429dbe97bc8633f4cc8a7b92e3e961180b9bdcff814",
@@ -9,11 +9,11 @@
9
9
  "architecture": "x64",
10
10
  "target": "x86_64-apple-darwin",
11
11
  "capability": "supported",
12
- "builtAt": "2026-10-20T09:00:09.786Z",
12
+ "builtAt": "2026-10-23T09:22:31.367Z",
13
13
  "artifact": {
14
14
  "filename": "terminal-host.node",
15
- "sha256": "a34271e9cc5ec28a638dd4bcaff97a7fb33ac0856f4cd5b18814400d540e8da7",
16
- "size": 6263000
15
+ "sha256": "f74aafbd050eaba8737a9e5bd82b2836f86e8b73168310e7c3316af99442e1f2",
16
+ "size": 6272408
17
17
  },
18
18
  "entry": {
19
19
  "filename": "dist/foundation/resident-tabs/host-entry.js",
@@ -7,7 +7,7 @@
7
7
  "platform": "linux",
8
8
  "architecture": "x64",
9
9
  "capability": "supported",
10
- "builtAt": "2026-10-20T08:53:35.318Z",
10
+ "builtAt": "2026-10-23T09:16:44.112Z",
11
11
  "artifact": {
12
12
  "filename": "process-guardian.node",
13
13
  "sha256": "118e5954e3864672bd8482ab7edf419cb27dcdf2533720316979b7f5cc5a53a5",
@@ -9,11 +9,11 @@
9
9
  "architecture": "x64",
10
10
  "target": "x86_64-unknown-linux-gnu",
11
11
  "capability": "supported",
12
- "builtAt": "2026-10-20T08:55:32.085Z",
12
+ "builtAt": "2026-10-23T09:18:34.630Z",
13
13
  "artifact": {
14
14
  "filename": "terminal-host.node",
15
- "sha256": "5c7b589cd36b901a4a02d172f84d70111f7f4cec5ad796a6ea13524109fa4b50",
16
- "size": 6988960
15
+ "sha256": "707e4140e1c1b4b2c78c45373d8471bbbcc6232e7ad5d14ad8f5a76a90b6265b",
16
+ "size": 6997376
17
17
  },
18
18
  "entry": {
19
19
  "filename": "dist/foundation/resident-tabs/host-entry.js",
@@ -7,10 +7,10 @@
7
7
  "platform": "win32",
8
8
  "architecture": "x64",
9
9
  "capability": "supported",
10
- "builtAt": "2026-10-20T08:54:21.248Z",
10
+ "builtAt": "2026-10-23T09:17:41.474Z",
11
11
  "artifact": {
12
12
  "filename": "process-guardian.node",
13
- "sha256": "aa4a36d3cb4e7f4cb9157409bbe0215ac467140f5558ca154aaf736f6105ce9b",
13
+ "sha256": "f0fb48d96ea06a21d77a4df332ec863d3830caf8ce6adfebcb2a4bb4d86fabdf",
14
14
  "size": 402432
15
15
  },
16
16
  "provenance": {
@@ -9,11 +9,11 @@
9
9
  "architecture": "x64",
10
10
  "target": "x86_64-pc-windows-msvc",
11
11
  "capability": "supported",
12
- "builtAt": "2026-10-20T08:58:10.619Z",
12
+ "builtAt": "2026-10-23T09:20:49.040Z",
13
13
  "artifact": {
14
14
  "filename": "terminal-host.node",
15
- "sha256": "31360962d3614f342891adae1a8f79e65c3b1a323baab396f4a9a0f32afd3d99",
16
- "size": 6072320
15
+ "sha256": "f511333451655f6fdef1da7710c54c9e65058e367f6e8be3b8ac0420fcc70fa1",
16
+ "size": 6078464
17
17
  },
18
18
  "entry": {
19
19
  "filename": "dist/foundation/resident-tabs/host-entry.js",