prismalens 0.5.1 → 0.5.2
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/THIRD_PARTY_NOTICES.txt +82 -57
- package/node_modules/@prisma/adapter-better-sqlite3/package.json +2 -2
- package/node_modules/@prismalens/agent-adapters/LICENSE +201 -0
- package/node_modules/@prismalens/agent-adapters/README.md +3 -0
- package/node_modules/@prismalens/agent-adapters/THIRD_PARTY_LICENSES/@agentclientprotocol/claude-agent-acp/LICENSE +191 -0
- package/node_modules/@prismalens/agent-adapters/THIRD_PARTY_LICENSES/@agentclientprotocol/codex-acp/LICENSE +190 -0
- package/node_modules/@prismalens/agent-adapters/THIRD_PARTY_LICENSES/@anthropic-ai/claude-agent-sdk/LICENSE.md +1 -0
- package/node_modules/@prismalens/agent-adapters/THIRD_PARTY_LICENSES/@anthropic-ai/claude-agent-sdk/README.md +65 -0
- package/node_modules/@prismalens/agent-adapters/THIRD_PARTY_LICENSES/@openai/codex/LICENSE +204 -0
- package/node_modules/@prismalens/agent-adapters/THIRD_PARTY_LICENSES/@openai/codex/NOTICE +6 -0
- package/node_modules/@prismalens/agent-adapters/dist/index.d.ts +9 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/acp-agent.d.ts +1369 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/acp-subagents.d.ts +82 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/air-extension.d.ts +25 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/async-tasks.d.ts +117 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/auth-status.d.ts +140 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/clear-context-coordinator.d.ts +60 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/context-compaction-meta.d.ts +18 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/context-compaction.d.ts +132 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/diff.d.ts +13 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/elicitation.d.ts +138 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/exit-plan.d.ts +42 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/file-change-audit.d.ts +47 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/fork-session.d.ts +15 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/goal-extension.d.ts +36 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/hide-claude-auth.d.ts +152 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/index.d.ts +3 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/lib.d.ts +7 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/managed-policy.d.ts +19 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/native-subagents.d.ts +71 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/effects.d.ts +19 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/modes.d.ts +10 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/normalization.d.ts +6 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/filesystem.d.ts +9 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/shared.d.ts +44 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/shell.d.ts +5 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/tools.d.ts +11 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options.d.ts +5 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/presentation.d.ts +16 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/response.d.ts +11 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/resumed-session.d.ts +19 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-config-ids.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-effort.d.ts +14 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-failure-extension.d.ts +97 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-mode.d.ts +74 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-model.d.ts +41 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-notices.d.ts +41 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-timing.d.ts +15 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-titles.d.ts +77 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/settings.d.ts +68 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-result-meta.d.ts +8 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/tools.d.ts +98 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/usage-markdown.d.ts +7 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/claude-agent-acp/dist/utils.d.ts +16 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +1803 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/acp.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +5036 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/connection.d.ts +89 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/connection.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/connection.test.js +507 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/cookie-store.d.ts +26 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js +77 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/examples/agent.d.ts +2 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/examples/client.d.ts +2 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.d.ts +9 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.d.ts +2 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.d.ts +2 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.d.ts +2 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/http-stream.d.ts +33 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js +1380 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +603 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js +917 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/line-buffer.d.ts +22 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js +45 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/node-adapter.d.ts +17 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js +499 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/protocol-router.d.ts +37 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js +535 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/protocol.d.ts +11 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/protocol.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js +82 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.d.ts +183 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +51 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +6219 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +15215 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.d.ts +30 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js +93 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js +261 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js +536 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server-sse.d.ts +2 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js +53 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js +992 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server.d.ts +81 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/server.test.js +1116 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/sse.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/sse.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/sse.test.js +126 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/stream.d.ts +35 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/stream.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/stream.test.js +195 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.d.ts +8 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.d.ts +24 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.d.ts +9 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +957 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js +1287 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +946 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +42 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +6208 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +33267 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/ws-server.d.ts +14 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/ws-stream.d.ts +54 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js +836 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/ws-utils.d.ts +13 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js +42 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@anthropic-ai/claude-agent-sdk/agentSdkTypes.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@anthropic-ai/claude-agent-sdk/bridge.d.ts +378 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.d.ts +184 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@anthropic-ai/claude-agent-sdk/extractFromBunfs.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@anthropic-ai/claude-agent-sdk/sdk-tools.d.ts +4153 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/@anthropic-ai/claude-agent-sdk/sdk.d.ts +9551 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/default-browser/index.d.ts +29 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/define-lazy-prop/index.d.ts +31 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/convert/dmp.d.ts +8 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/convert/xml.d.ts +6 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/diff/array.d.ts +19 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/diff/base.d.ts +20 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/diff/character.d.ts +19 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/diff/css.d.ts +18 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/diff/json.d.ts +24 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/diff/line.d.ts +24 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/diff/sentence.d.ts +21 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/diff/word.d.ts +35 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/index.d.ts +20 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/patch/apply.d.ts +62 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/patch/create.d.ts +131 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/patch/line-endings.d.ts +17 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/patch/parse.d.ts +16 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/patch/reverse.d.ts +22 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/types.d.ts +260 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/util/array.d.ts +3 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/util/distance-iterator.d.ts +2 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/util/params.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/util/string.d.ts +30 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/convert/dmp.d.ts +8 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/convert/xml.d.ts +6 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/diff/array.d.ts +19 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/diff/base.d.ts +20 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/diff/character.d.ts +19 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/diff/css.d.ts +18 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/diff/json.d.ts +24 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/diff/line.d.ts +24 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/diff/sentence.d.ts +21 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/diff/word.d.ts +35 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/index.d.ts +20 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/patch/apply.d.ts +62 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/patch/create.d.ts +131 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/patch/line-endings.d.ts +17 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/patch/parse.d.ts +16 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/patch/reverse.d.ts +22 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/types.d.ts +260 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/util/array.d.ts +3 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/util/distance-iterator.d.ts +2 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/util/params.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/diff/libesm/util/string.d.ts +30 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/is-docker/index.d.ts +13 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/is-in-ssh/index.d.ts +15 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/is-inside-container/index.d.ts +13 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/is-wsl/index.d.ts +15 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/open/index.d.ts +158 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/powershell-utils/index.d.ts +175 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/run-applescript/index.d.ts +66 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/api.d.ts +14 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/events.d.ts +39 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/is.d.ts +7 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/node/main.d.ts +59 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/vscode-jsonrpc/typings/thenable.d.ts +5 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/wsl-utils/index.d.ts +180 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/index.d.ts +3 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/classic/schemas.d.ts +816 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/api.d.ts +335 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/checks.d.ts +294 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/core.d.ts +82 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/index.d.ts +19 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/regexes.d.ts +90 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/schemas.d.ts +1273 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/util.d.ts +278 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/index.d.ts +63 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4/mini/schemas.d.ts +480 -0
- package/node_modules/@prismalens/agent-adapters/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/@prismalens/agent-adapters/package.json +21 -6
- package/node_modules/@prismalens/api/dist/src/core/harness/repo-source.service.js +1 -0
- package/node_modules/@prismalens/api/public/THIRD_PARTY_NOTICES.txt +82 -57
- package/node_modules/@prismalens/api/public/assets/{Field-dI7mth89.js → Field-Blwn4QDs.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/Hint-I6G52Q_M.js +41 -0
- package/node_modules/@prismalens/api/public/assets/MergeDialog-DI7nb-pG.js +1 -0
- package/node_modules/@prismalens/api/public/assets/{ResolveDialog-D-swl2ib.js → ResolveDialog-CKyuzNtU.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/RunsMenu-B46B_gZU.js +3 -0
- package/node_modules/@prismalens/api/public/assets/{ServiceFormDialog-CtxQGmaD.js → ServiceFormDialog-CQm0Unxf.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/_authenticated-BPsBFlMh.js +1 -0
- package/node_modules/@prismalens/api/public/assets/_authenticated-BzbPxOeY.js +1 -0
- package/node_modules/@prismalens/api/public/assets/{_id-Due91CTg.js → _id-D_G5RMgK.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/_id-Da-m0w25.js +1 -0
- package/node_modules/@prismalens/api/public/assets/_id-NQNr5-yE.js +1 -0
- package/node_modules/@prismalens/api/public/assets/_id-mJSRa5Ke.js +1 -0
- package/node_modules/@prismalens/api/public/assets/alerts-D_IcsMcM.js +1 -0
- package/node_modules/@prismalens/api/public/assets/bundle-mjs-B_LDP-6b.js +1 -0
- package/node_modules/@prismalens/api/public/assets/button-Chns-8Ua.js +1 -0
- package/node_modules/@prismalens/api/public/assets/conversation-BGvYjBh3.js +158 -0
- package/node_modules/@prismalens/api/public/assets/desktop-DCOrT9cX.js +63 -0
- package/node_modules/@prismalens/api/public/assets/dist-Cnb_-T3N.js +1 -0
- package/node_modules/@prismalens/api/public/assets/fixes-DpzBzASh.js +1 -0
- package/node_modules/@prismalens/api/public/assets/{highlighted-body-KQOG7T2V-C0hkD05-.js → highlighted-body-KQOG7T2V-CDakMIg-.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/{incident-attention-Edky2Ay0.js → incident-attention-hT3OUOPc.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/incidents-C6Rq41eK.js +1 -0
- package/node_modules/@prismalens/api/public/assets/index-BnrHkPFh.js +23 -0
- package/node_modules/@prismalens/api/public/assets/jsx-runtime-CXCudH8Z.js +1 -0
- package/node_modules/@prismalens/api/public/assets/{loader-circle-CfKw5wFE.js → loader-circle-C8a_Hnk6.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/matchContext-IH8ddzQs.js +2 -0
- package/node_modules/@prismalens/api/public/assets/mermaid-MCJ5UELQ-CLXWgSuk.js +1 -0
- package/node_modules/@prismalens/api/public/assets/{pair-DuWT-CtT.js → pair-DQ8Y1YX_.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/plus-Tlbf1bdm.js +1 -0
- package/node_modules/@prismalens/api/public/assets/react-dom-Dvr6R6wf.js +1 -0
- package/node_modules/@prismalens/api/public/assets/{route-Cc4UeO_y.js → route-CBoZ7fHn.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/route-CPchh9kB.js +1 -0
- package/node_modules/@prismalens/api/public/assets/route-Cp0gs_ct.js +1 -0
- package/node_modules/@prismalens/api/public/assets/route-DwYYk8Dy.js +1 -0
- package/node_modules/@prismalens/api/public/assets/select-DjrA0HDy.js +1 -0
- package/node_modules/@prismalens/api/public/assets/services-CrKDtwBW.js +1 -0
- package/node_modules/@prismalens/api/public/assets/settings-0OoZAYmm.js +1 -0
- package/node_modules/@prismalens/api/public/assets/skeleton-CnspEYa-.js +1 -0
- package/node_modules/@prismalens/api/public/assets/{state-tone-Ba9ig-4k.js → state-tone-BFcai3hr.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/textarea-DuN-b6di.js +1 -0
- package/node_modules/@prismalens/api/public/assets/{use-escape-back-CgXRn8uv.js → use-escape-back-7fyalpsD.js} +1 -1
- package/node_modules/@prismalens/api/public/assets/use-first-open-JY-c8X8V.js +1 -0
- package/node_modules/@prismalens/api/public/assets/useInvestigationRun-_lSx2TPz.js +1 -0
- package/node_modules/@prismalens/api/public/assets/useNavigate-CPXPooFu.js +1 -0
- package/node_modules/@prismalens/api/public/assets/useRouter-BU35VTbH.js +1 -0
- package/node_modules/@prismalens/api/public/assets/useSearch-CRD31eWF.js +1 -0
- package/node_modules/@prismalens/api/public/assets/useSelector-DoFJYpky.js +1 -0
- package/node_modules/@prismalens/api/public/assets/{utils-BZQvbTCD.js → utils-DD0Xz0Py.js} +1 -1
- package/node_modules/@prismalens/api/public/index.html +2 -2
- package/node_modules/@prismalens/config/dist/providers/model-catalogue.json +2 -2
- package/node_modules/@prismalens/database/dist/prisma/generated/internal/class.js +2 -2
- package/node_modules/@prismalens/database/dist/prisma/generated/internal/prismaNamespace.js +2 -2
- package/node_modules/@prismalens/engine/dist/adapter/acp-adapter.js +38 -1
- package/node_modules/@prismalens/engine/dist/run/harness-doctor.js +9 -1
- package/node_modules/@prismalens/engine/dist/run/investigate.js +1 -1
- package/node_modules/@prismalens/engine/dist/run/prompt.js +3 -0
- package/node_modules/@prismalens/engine/dist/runner/acp-client.js +5 -1
- package/package.json +27 -27
- package/node_modules/@prismalens/api/public/assets/Hint-D3aC42I-.js +0 -41
- package/node_modules/@prismalens/api/public/assets/MergeDialog-DDE8tX3n.js +0 -1
- package/node_modules/@prismalens/api/public/assets/Mono-9RkwFQz6.js +0 -1
- package/node_modules/@prismalens/api/public/assets/NewIncident-Zw5Jcao6.js +0 -1
- package/node_modules/@prismalens/api/public/assets/RunsMenu-CEu6e24R.js +0 -3
- package/node_modules/@prismalens/api/public/assets/_authenticated-BH_Nr03P.js +0 -1
- package/node_modules/@prismalens/api/public/assets/_authenticated-EivYBtHs.js +0 -1
- package/node_modules/@prismalens/api/public/assets/_id-B6W3_quZ.js +0 -1
- package/node_modules/@prismalens/api/public/assets/_id-B8h5SPwz.js +0 -1
- package/node_modules/@prismalens/api/public/assets/_id-C9BUtx3G.js +0 -1
- package/node_modules/@prismalens/api/public/assets/alert-dialog-D5xZvMIR.js +0 -3
- package/node_modules/@prismalens/api/public/assets/alerts-D8oKAWDJ.js +0 -1
- package/node_modules/@prismalens/api/public/assets/bundle-mjs-cJTHqqzI.js +0 -1
- package/node_modules/@prismalens/api/public/assets/button-Cr8PrWdC.js +0 -1
- package/node_modules/@prismalens/api/public/assets/chevron-right-tMCvSyxl.js +0 -1
- package/node_modules/@prismalens/api/public/assets/conversation-DHY3T60s.js +0 -158
- package/node_modules/@prismalens/api/public/assets/desktop-B9RvObhX.js +0 -58
- package/node_modules/@prismalens/api/public/assets/dist-zoA3XqRA.js +0 -1
- package/node_modules/@prismalens/api/public/assets/fixes-D-FUCZJt.js +0 -1
- package/node_modules/@prismalens/api/public/assets/format-time-CGRUxfR2.js +0 -1
- package/node_modules/@prismalens/api/public/assets/get-error-message-XWlcOfOx.js +0 -1
- package/node_modules/@prismalens/api/public/assets/incidents-BdT8KicR.js +0 -1
- package/node_modules/@prismalens/api/public/assets/index-CAX__NsJ.js +0 -21
- package/node_modules/@prismalens/api/public/assets/jsx-runtime-B-hcVAMW.js +0 -1
- package/node_modules/@prismalens/api/public/assets/lazyRouteComponent-C-LOuZQf.js +0 -1
- package/node_modules/@prismalens/api/public/assets/live-refresh-BjrOGhpR.js +0 -1
- package/node_modules/@prismalens/api/public/assets/matchContext-DyXrH4xk.js +0 -1
- package/node_modules/@prismalens/api/public/assets/mermaid-MCJ5UELQ-DHfZwKb6.js +0 -1
- package/node_modules/@prismalens/api/public/assets/model-selector-DDUMPzEw.js +0 -2
- package/node_modules/@prismalens/api/public/assets/plus-BV1g6VPp.js +0 -1
- package/node_modules/@prismalens/api/public/assets/preload-helper-BZ1Pz5am.js +0 -1
- package/node_modules/@prismalens/api/public/assets/react-dom-Cix4fOWO.js +0 -1
- package/node_modules/@prismalens/api/public/assets/root-DLTE-HSj.js +0 -1
- package/node_modules/@prismalens/api/public/assets/route-1TSuy85Z.js +0 -1
- package/node_modules/@prismalens/api/public/assets/route-BCBYAoCj.js +0 -1
- package/node_modules/@prismalens/api/public/assets/route-CurA5hZv.js +0 -1
- package/node_modules/@prismalens/api/public/assets/select-ywBitXld.js +0 -1
- package/node_modules/@prismalens/api/public/assets/services-CXVezw7r.js +0 -1
- package/node_modules/@prismalens/api/public/assets/settings-BPFYV0nc.js +0 -1
- package/node_modules/@prismalens/api/public/assets/skeleton-BmmBz9ps.js +0 -1
- package/node_modules/@prismalens/api/public/assets/textarea-Cqcau6oZ.js +0 -1
- package/node_modules/@prismalens/api/public/assets/use-back-BO8UKjVe.js +0 -1
- package/node_modules/@prismalens/api/public/assets/use-first-open-Bi42wite.js +0 -1
- package/node_modules/@prismalens/api/public/assets/use-sliding-mark-E_-I6D6E.js +0 -1
- package/node_modules/@prismalens/api/public/assets/useInvestigationRun-C352wvI5.js +0 -1
- package/node_modules/@prismalens/api/public/assets/useLocation-abth45bR.js +0 -1
- package/node_modules/@prismalens/api/public/assets/useNavigate-zph-3gLZ.js +0 -1
- package/node_modules/@prismalens/api/public/assets/useRouter-BGpAXxmD.js +0 -1
- package/node_modules/@prismalens/api/public/assets/useSearch-BT67bTwQ.js +0 -1
- package/node_modules/@prismalens/api/public/assets/useSelector-CMoDyMzz.js +0 -1
- package/node_modules/@prismalens/api/public/assets/utils-DjD33h0z.js +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type Browser = {
|
|
2
|
+
/**
|
|
3
|
+
Human-readadable name of the browser.
|
|
4
|
+
*/
|
|
5
|
+
name: string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
The unique identifier for the browser on the current platform:
|
|
9
|
+
- On macOS, it's the app's bundle identifier.
|
|
10
|
+
- On Linux, it's the desktop file identifier (from `xdg-mime`).
|
|
11
|
+
- On Windows, it's an invented identifier, because apps on Windows does not have identifiers.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
Get the default browser for the current platform.
|
|
18
|
+
|
|
19
|
+
@returns A promise for the browser.
|
|
20
|
+
|
|
21
|
+
@example
|
|
22
|
+
```
|
|
23
|
+
import defaultBrowser from 'default-browser';
|
|
24
|
+
|
|
25
|
+
console.log(await defaultBrowser());
|
|
26
|
+
//=> {name: 'Safari', id: 'com.apple.Safari'}
|
|
27
|
+
```
|
|
28
|
+
*/
|
|
29
|
+
export default function defaultBrowser(): Promise<Browser>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Define a [lazily evaluated](https://en.wikipedia.org/wiki/Lazy_evaluation) property on an object.
|
|
3
|
+
|
|
4
|
+
@param object - Object to add the property to.
|
|
5
|
+
@param propertyName - Name of the property to add.
|
|
6
|
+
@param valueGetter - Called the first time `propertyName` is accessed.
|
|
7
|
+
|
|
8
|
+
@example
|
|
9
|
+
```
|
|
10
|
+
import defineLazyProperty from 'define-lazy-prop';
|
|
11
|
+
|
|
12
|
+
const unicorn = {
|
|
13
|
+
// …
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
defineLazyProperty(unicorn, 'rainbow', () => expensiveComputation());
|
|
17
|
+
|
|
18
|
+
app.on('user-action', () => {
|
|
19
|
+
doSomething(unicorn.rainbow);
|
|
20
|
+
});
|
|
21
|
+
```
|
|
22
|
+
*/
|
|
23
|
+
export default function defineLazyProperty<
|
|
24
|
+
ObjectType extends Record<string, any>,
|
|
25
|
+
PropertyNameType extends string,
|
|
26
|
+
PropertyValueType
|
|
27
|
+
>(
|
|
28
|
+
object: ObjectType,
|
|
29
|
+
propertyName: PropertyNameType,
|
|
30
|
+
valueGetter: () => PropertyValueType
|
|
31
|
+
): ObjectType & {[K in PropertyNameType]: PropertyValueType};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChangeObject } from '../types.js';
|
|
2
|
+
type DmpOperation = 1 | 0 | -1;
|
|
3
|
+
/**
|
|
4
|
+
* converts a list of change objects to the format returned by Google's [diff-match-patch](https://github.com/google/diff-match-patch) library
|
|
5
|
+
*/
|
|
6
|
+
export declare function convertChangesToDMP<ValueT>(changes: ChangeObject<ValueT>[]): [DmpOperation, ValueT][];
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=dmp.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Diff from './base.js';
|
|
2
|
+
import type { ChangeObject, DiffArraysOptionsNonabortable, CallbackOptionNonabortable, DiffArraysOptionsAbortable, DiffCallbackNonabortable, CallbackOptionAbortable } from '../types.js';
|
|
3
|
+
declare class ArrayDiff<T> extends Diff<T, Array<T>> {
|
|
4
|
+
tokenize(value: Array<T>): T[];
|
|
5
|
+
join(value: Array<T>): T[];
|
|
6
|
+
removeEmpty(value: Array<T>): T[];
|
|
7
|
+
}
|
|
8
|
+
export declare const arrayDiff: ArrayDiff<unknown>;
|
|
9
|
+
/**
|
|
10
|
+
* diffs two arrays of tokens, comparing each item for strict equality (===).
|
|
11
|
+
* @returns a list of change objects.
|
|
12
|
+
*/
|
|
13
|
+
export declare function diffArrays<T>(oldArr: T[], newArr: T[], options: DiffCallbackNonabortable<T[]>): undefined;
|
|
14
|
+
export declare function diffArrays<T>(oldArr: T[], newArr: T[], options: DiffArraysOptionsAbortable<T> & CallbackOptionAbortable<T[]>): undefined;
|
|
15
|
+
export declare function diffArrays<T>(oldArr: T[], newArr: T[], options: DiffArraysOptionsNonabortable<T> & CallbackOptionNonabortable<T[]>): undefined;
|
|
16
|
+
export declare function diffArrays<T>(oldArr: T[], newArr: T[], options: DiffArraysOptionsAbortable<T>): ChangeObject<T[]>[] | undefined;
|
|
17
|
+
export declare function diffArrays<T>(oldArr: T[], newArr: T[], options?: DiffArraysOptionsNonabortable<T>): ChangeObject<T[]>[];
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=array.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ChangeObject, AllDiffOptions, AbortableDiffOptions, DiffCallbackNonabortable, CallbackOptionAbortable, CallbackOptionNonabortable } from '../types.js';
|
|
2
|
+
export default class Diff<TokenT, ValueT extends Iterable<TokenT> = Iterable<TokenT>, InputValueT = ValueT> {
|
|
3
|
+
diff(oldStr: InputValueT, newStr: InputValueT, options: DiffCallbackNonabortable<ValueT>): undefined;
|
|
4
|
+
diff(oldStr: InputValueT, newStr: InputValueT, options: AllDiffOptions & AbortableDiffOptions & CallbackOptionAbortable<ValueT>): undefined;
|
|
5
|
+
diff(oldStr: InputValueT, newStr: InputValueT, options: AllDiffOptions & CallbackOptionNonabortable<ValueT>): undefined;
|
|
6
|
+
diff(oldStr: InputValueT, newStr: InputValueT, options: AllDiffOptions & AbortableDiffOptions): ChangeObject<ValueT>[] | undefined;
|
|
7
|
+
diff(oldStr: InputValueT, newStr: InputValueT, options?: AllDiffOptions): ChangeObject<ValueT>[];
|
|
8
|
+
private diffWithOptionsObj;
|
|
9
|
+
private addToPath;
|
|
10
|
+
private extractCommon;
|
|
11
|
+
equals(left: TokenT, right: TokenT, options: AllDiffOptions): boolean;
|
|
12
|
+
removeEmpty(array: TokenT[]): TokenT[];
|
|
13
|
+
castInput(value: InputValueT, options: AllDiffOptions): ValueT;
|
|
14
|
+
tokenize(value: ValueT, options: AllDiffOptions): TokenT[];
|
|
15
|
+
join(chars: TokenT[]): ValueT;
|
|
16
|
+
postProcess(changeObjects: ChangeObject<ValueT>[], options: AllDiffOptions): ChangeObject<ValueT>[];
|
|
17
|
+
get useLongestToken(): boolean;
|
|
18
|
+
private buildValues;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Diff from './base.js';
|
|
2
|
+
import type { ChangeObject, CallbackOptionAbortable, CallbackOptionNonabortable, DiffCallbackNonabortable, DiffCharsOptionsAbortable, DiffCharsOptionsNonabortable } from '../types.js';
|
|
3
|
+
declare class CharacterDiff extends Diff<string, string> {
|
|
4
|
+
}
|
|
5
|
+
export declare const characterDiff: CharacterDiff;
|
|
6
|
+
/**
|
|
7
|
+
* diffs two blocks of text, treating each character as a token.
|
|
8
|
+
*
|
|
9
|
+
* ("Characters" here means Unicode code points - the elements you get when you loop over a string with a `for ... of ...` loop.)
|
|
10
|
+
*
|
|
11
|
+
* @returns a list of change objects.
|
|
12
|
+
*/
|
|
13
|
+
export declare function diffChars(oldStr: string, newStr: string, options: DiffCallbackNonabortable<string>): undefined;
|
|
14
|
+
export declare function diffChars(oldStr: string, newStr: string, options: DiffCharsOptionsAbortable & CallbackOptionAbortable<string>): undefined;
|
|
15
|
+
export declare function diffChars(oldStr: string, newStr: string, options: DiffCharsOptionsNonabortable & CallbackOptionNonabortable<string>): undefined;
|
|
16
|
+
export declare function diffChars(oldStr: string, newStr: string, options: DiffCharsOptionsAbortable): ChangeObject<string>[] | undefined;
|
|
17
|
+
export declare function diffChars(oldStr: string, newStr: string, options?: DiffCharsOptionsNonabortable): ChangeObject<string>[];
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=character.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Diff from './base.js';
|
|
2
|
+
import type { ChangeObject, CallbackOptionAbortable, CallbackOptionNonabortable, DiffCallbackNonabortable, DiffCssOptionsAbortable, DiffCssOptionsNonabortable } from '../types.js';
|
|
3
|
+
declare class CssDiff extends Diff<string, string> {
|
|
4
|
+
tokenize(value: string): string[];
|
|
5
|
+
}
|
|
6
|
+
export declare const cssDiff: CssDiff;
|
|
7
|
+
/**
|
|
8
|
+
* diffs two blocks of text, comparing CSS tokens.
|
|
9
|
+
*
|
|
10
|
+
* @returns a list of change objects.
|
|
11
|
+
*/
|
|
12
|
+
export declare function diffCss(oldStr: string, newStr: string, options: DiffCallbackNonabortable<string>): undefined;
|
|
13
|
+
export declare function diffCss(oldStr: string, newStr: string, options: DiffCssOptionsAbortable & CallbackOptionAbortable<string>): undefined;
|
|
14
|
+
export declare function diffCss(oldStr: string, newStr: string, options: DiffCssOptionsNonabortable & CallbackOptionNonabortable<string>): undefined;
|
|
15
|
+
export declare function diffCss(oldStr: string, newStr: string, options: DiffCssOptionsAbortable): ChangeObject<string>[] | undefined;
|
|
16
|
+
export declare function diffCss(oldStr: string, newStr: string, options?: DiffCssOptionsNonabortable): ChangeObject<string>[];
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=css.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Diff from './base.js';
|
|
2
|
+
import type { ChangeObject, CallbackOptionAbortable, CallbackOptionNonabortable, DiffCallbackNonabortable, DiffJsonOptionsAbortable, DiffJsonOptionsNonabortable } from '../types.js';
|
|
3
|
+
import { tokenize } from './line.js';
|
|
4
|
+
declare class JsonDiff extends Diff<string, string, string | object> {
|
|
5
|
+
get useLongestToken(): boolean;
|
|
6
|
+
tokenize: typeof tokenize;
|
|
7
|
+
castInput(value: string | object, options: DiffJsonOptionsNonabortable | DiffJsonOptionsAbortable): string;
|
|
8
|
+
equals(left: string, right: string, options: DiffJsonOptionsNonabortable | DiffJsonOptionsAbortable): boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const jsonDiff: JsonDiff;
|
|
11
|
+
/**
|
|
12
|
+
* diffs two JSON-serializable objects by first serializing them to prettily-formatted JSON and then treating each line of the JSON as a token.
|
|
13
|
+
* Object properties are ordered alphabetically in the serialized JSON, so the order of properties in the objects being compared doesn't affect the result.
|
|
14
|
+
*
|
|
15
|
+
* @returns a list of change objects.
|
|
16
|
+
*/
|
|
17
|
+
export declare function diffJson(oldStr: string | object, newStr: string | object, options: DiffCallbackNonabortable<string>): undefined;
|
|
18
|
+
export declare function diffJson(oldStr: string | object, newStr: string | object, options: DiffJsonOptionsAbortable & CallbackOptionAbortable<string>): undefined;
|
|
19
|
+
export declare function diffJson(oldStr: string | object, newStr: string | object, options: DiffJsonOptionsNonabortable & CallbackOptionNonabortable<string>): undefined;
|
|
20
|
+
export declare function diffJson(oldStr: string | object, newStr: string | object, options: DiffJsonOptionsAbortable): ChangeObject<string>[] | undefined;
|
|
21
|
+
export declare function diffJson(oldStr: string | object, newStr: string | object, options?: DiffJsonOptionsNonabortable): ChangeObject<string>[];
|
|
22
|
+
export declare function canonicalize(obj: any, stack: Array<any> | null, replacementStack: Array<any> | null, replacer: (k: string, v: any) => any, key?: string): any;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=json.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Diff from './base.js';
|
|
2
|
+
import type { ChangeObject, CallbackOptionAbortable, CallbackOptionNonabortable, DiffCallbackNonabortable, DiffLinesOptionsAbortable, DiffLinesOptionsNonabortable } from '../types.js';
|
|
3
|
+
declare class LineDiff extends Diff<string, string> {
|
|
4
|
+
tokenize: typeof tokenize;
|
|
5
|
+
equals(left: string, right: string, options: DiffLinesOptionsAbortable | DiffLinesOptionsNonabortable): boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const lineDiff: LineDiff;
|
|
8
|
+
/**
|
|
9
|
+
* diffs two blocks of text, treating each line as a token.
|
|
10
|
+
* @returns a list of change objects.
|
|
11
|
+
*/
|
|
12
|
+
export declare function diffLines(oldStr: string, newStr: string, options: DiffCallbackNonabortable<string>): undefined;
|
|
13
|
+
export declare function diffLines(oldStr: string, newStr: string, options: DiffLinesOptionsAbortable & CallbackOptionAbortable<string>): undefined;
|
|
14
|
+
export declare function diffLines(oldStr: string, newStr: string, options: DiffLinesOptionsNonabortable & CallbackOptionNonabortable<string>): undefined;
|
|
15
|
+
export declare function diffLines(oldStr: string, newStr: string, options: DiffLinesOptionsAbortable): ChangeObject<string>[] | undefined;
|
|
16
|
+
export declare function diffLines(oldStr: string, newStr: string, options?: DiffLinesOptionsNonabortable): ChangeObject<string>[];
|
|
17
|
+
export declare function diffTrimmedLines(oldStr: string, newStr: string, options: DiffCallbackNonabortable<string>): undefined;
|
|
18
|
+
export declare function diffTrimmedLines(oldStr: string, newStr: string, options: DiffLinesOptionsAbortable & CallbackOptionAbortable<string>): undefined;
|
|
19
|
+
export declare function diffTrimmedLines(oldStr: string, newStr: string, options: DiffLinesOptionsNonabortable & CallbackOptionNonabortable<string>): undefined;
|
|
20
|
+
export declare function diffTrimmedLines(oldStr: string, newStr: string, options: DiffLinesOptionsAbortable): ChangeObject<string>[] | undefined;
|
|
21
|
+
export declare function diffTrimmedLines(oldStr: string, newStr: string, options?: DiffLinesOptionsNonabortable): ChangeObject<string>[];
|
|
22
|
+
export declare function tokenize(value: string, options: DiffLinesOptionsAbortable | DiffLinesOptionsNonabortable): string[];
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=line.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Diff from './base.js';
|
|
2
|
+
import type { ChangeObject, CallbackOptionAbortable, CallbackOptionNonabortable, DiffCallbackNonabortable, DiffSentencesOptionsAbortable, DiffSentencesOptionsNonabortable } from '../types.js';
|
|
3
|
+
declare class SentenceDiff extends Diff<string, string> {
|
|
4
|
+
tokenize(value: string): string[];
|
|
5
|
+
}
|
|
6
|
+
export declare const sentenceDiff: SentenceDiff;
|
|
7
|
+
/**
|
|
8
|
+
* diffs two blocks of text, treating each sentence, and the whitespace between each pair of sentences, as a token.
|
|
9
|
+
* The characters `.`, `!`, and `?`, when followed by whitespace, are treated as marking the end of a sentence; nothing else besides the end of the string is considered to mark a sentence end.
|
|
10
|
+
*
|
|
11
|
+
* (For more sophisticated detection of sentence breaks, including support for non-English punctuation, consider instead tokenizing with an [`Intl.Segmenter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter) with `granularity: 'sentence'` and passing the result to `diffArrays`.)
|
|
12
|
+
*
|
|
13
|
+
* @returns a list of change objects.
|
|
14
|
+
*/
|
|
15
|
+
export declare function diffSentences(oldStr: string, newStr: string, options: DiffCallbackNonabortable<string>): undefined;
|
|
16
|
+
export declare function diffSentences(oldStr: string, newStr: string, options: DiffSentencesOptionsAbortable & CallbackOptionAbortable<string>): undefined;
|
|
17
|
+
export declare function diffSentences(oldStr: string, newStr: string, options: DiffSentencesOptionsNonabortable & CallbackOptionNonabortable<string>): undefined;
|
|
18
|
+
export declare function diffSentences(oldStr: string, newStr: string, options: DiffSentencesOptionsAbortable): ChangeObject<string>[] | undefined;
|
|
19
|
+
export declare function diffSentences(oldStr: string, newStr: string, options?: DiffSentencesOptionsNonabortable): ChangeObject<string>[];
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=sentence.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Diff from './base.js';
|
|
2
|
+
import type { ChangeObject, CallbackOptionAbortable, CallbackOptionNonabortable, DiffCallbackNonabortable, DiffWordsOptionsAbortable, DiffWordsOptionsNonabortable } from '../types.js';
|
|
3
|
+
declare class WordDiff extends Diff<string, string> {
|
|
4
|
+
equals(left: string, right: string, options: DiffWordsOptionsAbortable | DiffWordsOptionsNonabortable): boolean;
|
|
5
|
+
tokenize(value: string, options?: DiffWordsOptionsAbortable | DiffWordsOptionsNonabortable): string[];
|
|
6
|
+
join(tokens: string[]): string;
|
|
7
|
+
postProcess(changes: ChangeObject<string>[], options: any): ChangeObject<string>[];
|
|
8
|
+
}
|
|
9
|
+
export declare const wordDiff: WordDiff;
|
|
10
|
+
/**
|
|
11
|
+
* diffs two blocks of text, treating each word and each punctuation mark as a token.
|
|
12
|
+
* Whitespace is ignored when computing the diff (but preserved as far as possible in the final change objects).
|
|
13
|
+
*
|
|
14
|
+
* @returns a list of change objects.
|
|
15
|
+
*/
|
|
16
|
+
export declare function diffWords(oldStr: string, newStr: string, options: DiffCallbackNonabortable<string>): undefined;
|
|
17
|
+
export declare function diffWords(oldStr: string, newStr: string, options: DiffWordsOptionsAbortable & CallbackOptionAbortable<string>): undefined;
|
|
18
|
+
export declare function diffWords(oldStr: string, newStr: string, options: DiffWordsOptionsNonabortable & CallbackOptionNonabortable<string>): undefined;
|
|
19
|
+
export declare function diffWords(oldStr: string, newStr: string, options: DiffWordsOptionsAbortable): ChangeObject<string>[] | undefined;
|
|
20
|
+
export declare function diffWords(oldStr: string, newStr: string, options?: DiffWordsOptionsNonabortable): ChangeObject<string>[];
|
|
21
|
+
declare class WordsWithSpaceDiff extends Diff<string, string> {
|
|
22
|
+
tokenize(value: string): [] | RegExpMatchArray;
|
|
23
|
+
}
|
|
24
|
+
export declare const wordsWithSpaceDiff: WordsWithSpaceDiff;
|
|
25
|
+
/**
|
|
26
|
+
* diffs two blocks of text, treating each word, punctuation mark, newline, or run of (non-newline) whitespace as a token.
|
|
27
|
+
* @returns a list of change objects
|
|
28
|
+
*/
|
|
29
|
+
export declare function diffWordsWithSpace(oldStr: string, newStr: string, options: DiffCallbackNonabortable<string>): undefined;
|
|
30
|
+
export declare function diffWordsWithSpace(oldStr: string, newStr: string, options: DiffWordsOptionsAbortable & CallbackOptionAbortable<string>): undefined;
|
|
31
|
+
export declare function diffWordsWithSpace(oldStr: string, newStr: string, options: DiffWordsOptionsNonabortable & CallbackOptionNonabortable<string>): undefined;
|
|
32
|
+
export declare function diffWordsWithSpace(oldStr: string, newStr: string, options: DiffWordsOptionsAbortable): ChangeObject<string>[] | undefined;
|
|
33
|
+
export declare function diffWordsWithSpace(oldStr: string, newStr: string, options?: DiffWordsOptionsNonabortable): ChangeObject<string>[];
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=word.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Diff from './diff/base.js';
|
|
2
|
+
import { diffChars, characterDiff } from './diff/character.js';
|
|
3
|
+
import { diffWords, diffWordsWithSpace, wordDiff, wordsWithSpaceDiff } from './diff/word.js';
|
|
4
|
+
import { diffLines, diffTrimmedLines, lineDiff } from './diff/line.js';
|
|
5
|
+
import { diffSentences, sentenceDiff } from './diff/sentence.js';
|
|
6
|
+
import { diffCss, cssDiff } from './diff/css.js';
|
|
7
|
+
import { diffJson, canonicalize, jsonDiff } from './diff/json.js';
|
|
8
|
+
import { diffArrays, arrayDiff } from './diff/array.js';
|
|
9
|
+
import { applyPatch, applyPatches } from './patch/apply.js';
|
|
10
|
+
import type { ApplyPatchOptions, ApplyPatchesOptions } from './patch/apply.js';
|
|
11
|
+
import { parsePatch } from './patch/parse.js';
|
|
12
|
+
import { reversePatch } from './patch/reverse.js';
|
|
13
|
+
import { structuredPatch, createTwoFilesPatch, createPatch, formatPatch, INCLUDE_HEADERS, FILE_HEADERS_ONLY, OMIT_HEADERS } from './patch/create.js';
|
|
14
|
+
import type { StructuredPatchOptionsAbortable, StructuredPatchOptionsNonabortable, CreatePatchOptionsAbortable, CreatePatchOptionsNonabortable, HeaderOptions } from './patch/create.js';
|
|
15
|
+
import { convertChangesToDMP } from './convert/dmp.js';
|
|
16
|
+
import { convertChangesToXML } from './convert/xml.js';
|
|
17
|
+
import type { ChangeObject, Change, ArrayChange, DiffArraysOptionsAbortable, DiffArraysOptionsNonabortable, DiffCharsOptionsAbortable, DiffCharsOptionsNonabortable, DiffLinesOptionsAbortable, DiffLinesOptionsNonabortable, DiffWordsOptionsAbortable, DiffWordsOptionsNonabortable, DiffSentencesOptionsAbortable, DiffSentencesOptionsNonabortable, DiffJsonOptionsAbortable, DiffJsonOptionsNonabortable, DiffCssOptionsAbortable, DiffCssOptionsNonabortable, StructuredPatch, StructuredPatchHunk } from './types.js';
|
|
18
|
+
export { Diff, diffChars, characterDiff, diffWords, wordDiff, diffWordsWithSpace, wordsWithSpaceDiff, diffLines, lineDiff, diffTrimmedLines, diffSentences, sentenceDiff, diffCss, cssDiff, diffJson, jsonDiff, diffArrays, arrayDiff, structuredPatch, createTwoFilesPatch, createPatch, formatPatch, INCLUDE_HEADERS, FILE_HEADERS_ONLY, OMIT_HEADERS, applyPatch, applyPatches, parsePatch, reversePatch, convertChangesToDMP, convertChangesToXML, canonicalize };
|
|
19
|
+
export type { ChangeObject, Change, ArrayChange, DiffArraysOptionsAbortable, DiffArraysOptionsNonabortable, DiffCharsOptionsAbortable, DiffCharsOptionsNonabortable, DiffLinesOptionsAbortable, DiffLinesOptionsNonabortable, DiffWordsOptionsAbortable, DiffWordsOptionsNonabortable, DiffSentencesOptionsAbortable, DiffSentencesOptionsNonabortable, DiffJsonOptionsAbortable, DiffJsonOptionsNonabortable, DiffCssOptionsAbortable, DiffCssOptionsNonabortable, StructuredPatch, StructuredPatchHunk, ApplyPatchOptions, ApplyPatchesOptions, StructuredPatchOptionsAbortable, StructuredPatchOptionsNonabortable, CreatePatchOptionsAbortable, CreatePatchOptionsNonabortable, HeaderOptions };
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { StructuredPatch } from '../types.js';
|
|
2
|
+
export interface ApplyPatchOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Maximum Levenshtein distance (in lines deleted, added, or subtituted) between the context shown in a patch hunk and the lines found in the file.
|
|
5
|
+
* @default 0
|
|
6
|
+
*/
|
|
7
|
+
fuzzFactor?: number;
|
|
8
|
+
/**
|
|
9
|
+
* If `true`, and if the file to be patched consistently uses different line endings to the patch (i.e. either the file always uses Unix line endings while the patch uses Windows ones, or vice versa), then `applyPatch` will behave as if the line endings in the patch were the same as those in the source file.
|
|
10
|
+
* (If `false`, the patch will usually fail to apply in such circumstances since lines deleted in the patch won't be considered to match those in the source file.)
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
autoConvertLineEndings?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Callback used to compare to given lines to determine if they should be considered equal when patching.
|
|
16
|
+
* Defaults to strict equality but may be overridden to provide fuzzier comparison.
|
|
17
|
+
* Should return false if the lines should be rejected.
|
|
18
|
+
*/
|
|
19
|
+
compareLine?: (lineNumber: number, line: string, operation: string, patchContent: string) => boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* attempts to apply a unified diff patch.
|
|
23
|
+
*
|
|
24
|
+
* Hunks are applied first to last.
|
|
25
|
+
* `applyPatch` first tries to apply the first hunk at the line number specified in the hunk header, and with all context lines matching exactly.
|
|
26
|
+
* If that fails, it tries scanning backwards and forwards, one line at a time, to find a place to apply the hunk where the context lines match exactly.
|
|
27
|
+
* If that still fails, and `fuzzFactor` is greater than zero, it increments the maximum number of mismatches (missing, extra, or changed context lines) that there can be between the hunk context and a region where we are trying to apply the patch such that the hunk will still be considered to match.
|
|
28
|
+
* Regardless of `fuzzFactor`, lines to be deleted in the hunk *must* be present for a hunk to match, and the context lines *immediately* before and after an insertion must match exactly.
|
|
29
|
+
*
|
|
30
|
+
* Once a hunk is successfully fitted, the process begins again with the next hunk.
|
|
31
|
+
* Regardless of `fuzzFactor`, later hunks must be applied later in the file than earlier hunks.
|
|
32
|
+
*
|
|
33
|
+
* If a hunk cannot be successfully fitted *anywhere* with fewer than `fuzzFactor` mismatches, `applyPatch` fails and returns `false`.
|
|
34
|
+
*
|
|
35
|
+
* If a hunk is successfully fitted but not at the line number specified by the hunk header, all subsequent hunks have their target line number adjusted accordingly.
|
|
36
|
+
* (e.g. if the first hunk is applied 10 lines below where the hunk header said it should fit, `applyPatch` will *start* looking for somewhere to apply the second hunk 10 lines below where its hunk header says it goes.)
|
|
37
|
+
*
|
|
38
|
+
* If the patch was applied successfully, returns a string containing the patched text.
|
|
39
|
+
* If the patch could not be applied (because some hunks in the patch couldn't be fitted to the text in `source`), `applyPatch` returns false.
|
|
40
|
+
*
|
|
41
|
+
* @param patch a string diff or the output from the `parsePatch` or `structuredPatch` methods.
|
|
42
|
+
*/
|
|
43
|
+
export declare function applyPatch(source: string, patch: string | StructuredPatch | [StructuredPatch], options?: ApplyPatchOptions): string | false;
|
|
44
|
+
export interface ApplyPatchesOptions extends ApplyPatchOptions {
|
|
45
|
+
loadFile: (index: StructuredPatch, callback: (err: any, data: string) => void) => void;
|
|
46
|
+
patched: (index: StructuredPatch, content: string | false, callback: (err: any) => void) => void;
|
|
47
|
+
complete: (err?: any) => void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* applies one or more patches.
|
|
51
|
+
*
|
|
52
|
+
* `patch` may be either an array of structured patch objects, or a string representing a patch in unified diff format (which may patch one or more files).
|
|
53
|
+
*
|
|
54
|
+
* This method will iterate over the contents of the patch and apply to data provided through callbacks. The general flow for each patch index is:
|
|
55
|
+
*
|
|
56
|
+
* - `options.loadFile(index, callback)` is called. The caller should then load the contents of the file and then pass that to the `callback(err, data)` callback. Passing an `err` will terminate further patch execution.
|
|
57
|
+
* - `options.patched(index, content, callback)` is called once the patch has been applied. `content` will be the return value from `applyPatch`. When it's ready, the caller should call `callback(err)` callback. Passing an `err` will terminate further patch execution.
|
|
58
|
+
*
|
|
59
|
+
* Once all patches have been applied or an error occurs, the `options.complete(err)` callback is made.
|
|
60
|
+
*/
|
|
61
|
+
export declare function applyPatches(uniDiff: string | StructuredPatch[], options: ApplyPatchesOptions): void;
|
|
62
|
+
//# sourceMappingURL=apply.d.ts.map
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { StructuredPatch, DiffLinesOptionsAbortable, DiffLinesOptionsNonabortable, AbortableDiffOptions } from '../types.js';
|
|
2
|
+
type StructuredPatchCallbackAbortable = (patch: StructuredPatch | undefined) => void;
|
|
3
|
+
type StructuredPatchCallbackNonabortable = (patch: StructuredPatch) => void;
|
|
4
|
+
export interface HeaderOptions {
|
|
5
|
+
includeIndex: boolean;
|
|
6
|
+
includeUnderline: boolean;
|
|
7
|
+
includeFileHeaders: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const INCLUDE_HEADERS: {
|
|
10
|
+
includeIndex: boolean;
|
|
11
|
+
includeUnderline: boolean;
|
|
12
|
+
includeFileHeaders: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const FILE_HEADERS_ONLY: {
|
|
15
|
+
includeIndex: boolean;
|
|
16
|
+
includeUnderline: boolean;
|
|
17
|
+
includeFileHeaders: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const OMIT_HEADERS: {
|
|
20
|
+
includeIndex: boolean;
|
|
21
|
+
includeUnderline: boolean;
|
|
22
|
+
includeFileHeaders: boolean;
|
|
23
|
+
};
|
|
24
|
+
interface _StructuredPatchOptionsAbortable extends Pick<DiffLinesOptionsAbortable, 'ignoreWhitespace' | 'stripTrailingCr'> {
|
|
25
|
+
/**
|
|
26
|
+
* describes how many lines of context should be included.
|
|
27
|
+
* You can set this to `Number.MAX_SAFE_INTEGER` or `Infinity` to include the entire file content in one hunk.
|
|
28
|
+
* @default 4
|
|
29
|
+
*/
|
|
30
|
+
context?: number;
|
|
31
|
+
callback?: StructuredPatchCallbackAbortable;
|
|
32
|
+
}
|
|
33
|
+
export type StructuredPatchOptionsAbortable = _StructuredPatchOptionsAbortable & AbortableDiffOptions;
|
|
34
|
+
export interface StructuredPatchOptionsNonabortable extends Pick<DiffLinesOptionsNonabortable, 'ignoreWhitespace' | 'stripTrailingCr'> {
|
|
35
|
+
context?: number;
|
|
36
|
+
callback?: StructuredPatchCallbackNonabortable;
|
|
37
|
+
}
|
|
38
|
+
interface StructuredPatchCallbackOptionAbortable {
|
|
39
|
+
/**
|
|
40
|
+
* If provided, the diff will be computed in async mode to avoid blocking the event loop while the diff is calculated.
|
|
41
|
+
* The value of the `callback` option should be a function and will be passed the computed diff or patch as its first argument.
|
|
42
|
+
*/
|
|
43
|
+
callback: StructuredPatchCallbackAbortable;
|
|
44
|
+
}
|
|
45
|
+
interface StructuredPatchCallbackOptionNonabortable {
|
|
46
|
+
/**
|
|
47
|
+
* If provided, the diff will be computed in async mode to avoid blocking the event loop while the diff is calculated.
|
|
48
|
+
* The value of the `callback` option should be a function and will be passed the computed diff or patch as its first argument.
|
|
49
|
+
*/
|
|
50
|
+
callback: StructuredPatchCallbackNonabortable;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* returns an object with an array of hunk objects.
|
|
54
|
+
*
|
|
55
|
+
* This method is similar to createTwoFilesPatch, but returns a data structure suitable for further processing.
|
|
56
|
+
* @param oldFileName String to be output in the filename section of the patch for the removals
|
|
57
|
+
* @param newFileName String to be output in the filename section of the patch for the additions
|
|
58
|
+
* @param oldStr Original string value
|
|
59
|
+
* @param newStr New string value
|
|
60
|
+
* @param oldHeader Optional additional information to include in the old file header.
|
|
61
|
+
* @param newHeader Optional additional information to include in the new file header.
|
|
62
|
+
*/
|
|
63
|
+
export declare function structuredPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: StructuredPatchCallbackNonabortable): undefined;
|
|
64
|
+
export declare function structuredPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: StructuredPatchOptionsAbortable & StructuredPatchCallbackOptionAbortable): undefined;
|
|
65
|
+
export declare function structuredPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: StructuredPatchOptionsNonabortable & StructuredPatchCallbackOptionNonabortable): undefined;
|
|
66
|
+
export declare function structuredPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: StructuredPatchOptionsAbortable): StructuredPatch | undefined;
|
|
67
|
+
export declare function structuredPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader?: string, newHeader?: string, options?: StructuredPatchOptionsNonabortable): StructuredPatch;
|
|
68
|
+
/**
|
|
69
|
+
* creates a unified diff patch.
|
|
70
|
+
*
|
|
71
|
+
* @param patch either a single structured patch object (as returned by `structuredPatch`) or an
|
|
72
|
+
* array of them (as returned by `parsePatch`).
|
|
73
|
+
* @param headerOptions behaves the same as the `headerOptions` option of `createTwoFilesPatch`.
|
|
74
|
+
* Ignored for patches where `isGit` is `true`.
|
|
75
|
+
*
|
|
76
|
+
* When a patch has `isGit: true`, `formatPatch` output is changed to more closely match Git's
|
|
77
|
+
* output: it emits a `diff --git` header, emits Git extended headers as appropriate based on
|
|
78
|
+
* properties like `isRename`, `isCreate`, `newMode`, etc, and will omit `---`/`+++` file
|
|
79
|
+
* headers for patches with no hunks (e.g. renames without content changes).
|
|
80
|
+
*/
|
|
81
|
+
export declare function formatPatch(patch: StructuredPatch | StructuredPatch[], headerOptions?: HeaderOptions): string;
|
|
82
|
+
type CreatePatchCallbackAbortable = (patch: string | undefined) => void;
|
|
83
|
+
type CreatePatchCallbackNonabortable = (patch: string) => void;
|
|
84
|
+
interface _CreatePatchOptionsAbortable extends Pick<DiffLinesOptionsAbortable, 'ignoreWhitespace' | 'stripTrailingCr'> {
|
|
85
|
+
context?: number;
|
|
86
|
+
callback?: CreatePatchCallbackAbortable;
|
|
87
|
+
headerOptions?: HeaderOptions;
|
|
88
|
+
}
|
|
89
|
+
export type CreatePatchOptionsAbortable = _CreatePatchOptionsAbortable & AbortableDiffOptions;
|
|
90
|
+
export interface CreatePatchOptionsNonabortable extends Pick<DiffLinesOptionsNonabortable, 'ignoreWhitespace' | 'stripTrailingCr'> {
|
|
91
|
+
context?: number;
|
|
92
|
+
callback?: CreatePatchCallbackNonabortable;
|
|
93
|
+
headerOptions?: HeaderOptions;
|
|
94
|
+
}
|
|
95
|
+
interface CreatePatchCallbackOptionAbortable {
|
|
96
|
+
callback: CreatePatchCallbackAbortable;
|
|
97
|
+
}
|
|
98
|
+
interface CreatePatchCallbackOptionNonabortable {
|
|
99
|
+
callback: CreatePatchCallbackNonabortable;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* creates a unified diff patch by first computing a diff with `diffLines` and then serializing it to unified diff format.
|
|
103
|
+
* @param oldFileName String to be output in the filename section of the patch for the removals
|
|
104
|
+
* @param newFileName String to be output in the filename section of the patch for the additions
|
|
105
|
+
* @param oldStr Original string value
|
|
106
|
+
* @param newStr New string value
|
|
107
|
+
* @param oldHeader Optional additional information to include in the old file header.
|
|
108
|
+
* @param newHeader Optional additional information to include in the new file header.
|
|
109
|
+
*/
|
|
110
|
+
export declare function createTwoFilesPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: CreatePatchCallbackNonabortable): undefined;
|
|
111
|
+
export declare function createTwoFilesPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: CreatePatchOptionsAbortable & CreatePatchCallbackOptionAbortable): undefined;
|
|
112
|
+
export declare function createTwoFilesPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: CreatePatchOptionsNonabortable & CreatePatchCallbackOptionNonabortable): undefined;
|
|
113
|
+
export declare function createTwoFilesPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: CreatePatchOptionsAbortable): string | undefined;
|
|
114
|
+
export declare function createTwoFilesPatch(oldFileName: string, newFileName: string, oldStr: string, newStr: string, oldHeader?: string, newHeader?: string, options?: CreatePatchOptionsNonabortable): string;
|
|
115
|
+
/**
|
|
116
|
+
* creates a unified diff patch.
|
|
117
|
+
*
|
|
118
|
+
* Just like createTwoFilesPatch, but with oldFileName being equal to newFileName.
|
|
119
|
+
* @param fileName String to be output in the filename section of the patch
|
|
120
|
+
* @param oldStr Original string value
|
|
121
|
+
* @param newStr New string value
|
|
122
|
+
* @param oldHeader Optional additional information to include in the old file header.
|
|
123
|
+
* @param newHeader Optional additional information to include in the new file header.
|
|
124
|
+
*/
|
|
125
|
+
export declare function createPatch(fileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: CreatePatchCallbackNonabortable): undefined;
|
|
126
|
+
export declare function createPatch(fileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: CreatePatchOptionsAbortable & CreatePatchCallbackOptionAbortable): undefined;
|
|
127
|
+
export declare function createPatch(fileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: CreatePatchOptionsNonabortable & CreatePatchCallbackOptionNonabortable): undefined;
|
|
128
|
+
export declare function createPatch(fileName: string, oldStr: string, newStr: string, oldHeader: string | undefined, newHeader: string | undefined, options: CreatePatchOptionsAbortable): string | undefined;
|
|
129
|
+
export declare function createPatch(fileName: string, oldStr: string, newStr: string, oldHeader?: string, newHeader?: string, options?: CreatePatchOptionsNonabortable): string;
|
|
130
|
+
export {};
|
|
131
|
+
//# sourceMappingURL=create.d.ts.map
|
package/node_modules/@prismalens/agent-adapters/node_modules/diff/libcjs/patch/line-endings.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StructuredPatch } from '../types.js';
|
|
2
|
+
export declare function unixToWin(patch: StructuredPatch): StructuredPatch;
|
|
3
|
+
export declare function unixToWin(patches: StructuredPatch[]): StructuredPatch[];
|
|
4
|
+
export declare function unixToWin(patch: StructuredPatch | StructuredPatch[]): StructuredPatch | StructuredPatch[];
|
|
5
|
+
export declare function winToUnix(patch: StructuredPatch): StructuredPatch;
|
|
6
|
+
export declare function winToUnix(patches: StructuredPatch[]): StructuredPatch[];
|
|
7
|
+
export declare function winToUnix(patch: StructuredPatch | StructuredPatch[]): StructuredPatch | StructuredPatch[];
|
|
8
|
+
/**
|
|
9
|
+
* Returns true if the patch consistently uses Unix line endings (or only involves one line and has
|
|
10
|
+
* no line endings).
|
|
11
|
+
*/
|
|
12
|
+
export declare function isUnix(patch: StructuredPatch | StructuredPatch[]): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the patch uses Windows line endings and only Windows line endings.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isWin(patch: StructuredPatch | StructuredPatch[]): boolean;
|
|
17
|
+
//# sourceMappingURL=line-endings.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StructuredPatch } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Parses a unified diff format patch into a structured patch object.
|
|
4
|
+
*
|
|
5
|
+
* `parsePatch` has some understanding of Git's particular dialect of unified diff format.
|
|
6
|
+
* When parsing a Git patch, each index in the result may contain additional
|
|
7
|
+
* fields (`isRename`, `isBinary`, etc) not included in the data structure returned by
|
|
8
|
+
* `structuredPatch`; see the `StructuredPatch` interface for a full list.
|
|
9
|
+
*
|
|
10
|
+
* @return a JSON object representation of the patch, suitable for use with the `applyPatch`
|
|
11
|
+
* method. This parses to the same structure returned by `structuredPatch`, except that
|
|
12
|
+
* `oldFileName` and `newFileName` may be `undefined` if the patch doesn't contain enough
|
|
13
|
+
* information to determine them (e.g. a hunk-only patch with no file headers).
|
|
14
|
+
*/
|
|
15
|
+
export declare function parsePatch(uniDiff: string): StructuredPatch[];
|
|
16
|
+
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { StructuredPatch } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a new structured patch which when applied will undo the original `patch`.
|
|
4
|
+
*
|
|
5
|
+
* When `patch` is a Git-style patch, `reversePatch` handles extended header information (relating
|
|
6
|
+
* to renames, file modes, etc.) to the extent that doing so is possible, but note one fundamental
|
|
7
|
+
* limitation: the correct inverse of a patch featuring `copy from`/`copy to` headers cannot, in
|
|
8
|
+
* general, be determined based on the information contained in the patch alone, and so
|
|
9
|
+
* `reversePatch`'s output when passed such a patch will usually be rejected by `git apply`. (The
|
|
10
|
+
* correct inverse would be a patch that deletes the newly-created file, but for Git to apply such
|
|
11
|
+
* a patch, the patch must explicitly delete every line of content in the file too, and that
|
|
12
|
+
* content cannot be determined from the original patch on its own. `reversePatch` therefore does
|
|
13
|
+
* the only vaguely reasonable thing it can do in this scenario: it outputs a patch with a
|
|
14
|
+
* `deleted file mode` header - indicating that the file should be deleted - but no hunks.)
|
|
15
|
+
*
|
|
16
|
+
* @param patch either a single structured patch object (as returned by `structuredPatch`) or an
|
|
17
|
+
* array of them (as returned by `parsePatch`).
|
|
18
|
+
*/
|
|
19
|
+
export declare function reversePatch(structuredPatch: StructuredPatch): StructuredPatch;
|
|
20
|
+
export declare function reversePatch(structuredPatch: StructuredPatch[]): StructuredPatch[];
|
|
21
|
+
export declare function reversePatch(structuredPatch: StructuredPatch | StructuredPatch[]): StructuredPatch | StructuredPatch[];
|
|
22
|
+
//# sourceMappingURL=reverse.d.ts.map
|