gsd-pi 2.20.0 → 2.22.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/README.md +12 -0
- package/dist/cli.js +21 -18
- package/dist/help-text.d.ts +2 -0
- package/dist/help-text.js +47 -0
- package/dist/loader.js +2 -16
- package/dist/mcp-server.d.ts +18 -0
- package/dist/mcp-server.js +53 -0
- package/dist/onboarding.d.ts +0 -6
- package/dist/onboarding.js +0 -28
- package/dist/resources/agents/javascript-pro.md +280 -0
- package/dist/resources/agents/typescript-pro.md +255 -0
- package/dist/resources/extensions/bg-shell/index.ts +14 -2
- package/dist/resources/extensions/bg-shell/utilities.ts +14 -0
- package/dist/resources/extensions/browser-tools/{core.js → core.ts} +329 -190
- package/dist/resources/extensions/gsd/auto-dashboard.ts +2 -1
- package/dist/resources/extensions/gsd/auto-prompts.ts +42 -1
- package/dist/resources/extensions/gsd/auto-worktree.ts +35 -2
- package/dist/resources/extensions/gsd/auto.ts +116 -10
- package/dist/resources/extensions/gsd/claude-import.ts +656 -0
- package/dist/resources/extensions/gsd/collision-diagnostics.ts +332 -0
- package/dist/resources/extensions/gsd/commands.ts +60 -7
- package/dist/resources/extensions/gsd/diff-context.ts +220 -0
- package/dist/resources/extensions/gsd/docs/claude-marketplace-import.md +214 -0
- package/dist/resources/extensions/gsd/docs/preferences-reference.md +2 -1
- package/dist/resources/extensions/gsd/doctor.ts +12 -4
- package/dist/resources/extensions/gsd/file-watcher.ts +97 -0
- package/dist/resources/extensions/gsd/files.ts +1 -1
- package/dist/resources/extensions/gsd/forensics.ts +596 -0
- package/dist/resources/extensions/gsd/git-service.ts +2 -1
- package/dist/resources/extensions/gsd/github-client.ts +235 -0
- package/dist/resources/extensions/gsd/gitignore.ts +1 -0
- package/dist/resources/extensions/gsd/marketplace-discovery.ts +507 -0
- package/dist/resources/extensions/gsd/mcp-server.ts +87 -0
- package/dist/resources/extensions/gsd/namespaced-registry.ts +467 -0
- package/dist/resources/extensions/gsd/namespaced-resolver.ts +307 -0
- package/dist/resources/extensions/gsd/plugin-importer.ts +410 -0
- package/dist/resources/extensions/gsd/preferences.ts +14 -3
- package/dist/resources/extensions/gsd/prompts/execute-task.md +1 -1
- package/dist/resources/extensions/gsd/prompts/forensics.md +71 -0
- package/dist/resources/extensions/gsd/prompts/plan-slice.md +1 -1
- package/dist/resources/extensions/gsd/prompts/research-slice.md +1 -1
- package/dist/resources/extensions/gsd/prompts/system.md +12 -3
- package/dist/resources/extensions/gsd/roadmap-slices.ts +1 -1
- package/dist/resources/extensions/gsd/session-forensics.ts +5 -5
- package/dist/resources/extensions/gsd/tests/claude-import-tui.test.ts +351 -0
- package/dist/resources/extensions/gsd/tests/collision-diagnostics.test.ts +705 -0
- package/dist/resources/extensions/gsd/tests/context-compression.test.ts +13 -0
- package/dist/resources/extensions/gsd/tests/diff-context.test.ts +136 -0
- package/dist/resources/extensions/gsd/tests/doctor-git.test.ts +118 -0
- package/dist/resources/extensions/gsd/tests/marketplace-discovery.test.ts +202 -0
- package/dist/resources/extensions/gsd/tests/marketplace-test-fixtures.ts +91 -0
- package/dist/resources/extensions/gsd/tests/namespaced-registry.test.ts +1027 -0
- package/dist/resources/extensions/gsd/tests/namespaced-resolver.test.ts +671 -0
- package/dist/resources/extensions/gsd/tests/none-mode-gates.test.ts +105 -0
- package/dist/resources/extensions/gsd/tests/plugin-importer-live.test.ts +481 -0
- package/dist/resources/extensions/gsd/tests/plugin-importer.test.ts +1383 -0
- package/dist/resources/extensions/gsd/tests/preferences-git.test.ts +21 -2
- package/dist/resources/extensions/gsd/tests/preferences-schema-validation.test.ts +8 -1
- package/dist/resources/extensions/gsd/tests/visualizer-data.test.ts +11 -0
- package/dist/resources/extensions/gsd/tests/worktree-bugfix.test.ts +120 -0
- package/dist/resources/extensions/gsd/token-counter.ts +45 -0
- package/dist/resources/extensions/gsd/visualizer-data.ts +2 -2
- package/dist/resources/extensions/gsd/worktree-manager.ts +29 -1
- package/dist/resources/extensions/gsd/worktree.ts +3 -0
- package/dist/resources/extensions/mcporter/index.ts +90 -7
- package/dist/resources/extensions/search-the-web/native-search.ts +2 -0
- package/dist/resources/extensions/search-the-web/tool-fetch-page.ts +9 -1
- package/dist/resources/extensions/search-the-web/url-utils.ts +35 -1
- package/dist/resources/extensions/shared/terminal.ts +1 -1
- package/dist/resources/extensions/universal-config/discovery.ts +4 -0
- package/dist/resources/extensions/universal-config/format.ts +35 -4
- package/dist/resources/extensions/universal-config/index.ts +5 -3
- package/dist/resources/extensions/universal-config/scanners.ts +65 -2
- package/dist/resources/extensions/universal-config/tests/discovery.test.ts +9 -1
- package/dist/resources/extensions/universal-config/tests/format.test.ts +22 -6
- package/dist/resources/extensions/universal-config/tests/scanners.test.ts +18 -0
- package/dist/resources/extensions/universal-config/types.ts +20 -1
- package/dist/resources/skills/lint/SKILL.md +141 -0
- package/dist/resources/skills/review/SKILL.md +214 -0
- package/dist/resources/skills/test/SKILL.md +201 -0
- package/dist/tool-bootstrap.js +2 -1
- package/dist/wizard.js +2 -0
- package/package.json +12 -7
- package/packages/pi-ai/dist/providers/azure-openai-responses.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/azure-openai-responses.js +12 -1
- package/packages/pi-ai/dist/providers/azure-openai-responses.js.map +1 -1
- package/packages/pi-ai/dist/providers/openai-responses.d.ts.map +1 -1
- package/packages/pi-ai/dist/providers/openai-responses.js +12 -1
- package/packages/pi-ai/dist/providers/openai-responses.js.map +1 -1
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/LICENSE +201 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/README.md +9 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-cjs/index.js +762 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +230 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +87 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +169 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +21 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +88 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +23 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +8 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +41 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +21 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +63 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +46 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +24 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +12 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +63 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +13 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +12 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +5 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +6 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +13 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +46 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +24 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +12 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +63 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +13 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +12 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +2 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +5 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +6 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +13 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +12 -0
- package/packages/pi-ai/node_modules/@smithy/node-http-handler/package.json +68 -0
- package/packages/pi-ai/package.json +3 -0
- package/packages/pi-ai/pnpm-lock.yaml +2022 -0
- package/packages/pi-ai/src/providers/azure-openai-responses.ts +12 -1
- package/packages/pi-ai/src/providers/openai-responses.ts +12 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.d.ts +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.js +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/index.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/loader.d.ts +1 -0
- package/packages/pi-coding-agent/dist/core/extensions/loader.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/loader.js +12 -1
- package/packages/pi-coding-agent/dist/core/extensions/loader.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/extensions/loader.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/core/extensions/loader.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/extensions/loader.test.js +113 -0
- package/packages/pi-coding-agent/dist/core/extensions/loader.test.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/extensions/project-trust.d.ts +4 -0
- package/packages/pi-coding-agent/dist/core/extensions/project-trust.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/extensions/project-trust.js +42 -0
- package/packages/pi-coding-agent/dist/core/extensions/project-trust.js.map +1 -0
- package/packages/pi-coding-agent/dist/core/resolve-config-value.d.ts +1 -0
- package/packages/pi-coding-agent/dist/core/resolve-config-value.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/resolve-config-value.js +18 -0
- package/packages/pi-coding-agent/dist/core/resolve-config-value.js.map +1 -1
- package/packages/pi-coding-agent/dist/core/resolve-config-value.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/core/resolve-config-value.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/core/resolve-config-value.test.js +114 -0
- package/packages/pi-coding-agent/dist/core/resolve-config-value.test.js.map +1 -0
- package/packages/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +8 -2
- package/packages/pi-coding-agent/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/packages/pi-coding-agent/dist/resources/extensions/memory/storage.d.ts +2 -0
- package/packages/pi-coding-agent/dist/resources/extensions/memory/storage.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/resources/extensions/memory/storage.js +23 -9
- package/packages/pi-coding-agent/dist/resources/extensions/memory/storage.js.map +1 -1
- package/packages/pi-coding-agent/dist/resources/extensions/memory/storage.test.d.ts +2 -0
- package/packages/pi-coding-agent/dist/resources/extensions/memory/storage.test.d.ts.map +1 -0
- package/packages/pi-coding-agent/dist/resources/extensions/memory/storage.test.js +67 -0
- package/packages/pi-coding-agent/dist/resources/extensions/memory/storage.test.js.map +1 -0
- package/packages/pi-coding-agent/package.json +1 -1
- package/packages/pi-coding-agent/pnpm-lock.yaml +454 -0
- package/packages/pi-coding-agent/scripts/copy-assets.cjs +24 -0
- package/packages/pi-coding-agent/src/core/extensions/index.ts +3 -0
- package/packages/pi-coding-agent/src/core/extensions/loader.test.ts +141 -0
- package/packages/pi-coding-agent/src/core/extensions/loader.ts +14 -1
- package/packages/pi-coding-agent/src/core/extensions/project-trust.ts +51 -0
- package/packages/pi-coding-agent/src/core/resolve-config-value.test.ts +132 -0
- package/packages/pi-coding-agent/src/core/resolve-config-value.ts +20 -0
- package/packages/pi-coding-agent/src/modes/interactive/components/login-dialog.ts +7 -2
- package/packages/pi-coding-agent/src/resources/extensions/memory/storage.test.ts +98 -0
- package/packages/pi-coding-agent/src/resources/extensions/memory/storage.ts +24 -9
- package/packages/pi-tui/dist/tui.d.ts.map +1 -1
- package/packages/pi-tui/dist/tui.js +2 -2
- package/packages/pi-tui/dist/tui.js.map +1 -1
- package/packages/pi-tui/package.json +3 -1
- package/packages/pi-tui/src/tui.ts +2 -2
- package/src/resources/agents/javascript-pro.md +280 -0
- package/src/resources/agents/typescript-pro.md +255 -0
- package/src/resources/extensions/bg-shell/index.ts +14 -2
- package/src/resources/extensions/bg-shell/utilities.ts +14 -0
- package/src/resources/extensions/browser-tools/{core.js → core.ts} +329 -190
- package/src/resources/extensions/gsd/auto-dashboard.ts +2 -1
- package/src/resources/extensions/gsd/auto-prompts.ts +42 -1
- package/src/resources/extensions/gsd/auto-worktree.ts +35 -2
- package/src/resources/extensions/gsd/auto.ts +116 -10
- package/src/resources/extensions/gsd/claude-import.ts +656 -0
- package/src/resources/extensions/gsd/collision-diagnostics.ts +332 -0
- package/src/resources/extensions/gsd/commands.ts +60 -7
- package/src/resources/extensions/gsd/diff-context.ts +220 -0
- package/src/resources/extensions/gsd/docs/claude-marketplace-import.md +214 -0
- package/src/resources/extensions/gsd/docs/preferences-reference.md +2 -1
- package/src/resources/extensions/gsd/doctor.ts +12 -4
- package/src/resources/extensions/gsd/file-watcher.ts +97 -0
- package/src/resources/extensions/gsd/files.ts +1 -1
- package/src/resources/extensions/gsd/forensics.ts +596 -0
- package/src/resources/extensions/gsd/git-service.ts +2 -1
- package/src/resources/extensions/gsd/github-client.ts +235 -0
- package/src/resources/extensions/gsd/gitignore.ts +1 -0
- package/src/resources/extensions/gsd/marketplace-discovery.ts +507 -0
- package/src/resources/extensions/gsd/mcp-server.ts +87 -0
- package/src/resources/extensions/gsd/namespaced-registry.ts +467 -0
- package/src/resources/extensions/gsd/namespaced-resolver.ts +307 -0
- package/src/resources/extensions/gsd/plugin-importer.ts +410 -0
- package/src/resources/extensions/gsd/preferences.ts +14 -3
- package/src/resources/extensions/gsd/prompts/execute-task.md +1 -1
- package/src/resources/extensions/gsd/prompts/forensics.md +71 -0
- package/src/resources/extensions/gsd/prompts/plan-slice.md +1 -1
- package/src/resources/extensions/gsd/prompts/research-slice.md +1 -1
- package/src/resources/extensions/gsd/prompts/system.md +12 -3
- package/src/resources/extensions/gsd/roadmap-slices.ts +1 -1
- package/src/resources/extensions/gsd/session-forensics.ts +5 -5
- package/src/resources/extensions/gsd/tests/claude-import-tui.test.ts +351 -0
- package/src/resources/extensions/gsd/tests/collision-diagnostics.test.ts +705 -0
- package/src/resources/extensions/gsd/tests/context-compression.test.ts +13 -0
- package/src/resources/extensions/gsd/tests/diff-context.test.ts +136 -0
- package/src/resources/extensions/gsd/tests/doctor-git.test.ts +118 -0
- package/src/resources/extensions/gsd/tests/marketplace-discovery.test.ts +202 -0
- package/src/resources/extensions/gsd/tests/marketplace-test-fixtures.ts +91 -0
- package/src/resources/extensions/gsd/tests/namespaced-registry.test.ts +1027 -0
- package/src/resources/extensions/gsd/tests/namespaced-resolver.test.ts +671 -0
- package/src/resources/extensions/gsd/tests/none-mode-gates.test.ts +105 -0
- package/src/resources/extensions/gsd/tests/plugin-importer-live.test.ts +481 -0
- package/src/resources/extensions/gsd/tests/plugin-importer.test.ts +1383 -0
- package/src/resources/extensions/gsd/tests/preferences-git.test.ts +21 -2
- package/src/resources/extensions/gsd/tests/preferences-schema-validation.test.ts +8 -1
- package/src/resources/extensions/gsd/tests/visualizer-data.test.ts +11 -0
- package/src/resources/extensions/gsd/tests/worktree-bugfix.test.ts +120 -0
- package/src/resources/extensions/gsd/token-counter.ts +45 -0
- package/src/resources/extensions/gsd/visualizer-data.ts +2 -2
- package/src/resources/extensions/gsd/worktree-manager.ts +29 -1
- package/src/resources/extensions/gsd/worktree.ts +3 -0
- package/src/resources/extensions/mcporter/index.ts +90 -7
- package/src/resources/extensions/search-the-web/native-search.ts +2 -0
- package/src/resources/extensions/search-the-web/tool-fetch-page.ts +9 -1
- package/src/resources/extensions/search-the-web/url-utils.ts +35 -1
- package/src/resources/extensions/shared/terminal.ts +1 -1
- package/src/resources/extensions/universal-config/discovery.ts +4 -0
- package/src/resources/extensions/universal-config/format.ts +35 -4
- package/src/resources/extensions/universal-config/index.ts +5 -3
- package/src/resources/extensions/universal-config/scanners.ts +65 -2
- package/src/resources/extensions/universal-config/tests/discovery.test.ts +9 -1
- package/src/resources/extensions/universal-config/tests/format.test.ts +22 -6
- package/src/resources/extensions/universal-config/tests/scanners.test.ts +18 -0
- package/src/resources/extensions/universal-config/types.ts +20 -1
- package/src/resources/skills/lint/SKILL.md +141 -0
- package/src/resources/skills/review/SKILL.md +214 -0
- package/src/resources/skills/test/SKILL.md +201 -0
- package/dist/resources/extensions/browser-tools/core.d.ts +0 -205
- package/src/resources/extensions/browser-tools/core.d.ts +0 -205
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsc -p tsconfig.json && npm run copy-assets",
|
|
24
|
-
"copy-assets": "node
|
|
24
|
+
"copy-assets": "node scripts/copy-assets.cjs"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@mariozechner/jiti": "^2.6.2",
|
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
lockfileVersion: '9.0'
|
|
2
|
+
|
|
3
|
+
settings:
|
|
4
|
+
autoInstallPeers: true
|
|
5
|
+
excludeLinksFromLockfile: false
|
|
6
|
+
|
|
7
|
+
importers:
|
|
8
|
+
|
|
9
|
+
.:
|
|
10
|
+
dependencies:
|
|
11
|
+
'@mariozechner/jiti':
|
|
12
|
+
specifier: ^2.6.2
|
|
13
|
+
version: 2.6.5
|
|
14
|
+
'@silvia-odwyer/photon-node':
|
|
15
|
+
specifier: ^0.3.4
|
|
16
|
+
version: 0.3.4
|
|
17
|
+
chalk:
|
|
18
|
+
specifier: ^5.5.0
|
|
19
|
+
version: 5.6.2
|
|
20
|
+
diff:
|
|
21
|
+
specifier: ^8.0.2
|
|
22
|
+
version: 8.0.3
|
|
23
|
+
extract-zip:
|
|
24
|
+
specifier: ^2.0.1
|
|
25
|
+
version: 2.0.1
|
|
26
|
+
file-type:
|
|
27
|
+
specifier: ^21.1.1
|
|
28
|
+
version: 21.3.2
|
|
29
|
+
glob:
|
|
30
|
+
specifier: ^13.0.1
|
|
31
|
+
version: 13.0.6
|
|
32
|
+
hosted-git-info:
|
|
33
|
+
specifier: ^9.0.2
|
|
34
|
+
version: 9.0.2
|
|
35
|
+
ignore:
|
|
36
|
+
specifier: ^7.0.5
|
|
37
|
+
version: 7.0.5
|
|
38
|
+
marked:
|
|
39
|
+
specifier: ^15.0.12
|
|
40
|
+
version: 15.0.12
|
|
41
|
+
minimatch:
|
|
42
|
+
specifier: ^10.2.3
|
|
43
|
+
version: 10.2.4
|
|
44
|
+
proper-lockfile:
|
|
45
|
+
specifier: ^4.1.2
|
|
46
|
+
version: 4.1.2
|
|
47
|
+
sql.js:
|
|
48
|
+
specifier: ^1.14.1
|
|
49
|
+
version: 1.14.1
|
|
50
|
+
strip-ansi:
|
|
51
|
+
specifier: ^7.1.0
|
|
52
|
+
version: 7.2.0
|
|
53
|
+
undici:
|
|
54
|
+
specifier: ^7.24.2
|
|
55
|
+
version: 7.24.4
|
|
56
|
+
yaml:
|
|
57
|
+
specifier: ^2.8.2
|
|
58
|
+
version: 2.8.2
|
|
59
|
+
devDependencies:
|
|
60
|
+
'@types/diff':
|
|
61
|
+
specifier: ^7.0.2
|
|
62
|
+
version: 7.0.2
|
|
63
|
+
'@types/hosted-git-info':
|
|
64
|
+
specifier: ^3.0.5
|
|
65
|
+
version: 3.0.5
|
|
66
|
+
'@types/proper-lockfile':
|
|
67
|
+
specifier: ^4.1.4
|
|
68
|
+
version: 4.1.4
|
|
69
|
+
'@types/sql.js':
|
|
70
|
+
specifier: ^1.4.9
|
|
71
|
+
version: 1.4.9
|
|
72
|
+
|
|
73
|
+
packages:
|
|
74
|
+
|
|
75
|
+
'@borewit/text-codec@0.2.2':
|
|
76
|
+
resolution: {integrity: sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ==}
|
|
77
|
+
|
|
78
|
+
'@mariozechner/jiti@2.6.5':
|
|
79
|
+
resolution: {integrity: sha512-faGUlTcXka5l7rv0lP3K3vGW/ejRuOS24RR2aSFWREUQqzjgdsuWNo/IiPqL3kWRGt6Ahl2+qcDAwtdeWeuGUw==}
|
|
80
|
+
hasBin: true
|
|
81
|
+
|
|
82
|
+
'@silvia-odwyer/photon-node@0.3.4':
|
|
83
|
+
resolution: {integrity: sha512-bnly4BKB3KDTFxrUIcgCLbaeVVS8lrAkri1pEzskpmxu9MdfGQTy8b8EgcD83ywD3RPMsIulY8xJH5Awa+t9fA==}
|
|
84
|
+
|
|
85
|
+
'@tokenizer/inflate@0.4.1':
|
|
86
|
+
resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==}
|
|
87
|
+
engines: {node: '>=18'}
|
|
88
|
+
|
|
89
|
+
'@tokenizer/token@0.3.0':
|
|
90
|
+
resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==}
|
|
91
|
+
|
|
92
|
+
'@types/diff@7.0.2':
|
|
93
|
+
resolution: {integrity: sha512-JSWRMozjFKsGlEjiiKajUjIJVKuKdE3oVy2DNtK+fUo8q82nhFZ2CPQwicAIkXrofahDXrWJ7mjelvZphMS98Q==}
|
|
94
|
+
|
|
95
|
+
'@types/emscripten@1.41.5':
|
|
96
|
+
resolution: {integrity: sha512-cMQm7pxu6BxtHyqJ7mQZ2kXWV5SLmugybFdHCBbJ5eHzOo6VhBckEgAT3//rP5FwPHNPeEiq4SmQ5ucBwsOo4Q==}
|
|
97
|
+
|
|
98
|
+
'@types/hosted-git-info@3.0.5':
|
|
99
|
+
resolution: {integrity: sha512-Dmngh7U003cOHPhKGyA7LWqrnvcTyILNgNPmNCxlx7j8MIi54iBliiT8XqVLIQ3GchoOjVAyBzNJVyuaJjqokg==}
|
|
100
|
+
|
|
101
|
+
'@types/node@25.5.0':
|
|
102
|
+
resolution: {integrity: sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==}
|
|
103
|
+
|
|
104
|
+
'@types/proper-lockfile@4.1.4':
|
|
105
|
+
resolution: {integrity: sha512-uo2ABllncSqg9F1D4nugVl9v93RmjxF6LJzQLMLDdPaXCUIDPeOJ21Gbqi43xNKzBi/WQ0Q0dICqufzQbMjipQ==}
|
|
106
|
+
|
|
107
|
+
'@types/retry@0.12.5':
|
|
108
|
+
resolution: {integrity: sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==}
|
|
109
|
+
|
|
110
|
+
'@types/sql.js@1.4.9':
|
|
111
|
+
resolution: {integrity: sha512-ep8b36RKHlgWPqjNG9ToUrPiwkhwh0AEzy883mO5Xnd+cL6VBH1EvSjBAAuxLUFF2Vn/moE3Me6v9E1Lo+48GQ==}
|
|
112
|
+
|
|
113
|
+
'@types/yauzl@2.10.3':
|
|
114
|
+
resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}
|
|
115
|
+
|
|
116
|
+
ansi-regex@6.2.2:
|
|
117
|
+
resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==}
|
|
118
|
+
engines: {node: '>=12'}
|
|
119
|
+
|
|
120
|
+
balanced-match@4.0.4:
|
|
121
|
+
resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}
|
|
122
|
+
engines: {node: 18 || 20 || >=22}
|
|
123
|
+
|
|
124
|
+
brace-expansion@5.0.4:
|
|
125
|
+
resolution: {integrity: sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==}
|
|
126
|
+
engines: {node: 18 || 20 || >=22}
|
|
127
|
+
|
|
128
|
+
buffer-crc32@0.2.13:
|
|
129
|
+
resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
|
|
130
|
+
|
|
131
|
+
chalk@5.6.2:
|
|
132
|
+
resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==}
|
|
133
|
+
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
|
|
134
|
+
|
|
135
|
+
debug@4.4.3:
|
|
136
|
+
resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
|
|
137
|
+
engines: {node: '>=6.0'}
|
|
138
|
+
peerDependencies:
|
|
139
|
+
supports-color: '*'
|
|
140
|
+
peerDependenciesMeta:
|
|
141
|
+
supports-color:
|
|
142
|
+
optional: true
|
|
143
|
+
|
|
144
|
+
diff@8.0.3:
|
|
145
|
+
resolution: {integrity: sha512-qejHi7bcSD4hQAZE0tNAawRK1ZtafHDmMTMkrrIGgSLl7hTnQHmKCeB45xAcbfTqK2zowkM3j3bHt/4b/ARbYQ==}
|
|
146
|
+
engines: {node: '>=0.3.1'}
|
|
147
|
+
|
|
148
|
+
end-of-stream@1.4.5:
|
|
149
|
+
resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==}
|
|
150
|
+
|
|
151
|
+
extract-zip@2.0.1:
|
|
152
|
+
resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==}
|
|
153
|
+
engines: {node: '>= 10.17.0'}
|
|
154
|
+
hasBin: true
|
|
155
|
+
|
|
156
|
+
fd-slicer@1.1.0:
|
|
157
|
+
resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}
|
|
158
|
+
|
|
159
|
+
file-type@21.3.2:
|
|
160
|
+
resolution: {integrity: sha512-DLkUvGwep3poOV2wpzbHCOnSKGk1LzyXTv+aHFgN2VFl96wnp8YA9YjO2qPzg5PuL8q/SW9Pdi6WTkYOIh995w==}
|
|
161
|
+
engines: {node: '>=20'}
|
|
162
|
+
|
|
163
|
+
get-stream@5.2.0:
|
|
164
|
+
resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==}
|
|
165
|
+
engines: {node: '>=8'}
|
|
166
|
+
|
|
167
|
+
glob@13.0.6:
|
|
168
|
+
resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==}
|
|
169
|
+
engines: {node: 18 || 20 || >=22}
|
|
170
|
+
|
|
171
|
+
graceful-fs@4.2.11:
|
|
172
|
+
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
|
|
173
|
+
|
|
174
|
+
hosted-git-info@9.0.2:
|
|
175
|
+
resolution: {integrity: sha512-M422h7o/BR3rmCQ8UHi7cyyMqKltdP9Uo+J2fXK+RSAY+wTcKOIRyhTuKv4qn+DJf3g+PL890AzId5KZpX+CBg==}
|
|
176
|
+
engines: {node: ^20.17.0 || >=22.9.0}
|
|
177
|
+
|
|
178
|
+
ieee754@1.2.1:
|
|
179
|
+
resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
|
|
180
|
+
|
|
181
|
+
ignore@7.0.5:
|
|
182
|
+
resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==}
|
|
183
|
+
engines: {node: '>= 4'}
|
|
184
|
+
|
|
185
|
+
lru-cache@11.2.7:
|
|
186
|
+
resolution: {integrity: sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==}
|
|
187
|
+
engines: {node: 20 || >=22}
|
|
188
|
+
|
|
189
|
+
marked@15.0.12:
|
|
190
|
+
resolution: {integrity: sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==}
|
|
191
|
+
engines: {node: '>= 18'}
|
|
192
|
+
hasBin: true
|
|
193
|
+
|
|
194
|
+
minimatch@10.2.4:
|
|
195
|
+
resolution: {integrity: sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==}
|
|
196
|
+
engines: {node: 18 || 20 || >=22}
|
|
197
|
+
|
|
198
|
+
minipass@7.1.3:
|
|
199
|
+
resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}
|
|
200
|
+
engines: {node: '>=16 || 14 >=14.17'}
|
|
201
|
+
|
|
202
|
+
ms@2.1.3:
|
|
203
|
+
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
|
|
204
|
+
|
|
205
|
+
once@1.4.0:
|
|
206
|
+
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
|
|
207
|
+
|
|
208
|
+
path-scurry@2.0.2:
|
|
209
|
+
resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==}
|
|
210
|
+
engines: {node: 18 || 20 || >=22}
|
|
211
|
+
|
|
212
|
+
pend@1.2.0:
|
|
213
|
+
resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==}
|
|
214
|
+
|
|
215
|
+
proper-lockfile@4.1.2:
|
|
216
|
+
resolution: {integrity: sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==}
|
|
217
|
+
|
|
218
|
+
pump@3.0.4:
|
|
219
|
+
resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==}
|
|
220
|
+
|
|
221
|
+
retry@0.12.0:
|
|
222
|
+
resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}
|
|
223
|
+
engines: {node: '>= 4'}
|
|
224
|
+
|
|
225
|
+
signal-exit@3.0.7:
|
|
226
|
+
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
|
|
227
|
+
|
|
228
|
+
sql.js@1.14.1:
|
|
229
|
+
resolution: {integrity: sha512-gcj8zBWU5cFsi9WUP+4bFNXAyF1iRpA3LLyS/DP5xlrNzGmPIizUeBggKa8DbDwdqaKwUcTEnChtd2grWo/x/A==}
|
|
230
|
+
|
|
231
|
+
std-env@3.10.0:
|
|
232
|
+
resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==}
|
|
233
|
+
|
|
234
|
+
strip-ansi@7.2.0:
|
|
235
|
+
resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==}
|
|
236
|
+
engines: {node: '>=12'}
|
|
237
|
+
|
|
238
|
+
strtok3@10.3.4:
|
|
239
|
+
resolution: {integrity: sha512-KIy5nylvC5le1OdaaoCJ07L+8iQzJHGH6pWDuzS+d07Cu7n1MZ2x26P8ZKIWfbK02+XIL8Mp4RkWeqdUCrDMfg==}
|
|
240
|
+
engines: {node: '>=18'}
|
|
241
|
+
|
|
242
|
+
token-types@6.1.2:
|
|
243
|
+
resolution: {integrity: sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==}
|
|
244
|
+
engines: {node: '>=14.16'}
|
|
245
|
+
|
|
246
|
+
uint8array-extras@1.5.0:
|
|
247
|
+
resolution: {integrity: sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==}
|
|
248
|
+
engines: {node: '>=18'}
|
|
249
|
+
|
|
250
|
+
undici-types@7.18.2:
|
|
251
|
+
resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==}
|
|
252
|
+
|
|
253
|
+
undici@7.24.4:
|
|
254
|
+
resolution: {integrity: sha512-BM/JzwwaRXxrLdElV2Uo6cTLEjhSb3WXboncJamZ15NgUURmvlXvxa6xkwIOILIjPNo9i8ku136ZvWV0Uly8+w==}
|
|
255
|
+
engines: {node: '>=20.18.1'}
|
|
256
|
+
|
|
257
|
+
wrappy@1.0.2:
|
|
258
|
+
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
|
|
259
|
+
|
|
260
|
+
yaml@2.8.2:
|
|
261
|
+
resolution: {integrity: sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==}
|
|
262
|
+
engines: {node: '>= 14.6'}
|
|
263
|
+
hasBin: true
|
|
264
|
+
|
|
265
|
+
yauzl@2.10.0:
|
|
266
|
+
resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==}
|
|
267
|
+
|
|
268
|
+
yoctocolors@2.1.2:
|
|
269
|
+
resolution: {integrity: sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==}
|
|
270
|
+
engines: {node: '>=18'}
|
|
271
|
+
|
|
272
|
+
snapshots:
|
|
273
|
+
|
|
274
|
+
'@borewit/text-codec@0.2.2': {}
|
|
275
|
+
|
|
276
|
+
'@mariozechner/jiti@2.6.5':
|
|
277
|
+
dependencies:
|
|
278
|
+
std-env: 3.10.0
|
|
279
|
+
yoctocolors: 2.1.2
|
|
280
|
+
|
|
281
|
+
'@silvia-odwyer/photon-node@0.3.4': {}
|
|
282
|
+
|
|
283
|
+
'@tokenizer/inflate@0.4.1':
|
|
284
|
+
dependencies:
|
|
285
|
+
debug: 4.4.3
|
|
286
|
+
token-types: 6.1.2
|
|
287
|
+
transitivePeerDependencies:
|
|
288
|
+
- supports-color
|
|
289
|
+
|
|
290
|
+
'@tokenizer/token@0.3.0': {}
|
|
291
|
+
|
|
292
|
+
'@types/diff@7.0.2': {}
|
|
293
|
+
|
|
294
|
+
'@types/emscripten@1.41.5': {}
|
|
295
|
+
|
|
296
|
+
'@types/hosted-git-info@3.0.5': {}
|
|
297
|
+
|
|
298
|
+
'@types/node@25.5.0':
|
|
299
|
+
dependencies:
|
|
300
|
+
undici-types: 7.18.2
|
|
301
|
+
|
|
302
|
+
'@types/proper-lockfile@4.1.4':
|
|
303
|
+
dependencies:
|
|
304
|
+
'@types/retry': 0.12.5
|
|
305
|
+
|
|
306
|
+
'@types/retry@0.12.5': {}
|
|
307
|
+
|
|
308
|
+
'@types/sql.js@1.4.9':
|
|
309
|
+
dependencies:
|
|
310
|
+
'@types/emscripten': 1.41.5
|
|
311
|
+
'@types/node': 25.5.0
|
|
312
|
+
|
|
313
|
+
'@types/yauzl@2.10.3':
|
|
314
|
+
dependencies:
|
|
315
|
+
'@types/node': 25.5.0
|
|
316
|
+
optional: true
|
|
317
|
+
|
|
318
|
+
ansi-regex@6.2.2: {}
|
|
319
|
+
|
|
320
|
+
balanced-match@4.0.4: {}
|
|
321
|
+
|
|
322
|
+
brace-expansion@5.0.4:
|
|
323
|
+
dependencies:
|
|
324
|
+
balanced-match: 4.0.4
|
|
325
|
+
|
|
326
|
+
buffer-crc32@0.2.13: {}
|
|
327
|
+
|
|
328
|
+
chalk@5.6.2: {}
|
|
329
|
+
|
|
330
|
+
debug@4.4.3:
|
|
331
|
+
dependencies:
|
|
332
|
+
ms: 2.1.3
|
|
333
|
+
|
|
334
|
+
diff@8.0.3: {}
|
|
335
|
+
|
|
336
|
+
end-of-stream@1.4.5:
|
|
337
|
+
dependencies:
|
|
338
|
+
once: 1.4.0
|
|
339
|
+
|
|
340
|
+
extract-zip@2.0.1:
|
|
341
|
+
dependencies:
|
|
342
|
+
debug: 4.4.3
|
|
343
|
+
get-stream: 5.2.0
|
|
344
|
+
yauzl: 2.10.0
|
|
345
|
+
optionalDependencies:
|
|
346
|
+
'@types/yauzl': 2.10.3
|
|
347
|
+
transitivePeerDependencies:
|
|
348
|
+
- supports-color
|
|
349
|
+
|
|
350
|
+
fd-slicer@1.1.0:
|
|
351
|
+
dependencies:
|
|
352
|
+
pend: 1.2.0
|
|
353
|
+
|
|
354
|
+
file-type@21.3.2:
|
|
355
|
+
dependencies:
|
|
356
|
+
'@tokenizer/inflate': 0.4.1
|
|
357
|
+
strtok3: 10.3.4
|
|
358
|
+
token-types: 6.1.2
|
|
359
|
+
uint8array-extras: 1.5.0
|
|
360
|
+
transitivePeerDependencies:
|
|
361
|
+
- supports-color
|
|
362
|
+
|
|
363
|
+
get-stream@5.2.0:
|
|
364
|
+
dependencies:
|
|
365
|
+
pump: 3.0.4
|
|
366
|
+
|
|
367
|
+
glob@13.0.6:
|
|
368
|
+
dependencies:
|
|
369
|
+
minimatch: 10.2.4
|
|
370
|
+
minipass: 7.1.3
|
|
371
|
+
path-scurry: 2.0.2
|
|
372
|
+
|
|
373
|
+
graceful-fs@4.2.11: {}
|
|
374
|
+
|
|
375
|
+
hosted-git-info@9.0.2:
|
|
376
|
+
dependencies:
|
|
377
|
+
lru-cache: 11.2.7
|
|
378
|
+
|
|
379
|
+
ieee754@1.2.1: {}
|
|
380
|
+
|
|
381
|
+
ignore@7.0.5: {}
|
|
382
|
+
|
|
383
|
+
lru-cache@11.2.7: {}
|
|
384
|
+
|
|
385
|
+
marked@15.0.12: {}
|
|
386
|
+
|
|
387
|
+
minimatch@10.2.4:
|
|
388
|
+
dependencies:
|
|
389
|
+
brace-expansion: 5.0.4
|
|
390
|
+
|
|
391
|
+
minipass@7.1.3: {}
|
|
392
|
+
|
|
393
|
+
ms@2.1.3: {}
|
|
394
|
+
|
|
395
|
+
once@1.4.0:
|
|
396
|
+
dependencies:
|
|
397
|
+
wrappy: 1.0.2
|
|
398
|
+
|
|
399
|
+
path-scurry@2.0.2:
|
|
400
|
+
dependencies:
|
|
401
|
+
lru-cache: 11.2.7
|
|
402
|
+
minipass: 7.1.3
|
|
403
|
+
|
|
404
|
+
pend@1.2.0: {}
|
|
405
|
+
|
|
406
|
+
proper-lockfile@4.1.2:
|
|
407
|
+
dependencies:
|
|
408
|
+
graceful-fs: 4.2.11
|
|
409
|
+
retry: 0.12.0
|
|
410
|
+
signal-exit: 3.0.7
|
|
411
|
+
|
|
412
|
+
pump@3.0.4:
|
|
413
|
+
dependencies:
|
|
414
|
+
end-of-stream: 1.4.5
|
|
415
|
+
once: 1.4.0
|
|
416
|
+
|
|
417
|
+
retry@0.12.0: {}
|
|
418
|
+
|
|
419
|
+
signal-exit@3.0.7: {}
|
|
420
|
+
|
|
421
|
+
sql.js@1.14.1: {}
|
|
422
|
+
|
|
423
|
+
std-env@3.10.0: {}
|
|
424
|
+
|
|
425
|
+
strip-ansi@7.2.0:
|
|
426
|
+
dependencies:
|
|
427
|
+
ansi-regex: 6.2.2
|
|
428
|
+
|
|
429
|
+
strtok3@10.3.4:
|
|
430
|
+
dependencies:
|
|
431
|
+
'@tokenizer/token': 0.3.0
|
|
432
|
+
|
|
433
|
+
token-types@6.1.2:
|
|
434
|
+
dependencies:
|
|
435
|
+
'@borewit/text-codec': 0.2.2
|
|
436
|
+
'@tokenizer/token': 0.3.0
|
|
437
|
+
ieee754: 1.2.1
|
|
438
|
+
|
|
439
|
+
uint8array-extras@1.5.0: {}
|
|
440
|
+
|
|
441
|
+
undici-types@7.18.2: {}
|
|
442
|
+
|
|
443
|
+
undici@7.24.4: {}
|
|
444
|
+
|
|
445
|
+
wrappy@1.0.2: {}
|
|
446
|
+
|
|
447
|
+
yaml@2.8.2: {}
|
|
448
|
+
|
|
449
|
+
yauzl@2.10.0:
|
|
450
|
+
dependencies:
|
|
451
|
+
buffer-crc32: 0.2.13
|
|
452
|
+
fd-slicer: 1.1.0
|
|
453
|
+
|
|
454
|
+
yoctocolors@2.1.2: {}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { mkdirSync, cpSync } = require('fs');
|
|
3
|
+
|
|
4
|
+
// Theme assets
|
|
5
|
+
mkdirSync('dist/modes/interactive/theme', { recursive: true });
|
|
6
|
+
cpSync('src/modes/interactive/theme', 'dist/modes/interactive/theme', {
|
|
7
|
+
recursive: true,
|
|
8
|
+
filter: (s) => !s.endsWith('.ts'),
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
// Export HTML templates and vendor files
|
|
12
|
+
mkdirSync('dist/core/export-html/vendor', { recursive: true });
|
|
13
|
+
cpSync('src/core/export-html/template.html', 'dist/core/export-html/template.html');
|
|
14
|
+
cpSync('src/core/export-html/template.css', 'dist/core/export-html/template.css');
|
|
15
|
+
cpSync('src/core/export-html/template.js', 'dist/core/export-html/template.js');
|
|
16
|
+
cpSync('src/core/export-html/vendor', 'dist/core/export-html/vendor', {
|
|
17
|
+
recursive: true,
|
|
18
|
+
filter: (s) => !s.endsWith('.ts'),
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// LSP defaults
|
|
22
|
+
mkdirSync('dist/core/lsp', { recursive: true });
|
|
23
|
+
cpSync('src/core/lsp/defaults.json', 'dist/core/lsp/defaults.json');
|
|
24
|
+
cpSync('src/core/lsp/lsp.md', 'dist/core/lsp/lsp.md');
|
|
@@ -6,8 +6,11 @@ export type { SlashCommandInfo, SlashCommandLocation, SlashCommandSource } from
|
|
|
6
6
|
export {
|
|
7
7
|
createExtensionRuntime,
|
|
8
8
|
discoverAndLoadExtensions,
|
|
9
|
+
getUntrustedExtensionPaths,
|
|
10
|
+
isProjectTrusted,
|
|
9
11
|
loadExtensionFromFactory,
|
|
10
12
|
loadExtensions,
|
|
13
|
+
trustProject,
|
|
11
14
|
} from "./loader.js";
|
|
12
15
|
export type {
|
|
13
16
|
ExtensionErrorListener,
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
2
|
+
import assert from "node:assert/strict";
|
|
3
|
+
import * as fs from "node:fs";
|
|
4
|
+
import * as os from "node:os";
|
|
5
|
+
import * as path from "node:path";
|
|
6
|
+
import { isProjectTrusted, trustProject, getUntrustedExtensionPaths } from "./project-trust.js";
|
|
7
|
+
|
|
8
|
+
// ─── helpers ──────────────────────────────────────────────────────────────────
|
|
9
|
+
|
|
10
|
+
function makeTempDir(): string {
|
|
11
|
+
return fs.mkdtempSync(path.join(os.tmpdir(), "loader-test-"));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function cleanDir(dir: string): void {
|
|
15
|
+
fs.rmSync(dir, { recursive: true, force: true });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// ─── isProjectTrusted ─────────────────────────────────────────────────────────
|
|
19
|
+
|
|
20
|
+
describe("isProjectTrusted", () => {
|
|
21
|
+
let agentDir: string;
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
agentDir = makeTempDir();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
afterEach(() => {
|
|
28
|
+
cleanDir(agentDir);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it("returns false when no trusted-projects.json exists", () => {
|
|
32
|
+
assert.equal(isProjectTrusted("/some/project", agentDir), false);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it("returns false for an untrusted project path", () => {
|
|
36
|
+
trustProject("/trusted/project", agentDir);
|
|
37
|
+
assert.equal(isProjectTrusted("/other/project", agentDir), false);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it("returns true after trustProject is called for that path", () => {
|
|
41
|
+
trustProject("/trusted/project", agentDir);
|
|
42
|
+
assert.equal(isProjectTrusted("/trusted/project", agentDir), true);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it("canonicalizes paths before comparison (trailing slash)", () => {
|
|
46
|
+
trustProject("/my/project/", agentDir);
|
|
47
|
+
assert.equal(isProjectTrusted("/my/project", agentDir), true);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it("returns false when trusted-projects.json is malformed JSON", () => {
|
|
51
|
+
fs.mkdirSync(agentDir, { recursive: true });
|
|
52
|
+
fs.writeFileSync(path.join(agentDir, "trusted-projects.json"), "not json");
|
|
53
|
+
assert.equal(isProjectTrusted("/any/project", agentDir), false);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it("returns false when trusted-projects.json contains non-array", () => {
|
|
57
|
+
fs.mkdirSync(agentDir, { recursive: true });
|
|
58
|
+
fs.writeFileSync(path.join(agentDir, "trusted-projects.json"), JSON.stringify({ foo: "bar" }));
|
|
59
|
+
assert.equal(isProjectTrusted("/any/project", agentDir), false);
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
// ─── trustProject ─────────────────────────────────────────────────────────────
|
|
64
|
+
|
|
65
|
+
describe("trustProject", () => {
|
|
66
|
+
let agentDir: string;
|
|
67
|
+
|
|
68
|
+
beforeEach(() => {
|
|
69
|
+
agentDir = makeTempDir();
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
afterEach(() => {
|
|
73
|
+
cleanDir(agentDir);
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
it("creates agentDir if it does not exist", () => {
|
|
77
|
+
const nested = path.join(agentDir, "deeply", "nested");
|
|
78
|
+
trustProject("/a/project", nested);
|
|
79
|
+
assert.ok(fs.existsSync(nested));
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it("persists the trusted path to trusted-projects.json", () => {
|
|
83
|
+
trustProject("/a/project", agentDir);
|
|
84
|
+
const content = JSON.parse(fs.readFileSync(path.join(agentDir, "trusted-projects.json"), "utf-8"));
|
|
85
|
+
assert.ok(Array.isArray(content));
|
|
86
|
+
assert.ok(content.includes(path.resolve("/a/project")));
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it("accumulates multiple trusted projects", () => {
|
|
90
|
+
trustProject("/project/one", agentDir);
|
|
91
|
+
trustProject("/project/two", agentDir);
|
|
92
|
+
const content = JSON.parse(fs.readFileSync(path.join(agentDir, "trusted-projects.json"), "utf-8"));
|
|
93
|
+
assert.equal(content.length, 2);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
it("does not duplicate already-trusted paths", () => {
|
|
97
|
+
trustProject("/project/one", agentDir);
|
|
98
|
+
trustProject("/project/one", agentDir);
|
|
99
|
+
const content = JSON.parse(fs.readFileSync(path.join(agentDir, "trusted-projects.json"), "utf-8"));
|
|
100
|
+
assert.equal(content.length, 1);
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
// ─── getUntrustedExtensionPaths ───────────────────────────────────────────────
|
|
105
|
+
|
|
106
|
+
describe("getUntrustedExtensionPaths", () => {
|
|
107
|
+
let agentDir: string;
|
|
108
|
+
|
|
109
|
+
beforeEach(() => {
|
|
110
|
+
agentDir = makeTempDir();
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
afterEach(() => {
|
|
114
|
+
cleanDir(agentDir);
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
it("returns all paths when project is not trusted", () => {
|
|
118
|
+
const paths = ["/proj/.pi/extensions/a.ts", "/proj/.pi/extensions/b.ts"];
|
|
119
|
+
const result = getUntrustedExtensionPaths("/proj", paths, agentDir);
|
|
120
|
+
assert.deepEqual(result, paths);
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
it("returns empty array when project is trusted", () => {
|
|
124
|
+
trustProject("/proj", agentDir);
|
|
125
|
+
const paths = ["/proj/.pi/extensions/a.ts", "/proj/.pi/extensions/b.ts"];
|
|
126
|
+
const result = getUntrustedExtensionPaths("/proj", paths, agentDir);
|
|
127
|
+
assert.deepEqual(result, []);
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
it("returns empty array when extension paths list is empty regardless of trust", () => {
|
|
131
|
+
const result = getUntrustedExtensionPaths("/proj", [], agentDir);
|
|
132
|
+
assert.deepEqual(result, []);
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
it("trusting one project does not affect another", () => {
|
|
136
|
+
trustProject("/project/a", agentDir);
|
|
137
|
+
const paths = ["/project/b/.pi/extensions/evil.ts"];
|
|
138
|
+
const result = getUntrustedExtensionPaths("/project/b", paths, agentDir);
|
|
139
|
+
assert.deepEqual(result, paths);
|
|
140
|
+
});
|
|
141
|
+
});
|
|
@@ -27,6 +27,8 @@ import * as _bundledPiCodingAgent from "../../index.js";
|
|
|
27
27
|
import { createEventBus, type EventBus } from "../event-bus.js";
|
|
28
28
|
import type { ExecOptions } from "../exec.js";
|
|
29
29
|
import { execCommand } from "../exec.js";
|
|
30
|
+
import { getUntrustedExtensionPaths } from "./project-trust.js";
|
|
31
|
+
export { isProjectTrusted, trustProject, getUntrustedExtensionPaths } from "./project-trust.js";
|
|
30
32
|
import type {
|
|
31
33
|
Extension,
|
|
32
34
|
ExtensionAPI,
|
|
@@ -538,8 +540,19 @@ export async function discoverAndLoadExtensions(
|
|
|
538
540
|
};
|
|
539
541
|
|
|
540
542
|
// 1. Project-local extensions: cwd/.pi/extensions/
|
|
543
|
+
// Only loaded when the project path has been explicitly trusted (TOFU model).
|
|
541
544
|
const localExtDir = path.join(cwd, ".pi", "extensions");
|
|
542
|
-
|
|
545
|
+
const localDiscovered = discoverExtensionsInDir(localExtDir);
|
|
546
|
+
if (localDiscovered.length > 0) {
|
|
547
|
+
const untrusted = getUntrustedExtensionPaths(cwd, localDiscovered, agentDir);
|
|
548
|
+
if (untrusted.length > 0) {
|
|
549
|
+
process.stderr.write(
|
|
550
|
+
`[pi] Skipping ${untrusted.length} project-local extension(s) in ${localExtDir} — project not trusted. Use trustProject() to enable.\n`,
|
|
551
|
+
);
|
|
552
|
+
}
|
|
553
|
+
const trusted = localDiscovered.filter((p) => !untrusted.includes(p));
|
|
554
|
+
addPaths(trusted);
|
|
555
|
+
}
|
|
543
556
|
|
|
544
557
|
// 2. Global extensions: agentDir/extensions/
|
|
545
558
|
const globalExtDir = path.join(agentDir, "extensions");
|