@jinion/core 0.2.1 → 0.4.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/dist/agent/agent.d.ts +6 -0
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +16 -1
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/claude/backend.d.ts +8 -0
- package/dist/agent/claude/backend.d.ts.map +1 -1
- package/dist/agent/claude/backend.js +19 -5
- package/dist/agent/claude/backend.js.map +1 -1
- package/dist/agent/claude/commands.d.ts +2 -0
- package/dist/agent/claude/commands.d.ts.map +1 -1
- package/dist/agent/claude/events.js +1 -1
- package/dist/agent/claude/events.js.map +1 -1
- package/dist/agent/claude/guard.d.ts.map +1 -1
- package/dist/agent/claude/guard.js +2 -1
- package/dist/agent/claude/guard.js.map +1 -1
- package/dist/agent/claude/jinion-tools.d.ts +9 -1
- package/dist/agent/claude/jinion-tools.d.ts.map +1 -1
- package/dist/agent/claude/jinion-tools.js +14 -2
- package/dist/agent/claude/jinion-tools.js.map +1 -1
- package/dist/agent/claude/mcp.d.ts +2 -1
- package/dist/agent/claude/mcp.d.ts.map +1 -1
- package/dist/agent/claude/mcp.js +38 -1
- package/dist/agent/claude/mcp.js.map +1 -1
- package/dist/agent/claude/options.d.ts +9 -1
- package/dist/agent/claude/options.d.ts.map +1 -1
- package/dist/agent/claude/options.js +5 -3
- package/dist/agent/claude/options.js.map +1 -1
- package/dist/agent/claude/paths.d.ts +0 -3
- package/dist/agent/claude/paths.d.ts.map +1 -1
- package/dist/agent/claude/paths.js +1 -7
- package/dist/agent/claude/paths.js.map +1 -1
- package/dist/agent/claude/permissions.js +1 -1
- package/dist/agent/claude/permissions.js.map +1 -1
- package/dist/agent/claude/plugins.d.ts +6 -0
- package/dist/agent/claude/plugins.d.ts.map +1 -1
- package/dist/agent/claude/plugins.js +11 -5
- package/dist/agent/claude/plugins.js.map +1 -1
- package/dist/agent/claude/prompt.d.ts +2 -1
- package/dist/agent/claude/prompt.d.ts.map +1 -1
- package/dist/agent/claude/prompt.js +10 -5
- package/dist/agent/claude/prompt.js.map +1 -1
- package/dist/agent/claude/review.d.ts +4 -1
- package/dist/agent/claude/review.d.ts.map +1 -1
- package/dist/agent/claude/review.js +5 -2
- package/dist/agent/claude/review.js.map +1 -1
- package/dist/agent/claude/session.d.ts +7 -0
- package/dist/agent/claude/session.d.ts.map +1 -1
- package/dist/agent/claude/session.js +6 -1
- package/dist/agent/claude/session.js.map +1 -1
- package/dist/agent/claude/setup-info.d.ts +21 -0
- package/dist/agent/claude/setup-info.d.ts.map +1 -0
- package/dist/agent/claude/setup-info.js +18 -0
- package/dist/agent/claude/setup-info.js.map +1 -0
- package/dist/agent/claude/setup.d.ts +12 -0
- package/dist/agent/claude/setup.d.ts.map +1 -0
- package/dist/agent/claude/setup.js +37 -0
- package/dist/agent/claude/setup.js.map +1 -0
- package/dist/agent/claude/shell.d.ts +0 -1
- package/dist/agent/claude/shell.d.ts.map +1 -1
- package/dist/agent/claude/shell.js +1 -59
- package/dist/agent/claude/shell.js.map +1 -1
- package/dist/agent/claude/skills.d.ts +8 -0
- package/dist/agent/claude/skills.d.ts.map +1 -0
- package/dist/agent/claude/skills.js +32 -0
- package/dist/agent/claude/skills.js.map +1 -0
- package/dist/agent/claude/tool-calls.d.ts.map +1 -1
- package/dist/agent/claude/tool-calls.js +11 -2
- package/dist/agent/claude/tool-calls.js.map +1 -1
- package/dist/agent/codex/backend.d.ts +7 -1
- package/dist/agent/codex/backend.d.ts.map +1 -1
- package/dist/agent/codex/backend.js +16 -3
- package/dist/agent/codex/backend.js.map +1 -1
- package/dist/agent/codex/events.d.ts.map +1 -1
- package/dist/agent/codex/events.js +15 -1
- package/dist/agent/codex/events.js.map +1 -1
- package/dist/agent/codex/jinion-tools.d.ts +38 -4
- package/dist/agent/codex/jinion-tools.d.ts.map +1 -1
- package/dist/agent/codex/jinion-tools.js +57 -10
- package/dist/agent/codex/jinion-tools.js.map +1 -1
- package/dist/agent/codex/mcp.d.ts.map +1 -1
- package/dist/agent/codex/mcp.js +4 -0
- package/dist/agent/codex/mcp.js.map +1 -1
- package/dist/agent/codex/rewind.js +1 -47
- package/dist/agent/codex/rewind.js.map +1 -1
- package/dist/agent/codex/session.d.ts +9 -2
- package/dist/agent/codex/session.d.ts.map +1 -1
- package/dist/agent/codex/session.js +21 -7
- package/dist/agent/codex/session.js.map +1 -1
- package/dist/agent/demo/agent.d.ts +6 -0
- package/dist/agent/demo/agent.d.ts.map +1 -1
- package/dist/agent/demo/agent.js +7 -1
- package/dist/agent/demo/agent.js.map +1 -1
- package/dist/agent/demo/mcp.d.ts +17 -0
- package/dist/agent/demo/mcp.d.ts.map +1 -0
- package/dist/agent/demo/mcp.js +155 -0
- package/dist/agent/demo/mcp.js.map +1 -0
- package/dist/agent/demo/scenarios/pricing-card.d.ts +3 -0
- package/dist/agent/demo/scenarios/pricing-card.d.ts.map +1 -0
- package/dist/agent/demo/scenarios/pricing-card.js +43 -0
- package/dist/agent/demo/scenarios/pricing-card.js.map +1 -0
- package/dist/agent/demo/script.d.ts +10 -0
- package/dist/agent/demo/script.d.ts.map +1 -1
- package/dist/agent/demo/skills.d.ts +29 -0
- package/dist/agent/demo/skills.d.ts.map +1 -0
- package/dist/agent/demo/skills.js +85 -0
- package/dist/agent/demo/skills.js.map +1 -0
- package/dist/agent/demo/tasks.d.ts +5 -0
- package/dist/agent/demo/tasks.d.ts.map +1 -1
- package/dist/agent/events.d.ts +5 -0
- package/dist/agent/events.d.ts.map +1 -1
- package/dist/agent/events.js +2 -0
- package/dist/agent/events.js.map +1 -1
- package/dist/agent/mcp.d.ts +11 -0
- package/dist/agent/mcp.d.ts.map +1 -1
- package/dist/agent/mcp.js +4 -0
- package/dist/agent/mcp.js.map +1 -1
- package/dist/agent/patches.d.ts +5 -0
- package/dist/agent/patches.d.ts.map +1 -1
- package/dist/agent/patches.js +49 -0
- package/dist/agent/patches.js.map +1 -1
- package/dist/agent/review-tools.d.ts +15 -0
- package/dist/agent/review-tools.d.ts.map +1 -0
- package/dist/agent/review-tools.js +13 -0
- package/dist/agent/review-tools.js.map +1 -0
- package/dist/agent/review.d.ts +18 -6
- package/dist/agent/review.d.ts.map +1 -1
- package/dist/agent/review.js +52 -17
- package/dist/agent/review.js.map +1 -1
- package/dist/agent/skills.d.ts +36 -0
- package/dist/agent/skills.d.ts.map +1 -0
- package/dist/agent/skills.js +18 -0
- package/dist/agent/skills.js.map +1 -0
- package/dist/api/client.d.ts +25 -1
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +14 -3
- package/dist/api/client.js.map +1 -1
- package/dist/api/connection.d.ts +5 -0
- package/dist/api/connection.d.ts.map +1 -1
- package/dist/api/connection.js +10 -0
- package/dist/api/connection.js.map +1 -1
- package/dist/api/fields.d.ts +12 -1
- package/dist/api/fields.d.ts.map +1 -1
- package/dist/api/fields.js +4 -2
- package/dist/api/fields.js.map +1 -1
- package/dist/api/json-schema.d.ts +729 -86
- package/dist/api/json-schema.d.ts.map +1 -1
- package/dist/api/json-schema.js +2 -1
- package/dist/api/json-schema.js.map +1 -1
- package/dist/api/methods/accounts.d.ts.map +1 -1
- package/dist/api/methods/accounts.js +1 -2
- package/dist/api/methods/accounts.js.map +1 -1
- package/dist/api/methods/app.d.ts.map +1 -1
- package/dist/api/methods/app.js +19 -5
- package/dist/api/methods/app.js.map +1 -1
- package/dist/api/methods/files.d.ts +3 -1
- package/dist/api/methods/files.d.ts.map +1 -1
- package/dist/api/methods/files.js +75 -2
- package/dist/api/methods/files.js.map +1 -1
- package/dist/api/methods/git.d.ts.map +1 -1
- package/dist/api/methods/git.js +54 -6
- package/dist/api/methods/git.js.map +1 -1
- package/dist/api/methods/lsp.d.ts +7 -0
- package/dist/api/methods/lsp.d.ts.map +1 -0
- package/dist/api/methods/lsp.js +68 -0
- package/dist/api/methods/lsp.js.map +1 -0
- package/dist/api/methods/map.d.ts +4 -0
- package/dist/api/methods/map.d.ts.map +1 -0
- package/dist/api/methods/map.js +13 -0
- package/dist/api/methods/map.js.map +1 -0
- package/dist/api/methods/preview.d.ts +4 -1
- package/dist/api/methods/preview.d.ts.map +1 -1
- package/dist/api/methods/preview.js +19 -3
- package/dist/api/methods/preview.js.map +1 -1
- package/dist/api/methods/skills.d.ts +4 -0
- package/dist/api/methods/skills.d.ts.map +1 -0
- package/dist/api/methods/skills.js +21 -0
- package/dist/api/methods/skills.js.map +1 -0
- package/dist/api/methods/terminals.d.ts.map +1 -1
- package/dist/api/methods/terminals.js +7 -1
- package/dist/api/methods/terminals.js.map +1 -1
- package/dist/api/protocol.d.ts +963 -7
- package/dist/api/protocol.d.ts.map +1 -1
- package/dist/api/protocol.js +155 -8
- package/dist/api/protocol.js.map +1 -1
- package/dist/api/schemas.d.ts +27 -0
- package/dist/api/schemas.d.ts.map +1 -1
- package/dist/api/schemas.js +6 -0
- package/dist/api/schemas.js.map +1 -1
- package/dist/api/screen.d.ts +2 -0
- package/dist/api/screen.d.ts.map +1 -1
- package/dist/api/screen.js +3 -0
- package/dist/api/screen.js.map +1 -1
- package/dist/api/server.d.ts +2 -0
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +13 -0
- package/dist/api/server.js.map +1 -1
- package/dist/commands/builtin.d.ts.map +1 -1
- package/dist/commands/builtin.js +5 -1
- package/dist/commands/builtin.js.map +1 -1
- package/dist/commands/conversation.d.ts.map +1 -1
- package/dist/commands/conversation.js +2 -0
- package/dist/commands/conversation.js.map +1 -1
- package/dist/commands/feedback.d.ts.map +1 -1
- package/dist/commands/feedback.js +1 -0
- package/dist/commands/feedback.js.map +1 -1
- package/dist/commands/notifications.d.ts.map +1 -1
- package/dist/commands/notifications.js +5 -3
- package/dist/commands/notifications.js.map +1 -1
- package/dist/commands/registry.d.ts +3 -0
- package/dist/commands/registry.d.ts.map +1 -1
- package/dist/commands/registry.js +14 -0
- package/dist/commands/registry.js.map +1 -1
- package/dist/commands/skill.d.ts +5 -0
- package/dist/commands/skill.d.ts.map +1 -0
- package/dist/commands/skill.js +30 -0
- package/dist/commands/skill.js.map +1 -0
- package/dist/commands/views.d.ts +2 -0
- package/dist/commands/views.d.ts.map +1 -1
- package/dist/commands/views.js +15 -1
- package/dist/commands/views.js.map +1 -1
- package/dist/controllers/accounts.d.ts +5 -2
- package/dist/controllers/accounts.d.ts.map +1 -1
- package/dist/controllers/accounts.js +11 -8
- package/dist/controllers/accounts.js.map +1 -1
- package/dist/controllers/context.d.ts +6 -0
- package/dist/controllers/context.d.ts.map +1 -1
- package/dist/controllers/context.js +3 -0
- package/dist/controllers/context.js.map +1 -1
- package/dist/controllers/feedback.d.ts +1 -1
- package/dist/controllers/feedback.d.ts.map +1 -1
- package/dist/controllers/feedback.js +4 -1
- package/dist/controllers/feedback.js.map +1 -1
- package/dist/controllers/input.d.ts.map +1 -1
- package/dist/controllers/input.js +2 -0
- package/dist/controllers/input.js.map +1 -1
- package/dist/controllers/jinion.d.ts +9 -1
- package/dist/controllers/jinion.d.ts.map +1 -1
- package/dist/controllers/jinion.js +9 -1
- package/dist/controllers/jinion.js.map +1 -1
- package/dist/controllers/mcp.d.ts +11 -2
- package/dist/controllers/mcp.d.ts.map +1 -1
- package/dist/controllers/mcp.js +42 -7
- package/dist/controllers/mcp.js.map +1 -1
- package/dist/controllers/session.d.ts.map +1 -1
- package/dist/controllers/session.js +4 -0
- package/dist/controllers/session.js.map +1 -1
- package/dist/conversation/activity.d.ts +5 -0
- package/dist/conversation/activity.d.ts.map +1 -0
- package/dist/conversation/activity.js +41 -0
- package/dist/conversation/activity.js.map +1 -0
- package/dist/conversation/apply-event.d.ts.map +1 -1
- package/dist/conversation/apply-event.js +2 -1
- package/dist/conversation/apply-event.js.map +1 -1
- package/dist/conversation/edits.d.ts +5 -0
- package/dist/conversation/edits.d.ts.map +1 -1
- package/dist/conversation/edits.js +10 -0
- package/dist/conversation/edits.js.map +1 -1
- package/dist/conversation/reducer.d.ts +15 -0
- package/dist/conversation/reducer.d.ts.map +1 -1
- package/dist/design/guides.d.ts +78 -5
- package/dist/design/guides.d.ts.map +1 -1
- package/dist/design/guides.js +78 -5
- package/dist/design/guides.js.map +1 -1
- package/dist/design/prompt.d.ts +1 -1
- package/dist/design/prompt.d.ts.map +1 -1
- package/dist/design/prompt.js +2 -2
- package/dist/design/prompt.js.map +1 -1
- package/dist/design/tools.d.ts +2 -0
- package/dist/design/tools.d.ts.map +1 -1
- package/dist/design/tools.js +6 -2
- package/dist/design/tools.js.map +1 -1
- package/dist/directions/directions.d.ts +42 -0
- package/dist/directions/directions.d.ts.map +1 -0
- package/dist/directions/directions.js +120 -0
- package/dist/directions/directions.js.map +1 -0
- package/dist/directions/store.d.ts +34 -0
- package/dist/directions/store.d.ts.map +1 -0
- package/dist/directions/store.js +61 -0
- package/dist/directions/store.js.map +1 -0
- package/dist/directions/tools.d.ts +29 -0
- package/dist/directions/tools.d.ts.map +1 -0
- package/dist/directions/tools.js +57 -0
- package/dist/directions/tools.js.map +1 -0
- package/dist/directions/viewer.d.ts +6 -0
- package/dist/directions/viewer.d.ts.map +1 -0
- package/dist/directions/viewer.js +266 -0
- package/dist/directions/viewer.js.map +1 -0
- package/dist/files/names.d.ts +6 -0
- package/dist/files/names.d.ts.map +1 -0
- package/dist/files/names.js +18 -0
- package/dist/files/names.js.map +1 -0
- package/dist/files/operations.d.ts +54 -0
- package/dist/files/operations.d.ts.map +1 -0
- package/dist/files/operations.js +173 -0
- package/dist/files/operations.js.map +1 -0
- package/dist/files/search.d.ts +11 -0
- package/dist/files/search.d.ts.map +1 -0
- package/dist/files/search.js +112 -0
- package/dist/files/search.js.map +1 -0
- package/dist/files/trash.d.ts +11 -0
- package/dist/files/trash.d.ts.map +1 -0
- package/dist/files/trash.js +64 -0
- package/dist/files/trash.js.map +1 -0
- package/dist/files/types.d.ts +112 -0
- package/dist/files/types.d.ts.map +1 -0
- package/dist/files/types.js +47 -0
- package/dist/files/types.js.map +1 -0
- package/dist/files/watch.d.ts +26 -0
- package/dist/files/watch.d.ts.map +1 -0
- package/dist/files/watch.js +107 -0
- package/dist/files/watch.js.map +1 -0
- package/dist/git/blame.d.ts +10 -0
- package/dist/git/blame.d.ts.map +1 -0
- package/dist/git/blame.js +91 -0
- package/dist/git/blame.js.map +1 -0
- package/dist/git/repos.d.ts +5 -0
- package/dist/git/repos.d.ts.map +1 -1
- package/dist/git/repos.js +13 -0
- package/dist/git/repos.js.map +1 -1
- package/dist/git/staging.d.ts +10 -1
- package/dist/git/staging.d.ts.map +1 -1
- package/dist/git/staging.js +21 -0
- package/dist/git/staging.js.map +1 -1
- package/dist/git/types.d.ts +48 -0
- package/dist/git/types.d.ts.map +1 -1
- package/dist/git/types.js +25 -0
- package/dist/git/types.js.map +1 -1
- package/dist/host.d.ts +2 -0
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +8 -1
- package/dist/host.js.map +1 -1
- package/dist/lib/changelog.d.ts +12 -0
- package/dist/lib/changelog.d.ts.map +1 -0
- package/dist/lib/changelog.js +52 -0
- package/dist/lib/changelog.js.map +1 -0
- package/dist/lib/glob.d.ts +6 -0
- package/dist/lib/glob.d.ts.map +1 -0
- package/dist/lib/glob.js +49 -0
- package/dist/lib/glob.js.map +1 -0
- package/dist/lib/paths.d.ts +3 -0
- package/dist/lib/paths.d.ts.map +1 -1
- package/dist/lib/paths.js +9 -1
- package/dist/lib/paths.js.map +1 -1
- package/dist/lib/shell-words.d.ts +2 -0
- package/dist/lib/shell-words.d.ts.map +1 -0
- package/dist/lib/shell-words.js +60 -0
- package/dist/lib/shell-words.js.map +1 -0
- package/dist/look/tools.d.ts +7 -1
- package/dist/look/tools.d.ts.map +1 -1
- package/dist/look/tools.js +19 -4
- package/dist/look/tools.js.map +1 -1
- package/dist/lsp/code-intelligence.d.ts +87 -0
- package/dist/lsp/code-intelligence.d.ts.map +1 -0
- package/dist/lsp/code-intelligence.js +343 -0
- package/dist/lsp/code-intelligence.js.map +1 -0
- package/dist/lsp/edits.d.ts +4 -0
- package/dist/lsp/edits.d.ts.map +1 -0
- package/dist/lsp/edits.js +14 -0
- package/dist/lsp/edits.js.map +1 -0
- package/dist/lsp/project-check.d.ts +8 -0
- package/dist/lsp/project-check.d.ts.map +1 -0
- package/dist/lsp/project-check.js +71 -0
- package/dist/lsp/project-check.js.map +1 -0
- package/dist/lsp/results.d.ts +95 -0
- package/dist/lsp/results.d.ts.map +1 -0
- package/dist/lsp/results.js +116 -0
- package/dist/lsp/results.js.map +1 -0
- package/dist/lsp/server.d.ts +22 -0
- package/dist/lsp/server.d.ts.map +1 -0
- package/dist/lsp/server.js +123 -0
- package/dist/lsp/server.js.map +1 -0
- package/dist/lsp/servers.d.ts +21 -0
- package/dist/lsp/servers.d.ts.map +1 -0
- package/dist/lsp/servers.js +57 -0
- package/dist/lsp/servers.js.map +1 -0
- package/dist/lsp/transport.d.ts +9 -0
- package/dist/lsp/transport.d.ts.map +1 -0
- package/dist/lsp/transport.js +64 -0
- package/dist/lsp/transport.js.map +1 -0
- package/dist/lsp/types.d.ts +262 -0
- package/dist/lsp/types.d.ts.map +1 -0
- package/dist/lsp/types.js +64 -0
- package/dist/lsp/types.js.map +1 -0
- package/dist/map/conventions.d.ts +18 -2
- package/dist/map/conventions.d.ts.map +1 -1
- package/dist/map/conventions.js +17 -7
- package/dist/map/conventions.js.map +1 -1
- package/dist/map/look.d.ts +23 -0
- package/dist/map/look.d.ts.map +1 -1
- package/dist/map/look.js +26 -16
- package/dist/map/look.js.map +1 -1
- package/dist/map/overview.d.ts +54 -0
- package/dist/map/overview.d.ts.map +1 -0
- package/dist/map/overview.js +32 -0
- package/dist/map/overview.js.map +1 -0
- package/dist/map/project-overview.d.ts +5 -0
- package/dist/map/project-overview.d.ts.map +1 -0
- package/dist/map/project-overview.js +35 -0
- package/dist/map/project-overview.js.map +1 -0
- package/dist/map/prompt.d.ts.map +1 -1
- package/dist/map/prompt.js +17 -38
- package/dist/map/prompt.js.map +1 -1
- package/dist/map/review.d.ts +29 -9
- package/dist/map/review.d.ts.map +1 -1
- package/dist/map/review.js +105 -25
- package/dist/map/review.js.map +1 -1
- package/dist/map/rules-request.d.ts +4 -0
- package/dist/map/rules-request.d.ts.map +1 -0
- package/dist/map/rules-request.js +6 -0
- package/dist/map/rules-request.js.map +1 -0
- package/dist/mcp/config.d.ts +3 -10
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +5 -0
- package/dist/mcp/config.js.map +1 -1
- package/dist/mcp/login.d.ts +2 -0
- package/dist/mcp/login.d.ts.map +1 -1
- package/dist/mcp/login.js +5 -0
- package/dist/mcp/login.js.map +1 -1
- package/dist/mcp/transport.d.ts +16 -0
- package/dist/mcp/transport.d.ts.map +1 -0
- package/dist/mcp/transport.js +11 -0
- package/dist/mcp/transport.js.map +1 -0
- package/dist/memory/import.d.ts +10 -1
- package/dist/memory/import.d.ts.map +1 -1
- package/dist/memory/import.js +14 -6
- package/dist/memory/import.js.map +1 -1
- package/dist/preview/pages.d.ts +17 -0
- package/dist/preview/pages.d.ts.map +1 -0
- package/dist/preview/pages.js +92 -0
- package/dist/preview/pages.js.map +1 -0
- package/dist/preview/previews.d.ts +22 -0
- package/dist/preview/previews.d.ts.map +1 -0
- package/dist/preview/previews.js +28 -0
- package/dist/preview/previews.js.map +1 -0
- package/dist/preview/prompt.d.ts +3 -0
- package/dist/preview/prompt.d.ts.map +1 -0
- package/dist/preview/prompt.js +5 -0
- package/dist/preview/prompt.js.map +1 -0
- package/dist/preview/tools.d.ts +21 -0
- package/dist/preview/tools.d.ts.map +1 -0
- package/dist/preview/tools.js +34 -0
- package/dist/preview/tools.js.map +1 -0
- package/dist/preview/types.d.ts +7 -0
- package/dist/preview/types.d.ts.map +1 -1
- package/dist/preview/types.js +2 -0
- package/dist/preview/types.js.map +1 -1
- package/dist/prompt/files.d.ts +4 -1
- package/dist/prompt/files.d.ts.map +1 -1
- package/dist/prompt/files.js +23 -8
- package/dist/prompt/files.js.map +1 -1
- package/dist/prompt/skills.d.ts +2 -0
- package/dist/prompt/skills.d.ts.map +1 -1
- package/dist/settings/project.d.ts +2 -0
- package/dist/settings/project.d.ts.map +1 -1
- package/dist/settings/project.js.map +1 -1
- package/dist/settings/user.d.ts +2 -0
- package/dist/settings/user.d.ts.map +1 -1
- package/dist/settings/user.js.map +1 -1
- package/dist/skills/folders.d.ts +30 -0
- package/dist/skills/folders.d.ts.map +1 -0
- package/dist/skills/folders.js +70 -0
- package/dist/skills/folders.js.map +1 -0
- package/dist/skills/skill-file.d.ts +10 -0
- package/dist/skills/skill-file.d.ts.map +1 -0
- package/dist/skills/skill-file.js +68 -0
- package/dist/skills/skill-file.js.map +1 -0
- package/dist/skills/tools.d.ts +26 -0
- package/dist/skills/tools.d.ts.map +1 -0
- package/dist/skills/tools.js +34 -0
- package/dist/skills/tools.js.map +1 -0
- package/dist/state/agent.d.ts +8 -0
- package/dist/state/agent.d.ts.map +1 -1
- package/dist/state/preferences.d.ts +2 -0
- package/dist/state/preferences.d.ts.map +1 -1
- package/dist/state/preferences.js +3 -1
- package/dist/state/preferences.js.map +1 -1
- package/dist/state/session.d.ts +6 -0
- package/dist/state/session.d.ts.map +1 -1
- package/dist/state/session.js +1 -0
- package/dist/state/session.js.map +1 -1
- package/package.json +3 -1
- package/schema/api.json +3872 -146
- package/vendor/darwin-arm64/build.json +62 -0
- package/vendor/darwin-arm64/ffmpeg +0 -0
- package/vendor/darwin-arm64/ffprobe +0 -0
- package/vendor/darwin-arm64/licenses/README.md +13 -0
- package/vendor/darwin-arm64/licenses/ffmpeg-LGPL-2.1.txt +502 -0
- package/vendor/darwin-arm64/licenses/whisper.cpp-MIT.txt +21 -0
- package/vendor/darwin-arm64/voices.bin +0 -0
- package/vendor/darwin-arm64/whisper-cli +0 -0
package/dist/api/protocol.d.ts
CHANGED
|
@@ -3,9 +3,13 @@ import { z } from 'zod';
|
|
|
3
3
|
export type { AgentInfo, SessionFeatures } from '../agent/agent.js';
|
|
4
4
|
export type { Attachment, AttachmentKind, AttachmentSource } from '../attachments/types.js';
|
|
5
5
|
export type { AppInfo, PromptFill, RewindPoint, View } from '../controllers/context.js';
|
|
6
|
-
export type { FileChange, GitStatus, RepoChanges } from '../git/types.js';
|
|
7
|
-
export type {
|
|
6
|
+
export type { Blame, BlameRange, CommitDetail, CommitInfo, FileChange, GitStatus, RepoChanges } from '../git/types.js';
|
|
7
|
+
export type { ClaudeSetup } from '../agent/claude/setup-info.js';
|
|
8
|
+
export type { McpTransport } from '../mcp/transport.js';
|
|
9
|
+
export type { DevScript, DevServer, PreviewCapture } from '../preview/types.js';
|
|
8
10
|
export type { TerminalInfo, TerminalOutput } from '../terminals/types.js';
|
|
11
|
+
export type * from '../lsp/types.js';
|
|
12
|
+
export type * from '../files/types.js';
|
|
9
13
|
export type * from './schemas.js';
|
|
10
14
|
/**
|
|
11
15
|
* Raised only when a change would break a client written for the one before. Adding a method, a notification or an
|
|
@@ -26,6 +30,8 @@ export declare const ApiCode: {
|
|
|
26
30
|
readonly unknownTerminal: -32008;
|
|
27
31
|
/** The file changed since the client read it, as when the agent edited it; `data.modified` is its time now. */
|
|
28
32
|
readonly fileChanged: -32009;
|
|
33
|
+
/** A file or folder is already where one was to go; `data.path` is it, in the session's folder. */
|
|
34
|
+
readonly fileExists: -32010;
|
|
29
35
|
};
|
|
30
36
|
/** Every method the server answers: what a client sends, checked where it comes in, and what it gets back. */
|
|
31
37
|
export declare const requests: {
|
|
@@ -40,6 +46,8 @@ export declare const requests: {
|
|
|
40
46
|
bell: "bell";
|
|
41
47
|
desktop: "desktop";
|
|
42
48
|
}>>;
|
|
49
|
+
preview: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
43
51
|
}, z.core.$strip>;
|
|
44
52
|
result: z.ZodObject<{
|
|
45
53
|
sessions: z.ZodArray<z.ZodObject<{
|
|
@@ -63,6 +71,7 @@ export declare const requests: {
|
|
|
63
71
|
description: z.ZodString;
|
|
64
72
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
73
|
argumentHint: z.ZodOptional<z.ZodString>;
|
|
74
|
+
terminalOnly: z.ZodOptional<z.ZodBoolean>;
|
|
66
75
|
}, z.core.$strip>>;
|
|
67
76
|
app: z.ZodObject<{
|
|
68
77
|
agents: z.ZodArray<z.ZodObject<{
|
|
@@ -77,6 +86,8 @@ export declare const requests: {
|
|
|
77
86
|
features: z.ZodObject<{
|
|
78
87
|
accounts: z.ZodBoolean;
|
|
79
88
|
mcp: z.ZodBoolean;
|
|
89
|
+
addMcp: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
editSkills: z.ZodOptional<z.ZodBoolean>;
|
|
80
91
|
usage: z.ZodBoolean;
|
|
81
92
|
history: z.ZodBoolean;
|
|
82
93
|
}, z.core.$strip>;
|
|
@@ -105,6 +116,8 @@ export declare const requests: {
|
|
|
105
116
|
}>;
|
|
106
117
|
group: z.ZodString;
|
|
107
118
|
argumentHint: z.ZodOptional<z.ZodString>;
|
|
119
|
+
path: z.ZodOptional<z.ZodString>;
|
|
120
|
+
editable: z.ZodOptional<z.ZodBoolean>;
|
|
108
121
|
}, z.core.$strip>>>;
|
|
109
122
|
seenLimits: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
110
123
|
windows: z.ZodArray<z.ZodObject<{
|
|
@@ -133,6 +146,8 @@ export declare const requests: {
|
|
|
133
146
|
activated: z.ZodOptional<z.ZodBoolean>;
|
|
134
147
|
}, z.core.$strip>>>;
|
|
135
148
|
signals: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
notifications: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
claudeSetupOffered: z.ZodOptional<z.ZodBoolean>;
|
|
136
151
|
announcements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
152
|
id: z.ZodNumber;
|
|
138
153
|
text: z.ZodString;
|
|
@@ -454,6 +469,7 @@ export declare const requests: {
|
|
|
454
469
|
size: z.ZodNumber;
|
|
455
470
|
reading: z.ZodOptional<z.ZodString>;
|
|
456
471
|
}, z.core.$strip>>>;
|
|
472
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
457
473
|
wantsWorktree: z.ZodBoolean;
|
|
458
474
|
working: z.ZodBoolean;
|
|
459
475
|
ratings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
@@ -790,6 +806,22 @@ export declare const requests: {
|
|
|
790
806
|
}, z.core.$strip>;
|
|
791
807
|
result: z.ZodNull;
|
|
792
808
|
};
|
|
809
|
+
/**
|
|
810
|
+
* Takes files of the last `git/changes`, by their absolute paths, back to HEAD, staged or not; one HEAD doesn't have
|
|
811
|
+
* is gone after. What was on disk goes to the Trash first, so `files/restore` puts it back.
|
|
812
|
+
*/
|
|
813
|
+
'git/discard': {
|
|
814
|
+
params: z.ZodObject<{
|
|
815
|
+
session: z.ZodString;
|
|
816
|
+
files: z.ZodArray<z.ZodString>;
|
|
817
|
+
}, z.core.$strip>;
|
|
818
|
+
result: z.ZodObject<{
|
|
819
|
+
trashed: z.ZodArray<z.ZodObject<{
|
|
820
|
+
path: z.ZodString;
|
|
821
|
+
trash: z.ZodString;
|
|
822
|
+
}, z.core.$strip>>;
|
|
823
|
+
}, z.core.$strip>;
|
|
824
|
+
};
|
|
793
825
|
/** What is staged in the repository whose root is `repo`; the new commit, short. */
|
|
794
826
|
'git/commit': {
|
|
795
827
|
params: z.ZodObject<{
|
|
@@ -801,6 +833,22 @@ export declare const requests: {
|
|
|
801
833
|
commit: z.ZodString;
|
|
802
834
|
}, z.core.$strip>;
|
|
803
835
|
};
|
|
836
|
+
/** Brings the upstream of `repo`'s branch in, only when it fast-forwards; git's own words when it doesn't. */
|
|
837
|
+
'git/pull': {
|
|
838
|
+
params: z.ZodObject<{
|
|
839
|
+
session: z.ZodString;
|
|
840
|
+
repo: z.ZodString;
|
|
841
|
+
}, z.core.$strip>;
|
|
842
|
+
result: z.ZodNull;
|
|
843
|
+
};
|
|
844
|
+
/** Sends `repo`'s branch to its upstream, setting one on `origin` for a branch that has none. */
|
|
845
|
+
'git/push': {
|
|
846
|
+
params: z.ZodObject<{
|
|
847
|
+
session: z.ZodString;
|
|
848
|
+
repo: z.ZodString;
|
|
849
|
+
}, z.core.$strip>;
|
|
850
|
+
result: z.ZodNull;
|
|
851
|
+
};
|
|
804
852
|
/** A file from the session's last `git/changes`, by its absolute path. */
|
|
805
853
|
'git/diff': {
|
|
806
854
|
params: z.ZodObject<{
|
|
@@ -809,6 +857,121 @@ export declare const requests: {
|
|
|
809
857
|
}, z.core.$strip>;
|
|
810
858
|
result: z.ZodString;
|
|
811
859
|
};
|
|
860
|
+
/** The same file as `git/diff` compares it against, whole: empty for a file that is new. */
|
|
861
|
+
'git/before': {
|
|
862
|
+
params: z.ZodObject<{
|
|
863
|
+
session: z.ZodString;
|
|
864
|
+
file: z.ZodString;
|
|
865
|
+
}, z.core.$strip>;
|
|
866
|
+
result: z.ZodString;
|
|
867
|
+
};
|
|
868
|
+
/**
|
|
869
|
+
* Who last changed each line of a file in the session's folder, by its path there; with `text`, of the text as the
|
|
870
|
+
* client holds it, its unsaved lines not committed. `null` for a file git doesn't know.
|
|
871
|
+
*/
|
|
872
|
+
'git/blame': {
|
|
873
|
+
params: z.ZodObject<{
|
|
874
|
+
session: z.ZodString;
|
|
875
|
+
path: z.ZodString;
|
|
876
|
+
text: z.ZodOptional<z.ZodString>;
|
|
877
|
+
}, z.core.$strip>;
|
|
878
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
879
|
+
repo: z.ZodString;
|
|
880
|
+
you: z.ZodOptional<z.ZodString>;
|
|
881
|
+
ranges: z.ZodArray<z.ZodObject<{
|
|
882
|
+
start: z.ZodNumber;
|
|
883
|
+
lines: z.ZodNumber;
|
|
884
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
885
|
+
}, z.core.$strip>>;
|
|
886
|
+
commits: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
887
|
+
sha: z.ZodString;
|
|
888
|
+
author: z.ZodString;
|
|
889
|
+
email: z.ZodString;
|
|
890
|
+
time: z.ZodNumber;
|
|
891
|
+
summary: z.ZodString;
|
|
892
|
+
}, z.core.$strip>>;
|
|
893
|
+
}, z.core.$strip>>;
|
|
894
|
+
};
|
|
895
|
+
/** A commit of `repo`, the root a blame names, with each file it changed. */
|
|
896
|
+
'git/show': {
|
|
897
|
+
params: z.ZodObject<{
|
|
898
|
+
session: z.ZodString;
|
|
899
|
+
repo: z.ZodString;
|
|
900
|
+
commit: z.ZodString;
|
|
901
|
+
}, z.core.$strip>;
|
|
902
|
+
result: z.ZodObject<{
|
|
903
|
+
sha: z.ZodString;
|
|
904
|
+
author: z.ZodString;
|
|
905
|
+
email: z.ZodString;
|
|
906
|
+
time: z.ZodNumber;
|
|
907
|
+
summary: z.ZodString;
|
|
908
|
+
body: z.ZodString;
|
|
909
|
+
files: z.ZodArray<z.ZodObject<{
|
|
910
|
+
path: z.ZodString;
|
|
911
|
+
patch: z.ZodString;
|
|
912
|
+
binary: z.ZodBoolean;
|
|
913
|
+
}, z.core.$strip>>;
|
|
914
|
+
}, z.core.$strip>;
|
|
915
|
+
};
|
|
916
|
+
/** What the project map read; `reading` while it is read the first time. With `session`, the folder that session works in. */
|
|
917
|
+
'map/overview': {
|
|
918
|
+
params: z.ZodObject<{
|
|
919
|
+
session: z.ZodOptional<z.ZodString>;
|
|
920
|
+
}, z.core.$strip>;
|
|
921
|
+
result: z.ZodObject<{
|
|
922
|
+
reading: z.ZodBoolean;
|
|
923
|
+
overview: z.ZodOptional<z.ZodObject<{
|
|
924
|
+
built: z.ZodArray<z.ZodString>;
|
|
925
|
+
pieces: z.ZodObject<{
|
|
926
|
+
count: z.ZodNumber;
|
|
927
|
+
files: z.ZodNumber;
|
|
928
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
929
|
+
folder: z.ZodString;
|
|
930
|
+
names: z.ZodArray<z.ZodString>;
|
|
931
|
+
more: z.ZodNumber;
|
|
932
|
+
}, z.core.$strip>>;
|
|
933
|
+
}, z.core.$strip>;
|
|
934
|
+
habits: z.ZodArray<z.ZodObject<{
|
|
935
|
+
text: z.ZodString;
|
|
936
|
+
count: z.ZodNumber;
|
|
937
|
+
total: z.ZodNumber;
|
|
938
|
+
}, z.core.$strip>>;
|
|
939
|
+
unheld: z.ZodOptional<z.ZodObject<{
|
|
940
|
+
linter: z.ZodString;
|
|
941
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
942
|
+
name: z.ZodString;
|
|
943
|
+
option: z.ZodOptional<z.ZodString>;
|
|
944
|
+
}, z.core.$strip>>;
|
|
945
|
+
}, z.core.$strip>>;
|
|
946
|
+
look: z.ZodObject<{
|
|
947
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
948
|
+
count: z.ZodNumber;
|
|
949
|
+
home: z.ZodString;
|
|
950
|
+
inHome: z.ZodNumber;
|
|
951
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
952
|
+
name: z.ZodString;
|
|
953
|
+
count: z.ZodNumber;
|
|
954
|
+
}, z.core.$strip>>;
|
|
955
|
+
}, z.core.$strip>>;
|
|
956
|
+
families: z.ZodArray<z.ZodObject<{
|
|
957
|
+
name: z.ZodString;
|
|
958
|
+
uses: z.ZodNumber;
|
|
959
|
+
members: z.ZodArray<z.ZodObject<{
|
|
960
|
+
name: z.ZodString;
|
|
961
|
+
uses: z.ZodNumber;
|
|
962
|
+
token: z.ZodBoolean;
|
|
963
|
+
}, z.core.$strip>>;
|
|
964
|
+
more: z.ZodNumber;
|
|
965
|
+
}, z.core.$strip>>;
|
|
966
|
+
loose: z.ZodOptional<z.ZodObject<{
|
|
967
|
+
colors: z.ZodNumber;
|
|
968
|
+
files: z.ZodNumber;
|
|
969
|
+
}, z.core.$strip>>;
|
|
970
|
+
}, z.core.$strip>;
|
|
971
|
+
undecided: z.ZodBoolean;
|
|
972
|
+
}, z.core.$strip>>;
|
|
973
|
+
}, z.core.$strip>;
|
|
974
|
+
};
|
|
812
975
|
'files/list': {
|
|
813
976
|
params: z.ZodObject<{
|
|
814
977
|
session: z.ZodString;
|
|
@@ -854,6 +1017,532 @@ export declare const requests: {
|
|
|
854
1017
|
modified: z.ZodNumber;
|
|
855
1018
|
}, z.core.$strip>;
|
|
856
1019
|
};
|
|
1020
|
+
/** Text in the folder's files that git doesn't ignore; a regular expression that isn't one is refused as invalid params. */
|
|
1021
|
+
'files/search': {
|
|
1022
|
+
params: z.ZodObject<{
|
|
1023
|
+
query: z.ZodString;
|
|
1024
|
+
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
1025
|
+
wholeWord: z.ZodOptional<z.ZodBoolean>;
|
|
1026
|
+
regex: z.ZodOptional<z.ZodBoolean>;
|
|
1027
|
+
include: z.ZodOptional<z.ZodString>;
|
|
1028
|
+
exclude: z.ZodOptional<z.ZodString>;
|
|
1029
|
+
session: z.ZodString;
|
|
1030
|
+
}, z.core.$strip>;
|
|
1031
|
+
result: z.ZodObject<{
|
|
1032
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1033
|
+
path: z.ZodString;
|
|
1034
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
1035
|
+
line: z.ZodNumber;
|
|
1036
|
+
text: z.ZodString;
|
|
1037
|
+
ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
1038
|
+
}, z.core.$strip>>;
|
|
1039
|
+
}, z.core.$strip>>;
|
|
1040
|
+
truncated: z.ZodBoolean;
|
|
1041
|
+
}, z.core.$strip>;
|
|
1042
|
+
};
|
|
1043
|
+
/** Replaces what `files/search` finds, in every file it finds it in or in `paths` of them, and writes them. */
|
|
1044
|
+
'files/replace': {
|
|
1045
|
+
params: z.ZodObject<{
|
|
1046
|
+
query: z.ZodString;
|
|
1047
|
+
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
1048
|
+
wholeWord: z.ZodOptional<z.ZodBoolean>;
|
|
1049
|
+
regex: z.ZodOptional<z.ZodBoolean>;
|
|
1050
|
+
include: z.ZodOptional<z.ZodString>;
|
|
1051
|
+
exclude: z.ZodOptional<z.ZodString>;
|
|
1052
|
+
session: z.ZodString;
|
|
1053
|
+
replacement: z.ZodString;
|
|
1054
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1055
|
+
}, z.core.$strip>;
|
|
1056
|
+
result: z.ZodObject<{
|
|
1057
|
+
files: z.ZodNumber;
|
|
1058
|
+
replacements: z.ZodNumber;
|
|
1059
|
+
}, z.core.$strip>;
|
|
1060
|
+
};
|
|
1061
|
+
/** The files of the session's folder this client has open, which `files/changed` tells of from now on; the ones before are let go. */
|
|
1062
|
+
'files/watch': {
|
|
1063
|
+
params: z.ZodObject<{
|
|
1064
|
+
session: z.ZodString;
|
|
1065
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1066
|
+
}, z.core.$strip>;
|
|
1067
|
+
result: z.ZodNull;
|
|
1068
|
+
};
|
|
1069
|
+
/** A file, empty or with `content`, or with `folder` a folder; the folders it is in are made as needed. */
|
|
1070
|
+
'files/create': {
|
|
1071
|
+
params: z.ZodObject<{
|
|
1072
|
+
session: z.ZodString;
|
|
1073
|
+
path: z.ZodString;
|
|
1074
|
+
folder: z.ZodOptional<z.ZodBoolean>;
|
|
1075
|
+
content: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1076
|
+
text: z.ZodString;
|
|
1077
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1078
|
+
base64: z.ZodString;
|
|
1079
|
+
}, z.core.$strip>]>>;
|
|
1080
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
1081
|
+
}, z.core.$strip>;
|
|
1082
|
+
result: z.ZodObject<{
|
|
1083
|
+
path: z.ZodString;
|
|
1084
|
+
replaced: z.ZodArray<z.ZodObject<{
|
|
1085
|
+
path: z.ZodString;
|
|
1086
|
+
trash: z.ZodString;
|
|
1087
|
+
}, z.core.$strip>>;
|
|
1088
|
+
}, z.core.$strip>;
|
|
1089
|
+
};
|
|
1090
|
+
/** Another name for a file or folder, where it is: `name` alone, not a path. */
|
|
1091
|
+
'files/rename': {
|
|
1092
|
+
params: z.ZodObject<{
|
|
1093
|
+
session: z.ZodString;
|
|
1094
|
+
path: z.ZodString;
|
|
1095
|
+
name: z.ZodString;
|
|
1096
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
1097
|
+
}, z.core.$strip>;
|
|
1098
|
+
result: z.ZodObject<{
|
|
1099
|
+
moved: z.ZodArray<z.ZodObject<{
|
|
1100
|
+
from: z.ZodString;
|
|
1101
|
+
to: z.ZodString;
|
|
1102
|
+
}, z.core.$strip>>;
|
|
1103
|
+
replaced: z.ZodArray<z.ZodObject<{
|
|
1104
|
+
path: z.ZodString;
|
|
1105
|
+
trash: z.ZodString;
|
|
1106
|
+
}, z.core.$strip>>;
|
|
1107
|
+
}, z.core.$strip>;
|
|
1108
|
+
};
|
|
1109
|
+
/**
|
|
1110
|
+
* Files and folders into a folder of the session's (`''` for the folder itself), each keeping its name; with
|
|
1111
|
+
* `keepBoth`, one whose name is taken there takes the next free one, as the Finder's Keep Both names it, `box 2.tsx`.
|
|
1112
|
+
*/
|
|
1113
|
+
'files/move': {
|
|
1114
|
+
params: z.ZodObject<{
|
|
1115
|
+
session: z.ZodString;
|
|
1116
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1117
|
+
into: z.ZodString;
|
|
1118
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
1119
|
+
keepBoth: z.ZodOptional<z.ZodBoolean>;
|
|
1120
|
+
}, z.core.$strip>;
|
|
1121
|
+
result: z.ZodObject<{
|
|
1122
|
+
moved: z.ZodArray<z.ZodObject<{
|
|
1123
|
+
from: z.ZodString;
|
|
1124
|
+
to: z.ZodString;
|
|
1125
|
+
}, z.core.$strip>>;
|
|
1126
|
+
replaced: z.ZodArray<z.ZodObject<{
|
|
1127
|
+
path: z.ZodString;
|
|
1128
|
+
trash: z.ZodString;
|
|
1129
|
+
}, z.core.$strip>>;
|
|
1130
|
+
}, z.core.$strip>;
|
|
1131
|
+
};
|
|
1132
|
+
/**
|
|
1133
|
+
* The same, copied: from the folder by their paths there, or from anywhere by their whole paths, as files dropped from
|
|
1134
|
+
* the Finder. Copied into the folder it is in, a copy is named as the Finder names one, `box copy.tsx`.
|
|
1135
|
+
*/
|
|
1136
|
+
'files/copy': {
|
|
1137
|
+
params: z.ZodObject<{
|
|
1138
|
+
session: z.ZodString;
|
|
1139
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1140
|
+
into: z.ZodString;
|
|
1141
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
1142
|
+
keepBoth: z.ZodOptional<z.ZodBoolean>;
|
|
1143
|
+
}, z.core.$strip>;
|
|
1144
|
+
result: z.ZodObject<{
|
|
1145
|
+
copied: z.ZodArray<z.ZodObject<{
|
|
1146
|
+
from: z.ZodString;
|
|
1147
|
+
to: z.ZodString;
|
|
1148
|
+
}, z.core.$strip>>;
|
|
1149
|
+
replaced: z.ZodArray<z.ZodObject<{
|
|
1150
|
+
path: z.ZodString;
|
|
1151
|
+
trash: z.ZodString;
|
|
1152
|
+
}, z.core.$strip>>;
|
|
1153
|
+
}, z.core.$strip>;
|
|
1154
|
+
};
|
|
1155
|
+
/** Files and folders to the Trash, never deleted for good; refused with `unsupported` where there is no Trash Jinion can reach. */
|
|
1156
|
+
'files/delete': {
|
|
1157
|
+
params: z.ZodObject<{
|
|
1158
|
+
session: z.ZodString;
|
|
1159
|
+
paths: z.ZodArray<z.ZodString>;
|
|
1160
|
+
}, z.core.$strip>;
|
|
1161
|
+
result: z.ZodObject<{
|
|
1162
|
+
trashed: z.ZodArray<z.ZodObject<{
|
|
1163
|
+
path: z.ZodString;
|
|
1164
|
+
trash: z.ZodString;
|
|
1165
|
+
}, z.core.$strip>>;
|
|
1166
|
+
}, z.core.$strip>;
|
|
1167
|
+
};
|
|
1168
|
+
/** What `files/delete` or a replace sent to the Trash, put back at its path, while this Jinion runs. */
|
|
1169
|
+
'files/restore': {
|
|
1170
|
+
params: z.ZodObject<{
|
|
1171
|
+
session: z.ZodString;
|
|
1172
|
+
trashed: z.ZodArray<z.ZodObject<{
|
|
1173
|
+
path: z.ZodString;
|
|
1174
|
+
trash: z.ZodString;
|
|
1175
|
+
}, z.core.$strip>>;
|
|
1176
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
1177
|
+
}, z.core.$strip>;
|
|
1178
|
+
result: z.ZodObject<{
|
|
1179
|
+
restored: z.ZodArray<z.ZodString>;
|
|
1180
|
+
replaced: z.ZodArray<z.ZodObject<{
|
|
1181
|
+
path: z.ZodString;
|
|
1182
|
+
trash: z.ZodString;
|
|
1183
|
+
}, z.core.$strip>>;
|
|
1184
|
+
}, z.core.$strip>;
|
|
1185
|
+
};
|
|
1186
|
+
'lsp/open': {
|
|
1187
|
+
params: z.ZodObject<{
|
|
1188
|
+
session: z.ZodString;
|
|
1189
|
+
path: z.ZodString;
|
|
1190
|
+
text: z.ZodString;
|
|
1191
|
+
}, z.core.$strip>;
|
|
1192
|
+
result: z.ZodNull;
|
|
1193
|
+
};
|
|
1194
|
+
/** The whole text as it is now. */
|
|
1195
|
+
'lsp/change': {
|
|
1196
|
+
params: z.ZodObject<{
|
|
1197
|
+
session: z.ZodString;
|
|
1198
|
+
path: z.ZodString;
|
|
1199
|
+
text: z.ZodString;
|
|
1200
|
+
}, z.core.$strip>;
|
|
1201
|
+
result: z.ZodNull;
|
|
1202
|
+
};
|
|
1203
|
+
'lsp/close': {
|
|
1204
|
+
params: z.ZodObject<{
|
|
1205
|
+
session: z.ZodString;
|
|
1206
|
+
path: z.ZodString;
|
|
1207
|
+
}, z.core.$strip>;
|
|
1208
|
+
result: z.ZodNull;
|
|
1209
|
+
};
|
|
1210
|
+
'lsp/hover': {
|
|
1211
|
+
params: z.ZodObject<{
|
|
1212
|
+
session: z.ZodString;
|
|
1213
|
+
path: z.ZodString;
|
|
1214
|
+
position: z.ZodObject<{
|
|
1215
|
+
line: z.ZodNumber;
|
|
1216
|
+
character: z.ZodNumber;
|
|
1217
|
+
}, z.core.$strip>;
|
|
1218
|
+
}, z.core.$strip>;
|
|
1219
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
1220
|
+
contents: z.ZodString;
|
|
1221
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
1222
|
+
start: z.ZodObject<{
|
|
1223
|
+
line: z.ZodNumber;
|
|
1224
|
+
character: z.ZodNumber;
|
|
1225
|
+
}, z.core.$strip>;
|
|
1226
|
+
end: z.ZodObject<{
|
|
1227
|
+
line: z.ZodNumber;
|
|
1228
|
+
character: z.ZodNumber;
|
|
1229
|
+
}, z.core.$strip>;
|
|
1230
|
+
}, z.core.$strip>>;
|
|
1231
|
+
}, z.core.$strip>>;
|
|
1232
|
+
};
|
|
1233
|
+
'lsp/definition': {
|
|
1234
|
+
params: z.ZodObject<{
|
|
1235
|
+
session: z.ZodString;
|
|
1236
|
+
path: z.ZodString;
|
|
1237
|
+
position: z.ZodObject<{
|
|
1238
|
+
line: z.ZodNumber;
|
|
1239
|
+
character: z.ZodNumber;
|
|
1240
|
+
}, z.core.$strip>;
|
|
1241
|
+
}, z.core.$strip>;
|
|
1242
|
+
result: z.ZodArray<z.ZodObject<{
|
|
1243
|
+
path: z.ZodString;
|
|
1244
|
+
range: z.ZodObject<{
|
|
1245
|
+
start: z.ZodObject<{
|
|
1246
|
+
line: z.ZodNumber;
|
|
1247
|
+
character: z.ZodNumber;
|
|
1248
|
+
}, z.core.$strip>;
|
|
1249
|
+
end: z.ZodObject<{
|
|
1250
|
+
line: z.ZodNumber;
|
|
1251
|
+
character: z.ZodNumber;
|
|
1252
|
+
}, z.core.$strip>;
|
|
1253
|
+
}, z.core.$strip>;
|
|
1254
|
+
}, z.core.$strip>>;
|
|
1255
|
+
};
|
|
1256
|
+
'lsp/references': {
|
|
1257
|
+
params: z.ZodObject<{
|
|
1258
|
+
session: z.ZodString;
|
|
1259
|
+
path: z.ZodString;
|
|
1260
|
+
position: z.ZodObject<{
|
|
1261
|
+
line: z.ZodNumber;
|
|
1262
|
+
character: z.ZodNumber;
|
|
1263
|
+
}, z.core.$strip>;
|
|
1264
|
+
}, z.core.$strip>;
|
|
1265
|
+
result: z.ZodArray<z.ZodObject<{
|
|
1266
|
+
path: z.ZodString;
|
|
1267
|
+
range: z.ZodObject<{
|
|
1268
|
+
start: z.ZodObject<{
|
|
1269
|
+
line: z.ZodNumber;
|
|
1270
|
+
character: z.ZodNumber;
|
|
1271
|
+
}, z.core.$strip>;
|
|
1272
|
+
end: z.ZodObject<{
|
|
1273
|
+
line: z.ZodNumber;
|
|
1274
|
+
character: z.ZodNumber;
|
|
1275
|
+
}, z.core.$strip>;
|
|
1276
|
+
}, z.core.$strip>;
|
|
1277
|
+
}, z.core.$strip>>;
|
|
1278
|
+
};
|
|
1279
|
+
/** `trigger` is the character typed that asked for them, such as `.`; left out when the user asked. */
|
|
1280
|
+
'lsp/completion': {
|
|
1281
|
+
params: z.ZodObject<{
|
|
1282
|
+
session: z.ZodString;
|
|
1283
|
+
path: z.ZodString;
|
|
1284
|
+
position: z.ZodObject<{
|
|
1285
|
+
line: z.ZodNumber;
|
|
1286
|
+
character: z.ZodNumber;
|
|
1287
|
+
}, z.core.$strip>;
|
|
1288
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
}, z.core.$strip>;
|
|
1290
|
+
result: z.ZodObject<{
|
|
1291
|
+
incomplete: z.ZodBoolean;
|
|
1292
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1293
|
+
label: z.ZodString;
|
|
1294
|
+
kind: z.ZodOptional<z.ZodNumber>;
|
|
1295
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1296
|
+
documentation: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
insertText: z.ZodString;
|
|
1298
|
+
snippet: z.ZodOptional<z.ZodBoolean>;
|
|
1299
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
1300
|
+
start: z.ZodObject<{
|
|
1301
|
+
line: z.ZodNumber;
|
|
1302
|
+
character: z.ZodNumber;
|
|
1303
|
+
}, z.core.$strip>;
|
|
1304
|
+
end: z.ZodObject<{
|
|
1305
|
+
line: z.ZodNumber;
|
|
1306
|
+
character: z.ZodNumber;
|
|
1307
|
+
}, z.core.$strip>;
|
|
1308
|
+
}, z.core.$strip>>;
|
|
1309
|
+
sortText: z.ZodOptional<z.ZodString>;
|
|
1310
|
+
filterText: z.ZodOptional<z.ZodString>;
|
|
1311
|
+
preselect: z.ZodOptional<z.ZodBoolean>;
|
|
1312
|
+
commitCharacters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1313
|
+
additionalEdits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1314
|
+
range: z.ZodObject<{
|
|
1315
|
+
start: z.ZodObject<{
|
|
1316
|
+
line: z.ZodNumber;
|
|
1317
|
+
character: z.ZodNumber;
|
|
1318
|
+
}, z.core.$strip>;
|
|
1319
|
+
end: z.ZodObject<{
|
|
1320
|
+
line: z.ZodNumber;
|
|
1321
|
+
character: z.ZodNumber;
|
|
1322
|
+
}, z.core.$strip>;
|
|
1323
|
+
}, z.core.$strip>;
|
|
1324
|
+
text: z.ZodString;
|
|
1325
|
+
}, z.core.$strip>>>;
|
|
1326
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
1327
|
+
}, z.core.$strip>>;
|
|
1328
|
+
}, z.core.$strip>;
|
|
1329
|
+
};
|
|
1330
|
+
/** An item of `lsp/completion` with what was left out of the list, such as its documentation. */
|
|
1331
|
+
'lsp/completion-detail': {
|
|
1332
|
+
params: z.ZodObject<{
|
|
1333
|
+
session: z.ZodString;
|
|
1334
|
+
path: z.ZodString;
|
|
1335
|
+
item: z.ZodObject<{
|
|
1336
|
+
label: z.ZodString;
|
|
1337
|
+
kind: z.ZodOptional<z.ZodNumber>;
|
|
1338
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1339
|
+
documentation: z.ZodOptional<z.ZodString>;
|
|
1340
|
+
insertText: z.ZodString;
|
|
1341
|
+
snippet: z.ZodOptional<z.ZodBoolean>;
|
|
1342
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
1343
|
+
start: z.ZodObject<{
|
|
1344
|
+
line: z.ZodNumber;
|
|
1345
|
+
character: z.ZodNumber;
|
|
1346
|
+
}, z.core.$strip>;
|
|
1347
|
+
end: z.ZodObject<{
|
|
1348
|
+
line: z.ZodNumber;
|
|
1349
|
+
character: z.ZodNumber;
|
|
1350
|
+
}, z.core.$strip>;
|
|
1351
|
+
}, z.core.$strip>>;
|
|
1352
|
+
sortText: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
filterText: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
preselect: z.ZodOptional<z.ZodBoolean>;
|
|
1355
|
+
commitCharacters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1356
|
+
additionalEdits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1357
|
+
range: z.ZodObject<{
|
|
1358
|
+
start: z.ZodObject<{
|
|
1359
|
+
line: z.ZodNumber;
|
|
1360
|
+
character: z.ZodNumber;
|
|
1361
|
+
}, z.core.$strip>;
|
|
1362
|
+
end: z.ZodObject<{
|
|
1363
|
+
line: z.ZodNumber;
|
|
1364
|
+
character: z.ZodNumber;
|
|
1365
|
+
}, z.core.$strip>;
|
|
1366
|
+
}, z.core.$strip>;
|
|
1367
|
+
text: z.ZodString;
|
|
1368
|
+
}, z.core.$strip>>>;
|
|
1369
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
1370
|
+
}, z.core.$strip>;
|
|
1371
|
+
}, z.core.$strip>;
|
|
1372
|
+
result: z.ZodObject<{
|
|
1373
|
+
label: z.ZodString;
|
|
1374
|
+
kind: z.ZodOptional<z.ZodNumber>;
|
|
1375
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
documentation: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
insertText: z.ZodString;
|
|
1378
|
+
snippet: z.ZodOptional<z.ZodBoolean>;
|
|
1379
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
1380
|
+
start: z.ZodObject<{
|
|
1381
|
+
line: z.ZodNumber;
|
|
1382
|
+
character: z.ZodNumber;
|
|
1383
|
+
}, z.core.$strip>;
|
|
1384
|
+
end: z.ZodObject<{
|
|
1385
|
+
line: z.ZodNumber;
|
|
1386
|
+
character: z.ZodNumber;
|
|
1387
|
+
}, z.core.$strip>;
|
|
1388
|
+
}, z.core.$strip>>;
|
|
1389
|
+
sortText: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
filterText: z.ZodOptional<z.ZodString>;
|
|
1391
|
+
preselect: z.ZodOptional<z.ZodBoolean>;
|
|
1392
|
+
commitCharacters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1393
|
+
additionalEdits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1394
|
+
range: z.ZodObject<{
|
|
1395
|
+
start: z.ZodObject<{
|
|
1396
|
+
line: z.ZodNumber;
|
|
1397
|
+
character: z.ZodNumber;
|
|
1398
|
+
}, z.core.$strip>;
|
|
1399
|
+
end: z.ZodObject<{
|
|
1400
|
+
line: z.ZodNumber;
|
|
1401
|
+
character: z.ZodNumber;
|
|
1402
|
+
}, z.core.$strip>;
|
|
1403
|
+
}, z.core.$strip>;
|
|
1404
|
+
text: z.ZodString;
|
|
1405
|
+
}, z.core.$strip>>>;
|
|
1406
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
1407
|
+
}, z.core.$strip>;
|
|
1408
|
+
};
|
|
1409
|
+
'lsp/signature-help': {
|
|
1410
|
+
params: z.ZodObject<{
|
|
1411
|
+
session: z.ZodString;
|
|
1412
|
+
path: z.ZodString;
|
|
1413
|
+
position: z.ZodObject<{
|
|
1414
|
+
line: z.ZodNumber;
|
|
1415
|
+
character: z.ZodNumber;
|
|
1416
|
+
}, z.core.$strip>;
|
|
1417
|
+
}, z.core.$strip>;
|
|
1418
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
1419
|
+
signatures: z.ZodArray<z.ZodObject<{
|
|
1420
|
+
label: z.ZodString;
|
|
1421
|
+
documentation: z.ZodOptional<z.ZodString>;
|
|
1422
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
1423
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
|
|
1424
|
+
documentation: z.ZodOptional<z.ZodString>;
|
|
1425
|
+
}, z.core.$strip>>;
|
|
1426
|
+
}, z.core.$strip>>;
|
|
1427
|
+
activeSignature: z.ZodNumber;
|
|
1428
|
+
activeParameter: z.ZodNumber;
|
|
1429
|
+
}, z.core.$strip>>;
|
|
1430
|
+
};
|
|
1431
|
+
/**
|
|
1432
|
+
* Renames what is at the position wherever it is used. The files nobody has open are changed on disk; the edits to
|
|
1433
|
+
* those open come back, for the client to make as unsaved changes.
|
|
1434
|
+
*/
|
|
1435
|
+
'lsp/rename': {
|
|
1436
|
+
params: z.ZodObject<{
|
|
1437
|
+
session: z.ZodString;
|
|
1438
|
+
path: z.ZodString;
|
|
1439
|
+
position: z.ZodObject<{
|
|
1440
|
+
line: z.ZodNumber;
|
|
1441
|
+
character: z.ZodNumber;
|
|
1442
|
+
}, z.core.$strip>;
|
|
1443
|
+
name: z.ZodString;
|
|
1444
|
+
}, z.core.$strip>;
|
|
1445
|
+
result: z.ZodArray<z.ZodObject<{
|
|
1446
|
+
path: z.ZodString;
|
|
1447
|
+
edits: z.ZodArray<z.ZodObject<{
|
|
1448
|
+
range: z.ZodObject<{
|
|
1449
|
+
start: z.ZodObject<{
|
|
1450
|
+
line: z.ZodNumber;
|
|
1451
|
+
character: z.ZodNumber;
|
|
1452
|
+
}, z.core.$strip>;
|
|
1453
|
+
end: z.ZodObject<{
|
|
1454
|
+
line: z.ZodNumber;
|
|
1455
|
+
character: z.ZodNumber;
|
|
1456
|
+
}, z.core.$strip>;
|
|
1457
|
+
}, z.core.$strip>;
|
|
1458
|
+
text: z.ZodString;
|
|
1459
|
+
}, z.core.$strip>>;
|
|
1460
|
+
}, z.core.$strip>>;
|
|
1461
|
+
};
|
|
1462
|
+
/** The edits that format the file as it is open, for the client to make. */
|
|
1463
|
+
'lsp/format': {
|
|
1464
|
+
params: z.ZodObject<{
|
|
1465
|
+
session: z.ZodString;
|
|
1466
|
+
path: z.ZodString;
|
|
1467
|
+
tabSize: z.ZodNumber;
|
|
1468
|
+
insertSpaces: z.ZodBoolean;
|
|
1469
|
+
}, z.core.$strip>;
|
|
1470
|
+
result: z.ZodArray<z.ZodObject<{
|
|
1471
|
+
range: z.ZodObject<{
|
|
1472
|
+
start: z.ZodObject<{
|
|
1473
|
+
line: z.ZodNumber;
|
|
1474
|
+
character: z.ZodNumber;
|
|
1475
|
+
}, z.core.$strip>;
|
|
1476
|
+
end: z.ZodObject<{
|
|
1477
|
+
line: z.ZodNumber;
|
|
1478
|
+
character: z.ZodNumber;
|
|
1479
|
+
}, z.core.$strip>;
|
|
1480
|
+
}, z.core.$strip>;
|
|
1481
|
+
text: z.ZodString;
|
|
1482
|
+
}, z.core.$strip>>;
|
|
1483
|
+
};
|
|
1484
|
+
/** Every error and warning known in the session's folder, by file; `lsp/diagnostics` tells what changes after. */
|
|
1485
|
+
'lsp/problems': {
|
|
1486
|
+
params: z.ZodObject<{
|
|
1487
|
+
session: z.ZodString;
|
|
1488
|
+
}, z.core.$strip>;
|
|
1489
|
+
result: z.ZodArray<z.ZodObject<{
|
|
1490
|
+
path: z.ZodString;
|
|
1491
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
1492
|
+
range: z.ZodObject<{
|
|
1493
|
+
start: z.ZodObject<{
|
|
1494
|
+
line: z.ZodNumber;
|
|
1495
|
+
character: z.ZodNumber;
|
|
1496
|
+
}, z.core.$strip>;
|
|
1497
|
+
end: z.ZodObject<{
|
|
1498
|
+
line: z.ZodNumber;
|
|
1499
|
+
character: z.ZodNumber;
|
|
1500
|
+
}, z.core.$strip>;
|
|
1501
|
+
}, z.core.$strip>;
|
|
1502
|
+
severity: z.ZodEnum<{
|
|
1503
|
+
error: "error";
|
|
1504
|
+
hint: "hint";
|
|
1505
|
+
info: "info";
|
|
1506
|
+
warning: "warning";
|
|
1507
|
+
}>;
|
|
1508
|
+
message: z.ZodString;
|
|
1509
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1510
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1511
|
+
unnecessary: z.ZodOptional<z.ZodBoolean>;
|
|
1512
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
1513
|
+
}, z.core.$strip>>;
|
|
1514
|
+
}, z.core.$strip>>;
|
|
1515
|
+
};
|
|
1516
|
+
/** How the server that reads the file stands, as a status bar shows it; null for a file none reads. `lsp/server` tells what changes. */
|
|
1517
|
+
'lsp/server': {
|
|
1518
|
+
params: z.ZodObject<{
|
|
1519
|
+
session: z.ZodString;
|
|
1520
|
+
path: z.ZodString;
|
|
1521
|
+
}, z.core.$strip>;
|
|
1522
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
1523
|
+
server: z.ZodEnum<{
|
|
1524
|
+
css: "css";
|
|
1525
|
+
html: "html";
|
|
1526
|
+
json: "json";
|
|
1527
|
+
typescript: "typescript";
|
|
1528
|
+
}>;
|
|
1529
|
+
state: z.ZodEnum<{
|
|
1530
|
+
failed: "failed";
|
|
1531
|
+
running: "running";
|
|
1532
|
+
starting: "starting";
|
|
1533
|
+
stopped: "stopped";
|
|
1534
|
+
}>;
|
|
1535
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
}, z.core.$strip>>;
|
|
1537
|
+
};
|
|
1538
|
+
/** Starts the file's server again, as after it failed; it has to be open. */
|
|
1539
|
+
'lsp/restart': {
|
|
1540
|
+
params: z.ZodObject<{
|
|
1541
|
+
session: z.ZodString;
|
|
1542
|
+
path: z.ZodString;
|
|
1543
|
+
}, z.core.$strip>;
|
|
1544
|
+
result: z.ZodNull;
|
|
1545
|
+
};
|
|
857
1546
|
/**
|
|
858
1547
|
* A file to go with the session's messages, kept out of the project where the agent can read it. Answered once it is
|
|
859
1548
|
* kept; reading it, such as transcribing a recording, goes on after, told in the session's `attachments` field. A
|
|
@@ -905,10 +1594,11 @@ export declare const requests: {
|
|
|
905
1594
|
urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
906
1595
|
}, z.core.$strip>>;
|
|
907
1596
|
};
|
|
908
|
-
/** A shell in the folder `session` works in, its worktree or the project, or in the project without one. */
|
|
1597
|
+
/** A shell in the folder `session` works in, its worktree or the project, or in the project without one; with `folder`, in that folder of it. */
|
|
909
1598
|
'terminals/open': {
|
|
910
1599
|
params: z.ZodObject<{
|
|
911
1600
|
session: z.ZodOptional<z.ZodString>;
|
|
1601
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
912
1602
|
cols: z.ZodOptional<z.ZodNumber>;
|
|
913
1603
|
rows: z.ZodOptional<z.ZodNumber>;
|
|
914
1604
|
}, z.core.$strip>;
|
|
@@ -982,6 +1672,23 @@ export declare const requests: {
|
|
|
982
1672
|
command: z.ZodString;
|
|
983
1673
|
}, z.core.$strip>>;
|
|
984
1674
|
};
|
|
1675
|
+
/** The HTML files of the folder `session` works in, or of the project without one, by their path there. */
|
|
1676
|
+
'preview/pages': {
|
|
1677
|
+
params: z.ZodObject<{
|
|
1678
|
+
session: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
}, z.core.$strip>;
|
|
1680
|
+
result: z.ZodArray<z.ZodString>;
|
|
1681
|
+
};
|
|
1682
|
+
/** The address a preview opens a file of that folder at, served as it is, with no dev server. */
|
|
1683
|
+
'preview/file': {
|
|
1684
|
+
params: z.ZodObject<{
|
|
1685
|
+
session: z.ZodOptional<z.ZodString>;
|
|
1686
|
+
path: z.ZodString;
|
|
1687
|
+
}, z.core.$strip>;
|
|
1688
|
+
result: z.ZodObject<{
|
|
1689
|
+
url: z.ZodString;
|
|
1690
|
+
}, z.core.$strip>;
|
|
1691
|
+
};
|
|
985
1692
|
'accounts/list': {
|
|
986
1693
|
params: z.ZodObject<{
|
|
987
1694
|
agent: z.ZodOptional<z.ZodString>;
|
|
@@ -1009,7 +1716,7 @@ export declare const requests: {
|
|
|
1009
1716
|
}, z.core.$strip>;
|
|
1010
1717
|
result: z.ZodNull;
|
|
1011
1718
|
};
|
|
1012
|
-
/** Answered once signing in ends; meanwhile the link and what to type come as notifications. */
|
|
1719
|
+
/** Answered once signing in ends, with why when it failed; meanwhile the link and what to type come as notifications. */
|
|
1013
1720
|
'accounts/sign-in': {
|
|
1014
1721
|
params: z.ZodObject<{
|
|
1015
1722
|
name: z.ZodString;
|
|
@@ -1017,6 +1724,7 @@ export declare const requests: {
|
|
|
1017
1724
|
}, z.core.$strip>;
|
|
1018
1725
|
result: z.ZodObject<{
|
|
1019
1726
|
signedIn: z.ZodBoolean;
|
|
1727
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
1020
1728
|
}, z.core.$strip>;
|
|
1021
1729
|
};
|
|
1022
1730
|
'accounts/sign-in-answer': {
|
|
@@ -1055,6 +1763,8 @@ export declare const requests: {
|
|
|
1055
1763
|
elsewhere: "elsewhere";
|
|
1056
1764
|
jinion: "jinion";
|
|
1057
1765
|
}>>;
|
|
1766
|
+
signedIn: z.ZodOptional<z.ZodBoolean>;
|
|
1767
|
+
removable: z.ZodOptional<z.ZodBoolean>;
|
|
1058
1768
|
}, z.core.$strip>>;
|
|
1059
1769
|
};
|
|
1060
1770
|
/** The servers to have on, by name; the others go off. */
|
|
@@ -1064,6 +1774,40 @@ export declare const requests: {
|
|
|
1064
1774
|
}, z.core.$strip>;
|
|
1065
1775
|
result: z.ZodNull;
|
|
1066
1776
|
};
|
|
1777
|
+
/** To the user's own servers, on from the next turn; refused with what to change, such as a name that's taken. */
|
|
1778
|
+
'mcp/add': {
|
|
1779
|
+
params: z.ZodObject<{
|
|
1780
|
+
name: z.ZodString;
|
|
1781
|
+
transport: z.ZodUnion<readonly [z.ZodObject<{
|
|
1782
|
+
type: z.ZodOptional<z.ZodLiteral<"stdio">>;
|
|
1783
|
+
command: z.ZodString;
|
|
1784
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1785
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1786
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1787
|
+
type: z.ZodEnum<{
|
|
1788
|
+
http: "http";
|
|
1789
|
+
sse: "sse";
|
|
1790
|
+
}>;
|
|
1791
|
+
url: z.ZodString;
|
|
1792
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1793
|
+
}, z.core.$strip>]>;
|
|
1794
|
+
}, z.core.$strip>;
|
|
1795
|
+
result: z.ZodNull;
|
|
1796
|
+
};
|
|
1797
|
+
/** A server `mcp/servers` says is `removable`. */
|
|
1798
|
+
'mcp/remove': {
|
|
1799
|
+
params: z.ZodObject<{
|
|
1800
|
+
name: z.ZodString;
|
|
1801
|
+
}, z.core.$strip>;
|
|
1802
|
+
result: z.ZodNull;
|
|
1803
|
+
};
|
|
1804
|
+
/** Connects a server that failed again, now; `mcp/servers` says how it went. */
|
|
1805
|
+
'mcp/reconnect': {
|
|
1806
|
+
params: z.ZodObject<{
|
|
1807
|
+
name: z.ZodString;
|
|
1808
|
+
}, z.core.$strip>;
|
|
1809
|
+
result: z.ZodNull;
|
|
1810
|
+
};
|
|
1067
1811
|
/** How long the agent's answers run, from the next prompt on, in every session. */
|
|
1068
1812
|
'preferences/answers': {
|
|
1069
1813
|
params: z.ZodObject<{
|
|
@@ -1082,6 +1826,13 @@ export declare const requests: {
|
|
|
1082
1826
|
}, z.core.$strip>;
|
|
1083
1827
|
result: z.ZodNull;
|
|
1084
1828
|
};
|
|
1829
|
+
/** Whether the user is notified when the agent waits for them or ends a long turn, from now on, as `/notifications` sets it. */
|
|
1830
|
+
'preferences/notifications': {
|
|
1831
|
+
params: z.ZodObject<{
|
|
1832
|
+
notifications: z.ZodBoolean;
|
|
1833
|
+
}, z.core.$strip>;
|
|
1834
|
+
result: z.ZodNull;
|
|
1835
|
+
};
|
|
1085
1836
|
/** Puts an announcement away for good, on every machine of its user. */
|
|
1086
1837
|
'announcements/dismiss': {
|
|
1087
1838
|
params: z.ZodObject<{
|
|
@@ -1089,13 +1840,14 @@ export declare const requests: {
|
|
|
1089
1840
|
}, z.core.$strip>;
|
|
1090
1841
|
result: z.ZodNull;
|
|
1091
1842
|
};
|
|
1092
|
-
/** Opens the browser and is answered once signing in ends; meanwhile its link comes as `mcp/sign-in-link`. */
|
|
1843
|
+
/** Opens the browser and is answered once signing in ends, with why when it failed; meanwhile its link comes as `mcp/sign-in-link`. */
|
|
1093
1844
|
'mcp/sign-in': {
|
|
1094
1845
|
params: z.ZodObject<{
|
|
1095
1846
|
name: z.ZodString;
|
|
1096
1847
|
}, z.core.$strip>;
|
|
1097
1848
|
result: z.ZodObject<{
|
|
1098
1849
|
signedIn: z.ZodBoolean;
|
|
1850
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
1099
1851
|
}, z.core.$strip>;
|
|
1100
1852
|
};
|
|
1101
1853
|
'mcp/sign-in-cancel': {
|
|
@@ -1104,6 +1856,13 @@ export declare const requests: {
|
|
|
1104
1856
|
}, z.core.$strip>;
|
|
1105
1857
|
result: z.ZodNull;
|
|
1106
1858
|
};
|
|
1859
|
+
/** Drops Jinion's sign-in to a server `mcp/servers` says is `signedIn`; it asks to sign in again from the next turn. */
|
|
1860
|
+
'mcp/sign-out': {
|
|
1861
|
+
params: z.ZodObject<{
|
|
1862
|
+
name: z.ZodString;
|
|
1863
|
+
}, z.core.$strip>;
|
|
1864
|
+
result: z.ZodNull;
|
|
1865
|
+
};
|
|
1107
1866
|
/** Emails a code that `jinion/sign-in-email` takes, for 10 minutes. */
|
|
1108
1867
|
'jinion/send-code': {
|
|
1109
1868
|
params: z.ZodObject<{
|
|
@@ -1209,6 +1968,61 @@ export declare const requests: {
|
|
|
1209
1968
|
usedBy: z.ZodOptional<z.ZodString>;
|
|
1210
1969
|
}, z.core.$strip>>;
|
|
1211
1970
|
};
|
|
1971
|
+
/** A skill whose `path` the skill list gives, with its instructions and the other files of its folder. */
|
|
1972
|
+
'skills/read': {
|
|
1973
|
+
params: z.ZodObject<{
|
|
1974
|
+
name: z.ZodString;
|
|
1975
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
1976
|
+
}, z.core.$strip>;
|
|
1977
|
+
result: z.ZodObject<{
|
|
1978
|
+
name: z.ZodString;
|
|
1979
|
+
description: z.ZodString;
|
|
1980
|
+
instructions: z.ZodString;
|
|
1981
|
+
files: z.ZodArray<z.ZodString>;
|
|
1982
|
+
editable: z.ZodBoolean;
|
|
1983
|
+
}, z.core.$strip>;
|
|
1984
|
+
};
|
|
1985
|
+
'skills/read-file': {
|
|
1986
|
+
params: z.ZodObject<{
|
|
1987
|
+
name: z.ZodString;
|
|
1988
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
1989
|
+
file: z.ZodString;
|
|
1990
|
+
}, z.core.$strip>;
|
|
1991
|
+
result: z.ZodObject<{
|
|
1992
|
+
content: z.ZodString;
|
|
1993
|
+
}, z.core.$strip>;
|
|
1994
|
+
};
|
|
1995
|
+
/** A new skill with `scope`, or else one the list says is `editable`; refused with what to change, such as a name that's taken. */
|
|
1996
|
+
'skills/write': {
|
|
1997
|
+
params: z.ZodObject<{
|
|
1998
|
+
name: z.ZodString;
|
|
1999
|
+
description: z.ZodString;
|
|
2000
|
+
instructions: z.ZodString;
|
|
2001
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
2002
|
+
project: "project";
|
|
2003
|
+
user: "user";
|
|
2004
|
+
}>>;
|
|
2005
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
}, z.core.$strip>;
|
|
2007
|
+
result: z.ZodNull;
|
|
2008
|
+
};
|
|
2009
|
+
'skills/write-file': {
|
|
2010
|
+
params: z.ZodObject<{
|
|
2011
|
+
name: z.ZodString;
|
|
2012
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
2013
|
+
file: z.ZodString;
|
|
2014
|
+
content: z.ZodString;
|
|
2015
|
+
}, z.core.$strip>;
|
|
2016
|
+
result: z.ZodNull;
|
|
2017
|
+
};
|
|
2018
|
+
/** Its whole folder. */
|
|
2019
|
+
'skills/delete': {
|
|
2020
|
+
params: z.ZodObject<{
|
|
2021
|
+
name: z.ZodString;
|
|
2022
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
2023
|
+
}, z.core.$strip>;
|
|
2024
|
+
result: z.ZodNull;
|
|
2025
|
+
};
|
|
1212
2026
|
'memory/list': {
|
|
1213
2027
|
params: z.ZodObject<{}, z.core.$strip>;
|
|
1214
2028
|
result: z.ZodArray<z.ZodObject<{
|
|
@@ -1240,6 +2054,42 @@ export declare const requests: {
|
|
|
1240
2054
|
}, z.core.$strip>;
|
|
1241
2055
|
result: z.ZodNull;
|
|
1242
2056
|
};
|
|
2057
|
+
/** Claude Code's notes for every project and for this one, as `/memory import` brings them; those here already stay. */
|
|
2058
|
+
'memory/import': {
|
|
2059
|
+
params: z.ZodObject<{}, z.core.$strip>;
|
|
2060
|
+
result: z.ZodObject<{
|
|
2061
|
+
added: z.ZodNumber;
|
|
2062
|
+
skipped: z.ZodNumber;
|
|
2063
|
+
}, z.core.$strip>;
|
|
2064
|
+
};
|
|
2065
|
+
/** What Jinion found of Claude Code's setup for this project, before anything is imported; `login: false` doesn't ask Claude Code who is signed in. */
|
|
2066
|
+
'setup/claude': {
|
|
2067
|
+
params: z.ZodObject<{
|
|
2068
|
+
login: z.ZodOptional<z.ZodBoolean>;
|
|
2069
|
+
}, z.core.$strip>;
|
|
2070
|
+
result: z.ZodObject<{
|
|
2071
|
+
login: z.ZodOptional<z.ZodObject<{
|
|
2072
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2073
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
2074
|
+
}, z.core.$strip>>;
|
|
2075
|
+
skills: z.ZodNumber;
|
|
2076
|
+
plugins: z.ZodNumber;
|
|
2077
|
+
mcpServers: z.ZodNumber;
|
|
2078
|
+
instructions: z.ZodBoolean;
|
|
2079
|
+
notes: z.ZodObject<{
|
|
2080
|
+
user: z.ZodNumber;
|
|
2081
|
+
project: z.ZodNumber;
|
|
2082
|
+
already: z.ZodNumber;
|
|
2083
|
+
}, z.core.$strip>;
|
|
2084
|
+
offered: z.ZodBoolean;
|
|
2085
|
+
projectOffered: z.ZodBoolean;
|
|
2086
|
+
}, z.core.$strip>;
|
|
2087
|
+
};
|
|
2088
|
+
/** Onboarding's step and this project's notes were offered, whether the user brought them in or not. */
|
|
2089
|
+
'setup/claude-done': {
|
|
2090
|
+
params: z.ZodObject<{}, z.core.$strip>;
|
|
2091
|
+
result: z.ZodNull;
|
|
2092
|
+
};
|
|
1243
2093
|
'usage/limits': {
|
|
1244
2094
|
params: z.ZodObject<{
|
|
1245
2095
|
drivers: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1555,6 +2405,8 @@ export declare const notificationsToClient: {
|
|
|
1555
2405
|
}>;
|
|
1556
2406
|
group: z.ZodString;
|
|
1557
2407
|
argumentHint: z.ZodOptional<z.ZodString>;
|
|
2408
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2409
|
+
editable: z.ZodOptional<z.ZodBoolean>;
|
|
1558
2410
|
}, z.core.$strip>>;
|
|
1559
2411
|
}, z.core.$strip>, z.ZodObject<{
|
|
1560
2412
|
type: z.ZodLiteral<"sent">;
|
|
@@ -1612,6 +2464,9 @@ export declare const notificationsToClient: {
|
|
|
1612
2464
|
}, z.core.$strip>, z.ZodObject<{
|
|
1613
2465
|
type: z.ZodLiteral<"turn-start">;
|
|
1614
2466
|
reason: z.ZodOptional<z.ZodString>;
|
|
2467
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2468
|
+
type: z.ZodLiteral<"picked">;
|
|
2469
|
+
text: z.ZodString;
|
|
1615
2470
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1616
2471
|
type: z.ZodLiteral<"compaction">;
|
|
1617
2472
|
state: z.ZodLiteral<"running">;
|
|
@@ -1739,6 +2594,7 @@ export declare const notificationsToClient: {
|
|
|
1739
2594
|
size: number;
|
|
1740
2595
|
reading?: string | undefined;
|
|
1741
2596
|
}[] | undefined;
|
|
2597
|
+
folder?: string | undefined;
|
|
1742
2598
|
wantsWorktree: boolean;
|
|
1743
2599
|
working: boolean;
|
|
1744
2600
|
ratings?: Record<string, "disliked" | "liked"> | undefined;
|
|
@@ -1818,6 +2674,7 @@ export declare const notificationsToClient: {
|
|
|
1818
2674
|
size: number;
|
|
1819
2675
|
reading?: string | undefined;
|
|
1820
2676
|
}[] | undefined;
|
|
2677
|
+
folder?: string | undefined;
|
|
1821
2678
|
wantsWorktree: boolean;
|
|
1822
2679
|
working: boolean;
|
|
1823
2680
|
ratings?: Record<string, "disliked" | "liked"> | undefined;
|
|
@@ -1831,6 +2688,8 @@ export declare const notificationsToClient: {
|
|
|
1831
2688
|
features: {
|
|
1832
2689
|
accounts: boolean;
|
|
1833
2690
|
mcp: boolean;
|
|
2691
|
+
addMcp?: boolean | undefined;
|
|
2692
|
+
editSkills?: boolean | undefined;
|
|
1834
2693
|
usage: boolean;
|
|
1835
2694
|
history: boolean;
|
|
1836
2695
|
};
|
|
@@ -1856,6 +2715,8 @@ export declare const notificationsToClient: {
|
|
|
1856
2715
|
source: "mcp" | "skill";
|
|
1857
2716
|
group: string;
|
|
1858
2717
|
argumentHint?: string | undefined;
|
|
2718
|
+
path?: string | undefined;
|
|
2719
|
+
editable?: boolean | undefined;
|
|
1859
2720
|
}[]>;
|
|
1860
2721
|
seenLimits: Record<string, {
|
|
1861
2722
|
windows: {
|
|
@@ -1876,6 +2737,8 @@ export declare const notificationsToClient: {
|
|
|
1876
2737
|
activated?: boolean | undefined;
|
|
1877
2738
|
} | null | undefined;
|
|
1878
2739
|
signals?: boolean | undefined;
|
|
2740
|
+
notifications?: boolean | undefined;
|
|
2741
|
+
claudeSetupOffered?: boolean | undefined;
|
|
1879
2742
|
announcements?: {
|
|
1880
2743
|
id: number;
|
|
1881
2744
|
text: string;
|
|
@@ -1891,6 +2754,8 @@ export declare const notificationsToClient: {
|
|
|
1891
2754
|
features: {
|
|
1892
2755
|
accounts: boolean;
|
|
1893
2756
|
mcp: boolean;
|
|
2757
|
+
addMcp?: boolean | undefined;
|
|
2758
|
+
editSkills?: boolean | undefined;
|
|
1894
2759
|
usage: boolean;
|
|
1895
2760
|
history: boolean;
|
|
1896
2761
|
};
|
|
@@ -1916,6 +2781,8 @@ export declare const notificationsToClient: {
|
|
|
1916
2781
|
source: "mcp" | "skill";
|
|
1917
2782
|
group: string;
|
|
1918
2783
|
argumentHint?: string | undefined;
|
|
2784
|
+
path?: string | undefined;
|
|
2785
|
+
editable?: boolean | undefined;
|
|
1919
2786
|
}[]>;
|
|
1920
2787
|
seenLimits: Record<string, {
|
|
1921
2788
|
windows: {
|
|
@@ -1936,6 +2803,8 @@ export declare const notificationsToClient: {
|
|
|
1936
2803
|
activated?: boolean | undefined;
|
|
1937
2804
|
} | null | undefined;
|
|
1938
2805
|
signals?: boolean | undefined;
|
|
2806
|
+
notifications?: boolean | undefined;
|
|
2807
|
+
claudeSetupOffered?: boolean | undefined;
|
|
1939
2808
|
announcements?: {
|
|
1940
2809
|
id: number;
|
|
1941
2810
|
text: string;
|
|
@@ -1994,6 +2863,10 @@ export declare const notificationsToClient: {
|
|
|
1994
2863
|
}, z.core.$strip>, z.ZodObject<{
|
|
1995
2864
|
id: z.ZodLiteral<"feedback">;
|
|
1996
2865
|
entry: z.ZodOptional<z.ZodString>;
|
|
2866
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2867
|
+
id: z.ZodLiteral<"map">;
|
|
2868
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2869
|
+
id: z.ZodLiteral<"release-notes">;
|
|
1997
2870
|
}, z.core.$strip>], "id">;
|
|
1998
2871
|
}, z.core.$strip>;
|
|
1999
2872
|
/** Text for the prompt of `session`, e.g. the message a rewind went back to. */
|
|
@@ -2052,6 +2925,83 @@ export declare const notificationsToClient: {
|
|
|
2052
2925
|
seq: z.ZodNumber;
|
|
2053
2926
|
data: z.ZodString;
|
|
2054
2927
|
}, z.core.$strip>;
|
|
2928
|
+
/** A file `files/watch` named changed on disk, by the agent, a save or another program. */
|
|
2929
|
+
'files/changed': z.ZodObject<{
|
|
2930
|
+
session: z.ZodString;
|
|
2931
|
+
path: z.ZodString;
|
|
2932
|
+
modified: z.ZodOptional<z.ZodNumber>;
|
|
2933
|
+
movedTo: z.ZodOptional<z.ZodString>;
|
|
2934
|
+
by: z.ZodOptional<z.ZodEnum<{
|
|
2935
|
+
agent: "agent";
|
|
2936
|
+
other: "other";
|
|
2937
|
+
}>>;
|
|
2938
|
+
}, z.core.$strip>;
|
|
2939
|
+
/** A file's errors and warnings changed: all of them as they are now, none once it has none. */
|
|
2940
|
+
'lsp/diagnostics': z.ZodObject<{
|
|
2941
|
+
path: z.ZodString;
|
|
2942
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2943
|
+
range: z.ZodObject<{
|
|
2944
|
+
start: z.ZodObject<{
|
|
2945
|
+
line: z.ZodNumber;
|
|
2946
|
+
character: z.ZodNumber;
|
|
2947
|
+
}, z.core.$strip>;
|
|
2948
|
+
end: z.ZodObject<{
|
|
2949
|
+
line: z.ZodNumber;
|
|
2950
|
+
character: z.ZodNumber;
|
|
2951
|
+
}, z.core.$strip>;
|
|
2952
|
+
}, z.core.$strip>;
|
|
2953
|
+
severity: z.ZodEnum<{
|
|
2954
|
+
error: "error";
|
|
2955
|
+
hint: "hint";
|
|
2956
|
+
info: "info";
|
|
2957
|
+
warning: "warning";
|
|
2958
|
+
}>;
|
|
2959
|
+
message: z.ZodString;
|
|
2960
|
+
source: z.ZodOptional<z.ZodString>;
|
|
2961
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2962
|
+
unnecessary: z.ZodOptional<z.ZodBoolean>;
|
|
2963
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
2964
|
+
}, z.core.$strip>>;
|
|
2965
|
+
session: z.ZodString;
|
|
2966
|
+
}, z.core.$strip>;
|
|
2967
|
+
/** A server of the folder of a file the client has open started, ended or couldn't start. */
|
|
2968
|
+
'lsp/server': z.ZodObject<{
|
|
2969
|
+
server: z.ZodEnum<{
|
|
2970
|
+
css: "css";
|
|
2971
|
+
html: "html";
|
|
2972
|
+
json: "json";
|
|
2973
|
+
typescript: "typescript";
|
|
2974
|
+
}>;
|
|
2975
|
+
state: z.ZodEnum<{
|
|
2976
|
+
failed: "failed";
|
|
2977
|
+
running: "running";
|
|
2978
|
+
starting: "starting";
|
|
2979
|
+
stopped: "stopped";
|
|
2980
|
+
}>;
|
|
2981
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2982
|
+
session: z.ZodString;
|
|
2983
|
+
}, z.core.$strip>;
|
|
2984
|
+
};
|
|
2985
|
+
/** What the server asks a client and waits on, only of a client that said at `initialize` it can. */
|
|
2986
|
+
export declare const requestsToClient: {
|
|
2987
|
+
/** Opens `url` in the Preview beside the thread the user looks at; answered once the page loaded, or with why it didn't. */
|
|
2988
|
+
'preview/open': {
|
|
2989
|
+
params: z.ZodObject<{
|
|
2990
|
+
url: z.ZodString;
|
|
2991
|
+
}, z.core.$strip>;
|
|
2992
|
+
result: z.ZodObject<{
|
|
2993
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2994
|
+
}, z.core.$strip>;
|
|
2995
|
+
};
|
|
2996
|
+
/** The page the Preview shows, as drawn now; `null` when it shows none. */
|
|
2997
|
+
'preview/capture': {
|
|
2998
|
+
params: z.ZodObject<{}, z.core.$strip>;
|
|
2999
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
3000
|
+
url: z.ZodString;
|
|
3001
|
+
data: z.ZodString;
|
|
3002
|
+
mediaType: z.ZodLiteral<"image/png">;
|
|
3003
|
+
}, z.core.$strip>>;
|
|
3004
|
+
};
|
|
2055
3005
|
};
|
|
2056
3006
|
/** The params of everything a client sends, as the server's peer checks them. */
|
|
2057
3007
|
export declare const clientSchemas: Record<string, z.ZodType>;
|
|
@@ -2069,9 +3019,15 @@ export type ServerContract = {
|
|
|
2069
3019
|
};
|
|
2070
3020
|
notifications: Inferred<typeof notificationsToServer>;
|
|
2071
3021
|
};
|
|
2072
|
-
|
|
3022
|
+
type RequestsToClient = typeof requestsToClient;
|
|
3023
|
+
/** What a client answers. */
|
|
2073
3024
|
export type ClientContract = {
|
|
2074
|
-
requests:
|
|
3025
|
+
requests: {
|
|
3026
|
+
[M in keyof RequestsToClient]: {
|
|
3027
|
+
params: z.infer<RequestsToClient[M]['params']>;
|
|
3028
|
+
result: z.infer<RequestsToClient[M]['result']>;
|
|
3029
|
+
};
|
|
3030
|
+
};
|
|
2075
3031
|
notifications: Inferred<typeof notificationsToClient>;
|
|
2076
3032
|
};
|
|
2077
3033
|
//# sourceMappingURL=protocol.d.ts.map
|