@ycodium-ai/plugin-browser-workbench 0.2.4351 → 0.2.4372
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
3
3
|
|
|
4
4
|
// ../../packages/plugin-api/src/version.ts
|
|
5
|
-
var PLUGIN_API_VERSION =
|
|
5
|
+
var PLUGIN_API_VERSION = 112;
|
|
6
6
|
|
|
7
7
|
// src/progress.ts
|
|
8
8
|
var PROGRESS_BUFFER_LIMIT = 64;
|
|
@@ -107,7 +107,6 @@ var CLI_PLATFORMS = [
|
|
|
107
107
|
];
|
|
108
108
|
var CLI_DOWNLOAD_BASE_URL = "https://update.code.visualstudio.com";
|
|
109
109
|
var cliRelativePath = (platform3 = NodeProcess.platform) => platform3 === "win32" ? "bin/code.exe" : "bin/code";
|
|
110
|
-
var cliProgramSelector = (platform3 = NodeProcess.platform) => `data:${cliRelativePath(platform3)}`;
|
|
111
110
|
var detectCliPlatform = (platform3 = NodeProcess.platform, arch3 = NodeProcess.arch) => {
|
|
112
111
|
if (platform3 === "linux" && arch3 === "x64") return "linux-x64";
|
|
113
112
|
if (platform3 === "linux" && arch3 === "arm64") return "linux-arm64";
|
|
@@ -680,9 +679,9 @@ var parseCliVersion = (stdout) => {
|
|
|
680
679
|
const version = match?.[1];
|
|
681
680
|
return version === void 0 || version.length === 0 ? null : version;
|
|
682
681
|
};
|
|
683
|
-
var readInstalledCliVersion = async (processApi) => {
|
|
682
|
+
var readInstalledCliVersion = async (processApi, paths) => {
|
|
684
683
|
const result = await processApi.run({
|
|
685
|
-
program:
|
|
684
|
+
program: paths.cliPath,
|
|
686
685
|
args: ["--version"],
|
|
687
686
|
timeoutMs: 15e3
|
|
688
687
|
});
|
|
@@ -859,7 +858,7 @@ var startServeWeb = async (input) => {
|
|
|
859
858
|
await ensureDataDirs(input.paths);
|
|
860
859
|
await ensureServeWebToken(input.paths);
|
|
861
860
|
const handle = await input.processApi.spawn({
|
|
862
|
-
program:
|
|
861
|
+
program: input.paths.cliPath,
|
|
863
862
|
args: [...serveWebArgs(input.paths)]
|
|
864
863
|
});
|
|
865
864
|
try {
|
|
@@ -1287,7 +1286,7 @@ var WorkbenchRuntime = class {
|
|
|
1287
1286
|
this.rethrowAs(error, "download-cli");
|
|
1288
1287
|
}
|
|
1289
1288
|
try {
|
|
1290
|
-
const version = await readInstalledCliVersion(this.ctx.process);
|
|
1289
|
+
const version = await readInstalledCliVersion(this.ctx.process, this.paths);
|
|
1291
1290
|
this.stage("download-cli", "succeeded", { detail: version });
|
|
1292
1291
|
return version;
|
|
1293
1292
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-browser-workbench",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4372",
|
|
4
4
|
"description": "Installs the official VS Code CLI on this machine and opens it in a system browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browser-workbench",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"esbuild": "0.28.1",
|
|
25
25
|
"typescript": "~6.0.3",
|
|
26
26
|
"vite-plus": "0.2.2",
|
|
27
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
27
|
+
"@ycodium-ai/plugin-api": "0.2.4372"
|
|
28
28
|
},
|
|
29
29
|
"ycodium": {
|
|
30
30
|
"plugin": "./dist/index.js",
|