@pasko70/pibo 1.1.0 → 1.3.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 +106 -254
- package/context/codex-base-prompt.md +4 -0
- package/context/compute-worker.md +23 -0
- package/context/pibo-native-tooling.md +18 -0
- package/context/pibo-system-prompt.md +69 -8
- package/dist/api/simple-agent-api.js +136 -0
- package/dist/app-context.js +4 -0
- package/dist/apps/chat/agent-profiles.js +18 -3
- package/dist/apps/chat/agent-store.js +113 -16
- package/dist/apps/chat/chat-api-routes.js +311 -0
- package/dist/apps/chat/chat-capability-routes.js +90 -0
- package/dist/apps/chat/chat-files.js +178 -0
- package/dist/apps/chat/chat-request-normalizers.js +681 -0
- package/dist/apps/chat/chat-settings-routes.js +75 -0
- package/dist/apps/chat/chat-trace-helpers.js +94 -0
- package/dist/apps/chat/chat-user-skill-routes.js +149 -0
- package/dist/apps/chat/cron-api.js +213 -0
- package/dist/apps/chat/data/chat-data-mappers.js +74 -0
- package/dist/apps/chat/data/event-command-service.js +75 -0
- package/dist/apps/chat/data/navigation-query-service.js +11 -0
- package/dist/apps/chat/data/project-service.js +844 -0
- package/dist/apps/chat/data/read-state-service.js +42 -0
- package/dist/apps/chat/data/room-service.js +52 -0
- package/dist/apps/chat/data/session-query-service.js +63 -0
- package/dist/apps/chat/data/timeline-query-service.js +96 -0
- package/dist/apps/chat/event-log.js +1 -307
- package/dist/apps/chat/model-catalog.js +7 -2
- package/dist/apps/chat/output-compactor.js +126 -0
- package/dist/apps/chat/output-event-policy.js +17 -0
- package/dist/apps/chat/project-workflow-human-actions.js +347 -0
- package/dist/apps/chat/project-workflow-sessions.js +260 -0
- package/dist/apps/chat/provider-auth-actions.js +43 -0
- package/dist/apps/chat/ralph-api.js +156 -0
- package/dist/apps/chat/read-model.js +1 -218
- package/dist/apps/chat/rooms.js +1 -321
- package/dist/apps/chat/static-assets.js +996 -0
- package/dist/apps/chat/stream.js +29 -6
- package/dist/apps/chat/trace.js +179 -1003
- package/dist/apps/chat/types/event-store.js +1 -0
- package/dist/apps/chat/types/read-model.js +1 -0
- package/dist/apps/chat/types/rooms.js +36 -0
- package/dist/apps/chat/web-app.js +3131 -1959
- package/dist/apps/chat/workflow-catalog.js +572 -0
- package/dist/apps/chat/workflow-edge-compatibility.js +51 -0
- package/dist/apps/chat/workflow-json-schema-validation.js +335 -0
- package/dist/apps/chat/workflow-persistence-model.js +140 -0
- package/dist/apps/chat/workflow-persistence.js +633 -0
- package/dist/apps/chat/workflow-registered-ref-params.js +130 -0
- package/dist/apps/chat/workflow-registered-ref-pickers.js +179 -0
- package/dist/apps/chat/workflow-registered-ref-validation.js +210 -0
- package/dist/apps/chat/workflow-v2-security-validation.js +93 -0
- package/dist/apps/chat/workflow-validation-helpers.js +114 -0
- package/dist/apps/chat-ui/assets/{dist-CNLWH2qh.js → dist-B4lw9z4F.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-8e4L8ciw.js → dist-BbTaHWON.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CMZOa5ik.js → dist-BcT_c1EJ.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-DNcnQRPF.js → dist-CGINd7XU.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CqqUC8Ce.js → dist-CrBzZkUp.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-D2N4-LIc.js → dist-CyyISotB.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CUqpST5w.js → dist-DFbnFNpX.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CspjOeBj.js → dist-DGLWQLX8.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-B7bbI3Qz.js → dist-DfcIkFSN.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-v4pjHlB7.js → dist-sKDHTwaT.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-D9L4MSRF.js → dist-y9D6la48.js} +1 -1
- package/dist/apps/chat-ui/assets/index-C25VYnyb.css +1 -0
- package/dist/apps/chat-ui/assets/index-CUkuvI3v.js +165 -0
- package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-144x144.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-192x192.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-48x48.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-512x512.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-72x72.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/android/launchericon-96x96.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/100.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/1024.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/114.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/120.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/128.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/144.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/152.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/16.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/167.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/180.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/192.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/20.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/256.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/29.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/32.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/40.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/50.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/512.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/57.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/58.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/60.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/64.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/72.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/76.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/80.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/ios/87.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/LargeTile.scale-100.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/LargeTile.scale-125.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/LargeTile.scale-150.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/LargeTile.scale-200.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/LargeTile.scale-400.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/SmallTile.scale-100.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/SmallTile.scale-125.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/SmallTile.scale-150.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/SmallTile.scale-200.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/SmallTile.scale-400.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/SplashScreen.scale-100.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/SplashScreen.scale-125.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/SplashScreen.scale-150.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/SplashScreen.scale-200.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/SplashScreen.scale-400.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square150x150Logo.scale-100.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square150x150Logo.scale-125.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square150x150Logo.scale-150.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square150x150Logo.scale-200.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square150x150Logo.scale-400.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-16.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-20.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-24.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-256.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-30.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-32.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-36.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-40.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-44.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-48.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-60.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-64.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-72.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-80.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-lightunplated_targetsize-96.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-16.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-20.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-24.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-256.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-30.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-32.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-36.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-40.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-44.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-48.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-60.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-64.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-72.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-80.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.altform-unplated_targetsize-96.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.scale-100.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.scale-125.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.scale-150.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.scale-200.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.scale-400.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-16.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-20.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-24.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-256.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-30.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-32.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-36.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-40.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-44.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-48.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-60.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-64.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-72.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-80.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Square44x44Logo.targetsize-96.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/StoreLogo.scale-100.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/StoreLogo.scale-125.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/StoreLogo.scale-150.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/StoreLogo.scale-200.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/StoreLogo.scale-400.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Wide310x150Logo.scale-100.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Wide310x150Logo.scale-125.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Wide310x150Logo.scale-150.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Wide310x150Logo.scale-200.png +0 -0
- package/dist/apps/chat-ui/assets/pwa-images/windows/Wide310x150Logo.scale-400.png +0 -0
- package/dist/apps/chat-ui/index.html +8 -3
- package/dist/apps/chat-ui/manifest.webmanifest +25 -0
- package/dist/apps/chat-ui/sw.js +41 -0
- package/dist/apps/chat-vscode-web/assets/index-B5QK07zO.css +2 -0
- package/dist/apps/chat-vscode-web/assets/index-C3GTPyDo.js +41 -0
- package/dist/apps/chat-vscode-web/index.html +14 -0
- package/dist/apps/cli-ui/InkSessionApp.js +1218 -0
- package/dist/apps/cli-ui/InkTerminalLine.js +53 -0
- package/dist/apps/cli-ui/InkTerminalRow.js +304 -0
- package/dist/apps/cli-ui/InkTerminalView.js +25 -0
- package/dist/apps/cli-ui/cliSessionsCommand.js +232 -0
- package/dist/apps/cli-ui/index.js +8 -0
- package/dist/apps/cli-ui/inkColors.js +67 -0
- package/dist/apps/cli-ui/inkJson.js +244 -0
- package/dist/apps/cli-ui/inkMarkdown.js +122 -0
- package/dist/apps/context-files-ui/assets/{dist-DFi2YGux.js → dist-BOiGdrG-.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-DyfSeBMu.js → dist-DK01b7x4.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-CwbH_3RN.js → dist-DPG9jOQ-.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-dTBsFYAl.js → dist-Dp5AH00p.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-CxRLRmMx.js → dist-DqYw0LH7.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-MyZgX9K2.js → dist-TF5iO5ML.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-DQXzt2Ng.js → dist-TbjAhles.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-YwR9dpb-.js → dist-ZsBbt0uY.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-CKQF1zEu.js → dist-kmsvtHkH.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dist-BJW3917N.js → dist-vnd7PMu3.js} +1 -1
- package/dist/apps/context-files-ui/assets/{index-BwRDoHMC.css → index-B92tL3Pp.css} +1 -1
- package/dist/apps/context-files-ui/assets/{index-GwvjXytt.js → index-BhAWD3dv.js} +2 -2
- package/dist/apps/context-files-ui/index.html +2 -2
- package/dist/apps/vscode-artifacts/latest.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix +0 -0
- package/dist/auth/better-auth.js +2 -1
- package/dist/auth/login-actions.js +251 -0
- package/dist/auth/openai-codex-usage.js +147 -0
- package/dist/bin/pibo.js +0 -0
- package/dist/bin/rg.js +15 -0
- package/dist/cli-session/fakeSessionSource.js +804 -0
- package/dist/cli-session/index.js +3 -0
- package/dist/cli-session/localSessionSource.js +1144 -0
- package/dist/cli-session/sessionSource.js +13 -0
- package/dist/cli.js +159 -14
- package/dist/compute/cli.js +415 -0
- package/dist/compute/docker.js +827 -0
- package/dist/compute/resource-health.js +333 -0
- package/dist/compute/resource-policy.js +98 -0
- package/dist/config/config.js +9 -5
- package/dist/core/context-build.js +677 -0
- package/dist/core/model-defaults.js +51 -9
- package/dist/core/pibo-home.js +8 -0
- package/dist/core/profiles.js +48 -0
- package/dist/core/provider-telemetry.js +222 -0
- package/dist/core/routed-session.js +441 -47
- package/dist/core/runtime-telemetry.js +853 -0
- package/dist/core/runtime.js +103 -15
- package/dist/core/session-errors.js +47 -0
- package/dist/core/session-model.js +39 -0
- package/dist/core/session-router.js +292 -62
- package/dist/core/shared-app.js +17 -0
- package/dist/core/skill-expansion.js +43 -0
- package/dist/core/system-prompt-template.js +9 -9
- package/dist/core/telemetry-staleness.js +128 -0
- package/dist/core/test-output-compaction.js +145 -0
- package/dist/core/user-settings.js +73 -0
- package/dist/cron/channel.js +28 -0
- package/dist/cron/cli.js +230 -0
- package/dist/cron/plugin.js +11 -0
- package/dist/cron/schedule.js +214 -0
- package/dist/cron/service.js +177 -0
- package/dist/cron/store.js +349 -0
- package/dist/cron/types.js +1 -0
- package/dist/data/cli.js +184 -0
- package/dist/data/event-log.js +106 -0
- package/dist/data/final-app-space-cutover-migration.js +728 -0
- package/dist/data/ingest-service.js +389 -0
- package/dist/data/message-store.js +62 -0
- package/dist/data/navigation-store.js +75 -0
- package/dist/data/observation-store.js +46 -0
- package/dist/data/payload-store.js +144 -0
- package/dist/data/pibo-store.js +59 -0
- package/dist/data/schema.js +434 -0
- package/dist/data/session-store.js +63 -0
- package/dist/data/shared-app-migration.js +757 -0
- package/dist/data/sqlite-schema.js +12 -0
- package/dist/data/telemetry-preview.js +65 -0
- package/dist/data/telemetry-queries.js +212 -0
- package/dist/data/telemetry-retention.js +50 -0
- package/dist/data/telemetry-rows.js +158 -0
- package/dist/data/telemetry.js +357 -0
- package/dist/debug/delta-compaction.js +99 -0
- package/dist/debug/detail-format.js +86 -0
- package/dist/debug/events.js +149 -29
- package/dist/debug/failures.js +162 -0
- package/dist/debug/index.js +655 -30
- package/dist/debug/messages.js +185 -0
- package/dist/debug/next-commands.js +6 -0
- package/dist/debug/payloads.js +123 -0
- package/dist/debug/pty.js +924 -0
- package/dist/debug/session.js +45 -15
- package/dist/debug/sql.js +1 -1
- package/dist/debug/stores.js +18 -13
- package/dist/debug/summary.js +72 -0
- package/dist/debug/telemetry.js +649 -0
- package/dist/debug/tools.js +168 -0
- package/dist/debug/trace-render-check.js +151 -0
- package/dist/debug/trace.js +152 -27
- package/dist/debug/web-artifacts.js +63 -0
- package/dist/debug/web-options.js +313 -0
- package/dist/debug/web-render-analysis.js +310 -0
- package/dist/debug/web-snapshot-browser-scripts.js +303 -0
- package/dist/debug/web-streaming-benchmark-analysis.js +605 -0
- package/dist/debug/web-streaming-browser-library.js +928 -0
- package/dist/debug/web-streaming-browser-scripts.js +242 -0
- package/dist/debug/web-streaming-provider-telemetry.js +194 -0
- package/dist/debug/web-streaming-report.js +493 -0
- package/dist/debug/web-streaming-types.js +1 -0
- package/dist/debug/web.js +574 -0
- package/dist/gateway/backup.js +83 -0
- package/dist/gateway/cli.js +511 -0
- package/dist/gateway/fallback.js +155 -0
- package/dist/gateway/pidfile.js +84 -0
- package/dist/gateway/protocol.js +16 -0
- package/dist/gateway/server.js +172 -17
- package/dist/gateway/tool.js +54 -51
- package/dist/gateway/web.js +74 -2
- package/dist/index.js +3 -1
- package/dist/local/client.js +3 -3
- package/dist/local/extension.js +8 -5
- package/dist/plugins/builtin.js +251 -49
- package/dist/plugins/chat-vscode-web.js +28 -0
- package/dist/plugins/codex-compat.js +0 -41
- package/dist/plugins/context-files.js +98 -18
- package/dist/plugins/dev-auth.js +124 -0
- package/dist/plugins/native-tooling.js +15 -0
- package/dist/plugins/registry.js +49 -1
- package/dist/plugins/web-annotations.js +27 -0
- package/dist/providers/minimax.js +70 -0
- package/dist/providers/openai-compat.js +48 -0
- package/dist/ralph/channel.js +8 -0
- package/dist/ralph/cli.js +152 -0
- package/dist/ralph/plugin.js +14 -0
- package/dist/ralph/service.js +271 -0
- package/dist/ralph/stopping.js +151 -0
- package/dist/ralph/store.js +450 -0
- package/dist/ralph/templates.js +200 -0
- package/dist/ralph/types.js +1 -0
- package/dist/reliability/store.js +42 -26
- package/dist/runs/registry.js +72 -35
- package/dist/session-ui/commandCatalog.js +193 -0
- package/dist/session-ui/commandResults.js +95 -0
- package/dist/session-ui/index.js +7 -0
- package/dist/session-ui/ownerViewModel.js +27 -0
- package/dist/session-ui/roomSessionViewModel.js +69 -0
- package/dist/session-ui/statusViewModel.js +127 -0
- package/dist/session-ui/terminalCards.js +210 -0
- package/dist/session-ui/terminalRows.js +937 -0
- package/dist/session-ui/terminalValue.js +45 -0
- package/dist/sessions/pibo-data-store.js +178 -0
- package/dist/sessions/sqlite-store.js +78 -12
- package/dist/sessions/store.js +11 -4
- package/dist/sessions/workflow-session-kind.js +20 -0
- package/dist/setup/cli.js +567 -0
- package/dist/shared/trace-async-agent-runs.js +127 -0
- package/dist/shared/trace-engine.js +96 -0
- package/dist/shared/trace-event-projection.js +679 -0
- package/dist/shared/trace-live-reducer.js +191 -0
- package/dist/shared/trace-nodes.js +76 -0
- package/dist/shared/trace-order.js +11 -10
- package/dist/shared/trace-patch-nodes.js +83 -0
- package/dist/shared/trace-run-notifications.js +69 -0
- package/dist/shared/trace-subagent-links.js +46 -0
- package/dist/shared/trace-transcript.js +303 -0
- package/dist/shared/trace-types.js +1 -0
- package/dist/shared-app.js +4 -0
- package/dist/signals/aggregate.js +65 -0
- package/dist/signals/events.js +1 -0
- package/dist/signals/projector.js +158 -0
- package/dist/signals/registry.js +513 -0
- package/dist/signals/store.js +1 -0
- package/dist/signals/types.js +1 -0
- package/dist/skills/cli.js +117 -0
- package/dist/tools/agent-browser-leases.js +219 -0
- package/dist/tools/agent-browser-wrapper.js +99 -0
- package/dist/tools/browser-pool.js +623 -0
- package/dist/tools/browser-use-cdp.js +56 -4
- package/dist/tools/browser-use-leases.js +215 -37
- package/dist/tools/browser-use-wrapper.js +508 -65
- package/dist/tools/cdp-client.js +189 -0
- package/dist/tools/guides.js +203 -4
- package/dist/tools/index.js +666 -16
- package/dist/tools/npm-runtime.js +136 -0
- package/dist/tools/registry.js +107 -8
- package/dist/tools/runtime/index.js +3 -0
- package/dist/tools/runtime/node-backend.js +225 -0
- package/dist/tools/runtime/node-worker-source.js +206 -0
- package/dist/tools/runtime/python-backend.js +227 -0
- package/dist/tools/runtime/python-worker-source.js +178 -0
- package/dist/tools/runtime/registry.js +255 -0
- package/dist/tools/runtime/tool.js +168 -0
- package/dist/tools/runtime/types.js +1 -0
- package/dist/tools/web-search.js +2 -1
- package/dist/user-skills/installer.js +39 -36
- package/dist/user-skills/store.js +50 -11
- package/dist/vscode/cli.js +90 -0
- package/dist/vscode/code-cli.js +119 -0
- package/dist/vscode/install.js +177 -0
- package/dist/vscode/status.js +80 -0
- package/dist/vscode/types.js +14 -0
- package/dist/vscode/uninstall.js +49 -0
- package/dist/vscode/vsix-fetcher.js +131 -0
- package/dist/web/auth.js +5 -1
- package/dist/web/channel.js +86 -0
- package/dist/web/http.js +79 -14
- package/dist/web-annotations/api.js +348 -0
- package/dist/web-annotations/attachments.js +201 -0
- package/dist/web-annotations/cdp.js +1107 -0
- package/dist/web-annotations/index.js +7 -0
- package/dist/web-annotations/store.js +407 -0
- package/dist/web-annotations/tools.js +350 -0
- package/dist/web-annotations/types.js +34 -0
- package/dist/web-annotations/validation.js +288 -0
- package/docs/README.md +23 -0
- package/docs/ops/install-developer-host.md +112 -0
- package/docs/ops/install-user-host.md +76 -0
- package/docs/ops/upgrade-user-to-developer-host.md +69 -0
- package/docs/ops/vscode-extension-release.md +138 -0
- package/package.json +24 -9
- package/skills/builtin/pi-agent-harness/SKILL.md +24 -24
- package/skills/builtin/pibo-docker-system/SKILL.md +170 -0
- package/skills/builtin/pibo-spec-writing/SKILL.md +330 -0
- package/skills/builtin/prd/SKILL.md +143 -0
- package/skills/builtin/ralph-loop/SKILL.md +359 -0
- package/skills/builtin/ralph-prd-json/SKILL.md +123 -0
- package/skills/builtin/skill-creator/LICENSE.txt +202 -0
- package/skills/builtin/skill-creator/SKILL.md +513 -0
- package/skills/builtin/skill-creator/agents/analyzer.md +274 -0
- package/skills/builtin/skill-creator/agents/comparator.md +202 -0
- package/skills/builtin/skill-creator/agents/grader.md +223 -0
- package/skills/builtin/skill-creator/assets/eval_review.html +146 -0
- package/skills/builtin/skill-creator/eval-viewer/generate_review.py +471 -0
- package/skills/builtin/skill-creator/eval-viewer/viewer.html +1325 -0
- package/skills/builtin/skill-creator/references/schemas.md +430 -0
- package/skills/builtin/skill-creator/scripts/__init__.py +0 -0
- package/skills/builtin/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/skills/builtin/skill-creator/scripts/generate_report.py +326 -0
- package/skills/builtin/skill-creator/scripts/improve_description.py +247 -0
- package/skills/builtin/skill-creator/scripts/package_skill.py +136 -0
- package/skills/builtin/skill-creator/scripts/quick_validate.py +103 -0
- package/skills/builtin/skill-creator/scripts/run_eval.py +310 -0
- package/skills/builtin/skill-creator/scripts/run_loop.py +328 -0
- package/skills/builtin/skill-creator/scripts/utils.py +47 -0
- package/skills/builtin/web-annotations/SKILL.md +93 -0
- package/dist/apps/chat-ui/assets/index-D2Qxambd.js +0 -151
- package/dist/apps/chat-ui/assets/index-DXx368XK.css +0 -1
- package/dist/env.js +0 -32
- package/dist/plugins/core-tools.js +0 -94
- package/dist/plugins/example.js +0 -67
- package/dist/plugins/remote-agent.js +0 -9
- package/dist/remote/channel.js +0 -176
- package/dist/remote/client.js +0 -92
- package/dist/remote/examples/tui-controller.js +0 -263
- package/dist/remote/protocol.js +0 -55
- package/dist/remote/session-client.js +0 -189
- package/dist/sessions/bindings.js +0 -41
|
@@ -35,12 +35,26 @@ export function saveUserSkillStore(data, cwd = process.cwd()) {
|
|
|
35
35
|
mkdirSync(dirname(path), { recursive: true });
|
|
36
36
|
writeFileSync(path, `${JSON.stringify({ version: STORE_VERSION, skills: data.skills }, null, 2)}\n`, "utf-8");
|
|
37
37
|
}
|
|
38
|
+
function readUserSkillDescription(skill, cwd = process.cwd()) {
|
|
39
|
+
const markdown = readSkillMarkdown(skill, cwd);
|
|
40
|
+
const parsed = parseSkillMd(markdown);
|
|
41
|
+
return parsed.description;
|
|
42
|
+
}
|
|
38
43
|
export function listUserSkills(cwd = process.cwd()) {
|
|
39
|
-
|
|
44
|
+
const skills = loadUserSkillStore(cwd).skills;
|
|
45
|
+
for (const skill of skills) {
|
|
46
|
+
skill.description = readUserSkillDescription(skill, cwd);
|
|
47
|
+
}
|
|
48
|
+
return skills;
|
|
40
49
|
}
|
|
41
50
|
export function findUserSkill(idOrName, cwd = process.cwd()) {
|
|
42
51
|
const lookup = idOrName.trim();
|
|
43
|
-
|
|
52
|
+
const store = loadUserSkillStore(cwd);
|
|
53
|
+
const stored = store.skills.find((skill) => skill.id === lookup || skill.name === lookup);
|
|
54
|
+
if (!stored)
|
|
55
|
+
return undefined;
|
|
56
|
+
stored.description = readUserSkillDescription(stored, cwd);
|
|
57
|
+
return stored;
|
|
44
58
|
}
|
|
45
59
|
function validateSkillName(name, existingId, cwd = process.cwd()) {
|
|
46
60
|
const trimmed = name.trim();
|
|
@@ -71,21 +85,28 @@ export function createUserSkill(input, cwd = process.cwd()) {
|
|
|
71
85
|
const skillDir = join(defaultUserSkillDir(cwd), name);
|
|
72
86
|
mkdirSync(skillDir, { recursive: true });
|
|
73
87
|
const skillPath = join(skillDir, "SKILL.md");
|
|
74
|
-
const
|
|
88
|
+
const incoming = input.markdown ?? "";
|
|
89
|
+
const parsedIncoming = parseSkillMd(incoming);
|
|
90
|
+
const body = parsedIncoming.body || incoming;
|
|
91
|
+
const effectiveDescription = description || parsedIncoming.description;
|
|
92
|
+
const markdown = buildSkillMd(name, effectiveDescription, body);
|
|
75
93
|
writeFileSync(skillPath, markdown, "utf-8");
|
|
76
94
|
const now = new Date().toISOString();
|
|
77
95
|
const skill = {
|
|
78
96
|
id,
|
|
79
97
|
name,
|
|
80
|
-
description,
|
|
98
|
+
description: effectiveDescription,
|
|
81
99
|
path: skillPath,
|
|
82
100
|
enabled: true,
|
|
83
101
|
source: "user-created",
|
|
84
102
|
createdAt: now,
|
|
85
103
|
updatedAt: now,
|
|
86
104
|
};
|
|
105
|
+
// Do not persist description in JSON store; it lives in SKILL.md frontmatter only.
|
|
106
|
+
const storedSkill = { ...skill };
|
|
107
|
+
delete storedSkill.description;
|
|
87
108
|
const store = loadUserSkillStore(cwd);
|
|
88
|
-
store.skills.push(
|
|
109
|
+
store.skills.push(storedSkill);
|
|
89
110
|
store.skills.sort((a, b) => a.name.localeCompare(b.name));
|
|
90
111
|
saveUserSkillStore(store, cwd);
|
|
91
112
|
return skill;
|
|
@@ -97,10 +118,12 @@ export function updateUserSkill(id, input, cwd = process.cwd()) {
|
|
|
97
118
|
throw new Error(`Skill "${id}" not found`);
|
|
98
119
|
const existing = store.skills[index];
|
|
99
120
|
let name = existing.name;
|
|
100
|
-
let description = existing.description;
|
|
101
121
|
if (input.name !== undefined) {
|
|
102
122
|
name = validateSkillName(input.name, existing.id, cwd);
|
|
103
123
|
}
|
|
124
|
+
const currentMarkdown = existsSync(existing.path) ? readFileSync(existing.path, "utf-8") : "";
|
|
125
|
+
const parsed = parseSkillMd(currentMarkdown);
|
|
126
|
+
let description = parsed.description;
|
|
104
127
|
if (input.description !== undefined) {
|
|
105
128
|
description = input.description.trim();
|
|
106
129
|
}
|
|
@@ -117,10 +140,14 @@ export function updateUserSkill(id, input, cwd = process.cwd()) {
|
|
|
117
140
|
}
|
|
118
141
|
}
|
|
119
142
|
if (input.markdown !== undefined) {
|
|
120
|
-
const
|
|
143
|
+
const parsedIncoming = parseSkillMd(input.markdown);
|
|
144
|
+
const body = parsedIncoming.body || input.markdown;
|
|
145
|
+
const effectiveDescription = input.description !== undefined ? description : parsedIncoming.description || description;
|
|
146
|
+
description = effectiveDescription;
|
|
147
|
+
const markdown = buildSkillMd(name, effectiveDescription, body);
|
|
121
148
|
writeFileSync(skillPath, markdown, "utf-8");
|
|
122
149
|
}
|
|
123
|
-
else if (name !== existing.name || description !==
|
|
150
|
+
else if (name !== existing.name || description !== parsed.description) {
|
|
124
151
|
const currentMarkdown = existsSync(existing.path) ? readFileSync(existing.path, "utf-8") : "";
|
|
125
152
|
const { body } = parseSkillMd(currentMarkdown);
|
|
126
153
|
writeFileSync(skillPath, buildSkillMd(name, description, body), "utf-8");
|
|
@@ -133,7 +160,10 @@ export function updateUserSkill(id, input, cwd = process.cwd()) {
|
|
|
133
160
|
...(input.enabled !== undefined ? { enabled: input.enabled } : {}),
|
|
134
161
|
updatedAt: new Date().toISOString(),
|
|
135
162
|
};
|
|
136
|
-
store.
|
|
163
|
+
// Strip description before persisting to JSON store.
|
|
164
|
+
const storedUpdated = { ...updated };
|
|
165
|
+
delete storedUpdated.description;
|
|
166
|
+
store.skills[index] = storedUpdated;
|
|
137
167
|
store.skills.sort((a, b) => a.name.localeCompare(b.name));
|
|
138
168
|
saveUserSkillStore(store, cwd);
|
|
139
169
|
return updated;
|
|
@@ -164,7 +194,7 @@ function sanitizeStoredSkill(value) {
|
|
|
164
194
|
return {
|
|
165
195
|
id: candidate.id,
|
|
166
196
|
name: candidate.name.trim(),
|
|
167
|
-
description:
|
|
197
|
+
description: "",
|
|
168
198
|
path: candidate.path.trim(),
|
|
169
199
|
enabled: candidate.enabled !== false,
|
|
170
200
|
source: isValidSource(candidate.source) ? candidate.source : "user-created",
|
|
@@ -205,12 +235,21 @@ function parseSimpleYaml(text) {
|
|
|
205
235
|
if (colonIdx <= 0)
|
|
206
236
|
continue;
|
|
207
237
|
const key = line.slice(0, colonIdx).trim();
|
|
208
|
-
const value = line.slice(colonIdx + 1).trim();
|
|
238
|
+
const value = parseSimpleYamlScalar(line.slice(colonIdx + 1).trim());
|
|
209
239
|
if (key)
|
|
210
240
|
result[key] = value;
|
|
211
241
|
}
|
|
212
242
|
return result;
|
|
213
243
|
}
|
|
244
|
+
function parseSimpleYamlScalar(value) {
|
|
245
|
+
if (value.length >= 2) {
|
|
246
|
+
const quote = value[0];
|
|
247
|
+
if ((quote === '"' || quote === "'") && value[value.length - 1] === quote) {
|
|
248
|
+
return value.slice(1, -1);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return value;
|
|
252
|
+
}
|
|
214
253
|
function renameDirContents(oldDir, newDir) {
|
|
215
254
|
mkdirSync(newDir, { recursive: true });
|
|
216
255
|
for (const entry of readdirSync(oldDir)) {
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `pibo vscode` sub-command — manage the Pibo VS Code extension.
|
|
3
|
+
*
|
|
4
|
+
* Sub-commands:
|
|
5
|
+
* install Download and install the latest Pibo VS Code extension.
|
|
6
|
+
* uninstall Remove the installed Pibo VS Code extension.
|
|
7
|
+
* status Show whether the extension is installed and which CLI is used.
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from "commander";
|
|
10
|
+
import { runInstall } from "./install.js";
|
|
11
|
+
import { runStatus, formatStatusText } from "./status.js";
|
|
12
|
+
import { runUninstall } from "./uninstall.js";
|
|
13
|
+
function printDiscovery() {
|
|
14
|
+
console.log(`pibo vscode
|
|
15
|
+
|
|
16
|
+
Manage the Pibo VS Code extension.
|
|
17
|
+
|
|
18
|
+
Commands:
|
|
19
|
+
install Download and install the latest Pibo VS Code extension
|
|
20
|
+
uninstall Remove the installed Pibo VS Code extension
|
|
21
|
+
status Show whether the extension is installed
|
|
22
|
+
|
|
23
|
+
Next: pibo vscode install --help`);
|
|
24
|
+
}
|
|
25
|
+
export async function runVscodeCli(argv = process.argv) {
|
|
26
|
+
const program = new Command();
|
|
27
|
+
program.name("pibo vscode").description("Manage the Pibo VS Code extension").helpOption("-h, --help");
|
|
28
|
+
program
|
|
29
|
+
.command("install")
|
|
30
|
+
.description("Download and install the Pibo VS Code extension")
|
|
31
|
+
.option("--version <tag>", "Pibo release tag to install (e.g., v1.3.0). Defaults to latest.")
|
|
32
|
+
.option("--vsix <path>", "Install from a local .vsix file instead of fetching a release")
|
|
33
|
+
.option("--from-url <url>", "Fetch a .vsix from the given URL (release tag will be inferred)")
|
|
34
|
+
.option("--owner <owner>", "GitHub owner for the release source", "Pascapone")
|
|
35
|
+
.option("--repo <repo>", "GitHub repo for the release source", "pibo")
|
|
36
|
+
.option("--no-cache", "Skip the VSIX download cache")
|
|
37
|
+
.option("--json", "Print JSON")
|
|
38
|
+
.action(async (options) => {
|
|
39
|
+
const result = await runInstall({
|
|
40
|
+
vsixPath: options.vsix,
|
|
41
|
+
fromUrl: options.fromUrl,
|
|
42
|
+
version: options.version,
|
|
43
|
+
owner: options.owner,
|
|
44
|
+
repo: options.repo,
|
|
45
|
+
skipCache: options.cache === false,
|
|
46
|
+
});
|
|
47
|
+
if (options.json) {
|
|
48
|
+
console.log(JSON.stringify(result, null, 2));
|
|
49
|
+
}
|
|
50
|
+
else if (result.status === "installed") {
|
|
51
|
+
console.log(`installed\t${result.tagName}\t${result.vsixPath}`);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
process.exitCode = 1;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
program
|
|
58
|
+
.command("uninstall")
|
|
59
|
+
.description("Remove the installed Pibo VS Code extension")
|
|
60
|
+
.option("--json", "Print JSON")
|
|
61
|
+
.action(async (options) => {
|
|
62
|
+
const result = await runUninstall();
|
|
63
|
+
if (options.json) {
|
|
64
|
+
console.log(JSON.stringify(result, null, 2));
|
|
65
|
+
}
|
|
66
|
+
else if (result.status !== "uninstalled") {
|
|
67
|
+
process.exitCode = 1;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
program
|
|
71
|
+
.command("status")
|
|
72
|
+
.description("Show the Pibo VS Code extension install status")
|
|
73
|
+
.option("--owner <owner>", "GitHub owner for the release source", "Pascapone")
|
|
74
|
+
.option("--repo <repo>", "GitHub repo for the release source", "pibo")
|
|
75
|
+
.option("--json", "Print JSON")
|
|
76
|
+
.action(async (options) => {
|
|
77
|
+
const status = await runStatus({ owner: options.owner, repo: options.repo });
|
|
78
|
+
if (options.json) {
|
|
79
|
+
console.log(JSON.stringify(status, null, 2));
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
console.log(formatStatusText(status));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
if (argv.length <= 2 || argv.includes("--help") || argv.includes("-h")) {
|
|
86
|
+
printDiscovery();
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
await program.parseAsync(argv);
|
|
90
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detection of the VS Code CLI binary and wrapper around it.
|
|
3
|
+
*
|
|
4
|
+
* The `code` binary is what VS Code installs on `$PATH` when the user enables
|
|
5
|
+
* "Shell Command: Install 'code' command in PATH" from the VS Code command
|
|
6
|
+
* palette. It is the only supported way for `pibo vscode install` to install
|
|
7
|
+
* the extension. If no supported binary is on `$PATH`, install fails with a
|
|
8
|
+
* clear error pointing at https://code.visualstudio.com/.
|
|
9
|
+
*/
|
|
10
|
+
import { spawn as defaultSpawn } from "node:child_process";
|
|
11
|
+
import { existsSync } from "node:fs";
|
|
12
|
+
import { delimiter, join } from "node:path";
|
|
13
|
+
export const SUPPORTED_CODE_BINARIES = ["code", "code-insiders", "codium"];
|
|
14
|
+
function splitPathEnv(pathValue) {
|
|
15
|
+
if (!pathValue)
|
|
16
|
+
return [];
|
|
17
|
+
return pathValue.split(delimiter).filter((entry) => entry.length > 0);
|
|
18
|
+
}
|
|
19
|
+
function firstExisting(candidates) {
|
|
20
|
+
for (const candidate of candidates) {
|
|
21
|
+
if (existsSync(candidate))
|
|
22
|
+
return candidate;
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
export function detectCodeBinary(options = {}) {
|
|
27
|
+
const pathValue = options.path ?? options.env?.PATH ?? process.env.PATH ?? "";
|
|
28
|
+
const directories = splitPathEnv(pathValue);
|
|
29
|
+
for (const binary of SUPPORTED_CODE_BINARIES) {
|
|
30
|
+
const candidates = directories.map((dir) => join(dir, binary));
|
|
31
|
+
const found = firstExisting(candidates);
|
|
32
|
+
if (found)
|
|
33
|
+
return { binary, path: found };
|
|
34
|
+
}
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
const COLLECT_BUFFER_LIMIT = 1024 * 1024; // 1 MiB
|
|
38
|
+
export function runCodeCommand(options) {
|
|
39
|
+
const spawnImpl = options.spawnImpl ?? defaultSpawn;
|
|
40
|
+
const env = options.env ?? process.env;
|
|
41
|
+
return new Promise((resolveInvocation, rejectInvocation) => {
|
|
42
|
+
let child;
|
|
43
|
+
try {
|
|
44
|
+
child = spawnImpl(options.binary, [...options.args], {
|
|
45
|
+
env,
|
|
46
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
rejectInvocation(error instanceof Error ? error : new Error(String(error)));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const stdoutChunks = [];
|
|
54
|
+
const stderrChunks = [];
|
|
55
|
+
let stdoutLength = 0;
|
|
56
|
+
let stderrLength = 0;
|
|
57
|
+
let timedOut = false;
|
|
58
|
+
const timeoutHandle = typeof options.timeoutMs === "number"
|
|
59
|
+
? setTimeout(() => {
|
|
60
|
+
timedOut = true;
|
|
61
|
+
child.kill("SIGKILL");
|
|
62
|
+
}, options.timeoutMs)
|
|
63
|
+
: null;
|
|
64
|
+
child.stdout?.on("data", (chunk) => {
|
|
65
|
+
stdoutLength += chunk.length;
|
|
66
|
+
if (stdoutLength <= COLLECT_BUFFER_LIMIT)
|
|
67
|
+
stdoutChunks.push(chunk);
|
|
68
|
+
});
|
|
69
|
+
child.stderr?.on("data", (chunk) => {
|
|
70
|
+
stderrLength += chunk.length;
|
|
71
|
+
if (stderrLength <= COLLECT_BUFFER_LIMIT)
|
|
72
|
+
stderrChunks.push(chunk);
|
|
73
|
+
});
|
|
74
|
+
child.on("error", (error) => {
|
|
75
|
+
if (timeoutHandle)
|
|
76
|
+
clearTimeout(timeoutHandle);
|
|
77
|
+
rejectInvocation(error);
|
|
78
|
+
});
|
|
79
|
+
child.on("close", (code) => {
|
|
80
|
+
if (timeoutHandle)
|
|
81
|
+
clearTimeout(timeoutHandle);
|
|
82
|
+
if (timedOut) {
|
|
83
|
+
rejectInvocation(new Error(`code command timed out after ${options.timeoutMs}ms`));
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
resolveInvocation({
|
|
87
|
+
stdout: Buffer.concat(stdoutChunks).toString("utf8"),
|
|
88
|
+
stderr: Buffer.concat(stderrChunks).toString("utf8"),
|
|
89
|
+
exitCode: code ?? -1,
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
export async function listInstalledExtensions(options) {
|
|
95
|
+
const result = await runCodeCommand({
|
|
96
|
+
binary: options.binary,
|
|
97
|
+
args: ["--list-extensions", "--show-versions"],
|
|
98
|
+
spawnImpl: options.spawnImpl,
|
|
99
|
+
env: options.env,
|
|
100
|
+
timeoutMs: 30_000,
|
|
101
|
+
});
|
|
102
|
+
if (result.exitCode !== 0) {
|
|
103
|
+
throw new Error(`code --list-extensions failed: ${result.stderr || result.stdout || `exit ${result.exitCode}`}`);
|
|
104
|
+
}
|
|
105
|
+
const entries = [];
|
|
106
|
+
for (const rawLine of result.stdout.split(/\r?\n/)) {
|
|
107
|
+
const line = rawLine.trim();
|
|
108
|
+
if (!line)
|
|
109
|
+
continue;
|
|
110
|
+
const atIndex = line.lastIndexOf("@");
|
|
111
|
+
if (atIndex > 0) {
|
|
112
|
+
entries.push({ id: line.slice(0, atIndex), version: line.slice(atIndex + 1) });
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
entries.push({ id: line });
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return entries;
|
|
119
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `pibo vscode install` — install the Pibo VS Code extension.
|
|
3
|
+
*
|
|
4
|
+
* Resolution order for the VSIX artifact:
|
|
5
|
+
* 1. `--vsix <path>` → use the local file directly
|
|
6
|
+
* 2. `--from-url <url>` → download from the given URL
|
|
7
|
+
* 3. default → fetch the latest GitHub Release for the repo and
|
|
8
|
+
* use its `.vsix` asset (optionally pinned by
|
|
9
|
+
* `--version <tag>`)
|
|
10
|
+
*
|
|
11
|
+
* The resolved VSIX is cached under `~/.pibo/vscode/cache/<tagName>/` so
|
|
12
|
+
* repeated installs do not re-download.
|
|
13
|
+
*/
|
|
14
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
15
|
+
import { homedir } from "node:os";
|
|
16
|
+
import { join, resolve } from "node:path";
|
|
17
|
+
import { detectCodeBinary, listInstalledExtensions, runCodeCommand } from "./code-cli.js";
|
|
18
|
+
import { downloadVsixAsset, fetchLatestVsix, isVsixAsset } from "./vsix-fetcher.js";
|
|
19
|
+
import { DEFAULT_GITHUB_OWNER, DEFAULT_GITHUB_REPO, PIBO_VSCODE_CACHE_DIR, PIBO_VSCODE_EXTENSION_ID, } from "./types.js";
|
|
20
|
+
import { findVsixAsset, fetchRelease } from "./vsix-fetcher.js";
|
|
21
|
+
const DEFAULT_LOG = (message) => {
|
|
22
|
+
console.log(message);
|
|
23
|
+
};
|
|
24
|
+
const DEFAULT_ERROR = (message) => {
|
|
25
|
+
process.stderr.write(`${message}\n`);
|
|
26
|
+
};
|
|
27
|
+
function getCacheDir(options) {
|
|
28
|
+
if (options.cacheDir)
|
|
29
|
+
return options.cacheDir;
|
|
30
|
+
const base = options.env?.PIBO_HOME ?? join(homedir(), ".pibo");
|
|
31
|
+
return join(base, PIBO_VSCODE_CACHE_DIR, "cache");
|
|
32
|
+
}
|
|
33
|
+
function cacheKeyForVersion(tagName) {
|
|
34
|
+
return tagName.replace(/[^A-Za-z0-9._-]/g, "_");
|
|
35
|
+
}
|
|
36
|
+
function readCachedVsix(cacheDir, tagName) {
|
|
37
|
+
const dir = join(cacheDir, cacheKeyForVersion(tagName));
|
|
38
|
+
const path = join(dir, "pibo.vsix");
|
|
39
|
+
return existsSync(path) ? path : undefined;
|
|
40
|
+
}
|
|
41
|
+
function writeCachedVsix(cacheDir, tagName, bytes) {
|
|
42
|
+
const dir = join(cacheDir, cacheKeyForVersion(tagName));
|
|
43
|
+
mkdirSync(dir, { recursive: true });
|
|
44
|
+
const path = join(dir, "pibo.vsix");
|
|
45
|
+
writeFileSync(path, bytes);
|
|
46
|
+
return path;
|
|
47
|
+
}
|
|
48
|
+
function cachedTagManifestPath(cacheDir) {
|
|
49
|
+
return join(cacheDir, "last-installed.json");
|
|
50
|
+
}
|
|
51
|
+
function readCachedTagManifest(cacheDir) {
|
|
52
|
+
const path = cachedTagManifestPath(cacheDir);
|
|
53
|
+
if (!existsSync(path))
|
|
54
|
+
return undefined;
|
|
55
|
+
try {
|
|
56
|
+
const json = JSON.parse(readFileSync(path, "utf8"));
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function writeCachedTagManifest(cacheDir, tagName, vsixPath) {
|
|
64
|
+
const path = cachedTagManifestPath(cacheDir);
|
|
65
|
+
mkdirSync(cacheDir, { recursive: true });
|
|
66
|
+
writeFileSync(path, JSON.stringify({ tagName, vsixPath, installedAt: new Date().toISOString() }, null, 2));
|
|
67
|
+
}
|
|
68
|
+
export async function resolveVsixArtifact(options) {
|
|
69
|
+
if (options.vsixPath) {
|
|
70
|
+
const absolute = resolve(options.vsixPath);
|
|
71
|
+
if (!existsSync(absolute)) {
|
|
72
|
+
throw new Error(`VSIX file not found at ${absolute}`);
|
|
73
|
+
}
|
|
74
|
+
return { tagName: "local", vsixPath: absolute };
|
|
75
|
+
}
|
|
76
|
+
if (!options.skipCache && !options.version) {
|
|
77
|
+
const cachedTag = readCachedTagManifest(options.cacheDir);
|
|
78
|
+
if (cachedTag?.tagName && cachedTag.vsixPath && existsSync(cachedTag.vsixPath)) {
|
|
79
|
+
return { tagName: cachedTag.tagName, vsixPath: cachedTag.vsixPath };
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (options.fromUrl) {
|
|
83
|
+
const release = await fetchRelease({ owner: options.owner, repo: options.repo, fetchImpl: options.fetchImpl });
|
|
84
|
+
const asset = findVsixAsset(release) ?? { name: "remote.vsix", browserDownloadUrl: options.fromUrl, size: 0, contentType: "application/octet-stream" };
|
|
85
|
+
const bytes = await downloadVsixAsset({ url: options.fromUrl, fetchImpl: options.fetchImpl });
|
|
86
|
+
const cachedPath = writeCachedVsix(options.cacheDir, release.tagName, bytes);
|
|
87
|
+
return { tagName: release.tagName, vsixPath: cachedPath, bytes };
|
|
88
|
+
}
|
|
89
|
+
const result = await fetchLatestVsix({
|
|
90
|
+
owner: options.owner,
|
|
91
|
+
repo: options.repo,
|
|
92
|
+
tagName: options.version,
|
|
93
|
+
fetchImpl: options.fetchImpl,
|
|
94
|
+
});
|
|
95
|
+
if (!options.skipCache) {
|
|
96
|
+
const cached = readCachedVsix(options.cacheDir, result.tagName);
|
|
97
|
+
if (cached)
|
|
98
|
+
return { tagName: result.tagName, vsixPath: cached };
|
|
99
|
+
}
|
|
100
|
+
const cachedPath = writeCachedVsix(options.cacheDir, result.tagName, result.bytes);
|
|
101
|
+
return { tagName: result.tagName, vsixPath: cachedPath, bytes: result.bytes };
|
|
102
|
+
}
|
|
103
|
+
export async function runInstall(options) {
|
|
104
|
+
const log = options.log ?? DEFAULT_LOG;
|
|
105
|
+
const errorLog = options.error ?? DEFAULT_ERROR;
|
|
106
|
+
const owner = options.owner ?? DEFAULT_GITHUB_OWNER;
|
|
107
|
+
const repo = options.repo ?? DEFAULT_GITHUB_REPO;
|
|
108
|
+
const cacheDir = getCacheDir(options);
|
|
109
|
+
const detected = detectCodeBinary({ env: options.env });
|
|
110
|
+
if (!detected) {
|
|
111
|
+
const message = `No VS Code CLI found on PATH. Install VS Code (https://code.visualstudio.com/) and run 'Shell Command: Install code command in PATH' from the VS Code command palette.`;
|
|
112
|
+
errorLog(message);
|
|
113
|
+
return { status: "failed", reason: "no-code-cli" };
|
|
114
|
+
}
|
|
115
|
+
let artifact;
|
|
116
|
+
try {
|
|
117
|
+
artifact = await resolveVsixArtifact({
|
|
118
|
+
vsixPath: options.vsixPath,
|
|
119
|
+
fromUrl: options.fromUrl,
|
|
120
|
+
version: options.version,
|
|
121
|
+
owner,
|
|
122
|
+
repo,
|
|
123
|
+
fetchImpl: options.fetchImpl,
|
|
124
|
+
cacheDir,
|
|
125
|
+
skipCache: options.skipCache,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
catch (fetchError) {
|
|
129
|
+
const reason = fetchError instanceof Error ? fetchError.message : String(fetchError);
|
|
130
|
+
errorLog(`Failed to obtain VSIX: ${reason}`);
|
|
131
|
+
return { status: "failed", reason };
|
|
132
|
+
}
|
|
133
|
+
log(`Installing pibo VS Code extension ${artifact.tagName} from ${artifact.vsixPath} via ${detected.path}…`);
|
|
134
|
+
let installResult;
|
|
135
|
+
try {
|
|
136
|
+
installResult = await runCodeCommand({
|
|
137
|
+
binary: detected.path,
|
|
138
|
+
args: ["--install-extension", artifact.vsixPath, "--force"],
|
|
139
|
+
spawnImpl: options.spawnImpl,
|
|
140
|
+
env: options.env,
|
|
141
|
+
timeoutMs: 120_000,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
catch (spawnError) {
|
|
145
|
+
const reason = spawnError instanceof Error ? spawnError.message : String(spawnError);
|
|
146
|
+
errorLog(`Failed to invoke ${detected.binary}: ${reason}`);
|
|
147
|
+
return { status: "failed", reason, codeBinary: detected.path, tagName: artifact.tagName };
|
|
148
|
+
}
|
|
149
|
+
if (installResult.exitCode !== 0) {
|
|
150
|
+
const reason = `code --install-extension exited with code ${installResult.exitCode}: ${installResult.stderr || installResult.stdout}`;
|
|
151
|
+
errorLog(reason);
|
|
152
|
+
return { status: "failed", reason, codeBinary: detected.path, tagName: artifact.tagName };
|
|
153
|
+
}
|
|
154
|
+
writeCachedTagManifest(cacheDir, artifact.tagName, artifact.vsixPath);
|
|
155
|
+
try {
|
|
156
|
+
const installed = await listInstalledExtensions({
|
|
157
|
+
binary: detected.path,
|
|
158
|
+
spawnImpl: options.spawnImpl,
|
|
159
|
+
env: options.env,
|
|
160
|
+
});
|
|
161
|
+
const ours = installed.find((entry) => entry.id === PIBO_VSCODE_EXTENSION_ID);
|
|
162
|
+
if (ours) {
|
|
163
|
+
log(`Installed ${ours.id}@${ours.version ?? "?"} via ${detected.path}`);
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
log(`code --install-extension reported success but ${PIBO_VSCODE_EXTENSION_ID} is not in the installed list.`);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
catch (listError) {
|
|
170
|
+
// Listing the installed extensions is a best-effort check; do not fail the install on a listing error.
|
|
171
|
+
const reason = listError instanceof Error ? listError.message : String(listError);
|
|
172
|
+
log(`Install completed; failed to verify via --list-extensions: ${reason}`);
|
|
173
|
+
}
|
|
174
|
+
return { status: "installed", tagName: artifact.tagName, vsixPath: artifact.vsixPath, codeBinary: detected.path };
|
|
175
|
+
}
|
|
176
|
+
// Re-export for symmetry with code-cli.ts consumers.
|
|
177
|
+
export { isVsixAsset };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `pibo vscode status` — report whether the Pibo VS Code extension is
|
|
3
|
+
* installed, the local VS Code CLI binary, and the cached VSIX artifacts.
|
|
4
|
+
*/
|
|
5
|
+
import { existsSync, readdirSync, statSync } from "node:fs";
|
|
6
|
+
import { homedir } from "node:os";
|
|
7
|
+
import { join } from "node:path";
|
|
8
|
+
import { detectCodeBinary, listInstalledExtensions } from "./code-cli.js";
|
|
9
|
+
import { fetchRelease } from "./vsix-fetcher.js";
|
|
10
|
+
import { DEFAULT_GITHUB_OWNER, DEFAULT_GITHUB_REPO, PIBO_VSCODE_CACHE_DIR, PIBO_VSCODE_EXTENSION_ID, } from "./types.js";
|
|
11
|
+
function getCacheDir(options) {
|
|
12
|
+
if (options.cacheDir)
|
|
13
|
+
return options.cacheDir;
|
|
14
|
+
const base = options.env?.PIBO_HOME ?? join(homedir(), ".pibo");
|
|
15
|
+
return join(base, PIBO_VSCODE_CACHE_DIR, "cache");
|
|
16
|
+
}
|
|
17
|
+
function listCachedReleases(cacheDir, limit) {
|
|
18
|
+
if (!existsSync(cacheDir))
|
|
19
|
+
return [];
|
|
20
|
+
const entries = readdirSync(cacheDir, { withFileTypes: true })
|
|
21
|
+
.filter((entry) => entry.isDirectory() && entry.name !== "node_modules")
|
|
22
|
+
.map((entry) => ({ name: entry.name, mtimeMs: statSync(join(cacheDir, entry.name)).mtimeMs }))
|
|
23
|
+
.sort((a, b) => b.mtimeMs - a.mtimeMs)
|
|
24
|
+
.slice(0, limit)
|
|
25
|
+
.map((entry) => entry.name);
|
|
26
|
+
return entries;
|
|
27
|
+
}
|
|
28
|
+
export async function runStatus(options = {}) {
|
|
29
|
+
const owner = options.owner ?? DEFAULT_GITHUB_OWNER;
|
|
30
|
+
const repo = options.repo ?? DEFAULT_GITHUB_REPO;
|
|
31
|
+
const cacheDir = getCacheDir(options);
|
|
32
|
+
const limit = options.limit ?? 5;
|
|
33
|
+
const detected = detectCodeBinary({ env: options.env });
|
|
34
|
+
let installed = false;
|
|
35
|
+
let version;
|
|
36
|
+
if (detected) {
|
|
37
|
+
try {
|
|
38
|
+
const installedExtensions = await listInstalledExtensions({
|
|
39
|
+
binary: detected.path,
|
|
40
|
+
spawnImpl: options.spawnImpl,
|
|
41
|
+
env: options.env,
|
|
42
|
+
});
|
|
43
|
+
const ours = installedExtensions.find((entry) => entry.id === PIBO_VSCODE_EXTENSION_ID);
|
|
44
|
+
if (ours) {
|
|
45
|
+
installed = true;
|
|
46
|
+
version = ours.version;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
// Listing failed; treat as not-installed for status purposes.
|
|
51
|
+
installed = false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const cachedReleases = listCachedReleases(cacheDir, limit);
|
|
55
|
+
let availableReleases = [];
|
|
56
|
+
try {
|
|
57
|
+
const release = await fetchRelease({ owner, repo, fetchImpl: options.fetchImpl });
|
|
58
|
+
availableReleases = [release.tagName];
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
// Network failure is non-fatal for status.
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
installed,
|
|
65
|
+
version,
|
|
66
|
+
codeBinary: detected?.path,
|
|
67
|
+
vsixCacheDir: cacheDir,
|
|
68
|
+
availableReleases,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export function formatStatusText(status) {
|
|
72
|
+
const lines = [];
|
|
73
|
+
lines.push(`extension: ${status.installed ? `${PIBO_VSCODE_EXTENSION_ID}@${status.version ?? "?"}` : "not installed"}`);
|
|
74
|
+
lines.push(`code binary: ${status.codeBinary ?? "(not on PATH)"}`);
|
|
75
|
+
lines.push(`vsix cache: ${status.vsixCacheDir}`);
|
|
76
|
+
if (status.availableReleases.length > 0) {
|
|
77
|
+
lines.push(`latest release: ${status.availableReleases[0]}`);
|
|
78
|
+
}
|
|
79
|
+
return lines.join("\n");
|
|
80
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types and constants for the `pibo vscode` sub-command.
|
|
3
|
+
*
|
|
4
|
+
* The pibo VS Code extension is a thin VS Code client that opens a WebView
|
|
5
|
+
* pointing at the gateway-served chat-vscode-web app. The extension itself
|
|
6
|
+
* ships as a `.vsix` artifact, published to the VS Code Marketplace and
|
|
7
|
+
* mirrored on GitHub Releases.
|
|
8
|
+
*/
|
|
9
|
+
export const PIBO_VSCODE_EXTENSION_PUBLISHER = "pibo";
|
|
10
|
+
export const PIBO_VSCODE_EXTENSION_NAME = "pibo-vscode";
|
|
11
|
+
export const PIBO_VSCODE_EXTENSION_ID = `${PIBO_VSCODE_EXTENSION_PUBLISHER}.${PIBO_VSCODE_EXTENSION_NAME}`;
|
|
12
|
+
export const DEFAULT_GITHUB_OWNER = "Pascapone";
|
|
13
|
+
export const DEFAULT_GITHUB_REPO = "pibo";
|
|
14
|
+
export const PIBO_VSCODE_CACHE_DIR = "vscode";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `pibo vscode uninstall` — remove the installed Pibo VS Code extension.
|
|
3
|
+
*/
|
|
4
|
+
import { detectCodeBinary, runCodeCommand } from "./code-cli.js";
|
|
5
|
+
import { PIBO_VSCODE_EXTENSION_ID } from "./types.js";
|
|
6
|
+
const DEFAULT_LOG = (message) => {
|
|
7
|
+
console.log(message);
|
|
8
|
+
};
|
|
9
|
+
const DEFAULT_ERROR = (message) => {
|
|
10
|
+
process.stderr.write(`${message}\n`);
|
|
11
|
+
};
|
|
12
|
+
export async function runUninstall(options = {}) {
|
|
13
|
+
const log = options.log ?? DEFAULT_LOG;
|
|
14
|
+
const errorLog = options.error ?? DEFAULT_ERROR;
|
|
15
|
+
const detected = detectCodeBinary({ env: options.env });
|
|
16
|
+
if (!detected) {
|
|
17
|
+
errorLog(`No VS Code CLI found on PATH.`);
|
|
18
|
+
return { status: "failed", reason: "no-code-cli" };
|
|
19
|
+
}
|
|
20
|
+
log(`Uninstalling ${PIBO_VSCODE_EXTENSION_ID} via ${detected.path}…`);
|
|
21
|
+
let result;
|
|
22
|
+
try {
|
|
23
|
+
result = await runCodeCommand({
|
|
24
|
+
binary: detected.path,
|
|
25
|
+
args: ["--uninstall-extension", PIBO_VSCODE_EXTENSION_ID],
|
|
26
|
+
spawnImpl: options.spawnImpl,
|
|
27
|
+
env: options.env,
|
|
28
|
+
timeoutMs: 60_000,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
catch (spawnError) {
|
|
32
|
+
const reason = spawnError instanceof Error ? spawnError.message : String(spawnError);
|
|
33
|
+
errorLog(`Failed to invoke ${detected.binary}: ${reason}`);
|
|
34
|
+
return { status: "failed", reason, codeBinary: detected.path };
|
|
35
|
+
}
|
|
36
|
+
if (result.exitCode !== 0) {
|
|
37
|
+
const stderr = result.stderr || result.stdout;
|
|
38
|
+
// VS Code returns a non-zero exit when the extension is not installed; treat that as "not-installed".
|
|
39
|
+
if (/not found|not installed|Cannot find extension/i.test(stderr)) {
|
|
40
|
+
log(`${PIBO_VSCODE_EXTENSION_ID} was not installed.`);
|
|
41
|
+
return { status: "not-installed", codeBinary: detected.path };
|
|
42
|
+
}
|
|
43
|
+
const reason = `code --uninstall-extension exited with code ${result.exitCode}: ${stderr}`;
|
|
44
|
+
errorLog(reason);
|
|
45
|
+
return { status: "failed", reason, codeBinary: detected.path };
|
|
46
|
+
}
|
|
47
|
+
log(`Uninstalled ${PIBO_VSCODE_EXTENSION_ID}`);
|
|
48
|
+
return { status: "uninstalled", codeBinary: detected.path };
|
|
49
|
+
}
|