@oh-my-pi/pi-coding-agent 6.9.69 → 8.0.0
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 +219 -51
- package/README.md +1 -1
- package/docs/hooks.md +2 -2
- package/docs/sdk.md +1 -1
- package/examples/sdk/04-skills.ts +1 -1
- package/package.json +10 -10
- package/scripts/format-prompts.ts +143 -0
- package/scripts/generate-template.ts +1 -1
- package/src/cli/args.ts +3 -3
- package/src/cli/config-cli.ts +4 -4
- package/src/cli/file-processor.ts +3 -3
- package/src/cli/list-models.ts +2 -2
- package/src/cli/plugin-cli.ts +3 -3
- package/src/cli/session-picker.ts +2 -2
- package/src/cli/setup-cli.ts +2 -2
- package/src/cli/stats-cli.ts +1 -1
- package/src/cli/update-cli.ts +2 -2
- package/src/{core → config}/keybindings.ts +1 -1
- package/src/{core → config}/model-registry.ts +8 -1
- package/src/{core → config}/model-resolver.ts +3 -3
- package/src/{core → config}/prompt-templates.ts +2 -2
- package/src/{core → config}/settings-manager.ts +6 -6
- package/src/{core/cursor/exec-bridge.ts → cursor.ts} +4 -4
- package/src/discovery/agents-md.ts +4 -4
- package/src/discovery/builtin.ts +17 -17
- package/src/discovery/claude.ts +12 -12
- package/src/discovery/cline.ts +6 -6
- package/src/discovery/codex.ts +21 -21
- package/src/discovery/cursor.ts +9 -9
- package/src/discovery/gemini.ts +9 -9
- package/src/discovery/github.ts +6 -6
- package/src/discovery/helpers.ts +4 -4
- package/src/discovery/index.ts +16 -16
- package/src/discovery/mcp-json.ts +4 -4
- package/src/discovery/ssh.ts +4 -4
- package/src/discovery/vscode.ts +4 -4
- package/src/discovery/windsurf.ts +6 -6
- package/src/{core/tools/exa → exa}/company.ts +2 -3
- package/src/{core/tools/exa → exa}/index.ts +2 -2
- package/src/{core/tools/exa → exa}/linkedin.ts +2 -3
- package/src/{core/tools/exa → exa}/mcp-client.ts +2 -2
- package/src/{core/tools/exa → exa}/render.ts +3 -3
- package/src/{core/tools/exa → exa}/researcher.ts +1 -1
- package/src/{core/tools/exa → exa}/search.ts +2 -10
- package/src/{core/tools/exa → exa}/websets.ts +1 -1
- package/src/{core → exec}/bash-executor.ts +23 -7
- package/src/{core → export}/custom-share.ts +1 -1
- package/src/{core/export-html → export/html}/index.ts +3 -3
- package/src/{core → export}/ttsr.ts +2 -2
- package/src/{core → extensibility}/custom-commands/bundled/review/index.ts +4 -4
- package/src/{core → extensibility}/custom-commands/loader.ts +3 -3
- package/src/{core → extensibility}/custom-commands/types.ts +1 -1
- package/src/{core → extensibility}/custom-tools/loader.ts +9 -9
- package/src/{core → extensibility}/custom-tools/types.ts +6 -6
- package/src/{core → extensibility}/custom-tools/wrapper.ts +1 -1
- package/src/{core → extensibility}/extensions/loader.ts +8 -8
- package/src/{core → extensibility}/extensions/runner.ts +3 -3
- package/src/{core → extensibility}/extensions/types.ts +15 -15
- package/src/{core → extensibility}/extensions/wrapper.ts +1 -1
- package/src/{core → extensibility}/hooks/index.ts +1 -1
- package/src/{core → extensibility}/hooks/loader.ts +7 -7
- package/src/{core → extensibility}/hooks/runner.ts +4 -4
- package/src/{core → extensibility}/hooks/types.ts +9 -9
- package/src/{core → extensibility}/plugins/doctor.ts +1 -1
- package/src/{core → extensibility}/plugins/installer.ts +2 -3
- package/src/{core → extensibility}/plugins/paths.ts +1 -1
- package/src/{core → extensibility}/skills.ts +8 -48
- package/src/{core → extensibility}/slash-commands.ts +6 -6
- package/src/index.ts +127 -128
- package/src/internal-urls/agent-protocol.ts +126 -0
- package/src/internal-urls/artifact-protocol.ts +93 -0
- package/src/internal-urls/index.ts +28 -0
- package/src/internal-urls/json-query.ts +126 -0
- package/src/internal-urls/router.ts +69 -0
- package/src/internal-urls/rule-protocol.ts +56 -0
- package/src/internal-urls/skill-protocol.ts +112 -0
- package/src/internal-urls/types.ts +48 -0
- package/src/{core/python-executor.ts → ipy/executor.ts} +74 -13
- package/src/{core/python-gateway-coordinator.ts → ipy/gateway-coordinator.ts} +40 -270
- package/src/{core/python-kernel.ts → ipy/kernel.ts} +38 -10
- package/src/{core/python-prelude.py → ipy/prelude.py} +201 -8
- package/src/ipy/prelude.ts +3 -0
- package/src/{core/tools/lsp → lsp}/client.ts +7 -6
- package/src/{core/tools/lsp → lsp}/clients/biome-client.ts +1 -1
- package/src/{core/tools/lsp → lsp}/clients/index.ts +1 -1
- package/src/{core/tools/lsp → lsp}/clients/lsp-linter-client.ts +4 -4
- package/src/{core/tools/lsp → lsp}/config.ts +1 -1
- package/src/{core/tools/lsp → lsp}/index.ts +29 -17
- package/src/{core/tools/lsp → lsp}/render.ts +2 -2
- package/src/{core/tools/lsp → lsp}/types.ts +14 -16
- package/src/{core/tools/lsp → lsp}/utils.ts +1 -1
- package/src/main.ts +12 -12
- package/src/{core/mcp → mcp}/config.ts +8 -8
- package/src/{core/mcp → mcp}/loader.ts +5 -6
- package/src/{core/mcp → mcp}/manager.ts +2 -2
- package/src/{core/mcp → mcp}/tool-bridge.ts +35 -6
- package/src/{core/mcp → mcp}/tool-cache.ts +1 -1
- package/src/{core/mcp → mcp}/transports/http.ts +7 -1
- package/src/{core/mcp → mcp}/transports/stdio.ts +1 -1
- package/src/{core/mcp → mcp}/types.ts +1 -1
- package/src/migrations.ts +2 -2
- package/src/modes/{interactive/components → components}/armin.ts +1 -1
- package/src/modes/{interactive/components → components}/assistant-message.ts +1 -1
- package/src/modes/{interactive/components → components}/bash-execution.ts +37 -29
- package/src/modes/{interactive/components → components}/bordered-loader.ts +1 -1
- package/src/modes/{interactive/components → components}/branch-summary-message.ts +2 -2
- package/src/modes/{interactive/components → components}/compaction-summary-message.ts +2 -2
- package/src/modes/{interactive/components → components}/custom-message.ts +3 -3
- package/src/modes/{interactive/components → components}/diff.ts +1 -1
- package/src/modes/{interactive/components → components}/dynamic-border.ts +1 -1
- package/src/modes/{interactive/components → components}/extensions/extension-dashboard.ts +3 -3
- package/src/modes/{interactive/components → components}/extensions/extension-list.ts +2 -2
- package/src/modes/{interactive/components → components}/extensions/inspector-panel.ts +1 -1
- package/src/modes/{interactive/components → components}/extensions/state-manager.ts +11 -17
- package/src/modes/{interactive/components → components}/extensions/types.ts +1 -1
- package/src/modes/{interactive/components → components}/footer.ts +3 -3
- package/src/modes/{interactive/components → components}/history-search.ts +2 -2
- package/src/modes/{interactive/components → components}/hook-editor.ts +1 -1
- package/src/modes/{interactive/components → components}/hook-input.ts +1 -1
- package/src/modes/{interactive/components → components}/hook-message.ts +3 -3
- package/src/modes/{interactive/components → components}/hook-selector.ts +1 -1
- package/src/modes/{interactive/components → components}/keybinding-hints.ts +2 -2
- package/src/modes/{interactive/components → components}/login-dialog.ts +1 -1
- package/src/modes/{interactive/components → components}/model-selector.ts +5 -5
- package/src/modes/{interactive/components → components}/oauth-selector.ts +2 -2
- package/src/modes/{interactive/components → components}/plugin-settings.ts +3 -3
- package/src/modes/{interactive/components → components}/python-execution.ts +35 -24
- package/src/modes/{interactive/components → components}/queue-mode-selector.ts +1 -1
- package/src/modes/{interactive/components → components}/read-tool-group.ts +2 -2
- package/src/modes/{interactive/components → components}/session-selector.ts +3 -3
- package/src/modes/{interactive/components → components}/settings-defs.ts +2 -2
- package/src/modes/{interactive/components → components}/settings-selector.ts +2 -2
- package/src/modes/{interactive/components → components}/show-images-selector.ts +1 -1
- package/src/modes/{interactive/components → components}/status-line/segments.ts +2 -2
- package/src/modes/{interactive/components → components}/status-line/separators.ts +1 -1
- package/src/modes/{interactive/components → components}/status-line/types.ts +2 -2
- package/src/modes/{interactive/components → components}/status-line-segment-editor.ts +2 -2
- package/src/modes/{interactive/components → components}/status-line.ts +3 -3
- package/src/modes/{interactive/components → components}/theme-selector.ts +1 -1
- package/src/modes/{interactive/components → components}/thinking-selector.ts +1 -1
- package/src/modes/{interactive/components → components}/todo-display.ts +3 -4
- package/src/modes/{interactive/components → components}/todo-reminder.ts +2 -2
- package/src/modes/{interactive/components → components}/tool-execution.ts +8 -8
- package/src/modes/{interactive/components → components}/tree-selector.ts +3 -3
- package/src/modes/{interactive/components → components}/ttsr-notification.ts +2 -2
- package/src/modes/{interactive/components → components}/user-message-selector.ts +1 -1
- package/src/modes/{interactive/components → components}/user-message.ts +1 -1
- package/src/modes/{interactive/components → components}/welcome.ts +2 -2
- package/src/modes/{interactive/controllers → controllers}/command-controller.ts +381 -30
- package/src/modes/{interactive/controllers → controllers}/event-controller.ts +9 -9
- package/src/modes/{interactive/controllers → controllers}/extension-ui-controller.ts +8 -8
- package/src/modes/{interactive/controllers → controllers}/input-controller.ts +61 -13
- package/src/modes/{interactive/controllers → controllers}/selector-controller.ts +16 -16
- package/src/modes/index.ts +1 -1
- package/src/modes/{interactive/interactive-mode.ts → interactive-mode.ts} +20 -15
- package/src/modes/print-mode.ts +1 -1
- package/src/modes/rpc/rpc-client.ts +3 -3
- package/src/modes/rpc/rpc-mode.ts +3 -3
- package/src/modes/rpc/rpc-types.ts +3 -3
- package/src/modes/{interactive/theme → theme}/theme.ts +1 -1
- package/src/modes/{interactive/types.ts → types.ts} +10 -10
- package/src/modes/{interactive/utils → utils}/ui-helpers.ts +20 -27
- package/src/{core/tools/patch → patch}/applicator.ts +1 -1
- package/src/{core/tools/patch → patch}/diff.ts +1 -1
- package/src/{core/tools/patch → patch}/index.ts +31 -36
- package/src/{core/tools/patch → patch}/shared.ts +9 -6
- package/src/prompts/agents/explore.md +83 -46
- package/src/prompts/agents/init.md +9 -4
- package/src/prompts/agents/plan.md +8 -7
- package/src/prompts/agents/reviewer.md +36 -18
- package/src/prompts/agents/task.md +4 -4
- package/src/prompts/compaction/branch-summary-preamble.md +0 -1
- package/src/prompts/review-request.md +0 -1
- package/src/prompts/system/custom-system-prompt.md +2 -14
- package/src/prompts/system/file-operations.md +0 -2
- package/src/prompts/system/system-prompt.md +182 -171
- package/src/prompts/system/web-search.md +26 -0
- package/src/prompts/tools/ask.md +31 -24
- package/src/prompts/tools/bash.md +20 -17
- package/src/prompts/tools/calculator.md +9 -5
- package/src/prompts/tools/fetch.md +16 -0
- package/src/prompts/tools/find.md +15 -5
- package/src/prompts/tools/gemini-image.md +21 -6
- package/src/prompts/tools/grep.md +28 -12
- package/src/prompts/tools/lsp.md +35 -14
- package/src/prompts/tools/patch.md +39 -41
- package/src/prompts/tools/python.md +59 -77
- package/src/prompts/tools/read.md +23 -22
- package/src/prompts/tools/replace.md +19 -12
- package/src/prompts/tools/ssh.md +21 -28
- package/src/prompts/tools/task.md +54 -44
- package/src/prompts/tools/todo-write.md +52 -163
- package/src/prompts/tools/web-search.md +16 -9
- package/src/prompts/tools/write.md +13 -2
- package/src/{core/sdk.ts → sdk.ts} +65 -34
- package/src/{core → session}/agent-session.ts +157 -41
- package/src/{core → session}/agent-storage.ts +2 -2
- package/src/session/artifacts.ts +110 -0
- package/src/{core → session}/auth-storage.ts +525 -203
- package/src/{core → session}/compaction/branch-summarization.ts +5 -5
- package/src/{core → session}/compaction/compaction.ts +6 -6
- package/src/{core → session}/compaction/utils.ts +3 -3
- package/src/{core → session}/history-storage.ts +1 -1
- package/src/{core → session}/messages.ts +6 -8
- package/src/{core → session}/session-manager.ts +2 -2
- package/src/{core → session}/storage-migration.ts +2 -2
- package/src/session/streaming-output.ts +177 -0
- package/src/{core/ssh → ssh}/connection-manager.ts +1 -1
- package/src/{core/ssh → ssh}/ssh-executor.ts +19 -4
- package/src/{core/ssh → ssh}/sshfs-mount.ts +1 -1
- package/src/{core/system-prompt.ts → system-prompt.ts} +8 -37
- package/src/{core/tools/task → task}/agents.ts +8 -8
- package/src/{core/tools/task → task}/commands.ts +5 -6
- package/src/{core/tools/task → task}/discovery.ts +3 -3
- package/src/{core/tools/task → task}/executor.ts +34 -44
- package/src/{core/tools/task → task}/index.ts +206 -50
- package/src/{core/tools/task → task}/render.ts +80 -23
- package/src/{core/tools/task → task}/subprocess-tool-registry.ts +1 -1
- package/src/task/template.ts +47 -0
- package/src/{core/tools/task → task}/types.ts +19 -27
- package/src/{core/tools/task → task}/worker-protocol.ts +8 -4
- package/src/{core/tools/task → task}/worker.ts +34 -29
- package/src/task/worktree.ts +166 -0
- package/src/{core/tools → tools}/ask.ts +13 -21
- package/src/{core/tools → tools}/bash-interceptor.ts +1 -1
- package/src/{core/tools → tools}/bash.ts +61 -63
- package/src/{core/tools → tools}/calculator.ts +4 -4
- package/src/{core/tools → tools}/complete.ts +1 -1
- package/src/{core/tools → tools}/context.ts +2 -2
- package/src/{core/tools/web-fetch.ts → tools/fetch.ts} +97 -76
- package/src/{core/tools → tools}/find.ts +96 -107
- package/src/{core/tools → tools}/gemini-image.ts +420 -29
- package/src/{core/tools → tools}/grep.ts +155 -164
- package/src/{core/tools → tools}/index.ts +63 -56
- package/src/tools/list-limit.ts +40 -0
- package/src/{core/tools → tools}/ls.ts +44 -35
- package/src/{core/tools → tools}/notebook.ts +3 -3
- package/src/tools/output-meta.ts +443 -0
- package/src/tools/output-utils.ts +63 -0
- package/src/{core/tools → tools}/python.ts +106 -89
- package/src/tools/read.ts +882 -0
- package/src/{core/tools → tools}/render-utils.ts +1 -1
- package/src/{core/tools → tools}/renderers.ts +8 -10
- package/src/{core/tools → tools}/review.ts +2 -2
- package/src/{core/tools → tools}/ssh.ts +56 -59
- package/src/{core/tools → tools}/todo-write.ts +12 -23
- package/src/tools/tool-errors.ts +95 -0
- package/src/tools/tool-result.ts +92 -0
- package/src/{core/tools → tools}/truncate.ts +2 -2
- package/src/{core/tools → tools}/write.ts +15 -13
- package/src/utils/changelog.ts +1 -1
- package/src/{core → utils}/file-mentions.ts +4 -4
- package/src/utils/image-convert.ts +1 -1
- package/src/utils/image-resize.ts +1 -1
- package/src/utils/shell.ts +1 -1
- package/src/{core → utils}/title-generator.ts +4 -4
- package/src/utils/tools-manager.ts +1 -1
- package/src/{core/tools/web-scrapers → web/scrapers}/choosealicense.ts +1 -1
- package/src/{core/tools/web-scrapers → web/scrapers}/twitter.ts +3 -2
- package/src/{core/tools/web-scrapers → web/scrapers}/types.ts +4 -2
- package/src/{core/tools/web-scrapers → web/scrapers}/utils.ts +1 -1
- package/src/{core/tools/web-scrapers → web/scrapers}/youtube.ts +14 -13
- package/src/{core/tools/web-search → web/search}/auth.ts +4 -4
- package/src/{core/tools/web-search → web/search}/index.ts +22 -71
- package/src/{core/tools/web-search → web/search}/providers/anthropic.ts +7 -10
- package/src/{core/tools/web-search → web/search}/providers/exa.ts +2 -2
- package/src/{core/tools/web-search → web/search}/providers/perplexity.ts +4 -16
- package/src/{core/tools/web-search → web/search}/render.ts +3 -3
- package/scripts/migrate-sessions.sh +0 -93
- package/src/core/index.ts +0 -56
- package/src/core/python-prelude.ts +0 -3
- package/src/core/ssh-executor.ts +0 -5
- package/src/core/streaming-output.ts +0 -115
- package/src/core/tools/output.ts +0 -519
- package/src/core/tools/read.ts +0 -717
- package/src/core/tools/task/template.ts +0 -37
- package/src/prompts/tools/output.md +0 -47
- package/src/prompts/tools/web-fetch.md +0 -9
- /package/src/{core/tools/exa → exa}/types.ts +0 -0
- /package/src/{core → exec}/exec.ts +0 -0
- /package/src/{core/export-html → export/html}/template.css +0 -0
- /package/src/{core/export-html → export/html}/template.generated.ts +0 -0
- /package/src/{core/export-html → export/html}/template.html +0 -0
- /package/src/{core/export-html → export/html}/template.js +0 -0
- /package/src/{core/export-html → export/html}/template.macro.ts +0 -0
- /package/src/{core/export-html → export/html}/vendor/highlight.min.js +0 -0
- /package/src/{core/export-html → export/html}/vendor/marked.min.js +0 -0
- /package/src/{core → extensibility}/custom-commands/index.ts +0 -0
- /package/src/{core → extensibility}/custom-tools/index.ts +0 -0
- /package/src/{core → extensibility}/extensions/index.ts +0 -0
- /package/src/{core → extensibility}/hooks/tool-wrapper.ts +0 -0
- /package/src/{core → extensibility}/plugins/index.ts +0 -0
- /package/src/{core → extensibility}/plugins/loader.ts +0 -0
- /package/src/{core → extensibility}/plugins/manager.ts +0 -0
- /package/src/{core → extensibility}/plugins/parser.ts +0 -0
- /package/src/{core → extensibility}/plugins/types.ts +0 -0
- /package/src/{core/python-modules.ts → ipy/modules.ts} +0 -0
- /package/src/{core/tools/lsp → lsp}/defaults.json +0 -0
- /package/src/{core/tools/lsp → lsp}/edits.ts +0 -0
- /package/src/{core/tools/lsp → lsp}/lspmux.ts +0 -0
- /package/src/{core/tools/lsp → lsp}/rust-analyzer.ts +0 -0
- /package/src/{core/mcp → mcp}/client.ts +0 -0
- /package/src/{core/mcp → mcp}/index.ts +0 -0
- /package/src/{core/mcp → mcp}/json-rpc.ts +0 -0
- /package/src/{core/mcp → mcp}/transports/index.ts +0 -0
- /package/src/modes/{interactive/components → components}/countdown-timer.ts +0 -0
- /package/src/modes/{interactive/components → components}/custom-editor.ts +0 -0
- /package/src/modes/{interactive/components → components}/extensions/index.ts +0 -0
- /package/src/modes/{interactive/components → components}/index.ts +0 -0
- /package/src/modes/{interactive/components → components}/status-line/index.ts +0 -0
- /package/src/modes/{interactive/components → components}/status-line/presets.ts +0 -0
- /package/src/modes/{interactive/components → components}/visual-truncate.ts +0 -0
- /package/src/modes/{interactive/theme → theme}/dark.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/alabaster.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/amethyst.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/anthracite.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/basalt.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/birch.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-abyss.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-arctic.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-aurora.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-catppuccin.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-cavern.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-copper.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-cosmos.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-cyberpunk.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-dracula.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-eclipse.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-ember.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-equinox.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-forest.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-github.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-gruvbox.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-lavender.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-lunar.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-midnight.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-monochrome.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-monokai.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-nebula.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-nord.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-ocean.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-one.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-rainforest.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-reef.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-retro.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-rose-pine.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-sakura.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-slate.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-solarized.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-solstice.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-starfall.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-sunset.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-swamp.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-synthwave.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-taiga.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-terminal.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-tokyo-night.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-tundra.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-twilight.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/dark-volcanic.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/graphite.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/index.ts +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-arctic.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-aurora-day.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-canyon.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-catppuccin.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-cirrus.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-coral.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-cyberpunk.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-dawn.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-dunes.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-eucalyptus.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-forest.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-frost.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-github.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-glacier.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-gruvbox.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-haze.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-honeycomb.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-lagoon.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-lavender.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-meadow.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-mint.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-monochrome.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-ocean.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-one.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-opal.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-orchard.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-paper.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-prism.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-retro.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-sand.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-savanna.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-solarized.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-soleil.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-sunset.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-synthwave.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-tokyo-night.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-wetland.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/light-zenith.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/limestone.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/mahogany.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/marble.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/obsidian.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/onyx.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/pearl.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/porcelain.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/quartz.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/sandstone.json +0 -0
- /package/src/modes/{interactive/theme → theme}/defaults/titanium.json +0 -0
- /package/src/modes/{interactive/theme → theme}/light.json +0 -0
- /package/src/modes/{interactive/theme → theme}/theme-schema.json +0 -0
- /package/src/{core/tools/patch → patch}/fuzzy.ts +0 -0
- /package/src/{core/tools/patch → patch}/normalize.ts +0 -0
- /package/src/{core/tools/patch → patch}/normative.ts +0 -0
- /package/src/{core/tools/patch → patch}/parser.ts +0 -0
- /package/src/{core/tools/patch → patch}/types.ts +0 -0
- /package/src/{core → session}/compaction/index.ts +0 -0
- /package/src/{core → session}/session-storage.ts +0 -0
- /package/src/{core/tools/task → task}/name-generator.ts +0 -0
- /package/src/{core/tools/task → task}/omp-command.ts +0 -0
- /package/src/{core/tools/task → task}/parallel.ts +0 -0
- /package/src/{core/tools → tools}/jtd-to-json-schema.ts +0 -0
- /package/src/{core/tools → tools}/path-utils.ts +0 -0
- /package/src/{core → utils}/event-bus.ts +0 -0
- /package/src/{core → utils}/frontmatter.ts +0 -0
- /package/src/{core → utils}/terminal-notify.ts +0 -0
- /package/src/{core → utils}/timings.ts +0 -0
- /package/src/{core → utils}/utils.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/artifacthub.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/arxiv.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/aur.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/biorxiv.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/bluesky.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/brew.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/cheatsh.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/chocolatey.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/cisa-kev.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/clojars.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/coingecko.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/crates-io.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/crossref.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/devto.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/discogs.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/discourse.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/dockerhub.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/fdroid.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/firefox-addons.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/flathub.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/github-gist.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/github.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/gitlab.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/go-pkg.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/hackage.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/hackernews.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/hex.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/huggingface.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/iacr.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/index.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/jetbrains-marketplace.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/lemmy.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/lobsters.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/mastodon.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/maven.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/mdn.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/metacpan.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/musicbrainz.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/npm.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/nuget.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/nvd.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/ollama.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/open-vsx.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/opencorporates.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/openlibrary.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/orcid.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/osv.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/packagist.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/pub-dev.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/pubmed.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/pypi.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/rawg.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/readthedocs.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/reddit.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/repology.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/rfc.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/rubygems.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/searchcode.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/sec-edgar.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/semantic-scholar.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/snapcraft.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/sourcegraph.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/spdx.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/spotify.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/stackoverflow.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/terraform.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/tldr.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/vimeo.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/vscode-marketplace.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/w3c.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/wikidata.ts +0 -0
- /package/src/{core/tools/web-scrapers → web/scrapers}/wikipedia.ts +0 -0
- /package/src/{core/tools/web-search → web/search}/types.ts +0 -0
package/src/discovery/helpers.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { homedir } from "node:os";
|
|
6
6
|
import { join, resolve } from "node:path";
|
|
7
7
|
import type { ThinkingLevel } from "@oh-my-pi/pi-agent-core";
|
|
8
|
-
import { readDirEntries, readFile } from "
|
|
9
|
-
import type { Skill, SkillFrontmatter } from "
|
|
10
|
-
import type { LoadContext, LoadResult, SourceMeta } from "
|
|
11
|
-
import { parseFrontmatter } from "
|
|
8
|
+
import { readDirEntries, readFile } from "$c/capability/fs";
|
|
9
|
+
import type { Skill, SkillFrontmatter } from "$c/capability/skill";
|
|
10
|
+
import type { LoadContext, LoadResult, SourceMeta } from "$c/capability/types";
|
|
11
|
+
import { parseFrontmatter } from "$c/utils/frontmatter";
|
|
12
12
|
|
|
13
13
|
const VALID_THINKING_LEVELS: readonly string[] = ["off", "minimal", "low", "medium", "high", "xhigh"];
|
|
14
14
|
const UNICODE_SPACES = /[\u00A0\u2000-\u200A\u202F\u205F\u3000]/g;
|
package/src/discovery/index.ts
CHANGED
|
@@ -35,10 +35,10 @@ import "./agents-md";
|
|
|
35
35
|
import "./mcp-json";
|
|
36
36
|
import "./ssh";
|
|
37
37
|
|
|
38
|
-
export type { ContextFile } from "
|
|
39
|
-
export type { Extension, ExtensionManifest } from "
|
|
40
|
-
export type { ExtensionModule } from "
|
|
41
|
-
export type { Hook } from "
|
|
38
|
+
export type { ContextFile } from "$c/capability/context-file";
|
|
39
|
+
export type { Extension, ExtensionManifest } from "$c/capability/extension";
|
|
40
|
+
export type { ExtensionModule } from "$c/capability/extension-module";
|
|
41
|
+
export type { Hook } from "$c/capability/hook";
|
|
42
42
|
// Re-export the main API from capability registry
|
|
43
43
|
export {
|
|
44
44
|
cacheStats,
|
|
@@ -62,18 +62,18 @@ export {
|
|
|
62
62
|
// Cache management
|
|
63
63
|
reset,
|
|
64
64
|
setDisabledProviders,
|
|
65
|
-
} from "
|
|
66
|
-
export type { Instruction } from "
|
|
65
|
+
} from "$c/capability/index";
|
|
66
|
+
export type { Instruction } from "$c/capability/instruction";
|
|
67
67
|
// Re-export capability item types
|
|
68
|
-
export type { MCPServer } from "
|
|
69
|
-
export type { Prompt } from "
|
|
70
|
-
export type { Rule, RuleFrontmatter } from "
|
|
71
|
-
export type { Settings } from "
|
|
72
|
-
export type { Skill, SkillFrontmatter } from "
|
|
73
|
-
export type { SlashCommand } from "
|
|
74
|
-
export type { SSHHost } from "
|
|
75
|
-
export type { SystemPrompt } from "
|
|
76
|
-
export type { CustomTool } from "
|
|
68
|
+
export type { MCPServer } from "$c/capability/mcp";
|
|
69
|
+
export type { Prompt } from "$c/capability/prompt";
|
|
70
|
+
export type { Rule, RuleFrontmatter } from "$c/capability/rule";
|
|
71
|
+
export type { Settings } from "$c/capability/settings";
|
|
72
|
+
export type { Skill, SkillFrontmatter } from "$c/capability/skill";
|
|
73
|
+
export type { SlashCommand } from "$c/capability/slash-command";
|
|
74
|
+
export type { SSHHost } from "$c/capability/ssh";
|
|
75
|
+
export type { SystemPrompt } from "$c/capability/system-prompt";
|
|
76
|
+
export type { CustomTool } from "$c/capability/tool";
|
|
77
77
|
// Re-export types
|
|
78
78
|
export type {
|
|
79
79
|
Capability,
|
|
@@ -85,4 +85,4 @@ export type {
|
|
|
85
85
|
Provider,
|
|
86
86
|
ProviderInfo,
|
|
87
87
|
SourceMeta,
|
|
88
|
-
} from "
|
|
88
|
+
} from "$c/capability/types";
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { join } from "node:path";
|
|
11
|
-
import { readFile } from "
|
|
12
|
-
import { registerProvider } from "
|
|
13
|
-
import { type MCPServer, mcpCapability } from "
|
|
14
|
-
import type { LoadContext, LoadResult, SourceMeta } from "
|
|
11
|
+
import { readFile } from "$c/capability/fs";
|
|
12
|
+
import { registerProvider } from "$c/capability/index";
|
|
13
|
+
import { type MCPServer, mcpCapability } from "$c/capability/mcp";
|
|
14
|
+
import type { LoadContext, LoadResult, SourceMeta } from "$c/capability/types";
|
|
15
15
|
import { createSourceMeta, expandEnvVarsDeep, parseJSON } from "./helpers";
|
|
16
16
|
|
|
17
17
|
const PROVIDER_ID = "mcp-json";
|
package/src/discovery/ssh.ts
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { join } from "node:path";
|
|
9
|
-
import { readFile } from "
|
|
10
|
-
import { registerProvider } from "
|
|
11
|
-
import { type SSHHost, sshCapability } from "
|
|
12
|
-
import type { LoadContext, LoadResult, SourceMeta } from "
|
|
9
|
+
import { readFile } from "$c/capability/fs";
|
|
10
|
+
import { registerProvider } from "$c/capability/index";
|
|
11
|
+
import { type SSHHost, sshCapability } from "$c/capability/ssh";
|
|
12
|
+
import type { LoadContext, LoadResult, SourceMeta } from "$c/capability/types";
|
|
13
13
|
import { createSourceMeta, expandEnvVarsDeep, parseJSON } from "./helpers";
|
|
14
14
|
|
|
15
15
|
const PROVIDER_ID = "ssh-json";
|
package/src/discovery/vscode.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Supports MCP server discovery from `mcp.json` with nested `mcp.servers` structure.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { readFile } from "
|
|
9
|
-
import { registerProvider } from "
|
|
10
|
-
import { type MCPServer, mcpCapability } from "
|
|
11
|
-
import type { LoadContext, LoadResult } from "
|
|
8
|
+
import { readFile } from "$c/capability/fs";
|
|
9
|
+
import { registerProvider } from "$c/capability/index";
|
|
10
|
+
import { type MCPServer, mcpCapability } from "$c/capability/mcp";
|
|
11
|
+
import type { LoadContext, LoadResult } from "$c/capability/types";
|
|
12
12
|
import { createSourceMeta, expandEnvVarsDeep, getProjectPath, parseJSON } from "./helpers";
|
|
13
13
|
|
|
14
14
|
const PROVIDER_ID = "vscode";
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
* - Legacy .windsurfrules file
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import { readFile } from "
|
|
15
|
-
import { registerProvider } from "
|
|
16
|
-
import { type MCPServer, mcpCapability } from "
|
|
17
|
-
import { type Rule, ruleCapability } from "
|
|
18
|
-
import type { LoadContext, LoadResult } from "
|
|
19
|
-
import { parseFrontmatter } from "
|
|
14
|
+
import { readFile } from "$c/capability/fs";
|
|
15
|
+
import { registerProvider } from "$c/capability/index";
|
|
16
|
+
import { type MCPServer, mcpCapability } from "$c/capability/mcp";
|
|
17
|
+
import { type Rule, ruleCapability } from "$c/capability/rule";
|
|
18
|
+
import type { LoadContext, LoadResult } from "$c/capability/types";
|
|
19
|
+
import { parseFrontmatter } from "$c/utils/frontmatter";
|
|
20
20
|
import {
|
|
21
21
|
createSourceMeta,
|
|
22
22
|
expandEnvVarsDeep,
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
8
|
-
import type { CustomTool } from "
|
|
8
|
+
import type { CustomTool } from "$c/extensibility/custom-tools/types";
|
|
9
|
+
import { callExaTool, findApiKey, formatSearchResults, isSearchResponse } from "./mcp-client";
|
|
9
10
|
import type { ExaRenderDetails } from "./types";
|
|
10
11
|
|
|
11
12
|
/** exa_company - Company research */
|
|
@@ -25,8 +26,6 @@ Parameters:
|
|
|
25
26
|
|
|
26
27
|
async execute(_toolCallId, params, _onUpdate, _ctx, _signal) {
|
|
27
28
|
try {
|
|
28
|
-
const { findApiKey, callExaTool, formatSearchResults, isSearchResponse } = await import("./mcp-client.js");
|
|
29
|
-
|
|
30
29
|
const apiKey = await findApiKey();
|
|
31
30
|
if (!apiKey) {
|
|
32
31
|
return {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* - 14 websets tools (CRUD, items, search, enrichment, monitor)
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
12
|
+
import type { ExaSettings } from "$c/config/settings-manager";
|
|
13
|
+
import type { CustomTool } from "$c/extensibility/custom-tools/types";
|
|
14
14
|
import { companyTool } from "./company";
|
|
15
15
|
import { linkedinTool } from "./linkedin";
|
|
16
16
|
import { researcherTools } from "./researcher";
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
8
|
-
import type { CustomTool } from "
|
|
8
|
+
import type { CustomTool } from "$c/extensibility/custom-tools/types";
|
|
9
|
+
import { callExaTool, findApiKey, formatSearchResults, isSearchResponse } from "./mcp-client";
|
|
9
10
|
import type { ExaRenderDetails } from "./types";
|
|
10
11
|
|
|
11
12
|
/** exa_linkedin - LinkedIn search */
|
|
@@ -25,8 +26,6 @@ Parameters:
|
|
|
25
26
|
|
|
26
27
|
async execute(_toolCallId, params, _onUpdate, _ctx, _signal) {
|
|
27
28
|
try {
|
|
28
|
-
const { findApiKey, callExaTool, formatSearchResults, isSearchResponse } = await import("./mcp-client.js");
|
|
29
|
-
|
|
30
29
|
const apiKey = await findApiKey();
|
|
31
30
|
if (!apiKey) {
|
|
32
31
|
return {
|
|
@@ -8,8 +8,8 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
import { logger } from "@oh-my-pi/pi-utils";
|
|
10
10
|
import type { TSchema } from "@sinclair/typebox";
|
|
11
|
-
import type { CustomTool, CustomToolResult } from "
|
|
12
|
-
import { callMCP } from "
|
|
11
|
+
import type { CustomTool, CustomToolResult } from "$c/extensibility/custom-tools/types";
|
|
12
|
+
import { callMCP } from "$c/mcp/json-rpc";
|
|
13
13
|
import type {
|
|
14
14
|
ExaRenderDetails,
|
|
15
15
|
ExaSearchResponse,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import type { Component } from "@oh-my-pi/pi-tui";
|
|
8
8
|
import { Text } from "@oh-my-pi/pi-tui";
|
|
9
9
|
import { logger } from "@oh-my-pi/pi-utils";
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
10
|
+
import type { RenderResultOptions } from "$c/extensibility/custom-tools/types";
|
|
11
|
+
import type { Theme } from "$c/modes/theme/theme";
|
|
12
12
|
import {
|
|
13
13
|
formatCount,
|
|
14
14
|
formatExpandHint,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
PREVIEW_LIMITS,
|
|
20
20
|
TRUNCATE_LENGTHS,
|
|
21
21
|
truncate,
|
|
22
|
-
} from "
|
|
22
|
+
} from "$c/tools/render-utils";
|
|
23
23
|
import type { ExaRenderDetails } from "./types";
|
|
24
24
|
|
|
25
25
|
const COLLAPSED_PREVIEW_LINES = PREVIEW_LIMITS.COLLAPSED_LINES;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
8
|
-
import type { CustomTool } from "
|
|
8
|
+
import type { CustomTool } from "$c/extensibility/custom-tools/types";
|
|
9
9
|
import { callExaTool, findApiKey } from "./mcp-client";
|
|
10
10
|
import type { ExaRenderDetails } from "./types";
|
|
11
11
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import { StringEnum } from "@oh-my-pi/pi-ai";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
9
|
-
import type { CustomTool } from "
|
|
9
|
+
import type { CustomTool } from "$c/extensibility/custom-tools/types";
|
|
10
|
+
import { callExaTool, findApiKey, formatSearchResults, isSearchResponse } from "./mcp-client";
|
|
10
11
|
import type { ExaRenderDetails } from "./types";
|
|
11
12
|
|
|
12
13
|
/** exa_search - Basic neural/keyword search */
|
|
@@ -82,9 +83,6 @@ Parameters:
|
|
|
82
83
|
|
|
83
84
|
async execute(_toolCallId, params, _onUpdate, _ctx, _signal) {
|
|
84
85
|
try {
|
|
85
|
-
// Dynamic imports to avoid circular dependencies
|
|
86
|
-
const { findApiKey, callExaTool, formatSearchResults, isSearchResponse } = await import("./mcp-client.js");
|
|
87
|
-
|
|
88
86
|
const apiKey = await findApiKey();
|
|
89
87
|
if (!apiKey) {
|
|
90
88
|
return {
|
|
@@ -179,8 +177,6 @@ Similar parameters to exa_search, optimized for research depth.`,
|
|
|
179
177
|
|
|
180
178
|
async execute(_toolCallId, params, _onUpdate, _ctx, _signal) {
|
|
181
179
|
try {
|
|
182
|
-
const { findApiKey, callExaTool, formatSearchResults, isSearchResponse } = await import("./mcp-client.js");
|
|
183
|
-
|
|
184
180
|
const apiKey = await findApiKey();
|
|
185
181
|
if (!apiKey) {
|
|
186
182
|
return {
|
|
@@ -236,8 +232,6 @@ Parameters:
|
|
|
236
232
|
|
|
237
233
|
async execute(_toolCallId, params, _onUpdate, _ctx, _signal) {
|
|
238
234
|
try {
|
|
239
|
-
const { findApiKey, callExaTool, formatSearchResults, isSearchResponse } = await import("./mcp-client.js");
|
|
240
|
-
|
|
241
235
|
const apiKey = await findApiKey();
|
|
242
236
|
if (!apiKey) {
|
|
243
237
|
return {
|
|
@@ -298,8 +292,6 @@ Parameters:
|
|
|
298
292
|
|
|
299
293
|
async execute(_toolCallId, params, _onUpdate, _ctx, _signal) {
|
|
300
294
|
try {
|
|
301
|
-
const { findApiKey, callExaTool, formatSearchResults, isSearchResponse } = await import("./mcp-client.js");
|
|
302
|
-
|
|
303
295
|
const apiKey = await findApiKey();
|
|
304
296
|
if (!apiKey) {
|
|
305
297
|
return {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
8
|
-
import type { CustomTool } from "
|
|
8
|
+
import type { CustomTool } from "$c/extensibility/custom-tools/types";
|
|
9
9
|
import { callWebsetsTool, findApiKey } from "./mcp-client";
|
|
10
10
|
import type { ExaRenderDetails } from "./types";
|
|
11
11
|
|
|
@@ -5,15 +5,20 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { cspawn, Exception, ptree } from "@oh-my-pi/pi-utils";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { OutputSink } from "$c/session/streaming-output";
|
|
9
|
+
import { getShellConfig } from "$c/utils/shell";
|
|
10
|
+
import { getOrCreateSnapshot, getSnapshotSourceCommand } from "$c/utils/shell-snapshot";
|
|
11
11
|
|
|
12
12
|
export interface BashExecutorOptions {
|
|
13
13
|
cwd?: string;
|
|
14
14
|
timeout?: number;
|
|
15
15
|
onChunk?: (chunk: string) => void;
|
|
16
16
|
signal?: AbortSignal;
|
|
17
|
+
/** Additional environment variables to inject */
|
|
18
|
+
env?: Record<string, string>;
|
|
19
|
+
/** Artifact path/id for full output storage */
|
|
20
|
+
artifactPath?: string;
|
|
21
|
+
artifactId?: string;
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
export interface BashResult {
|
|
@@ -21,23 +26,34 @@ export interface BashResult {
|
|
|
21
26
|
exitCode: number | undefined;
|
|
22
27
|
cancelled: boolean;
|
|
23
28
|
truncated: boolean;
|
|
24
|
-
|
|
29
|
+
totalLines: number;
|
|
30
|
+
totalBytes: number;
|
|
31
|
+
outputLines: number;
|
|
32
|
+
outputBytes: number;
|
|
33
|
+
artifactId?: string;
|
|
25
34
|
}
|
|
26
35
|
|
|
27
36
|
export async function executeBash(command: string, options?: BashExecutorOptions): Promise<BashResult> {
|
|
28
37
|
const { shell, args, env, prefix } = await getShellConfig();
|
|
29
38
|
|
|
39
|
+
// Merge additional env vars if provided
|
|
40
|
+
const finalEnv = options?.env ? { ...env, ...options.env } : env;
|
|
41
|
+
|
|
30
42
|
const snapshotPath = await getOrCreateSnapshot(shell, env);
|
|
31
43
|
const snapshotPrefix = getSnapshotSourceCommand(snapshotPath);
|
|
32
44
|
|
|
33
45
|
const prefixedCommand = prefix ? `${prefix} ${command}` : command;
|
|
34
46
|
const finalCommand = `${snapshotPrefix}${prefixedCommand}`;
|
|
35
47
|
|
|
36
|
-
const sink = new OutputSink({
|
|
48
|
+
const sink = new OutputSink({
|
|
49
|
+
onChunk: options?.onChunk,
|
|
50
|
+
artifactPath: options?.artifactPath,
|
|
51
|
+
artifactId: options?.artifactId,
|
|
52
|
+
});
|
|
37
53
|
|
|
38
54
|
const child = cspawn([shell, ...args, finalCommand], {
|
|
39
55
|
cwd: options?.cwd,
|
|
40
|
-
env,
|
|
56
|
+
env: finalEnv,
|
|
41
57
|
signal: options?.signal,
|
|
42
58
|
timeout: options?.timeout,
|
|
43
59
|
});
|
|
@@ -56,7 +72,7 @@ export async function executeBash(command: string, options?: BashExecutorOptions
|
|
|
56
72
|
cancelled: false,
|
|
57
73
|
...(await sink.dump()),
|
|
58
74
|
};
|
|
59
|
-
} catch (err) {
|
|
75
|
+
} catch (err: unknown) {
|
|
60
76
|
// Exception covers NonZeroExitError, AbortError, TimeoutError
|
|
61
77
|
if (err instanceof Exception) {
|
|
62
78
|
if (err.aborted) {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { join } from "node:path";
|
|
10
|
-
import { getAgentDir } from "
|
|
10
|
+
import { getAgentDir } from "$c/config";
|
|
11
11
|
|
|
12
12
|
export interface CustomShareResult {
|
|
13
13
|
/** URL to display/open (optional - script may handle everything itself) */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { existsSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { basename } from "node:path";
|
|
3
3
|
import type { AgentState } from "@oh-my-pi/pi-agent-core";
|
|
4
|
-
import { APP_NAME } from "
|
|
5
|
-
import { getResolvedThemeColors, getThemeExportColors } from "
|
|
6
|
-
import { SessionManager } from "
|
|
4
|
+
import { APP_NAME } from "$c/config";
|
|
5
|
+
import { getResolvedThemeColors, getThemeExportColors } from "$c/modes/theme/theme";
|
|
6
|
+
import { SessionManager } from "$c/session/session-manager";
|
|
7
7
|
|
|
8
8
|
// Pre-generated template (created by scripts/generate-template.ts at publish time)
|
|
9
9
|
import { TEMPLATE } from "./template.generated";
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { logger } from "@oh-my-pi/pi-utils";
|
|
10
|
-
import type { Rule } from "
|
|
11
|
-
import type { TtsrSettings } from "
|
|
10
|
+
import type { Rule } from "$c/capability/rule";
|
|
11
|
+
import type { TtsrSettings } from "$c/config/settings-manager";
|
|
12
12
|
|
|
13
13
|
interface TtsrEntry {
|
|
14
14
|
rule: Rule;
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
* multiple reviewer agents based on diff weight and locality.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import
|
|
16
|
-
import type {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
15
|
+
import { renderPromptTemplate } from "$c/config/prompt-templates";
|
|
16
|
+
import type { CustomCommand, CustomCommandAPI } from "$c/extensibility/custom-commands/types";
|
|
17
|
+
import type { HookCommandContext } from "$c/extensibility/hooks/types";
|
|
18
|
+
import reviewRequestTemplate from "$c/prompts/review-request.md" with { type: "text" };
|
|
19
19
|
|
|
20
20
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
21
21
|
// Types
|
|
@@ -9,9 +9,9 @@ import { type Dirent, existsSync, readdirSync } from "node:fs";
|
|
|
9
9
|
import * as path from "node:path";
|
|
10
10
|
import { logger } from "@oh-my-pi/pi-utils";
|
|
11
11
|
import * as typebox from "@sinclair/typebox";
|
|
12
|
-
import { getAgentDir, getConfigDirs } from "
|
|
13
|
-
import
|
|
14
|
-
import
|
|
12
|
+
import { getAgentDir, getConfigDirs } from "$c/config";
|
|
13
|
+
import { execCommand } from "$c/exec/exec";
|
|
14
|
+
import * as piCodingAgent from "$c/index";
|
|
15
15
|
import { ReviewCommand } from "./bundled/review";
|
|
16
16
|
import type {
|
|
17
17
|
CustomCommand,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* arbitrary logic with full access to the hook context.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { ExecOptions, ExecResult, HookCommandContext } from "
|
|
9
|
+
import type { ExecOptions, ExecResult, HookCommandContext } from "$c/extensibility/hooks/types";
|
|
10
10
|
|
|
11
11
|
// Re-export for custom commands to use
|
|
12
12
|
export type { ExecOptions, ExecResult, HookCommandContext };
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
import * as path from "node:path";
|
|
9
9
|
import { logger } from "@oh-my-pi/pi-utils";
|
|
10
10
|
import * as typebox from "@sinclair/typebox";
|
|
11
|
-
import { toolCapability } from "
|
|
12
|
-
import { type CustomTool, loadCapability } from "
|
|
13
|
-
import { expandPath } from "
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import type {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
11
|
+
import { toolCapability } from "$c/capability/tool";
|
|
12
|
+
import { type CustomTool, loadCapability } from "$c/discovery";
|
|
13
|
+
import { expandPath } from "$c/discovery/helpers";
|
|
14
|
+
import type { ExecOptions } from "$c/exec/exec";
|
|
15
|
+
import { execCommand } from "$c/exec/exec";
|
|
16
|
+
import type { HookUIContext } from "$c/extensibility/hooks/types";
|
|
17
|
+
import { getAllPluginToolPaths } from "$c/extensibility/plugins/loader";
|
|
18
|
+
import * as piCodingAgent from "$c/index";
|
|
19
|
+
import { theme } from "$c/modes/theme/theme";
|
|
20
20
|
import type { CustomToolAPI, CustomToolFactory, LoadedCustomTool, ToolLoadError } from "./types";
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -9,11 +9,11 @@ import type { AgentToolResult, AgentToolUpdateCallback } from "@oh-my-pi/pi-agen
|
|
|
9
9
|
import type { Model } from "@oh-my-pi/pi-ai";
|
|
10
10
|
import type { Component } from "@oh-my-pi/pi-tui";
|
|
11
11
|
import type { Static, TSchema } from "@sinclair/typebox";
|
|
12
|
-
import type {
|
|
13
|
-
import type { ExecOptions, ExecResult } from "
|
|
14
|
-
import type { HookUIContext } from "
|
|
15
|
-
import type {
|
|
16
|
-
import type { ReadonlySessionManager } from "
|
|
12
|
+
import type { ModelRegistry } from "$c/config/model-registry";
|
|
13
|
+
import type { ExecOptions, ExecResult } from "$c/exec/exec";
|
|
14
|
+
import type { HookUIContext } from "$c/extensibility/hooks/types";
|
|
15
|
+
import type { Theme } from "$c/modes/theme/theme";
|
|
16
|
+
import type { ReadonlySessionManager } from "$c/session/session-manager";
|
|
17
17
|
|
|
18
18
|
/** Alias for clarity */
|
|
19
19
|
export type CustomToolUIContext = HookUIContext;
|
|
@@ -22,7 +22,7 @@ export type CustomToolUIContext = HookUIContext;
|
|
|
22
22
|
export type { AgentToolResult, AgentToolUpdateCallback };
|
|
23
23
|
|
|
24
24
|
// Re-export for backward compatibility
|
|
25
|
-
export type { ExecOptions, ExecResult } from "
|
|
25
|
+
export type { ExecOptions, ExecResult } from "$c/exec/exec";
|
|
26
26
|
|
|
27
27
|
/** API passed to custom tool factory (stable across session changes) */
|
|
28
28
|
export interface CustomToolAPI {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { AgentTool, AgentToolResult, AgentToolUpdateCallback, RenderResultOptions } from "@oh-my-pi/pi-agent-core";
|
|
6
6
|
import type { Component } from "@oh-my-pi/pi-tui";
|
|
7
7
|
import type { Static, TSchema } from "@sinclair/typebox";
|
|
8
|
-
import type { Theme } from "
|
|
8
|
+
import type { Theme } from "$c/modes/theme/theme";
|
|
9
9
|
import type { CustomTool, CustomToolContext, LoadedCustomTool } from "./types";
|
|
10
10
|
|
|
11
11
|
export class CustomToolAdapter<TParams extends TSchema = TSchema, TDetails = any, TTheme extends Theme = Theme>
|
|
@@ -10,14 +10,14 @@ import type { KeyId } from "@oh-my-pi/pi-tui";
|
|
|
10
10
|
import { logger } from "@oh-my-pi/pi-utils";
|
|
11
11
|
import type { TSchema } from "@sinclair/typebox";
|
|
12
12
|
import * as TypeBox from "@sinclair/typebox";
|
|
13
|
-
import { type ExtensionModule, extensionModuleCapability } from "
|
|
14
|
-
import { loadCapability } from "
|
|
15
|
-
import { expandPath, getExtensionNameFromPath } from "
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
13
|
+
import { type ExtensionModule, extensionModuleCapability } from "$c/capability/extension-module";
|
|
14
|
+
import { loadCapability } from "$c/discovery";
|
|
15
|
+
import { expandPath, getExtensionNameFromPath } from "$c/discovery/helpers";
|
|
16
|
+
import type { ExecOptions } from "$c/exec/exec";
|
|
17
|
+
import { execCommand } from "$c/exec/exec";
|
|
18
|
+
import * as piCodingAgent from "$c/index";
|
|
19
|
+
import type { CustomMessage } from "$c/session/messages";
|
|
20
|
+
import { EventBus } from "$c/utils/event-bus";
|
|
21
21
|
import type {
|
|
22
22
|
Extension,
|
|
23
23
|
ExtensionAPI,
|
|
@@ -6,9 +6,9 @@ import type { AgentMessage } from "@oh-my-pi/pi-agent-core";
|
|
|
6
6
|
import type { ImageContent, Model } from "@oh-my-pi/pi-ai";
|
|
7
7
|
import type { KeyId } from "@oh-my-pi/pi-tui";
|
|
8
8
|
import { logger } from "@oh-my-pi/pi-utils";
|
|
9
|
-
import
|
|
10
|
-
import type
|
|
11
|
-
import type { SessionManager } from "
|
|
9
|
+
import type { ModelRegistry } from "$c/config/model-registry";
|
|
10
|
+
import { type Theme, theme } from "$c/modes/theme/theme";
|
|
11
|
+
import type { SessionManager } from "$c/session/session-manager";
|
|
12
12
|
import type {
|
|
13
13
|
BeforeAgentStartEvent,
|
|
14
14
|
BeforeAgentStartEventResult,
|
|
@@ -12,28 +12,28 @@ import type { AgentMessage, AgentToolResult, AgentToolUpdateCallback, ThinkingLe
|
|
|
12
12
|
import type { ImageContent, Model, TextContent, ToolResultMessage } from "@oh-my-pi/pi-ai";
|
|
13
13
|
import type { AutocompleteItem, Component, EditorComponent, EditorTheme, KeyId, TUI } from "@oh-my-pi/pi-tui";
|
|
14
14
|
import type { Static, TSchema } from "@sinclair/typebox";
|
|
15
|
-
import type
|
|
16
|
-
import type {
|
|
17
|
-
import type { BashResult } from "
|
|
18
|
-
import type {
|
|
19
|
-
import type
|
|
20
|
-
import type {
|
|
21
|
-
import type {
|
|
22
|
-
import type {
|
|
23
|
-
import type {
|
|
24
|
-
import type {
|
|
15
|
+
import type { KeybindingsManager } from "$c/config/keybindings";
|
|
16
|
+
import type { ModelRegistry } from "$c/config/model-registry";
|
|
17
|
+
import type { BashResult } from "$c/exec/bash-executor";
|
|
18
|
+
import type { ExecOptions, ExecResult } from "$c/exec/exec";
|
|
19
|
+
import type * as piCodingAgent from "$c/index";
|
|
20
|
+
import type { PythonResult } from "$c/ipy/executor";
|
|
21
|
+
import type { Theme } from "$c/modes/theme/theme";
|
|
22
|
+
import type { EditToolDetails } from "$c/patch";
|
|
23
|
+
import type { CompactionPreparation, CompactionResult } from "$c/session/compaction";
|
|
24
|
+
import type { CustomMessage } from "$c/session/messages";
|
|
25
25
|
import type {
|
|
26
26
|
BranchSummaryEntry,
|
|
27
27
|
CompactionEntry,
|
|
28
28
|
ReadonlySessionManager,
|
|
29
29
|
SessionEntry,
|
|
30
30
|
SessionManager,
|
|
31
|
-
} from "
|
|
32
|
-
import type { BashToolDetails, FindToolDetails, GrepToolDetails, LsToolDetails, ReadToolDetails } from "
|
|
33
|
-
import type {
|
|
31
|
+
} from "$c/session/session-manager";
|
|
32
|
+
import type { BashToolDetails, FindToolDetails, GrepToolDetails, LsToolDetails, ReadToolDetails } from "$c/tools";
|
|
33
|
+
import type { EventBus } from "$c/utils/event-bus";
|
|
34
34
|
|
|
35
|
-
export type {
|
|
36
|
-
export type {
|
|
35
|
+
export type { AppAction, KeybindingsManager } from "$c/config/keybindings";
|
|
36
|
+
export type { ExecOptions, ExecResult } from "$c/exec/exec";
|
|
37
37
|
export type { AgentToolResult, AgentToolUpdateCallback };
|
|
38
38
|
|
|
39
39
|
// ============================================================================
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { AgentTool, AgentToolContext, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core";
|
|
6
6
|
import type { ImageContent, TextContent } from "@oh-my-pi/pi-ai";
|
|
7
7
|
import type { Static, TSchema } from "@sinclair/typebox";
|
|
8
|
-
import type { Theme } from "
|
|
8
|
+
import type { Theme } from "$c/modes/theme/theme";
|
|
9
9
|
import type { ExtensionRunner } from "./runner";
|
|
10
10
|
import type { RegisteredTool, ToolCallEventResult, ToolResultEventResult } from "./types";
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// biome-ignore assist/source/organizeImports: biome is not smart
|
|
2
|
-
export type { ReadonlySessionManager, UsageStatistics } from "
|
|
2
|
+
export type { ReadonlySessionManager, UsageStatistics } from "$c/session/session-manager";
|
|
3
3
|
export {
|
|
4
4
|
discoverAndLoadHooks,
|
|
5
5
|
loadHooks,
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import * as path from "node:path";
|
|
6
6
|
import { logger } from "@oh-my-pi/pi-utils";
|
|
7
7
|
import * as typebox from "@sinclair/typebox";
|
|
8
|
-
import { hookCapability } from "
|
|
9
|
-
import type { Hook } from "
|
|
10
|
-
import { loadCapability } from "
|
|
11
|
-
import { expandPath } from "
|
|
12
|
-
import * as piCodingAgent from "
|
|
13
|
-
import type { HookMessage } from "
|
|
14
|
-
import type { SessionManager } from "
|
|
8
|
+
import { hookCapability } from "$c/capability/hook";
|
|
9
|
+
import type { Hook } from "$c/discovery";
|
|
10
|
+
import { loadCapability } from "$c/discovery";
|
|
11
|
+
import { expandPath } from "$c/discovery/helpers";
|
|
12
|
+
import * as piCodingAgent from "$c/index";
|
|
13
|
+
import type { HookMessage } from "$c/session/messages";
|
|
14
|
+
import type { SessionManager } from "$c/session/session-manager";
|
|
15
15
|
import { execCommand } from "./runner";
|
|
16
16
|
import type { ExecOptions, HookAPI, HookFactory, HookMessageRenderer, RegisteredCommand } from "./types";
|
|
17
17
|
|