pi-agent-ide 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +7 -7
- package/dist/chunk-25CZ5ZIU.js +3 -0
- package/dist/chunk-526E364R.js +3 -0
- package/dist/chunk-5PLV4HLG.js +1 -0
- package/dist/chunk-5QQABP47.js +14 -0
- package/dist/{chunk-72EEL2DW.js → chunk-6CZO43OH.js} +1 -1
- package/dist/chunk-AWXVJ5AC.js +1 -0
- package/dist/chunk-BGUSBUUD.js +26 -0
- package/dist/{chunk-GFW5QPQV.js → chunk-DQXPQOF7.js} +1 -1
- package/dist/chunk-ESPNEJHK.js +1 -0
- package/dist/chunk-G725MARR.js +16 -0
- package/dist/{chunk-M5L42DWE.js → chunk-HKXDP2FD.js} +2 -2
- package/dist/chunk-IQD6PON5.js +0 -0
- package/dist/chunk-J4RTW44E.js +1 -0
- package/dist/{chunk-HGPUI7F3.js → chunk-KII2JQC5.js} +1 -1
- package/dist/{chunk-TI5GMJ7Q.js → chunk-L7JMDDSD.js} +1 -1
- package/dist/{chunk-6DZA4CLO.js → chunk-LY6U5EAD.js} +1 -1
- package/dist/{chunk-ERVMDQGX.js → chunk-MGCHOGQD.js} +1 -1
- package/dist/{chunk-Y7ZMR4LT.js → chunk-O6LE42GK.js} +1 -1
- package/dist/{chunk-KAB3AYA2.js → chunk-OBNING2A.js} +1 -1
- package/dist/chunk-QH4ZUDOD.js +1 -0
- package/dist/{chunk-VFBLX4TG.js → chunk-T6LX2RX5.js} +1 -1
- package/dist/{chunk-AADJ2KIB.js → chunk-U22JNO6N.js} +1 -1
- package/dist/chunk-U2JKHKLK.js +0 -0
- package/dist/{chunk-DQF5QMJ2.js → chunk-WGGIQ7IJ.js} +1 -1
- package/dist/chunk-ZG2MWXCR.js +2 -0
- package/dist/chunk-ZUMN6U77.js +27 -0
- package/dist/entry-10.js +1 -1
- package/dist/entry-11.js +1 -1
- package/dist/entry-12.js +1 -1
- package/dist/entry-13.js +1 -1
- package/dist/entry-14.js +1 -1
- package/dist/entry-15.js +1 -0
- package/dist/entry-17.js +1 -1
- package/dist/entry-18.js +1 -1
- package/dist/entry-19.js +1 -1
- package/dist/entry-20.js +1 -1
- package/dist/entry-21.js +1 -2
- package/dist/entry-22.js +2 -1
- package/dist/entry-23.js +1 -1
- package/dist/entry-24.js +1 -1
- package/dist/entry-25.js +1 -1
- package/dist/entry-26.js +1 -12
- package/dist/entry-27.js +12 -1
- package/dist/entry-28.js +1 -1
- package/dist/entry-29.js +1 -1
- package/dist/entry-30.js +1 -1
- package/dist/entry-31.js +1 -4
- package/dist/entry-32.js +3 -8
- package/dist/entry-33.js +9 -1
- package/dist/entry-34.js +1 -1
- package/dist/entry-35.js +1 -1
- package/dist/entry-36.js +1 -1
- package/dist/entry-37.js +1 -1
- package/dist/entry-38.js +1 -1
- package/dist/entry-39.js +1 -1
- package/dist/entry-40.js +1 -18
- package/dist/entry-41.js +18 -1
- package/dist/entry-42.js +1 -1
- package/dist/entry-43.js +1 -1
- package/dist/entry-44.js +1 -1
- package/dist/entry-45.js +1 -7
- package/dist/entry-46.js +7 -11
- package/dist/entry-47.js +11 -1
- package/dist/entry-48.js +1 -1
- package/dist/entry-49.js +1 -1
- package/dist/entry-50.js +1 -1
- package/dist/entry-51.js +1 -1
- package/dist/entry-52.js +1 -1
- package/dist/entry-53.js +1 -1
- package/dist/entry-54.js +1 -1
- package/dist/entry-55.js +1 -0
- package/dist/entry-56.js +0 -1
- package/dist/entry-57.js +1 -0
- package/dist/entry-58.js +0 -1
- package/dist/entry-59.js +1 -1
- package/dist/entry-60.js +1 -1
- package/dist/entry-61.js +1 -1
- package/dist/entry-62.js +1 -1
- package/dist/entry-63.js +1 -1
- package/dist/entry-64.js +1 -0
- package/dist/entry-65.js +0 -1
- package/dist/entry-66.js +1 -0
- package/dist/entry-67.js +0 -1
- package/dist/entry-68.js +1 -1
- package/dist/entry-69.js +1 -1
- package/dist/entry-70.js +1 -123
- package/dist/entry-71.js +198 -25
- package/dist/entry-72.js +30 -2
- package/dist/entry-73.js +2 -1
- package/dist/entry-74.js +1 -1
- package/dist/entry-75.js +1 -1
- package/dist/entry-76.js +1 -3
- package/dist/entry-77.js +3 -1
- package/dist/entry-78.js +1 -1
- package/dist/entry-79.js +1 -1
- package/dist/entry-8.js +1 -1
- package/dist/entry-80.js +1 -0
- package/dist/entry-9.js +1 -1
- package/dist/pi-agent-ide.js +3 -3
- package/docs/configuration.md +1 -1
- package/docs/user-hooks.md +68 -0
- package/node_modules/pi-agent-doctor/package.json +6 -6
- package/node_modules/pi-agent-doctor/runtime/entry-21.js +1 -0
- package/node_modules/pi-agent-doctor/src/catalog.ts +9 -1
- package/node_modules/pi-agent-doctor/src/plugin-protocol.ts +5 -0
- package/node_modules/pi-agent-filesystem/package.json +7 -7
- package/node_modules/pi-agent-filesystem-image/package.json +4 -4
- package/node_modules/pi-agent-filesystem-pdf/package.json +4 -4
- package/node_modules/pi-agent-filesystem-text/package.json +4 -4
- package/node_modules/pi-agent-filesystem-text/runtime/entry-25.js +2 -0
- package/node_modules/pi-agent-ide-ast/package.json +32 -11
- package/node_modules/pi-agent-ide-ast/runtime/entry-26.js +0 -1
- package/node_modules/pi-agent-ide-ast/runtime/entry-27.js +2 -0
- package/node_modules/pi-agent-ide-ast/src/ast/manager.ts +16 -8
- package/node_modules/pi-agent-ide-ast/src/ast/native-parser.ts +151 -0
- package/node_modules/pi-agent-ide-ast/src/ast/outline.ts +22 -17
- package/node_modules/pi-agent-ide-ast/src/ast/syntax-tree.ts +25 -0
- package/node_modules/pi-agent-ide-ast/src/doctor-plugin.ts +52 -1
- package/node_modules/pi-agent-ide-ast/src/search-resolver.ts +4 -1
- package/node_modules/pi-agent-ide-changes/index.ts +3 -1
- package/node_modules/pi-agent-ide-changes/package.json +8 -8
- package/node_modules/pi-agent-ide-changes/runtime/entry-28.js +0 -1
- package/node_modules/pi-agent-ide-changes/src/tool-text-undo.ts +42 -9
- package/node_modules/pi-agent-ide-formatter/package.json +9 -4
- package/node_modules/pi-agent-ide-languages/package.json +3 -3
- package/node_modules/pi-agent-ide-lint/package.json +13 -8
- package/node_modules/pi-agent-ide-lsp/index.ts +4 -1
- package/node_modules/pi-agent-ide-lsp/package.json +15 -10
- package/node_modules/pi-agent-ide-lsp/runtime/entry-33.js +2 -0
- package/node_modules/pi-agent-image/package.json +3 -3
- package/node_modules/pi-agent-invariant/package.json +2 -2
- package/node_modules/pi-agent-pdf/package.json +3 -3
- package/node_modules/pi-agent-read/package.json +11 -11
- package/node_modules/pi-agent-read/runtime/entry-40.js +0 -1
- package/node_modules/pi-agent-read/runtime/entry-41.js +2 -0
- package/node_modules/pi-agent-read/src/api/plugin-protocol.ts +1 -1
- package/node_modules/pi-agent-read/src/api/rendering.ts +1 -1
- package/node_modules/pi-agent-read/src/api/tools/read.ts +32 -0
- package/node_modules/pi-agent-read/src/core/read-core.ts +8 -0
- package/node_modules/pi-agent-read/src/core/tools/read/raw-read.ts +38 -4
- package/node_modules/pi-agent-read/src/core/tools/read/read-renderer.ts +63 -4
- package/node_modules/pi-agent-read/src/core/tools/tool-read.ts +105 -5
- package/node_modules/pi-agent-resource/package.json +2 -2
- package/node_modules/pi-agent-search/package.json +7 -7
- package/node_modules/pi-agent-search/runtime/entry-45.js +0 -1
- package/node_modules/pi-agent-search/src/api/search-parameters.ts +5 -1
- package/node_modules/pi-agent-search-text/index.ts +1 -1
- package/node_modules/pi-agent-search-text/package.json +9 -9
- package/node_modules/pi-agent-search-text/runtime/entry-47.js +1 -0
- package/node_modules/pi-agent-search-text/src/resolvers.ts +47 -19
- package/node_modules/pi-agent-search-text/src/search-backend.ts +6 -15
- package/node_modules/pi-agent-search-text/src/search-presentation.ts +80 -0
- package/node_modules/pi-agent-search-text/src/search-renderer.ts +17 -1
- package/node_modules/pi-agent-search-text/src/search-result.ts +32 -12
- package/node_modules/pi-agent-search-text/src/search-session.ts +6 -3
- package/node_modules/pi-agent-text/package.json +3 -3
- package/node_modules/pi-agent-text/runtime/entry-49.js +1 -0
- package/node_modules/pi-agent-text-anchor-constant/package.json +4 -4
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-50.js +2 -0
- package/node_modules/pi-agent-text-anchor-exact/package.json +5 -5
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-51.js +0 -1
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-52.js +2 -0
- package/node_modules/pi-agent-text-anchor-line-hash/package.json +7 -7
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-53.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-54.js +2 -0
- package/node_modules/pi-agent-text-editor/package.json +25 -25
- package/node_modules/pi-agent-text-editor/runtime/entry-70.js +0 -1
- package/node_modules/pi-agent-text-editor/src/api/edit-completion.ts +7 -1
- package/node_modules/pi-agent-text-editor/src/api/edit-pipeline.ts +3 -0
- package/node_modules/pi-agent-text-editor/src/api/mutation-guard.ts +1 -0
- package/node_modules/pi-agent-text-editor/src/api/mutation-tool.ts +47 -0
- package/node_modules/pi-agent-text-editor/src/api/plugin-protocol.ts +6 -1
- package/node_modules/pi-agent-text-editor/src/core/apply/apply-undo-store.ts +155 -0
- package/node_modules/pi-agent-text-editor/src/core/apply/execution.ts +56 -77
- package/node_modules/pi-agent-text-editor/src/core/apply/mixed-source.ts +7 -12
- package/node_modules/pi-agent-text-editor/src/core/apply/mutation-outcome.ts +2 -0
- package/node_modules/pi-agent-text-editor/src/core/apply/output.ts +37 -8
- package/node_modules/pi-agent-text-editor/src/core/apply/prompt.ts +42 -37
- package/node_modules/pi-agent-text-editor/src/core/apply/renderer.ts +51 -15
- package/node_modules/pi-agent-text-editor/src/core/apply/runtime.ts +119 -20
- package/node_modules/pi-agent-text-editor/src/core/apply/tool.ts +28 -7
- package/node_modules/pi-agent-text-editor/src/core/apply/transaction.ts +387 -0
- package/node_modules/pi-agent-text-editor/src/core/extension.ts +3 -2
- package/node_modules/pi-agent-text-editor/src/core/file-operation-tools.ts +68 -71
- package/node_modules/pi-agent-text-editor/src/core/file-operations.ts +4 -4
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +11 -0
- package/node_modules/pi-agent-text-editor/src/core/text-edit-batch.ts +4 -0
- package/node_modules/pi-agent-text-editor/src/core/text-editor-core.ts +141 -6
- package/node_modules/pi-agent-text-editor/src/core/text-mutation.ts +123 -4
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-copy.ts +9 -4
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-delete.ts +3 -2
- package/node_modules/pi-agent-text-editor/src/tools/tool-text-move.ts +9 -4
- package/node_modules/pi-agent-text-editor-renderer/index.ts +5 -0
- package/node_modules/pi-agent-text-editor-renderer/package.json +6 -6
- package/node_modules/pi-agent-text-editor-renderer/src/renderer.ts +59 -0
- package/node_modules/pi-agent-text-editor-stale-anchor/package.json +5 -5
- package/node_modules/pi-agent-text-editor-stale-anchor/runtime/entry-73.js +2 -0
- package/node_modules/pi-agent-tool-call-interception/package.json +3 -3
- package/node_modules/pi-agent-tool-ui/package.json +2 -2
- package/node_modules/pi-agent-tool-ui/runtime/entry-75.js +1 -0
- package/node_modules/pi-agent-web/package.json +7 -7
- package/node_modules/pi-agent-web-html/package.json +3 -3
- package/node_modules/pi-agent-web-image/package.json +4 -4
- package/node_modules/pi-agent-web-pdf/package.json +4 -4
- package/node_modules/pi-agent-web-text/package.json +4 -4
- package/node_modules/pi-agent-web-text/runtime/entry-80.js +2 -0
- package/package.json +58 -38
- package/src/api/hooks.ts +168 -0
- package/src/api/text-editor.ts +2 -0
- package/src/composite/builtin-extensions.ts +7 -0
- package/src/composite/module-labels.ts +8 -0
- package/src/composite/preferences.ts +3 -3
- package/src/core/reload-resource-store.ts +34 -0
- package/src/doctor/tip-provider.ts +1 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/package.json +7 -7
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-pdf/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/runtime/entry-25.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-22.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/package.json +7 -7
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/package.json +3 -3
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-image/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-pdf/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/package.json +4 -4
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/runtime/entry-80.js +2 -0
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-76.js +2 -0
- package/src/extensions/pi-agent-read/package.json +11 -11
- package/src/extensions/pi-agent-read/runtime/entry-40.js +0 -1
- package/src/extensions/pi-agent-read/runtime/entry-41.js +2 -0
- package/src/extensions/pi-agent-read/src/api/plugin-protocol.ts +1 -1
- package/src/extensions/pi-agent-read/src/api/rendering.ts +1 -1
- package/src/extensions/pi-agent-read/src/api/tools/read.ts +32 -0
- package/src/extensions/pi-agent-read/src/core/read-core.ts +8 -0
- package/src/extensions/pi-agent-read/src/core/tools/read/raw-read.ts +38 -4
- package/src/extensions/pi-agent-read/src/core/tools/read/read-renderer.ts +63 -4
- package/src/extensions/pi-agent-read/src/core/tools/tool-read.ts +105 -5
- package/src/extensions/pi-agent-search/package.json +7 -7
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/index.ts +1 -1
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/package.json +9 -9
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-47.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-48.js +1 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/resolvers.ts +47 -19
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-backend.ts +6 -15
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-presentation.ts +80 -0
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-renderer.ts +17 -1
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-result.ts +32 -12
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/src/search-session.ts +6 -3
- package/src/extensions/pi-agent-search/runtime/entry-45.js +0 -1
- package/src/extensions/pi-agent-search/runtime/entry-46.js +2 -0
- package/src/extensions/pi-agent-search/src/api/search-parameters.ts +5 -1
- package/src/extensions/pi-agent-text-editor/package.json +25 -25
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/package.json +4 -4
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-50.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/package.json +5 -5
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-51.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-52.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/package.json +7 -7
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-53.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-54.js +2 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/index.ts +5 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/package.json +6 -6
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/src/renderer.ts +59 -0
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json +5 -5
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/runtime/entry-73.js +2 -0
- package/src/extensions/pi-agent-text-editor/runtime/entry-70.js +0 -1
- package/src/extensions/pi-agent-text-editor/runtime/entry-71.js +2 -0
- package/src/extensions/pi-agent-text-editor/src/api/edit-completion.ts +7 -1
- package/src/extensions/pi-agent-text-editor/src/api/edit-pipeline.ts +3 -0
- package/src/extensions/pi-agent-text-editor/src/api/mutation-guard.ts +1 -0
- package/src/extensions/pi-agent-text-editor/src/api/mutation-tool.ts +47 -0
- package/src/extensions/pi-agent-text-editor/src/api/plugin-protocol.ts +6 -1
- package/src/extensions/pi-agent-text-editor/src/core/apply/apply-undo-store.ts +155 -0
- package/src/extensions/pi-agent-text-editor/src/core/apply/execution.ts +56 -77
- package/src/extensions/pi-agent-text-editor/src/core/apply/mixed-source.ts +7 -12
- package/src/extensions/pi-agent-text-editor/src/core/apply/mutation-outcome.ts +2 -0
- package/src/extensions/pi-agent-text-editor/src/core/apply/output.ts +37 -8
- package/src/extensions/pi-agent-text-editor/src/core/apply/prompt.ts +42 -37
- package/src/extensions/pi-agent-text-editor/src/core/apply/renderer.ts +51 -15
- package/src/extensions/pi-agent-text-editor/src/core/apply/runtime.ts +119 -20
- package/src/extensions/pi-agent-text-editor/src/core/apply/tool.ts +28 -7
- package/src/extensions/pi-agent-text-editor/src/core/apply/transaction.ts +387 -0
- package/src/extensions/pi-agent-text-editor/src/core/extension.ts +3 -2
- package/src/extensions/pi-agent-text-editor/src/core/file-operation-tools.ts +68 -71
- package/src/extensions/pi-agent-text-editor/src/core/file-operations.ts +4 -4
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch-registrar.ts +11 -0
- package/src/extensions/pi-agent-text-editor/src/core/text-edit-batch.ts +4 -0
- package/src/extensions/pi-agent-text-editor/src/core/text-editor-core.ts +141 -6
- package/src/extensions/pi-agent-text-editor/src/core/text-mutation.ts +123 -4
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-copy.ts +9 -4
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-delete.ts +3 -2
- package/src/extensions/pi-agent-text-editor/src/tools/tool-text-move.ts +9 -4
- package/src/plugins/pi-agent-ide-ast/package.json +32 -11
- package/src/plugins/pi-agent-ide-ast/runtime/entry-26.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-27.js +2 -0
- package/src/plugins/pi-agent-ide-ast/src/ast/manager.ts +16 -8
- package/src/plugins/pi-agent-ide-ast/src/ast/native-parser.ts +151 -0
- package/src/plugins/pi-agent-ide-ast/src/ast/outline.ts +22 -17
- package/src/plugins/pi-agent-ide-ast/src/ast/syntax-tree.ts +25 -0
- package/src/plugins/pi-agent-ide-ast/src/doctor-plugin.ts +52 -1
- package/src/plugins/pi-agent-ide-ast/src/search-resolver.ts +4 -1
- package/src/plugins/pi-agent-ide-changes/index.ts +3 -1
- package/src/plugins/pi-agent-ide-changes/package.json +8 -8
- package/src/plugins/pi-agent-ide-changes/runtime/entry-28.js +0 -1
- package/src/plugins/pi-agent-ide-changes/src/tool-text-undo.ts +42 -9
- package/src/plugins/pi-agent-ide-debugger/index.ts +573 -0
- package/src/plugins/pi-agent-ide-debugger/src/breakpoint-view.ts +73 -0
- package/src/plugins/pi-agent-ide-debugger/src/catalog.ts +306 -0
- package/src/plugins/pi-agent-ide-debugger/src/dap-client.ts +338 -0
- package/src/plugins/pi-agent-ide-debugger/src/doctor-plugin.ts +349 -0
- package/src/plugins/pi-agent-ide-debugger/src/process-provider.ts +39 -0
- package/src/plugins/pi-agent-ide-debugger/src/renderer.ts +152 -0
- package/src/plugins/pi-agent-ide-debugger/src/session-manager.ts +1344 -0
- package/src/plugins/pi-agent-ide-debugger/src/ui.ts +14 -0
- package/src/plugins/pi-agent-ide-formatter/package.json +9 -4
- package/src/plugins/pi-agent-ide-languages/package.json +3 -3
- package/src/plugins/pi-agent-ide-lint/package.json +13 -8
- package/src/plugins/pi-agent-ide-lsp/index.ts +4 -1
- package/src/plugins/pi-agent-ide-lsp/package.json +15 -10
- package/src/plugins/pi-agent-ide-lsp/runtime/entry-33.js +2 -0
- package/src/plugins/pi-agent-ide-processes/index.ts +28 -0
- package/src/plugins/pi-agent-ide-processes/src/registry.ts +81 -0
- package/src/plugins/pi-agent-ide-processes/src/ui.ts +252 -0
- package/src/plugins/pi-agent-ide-terminal/index.ts +19 -13
- package/src/plugins/pi-agent-ide-terminal/src/output-limits.ts +52 -0
- package/src/plugins/pi-agent-ide-terminal/src/process-provider.ts +30 -0
- package/src/plugins/pi-agent-ide-terminal/src/renderer.ts +24 -58
- package/src/plugins/pi-agent-ide-terminal/src/resources.ts +5 -14
- package/src/plugins/pi-agent-ide-terminal/src/session-manager.ts +114 -1
- package/src/plugins/pi-agent-ide-terminal/src/tools.ts +23 -29
- package/src/plugins/pi-agent-ide-terminal/src/types.ts +13 -1
- package/src/plugins/pi-agent-ide-terminal/src/ui.ts +116 -240
- package/dist/chunk-3SE372WC.js +0 -3
- package/dist/chunk-5MSNYFDE.js +0 -1
- package/dist/chunk-7JYQMAEL.js +0 -14
- package/dist/chunk-B5KB2I7J.js +0 -3
- package/dist/chunk-NMFQGKPE.js +0 -2
- package/dist/chunk-OVUYPHDE.js +0 -1
- package/dist/chunk-TPIHQYK2.js +0 -14
- package/dist/chunk-XSTHESNR.js +0 -25
- package/dist/entry-16.js +0 -1
- package/node_modules/pi-agent-doctor/runtime/entry-16.js +0 -1
- package/node_modules/pi-agent-filesystem/runtime/entry-21.js +0 -2
- package/node_modules/pi-agent-ide-ast/runtime/entry-25.js +0 -1
- package/node_modules/pi-agent-ide-changes/runtime/entry-27.js +0 -1
- package/node_modules/pi-agent-image/runtime/entry-33.js +0 -1
- package/node_modules/pi-agent-resource/runtime/entry-41.js +0 -1
- package/node_modules/pi-agent-text-anchor-constant/runtime/entry-49.js +0 -2
- package/node_modules/pi-agent-text-anchor-exact/runtime/entry-50.js +0 -1
- package/node_modules/pi-agent-text-anchor-line-hash/runtime/entry-52.js +0 -1
- package/node_modules/pi-agent-text-editor/runtime/entry-54.js +0 -1
- package/node_modules/pi-agent-tool-call-interception/runtime/entry-73.js +0 -1
- package/node_modules/pi-agent-web/runtime/entry-75.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/runtime/entry-22.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/runtime/entry-21.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/runtime/entry-76.js +0 -2
- package/src/extensions/pi-agent-read/extensions/pi-agent-web/runtime/entry-75.js +0 -2
- package/src/extensions/pi-agent-read/runtime/entry-36.js +0 -1
- package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/runtime/entry-46.js +0 -2
- package/src/extensions/pi-agent-search/runtime/entry-42.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/runtime/entry-49.js +0 -2
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/runtime/entry-50.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/runtime/entry-52.js +0 -1
- package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/runtime/entry-71.js +0 -2
- package/src/extensions/pi-agent-text-editor/runtime/entry-54.js +0 -1
- package/src/plugins/pi-agent-ide-ast/runtime/entry-25.js +0 -1
- package/src/plugins/pi-agent-ide-changes/runtime/entry-27.js +0 -1
- /package/node_modules/{pi-agent-filesystem-image → pi-agent-filesystem}/runtime/entry-22.js +0 -0
- /package/node_modules/{pi-agent-filesystem-pdf → pi-agent-filesystem-image}/runtime/entry-23.js +0 -0
- /package/node_modules/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-24.js +0 -0
- /package/node_modules/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-29.js +0 -0
- /package/node_modules/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-30.js +0 -0
- /package/node_modules/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-31.js +0 -0
- /package/node_modules/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-32.js +0 -0
- /package/node_modules/{pi-agent-invariant → pi-agent-image}/runtime/entry-34.js +0 -0
- /package/node_modules/{pi-agent-pdf → pi-agent-invariant}/runtime/entry-35.js +0 -0
- /package/node_modules/{pi-agent-read → pi-agent-pdf}/runtime/entry-36.js +0 -0
- /package/node_modules/{pi-agent-search → pi-agent-resource}/runtime/entry-42.js +0 -0
- /package/node_modules/{pi-agent-search-text → pi-agent-search}/runtime/entry-46.js +0 -0
- /package/node_modules/{pi-agent-text → pi-agent-search-text}/runtime/entry-48.js +0 -0
- /package/node_modules/{pi-agent-text-editor-renderer → pi-agent-text-editor}/runtime/entry-71.js +0 -0
- /package/node_modules/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-72.js +0 -0
- /package/node_modules/{pi-agent-tool-ui → pi-agent-tool-call-interception}/runtime/entry-74.js +0 -0
- /package/node_modules/{pi-agent-web-html → pi-agent-web}/runtime/entry-76.js +0 -0
- /package/node_modules/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-77.js +0 -0
- /package/node_modules/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-78.js +0 -0
- /package/node_modules/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-79.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-pdf → pi-agent-filesystem-image}/runtime/entry-23.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/{pi-agent-filesystem-text → pi-agent-filesystem-pdf}/runtime/entry-24.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-image → pi-agent-web-html}/runtime/entry-77.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-pdf → pi-agent-web-image}/runtime/entry-78.js +0 -0
- /package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/{pi-agent-web-text → pi-agent-web-pdf}/runtime/entry-79.js +0 -0
- /package/src/extensions/pi-agent-text-editor/plugins/{pi-agent-text-editor-stale-anchor → pi-agent-text-editor-renderer}/runtime/entry-72.js +0 -0
- /package/src/plugins/{pi-agent-ide-formatter → pi-agent-ide-changes}/runtime/entry-29.js +0 -0
- /package/src/plugins/{pi-agent-ide-languages → pi-agent-ide-formatter}/runtime/entry-30.js +0 -0
- /package/src/plugins/{pi-agent-ide-lint → pi-agent-ide-languages}/runtime/entry-31.js +0 -0
- /package/src/plugins/{pi-agent-ide-lsp → pi-agent-ide-lint}/runtime/entry-32.js +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
|
|
4
|
+
import type { TextLinePresenter } from "pi-agent-text";
|
|
5
|
+
|
|
6
|
+
import type {
|
|
7
|
+
DebugBreakpoint,
|
|
8
|
+
DebugSessionManager,
|
|
9
|
+
} from "#src/plugins/pi-agent-ide-debugger/src/session-manager.js";
|
|
10
|
+
|
|
11
|
+
/** Annotate source lines with breakpoints from current debug sessions. */
|
|
12
|
+
export function createBreakpointPresenter(manager: DebugSessionManager): TextLinePresenter {
|
|
13
|
+
return {
|
|
14
|
+
id: "debug-breakpoints",
|
|
15
|
+
present(document, context) {
|
|
16
|
+
const debugSession = manager.get(context.source);
|
|
17
|
+
const sourceFile =
|
|
18
|
+
manager.sourceFile(context.source) ?? filesystemSource(document.source, context.cwd);
|
|
19
|
+
if (sourceFile === undefined) return document;
|
|
20
|
+
const breakpoints = manager.breakpointsForFile(sourceFile, debugSession?.source);
|
|
21
|
+
if (breakpoints.length === 0) return document;
|
|
22
|
+
const byLine = groupByLine(breakpoints);
|
|
23
|
+
return {
|
|
24
|
+
...document,
|
|
25
|
+
lines: document.lines.map((line) => {
|
|
26
|
+
const matches = byLine.get(line.lineNumber);
|
|
27
|
+
if (matches === undefined) return line;
|
|
28
|
+
return {
|
|
29
|
+
...line,
|
|
30
|
+
presentation: {
|
|
31
|
+
...line.presentation,
|
|
32
|
+
suffix: `${line.presentation?.suffix ?? ""}${renderAgentBreakpoints(matches)}`,
|
|
33
|
+
compactSuffix: `${line.presentation?.compactSuffix ?? ""}${renderUserBreakpoints(matches)}`,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function groupByLine(
|
|
43
|
+
breakpoints: readonly DebugBreakpoint[],
|
|
44
|
+
): ReadonlyMap<number, readonly DebugBreakpoint[]> {
|
|
45
|
+
const grouped = new Map<number, DebugBreakpoint[]>();
|
|
46
|
+
for (const breakpoint of breakpoints) {
|
|
47
|
+
const line = grouped.get(breakpoint.line) ?? [];
|
|
48
|
+
line.push(breakpoint);
|
|
49
|
+
grouped.set(breakpoint.line, line);
|
|
50
|
+
}
|
|
51
|
+
return grouped;
|
|
52
|
+
}
|
|
53
|
+
function filesystemSource(source: string, cwd: string): string | undefined {
|
|
54
|
+
if (source.startsWith("file://")) return fileURLToPath(source);
|
|
55
|
+
if (/^[a-z][a-z\d+.-]*:/iu.test(source)) return undefined;
|
|
56
|
+
return path.resolve(cwd, source);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function renderAgentBreakpoints(breakpoints: readonly DebugBreakpoint[]): string {
|
|
60
|
+
return breakpoints
|
|
61
|
+
.map(
|
|
62
|
+
(breakpoint) =>
|
|
63
|
+
` ${breakpoint.verified ? "●" : "○"} breakpoint ${breakpoint.source} (${breakpoint.verified ? "verified" : "pending"})`,
|
|
64
|
+
)
|
|
65
|
+
.join("");
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function renderUserBreakpoints(breakpoints: readonly DebugBreakpoint[]): string {
|
|
69
|
+
const verified = breakpoints.filter((breakpoint) => breakpoint.verified).length;
|
|
70
|
+
const marker = verified === breakpoints.length ? "●" : "○";
|
|
71
|
+
const count = breakpoints.length === 1 ? "breakpoint" : `${breakpoints.length} breakpoints`;
|
|
72
|
+
return ` ${marker} ${count}`;
|
|
73
|
+
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import type { ToolRecipe } from "pi-agent-doctor/api/catalog";
|
|
2
|
+
|
|
3
|
+
/** One executable language and the debug adapter selected for its Linux verification track. */
|
|
4
|
+
export interface DebuggerLanguageMatrixEntry {
|
|
5
|
+
readonly language: string;
|
|
6
|
+
readonly backend: string;
|
|
7
|
+
readonly status: "planned" | "verified";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** Complete Linux debugger scope. Planned entries are not advertised as working recipes. */
|
|
11
|
+
export const DEBUGGER_LANGUAGE_MATRIX: readonly DebuggerLanguageMatrixEntry[] = [
|
|
12
|
+
{ language: "c", backend: "lldb-dap", status: "verified" },
|
|
13
|
+
{ language: "cpp", backend: "lldb-dap", status: "verified" },
|
|
14
|
+
{ language: "csharp", backend: "netcoredbg", status: "verified" },
|
|
15
|
+
{ language: "dart", backend: "dart debug_adapter", status: "verified" },
|
|
16
|
+
{ language: "elixir", backend: "elixir-ls", status: "verified" },
|
|
17
|
+
{ language: "go", backend: "dlv dap", status: "verified" },
|
|
18
|
+
{ language: "java", backend: "kotlin-debug-adapter", status: "verified" },
|
|
19
|
+
{ language: "javascript", backend: "vscode-js-debug", status: "verified" },
|
|
20
|
+
{ language: "julia", backend: "DebugAdapter.jl", status: "verified" },
|
|
21
|
+
{ language: "kotlin", backend: "kotlin-debug-adapter", status: "verified" },
|
|
22
|
+
{ language: "lua", backend: "local-lua-debugger-vscode", status: "verified" },
|
|
23
|
+
{ language: "php", backend: "vscode-php-debug", status: "verified" },
|
|
24
|
+
{ language: "powershell", backend: "PowerShellEditorServices", status: "verified" },
|
|
25
|
+
{ language: "python", backend: "debugpy", status: "verified" },
|
|
26
|
+
{ language: "r", backend: "vscDebugger", status: "verified" },
|
|
27
|
+
{ language: "ruby", backend: "rdbg", status: "verified" },
|
|
28
|
+
{ language: "rust", backend: "lldb-dap", status: "verified" },
|
|
29
|
+
{ language: "shell", backend: "bash-debug-adapter", status: "verified" },
|
|
30
|
+
{ language: "swift", backend: "lldb-dap", status: "verified" },
|
|
31
|
+
{ language: "typescript", backend: "vscode-js-debug", status: "verified" },
|
|
32
|
+
{ language: "zig", backend: "lldb-dap", status: "verified" },
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
/** Debug adapter recipes that Pi Agent IDE currently verifies on provisioned Linux hosts. */
|
|
36
|
+
export const DEBUGGER_RECIPES: readonly ToolRecipe[] = [
|
|
37
|
+
{
|
|
38
|
+
id: "dart-debug-adapter",
|
|
39
|
+
name: "Dart debug adapter",
|
|
40
|
+
kind: "debugger",
|
|
41
|
+
languages: ["dart"],
|
|
42
|
+
executables: ["dart"],
|
|
43
|
+
dependencies: ["Dart SDK 3.13.3"],
|
|
44
|
+
documentation: "https://github.com/dart-lang/sdk/tree/main/third_party/pkg/dap",
|
|
45
|
+
debugger: {
|
|
46
|
+
runtimeExecutables: ["dart"],
|
|
47
|
+
adapterExecutables: ["dart"],
|
|
48
|
+
platforms: ["linux"],
|
|
49
|
+
install: "Install Dart SDK 3.13.3 from the official Dart archive.",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "debugpy",
|
|
54
|
+
name: "debugpy",
|
|
55
|
+
kind: "debugger",
|
|
56
|
+
languages: ["python"],
|
|
57
|
+
executables: ["python3"],
|
|
58
|
+
dependencies: ["debugpy"],
|
|
59
|
+
documentation: "https://github.com/microsoft/debugpy",
|
|
60
|
+
debugger: {
|
|
61
|
+
runtimeExecutables: ["python3"],
|
|
62
|
+
adapterExecutables: ["python3"],
|
|
63
|
+
platforms: ["linux"],
|
|
64
|
+
install: "Install Python 3 and debugpy for that interpreter.",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: "delve",
|
|
69
|
+
name: "Delve",
|
|
70
|
+
kind: "debugger",
|
|
71
|
+
languages: ["go"],
|
|
72
|
+
executables: ["dlv"],
|
|
73
|
+
dependencies: ["github.com/go-delve/delve/cmd/dlv@v1.25.2"],
|
|
74
|
+
documentation: "https://github.com/go-delve/delve/tree/master/Documentation/api/dap",
|
|
75
|
+
debugger: {
|
|
76
|
+
runtimeExecutables: ["go"],
|
|
77
|
+
adapterExecutables: ["dlv"],
|
|
78
|
+
platforms: ["linux"],
|
|
79
|
+
install: "Run go install github.com/go-delve/delve/cmd/dlv@v1.25.2.",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "elixir-ls-debug-adapter",
|
|
84
|
+
name: "ElixirLS debug adapter",
|
|
85
|
+
kind: "debugger",
|
|
86
|
+
languages: ["elixir"],
|
|
87
|
+
executables: ["elixir", "mix"],
|
|
88
|
+
dependencies: ["Elixir 1.14.5", "Erlang/OTP 25.3.2.21", "ElixirLS 0.29.3"],
|
|
89
|
+
documentation: "https://github.com/elixir-lsp/elixir-ls",
|
|
90
|
+
debugger: {
|
|
91
|
+
runtimeExecutables: ["elixir", "mix"],
|
|
92
|
+
adapterExecutables: ["debug_adapter.sh"],
|
|
93
|
+
platforms: ["linux"],
|
|
94
|
+
install:
|
|
95
|
+
"Install Erlang/OTP 25.3.2.21, Elixir 1.14.5, and the ElixirLS 0.29.3 release at /opt/pi-debug-adapters/elixir-ls.",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "vsc-debugger",
|
|
100
|
+
name: "vscDebugger",
|
|
101
|
+
kind: "debugger",
|
|
102
|
+
languages: ["r"],
|
|
103
|
+
executables: ["R"],
|
|
104
|
+
dependencies: ["R 4.3.3", "R6 2.5.1", "jsonlite 1.8.8", "vscDebugger 0.5.2"],
|
|
105
|
+
documentation: "https://manuelhentschel.github.io/vscDebugger/",
|
|
106
|
+
debugger: {
|
|
107
|
+
runtimeExecutables: ["R"],
|
|
108
|
+
adapterExecutables: ["R"],
|
|
109
|
+
platforms: ["linux"],
|
|
110
|
+
install: "Install R 4.3.3 and vscDebugger 0.5.2 for that R installation.",
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: "julia-debug-adapter",
|
|
115
|
+
name: "DebugAdapter.jl",
|
|
116
|
+
kind: "debugger",
|
|
117
|
+
languages: ["julia"],
|
|
118
|
+
executables: ["julia"],
|
|
119
|
+
dependencies: ["Julia 1.13.0", "DebugAdapter.jl 3.2.1"],
|
|
120
|
+
documentation: "https://github.com/julia-vscode/DebugAdapter.jl",
|
|
121
|
+
debugger: {
|
|
122
|
+
runtimeExecutables: ["julia"],
|
|
123
|
+
adapterExecutables: ["julia"],
|
|
124
|
+
platforms: ["linux"],
|
|
125
|
+
install:
|
|
126
|
+
"Install Julia 1.13.0 and add DebugAdapter.jl 3.2.1 to /opt/pi-debug-adapters/julia.",
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: "kotlin-debug-adapter",
|
|
131
|
+
name: "Kotlin Debug Adapter",
|
|
132
|
+
kind: "debugger",
|
|
133
|
+
languages: ["java", "kotlin"],
|
|
134
|
+
executables: ["kotlin-debug-adapter"],
|
|
135
|
+
dependencies: [
|
|
136
|
+
"fwcd/kotlin-debug-adapter 0.4.4",
|
|
137
|
+
"Temurin JDK 21.0.8+9",
|
|
138
|
+
"Kotlin compiler 2.2.20 for Kotlin builds",
|
|
139
|
+
],
|
|
140
|
+
documentation: "https://github.com/fwcd/kotlin-debug-adapter",
|
|
141
|
+
debugger: {
|
|
142
|
+
runtimeExecutables: ["java"],
|
|
143
|
+
adapterExecutables: ["kotlin-debug-adapter"],
|
|
144
|
+
platforms: ["linux"],
|
|
145
|
+
install:
|
|
146
|
+
"Install Temurin JDK 21.0.8+9 and fwcd/kotlin-debug-adapter 0.4.4. Compile the target with debug information before launching it.",
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
id: "netcoredbg",
|
|
151
|
+
name: "NetCoreDbg",
|
|
152
|
+
kind: "debugger",
|
|
153
|
+
languages: ["csharp"],
|
|
154
|
+
executables: ["netcoredbg"],
|
|
155
|
+
dependencies: ["Samsung/netcoredbg 3.2.0-1092", ".NET SDK 8"],
|
|
156
|
+
documentation: "https://github.com/Samsung/netcoredbg",
|
|
157
|
+
debugger: {
|
|
158
|
+
runtimeExecutables: ["dotnet"],
|
|
159
|
+
adapterExecutables: ["netcoredbg"],
|
|
160
|
+
platforms: ["linux"],
|
|
161
|
+
install: "Install .NET SDK 8 and NetCoreDbg 3.2.0-1092.",
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: "lldb-dap",
|
|
166
|
+
name: "lldb-dap",
|
|
167
|
+
kind: "debugger",
|
|
168
|
+
languages: ["c", "cpp", "rust"],
|
|
169
|
+
executables: ["lldb-dap-18", "lldb-dap"],
|
|
170
|
+
dependencies: ["lldb-18"],
|
|
171
|
+
documentation: "https://lldb.llvm.org/use/lldbdap.html",
|
|
172
|
+
debugger: {
|
|
173
|
+
runtimeExecutables: [],
|
|
174
|
+
adapterExecutables: ["lldb-dap-18", "lldb-dap"],
|
|
175
|
+
platforms: ["linux"],
|
|
176
|
+
install: "Install LLDB 18 and compile the target with debug information.",
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
id: "lldb-dap-swift",
|
|
181
|
+
name: "lldb-dap for Swift",
|
|
182
|
+
kind: "debugger",
|
|
183
|
+
languages: ["swift"],
|
|
184
|
+
executables: ["lldb-dap"],
|
|
185
|
+
dependencies: ["Swift 6.3.3 toolchain"],
|
|
186
|
+
documentation: "https://lldb.llvm.org/use/lldbdap.html",
|
|
187
|
+
debugger: {
|
|
188
|
+
runtimeExecutables: ["swiftc"],
|
|
189
|
+
adapterExecutables: ["lldb-dap"],
|
|
190
|
+
platforms: ["linux"],
|
|
191
|
+
install:
|
|
192
|
+
"Install the official Swift 6.3.3 Linux toolchain, which includes swiftc and lldb-dap.",
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
id: "lldb-dap-zig",
|
|
197
|
+
name: "lldb-dap for Zig",
|
|
198
|
+
kind: "debugger",
|
|
199
|
+
languages: ["zig"],
|
|
200
|
+
executables: ["lldb-dap-18", "lldb-dap"],
|
|
201
|
+
dependencies: ["Zig 0.15.2", "lldb-18"],
|
|
202
|
+
documentation: "https://lldb.llvm.org/use/lldbdap.html",
|
|
203
|
+
debugger: {
|
|
204
|
+
runtimeExecutables: ["zig"],
|
|
205
|
+
adapterExecutables: ["lldb-dap-18", "lldb-dap"],
|
|
206
|
+
platforms: ["linux"],
|
|
207
|
+
install:
|
|
208
|
+
"Install Zig 0.15.2 and LLDB 18, then compile the target in Debug mode with the LLVM backend (-fllvm) so LLDB can inspect locals.",
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
id: "local-lua-debugger",
|
|
213
|
+
name: "Local Lua Debugger",
|
|
214
|
+
kind: "debugger",
|
|
215
|
+
languages: ["lua"],
|
|
216
|
+
executables: ["lua", "node"],
|
|
217
|
+
dependencies: ["local-lua-debugger-vscode 0.3.3"],
|
|
218
|
+
documentation: "https://github.com/tomblind/local-lua-debugger-vscode",
|
|
219
|
+
debugger: {
|
|
220
|
+
runtimeExecutables: ["lua", "node"],
|
|
221
|
+
adapterExecutables: ["debugAdapter.js"],
|
|
222
|
+
platforms: ["linux"],
|
|
223
|
+
install: "Install Lua, Node 24, and local-lua-debugger-vscode 0.3.3.",
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: "powershell-editor-services-debug",
|
|
228
|
+
name: "PowerShell Editor Services",
|
|
229
|
+
kind: "debugger",
|
|
230
|
+
languages: ["powershell"],
|
|
231
|
+
executables: ["pwsh"],
|
|
232
|
+
dependencies: ["PowerShellEditorServices 4.7.0"],
|
|
233
|
+
documentation: "https://github.com/PowerShell/PowerShellEditorServices",
|
|
234
|
+
debugger: {
|
|
235
|
+
runtimeExecutables: ["pwsh"],
|
|
236
|
+
adapterExecutables: ["Start-EditorServices.ps1"],
|
|
237
|
+
platforms: ["linux"],
|
|
238
|
+
install: "Install PowerShell 7.4.13 and PowerShellEditorServices 4.7.0.",
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
id: "rdbg",
|
|
243
|
+
name: "rdbg",
|
|
244
|
+
kind: "debugger",
|
|
245
|
+
languages: ["ruby"],
|
|
246
|
+
executables: ["rdbg"],
|
|
247
|
+
dependencies: ["debug gem 1.11.1"],
|
|
248
|
+
documentation: "https://github.com/ruby/debug",
|
|
249
|
+
debugger: {
|
|
250
|
+
runtimeExecutables: ["ruby"],
|
|
251
|
+
adapterExecutables: ["rdbg"],
|
|
252
|
+
platforms: ["linux"],
|
|
253
|
+
install: "Install Ruby and debug gem 1.11.1.",
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: "vscode-bash-debug",
|
|
258
|
+
name: "Bash Debug",
|
|
259
|
+
kind: "debugger",
|
|
260
|
+
languages: ["shell"],
|
|
261
|
+
executables: ["bash", "node"],
|
|
262
|
+
dependencies: ["Bash Debug 0.3.9"],
|
|
263
|
+
documentation: "https://github.com/rogalmic/vscode-bash-debug",
|
|
264
|
+
debugger: {
|
|
265
|
+
runtimeExecutables: ["bash", "node"],
|
|
266
|
+
adapterExecutables: ["bashDebug.js"],
|
|
267
|
+
platforms: ["linux"],
|
|
268
|
+
install: "Install Bash, Node 24, and Bash Debug 0.3.9.",
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
id: "vscode-php-debug",
|
|
273
|
+
name: "PHP Debug",
|
|
274
|
+
kind: "debugger",
|
|
275
|
+
languages: ["php"],
|
|
276
|
+
executables: ["php", "node"],
|
|
277
|
+
dependencies: ["PHP Debug 1.40.1", "Xdebug"],
|
|
278
|
+
documentation: "https://github.com/xdebug/vscode-php-debug",
|
|
279
|
+
debugger: {
|
|
280
|
+
runtimeExecutables: ["php", "node"],
|
|
281
|
+
adapterExecutables: ["phpDebug.js"],
|
|
282
|
+
platforms: ["linux"],
|
|
283
|
+
install: "Install PHP with Xdebug, Node 24, and PHP Debug 1.40.1.",
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
id: "vscode-js-debug",
|
|
288
|
+
name: "vscode-js-debug",
|
|
289
|
+
kind: "debugger",
|
|
290
|
+
languages: ["javascript", "typescript"],
|
|
291
|
+
executables: ["node"],
|
|
292
|
+
dependencies: ["@vscode/js-debug"],
|
|
293
|
+
documentation: "https://github.com/microsoft/vscode-js-debug",
|
|
294
|
+
debugger: {
|
|
295
|
+
runtimeExecutables: ["node"],
|
|
296
|
+
adapterExecutables: ["dapDebugServer.js"],
|
|
297
|
+
platforms: ["linux"],
|
|
298
|
+
install: "Install Node 24 and js-debug-dap v1.117.0 from the official release archive.",
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
];
|
|
302
|
+
|
|
303
|
+
/** Return the verified debugger recipe for one detected executable language. */
|
|
304
|
+
export function debuggerRecipeForLanguage(languageId: string): ToolRecipe | undefined {
|
|
305
|
+
return DEBUGGER_RECIPES.find((recipe) => recipe.languages.includes(languageId));
|
|
306
|
+
}
|