dal-code 1.0.24 → 1.0.26
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/CHANGELOG.md +42 -0
- package/NOTICE +7 -0
- package/dal-docs/README.md +109 -0
- package/dal-docs/extensions.md +98 -0
- package/dal-docs/keybindings.md +40 -0
- package/dal-docs/packages.md +62 -0
- package/dal-docs/prompt-templates.md +42 -0
- package/dal-docs/settings.md +86 -0
- package/dal-docs/skills.md +65 -0
- package/dal-docs/themes.md +44 -0
- package/dist/cli/args.d.ts +59 -0
- package/dist/cli/args.js +14 -14
- package/dist/config.d.ts +63 -0
- package/dist/config.js +1 -1
- package/dist/core/agent-session-runtime.d.ts +74 -0
- package/dist/core/agent-session-services.d.ts +50 -0
- package/dist/core/agent-session-services.js +1 -1
- package/dist/core/agent-session.d.ts +422 -0
- package/dist/core/agent-session.js +8 -7
- package/dist/core/auth-storage.d.ts +56 -0
- package/dist/core/background-processes.d.ts +73 -0
- package/dist/core/background-processes.js +7 -0
- package/dist/core/bash-executor.d.ts +13 -0
- package/dist/core/cache-warmer.d.ts +60 -0
- package/dist/core/compaction/branch-summarization.d.ts +43 -0
- package/dist/core/compaction/compaction.d.ts +62 -0
- package/dist/core/compaction/index.d.ts +3 -0
- package/dist/core/compaction/utils.d.ts +16 -0
- package/dist/core/diagnostics.d.ts +14 -0
- package/dist/core/event-bus.d.ts +8 -0
- package/dist/core/exec.d.ts +12 -0
- package/dist/core/extensions/index.d.ts +8 -0
- package/dist/core/extensions/loader.d.ts +13 -0
- package/dist/core/extensions/loader.js +1 -1
- package/dist/core/extensions/permission-surface.js +1 -1
- package/dist/core/extensions/runner.d.ts +165 -0
- package/dist/core/extensions/runner.js +1 -1
- package/dist/core/extensions/types.d.ts +1003 -0
- package/dist/core/extensions/wrapper.d.ts +5 -0
- package/dist/core/footer-data-provider.d.ts +46 -0
- package/dist/core/host-capabilities.d.ts +50 -0
- package/dist/core/host-capabilities.js +2 -0
- package/dist/core/keybindings.d.ts +525 -0
- package/dist/core/messages.d.ts +50 -0
- package/dist/core/model-config.d.ts +1212 -0
- package/dist/core/model-registry.d.ts +41 -0
- package/dist/core/model-resolver.d.ts +67 -0
- package/dist/core/model-resolver.js +1 -1
- package/dist/core/model-runtime.d.ts +101 -0
- package/dist/core/model-runtime.js +2 -2
- package/dist/core/package-manager.d.ts +213 -0
- package/dist/core/package-manager.js +2 -2
- package/dist/core/permissions/rules.d.ts +45 -0
- package/dist/core/permissions/rules.js +1 -0
- package/dist/core/permissions/shell-words.js +2 -0
- package/dist/core/permissions/tool-policy.d.ts +46 -0
- package/dist/core/permissions/tool-policy.js +1 -0
- package/dist/core/project-map.d.ts +18 -0
- package/dist/core/prompt-templates.d.ts +24 -0
- package/dist/core/provider-composer.d.ts +55 -0
- package/dist/core/remote-catalog-provider.js +1 -1
- package/dist/core/resolve-config-value.d.ts +11 -0
- package/dist/core/resource-loader.d.ts +220 -0
- package/dist/core/resource-loader.js +1 -1
- package/dist/core/sandbox/availability.d.ts +9 -0
- package/dist/core/sandbox/availability.js +1 -0
- package/dist/core/sandbox/denial.d.ts +25 -0
- package/dist/core/sandbox/denial.js +3 -0
- package/dist/core/sandbox/index.d.ts +5 -0
- package/dist/core/sandbox/index.js +1 -0
- package/dist/core/sandbox/policy.d.ts +66 -0
- package/dist/core/sandbox/policy.js +1 -0
- package/dist/core/sandbox/runtime.d.ts +31 -0
- package/dist/core/sandbox/runtime.js +1 -0
- package/dist/core/sandbox/shell-sandbox.d.ts +119 -0
- package/dist/core/sandbox/shell-sandbox.js +5 -0
- package/dist/core/sdk.d.ts +43 -0
- package/dist/core/sdk.js +1 -1
- package/dist/core/session-manager.d.ts +208 -0
- package/dist/core/settings-manager.d.ts +368 -0
- package/dist/core/settings-manager.js +1 -1
- package/dist/core/skills.d.ts +33 -0
- package/dist/core/slash-commands.d.ts +14 -0
- package/dist/core/source-info.d.ts +17 -0
- package/dist/core/system-prompt.d.ts +39 -0
- package/dist/core/system-prompt.js +15 -11
- package/dist/core/tools/bash.d.ts +89 -0
- package/dist/core/tools/bash.js +16 -14
- package/dist/core/tools/edit-diff.d.ts +44 -0
- package/dist/core/tools/edit.d.ts +48 -0
- package/dist/core/tools/file-mutation-queue.d.ts +1 -0
- package/dist/core/tools/find.d.ts +34 -0
- package/dist/core/tools/find.js +11 -11
- package/dist/core/tools/grep.d.ts +34 -0
- package/dist/core/tools/grep.js +10 -10
- package/dist/core/tools/index.d.ts +43 -0
- package/dist/core/tools/index.js +1 -1
- package/dist/core/tools/ls.d.ts +33 -0
- package/dist/core/tools/ls.js +6 -6
- package/dist/core/tools/powershell.d.ts +17 -0
- package/dist/core/tools/powershell.js +2 -2
- package/dist/core/tools/process.d.ts +26 -0
- package/dist/core/tools/process.js +22 -0
- package/dist/core/tools/read.d.ts +33 -0
- package/dist/core/tools/read.js +15 -15
- package/dist/core/tools/renderers/bash.d.ts +3 -0
- package/dist/core/tools/renderers/edit.d.ts +15 -0
- package/dist/core/tools/renderers/find.d.ts +2 -0
- package/dist/core/tools/renderers/grep.d.ts +2 -0
- package/dist/core/tools/renderers/index.d.ts +13 -0
- package/dist/core/tools/renderers/ls.d.ts +2 -0
- package/dist/core/tools/renderers/read.d.ts +3 -0
- package/dist/core/tools/renderers/read.js +8 -8
- package/dist/core/tools/renderers/write.d.ts +2 -0
- package/dist/core/tools/truncate.d.ts +27 -0
- package/dist/core/tools/write.d.ts +24 -0
- package/dist/core/trust-manager.d.ts +28 -0
- package/dist/core/trust-manager.js +2 -2
- package/dist/dal/builtins.js +2 -2
- package/dist/dal/child-env.d.ts +12 -0
- package/dist/dal/child-env.js +1 -0
- package/dist/dal/hooks/activity.d.ts +17 -0
- package/dist/dal/hooks/activity.js +1 -0
- package/dist/dal/hooks/config.d.ts +47 -0
- package/dist/dal/hooks/config.js +1 -0
- package/dist/dal/hooks/events.d.ts +43 -0
- package/dist/dal/hooks/events.js +4 -0
- package/dist/dal/hooks/extension.d.ts +3 -0
- package/dist/dal/hooks/extension.js +4 -0
- package/dist/dal/hooks/index.d.ts +5 -0
- package/dist/dal/hooks/index.js +1 -0
- package/dist/dal/hooks/runner.d.ts +57 -0
- package/dist/dal/hooks/runner.js +1 -0
- package/dist/dal/manifest.d.ts +32 -0
- package/dist/dal/manifest.js +1 -0
- package/dist/dal/safety-net.js +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +1 -1
- package/dist/main.d.ts +9 -0
- package/dist/main.js +4 -4
- package/dist/modes/acp/acp-mode.d.ts +2 -0
- package/dist/modes/index.d.ts +7 -0
- package/dist/modes/interactive/components/armin.d.ts +30 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +26 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +22 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts +14 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts +11 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +11 -0
- package/dist/modes/interactive/components/config-selector.js +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts +21 -0
- package/dist/modes/interactive/components/custom-message.d.ts +17 -0
- package/dist/modes/interactive/components/daxnuts.d.ts +17 -0
- package/dist/modes/interactive/components/diff.d.ts +4 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts +12 -0
- package/dist/modes/interactive/components/extension-editor.d.ts +19 -0
- package/dist/modes/interactive/components/extension-input.d.ts +21 -0
- package/dist/modes/interactive/components/extension-selector.d.ts +22 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts +23 -0
- package/dist/modes/interactive/components/footer.d.ts +18 -0
- package/dist/modes/interactive/components/footer.js +1 -1
- package/dist/modes/interactive/components/index.d.ts +33 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts +9 -0
- package/dist/modes/interactive/components/login-dialog.d.ts +27 -0
- package/dist/modes/interactive/components/model-selector.d.ts +81 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts +29 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +39 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts +20 -0
- package/dist/modes/interactive/components/session-selector.d.ts +88 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +92 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts +6 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +11 -0
- package/dist/modes/interactive/components/status-indicator.d.ts +44 -0
- package/dist/modes/interactive/components/theme-selector.d.ts +7 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +19 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +76 -0
- package/dist/modes/interactive/components/tree-selector.d.ts +65 -0
- package/dist/modes/interactive/components/trust-selector.d.ts +22 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts +23 -0
- package/dist/modes/interactive/components/user-message.d.ts +14 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts +5 -0
- package/dist/modes/interactive/interactive-mode.d.ts +326 -0
- package/dist/modes/interactive/theme/theme-json.d.ts +257 -0
- package/dist/modes/interactive/theme/theme.d.ts +106 -0
- package/dist/modes/interactive/tui-renderer.d.ts +18 -0
- package/dist/modes/json-event.d.ts +26 -0
- package/dist/modes/print-mode.d.ts +9 -0
- package/dist/modes/print-mode.js +6 -4
- package/dist/modes/rpc/rpc-client.d.ts +142 -0
- package/dist/modes/rpc/rpc-client.js +4 -1
- package/dist/modes/rpc/rpc-mode.d.ts +3 -0
- package/dist/modes/rpc/rpc-mode.js +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +565 -0
- package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-bridge/src/ask-user.js +12 -0
- package/dist/node_modules/@dalcode/dal-bridge/src/client.js +1 -1
- package/dist/node_modules/@dalcode/dal-bridge/src/index.js +1 -1
- package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-gateway/src/index.js +1 -1
- package/dist/node_modules/@dalcode/dal-guard/package.json +5 -4
- package/dist/node_modules/@dalcode/dal-guard/src/hooks.js +1 -0
- package/dist/node_modules/@dalcode/dal-guard/src/index.js +1 -1
- package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-interactive/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-interactive/package.json +33 -0
- package/dist/node_modules/@dalcode/dal-interactive/src/handoff.js +28 -0
- package/dist/node_modules/@dalcode/dal-interactive/src/index.js +1 -0
- package/dist/node_modules/@dalcode/dal-interactive/src/interactive-shell.js +1 -0
- package/dist/node_modules/@dalcode/dal-interactive/src/questionnaire.js +3 -0
- package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-lsp/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-lsp/src/client.js +3 -3
- package/dist/node_modules/@dalcode/dal-mcp/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-mcp/src/command-parser.d.ts +19 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/config-edit.d.ts +19 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/config.d.ts +9 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/http-client.d.ts +16 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/stdio-client.d.ts +22 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/stdio-client.js +2 -2
- package/dist/node_modules/@dalcode/dal-mcp/src/types.d.ts +30 -0
- package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-office/src/extract/csv.d.ts +3 -0
- package/dist/node_modules/@dalcode/dal-office/src/extract/csv.js +1 -1
- package/dist/node_modules/@dalcode/dal-office/src/extract/ooxml.js +1 -1
- package/dist/node_modules/@dalcode/dal-office/src/index.d.ts +11 -0
- package/dist/node_modules/@dalcode/dal-office/src/index.js +1 -1
- package/dist/node_modules/@dalcode/dal-office/src/paths.d.ts +3 -0
- package/dist/node_modules/@dalcode/dal-office/src/render/chart.js +1 -1
- package/dist/node_modules/@dalcode/dal-office/src/render/docx.d.ts +19 -0
- package/dist/node_modules/@dalcode/dal-office/src/render/pptx.d.ts +40 -0
- package/dist/node_modules/@dalcode/dal-office/src/render/pptx.js +2 -2
- package/dist/node_modules/@dalcode/dal-office/src/render/thumbnails.d.ts +19 -0
- package/dist/node_modules/@dalcode/dal-office/src/render/thumbnails.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/src/render/xlsx.d.ts +14 -0
- package/dist/node_modules/@dalcode/dal-office/src/scratchpad.d.ts +16 -0
- package/dist/node_modules/@dalcode/dal-office/src/themes.d.ts +13 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/docx-edit.js +10 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/edit-shared.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/pptx-edit.js +9 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/read-file.js +4 -2
- package/dist/node_modules/@dalcode/dal-office/src/tools/xlsx-edit.js +5 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +2 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +2 -2
- package/dist/node_modules/@dalcode/dal-plugins/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-review/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-review/package.json +34 -0
- package/dist/node_modules/@dalcode/dal-review/src/args.d.ts +13 -0
- package/dist/node_modules/@dalcode/dal-review/src/args.js +1 -0
- package/dist/node_modules/@dalcode/dal-review/src/core.d.ts +6 -0
- package/dist/node_modules/@dalcode/dal-review/src/core.js +1 -0
- package/dist/node_modules/@dalcode/dal-review/src/findings.d.ts +23 -0
- package/dist/node_modules/@dalcode/dal-review/src/findings.js +4 -0
- package/dist/node_modules/@dalcode/dal-review/src/index.js +1 -0
- package/dist/node_modules/@dalcode/dal-review/src/prompt.d.ts +3 -0
- package/dist/node_modules/@dalcode/dal-review/src/prompt.js +29 -0
- package/dist/node_modules/@dalcode/dal-review/src/runner.d.ts +91 -0
- package/dist/node_modules/@dalcode/dal-review/src/runner.js +2 -0
- package/dist/node_modules/@dalcode/dal-review/src/targets.d.ts +33 -0
- package/dist/node_modules/@dalcode/dal-review/src/targets.js +17 -0
- package/dist/node_modules/@dalcode/dal-review/src/types.d.ts +94 -0
- package/dist/node_modules/@dalcode/dal-review/src/types.js +1 -0
- package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-rewind/src/core.d.ts +61 -0
- package/dist/node_modules/@dalcode/dal-router/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-router/src/config.d.ts +50 -0
- package/dist/node_modules/@dalcode/dal-router/src/jev.d.ts +51 -0
- package/dist/node_modules/@dalcode/dal-router/src/pool.d.ts +6 -0
- package/dist/node_modules/@dalcode/dal-router/src/router.d.ts +32 -0
- package/dist/node_modules/@dalcode/dal-router/src/runtime.d.ts +37 -0
- package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-skills/src/discover.js +4 -4
- package/dist/node_modules/@dalcode/dal-skills/src/index.js +9 -9
- package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-subagent/src/agents.js +2 -2
- package/dist/node_modules/@dalcode/dal-subagent/src/index.js +12 -12
- package/dist/node_modules/@dalcode/dal-subagent/src/process-runner.js +3 -3
- package/dist/node_modules/@dalcode/dal-telemetry/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-terminal/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-terminal/package.json +33 -0
- package/dist/node_modules/@dalcode/dal-terminal/src/contract.d.ts +60 -0
- package/dist/node_modules/@dalcode/dal-terminal/src/contract.js +7 -0
- package/dist/node_modules/@dalcode/dal-terminal/src/index.js +6 -0
- package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-tool-catalog/src/groups.js +1 -1
- package/dist/node_modules/@dalcode/dal-web/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-web/src/config.js +2 -2
- package/dist/node_modules/@dalcode/dal-web/src/index.js +4 -4
- package/dist/node_modules/@dalcode/dal-web/src/search.js +4 -4
- package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-workflow/src/index.js +4 -4
- package/dist/node_modules/@dalcode/dal-workflow/src/plan-mode.js +13 -13
- package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
- package/dist/node_modules/@dalcode/deepailab/src/index.js +3 -3
- package/dist/node_modules/@dalcode/deepailab/src/model-defaults.js +1 -1
- package/dist/node_modules/@earendil-works/chord/dist/api.d.ts +21 -0
- package/dist/node_modules/@earendil-works/chord/dist/context/index.d.ts +12 -0
- package/dist/node_modules/@earendil-works/chord/dist/delta/index.d.ts +127 -0
- package/dist/node_modules/@earendil-works/chord/dist/index.d.ts +8 -0
- package/dist/node_modules/@earendil-works/chord/dist/json.d.ts +2 -0
- package/dist/node_modules/@earendil-works/chord/dist/services/errors.d.ts +16 -0
- package/dist/node_modules/@earendil-works/chord/dist/services/provider.d.ts +32 -0
- package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.d.ts +12 -0
- package/dist/node_modules/@earendil-works/chord/dist/services/wire.d.ts +59 -0
- package/dist/node_modules/@earendil-works/chord/dist/state/draft.d.ts +13 -0
- package/dist/node_modules/@earendil-works/chord/dist/types.d.ts +188 -0
- package/dist/node_modules/@earendil-works/chord/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts +11 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +1 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +80 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts +711 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts +44 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +80 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts +15 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts +22 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts +17 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts +34 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts +50 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts +132 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts +56 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts +94 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts +99 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts +52 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts +19 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts +13 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts +33 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts +37 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts +36 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts +46 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts +75 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts +473 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts +94 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts +26 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts +1495 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts +26 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.d.ts +18 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts +32 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts +185 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts +22 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts +22 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +27 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts +61 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +150 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/package.json +4 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts +18 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts +13 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts +18 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts +12 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.ts +24 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts +14 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.ts +30 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts +24 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts +85 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts +20 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.d.ts +127 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js +0 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.ts +34 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat.d.ts +47 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts +829 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts +13 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.d.ts +37 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.d.ts +38 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.d.ts +25 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.d.ts +16 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.d.ts +21 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.d.ts +97 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +84 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.d.ts +18 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts +100 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.d.ts +7 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts +502 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts +63 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.ts +19 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts +19 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts +16 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/transcript.d.ts +29 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/package.json +2 -2
- package/dist/node_modules/@earendil-works/pi-client/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-coding-agent/LICENSE +21 -0
- package/dist/node_modules/@earendil-works/pi-coding-agent/index.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-coding-agent/index.js +1 -0
- package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +15 -0
- package/dist/node_modules/@earendil-works/pi-protocol/package.json +2 -2
- package/dist/node_modules/@earendil-works/pi-server/package.json +5 -5
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.d.ts +200 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.d.ts +20 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +55 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts +20 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +151 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts +25 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts +43 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +61 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts +61 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts +52 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +50 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.d.ts +35 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts +15 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.d.ts +7 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts +17 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.d.ts +32 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts +329 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keys.d.ts +101 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/latex.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.d.ts +41 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-platform.d.ts +13 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts +30 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +82 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +76 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts +138 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.d.ts +32 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +252 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +38 -0
- package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/dist/package-manager-cli.js +32 -32
- package/dist/sdk/index.d.ts +18 -0
- package/dist/sdk/index.js +1 -0
- package/dist/sdk/mcp.d.ts +8 -0
- package/dist/sdk/mcp.js +1 -0
- package/dist/sdk/office.d.ts +1 -0
- package/dist/sdk/office.js +1 -0
- package/dist/sdk/review.d.ts +1 -0
- package/dist/sdk/review.js +1 -0
- package/dist/sdk/rewind.d.ts +1 -0
- package/dist/sdk/rewind.js +1 -0
- package/dist/sdk/router.d.ts +6 -0
- package/dist/sdk/router.js +1 -0
- package/dist/sdk/subagents.d.ts +8 -0
- package/dist/sdk/subagents.js +1 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/frontmatter.d.ts +7 -0
- package/dist/utils/image-convert.d.ts +5 -0
- package/dist/utils/image-resize-core.d.ts +16 -0
- package/dist/utils/image-resize.d.ts +4 -0
- package/dist/utils/mime.d.ts +2 -0
- package/dist/utils/shell.d.ts +20 -0
- package/dist/utils/shell.js +3 -3
- package/dist/utils/version-check.d.ts +20 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/index.ts +6 -0
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +75 -5
- package/package.json +27 -1
- package/dist/bun/register-bedrock.js +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js +0 -5
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.js +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/state.js +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/cli.js +0 -16
- package/dist/node_modules/@earendil-works/pi-server/dist/config.js +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/handler.js +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.js +0 -2
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.js +0 -2
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.js +0 -3
- package/dist/node_modules/@earendil-works/pi-server/dist/protocol.js +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/radius.js +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.js +0 -4
- package/dist/node_modules/@earendil-works/pi-server/dist/serve.js +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/sessions.js +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.js +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/storage.js +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.js +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.js +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.js +0 -7
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.js +0 -36
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.js +0 -25
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.js +0 -2
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.js +0 -7
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.js +0 -20
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.js +0 -26
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.js +0 -9
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.js +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.js +0 -10
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.js +0 -29
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.js +0 -14
- package/dist/server/create-harness.js +0 -1
- package/dist/utils/clipboard-native.js +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type ThinkingLevel } from "@earendil-works/pi-agent-core";
|
|
2
|
+
import { type Model } from "@earendil-works/pi-ai/compat";
|
|
3
|
+
import { AgentSession } from "./agent-session.ts";
|
|
4
|
+
import type { LoadExtensionsResult, SessionStartEvent, ToolDefinition } from "./extensions/index.ts";
|
|
5
|
+
import { ModelRuntime } from "./model-runtime.ts";
|
|
6
|
+
import type { ResourceLoader } from "./resource-loader.ts";
|
|
7
|
+
import type { SandboxOptions } from "./sandbox/shell-sandbox.ts";
|
|
8
|
+
import { SessionManager } from "./session-manager.ts";
|
|
9
|
+
import { SettingsManager } from "./settings-manager.ts";
|
|
10
|
+
import { createBashTool, createCodingTools, createEditTool, createFindTool, createGrepTool, createLsTool, createPowerShellTool, createReadOnlyTools, createReadTool, createWriteTool, withFileMutationQueue } from "./tools/index.ts";
|
|
11
|
+
export interface CreateAgentSessionOptions {
|
|
12
|
+
cwd?: string;
|
|
13
|
+
agentDir?: string;
|
|
14
|
+
modelRuntime?: ModelRuntime;
|
|
15
|
+
model?: Model<any>;
|
|
16
|
+
thinkingLevel?: ThinkingLevel;
|
|
17
|
+
scopedModels?: Array<{
|
|
18
|
+
model: Model<any>;
|
|
19
|
+
thinkingLevel?: ThinkingLevel;
|
|
20
|
+
}>;
|
|
21
|
+
noTools?: "all" | "builtin";
|
|
22
|
+
tools?: string[];
|
|
23
|
+
excludeTools?: string[];
|
|
24
|
+
customTools?: ToolDefinition[];
|
|
25
|
+
resourceLoader?: ResourceLoader;
|
|
26
|
+
sessionManager?: SessionManager;
|
|
27
|
+
settingsManager?: SettingsManager;
|
|
28
|
+
sessionStartEvent?: SessionStartEvent;
|
|
29
|
+
sandbox?: SandboxOptions;
|
|
30
|
+
defaultActiveTools?: string[];
|
|
31
|
+
}
|
|
32
|
+
export interface CreateAgentSessionResult {
|
|
33
|
+
session: AgentSession;
|
|
34
|
+
extensionsResult: LoadExtensionsResult;
|
|
35
|
+
modelFallbackMessage?: string;
|
|
36
|
+
}
|
|
37
|
+
export * from "./agent-session-runtime.ts";
|
|
38
|
+
export type { ExtensionAPI, ExtensionCommandContext, ExtensionContext, ExtensionFactory, InlineExtension, SlashCommandInfo, SlashCommandSource, ToolDefinition, } from "./extensions/index.ts";
|
|
39
|
+
export type { PromptTemplate } from "./prompt-templates.ts";
|
|
40
|
+
export type { Skill } from "./skills.ts";
|
|
41
|
+
export type { Tool } from "./tools/index.ts";
|
|
42
|
+
export { withFileMutationQueue, createCodingTools, createReadOnlyTools, createReadTool, createBashTool, createEditTool, createWriteTool, createGrepTool, createFindTool, createLsTool, createPowerShellTool, };
|
|
43
|
+
export declare function createAgentSession(options?: CreateAgentSessionOptions): Promise<CreateAgentSessionResult>;
|
package/dist/core/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var q=Object.defineProperty;var d=(r,u)=>q(r,"name",{value:u,configurable:!0});import{join as w}from"node:path";import{Agent as K,setDefaultStreamFn as Q}from"@earendil-works/pi-agent-core";import{clampThinkingLevel as V,streamSimple as z}from"@earendil-works/pi-ai/compat";import{getAgentDir as J}from"../config.js";import{resolvePath as C}from"../utils/paths.js";import{AgentSession as X}from"./agent-session.js";import{formatNoModelsAvailableMessage as Y}from"./auth-guidance.js";import{CacheWarmer as Z}from"./cache-warmer.js";import{DEFAULT_THINKING_LEVEL as
|
|
1
|
+
var q=Object.defineProperty;var d=(r,u)=>q(r,"name",{value:u,configurable:!0});import{join as w}from"node:path";import{Agent as K,setDefaultStreamFn as Q}from"@earendil-works/pi-agent-core";import{clampThinkingLevel as V,streamSimple as z}from"@earendil-works/pi-ai/compat";import{getAgentDir as J}from"../config.js";import{resolvePath as C}from"../utils/paths.js";import{AgentSession as X}from"./agent-session.js";import{formatNoModelsAvailableMessage as Y}from"./auth-guidance.js";import{CacheWarmer as Z}from"./cache-warmer.js";import{DEFAULT_THINKING_LEVEL as b}from"./defaults.js";import{convertToLlm as ee}from"./messages.js";import{findInitialModel as te}from"./model-resolver.js";import{ModelRuntime as re}from"./model-runtime.js";import{mergeProviderAttributionHeaders as oe}from"./provider-attribution.js";import{DefaultResourceLoader as ne}from"./resource-loader.js";import{getDefaultSessionDir as se,SessionManager as ie}from"./session-manager.js";import{SettingsManager as ae}from"./settings-manager.js";import{time as de}from"./timings.js";import{createBashTool as le,createCodingTools as me,createEditTool as ce,createFindTool as ge,createGrepTool as ue,createLsTool as fe,createPowerShellTool as he,createReadOnlyTools as ve,createReadTool as Te,createWriteTool as pe,withFileMutationQueue as Me}from"./tools/index.js";Q(z);export*from"./agent-session-runtime.js";function xe(){return J()}d(xe,"getDefaultAgentDir");async function Oe(r={}){const u=C(r.cwd??r.sessionManager?.getCwd()??process.cwd()),v=r.agentDir?C(r.agentDir):xe();let T=r.resourceLoader;const P=r.agentDir?w(v,"auth.json"):void 0,A=r.agentDir?w(v,"models.json"):void 0,f=r.modelRuntime??await re.create({authPath:P,modelsPath:A}),o=r.settingsManager??ae.create(u,v),m=r.sessionManager??ie.create(u,se(u,v));T||(T=new ne({cwd:u,agentDir:v,settingsManager:o}),await T.reload(),de("resourceLoader.reload"));const l=m.buildSessionContext(),y=l.messages.length>0,I=m.getBranch().some(e=>e.type==="thinking_level_change");let n=r.model,p,L;if(!n&&y&&l.model){const e=f.getModel(l.model.provider,l.model.modelId);e&&f.hasConfiguredAuth(e.provider)&&(n=e),n||(p=`Could not restore model ${l.model.provider}/${l.model.modelId}`,L={provider:l.model.provider,modelId:l.model.modelId})}if(!n){const e=o.getDefaultProvider(),t=o.getDefaultModel();n=(await te({scopedModels:[],isContinuing:y,defaultProvider:e,defaultModelId:t,defaultThinkingLevel:o.getDefaultThinkingLevel(),modelThinkingLevels:o.getAllModelThinkingLevels(),modelRuntime:f})).model,n?p&&(p+=`. Using ${n.provider}/${n.id}`):p=Y(),e&&t&&(!n||n.provider!==e||n.id!==t)&&(L={provider:e,modelId:t})}let i=r.thinkingLevel;if(i===void 0&&y&&(i=I?l.thinkingLevel:o.getDefaultThinkingLevel()??b),i===void 0&&n){const e=o.getModelThinkingLevel(n.provider,n.id);e&&(i=e)}i===void 0&&(i=o.getDefaultThinkingLevel()??b),n?i=V(n,i):i="off";const _=["read","bash","edit","write"],E=o.getDefaultTools(),N=r.tools??(r.noTools==="all"?[]:void 0),R=r.excludeTools,B=R?new Set(R):void 0,H=(r.tools??(r.noTools?[]:E??r.defaultActiveTools??_)).filter(e=>!B?.has(e)),F=d(e=>{const t=ee(e);return o.getBlockImages()?t.map(s=>{if(s.role==="user"||s.role==="toolResult"){const a=s.content;if(Array.isArray(a)&&a.some(c=>c.type==="image")){const c=a.map(g=>g.type==="image"?{type:"text",text:"Image reading is disabled."}:g).filter((g,M,x)=>!(g.type==="text"&&g.text==="Image reading is disabled."&&M>0&&x[M-1].type==="text"&&x[M-1].text==="Image reading is disabled."));return{...s,content:c}}}return s}):t},"convertToLlmWithBlockImages"),h={},S=new Z(f,m,()=>o.getCacheWarmingMode(),async e=>h.current?.emitCacheWarmingDecision(e)??e.action),W=d((e,t={})=>{const s=o.getProviderRetrySettings(),a=o.getHttpIdleTimeoutMs(),D=a===0?2147483647:a,c=h.current,g=o.getOutputTokenLimit(e.maxTokens);return{...t,maxTokens:t.maxTokens??(g!==e.maxTokens?g:void 0),timeoutMs:t.timeoutMs??s.timeoutMs??D,websocketConnectTimeoutMs:t.websocketConnectTimeoutMs??o.getWebSocketConnectTimeoutMs(),maxRetries:t.maxRetries??s.maxRetries,maxRetryDelayMs:t.maxRetryDelayMs??s.maxRetryDelayMs,transformHeaders:d(async M=>{const x=oe(e,o,t.sessionId,M);return c?.hasHandlers("before_provider_headers")?c.emitBeforeProviderHeaders(x??{}):x??{}},"transformHeaders")}},"buildRequestOptions"),O=d(e=>{const t=k.state.messages;return()=>{const s=k.state.model,a=k.state.messages;return s.provider===e.provider&&s.id===e.id&&t.length<=a.length&&t.every((D,c)=>a[c]===D)}},"cacheContextIsCurrent"),U=d(async e=>{const t=h.current;return t?.hasHandlers("before_provider_request")?t.emitBeforeProviderRequest(e):e},"transformProviderPayload"),$=d(async e=>{const t=h.current;t?.hasHandlers("after_provider_response")&&await t.emit({type:"after_provider_response",status:e.status,headers:e.headers})},"handleProviderResponse"),k=new K({initialState:{systemPrompt:"",model:n,thinkingLevel:i,tools:[],messages:l.messages},convertToLlm:F,streamFn:d(async(e,t,s)=>{const a=W(e,s);return s?.sessionId===m.getSessionId()&&S.start({model:e,context:t,options:a},O(e)),f.streamSimple(e,t,a)},"streamFn"),onPayload:U,onResponse:$,sessionId:m.getSessionId(),transformContext:d(async e=>{const t=h.current;return t?t.emitContext(e):e},"transformContext"),steeringMode:o.getSteeringMode(),followUpMode:o.getFollowUpMode(),transport:o.getTransport(),thinkingBudgets:o.getThinkingBudgets(),maxRetryDelayMs:o.getProviderRetrySettings().maxRetryDelayMs});y?I||m.appendThinkingLevelChange(i):(n&&m.appendModelChange(n.provider,n.id),m.appendThinkingLevelChange(i));const j=new X({agent:k,sessionManager:m,settingsManager:o,cwd:u,scopedModels:r.scopedModels,resourceLoader:T,customTools:r.customTools,modelRuntime:f,cacheWarmer:S,initialActiveToolNames:H,allowedToolNames:N,excludedToolNames:R,extensionRunnerRef:h,sessionStartEvent:r.sessionStartEvent,desiredModel:L,sandbox:r.sandbox}),G=T.getExtensions();return{session:j,extensionsResult:G,modelFallbackMessage:p}}d(Oe,"createAgentSession");export{Oe as createAgentSession,le as createBashTool,me as createCodingTools,ce as createEditTool,ge as createFindTool,ue as createGrepTool,fe as createLsTool,he as createPowerShellTool,ve as createReadOnlyTools,Te as createReadTool,pe as createWriteTool,Me as withFileMutationQueue};
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import type { AgentMessage } from "@earendil-works/pi-agent-core";
|
|
2
|
+
import { type AssistantMessage, type ImageContent, type Message, type SystemMessage, type TextContent, type ToolResultMessage, type Usage, type UserMessage } from "@earendil-works/pi-ai";
|
|
3
|
+
import { type BashExecutionMessage, type CustomMessage } from "./messages.ts";
|
|
4
|
+
export declare const CURRENT_SESSION_VERSION = 3;
|
|
5
|
+
export interface SessionHeader {
|
|
6
|
+
type: "session";
|
|
7
|
+
version?: number;
|
|
8
|
+
id: string;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
cwd: string;
|
|
11
|
+
parentSession?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface NewSessionOptions {
|
|
14
|
+
id?: string;
|
|
15
|
+
parentSession?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SessionEntryBase {
|
|
18
|
+
type: string;
|
|
19
|
+
id: string;
|
|
20
|
+
parentId: string | null;
|
|
21
|
+
timestamp: string;
|
|
22
|
+
}
|
|
23
|
+
export interface SessionMessageEntry extends SessionEntryBase {
|
|
24
|
+
type: "message";
|
|
25
|
+
message: AgentMessage;
|
|
26
|
+
}
|
|
27
|
+
export interface ThinkingLevelChangeEntry extends SessionEntryBase {
|
|
28
|
+
type: "thinking_level_change";
|
|
29
|
+
thinkingLevel: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ModelChangeEntry extends SessionEntryBase {
|
|
32
|
+
type: "model_change";
|
|
33
|
+
provider: string;
|
|
34
|
+
modelId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface UsageEntry extends SessionEntryBase {
|
|
37
|
+
type: "usage";
|
|
38
|
+
kind: string;
|
|
39
|
+
provider: string;
|
|
40
|
+
model: string;
|
|
41
|
+
usage: Usage;
|
|
42
|
+
note?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface CompactionEntry<T = unknown> extends SessionEntryBase {
|
|
45
|
+
type: "compaction";
|
|
46
|
+
summary: string;
|
|
47
|
+
firstKeptEntryId: string;
|
|
48
|
+
tokensBefore: number;
|
|
49
|
+
details?: T;
|
|
50
|
+
usage?: Usage;
|
|
51
|
+
fromHook?: boolean;
|
|
52
|
+
systemMessage?: SystemMessage;
|
|
53
|
+
}
|
|
54
|
+
export interface BranchSummaryEntry<T = unknown> extends SessionEntryBase {
|
|
55
|
+
type: "branch_summary";
|
|
56
|
+
fromId: string;
|
|
57
|
+
summary: string;
|
|
58
|
+
details?: T;
|
|
59
|
+
usage?: Usage;
|
|
60
|
+
fromHook?: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface CustomEntry<T = unknown> extends SessionEntryBase {
|
|
63
|
+
type: "custom";
|
|
64
|
+
customType: string;
|
|
65
|
+
data?: T;
|
|
66
|
+
}
|
|
67
|
+
export interface LabelEntry extends SessionEntryBase {
|
|
68
|
+
type: "label";
|
|
69
|
+
targetId: string;
|
|
70
|
+
label: string | undefined;
|
|
71
|
+
}
|
|
72
|
+
export interface SessionInfoEntry extends SessionEntryBase {
|
|
73
|
+
type: "session_info";
|
|
74
|
+
name?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface CustomMessageEntry<T = unknown> extends SessionEntryBase {
|
|
77
|
+
type: "custom_message";
|
|
78
|
+
customType: string;
|
|
79
|
+
content: string | (TextContent | ImageContent)[];
|
|
80
|
+
details?: T;
|
|
81
|
+
display: boolean;
|
|
82
|
+
}
|
|
83
|
+
export type ContextEditableContent = UserMessage["content"] | AssistantMessage["content"] | ToolResultMessage["content"] | CustomMessage["content"];
|
|
84
|
+
export interface ContextEditEntry extends SessionEntryBase {
|
|
85
|
+
type: "context_edit";
|
|
86
|
+
targetId: string;
|
|
87
|
+
replacement: {
|
|
88
|
+
content: ContextEditableContent;
|
|
89
|
+
} | null;
|
|
90
|
+
}
|
|
91
|
+
export type SessionEntry = SessionMessageEntry | ThinkingLevelChangeEntry | ModelChangeEntry | UsageEntry | CompactionEntry | BranchSummaryEntry | CustomEntry | CustomMessageEntry | ContextEditEntry | LabelEntry | SessionInfoEntry;
|
|
92
|
+
export type FileEntry = SessionHeader | SessionEntry;
|
|
93
|
+
export interface SessionTreeNode {
|
|
94
|
+
entry: SessionEntry;
|
|
95
|
+
children: SessionTreeNode[];
|
|
96
|
+
label?: string;
|
|
97
|
+
labelTimestamp?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface ProjectedSessionEntry {
|
|
100
|
+
sourceEntry: SessionEntry;
|
|
101
|
+
messages: AgentMessage[];
|
|
102
|
+
}
|
|
103
|
+
export interface SessionProjection {
|
|
104
|
+
entries: ProjectedSessionEntry[];
|
|
105
|
+
messages: AgentMessage[];
|
|
106
|
+
thinkingLevel: string;
|
|
107
|
+
model: {
|
|
108
|
+
provider: string;
|
|
109
|
+
modelId: string;
|
|
110
|
+
} | null;
|
|
111
|
+
}
|
|
112
|
+
export interface SessionContext {
|
|
113
|
+
messages: AgentMessage[];
|
|
114
|
+
thinkingLevel: string;
|
|
115
|
+
model: {
|
|
116
|
+
provider: string;
|
|
117
|
+
modelId: string;
|
|
118
|
+
} | null;
|
|
119
|
+
}
|
|
120
|
+
export interface SessionInfo {
|
|
121
|
+
path: string;
|
|
122
|
+
id: string;
|
|
123
|
+
cwd: string;
|
|
124
|
+
name?: string;
|
|
125
|
+
parentSessionPath?: string;
|
|
126
|
+
created: Date;
|
|
127
|
+
modified: Date;
|
|
128
|
+
messageCount: number;
|
|
129
|
+
firstMessage: string;
|
|
130
|
+
allMessagesText: string;
|
|
131
|
+
}
|
|
132
|
+
export type ReadonlySessionManager = Pick<SessionManager, "getCwd" | "getSessionDir" | "getSessionId" | "getSessionFile" | "getLeafId" | "getLeafEntry" | "getEntry" | "getLabel" | "getBranch" | "buildContextEntries" | "buildSessionProjection" | "getHeader" | "getEntries" | "getTree" | "getSessionName">;
|
|
133
|
+
export declare function assertValidSessionId(id: string): void;
|
|
134
|
+
export declare function migrateSessionEntries(entries: FileEntry[]): void;
|
|
135
|
+
export declare function parseSessionEntries(content: string): FileEntry[];
|
|
136
|
+
export declare function getLatestCompactionEntry(entries: SessionEntry[]): CompactionEntry | null;
|
|
137
|
+
export declare function sessionEntryToContextMessages(entry: SessionEntry): AgentMessage[];
|
|
138
|
+
export declare function buildContextEntries(entries: SessionEntry[], leafId?: string | null, byId?: Map<string, SessionEntry>): SessionEntry[];
|
|
139
|
+
export declare function buildSessionProjection(entries: SessionEntry[], leafId?: string | null, byId?: Map<string, SessionEntry>): SessionProjection;
|
|
140
|
+
export declare function buildSessionContext(entries: SessionEntry[], leafId?: string | null, byId?: Map<string, SessionEntry>): SessionContext;
|
|
141
|
+
export declare function getDefaultSessionDir(cwd: string, agentDir?: string): string;
|
|
142
|
+
export declare function loadEntriesFromFile(filePath: string): FileEntry[];
|
|
143
|
+
export declare function findMostRecentSession(sessionDir: string, cwd?: string): string | null;
|
|
144
|
+
export type SessionListProgress = (loaded: number, total: number, partialSessions?: readonly SessionInfo[]) => void;
|
|
145
|
+
export declare class SessionManager {
|
|
146
|
+
private sessionId;
|
|
147
|
+
private sessionFile;
|
|
148
|
+
private sessionDir;
|
|
149
|
+
private cwd;
|
|
150
|
+
private persist;
|
|
151
|
+
private flushed;
|
|
152
|
+
private fileEntries;
|
|
153
|
+
private byId;
|
|
154
|
+
private labelsById;
|
|
155
|
+
private labelTimestampsById;
|
|
156
|
+
private leafId;
|
|
157
|
+
private constructor();
|
|
158
|
+
setSessionFile(sessionFile: string): void;
|
|
159
|
+
private _setSessionFile;
|
|
160
|
+
newSession(options?: NewSessionOptions): string | undefined;
|
|
161
|
+
private _loadEntries;
|
|
162
|
+
private _buildIndex;
|
|
163
|
+
private _rewriteFile;
|
|
164
|
+
isPersisted(): boolean;
|
|
165
|
+
getCwd(): string;
|
|
166
|
+
getSessionDir(): string;
|
|
167
|
+
usesDefaultSessionDir(): boolean;
|
|
168
|
+
getSessionId(): string;
|
|
169
|
+
getSessionFile(): string | undefined;
|
|
170
|
+
_persist(entry: SessionEntry): void;
|
|
171
|
+
private _appendEntry;
|
|
172
|
+
appendMessage(message: Message | CustomMessage | BashExecutionMessage): string;
|
|
173
|
+
appendThinkingLevelChange(thinkingLevel: string): string;
|
|
174
|
+
appendModelChange(provider: string, modelId: string): string;
|
|
175
|
+
appendUsage(kind: string, provider: string, model: string, usage: Usage, note?: string): UsageEntry;
|
|
176
|
+
appendCompaction<T = unknown>(summary: string, firstKeptEntryId: string | null, tokensBefore: number, details?: T, fromHook?: boolean, usage?: Usage): string;
|
|
177
|
+
appendCustomEntry(customType: string, data?: unknown): string;
|
|
178
|
+
appendSessionInfo(name: string): string;
|
|
179
|
+
getSessionName(): string | undefined;
|
|
180
|
+
appendCustomMessageEntry<T = unknown>(customType: string, content: string | (TextContent | ImageContent)[], display: boolean, details?: T): string;
|
|
181
|
+
appendContextEdit(targetId: string, replacement: ContextEditEntry["replacement"]): string;
|
|
182
|
+
getLeafId(): string | null;
|
|
183
|
+
getLeafEntry(): SessionEntry | undefined;
|
|
184
|
+
getEntry(id: string): SessionEntry | undefined;
|
|
185
|
+
getChildren(parentId: string): SessionEntry[];
|
|
186
|
+
getLabel(id: string): string | undefined;
|
|
187
|
+
appendLabelChange(targetId: string, label: string | undefined): string;
|
|
188
|
+
getBranch(fromId?: string): SessionEntry[];
|
|
189
|
+
buildContextEntries(): SessionEntry[];
|
|
190
|
+
buildSessionProjection(): SessionProjection;
|
|
191
|
+
buildSessionContext(): SessionContext;
|
|
192
|
+
getHeader(): SessionHeader | null;
|
|
193
|
+
getEntries(): SessionEntry[];
|
|
194
|
+
getTree(): SessionTreeNode[];
|
|
195
|
+
branch(branchFromId: string): void;
|
|
196
|
+
resetLeaf(): void;
|
|
197
|
+
branchWithSummary(branchFromId: string | null, summary: string, details?: unknown, fromHook?: boolean, usage?: Usage): string;
|
|
198
|
+
createBranchedSession(leafId: string): string | undefined;
|
|
199
|
+
static create(cwd: string, sessionDir?: string, options?: NewSessionOptions): SessionManager;
|
|
200
|
+
static open(path: string, sessionDir?: string, cwdOverride?: string): SessionManager;
|
|
201
|
+
static continueRecent(cwd: string, sessionDir?: string): SessionManager;
|
|
202
|
+
static inMemory(cwd?: string, options?: NewSessionOptions, entries?: FileEntry[]): SessionManager;
|
|
203
|
+
static forkFrom(sourcePath: string, targetCwd: string, sessionDir?: string, options?: NewSessionOptions): SessionManager;
|
|
204
|
+
static findById(cwd: string, id: string, sessionDir?: string): string | undefined;
|
|
205
|
+
static list(cwd: string, sessionDir?: string, onProgress?: SessionListProgress, signal?: AbortSignal): Promise<SessionInfo[]>;
|
|
206
|
+
static listAll(onProgress?: SessionListProgress, signal?: AbortSignal): Promise<SessionInfo[]>;
|
|
207
|
+
static listAll(sessionDir?: string, onProgress?: SessionListProgress, signal?: AbortSignal): Promise<SessionInfo[]>;
|
|
208
|
+
}
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import type { ThinkingLevel } from "@earendil-works/pi-agent-core";
|
|
2
|
+
import { type Model, type Transport } from "@earendil-works/pi-ai";
|
|
3
|
+
import type { TuiMode as RendererTuiMode, ScrollViewScrollbar, TerminalCapabilities } from "@earendil-works/pi-tui";
|
|
4
|
+
import type { ShellEnvironmentPolicy } from "../dal/child-env.ts";
|
|
5
|
+
import type { SandboxSettings, SandboxSettingsSources } from "./sandbox/policy.ts";
|
|
6
|
+
export interface CompactionModelOverride {
|
|
7
|
+
reserveTokens?: number;
|
|
8
|
+
keepRecentTokens?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface CompactionSettings {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
reserveTokens?: number;
|
|
13
|
+
keepRecentTokens?: number;
|
|
14
|
+
modelOverrides?: Record<string, CompactionModelOverride>;
|
|
15
|
+
maxContextTokens?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const DEFAULT_COMPACTION_MAX_CONTEXT_TOKENS = 128000;
|
|
18
|
+
export declare const DEFAULT_MAX_OUTPUT_TOKENS = 32000;
|
|
19
|
+
export declare const DEFAULT_MAX_RETRIES = 5;
|
|
20
|
+
export interface BranchSummarySettings {
|
|
21
|
+
reserveTokens?: number;
|
|
22
|
+
skipPrompt?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface ProviderRetrySettings {
|
|
25
|
+
timeoutMs?: number;
|
|
26
|
+
maxRetries?: number;
|
|
27
|
+
maxRetryDelayMs?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface RetrySettings {
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
maxRetries?: number;
|
|
32
|
+
baseDelayMs?: number;
|
|
33
|
+
maxAgentDelayMs?: number;
|
|
34
|
+
provider?: ProviderRetrySettings;
|
|
35
|
+
}
|
|
36
|
+
export type TuiMode = RendererTuiMode;
|
|
37
|
+
export type FullscreenExitOutput = "transcript" | "resume-hint";
|
|
38
|
+
export interface TerminalSettings {
|
|
39
|
+
showImages?: boolean;
|
|
40
|
+
imageWidthCells?: number;
|
|
41
|
+
clearOnShrink?: boolean;
|
|
42
|
+
showTerminalProgress?: boolean;
|
|
43
|
+
hyperlinks?: boolean | "auto";
|
|
44
|
+
images?: "kitty" | "iterm2" | "auto" | false;
|
|
45
|
+
trueColor?: boolean | "auto";
|
|
46
|
+
}
|
|
47
|
+
export interface ImageSettings {
|
|
48
|
+
autoResize?: boolean;
|
|
49
|
+
blockImages?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface ThinkingBudgetsSettings {
|
|
52
|
+
minimal?: number;
|
|
53
|
+
low?: number;
|
|
54
|
+
medium?: number;
|
|
55
|
+
high?: number;
|
|
56
|
+
}
|
|
57
|
+
export type MermaidRenderingMode = "off" | "final" | "streaming";
|
|
58
|
+
export declare const CACHE_WARMING_MODES: readonly [
|
|
59
|
+
"off",
|
|
60
|
+
"streaming",
|
|
61
|
+
"idle"
|
|
62
|
+
];
|
|
63
|
+
export type CacheWarmingMode = (typeof CACHE_WARMING_MODES)[number];
|
|
64
|
+
export interface MarkdownSettings {
|
|
65
|
+
codeBlockIndent?: string;
|
|
66
|
+
mermaid?: MermaidRenderingMode;
|
|
67
|
+
}
|
|
68
|
+
export interface WarningSettings {
|
|
69
|
+
anthropicExtraUsage?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export type DefaultProjectTrust = "ask" | "always" | "never";
|
|
72
|
+
export type TransportSetting = Transport;
|
|
73
|
+
export type PackageSource = string | {
|
|
74
|
+
source: string;
|
|
75
|
+
autoload?: boolean;
|
|
76
|
+
extensions?: string[];
|
|
77
|
+
skills?: string[];
|
|
78
|
+
prompts?: string[];
|
|
79
|
+
themes?: string[];
|
|
80
|
+
resolvedCommit?: string;
|
|
81
|
+
};
|
|
82
|
+
export interface Settings {
|
|
83
|
+
lastChangelogVersion?: string;
|
|
84
|
+
defaultProvider?: string;
|
|
85
|
+
defaultModel?: string;
|
|
86
|
+
defaultThinkingLevel?: ThinkingLevel;
|
|
87
|
+
modelThinkingLevels?: Record<string, ThinkingLevel>;
|
|
88
|
+
transport?: TransportSetting;
|
|
89
|
+
steeringMode?: "all" | "one-at-a-time";
|
|
90
|
+
followUpMode?: "all" | "one-at-a-time";
|
|
91
|
+
theme?: string;
|
|
92
|
+
compaction?: CompactionSettings;
|
|
93
|
+
branchSummary?: BranchSummarySettings;
|
|
94
|
+
retry?: RetrySettings;
|
|
95
|
+
hideThinkingBlock?: boolean;
|
|
96
|
+
showCacheMissNotices?: boolean;
|
|
97
|
+
externalEditor?: string;
|
|
98
|
+
shellPath?: string;
|
|
99
|
+
quietStartup?: boolean;
|
|
100
|
+
defaultProjectTrust?: DefaultProjectTrust;
|
|
101
|
+
shellCommandPrefix?: string;
|
|
102
|
+
shellEnvironment?: ShellEnvironmentPolicy;
|
|
103
|
+
sandbox?: SandboxSettings;
|
|
104
|
+
permissions?: {
|
|
105
|
+
allow?: string[];
|
|
106
|
+
deny?: string[];
|
|
107
|
+
ask?: string[];
|
|
108
|
+
};
|
|
109
|
+
npmCommand?: string[];
|
|
110
|
+
collapseChangelog?: boolean;
|
|
111
|
+
enableInstallTelemetry?: boolean;
|
|
112
|
+
enableAnalytics?: boolean;
|
|
113
|
+
trackingId?: string;
|
|
114
|
+
packages?: PackageSource[];
|
|
115
|
+
extensions?: string[];
|
|
116
|
+
skills?: string[];
|
|
117
|
+
prompts?: string[];
|
|
118
|
+
themes?: string[];
|
|
119
|
+
enableSkillCommands?: boolean;
|
|
120
|
+
factoryEnabled?: boolean;
|
|
121
|
+
terminal?: TerminalSettings;
|
|
122
|
+
images?: ImageSettings;
|
|
123
|
+
enabledModels?: string[];
|
|
124
|
+
defaultTools?: string[];
|
|
125
|
+
doubleEscapeAction?: "fork" | "tree" | "none";
|
|
126
|
+
treeFilterMode?: "default" | "no-tools" | "user-only" | "labeled-only" | "all";
|
|
127
|
+
thinkingBudgets?: ThinkingBudgetsSettings;
|
|
128
|
+
editorPaddingX?: number;
|
|
129
|
+
outputPad?: 0 | 1;
|
|
130
|
+
autocompleteMaxVisible?: number;
|
|
131
|
+
showHardwareCursor?: boolean;
|
|
132
|
+
markdown?: MarkdownSettings;
|
|
133
|
+
warnings?: WarningSettings;
|
|
134
|
+
sessionDir?: string;
|
|
135
|
+
httpProxy?: string;
|
|
136
|
+
httpIdleTimeoutMs?: number;
|
|
137
|
+
maxOutputTokens?: number;
|
|
138
|
+
cacheWarming?: CacheWarmingMode;
|
|
139
|
+
websocketConnectTimeoutMs?: number;
|
|
140
|
+
tuiMode?: TuiMode;
|
|
141
|
+
fullscreenExitOutput?: FullscreenExitOutput;
|
|
142
|
+
fullscreenScrollbar?: ScrollViewScrollbar;
|
|
143
|
+
fullscreenCopyOnSelect?: boolean;
|
|
144
|
+
}
|
|
145
|
+
export type SettingsScope = "global" | "project";
|
|
146
|
+
export interface SettingsManagerCreateOptions {
|
|
147
|
+
projectTrusted?: boolean;
|
|
148
|
+
}
|
|
149
|
+
export interface SettingsStorage {
|
|
150
|
+
withLock(scope: SettingsScope, fn: (current: string | undefined) => string | undefined): void;
|
|
151
|
+
}
|
|
152
|
+
export interface SettingsError {
|
|
153
|
+
scope: SettingsScope;
|
|
154
|
+
path?: string;
|
|
155
|
+
error: Error;
|
|
156
|
+
}
|
|
157
|
+
export declare class FileSettingsStorage implements SettingsStorage {
|
|
158
|
+
private globalSettingsPath;
|
|
159
|
+
private projectSettingsPath;
|
|
160
|
+
constructor(cwd: string, agentDir: string);
|
|
161
|
+
private acquireLockSyncWithRetry;
|
|
162
|
+
withLock(scope: SettingsScope, fn: (current: string | undefined) => string | undefined): void;
|
|
163
|
+
}
|
|
164
|
+
export declare class InMemorySettingsStorage implements SettingsStorage {
|
|
165
|
+
private global;
|
|
166
|
+
private project;
|
|
167
|
+
withLock(scope: SettingsScope, fn: (current: string | undefined) => string | undefined): void;
|
|
168
|
+
}
|
|
169
|
+
export declare class SettingsManager {
|
|
170
|
+
private storage;
|
|
171
|
+
private globalSettings;
|
|
172
|
+
private projectSettings;
|
|
173
|
+
private settings;
|
|
174
|
+
private projectTrusted;
|
|
175
|
+
private modifiedFields;
|
|
176
|
+
private modifiedNestedFields;
|
|
177
|
+
private modifiedProjectFields;
|
|
178
|
+
private modifiedProjectNestedFields;
|
|
179
|
+
private globalSettingsLoadError;
|
|
180
|
+
private projectSettingsLoadError;
|
|
181
|
+
private writeQueue;
|
|
182
|
+
private errors;
|
|
183
|
+
private settingsPaths;
|
|
184
|
+
private constructor();
|
|
185
|
+
static create(cwd: string, agentDir?: string, options?: SettingsManagerCreateOptions): SettingsManager;
|
|
186
|
+
static fromStorage(storage: SettingsStorage, options?: SettingsManagerCreateOptions): SettingsManager;
|
|
187
|
+
private static fromStorageWithPaths;
|
|
188
|
+
static inMemory(settings?: Partial<Settings>, options?: SettingsManagerCreateOptions): SettingsManager;
|
|
189
|
+
private static loadFromStorage;
|
|
190
|
+
private static tryLoadFromStorage;
|
|
191
|
+
private static migrateSettings;
|
|
192
|
+
getGlobalSettings(): Settings;
|
|
193
|
+
getProjectSettings(): Settings;
|
|
194
|
+
isProjectTrusted(): boolean;
|
|
195
|
+
setProjectTrusted(trusted: boolean): void;
|
|
196
|
+
reload(): Promise<void>;
|
|
197
|
+
applyOverrides(overrides: Partial<Settings>): void;
|
|
198
|
+
private markModified;
|
|
199
|
+
private markProjectModified;
|
|
200
|
+
private assertProjectTrustedForWrite;
|
|
201
|
+
private recordError;
|
|
202
|
+
private clearModifiedScope;
|
|
203
|
+
private enqueueWrite;
|
|
204
|
+
private cloneModifiedNestedFields;
|
|
205
|
+
private persistScopedSettings;
|
|
206
|
+
private save;
|
|
207
|
+
private saveProjectSettings;
|
|
208
|
+
private updateProjectSettings;
|
|
209
|
+
flush(): Promise<void>;
|
|
210
|
+
drainErrors(): SettingsError[];
|
|
211
|
+
getLastChangelogVersion(): string | undefined;
|
|
212
|
+
setLastChangelogVersion(version: string): void;
|
|
213
|
+
getSessionDir(): string | undefined;
|
|
214
|
+
getDefaultProvider(): string | undefined;
|
|
215
|
+
getDefaultModel(): string | undefined;
|
|
216
|
+
setDefaultProvider(provider: string): void;
|
|
217
|
+
setDefaultModel(modelId: string): void;
|
|
218
|
+
setDefaultModelAndProvider(provider: string, modelId: string): void;
|
|
219
|
+
getSteeringMode(): "all" | "one-at-a-time";
|
|
220
|
+
setSteeringMode(mode: "all" | "one-at-a-time"): void;
|
|
221
|
+
getFollowUpMode(): "all" | "one-at-a-time";
|
|
222
|
+
setFollowUpMode(mode: "all" | "one-at-a-time"): void;
|
|
223
|
+
getThemeSetting(): string | undefined;
|
|
224
|
+
getTheme(): string | undefined;
|
|
225
|
+
setTheme(theme: string): void;
|
|
226
|
+
getDefaultThinkingLevel(): ThinkingLevel | undefined;
|
|
227
|
+
setDefaultThinkingLevel(level: ThinkingLevel): void;
|
|
228
|
+
getModelThinkingLevel(provider: string, modelId: string): ThinkingLevel | undefined;
|
|
229
|
+
getAllModelThinkingLevels(): Record<string, ThinkingLevel>;
|
|
230
|
+
setModelThinkingLevel(provider: string, modelId: string, level: ThinkingLevel): void;
|
|
231
|
+
removeModelThinkingLevel(provider: string, modelId: string): void;
|
|
232
|
+
getTransport(): TransportSetting;
|
|
233
|
+
setTransport(transport: TransportSetting): void;
|
|
234
|
+
getCompactionEnabled(): boolean;
|
|
235
|
+
setCompactionEnabled(enabled: boolean): void;
|
|
236
|
+
private getCompactionTokenSetting;
|
|
237
|
+
getCompactionReserveTokens(model?: Pick<Model<string>, "provider" | "id">): number;
|
|
238
|
+
getCompactionKeepRecentTokens(model?: Pick<Model<string>, "provider" | "id">): number;
|
|
239
|
+
getCompactionSettings(model?: Pick<Model<string>, "provider" | "id">): {
|
|
240
|
+
enabled: boolean;
|
|
241
|
+
reserveTokens: number;
|
|
242
|
+
keepRecentTokens: number;
|
|
243
|
+
maxContextTokens: number;
|
|
244
|
+
};
|
|
245
|
+
getCompactionMaxContextTokens(): number;
|
|
246
|
+
getBranchSummarySettings(): {
|
|
247
|
+
reserveTokens: number;
|
|
248
|
+
skipPrompt: boolean;
|
|
249
|
+
};
|
|
250
|
+
getBranchSummarySkipPrompt(): boolean;
|
|
251
|
+
getRetryEnabled(): boolean;
|
|
252
|
+
setRetryEnabled(enabled: boolean): void;
|
|
253
|
+
getRetrySettings(): {
|
|
254
|
+
enabled: boolean;
|
|
255
|
+
maxRetries: number;
|
|
256
|
+
baseDelayMs: number;
|
|
257
|
+
maxAgentDelayMs: number;
|
|
258
|
+
};
|
|
259
|
+
getMaxOutputTokens(): number;
|
|
260
|
+
getOutputTokenLimit(modelMaxTokens: number): number;
|
|
261
|
+
getHttpIdleTimeoutMs(): number;
|
|
262
|
+
setHttpIdleTimeoutMs(timeoutMs: number): void;
|
|
263
|
+
getCacheWarmingMode(): CacheWarmingMode;
|
|
264
|
+
setCacheWarmingMode(mode: CacheWarmingMode): void;
|
|
265
|
+
getProviderRetrySettings(): {
|
|
266
|
+
timeoutMs?: number;
|
|
267
|
+
maxRetries?: number;
|
|
268
|
+
maxRetryDelayMs: number;
|
|
269
|
+
};
|
|
270
|
+
getWebSocketConnectTimeoutMs(): number | undefined;
|
|
271
|
+
getHideThinkingBlock(): boolean;
|
|
272
|
+
getShowCacheMissNotices(): boolean;
|
|
273
|
+
getExternalEditorCommand(): string;
|
|
274
|
+
setHideThinkingBlock(hide: boolean): void;
|
|
275
|
+
setShowCacheMissNotices(show: boolean): void;
|
|
276
|
+
getShellPath(): string | undefined;
|
|
277
|
+
setShellPath(path: string | undefined): void;
|
|
278
|
+
getQuietStartup(): boolean;
|
|
279
|
+
setQuietStartup(quiet: boolean): void;
|
|
280
|
+
getDefaultProjectTrust(): DefaultProjectTrust;
|
|
281
|
+
setDefaultProjectTrust(defaultProjectTrust: DefaultProjectTrust): void;
|
|
282
|
+
getShellCommandPrefix(): string | undefined;
|
|
283
|
+
getShellEnvironmentPolicy(): ShellEnvironmentPolicy;
|
|
284
|
+
getPermissionRuleSources(): {
|
|
285
|
+
user?: {
|
|
286
|
+
allow?: unknown;
|
|
287
|
+
deny?: unknown;
|
|
288
|
+
ask?: unknown;
|
|
289
|
+
};
|
|
290
|
+
project?: {
|
|
291
|
+
allow?: unknown;
|
|
292
|
+
deny?: unknown;
|
|
293
|
+
ask?: unknown;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
getSandboxSettingsSources(): SandboxSettingsSources;
|
|
297
|
+
setShellCommandPrefix(prefix: string | undefined): void;
|
|
298
|
+
getNpmCommand(): string[] | undefined;
|
|
299
|
+
setNpmCommand(command: string[] | undefined): void;
|
|
300
|
+
getCollapseChangelog(): boolean;
|
|
301
|
+
setCollapseChangelog(collapse: boolean): void;
|
|
302
|
+
getEnableInstallTelemetry(): boolean;
|
|
303
|
+
setEnableInstallTelemetry(enabled: boolean): void;
|
|
304
|
+
getEnableAnalytics(): boolean;
|
|
305
|
+
getTrackingId(): string | undefined;
|
|
306
|
+
setEnableAnalytics(enabled: boolean): void;
|
|
307
|
+
getPackages(): PackageSource[];
|
|
308
|
+
setPackages(packages: PackageSource[]): void;
|
|
309
|
+
setProjectPackages(packages: PackageSource[]): void;
|
|
310
|
+
getExtensionPaths(): string[];
|
|
311
|
+
setExtensionPaths(paths: string[]): void;
|
|
312
|
+
setProjectExtensionPaths(paths: string[]): void;
|
|
313
|
+
getSkillPaths(): string[];
|
|
314
|
+
setSkillPaths(paths: string[]): void;
|
|
315
|
+
setProjectSkillPaths(paths: string[]): void;
|
|
316
|
+
getPromptTemplatePaths(): string[];
|
|
317
|
+
setPromptTemplatePaths(paths: string[]): void;
|
|
318
|
+
setProjectPromptTemplatePaths(paths: string[]): void;
|
|
319
|
+
getThemePaths(): string[];
|
|
320
|
+
setThemePaths(paths: string[]): void;
|
|
321
|
+
setProjectThemePaths(paths: string[]): void;
|
|
322
|
+
getEnableSkillCommands(): boolean;
|
|
323
|
+
setEnableSkillCommands(enabled: boolean): void;
|
|
324
|
+
getFactoryEnabled(): boolean;
|
|
325
|
+
setFactoryEnabled(enabled: boolean): void;
|
|
326
|
+
getThinkingBudgets(): ThinkingBudgetsSettings | undefined;
|
|
327
|
+
getTerminalCapabilityOverrides(): Partial<TerminalCapabilities>;
|
|
328
|
+
getShowImages(): boolean;
|
|
329
|
+
setShowImages(show: boolean): void;
|
|
330
|
+
getImageWidthCells(): number;
|
|
331
|
+
setImageWidthCells(width: number): void;
|
|
332
|
+
getClearOnShrink(): boolean;
|
|
333
|
+
setClearOnShrink(enabled: boolean): void;
|
|
334
|
+
getShowTerminalProgress(): boolean;
|
|
335
|
+
setShowTerminalProgress(enabled: boolean): void;
|
|
336
|
+
getTuiMode(): TuiMode;
|
|
337
|
+
setTuiMode(mode: TuiMode): void;
|
|
338
|
+
getFullscreenExitOutput(): FullscreenExitOutput;
|
|
339
|
+
setFullscreenExitOutput(output: FullscreenExitOutput): void;
|
|
340
|
+
getFullscreenScrollbar(): ScrollViewScrollbar;
|
|
341
|
+
setFullscreenScrollbar(mode: ScrollViewScrollbar): void;
|
|
342
|
+
getFullscreenCopyOnSelect(): boolean;
|
|
343
|
+
setFullscreenCopyOnSelect(enabled: boolean): void;
|
|
344
|
+
getImageAutoResize(): boolean;
|
|
345
|
+
setImageAutoResize(enabled: boolean): void;
|
|
346
|
+
getBlockImages(): boolean;
|
|
347
|
+
setBlockImages(blocked: boolean): void;
|
|
348
|
+
getEnabledModels(): string[] | undefined;
|
|
349
|
+
getDefaultTools(): string[] | undefined;
|
|
350
|
+
setEnabledModels(patterns: string[] | undefined): void;
|
|
351
|
+
getDoubleEscapeAction(): "fork" | "tree" | "none";
|
|
352
|
+
setDoubleEscapeAction(action: "fork" | "tree" | "none"): void;
|
|
353
|
+
getTreeFilterMode(): "default" | "no-tools" | "user-only" | "labeled-only" | "all";
|
|
354
|
+
setTreeFilterMode(mode: "default" | "no-tools" | "user-only" | "labeled-only" | "all"): void;
|
|
355
|
+
getShowHardwareCursor(): boolean;
|
|
356
|
+
setShowHardwareCursor(enabled: boolean): void;
|
|
357
|
+
getEditorPaddingX(): number;
|
|
358
|
+
setEditorPaddingX(padding: number): void;
|
|
359
|
+
getOutputPad(): 0 | 1;
|
|
360
|
+
setOutputPad(padding: 0 | 1): void;
|
|
361
|
+
getAutocompleteMaxVisible(): number;
|
|
362
|
+
setAutocompleteMaxVisible(maxVisible: number): void;
|
|
363
|
+
getCodeBlockIndent(): string;
|
|
364
|
+
getMermaidRenderingMode(): MermaidRenderingMode;
|
|
365
|
+
setMermaidRenderingMode(mode: MermaidRenderingMode): void;
|
|
366
|
+
getWarnings(): WarningSettings;
|
|
367
|
+
setWarnings(warnings: WarningSettings): void;
|
|
368
|
+
}
|