@devframes/plugin-code-server 1.3.2 → 1.3.5
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/node/cli.mjs +1 -1
- package/dist/node/constants.d.mts +33 -2
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/node/vite.mjs +1 -1
- package/dist/{node-DNNKZQB1.mjs → node-BYxBdfLp.mjs} +1 -1
- package/package.json +15 -15
- package/dist/constants-DbOzymwM.d.mts +0 -34
package/dist/node/cli.mjs
CHANGED
|
@@ -1,2 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
/** Stable devframe id for the code-server plugin. */
|
|
2
|
+
export declare const PLUGIN_ID = "devframes_plugin_code-server";
|
|
3
|
+
/**
|
|
4
|
+
* Shared-state key holding the serializable, secret-free server status and
|
|
5
|
+
* detection result. Authentication material is never published here; it is
|
|
6
|
+
* returned only from the `start` / `status` RPCs to the already-authorized
|
|
7
|
+
* client (see {@link import('./types').CodeServerConnect}).
|
|
8
|
+
*/
|
|
9
|
+
export declare const STATE_KEY = "devframes:plugin:code-server:state";
|
|
10
|
+
/** Default dev-server port for the plugin's own launcher SPA (standalone CLI). */
|
|
11
|
+
export declare const DEFAULT_PORT = 9013;
|
|
12
|
+
/** Preferred port for the spawned editor process (falls back if taken). */
|
|
13
|
+
export declare const DEFAULT_CODE_SERVER_PORT = 8080;
|
|
14
|
+
/** How long to wait for the editor to answer its readiness probe. */
|
|
15
|
+
export declare const DEFAULT_START_TIMEOUT = 30000;
|
|
16
|
+
/** code-server's session cookie base name (see `getCookieSessionName`). */
|
|
17
|
+
export declare const SESSION_COOKIE_BASE = "code-server-session";
|
|
18
|
+
/**
|
|
19
|
+
* Title for the read-only terminal session surfaced when the plugin is mounted
|
|
20
|
+
* in a hub (`ctx.terminals`). Mirrors the plugin's own name.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TERMINAL_SESSION_TITLE = "Code Server";
|
|
23
|
+
/**
|
|
24
|
+
* Icon for that terminal session. Mirrors the plugin's declared icon so the
|
|
25
|
+
* hub's terminals panel shows the same glyph as the rest of the plugin.
|
|
26
|
+
*/
|
|
27
|
+
export declare const TERMINAL_SESSION_ICON = "ph:code-duotone";
|
|
28
|
+
/**
|
|
29
|
+
* Compute code-server's session cookie name for an optional `--cookie-suffix`.
|
|
30
|
+
* Mirrors code-server's own `getCookieSessionName` so the client sets the
|
|
31
|
+
* exact cookie the server reads.
|
|
32
|
+
*/
|
|
33
|
+
export declare function getCookieSessionName(suffix?: string): string;
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CodeServerBackend, CodeServerConnect, CodeServerDetection, CodeServerLogin, CodeServerMode, CodeServerOptions, CodeServerServerInfo, CodeServerSharedState, CodeServerStartRequest, CodeServerStartResult, CodeServerStatus, CodeServerStatusResult, CodeServerTunnelOptions } from "./types.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { DEFAULT_CODE_SERVER_PORT, DEFAULT_PORT, PLUGIN_ID, STATE_KEY, getCookieSessionName } from "./constants.mjs";
|
|
3
3
|
import { DevframeDefinition } from "devframe";
|
|
4
4
|
/**
|
|
5
5
|
* Build a {@link DevframeDefinition} for the code-server panel. The same
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createCodeServerDevframe } from "../node-
|
|
1
|
+
import { t as createCodeServerDevframe } from "../node-BYxBdfLp.mjs";
|
|
2
2
|
import { DEFAULT_CODE_SERVER_PORT, DEFAULT_PORT, PLUGIN_ID, STATE_KEY, getCookieSessionName } from "./constants.mjs";
|
|
3
3
|
export { DEFAULT_CODE_SERVER_PORT, DEFAULT_PORT, PLUGIN_ID, STATE_KEY, createCodeServerDevframe, createCodeServerDevframe as default, getCookieSessionName };
|
package/dist/node/vite.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { PLUGIN_ID } from "./node/constants.mjs";
|
|
|
2
2
|
import { defineDevframe } from "devframe";
|
|
3
3
|
// package.json
|
|
4
4
|
var name = "@devframes/plugin-code-server";
|
|
5
|
-
var version = "1.3.
|
|
5
|
+
var version = "1.3.5";
|
|
6
6
|
var description = "Devframe plugin that runs VS Code in the browser as an embedded editor panel.";
|
|
7
7
|
var homepage = "https://github.com/devframes/devframe#readme";
|
|
8
8
|
// src/node/index.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/plugin-code-server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.5",
|
|
5
5
|
"description": "Devframe plugin that runs VS Code in the browser as an embedded editor panel.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"dist"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@devframes/plugin-code-server--assets": "1.3.
|
|
43
|
-
"devframe": "1.3.
|
|
42
|
+
"@devframes/plugin-code-server--assets": "1.3.5",
|
|
43
|
+
"devframe": "1.3.5",
|
|
44
44
|
"vite": "^8.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
@@ -52,27 +52,27 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@devframes/vite": "1.3.
|
|
55
|
+
"@devframes/vite": "1.3.5",
|
|
56
56
|
"cac": "^7.1.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@antfu/design": "^0.6.0",
|
|
60
|
-
"@devframes/plugin-code-server--assets": "1.3.
|
|
60
|
+
"@devframes/plugin-code-server--assets": "1.3.5",
|
|
61
61
|
"@iconify-json/ph": "^1.2.2",
|
|
62
|
-
"@storybook/addon-docs": "^10.6.
|
|
63
|
-
"@storybook/vue3-vite": "^10.6.
|
|
62
|
+
"@storybook/addon-docs": "^10.6.7",
|
|
63
|
+
"@storybook/vue3-vite": "^10.6.7",
|
|
64
64
|
"@types/node": "^26.6.6",
|
|
65
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
65
|
+
"@vitejs/plugin-vue": "^6.0.11",
|
|
66
66
|
"colorjs.io": "^0.7.1",
|
|
67
|
-
"devframe": "1.3.
|
|
67
|
+
"devframe": "1.3.5",
|
|
68
68
|
"h3": "^2.0.8",
|
|
69
69
|
"pathe": "^2.0.3",
|
|
70
|
-
"storybook": "^10.6.
|
|
71
|
-
"tsdown": "^0.23.
|
|
72
|
-
"unocss": "^66.
|
|
73
|
-
"vite": "^8.3.
|
|
74
|
-
"vitest": "^5.0
|
|
75
|
-
"vue": "^3.5.
|
|
70
|
+
"storybook": "^10.6.7",
|
|
71
|
+
"tsdown": "^0.23.7",
|
|
72
|
+
"unocss": "^66.13.0",
|
|
73
|
+
"vite": "^8.3.8",
|
|
74
|
+
"vitest": "^5.1.0",
|
|
75
|
+
"vue": "^3.5.45"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build": "tsdown && vite build --config app/vite.config.ts",
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/** Stable devframe id for the code-server plugin. */
|
|
2
|
-
declare const PLUGIN_ID = "devframes_plugin_code-server";
|
|
3
|
-
/**
|
|
4
|
-
* Shared-state key holding the serializable, secret-free server status and
|
|
5
|
-
* detection result. Authentication material is never published here; it is
|
|
6
|
-
* returned only from the `start` / `status` RPCs to the already-authorized
|
|
7
|
-
* client (see {@link import('./types').CodeServerConnect}).
|
|
8
|
-
*/
|
|
9
|
-
declare const STATE_KEY = "devframes:plugin:code-server:state";
|
|
10
|
-
/** Default dev-server port for the plugin's own launcher SPA (standalone CLI). */
|
|
11
|
-
declare const DEFAULT_PORT = 9013;
|
|
12
|
-
/** Preferred port for the spawned editor process (falls back if taken). */
|
|
13
|
-
declare const DEFAULT_CODE_SERVER_PORT = 8080;
|
|
14
|
-
/** How long to wait for the editor to answer its readiness probe. */
|
|
15
|
-
declare const DEFAULT_START_TIMEOUT = 30000;
|
|
16
|
-
/** code-server's session cookie base name (see `getCookieSessionName`). */
|
|
17
|
-
declare const SESSION_COOKIE_BASE = "code-server-session";
|
|
18
|
-
/**
|
|
19
|
-
* Title for the read-only terminal session surfaced when the plugin is mounted
|
|
20
|
-
* in a hub (`ctx.terminals`). Mirrors the plugin's own name.
|
|
21
|
-
*/
|
|
22
|
-
declare const TERMINAL_SESSION_TITLE = "Code Server";
|
|
23
|
-
/**
|
|
24
|
-
* Icon for that terminal session. Mirrors the plugin's declared icon so the
|
|
25
|
-
* hub's terminals panel shows the same glyph as the rest of the plugin.
|
|
26
|
-
*/
|
|
27
|
-
declare const TERMINAL_SESSION_ICON = "ph:code-duotone";
|
|
28
|
-
/**
|
|
29
|
-
* Compute code-server's session cookie name for an optional `--cookie-suffix`.
|
|
30
|
-
* Mirrors code-server's own `getCookieSessionName` so the client sets the
|
|
31
|
-
* exact cookie the server reads.
|
|
32
|
-
*/
|
|
33
|
-
declare function getCookieSessionName(suffix?: string): string;
|
|
34
|
-
export { SESSION_COOKIE_BASE as a, TERMINAL_SESSION_TITLE as c, PLUGIN_ID as i, getCookieSessionName as l, DEFAULT_PORT as n, STATE_KEY as o, DEFAULT_START_TIMEOUT as r, TERMINAL_SESSION_ICON as s, DEFAULT_CODE_SERVER_PORT as t };
|