@trebired/code-server-kit 0.1.0 → 0.2.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 +12 -0
- package/README.md +251 -66
- package/dist/errors.d.ts +19 -4
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +37 -7
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/launch.d.ts +2 -3
- package/dist/launch.d.ts.map +1 -1
- package/dist/launch.js +15 -223
- package/dist/launch.js.map +1 -1
- package/dist/plan.d.ts +15 -0
- package/dist/plan.d.ts.map +1 -0
- package/dist/plan.js +355 -0
- package/dist/plan.js.map +1 -0
- package/dist/profile.d.ts +8 -0
- package/dist/profile.d.ts.map +1 -0
- package/dist/profile.js +107 -0
- package/dist/profile.js.map +1 -0
- package/dist/proxy.d.ts +6 -0
- package/dist/proxy.d.ts.map +1 -0
- package/dist/proxy.js +92 -0
- package/dist/proxy.js.map +1 -0
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +42 -4
- package/dist/readiness.js.map +1 -1
- package/dist/resolve.d.ts.map +1 -1
- package/dist/resolve.js +3 -1
- package/dist/resolve.js.map +1 -1
- package/dist/spec.d.ts +7 -0
- package/dist/spec.d.ts.map +1 -0
- package/dist/spec.js +64 -0
- package/dist/spec.js.map +1 -0
- package/dist/types.d.ts +101 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
- nothing yet
|
|
6
|
+
|
|
7
|
+
## 0.2.0
|
|
8
|
+
|
|
9
|
+
- add `createCodeServerLaunchPlan()` as the main higher-level launch planning API
|
|
10
|
+
- add generic launch spec, command formatting, and startup failure normalization helpers
|
|
11
|
+
- add readiness probe support and broader structured error coverage
|
|
12
|
+
- add generic allowlisted profile sync helpers for `code-server` user data and extensions
|
|
13
|
+
- add reverse-proxy helpers for forwarded headers, trusted origins, and HTML response detection
|
|
14
|
+
|
|
3
15
|
## 0.1.0
|
|
4
16
|
|
|
5
17
|
- Initial release
|
package/README.md
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
# @trebired/code-server-kit
|
|
2
2
|
|
|
3
|
-
Framework-agnostic `code-server`
|
|
3
|
+
Framework-agnostic `code-server` integration helpers for Node.js applications.
|
|
4
4
|
|
|
5
|
-
`@trebired/code-server-kit` gives
|
|
5
|
+
`@trebired/code-server-kit` gives host applications a typed, generic layer for resolving an installed `code-server`, building a complete launch plan, waiting for readiness, syncing selected profile data, and preparing the result for direct processes, systemd units, containers, or custom sandboxes.
|
|
6
6
|
|
|
7
7
|
The package stays in one lane:
|
|
8
8
|
|
|
9
9
|
- resolve the installed `code-server` package root and launch entrypoint
|
|
10
|
-
-
|
|
11
|
-
- expose
|
|
12
|
-
- optionally spawn the process and
|
|
13
|
-
-
|
|
10
|
+
- describe the final launch command, args, cwd, env, and path-access suggestions
|
|
11
|
+
- expose structured errors that host apps can log and branch on
|
|
12
|
+
- optionally spawn the process and wait for readiness
|
|
13
|
+
- sync allowlisted profile data without copying a whole runtime tree
|
|
14
|
+
- help reverse-proxy integrations with trusted-origin and forwarded-header helpers
|
|
14
15
|
|
|
15
16
|
It does not try to be a `code-server` fork, a sandbox manager, a container runtime, or a product layer with app-specific routes and filesystem rules.
|
|
16
17
|
|
|
@@ -26,18 +27,12 @@ npm install @trebired/code-server-kit code-server
|
|
|
26
27
|
|
|
27
28
|
```ts
|
|
28
29
|
import {
|
|
29
|
-
|
|
30
|
+
createCodeServerLaunchPlan,
|
|
30
31
|
launchCodeServerProcess,
|
|
31
|
-
resolveCodeServerInstallation,
|
|
32
32
|
waitForCodeServerReady,
|
|
33
33
|
} from "@trebired/code-server-kit";
|
|
34
34
|
|
|
35
|
-
const
|
|
36
|
-
resolveFrom: process.cwd(),
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
const launch = await createCodeServerLaunch({
|
|
40
|
-
installation,
|
|
35
|
+
const plan = await createCodeServerLaunchPlan({
|
|
41
36
|
dataRoot: "/srv/code-server/session-42",
|
|
42
37
|
host: "127.0.0.1",
|
|
43
38
|
port: 8080,
|
|
@@ -47,8 +42,8 @@ const launch = await createCodeServerLaunch({
|
|
|
47
42
|
workspacePath: "/srv/workspaces/demo",
|
|
48
43
|
});
|
|
49
44
|
|
|
50
|
-
const
|
|
51
|
-
plan
|
|
45
|
+
const handle = await launchCodeServerProcess({
|
|
46
|
+
plan,
|
|
52
47
|
stdout(text) {
|
|
53
48
|
process.stdout.write(text);
|
|
54
49
|
},
|
|
@@ -58,39 +53,47 @@ const processHandle = await launchCodeServerProcess({
|
|
|
58
53
|
});
|
|
59
54
|
|
|
60
55
|
await waitForCodeServerReady({
|
|
61
|
-
host:
|
|
62
|
-
port:
|
|
63
|
-
process:
|
|
56
|
+
host: plan.host,
|
|
57
|
+
port: plan.port,
|
|
58
|
+
process: handle,
|
|
64
59
|
timeoutMs: 30_000,
|
|
65
60
|
});
|
|
66
61
|
```
|
|
67
62
|
|
|
68
|
-
##
|
|
63
|
+
## Why The Launch Plan Exists
|
|
69
64
|
|
|
70
|
-
|
|
65
|
+
Most host apps do not want to know where `code-server` put its real entry file, when to call `node <entry.js>` versus a direct executable, which package directories should be mounted read-only, or which runtime paths must stay writable.
|
|
71
66
|
|
|
72
|
-
|
|
67
|
+
`createCodeServerLaunchPlan()` moves that generic integration work into one reusable contract so host apps can focus on policy instead:
|
|
73
68
|
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
- `supportRoot`
|
|
79
|
-
- `version`
|
|
69
|
+
- what workspace should be opened
|
|
70
|
+
- which paths should actually be writable in a sandbox
|
|
71
|
+
- how processes are supervised
|
|
72
|
+
- which users, tokens, or routes exist in the host product
|
|
80
73
|
|
|
81
|
-
|
|
74
|
+
## Main Planning API
|
|
82
75
|
|
|
83
|
-
|
|
76
|
+
### `createCodeServerLaunchPlan(options)`
|
|
77
|
+
|
|
78
|
+
This is the main higher-level API. It returns a structured `CodeServerLaunchPlan` with:
|
|
84
79
|
|
|
85
80
|
- `command`
|
|
86
81
|
- `args`
|
|
87
|
-
- `
|
|
88
|
-
- `
|
|
82
|
+
- `cwd`
|
|
83
|
+
- `env`
|
|
84
|
+
- `entryKind`
|
|
85
|
+
- `launchMode`
|
|
86
|
+
- `installation`
|
|
89
87
|
- `userDataDir`
|
|
90
88
|
- `extensionsDir`
|
|
89
|
+
- `supportRoot`
|
|
90
|
+
- `supportBindings`
|
|
91
|
+
- `recommendedReadablePaths`
|
|
92
|
+
- `recommendedWritablePaths`
|
|
91
93
|
- `bindAddr`
|
|
92
94
|
- `host`
|
|
93
95
|
- `port`
|
|
96
|
+
- `trustedOrigins`
|
|
94
97
|
- `workspacePath`
|
|
95
98
|
|
|
96
99
|
If you pass `dataRoot`, the package derives:
|
|
@@ -100,60 +103,242 @@ If you pass `dataRoot`, the package derives:
|
|
|
100
103
|
|
|
101
104
|
If you omit `port` or pass `0`, the package allocates a free TCP port first.
|
|
102
105
|
|
|
106
|
+
Example:
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
import { createCodeServerLaunchPlan } from "@trebired/code-server-kit";
|
|
110
|
+
|
|
111
|
+
const plan = await createCodeServerLaunchPlan({
|
|
112
|
+
dataRoot: "/srv/code-server/session-42",
|
|
113
|
+
host: "127.0.0.1",
|
|
114
|
+
port: 0,
|
|
115
|
+
trustedOrigins: [
|
|
116
|
+
"https://app.example.com",
|
|
117
|
+
"https://admin.example.com",
|
|
118
|
+
],
|
|
119
|
+
workspacePath: "/srv/workspaces/demo",
|
|
120
|
+
});
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### `resolveCodeServerInstallation(options?)`
|
|
124
|
+
|
|
125
|
+
Use this lower-level helper when you only need installation metadata:
|
|
126
|
+
|
|
127
|
+
- `packageRoot`
|
|
128
|
+
- `packageJsonPath`
|
|
129
|
+
- `entryPoint`
|
|
130
|
+
- `entryRelativePath`
|
|
131
|
+
- `entryKind`
|
|
132
|
+
- `supportRoot`
|
|
133
|
+
- `version`
|
|
134
|
+
|
|
135
|
+
### `createCodeServerLaunch(options)`
|
|
136
|
+
|
|
137
|
+
This remains available as a compatibility-friendly alias for `createCodeServerLaunchPlan()`.
|
|
138
|
+
|
|
139
|
+
## Launch Specs And Sandbox Helpers
|
|
140
|
+
|
|
141
|
+
### `createCodeServerLaunchSpec(plan)`
|
|
142
|
+
|
|
143
|
+
Converts a launch plan into a smaller execution-oriented shape:
|
|
144
|
+
|
|
145
|
+
- `command`
|
|
146
|
+
- `args`
|
|
147
|
+
- `cwd`
|
|
148
|
+
- `env`
|
|
149
|
+
- `readablePaths`
|
|
150
|
+
- `writablePaths`
|
|
151
|
+
- `bindings`
|
|
152
|
+
|
|
153
|
+
This is useful when a caller wants to feed the launch plan into:
|
|
154
|
+
|
|
155
|
+
- a direct child-process launch
|
|
156
|
+
- a systemd unit generator
|
|
157
|
+
- a container wrapper
|
|
158
|
+
- a custom sandbox layer
|
|
159
|
+
|
|
160
|
+
### `formatCodeServerCommand(planOrSpec)`
|
|
161
|
+
|
|
162
|
+
Formats the command and arg vector as one safely escaped string for logs, debug output, shell transcripts, or generated unit files.
|
|
163
|
+
|
|
164
|
+
### `normalizeCodeServerStartupFailure(error)`
|
|
165
|
+
|
|
166
|
+
Converts package-specific and generic thrown values into one consistent startup-failure shape with:
|
|
167
|
+
|
|
168
|
+
- `name`
|
|
169
|
+
- `message`
|
|
170
|
+
- `code`
|
|
171
|
+
- `details`
|
|
172
|
+
- `isCodeServerKitError`
|
|
173
|
+
|
|
174
|
+
## Launching Strategies
|
|
175
|
+
|
|
176
|
+
### Direct Child Process
|
|
177
|
+
|
|
178
|
+
Use the built-in launcher when you want a plain host-owned child process:
|
|
179
|
+
|
|
180
|
+
```ts
|
|
181
|
+
import {
|
|
182
|
+
createCodeServerLaunchPlan,
|
|
183
|
+
launchCodeServerProcess,
|
|
184
|
+
} from "@trebired/code-server-kit";
|
|
185
|
+
|
|
186
|
+
const plan = await createCodeServerLaunchPlan({
|
|
187
|
+
dataRoot: "/srv/code-server/session-42",
|
|
188
|
+
workspacePath: "/srv/workspaces/demo",
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
const handle = await launchCodeServerProcess({ plan });
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Systemd
|
|
195
|
+
|
|
196
|
+
Use `createCodeServerLaunchPlan()` or `createCodeServerLaunchSpec()` to generate:
|
|
197
|
+
|
|
198
|
+
- `ExecStart` from `command` plus `args`
|
|
199
|
+
- `WorkingDirectory` from `cwd`
|
|
200
|
+
- `Environment` lines from `env`
|
|
201
|
+
- read and write path policy from `bindings`, `readablePaths`, and `writablePaths`
|
|
202
|
+
|
|
203
|
+
### Containers
|
|
204
|
+
|
|
205
|
+
Use the launch plan to decide:
|
|
206
|
+
|
|
207
|
+
- which package and support paths should be mounted read-only
|
|
208
|
+
- which runtime paths should be mounted writable
|
|
209
|
+
- the final command and arg vector inside the container
|
|
210
|
+
|
|
211
|
+
The package does not impose a container layout. It only returns generic path suggestions.
|
|
212
|
+
|
|
213
|
+
### Custom Sandboxes
|
|
214
|
+
|
|
215
|
+
Use `supportBindings`, `recommendedReadablePaths`, and `recommendedWritablePaths` as generic inputs to your own sandbox policy. Host apps can tighten or expand those lists without re-deriving them from package internals.
|
|
216
|
+
|
|
217
|
+
## Readiness Helpers
|
|
218
|
+
|
|
103
219
|
### `waitForCodeServerReady(options)`
|
|
104
220
|
|
|
105
|
-
|
|
221
|
+
Waits for the target TCP port to accept connections and can also:
|
|
106
222
|
|
|
107
|
-
-
|
|
108
|
-
-
|
|
223
|
+
- fail on startup timeout
|
|
224
|
+
- fail early if a child process exits first
|
|
225
|
+
- run a caller-provided `failureProbe`
|
|
109
226
|
|
|
110
|
-
|
|
227
|
+
The readiness helper throws structured errors instead of returning vague booleans.
|
|
111
228
|
|
|
112
|
-
|
|
229
|
+
Example:
|
|
113
230
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
231
|
+
```ts
|
|
232
|
+
await waitForCodeServerReady({
|
|
233
|
+
host: plan.host,
|
|
234
|
+
port: plan.port,
|
|
235
|
+
process: handle,
|
|
236
|
+
failureProbe({ elapsedMs }) {
|
|
237
|
+
if (elapsedMs > 10_000) {
|
|
238
|
+
return {
|
|
239
|
+
message: "startup looked stalled",
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
return null;
|
|
243
|
+
},
|
|
244
|
+
});
|
|
245
|
+
```
|
|
120
246
|
|
|
121
|
-
##
|
|
247
|
+
## Profile Sync Helpers
|
|
122
248
|
|
|
123
|
-
|
|
249
|
+
The package now includes generic profile sync helpers built around an allowlist model.
|
|
124
250
|
|
|
125
|
-
|
|
126
|
-
- `direct`, which runs the resolved entrypoint directly when it is executable
|
|
251
|
+
Supported profile items:
|
|
127
252
|
|
|
128
|
-
`
|
|
253
|
+
- `settings.json`
|
|
254
|
+
- `extensions.json`
|
|
255
|
+
- `keybindings.json`
|
|
256
|
+
- `snippets`
|
|
257
|
+
- `extensions`
|
|
129
258
|
|
|
130
|
-
|
|
259
|
+
### `createCodeServerProfileSyncPlan(options)`
|
|
131
260
|
|
|
132
|
-
|
|
261
|
+
Builds a sync plan between two profile roots without copying anything yet.
|
|
133
262
|
|
|
134
|
-
|
|
135
|
-
- `--bind-addr`
|
|
136
|
-
- `--disable-telemetry`
|
|
137
|
-
- `--disable-update-check`
|
|
138
|
-
- `--disable-workspace-trust`
|
|
139
|
-
- `--disable-getting-started-override`
|
|
140
|
-
- `--user-data-dir`
|
|
141
|
-
- `--extensions-dir`
|
|
263
|
+
### `syncCodeServerProfile(options)`
|
|
142
264
|
|
|
143
|
-
|
|
265
|
+
Copies only the allowlisted profile items. By default it skips missing or unreadable sources cleanly instead of assuming full access to every runtime-owned path.
|
|
144
266
|
|
|
145
|
-
|
|
267
|
+
Example:
|
|
146
268
|
|
|
147
|
-
|
|
269
|
+
```ts
|
|
270
|
+
import { syncCodeServerProfile } from "@trebired/code-server-kit";
|
|
148
271
|
|
|
149
|
-
|
|
272
|
+
const result = await syncCodeServerProfile({
|
|
273
|
+
sourceDir: "/srv/persisted-profile",
|
|
274
|
+
targetDir: "/srv/runtime-profile",
|
|
275
|
+
items: ["settings.json", "snippets", "extensions"],
|
|
276
|
+
});
|
|
150
277
|
|
|
151
|
-
|
|
278
|
+
console.log(result.copied.length, result.skipped.length);
|
|
279
|
+
```
|
|
152
280
|
|
|
153
|
-
|
|
281
|
+
Default relative paths are also exported through `DEFAULT_CODE_SERVER_PROFILE_PATHS`, and callers can override them when needed through `pathMap`.
|
|
154
282
|
|
|
155
|
-
|
|
156
|
-
|
|
283
|
+
## Reverse Proxy Helpers
|
|
284
|
+
|
|
285
|
+
### `normalizeTrustedOrigins(origins)`
|
|
286
|
+
|
|
287
|
+
Normalizes absolute origins for launch planning and rejects invalid values clearly.
|
|
288
|
+
|
|
289
|
+
### `normalizeTrustedOrigin(origin)`
|
|
290
|
+
|
|
291
|
+
Normalizes one origin value.
|
|
292
|
+
|
|
293
|
+
### `buildForwardedHeaders(options)`
|
|
294
|
+
|
|
295
|
+
Builds a small forwarded-header record for reverse-proxy embedding.
|
|
296
|
+
|
|
297
|
+
### `isCodeServerHtmlResponse(options)`
|
|
298
|
+
|
|
299
|
+
Returns `true` when a response looks like HTML that a host app may want to transform before returning it to a browser.
|
|
300
|
+
|
|
301
|
+
This helper is intentionally narrow. It does not rewrite routes or inject product-specific markup.
|
|
302
|
+
|
|
303
|
+
## Structured Errors
|
|
304
|
+
|
|
305
|
+
The package exposes structured error classes so host apps can log clearly and branch reliably:
|
|
306
|
+
|
|
307
|
+
- `CodeServerInstallationResolutionError`
|
|
308
|
+
- `CodeServerEntrypointResolutionError`
|
|
309
|
+
- `CodeServerLaunchPlanningError`
|
|
310
|
+
- `CodeServerInvalidConfigurationError`
|
|
157
311
|
- `CodeServerPortAllocationError`
|
|
158
312
|
- `CodeServerProcessExitedBeforeReadyError`
|
|
313
|
+
- `CodeServerStartupProbeError`
|
|
159
314
|
- `CodeServerStartupTimeoutError`
|
|
315
|
+
|
|
316
|
+
The earlier compatibility exports are still available:
|
|
317
|
+
|
|
318
|
+
- `CodeServerPackageResolutionError`
|
|
319
|
+
- `CodeServerBinaryNotFoundError`
|
|
320
|
+
|
|
321
|
+
## Public Surface
|
|
322
|
+
|
|
323
|
+
The current API is centered around these exports:
|
|
324
|
+
|
|
325
|
+
- `resolveCodeServerInstallation()`
|
|
326
|
+
- `createCodeServerLaunchPlan()`
|
|
327
|
+
- `createCodeServerLaunch()`
|
|
328
|
+
- `createCodeServerLaunchSpec()`
|
|
329
|
+
- `launchCodeServerProcess()`
|
|
330
|
+
- `waitForCodeServerReady()`
|
|
331
|
+
- `createCodeServerProfileSyncPlan()`
|
|
332
|
+
- `syncCodeServerProfile()`
|
|
333
|
+
- `buildForwardedHeaders()`
|
|
334
|
+
- `normalizeTrustedOrigins()`
|
|
335
|
+
- `normalizeTrustedOrigin()`
|
|
336
|
+
- `isCodeServerHtmlResponse()`
|
|
337
|
+
- `formatCodeServerCommand()`
|
|
338
|
+
- `normalizeCodeServerStartupFailure()`
|
|
339
|
+
|
|
340
|
+
## Dependency vs Peer Dependency for `code-server`
|
|
341
|
+
|
|
342
|
+
For an application, prefer a regular `dependency` on `code-server` when you want one installed runtime and want `@trebired/code-server-kit` to resolve the same package reliably every time.
|
|
343
|
+
|
|
344
|
+
For a wrapper library on top of this package, prefer a `peerDependency` on `code-server` when the host application must choose the exact `code-server` version and install location itself. In that setup, document that `code-server` must still be resolvable from the host application's dependency tree, and pass `resolveFrom` when you need to anchor resolution to the host side explicitly.
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
type CodeServerKitErrorCode = "
|
|
1
|
+
type CodeServerKitErrorCode = "entrypoint_resolution_failed" | "installation_resolution_failed" | "invalid_configuration" | "launch_planning_failed" | "port_allocation_failed" | "process_exited_before_ready" | "startup_probe_failed" | "startup_timeout";
|
|
2
2
|
declare class CodeServerKitError extends Error {
|
|
3
3
|
code: CodeServerKitErrorCode | string;
|
|
4
4
|
details: Record<string, unknown>;
|
|
5
5
|
constructor(code: CodeServerKitErrorCode | string, message: string, details?: Record<string, unknown>);
|
|
6
6
|
}
|
|
7
|
-
declare class
|
|
7
|
+
declare class CodeServerInstallationResolutionError extends CodeServerKitError {
|
|
8
8
|
constructor(message: string, details?: Record<string, unknown>);
|
|
9
9
|
}
|
|
10
|
-
declare class
|
|
10
|
+
declare class CodeServerEntrypointResolutionError extends CodeServerKitError {
|
|
11
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
12
|
+
}
|
|
13
|
+
declare class CodeServerLaunchPlanningError extends CodeServerKitError {
|
|
14
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
15
|
+
}
|
|
16
|
+
declare class CodeServerInvalidConfigurationError extends CodeServerKitError {
|
|
11
17
|
constructor(message: string, details?: Record<string, unknown>);
|
|
12
18
|
}
|
|
13
19
|
declare class CodeServerPortAllocationError extends CodeServerKitError {
|
|
@@ -19,7 +25,16 @@ declare class CodeServerProcessExitedBeforeReadyError extends CodeServerKitError
|
|
|
19
25
|
declare class CodeServerStartupTimeoutError extends CodeServerKitError {
|
|
20
26
|
constructor(message: string, details?: Record<string, unknown>);
|
|
21
27
|
}
|
|
28
|
+
declare class CodeServerStartupProbeError extends CodeServerKitError {
|
|
29
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
30
|
+
}
|
|
31
|
+
declare class CodeServerPackageResolutionError extends CodeServerInstallationResolutionError {
|
|
32
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
33
|
+
}
|
|
34
|
+
declare class CodeServerBinaryNotFoundError extends CodeServerEntrypointResolutionError {
|
|
35
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
36
|
+
}
|
|
22
37
|
declare function isCodeServerKitError(value: unknown): value is CodeServerKitError;
|
|
23
|
-
export { CodeServerBinaryNotFoundError, CodeServerKitError, CodeServerPackageResolutionError, CodeServerPortAllocationError, CodeServerProcessExitedBeforeReadyError, CodeServerStartupTimeoutError, isCodeServerKitError, };
|
|
38
|
+
export { CodeServerBinaryNotFoundError, CodeServerEntrypointResolutionError, CodeServerInstallationResolutionError, CodeServerInvalidConfigurationError, CodeServerKitError, CodeServerLaunchPlanningError, CodeServerPackageResolutionError, CodeServerPortAllocationError, CodeServerProcessExitedBeforeReadyError, CodeServerStartupProbeError, CodeServerStartupTimeoutError, isCodeServerKitError, };
|
|
24
39
|
export type { CodeServerKitErrorCode };
|
|
25
40
|
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,KAAK,sBAAsB,GACvB,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,KAAK,sBAAsB,GACvB,8BAA8B,GAC9B,gCAAgC,GAChC,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,GACxB,6BAA6B,GAC7B,sBAAsB,GACtB,iBAAiB,CAAC;AAEtB,cAAM,kBAAmB,SAAQ,KAAK;IACpC,IAAI,EAAE,sBAAsB,GAAG,MAAM,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAErB,IAAI,EAAE,sBAAsB,GAAG,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;CAM1G;AAED,cAAM,qCAAsC,SAAQ,kBAAkB;gBACx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AkB,CAEzE;AAED,OAAO,EACL,6BAA6B,EAC7B,mCAAmC,EACnC,qCAAqC,EACrC,mCAAmC,EACnC,kBAAkB,EAClB,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,uCAAuC,EACvC,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,GACrB,CAAC;AACF,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
|
package/dist/errors.js
CHANGED
|
@@ -6,16 +6,28 @@ class CodeServerKitError extends Error {
|
|
|
6
6
|
this.details = details;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
class
|
|
9
|
+
class CodeServerInstallationResolutionError extends CodeServerKitError {
|
|
10
10
|
constructor(message, details = {}) {
|
|
11
|
-
super("
|
|
12
|
-
this.name = "
|
|
11
|
+
super("installation_resolution_failed", message, details);
|
|
12
|
+
this.name = "CodeServerInstallationResolutionError";
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
class
|
|
15
|
+
class CodeServerEntrypointResolutionError extends CodeServerKitError {
|
|
16
16
|
constructor(message, details = {}) {
|
|
17
|
-
super("
|
|
18
|
-
this.name = "
|
|
17
|
+
super("entrypoint_resolution_failed", message, details);
|
|
18
|
+
this.name = "CodeServerEntrypointResolutionError";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
class CodeServerLaunchPlanningError extends CodeServerKitError {
|
|
22
|
+
constructor(message, details = {}) {
|
|
23
|
+
super("launch_planning_failed", message, details);
|
|
24
|
+
this.name = "CodeServerLaunchPlanningError";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
class CodeServerInvalidConfigurationError extends CodeServerKitError {
|
|
28
|
+
constructor(message, details = {}) {
|
|
29
|
+
super("invalid_configuration", message, details);
|
|
30
|
+
this.name = "CodeServerInvalidConfigurationError";
|
|
19
31
|
}
|
|
20
32
|
}
|
|
21
33
|
class CodeServerPortAllocationError extends CodeServerKitError {
|
|
@@ -36,8 +48,26 @@ class CodeServerStartupTimeoutError extends CodeServerKitError {
|
|
|
36
48
|
this.name = "CodeServerStartupTimeoutError";
|
|
37
49
|
}
|
|
38
50
|
}
|
|
51
|
+
class CodeServerStartupProbeError extends CodeServerKitError {
|
|
52
|
+
constructor(message, details = {}) {
|
|
53
|
+
super("startup_probe_failed", message, details);
|
|
54
|
+
this.name = "CodeServerStartupProbeError";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
class CodeServerPackageResolutionError extends CodeServerInstallationResolutionError {
|
|
58
|
+
constructor(message, details = {}) {
|
|
59
|
+
super(message, details);
|
|
60
|
+
this.name = "CodeServerPackageResolutionError";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
class CodeServerBinaryNotFoundError extends CodeServerEntrypointResolutionError {
|
|
64
|
+
constructor(message, details = {}) {
|
|
65
|
+
super(message, details);
|
|
66
|
+
this.name = "CodeServerBinaryNotFoundError";
|
|
67
|
+
}
|
|
68
|
+
}
|
|
39
69
|
function isCodeServerKitError(value) {
|
|
40
70
|
return value instanceof CodeServerKitError;
|
|
41
71
|
}
|
|
42
|
-
export { CodeServerBinaryNotFoundError, CodeServerKitError, CodeServerPackageResolutionError, CodeServerPortAllocationError, CodeServerProcessExitedBeforeReadyError, CodeServerStartupTimeoutError, isCodeServerKitError, };
|
|
72
|
+
export { CodeServerBinaryNotFoundError, CodeServerEntrypointResolutionError, CodeServerInstallationResolutionError, CodeServerInvalidConfigurationError, CodeServerKitError, CodeServerLaunchPlanningError, CodeServerPackageResolutionError, CodeServerPortAllocationError, CodeServerProcessExitedBeforeReadyError, CodeServerStartupProbeError, CodeServerStartupTimeoutError, isCodeServerKitError, };
|
|
43
73
|
//# sourceMappingURL=errors.js.map
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],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C3B,6BAA6B,EAC7B,oBAAoB,GACrB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
export { CodeServerBinaryNotFoundError, CodeServerKitError, CodeServerPackageResolutionError, CodeServerPortAllocationError, CodeServerProcessExitedBeforeReadyError, CodeServerStartupTimeoutError, isCodeServerKitError, } from "./errors.js";
|
|
2
|
-
export {
|
|
1
|
+
export { CodeServerBinaryNotFoundError, CodeServerEntrypointResolutionError, CodeServerInstallationResolutionError, CodeServerInvalidConfigurationError, CodeServerKitError, CodeServerLaunchPlanningError, CodeServerPackageResolutionError, CodeServerPortAllocationError, CodeServerProcessExitedBeforeReadyError, CodeServerStartupProbeError, CodeServerStartupTimeoutError, isCodeServerKitError, } from "./errors.js";
|
|
2
|
+
export { launchCodeServerProcess } from "./launch.js";
|
|
3
|
+
export { allocatePort, buildCodeServerArgs, buildCodeServerLaunchSpec, createCodeServerLaunch, createCodeServerLaunchPlan, normalizeTrustedOrigins, } from "./plan.js";
|
|
4
|
+
export { DEFAULT_CODE_SERVER_PROFILE_ITEMS, DEFAULT_CODE_SERVER_PROFILE_PATHS, createCodeServerProfileSyncPlan, resolveCodeServerProfilePathMap, syncCodeServerProfile, } from "./profile.js";
|
|
5
|
+
export { buildForwardedHeaders, isCodeServerHtmlResponse, normalizeTrustedOrigin, } from "./proxy.js";
|
|
3
6
|
export { waitForCodeServerReady } from "./readiness.js";
|
|
4
7
|
export { resolveCodeServerInstallation } from "./resolve.js";
|
|
5
|
-
export
|
|
8
|
+
export { buildPathBindings, createCodeServerLaunchSpec, formatCodeServerCommand, normalizeCodeServerStartupFailure, } from "./spec.js";
|
|
9
|
+
export type { BuildForwardedHeadersOptions, CodeServerEntryKind, CodeServerHtmlResponseOptions, CodeServerInstallation, CodeServerLaunchMode, CodeServerLaunchOptions, CodeServerLaunchPlan, CodeServerLaunchSpec, CodeServerPathAccessMode, CodeServerPathBinding, CodeServerProcessExit, CodeServerProcessHandle, CodeServerProfileEntryKind, CodeServerProfileItem, CodeServerProfilePathMap, CodeServerProfileSkipReason, CodeServerProfileSyncEntry, CodeServerProfileSyncPlan, CodeServerProfileSyncResult, CodeServerReadyFailure, CodeServerReadyFailureProbe, CodeServerReadyOptions, CodeServerReadyResult, CreateCodeServerLaunchPlanOptions, CreateCodeServerProfileSyncPlanOptions, LaunchCodeServerProcessOptions, NormalizedCodeServerStartupFailure, ResolveCodeServerInstallationOptions, SyncCodeServerProfileOptions, } from "./types.js";
|
|
6
10
|
export type { CodeServerKitErrorCode } from "./errors.js";
|
|
7
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,EAClB,gCAAgC,EAChC,6BAA6B,EAC7B,uCAAuC,EACvC,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,mCAAmC,EACnC,qCAAqC,EACrC,mCAAmC,EACnC,kBAAkB,EAClB,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,uCAAuC,EACvC,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,+BAA+B,EAC/B,+BAA+B,EAC/B,qBAAqB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,WAAW,CAAC;AAEnB,YAAY,EACV,4BAA4B,EAC5B,mBAAmB,EACnB,6BAA6B,EAC7B,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EACjC,sCAAsC,EACtC,8BAA8B,EAC9B,kCAAkC,EAClC,oCAAoC,EACpC,4BAA4B,GAC7B,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
export { CodeServerBinaryNotFoundError, CodeServerKitError, CodeServerPackageResolutionError, CodeServerPortAllocationError, CodeServerProcessExitedBeforeReadyError, CodeServerStartupTimeoutError, isCodeServerKitError, } from "./errors.js";
|
|
2
|
-
export {
|
|
1
|
+
export { CodeServerBinaryNotFoundError, CodeServerEntrypointResolutionError, CodeServerInstallationResolutionError, CodeServerInvalidConfigurationError, CodeServerKitError, CodeServerLaunchPlanningError, CodeServerPackageResolutionError, CodeServerPortAllocationError, CodeServerProcessExitedBeforeReadyError, CodeServerStartupProbeError, CodeServerStartupTimeoutError, isCodeServerKitError, } from "./errors.js";
|
|
2
|
+
export { launchCodeServerProcess } from "./launch.js";
|
|
3
|
+
export { allocatePort, buildCodeServerArgs, buildCodeServerLaunchSpec, createCodeServerLaunch, createCodeServerLaunchPlan, normalizeTrustedOrigins, } from "./plan.js";
|
|
4
|
+
export { DEFAULT_CODE_SERVER_PROFILE_ITEMS, DEFAULT_CODE_SERVER_PROFILE_PATHS, createCodeServerProfileSyncPlan, resolveCodeServerProfilePathMap, syncCodeServerProfile, } from "./profile.js";
|
|
5
|
+
export { buildForwardedHeaders, isCodeServerHtmlResponse, normalizeTrustedOrigin, } from "./proxy.js";
|
|
3
6
|
export { waitForCodeServerReady } from "./readiness.js";
|
|
4
7
|
export { resolveCodeServerInstallation } from "./resolve.js";
|
|
8
|
+
export { buildPathBindings, createCodeServerLaunchSpec, formatCodeServerCommand, normalizeCodeServerStartupFailure, } from "./spec.js";
|
|
5
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,EAClB,gCAAgC,EAChC,6BAA6B,EAC7B,uCAAuC,EACvC,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,mCAAmC,EACnC,qCAAqC,EACrC,mCAAmC,EACnC,kBAAkB,EAClB,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,uCAAuC,EACvC,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,+BAA+B,EAC/B,+BAA+B,EAC/B,qBAAqB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,WAAW,CAAC"}
|
package/dist/launch.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare function createCodeServerLaunch(options: CodeServerLaunchOptions): Promise<CodeServerLaunchPlan>;
|
|
1
|
+
import type { CodeServerProcessHandle, LaunchCodeServerProcessOptions } from "./types.js";
|
|
3
2
|
declare function launchCodeServerProcess(options: LaunchCodeServerProcessOptions): Promise<CodeServerProcessHandle>;
|
|
4
|
-
export {
|
|
3
|
+
export { launchCodeServerProcess };
|
|
5
4
|
//# sourceMappingURL=launch.d.ts.map
|
package/dist/launch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../src/launch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../src/launch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAGV,uBAAuB,EACvB,8BAA8B,EAC/B,MAAM,YAAY,CAAC;AAEpB,iBAAe,uBAAuB,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAwEhH;AAiBD,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|