@timurproko/a1 0.2.7-dev.1270 → 0.2.7-dev.1276

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 (154) hide show
  1. package/README.md +6 -0
  2. package/dist/app/session-shell/apps-dialog.d.ts +33 -0
  3. package/dist/app/session-shell/apps-dialog.js +62 -0
  4. package/dist/app/session-shell/dialog-coordinator.d.ts +12 -5
  5. package/dist/app/session-shell/dialog-coordinator.js +113 -15
  6. package/dist/app/session-shell/input-route.d.ts +23 -0
  7. package/dist/app/session-shell/input-route.js +59 -0
  8. package/dist/app/session-shell/session-selectors.d.ts +4 -4
  9. package/dist/app/session-shell/session-selectors.js +8 -3
  10. package/dist/app/session-shell/session-shell-root.js +6 -2
  11. package/dist/app/session-shell/session-shell.js +13 -5
  12. package/dist/app/session-shell/shell-host.d.ts +1 -0
  13. package/dist/app/session-shell/shell-host.js +22 -11
  14. package/dist/app/session-shell/viewport-pointer.js +5 -1
  15. package/dist/app/session-shell/workflow-output.js +12 -0
  16. package/dist/app/session-shell/workflow-router.d.ts +2 -2
  17. package/dist/composition/owned-ui.js +17 -13
  18. package/dist/composition/settings-route-host.js +1 -0
  19. package/dist/contracts/owned-ui/session-presenters.d.ts +1 -1
  20. package/dist/contracts/owned-ui/session-workflows.d.ts +3 -1
  21. package/dist/contracts/owned-ui/shell-components.d.ts +12 -0
  22. package/dist/contracts/presentation/component.d.ts +7 -0
  23. package/dist/contracts/presentation/index.d.ts +2 -0
  24. package/dist/contracts/presentation/index.js +4 -0
  25. package/dist/contracts/presentation/progress-palette.generated.d.ts +25 -1
  26. package/dist/contracts/presentation/progress-palette.generated.js +2 -135
  27. package/dist/contracts/presentation/terminal.d.ts +4 -0
  28. package/dist/contracts/presentation/theme.d.ts +2 -0
  29. package/dist/features/owned-ui/project-trust-dialog.d.ts +1 -1
  30. package/dist/features/owned-ui/project-trust-dialog.js +5 -5
  31. package/dist/features/owned-ui/project-trust-prompt.js +2 -2
  32. package/dist/features/owned-ui/reference-screen-app.d.ts +2 -0
  33. package/dist/features/owned-ui/reference-screen-app.js +4 -1
  34. package/dist/features/owned-ui/settings-app.js +6 -6
  35. package/dist/features/owned-ui/settings-model-dialog.js +3 -3
  36. package/dist/foundation/lifecycle/user-exports.d.ts +5 -0
  37. package/dist/foundation/lifecycle/user-exports.js +37 -0
  38. package/dist/foundation/startup/startup-descriptor.js +2 -2
  39. package/dist/integrations/pi/components/deferred-selector.d.ts +6 -0
  40. package/dist/integrations/pi/components/deferred-selector.js +40 -0
  41. package/dist/integrations/pi/components/login-dialog-loader.d.ts +3 -0
  42. package/dist/integrations/pi/components/login-dialog-loader.js +57 -0
  43. package/dist/integrations/pi/components/login-links.d.ts +6 -0
  44. package/dist/integrations/pi/components/login-links.js +31 -0
  45. package/dist/integrations/pi/components/login-text.d.ts +7 -0
  46. package/dist/integrations/pi/components/login-text.js +17 -0
  47. package/dist/integrations/pi/components/modal-frame.d.ts +5 -0
  48. package/dist/integrations/pi/components/modal-frame.js +30 -2
  49. package/dist/integrations/pi/components/models-dialog-loader.d.ts +11 -0
  50. package/dist/integrations/pi/components/models-dialog-loader.js +45 -0
  51. package/dist/integrations/pi/components/models-dialog.d.ts +2 -0
  52. package/dist/integrations/pi/components/models-dialog.js +13 -7
  53. package/dist/integrations/pi/components/resources/builtin-themes.d.ts +2 -2
  54. package/dist/integrations/pi/components/resources/builtin-themes.js +2 -2
  55. package/dist/integrations/pi/components/shell-editor-autocomplete.js +21 -15
  56. package/dist/integrations/pi/components/shell-footer-status.js +3 -2
  57. package/dist/integrations/pi/components/shell-presenters-info.js +1 -1
  58. package/dist/integrations/pi/components/shell-presenters-transcript.js +3 -1
  59. package/dist/integrations/pi/components/shell-selectors-dialogs.d.ts +13 -9
  60. package/dist/integrations/pi/components/shell-selectors-dialogs.js +38 -43
  61. package/dist/integrations/pi/components/shell-session-info-reference.d.ts +1 -1
  62. package/dist/integrations/pi/components/shell-session-info-reference.js +49 -46
  63. package/dist/integrations/pi/components/theme.d.ts +4 -0
  64. package/dist/integrations/pi/components/theme.js +9 -0
  65. package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.d.ts +8 -7
  66. package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.js +13 -7
  67. package/dist/integrations/pi/components/upstream/assets/earendil-image.json +2 -2
  68. package/dist/integrations/pi/components/upstream/components/auth-url.d.ts +16 -0
  69. package/dist/integrations/pi/components/upstream/components/auth-url.js +49 -0
  70. package/dist/integrations/pi/components/upstream/components/countdown-timer.d.ts +1 -1
  71. package/dist/integrations/pi/components/upstream/components/earendil-announcement.js +1 -1
  72. package/dist/integrations/pi/components/upstream/components/extension-editor.d.ts +1 -1
  73. package/dist/integrations/pi/components/upstream/components/extension-editor.js +1 -1
  74. package/dist/integrations/pi/components/upstream/components/extension-input.js +1 -1
  75. package/dist/integrations/pi/components/upstream/components/extension-selector.d.ts +1 -0
  76. package/dist/integrations/pi/components/upstream/components/extension-selector.js +30 -12
  77. package/dist/integrations/pi/components/upstream/components/login-dialog.d.ts +3 -0
  78. package/dist/integrations/pi/components/upstream/components/login-dialog.js +216 -0
  79. package/dist/integrations/pi/components/upstream/components/mermaid.d.ts +2 -1
  80. package/dist/integrations/pi/components/upstream/components/mermaid.js +26 -21
  81. package/dist/integrations/pi/components/upstream/components/oauth-selector.d.ts +19 -0
  82. package/dist/integrations/pi/components/upstream/components/oauth-selector.js +123 -0
  83. package/dist/integrations/pi/components/upstream/components/owned-editor.d.ts +1 -1
  84. package/dist/integrations/pi/components/upstream/components/owned-editor.js +1 -1
  85. package/dist/integrations/pi/components/upstream/components/pi-logo.js +1 -1
  86. package/dist/integrations/pi/components/upstream/components/scoped-models-selector.d.ts +1 -1
  87. package/dist/integrations/pi/components/upstream/components/session-footer.js +17 -19
  88. package/dist/integrations/pi/components/upstream/components/session-selector-search.js +1 -1
  89. package/dist/integrations/pi/components/upstream/components/session-selector.js +1 -1
  90. package/dist/integrations/pi/components/upstream/components/skill-invocation-message.d.ts +6 -2
  91. package/dist/integrations/pi/components/upstream/components/skill-invocation-message.js +27 -3
  92. package/dist/integrations/pi/components/upstream/components/status-indicator.d.ts +1 -1
  93. package/dist/integrations/pi/components/upstream/components/status-indicator.js +1 -1
  94. package/dist/integrations/pi/components/upstream/components/themed-text.d.ts +1 -1
  95. package/dist/integrations/pi/components/upstream/components/themed-text.js +1 -1
  96. package/dist/integrations/pi/components/upstream/components/thinking-selector.d.ts +1 -1
  97. package/dist/integrations/pi/components/upstream/components/thinking-selector.js +1 -1
  98. package/dist/integrations/pi/components/upstream/components/tool-execution.js +1 -1
  99. package/dist/integrations/pi/components/upstream/components/tree-selector.d.ts +1 -1
  100. package/dist/integrations/pi/components/upstream/components/tree-selector.js +7 -6
  101. package/dist/integrations/pi/components/upstream/components/trust-selector.d.ts +2 -0
  102. package/dist/integrations/pi/components/upstream/components/trust-selector.js +30 -13
  103. package/dist/integrations/pi/components/upstream/external-editor.js +1 -1
  104. package/dist/integrations/pi/components/upstream/history/editor-core.d.ts +1 -1
  105. package/dist/integrations/pi/components/upstream/history/editor-core.js +2 -2
  106. package/dist/integrations/pi/components/upstream/history/kill-ring.d.ts +1 -1
  107. package/dist/integrations/pi/components/upstream/history/kill-ring.js +1 -1
  108. package/dist/integrations/pi/components/upstream/history/printable-key.js +1 -1
  109. package/dist/integrations/pi/components/upstream/history/text-helpers.js +1 -1
  110. package/dist/integrations/pi/components/upstream/history/undo-stack.d.ts +1 -1
  111. package/dist/integrations/pi/components/upstream/history/undo-stack.js +1 -1
  112. package/dist/integrations/pi/components/upstream/history/word-navigation.js +1 -1
  113. package/dist/integrations/pi/components/upstream/model-search.d.ts +1 -1
  114. package/dist/integrations/pi/components/upstream/program-status-reporter.d.ts +1 -1
  115. package/dist/integrations/pi/components/upstream/theme/theme.js +1 -1
  116. package/dist/integrations/pi/engine/adapter.d.ts +1 -1
  117. package/dist/integrations/pi/engine/adapter.js +3 -3
  118. package/dist/integrations/pi/engine/host.d.ts +1 -1
  119. package/dist/integrations/pi/engine/resources/changelog.json +4 -4
  120. package/dist/integrations/pi/engine/workflow-export.d.ts +4 -0
  121. package/dist/integrations/pi/engine/workflow-export.js +25 -0
  122. package/dist/integrations/pi/engine/workflow-runner.d.ts +1 -0
  123. package/dist/integrations/pi/engine/workflow-runner.js +6 -10
  124. package/dist/integrations/pi/engine/workflow-support.d.ts +2 -1
  125. package/dist/integrations/pi/engine/workflow-support.js +28 -25
  126. package/dist/integrations/pi/engine/workflows.d.ts +6 -1
  127. package/dist/integrations/pi/engine/workflows.js +1 -1
  128. package/dist/integrations/pi/session-presenters/components.d.ts +1 -1
  129. package/dist/integrations/pi/session-presenters/components.js +8 -8
  130. package/dist/integrations/pi/session-presenters/presentation.js +2 -1
  131. package/dist/integrations/pi/session-presenters/presenters.js +24 -12
  132. package/dist/integrations/pi/startup-public.js +289 -240
  133. package/dist/integrations/pi/startup-public.manifest.json +579 -363
  134. package/dist/integrations/pi/tui-runtime/adapter.js +3 -1
  135. package/dist/integrations/pi/tui-runtime/damage-aware-terminal.d.ts +1 -1
  136. package/dist/integrations/pi/tui-runtime/damage-aware-terminal.js +1 -1
  137. package/dist/integrations/pi/tui-runtime/overlay-geometry.d.ts +5 -2
  138. package/dist/integrations/pi/tui-runtime/overlay-geometry.js +12 -2
  139. package/dist/runtime-payload-inventory.json +8044 -6930
  140. package/dist/ui/components/dialog-panel.d.ts +4 -3
  141. package/dist/ui/components/dialog-panel.js +9 -13
  142. package/dist/ui/components/index.d.ts +1 -1
  143. package/dist/ui/components/index.js +1 -1
  144. package/dist/ui/components/list-block.d.ts +2 -2
  145. package/dist/ui/components/list-block.js +4 -3
  146. package/dist/ui/components/spans.d.ts +7 -0
  147. package/dist/ui/components/spans.js +63 -1
  148. package/dist/ui/settings/early-accent.d.ts +24 -0
  149. package/docs/architecture/prompt-suggestions.md +1 -1
  150. package/docs/architecture/ui-reference-provenance.md +2 -1
  151. package/docs/features/prompt-history.md +1 -1
  152. package/docs/features/session-exports.md +15 -0
  153. package/docs/local-worktree-cleanup.md +24 -0
  154. package/package.json +6 -6
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Provenance: @earendil-works/pi-tui 1.5.0 (MIT), commit f9a26365568127461c47a07a37dcb42c140a3ac5,
2
+ * Provenance: @earendil-works/pi-tui 1.5.1 (MIT), commit dd30101cfc5b0609411dd80b6f93adbc14db14cf,
3
3
  * packages/tui/src/word-navigation.ts.
4
4
  * Modifications: Owned editor core or minimal editor-local helper subset; public imports, strict
5
5
  * types, typed persistent-history hooks, and semantic border state. Public terminal runtime/exports
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Provenance: @earendil-works/pi-coding-agent 1.5.0 (MIT), commit f9a26365568127461c47a07a37dcb42c140a3ac5,
2
+ * Provenance: @earendil-works/pi-coding-agent 1.5.1 (MIT), commit dd30101cfc5b0609411dd80b6f93adbc14db14cf,
3
3
  * packages/coding-agent/src/modes/interactive/model-search.ts.
4
4
  * Modifications: Mechanical source-synchronized port preserving pinned model search terms for stateful
5
5
  * scoped-model filtering.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Provenance: @earendil-works/pi-coding-agent 1.5.0 (MIT), commit f9a26365568127461c47a07a37dcb42c140a3ac5,
2
+ * Provenance: @earendil-works/pi-coding-agent 1.5.1 (MIT), commit dd30101cfc5b0609411dd80b6f93adbc14db14cf,
3
3
  * packages/coding-agent/src/modes/interactive/program-status-reporter.ts.
4
4
  * Modifications: Remap Pi session events to A1's neutral run events, inject the terminal reporter, use
5
5
  * A1's application identity, and clear dialog state when the owned session changes.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Provenance: @earendil-works/pi-coding-agent 1.5.0 (MIT), commit f9a26365568127461c47a07a37dcb42c140a3ac5,
2
+ * Provenance: @earendil-works/pi-coding-agent 1.5.1 (MIT), commit dd30101cfc5b0609411dd80b6f93adbc14db14cf,
3
3
  * packages/coding-agent/src/modes/interactive/theme/theme.ts.
4
4
  * Modifications: Source-synchronized theme port: retain pinned theme schema, variable/color
5
5
  * resolution, built-in and custom loading, terminal detection, and layout defaults while constructing
@@ -31,7 +31,7 @@ export interface PiEngineAdapterOptions {
31
31
  readonly sessionSelection?: PiSessionSelection;
32
32
  readonly sessionForkPrompt?: PiSessionForkPrompt;
33
33
  readonly createRuntime?: PiEngineRuntimeFactory;
34
- readonly workflowHost?: PiWorkflowHost;
34
+ readonly workflowHost?: Partial<PiWorkflowHost>;
35
35
  /**
36
36
  * Themes installed on this machine. Supplied because listing them belongs to
37
37
  * the component adapter that owns the engine's theme unit; the grammar and the
@@ -14,7 +14,7 @@ import { PiEngineSettings } from "./settings-port.js";
14
14
  import { PiSessionEvents } from "./session-events.js";
15
15
  import { PiWorkflowContexts } from "./workflow-contexts.js";
16
16
  import { PiWorkflowRunner } from "./workflow-runner.js";
17
- import { defaultWorkflowHost } from "./workflow-support.js";
17
+ import { resolveWorkflowHost } from "./workflow-support.js";
18
18
  import { EngineViewState, projectSessionView } from "./view-state.js";
19
19
  import { createEnginePorts } from "./ports.js";
20
20
  /** Explicit flush failure when required delivery was interrupted rather than completed. */
@@ -98,7 +98,7 @@ export class PiEngineAdapter {
98
98
  this.#agentDir = options.agentDir ?? getAgentDir();
99
99
  this.#sessionId = options.sessionId;
100
100
  this.#engineHost = options.engineHost ?? detachedEngineHostPorts();
101
- this.#workflowHost = options.workflowHost ?? defaultWorkflowHost();
101
+ this.#workflowHost = resolveWorkflowHost(options.workflowHost);
102
102
  this.#workflowInteraction = { prompt: async () => null, notify() { } };
103
103
  this.#engine = new PiEngineRuntime({
104
104
  cwd: options.cwd ?? process.cwd(),
@@ -139,7 +139,7 @@ export class PiEngineAdapter {
139
139
  activeModel: () => this.#state.activeModel,
140
140
  emitView: () => { this.#emitView(); },
141
141
  });
142
- this.#workflows = new PiWorkflowRunner({ agentDir: this.#agentDir, host: this.#workflowHost, contexts: this.#contexts }, {
142
+ this.#workflows = new PiWorkflowRunner({ agentDir: this.#agentDir, productMode: options.settingsProductMode ?? "bare", host: this.#workflowHost, contexts: this.#contexts }, {
143
143
  session: () => this.#engine.session,
144
144
  runtime: () => this.#engine.runtime,
145
145
  disposed: () => this.#disposed,
@@ -28,7 +28,7 @@ export interface PiEngineHostOptions {
28
28
  readonly announceStartupChangelog?: boolean;
29
29
  readonly projectTrustPrompt?: PiProjectTrustPreflightPrompt;
30
30
  readonly checkPackageUpdates?: PiEnginePackageUpdateProbe;
31
- readonly workflowHost?: PiWorkflowHost;
31
+ readonly workflowHost?: Partial<PiWorkflowHost>;
32
32
  readonly createRuntime?: PiEngineRuntimeFactory;
33
33
  /** Installs the process HTTP dispatcher; defaults to the owned undici seam. */
34
34
  readonly installHttpDispatcher?: (timeoutMs: number) => void;