@timurproko/a1 0.2.6-dev.727 → 0.2.6-dev.734
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/clipboard-services.d.ts +19 -0
- package/dist/app/session-shell/clipboard-services.js +7 -0
- package/dist/app/session-shell/exit-notice.d.ts +9 -5
- package/dist/app/session-shell/exit-notice.js +5 -5
- package/dist/app/session-shell/index.d.ts +3 -1
- package/dist/app/session-shell/index.js +1 -0
- package/dist/app/session-shell/paste-preparation-client.d.ts +3 -0
- package/dist/app/session-shell/paste-preparation-client.js +5 -2
- package/dist/app/session-shell/path-chip-presentation.d.ts +10 -3
- package/dist/app/session-shell/path-chip-presentation.js +48 -6
- package/dist/app/session-shell/prompt-chips.js +30 -4
- package/dist/app/session-shell/quit-outro.d.ts +3 -1
- package/dist/app/session-shell/quit-outro.js +23 -8
- package/dist/app/session-shell/response-copy-transport.d.ts +6 -1
- package/dist/app/session-shell/response-copy-transport.js +8 -2
- package/dist/app/session-shell/session-shell-root.d.ts +20 -10
- package/dist/app/session-shell/session-shell-root.js +6 -6
- package/dist/app/session-shell/session-shell.d.ts +19 -21
- package/dist/app/session-shell/session-shell.js +656 -860
- package/dist/composition/owned-ui.d.ts +20 -2
- package/dist/composition/owned-ui.js +66 -35
- package/dist/composition/session-info-reference.d.ts +2 -2
- package/dist/composition/session-info-reference.js +2 -2
- package/dist/contracts/agent-engine/capability-ports.d.ts +1 -85
- package/dist/contracts/agent-engine/capability-ports.js +1 -35
- package/dist/contracts/agent-engine/index.d.ts +1 -7
- package/dist/contracts/agent-engine/index.js +0 -4
- package/dist/contracts/owned-ui/index.d.ts +5 -1
- package/dist/contracts/owned-ui/index.js +1 -0
- package/dist/contracts/owned-ui/model.d.ts +6 -0
- package/dist/contracts/owned-ui/session-backend.d.ts +119 -0
- package/dist/contracts/owned-ui/session-presenters.d.ts +55 -0
- package/dist/contracts/owned-ui/session-presenters.js +1 -0
- package/dist/contracts/owned-ui/session-workflows.d.ts +342 -0
- package/dist/contracts/owned-ui/session-workflows.js +30 -0
- package/dist/features/owned-ui/settings-app.js +35 -15
- package/dist/foundation/release/bootstrap.js +1 -2
- package/dist/foundation/release/release-gc.js +1 -1
- package/dist/foundation/release/update.js +0 -4
- package/dist/foundation/storage/control-store.js +0 -12
- package/dist/integrations/pi/components/components.js +0 -16
- package/dist/integrations/pi/components/index.d.ts +3 -3
- package/dist/integrations/pi/components/index.js +2 -2
- package/dist/integrations/pi/components/models-dialog.js +1 -30
- package/dist/integrations/pi/components/shell-editor-autocomplete.js +11 -9
- package/dist/integrations/pi/components/shell-extension-ui.d.ts +3 -3
- package/dist/integrations/pi/components/shell-extension-ui.js +6 -2
- package/dist/integrations/pi/components/shell-presenters-transcript.js +4 -4
- package/dist/integrations/pi/components/shell-shared-facade.d.ts +21 -1
- package/dist/integrations/pi/components/shell-shared-facade.js +18 -2
- package/dist/integrations/pi/components/upstream/theme/theme.d.ts +5 -1
- package/dist/integrations/pi/components/upstream/theme/theme.js +20 -2
- package/dist/integrations/pi/engine/adapter.d.ts +44 -24
- package/dist/integrations/pi/engine/adapter.js +130 -22
- package/dist/integrations/pi/engine/command-dispatch.d.ts +2 -5
- package/dist/integrations/pi/engine/extension-ui-binding.d.ts +2 -11
- package/dist/integrations/pi/engine/host-ports.d.ts +20 -0
- package/dist/integrations/pi/engine/host-ports.js +13 -0
- package/dist/integrations/pi/engine/host.d.ts +70 -0
- package/dist/integrations/pi/engine/host.js +147 -0
- package/dist/integrations/pi/engine/index.d.ts +8 -4
- package/dist/integrations/pi/engine/index.js +3 -1
- package/dist/integrations/pi/engine/resource-catalog.d.ts +4 -23
- package/dist/integrations/pi/engine/runtime-integration.d.ts +8 -2
- package/dist/integrations/pi/engine/runtime-integration.js +12 -7
- package/dist/integrations/pi/engine/session-integration.d.ts +3 -8
- package/dist/integrations/pi/engine/session-integration.js +0 -49
- package/dist/integrations/pi/engine/session-runtime.d.ts +18 -3
- package/dist/integrations/pi/engine/session-runtime.js +18 -7
- package/dist/integrations/pi/engine/settings-bridge.d.ts +2 -2
- package/dist/integrations/pi/engine/settings-bridge.js +0 -2
- package/dist/integrations/pi/engine/settings-port.d.ts +2 -0
- package/dist/integrations/pi/engine/settings-port.js +3 -5
- package/dist/integrations/pi/engine/workflows.d.ts +33 -260
- package/dist/integrations/pi/engine/workflows.js +6 -28
- package/dist/integrations/pi/session-presenters/index.d.ts +2 -0
- package/dist/integrations/pi/session-presenters/index.js +1 -0
- package/dist/integrations/pi/session-presenters/presenters.d.ts +16 -0
- package/dist/integrations/pi/session-presenters/presenters.js +341 -0
- package/dist/integrations/pi/tui-runtime/adapter.js +0 -2
- package/dist/integrations/pi/tui-runtime/damage-aware-terminal.d.ts +7 -0
- package/dist/integrations/pi/tui-runtime/damage-aware-terminal.js +66 -1
- package/dist/integrations/pi/tui-runtime/index.d.ts +1 -1
- package/dist/integrations/pi/tui-runtime/index.js +1 -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/settings/declarations.d.ts +13 -1
- package/dist/ui/settings/declarations.js +12 -1
- package/dist/ui/settings/migrations.js +7 -0
- package/docs/architecture/boundaries.md +9 -1
- package/docs/architecture/project-structure.md +3 -2
- package/package.json +1 -1
- package/dist/contracts/agent-engine/model.d.ts +0 -78
- package/dist/contracts/agent-engine/model.js +0 -1
- package/dist/contracts/agent-engine/ports.d.ts +0 -18
- package/dist/contracts/agent-engine/serialization.d.ts +0 -7
- package/dist/contracts/agent-engine/serialization.js +0 -58
- package/dist/contracts/agent-engine/validation.d.ts +0 -5
- package/dist/contracts/agent-engine/validation.js +0 -128
- package/dist/integrations/pi/components/upstream/theme/system-theme.d.ts +0 -61
- package/dist/integrations/pi/components/upstream/theme/system-theme.js +0 -709
- /package/dist/contracts/{agent-engine/ports.js → owned-ui/session-backend.js} +0 -0
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import type { OwnedUiSessionViewModel, OwnedUiThinkingLevel } from "../../contracts/owned-ui/index.js";
|
|
2
|
-
import type { AdapterCommandResult } from "../../integrations/pi/engine/adapter.js";
|
|
3
|
-
import type { PiWorkflowRequest } from "../../integrations/pi/engine/workflows.js";
|
|
1
|
+
import type { OwnedUiCommandResult, OwnedUiSessionBackend, OwnedUiSessionViewModel, OwnedUiThinkingLevel, OwnedUiWorkflowRequest } from "../../contracts/owned-ui/index.js";
|
|
4
2
|
import { type PiShellSkillSummary } from "../../integrations/pi/components/skills-command.js";
|
|
5
3
|
import { type PiShellHotkeysPresentation } from "../../integrations/pi/components/shell-presenters-info.js";
|
|
6
4
|
import type { PiShellSelectorOption } from "../../integrations/pi/components/shell-shared-facade.js";
|
|
7
5
|
import { type PiTuiDamageDecision } from "../../integrations/pi/tui-runtime/damage-aware-terminal.js";
|
|
8
6
|
import { PiTuiRuntimeAdapter } from "../../integrations/pi/tui-runtime/adapter.js";
|
|
9
7
|
import type { PiTuiOverlayHandle } from "../../integrations/pi/tui-runtime/contracts.js";
|
|
10
|
-
import { OwnedUiSessionShellRoot, type
|
|
11
|
-
export { OwnedUiSessionShellRoot, type OwnedUiSessionShellOptions, type OwnedUiShellDiagnosticOptions, type OwnedUiShellEngineOptions, type OwnedUiShellHistoryOptions, type OwnedUiShellPresentationOptions, type OwnedUiShellPromptImagesOptions, type OwnedUiShellSkillsOptions, type OwnedUiShellSuggestionOptions, } from "./session-shell-root.js";
|
|
8
|
+
import { OwnedUiSessionShellRoot, type OwnedUiSessionShellOptions } from "./session-shell-root.js";
|
|
9
|
+
export { OwnedUiSessionShellRoot, type OwnedUiSessionShellOptions, type OwnedUiShellDiagnosticOptions, type OwnedUiShellEngineOptions, type OwnedUiShellHistoryOptions, type OwnedUiShellPresentationOptions, type OwnedUiShellPromptImagesOptions, type OwnedUiShellSharedServices, type OwnedUiShellSkillsOptions, type OwnedUiShellSuggestionOptions, } from "./session-shell-root.js";
|
|
12
10
|
/** Coordinates backend, owned presentation, and Pi TUI lifecycles for one interactive session. */
|
|
13
11
|
export declare class OwnedUiSessionShell {
|
|
14
12
|
#private;
|
|
15
|
-
readonly backend:
|
|
13
|
+
readonly backend: OwnedUiSessionBackend;
|
|
16
14
|
readonly root: OwnedUiSessionShellRoot;
|
|
17
15
|
readonly runtime: PiTuiRuntimeAdapter;
|
|
18
16
|
constructor(options: OwnedUiSessionShellOptions);
|
|
@@ -21,19 +19,19 @@ export declare class OwnedUiSessionShell {
|
|
|
21
19
|
start(): void;
|
|
22
20
|
onView(listener: (view: OwnedUiSessionViewModel) => void): () => void;
|
|
23
21
|
waitUntilStopped(): Promise<void>;
|
|
24
|
-
submit(text: string): Promise<
|
|
25
|
-
clearOrExit(now?: number): Promise<
|
|
26
|
-
interrupt(now?: number): Promise<
|
|
27
|
-
abort(): Promise<
|
|
28
|
-
retry(): Promise<
|
|
29
|
-
compact(): Promise<
|
|
30
|
-
newSession(): Promise<
|
|
31
|
-
resumeSession(sessionPath: string): Promise<
|
|
32
|
-
setModel(providerId: string, modelId: string): Promise<
|
|
33
|
-
setThinkingLevel(thinkingLevel: OwnedUiThinkingLevel): Promise<
|
|
34
|
-
cycleThinkingLevel(): Promise<
|
|
35
|
-
cycleModel(direction: "forward" | "backward"): Promise<
|
|
36
|
-
queueFollowUp(): Promise<
|
|
22
|
+
submit(text: string): Promise<OwnedUiCommandResult>;
|
|
23
|
+
clearOrExit(now?: number): Promise<OwnedUiCommandResult>;
|
|
24
|
+
interrupt(now?: number): Promise<OwnedUiCommandResult>;
|
|
25
|
+
abort(): Promise<OwnedUiCommandResult>;
|
|
26
|
+
retry(): Promise<OwnedUiCommandResult>;
|
|
27
|
+
compact(): Promise<OwnedUiCommandResult>;
|
|
28
|
+
newSession(): Promise<OwnedUiCommandResult>;
|
|
29
|
+
resumeSession(sessionPath: string): Promise<OwnedUiCommandResult>;
|
|
30
|
+
setModel(providerId: string, modelId: string): Promise<OwnedUiCommandResult>;
|
|
31
|
+
setThinkingLevel(thinkingLevel: OwnedUiThinkingLevel): Promise<OwnedUiCommandResult>;
|
|
32
|
+
cycleThinkingLevel(): Promise<OwnedUiCommandResult>;
|
|
33
|
+
cycleModel(direction: "forward" | "backward"): Promise<OwnedUiCommandResult>;
|
|
34
|
+
queueFollowUp(): Promise<OwnedUiCommandResult>;
|
|
37
35
|
restoreQueuedInput(): void;
|
|
38
36
|
showSelector(title: string, options: readonly PiShellSelectorOption[], onSelect: (id: string) => void, onCancel?: () => void): PiTuiOverlayHandle;
|
|
39
37
|
showThinkingSelector(): Promise<void>;
|
|
@@ -48,8 +46,8 @@ export declare class OwnedUiSessionShell {
|
|
|
48
46
|
showLoginProviderSelector(authType?: "oauth" | "api_key", initialSearchInput?: string): void;
|
|
49
47
|
showSessionSelector(): Promise<void>;
|
|
50
48
|
showSettingsSelector(): void;
|
|
51
|
-
shutdown(): Promise<
|
|
52
|
-
runWorkflow(request:
|
|
49
|
+
shutdown(): Promise<OwnedUiCommandResult>;
|
|
50
|
+
runWorkflow(request: OwnedUiWorkflowRequest): Promise<OwnedUiCommandResult>;
|
|
53
51
|
showTrustSelector(): void;
|
|
54
52
|
showScopedModelsSelector(): void;
|
|
55
53
|
/** The bare-A1 unified Models dialog: switch on Enter, scope on Space, persist on Ctrl+S, all through the engine. */
|