@ycodium-ai/plugin-browser-workbench 0.2.2554 → 0.2.2566

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.
Files changed (2) hide show
  1. package/dist/index.js +28 -38
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,40 +1,6 @@
1
1
  // src/index.ts
2
2
  import { definePlugin } from "@ycodium-ai/plugin-api";
3
3
 
4
- // src/catalog.ts
5
- var catalog = {
6
- settings: {
7
- card: {
8
- title: "External workbench",
9
- description: "Point this machine at a code-server you already run. Ycodium only forwards the port; it does not start or stop that process."
10
- },
11
- attachPort: {
12
- label: "code-server port",
13
- description: "Loopback port of a code-server already listening on this machine. Leave empty to use the official VS Code CLI instead."
14
- }
15
- },
16
- failure: {
17
- "license-required": "Confirm the VS Code Server license terms to continue.",
18
- "download-failed": "The VS Code CLI could not be downloaded.",
19
- "disk-full": "This machine does not have enough disk space to install the VS Code CLI.",
20
- "launch-failed": "The VS Code CLI started but did not publish a local address in time.",
21
- "port-in-use": "The local port for the workbench is already in use.",
22
- "server-download-failed": "The VS Code server did not become ready in time.",
23
- "grant-expired": "The desktop connection grant expired.",
24
- "host-key-mismatch": "This machine's key does not match the pinned host key.",
25
- "channel-failed": "The desktop could not open a channel to the workbench.",
26
- unknown: "The workbench could not be opened."
27
- },
28
- attach: {
29
- noListener: "Nothing is listening on 127.0.0.1:{{port}}."
30
- },
31
- running: {
32
- stopFirst: "Stop the workbench before updating the CLI."
33
- }
34
- };
35
- var failureMessage = (kind) => catalog.failure[kind];
36
- var attachNoListenerMessage = (port) => catalog.attach.noListener.replace("{{port}}", String(port));
37
-
38
4
  // src/progress.ts
39
5
  var PROGRESS_BUFFER_LIMIT = 64;
40
6
  var PROGRESS_OUTPUT_TAIL = 16;
@@ -140,6 +106,30 @@ var probeLoopback = (port, timeoutMs = ATTACH_PROBE_TIMEOUT_MS) => new Promise((
140
106
  });
141
107
  });
142
108
 
109
+ // src/catalog.ts
110
+ var catalog = {
111
+ failure: {
112
+ "license-required": "Confirm the VS Code Server license terms to continue.",
113
+ "download-failed": "The VS Code CLI could not be downloaded.",
114
+ "disk-full": "This machine does not have enough disk space to install the VS Code CLI.",
115
+ "launch-failed": "The VS Code CLI started but did not publish a local address in time.",
116
+ "port-in-use": "The local port for the workbench is already in use.",
117
+ "server-download-failed": "The VS Code server did not become ready in time.",
118
+ "grant-expired": "The desktop connection grant expired.",
119
+ "host-key-mismatch": "This machine's key does not match the pinned host key.",
120
+ "channel-failed": "The desktop could not open a channel to the workbench.",
121
+ unknown: "The workbench could not be opened."
122
+ },
123
+ attach: {
124
+ noListener: "Nothing is listening on 127.0.0.1:{{port}}."
125
+ },
126
+ running: {
127
+ stopFirst: "Stop the workbench before updating the CLI."
128
+ }
129
+ };
130
+ var failureMessage = (kind) => catalog.failure[kind];
131
+ var attachNoListenerMessage = (port) => catalog.attach.noListener.replace("{{port}}", String(port));
132
+
143
133
  // src/cli.ts
144
134
  import * as NodeFS from "node:fs";
145
135
  import * as NodeFSP2 from "node:fs/promises";
@@ -1536,14 +1526,14 @@ var index_default = definePlugin({
1536
1526
  handle: () => runtime.detach()
1537
1527
  });
1538
1528
  ctx.settingsCard({
1539
- title: catalog.settings.card.title,
1540
- description: catalog.settings.card.description,
1529
+ titleKey: "settings.card.title",
1530
+ descriptionKey: "settings.card.description",
1541
1531
  fields: [
1542
1532
  {
1543
1533
  key: "attachPort",
1544
1534
  kind: "number",
1545
- label: catalog.settings.attachPort.label,
1546
- description: catalog.settings.attachPort.description
1535
+ labelKey: "settings.attachPort.label",
1536
+ descriptionKey: "settings.attachPort.description"
1547
1537
  }
1548
1538
  ]
1549
1539
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-browser-workbench",
3
- "version": "0.2.2554",
3
+ "version": "0.2.2566",
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",
@@ -23,7 +23,7 @@
23
23
  "esbuild": "0.28.1",
24
24
  "typescript": "~6.0.3",
25
25
  "vite-plus": "0.2.2",
26
- "@ycodium-ai/plugin-api": "0.2.2554"
26
+ "@ycodium-ai/plugin-api": "0.2.2566"
27
27
  },
28
28
  "ycodium": {
29
29
  "plugin": "./dist/index.js",