@wjarka/cezarion 0.17.0-dev.5593 → 0.17.0-dev.5604
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/delegation/routes.d.ts +66 -66
- package/dist/delegation/transport.d.ts +75 -75
- package/dist/home/home.js +2 -0
- package/dist/home/home.js.map +1 -1
- package/dist/home/install-marker.d.ts +4 -1
- package/dist/home/install-marker.js +7 -1
- package/dist/home/install-marker.js.map +1 -1
- package/dist/home/protected-roots.d.ts +25 -0
- package/dist/home/protected-roots.js +90 -0
- package/dist/home/protected-roots.js.map +1 -0
- package/dist/paths.js +5 -45
- package/dist/paths.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/run-checkout.d.ts +0 -1
- package/dist/server/run-checkout.js +1 -3
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/self-update-routes.d.ts +19 -19
- package/dist/server/server.d.ts +1589 -1589
- package/dist/server/server.js +3 -3
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/package.json +3 -3
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { lstatSync, realpathSync } from 'node:fs';
|
|
2
|
+
import { userInfo } from 'node:os';
|
|
3
|
+
import { basename, dirname, isAbsolute, join, posix, resolve, win32 } from 'node:path';
|
|
4
|
+
import { nativePathPlatform, platformKindRoots } from './kind-roots.js';
|
|
5
|
+
/**
|
|
6
|
+
* The legacy home and every platform default kind root of one account. Pure.
|
|
7
|
+
* `scripts/test-install-marker.mjs` keeps a copy; a test holds the two equal.
|
|
8
|
+
*/
|
|
9
|
+
export function protectedRootsFor(accountHome, env, platform) {
|
|
10
|
+
const { join } = platform === 'win32' ? win32 : posix;
|
|
11
|
+
return [join(accountHome, '.cezar'), ...Object.values(platformKindRoots(accountHome, { TMPDIR: env.TMPDIR }, platform))];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The account's real cezar roots. HOME and a caller's env can name a sandbox, so the account home
|
|
15
|
+
* comes from the OS. Throws when the OS gives no absolute home: relative roots would protect nothing.
|
|
16
|
+
*/
|
|
17
|
+
export function accountProtectedRoots() {
|
|
18
|
+
const accountHome = userInfo().homedir;
|
|
19
|
+
if (!accountHome || !isAbsolute(accountHome))
|
|
20
|
+
throw new Error('[cez] the OS gives no absolute account home');
|
|
21
|
+
return protectedRootsFor(accountHome, { TMPDIR: process.env.TMPDIR }, nativePathPlatform);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* True when `destination` is `root` or below it. Windows and default macOS volumes ignore case, so
|
|
25
|
+
* there an absent `.CEZAR` still names `.cezar`. `scripts/test-install-marker.mjs` keeps a copy.
|
|
26
|
+
*/
|
|
27
|
+
export function insideRoot(destination, root, platform) {
|
|
28
|
+
const ignoreCase = platform === 'win32' || platform === 'darwin';
|
|
29
|
+
const path = ignoreCase ? destination.toLowerCase() : destination;
|
|
30
|
+
const home = ignoreCase ? root.toLowerCase() : root;
|
|
31
|
+
const separator = platform === 'win32' ? '\\' : '/';
|
|
32
|
+
return path === home || path.startsWith(home.endsWith(separator) ? home : home + separator);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Throws `refusal()` when `path` is, or is below, an account root. Existing ancestors and
|
|
36
|
+
* symlink aliases are canonicalized. An unverifiable account home, an unreadable lookup or a
|
|
37
|
+
* dangling link fails closed.
|
|
38
|
+
*/
|
|
39
|
+
export function assertOutsideAccountHome(path, refusal) {
|
|
40
|
+
// Resolve existing ancestors too: the destination itself may not exist yet.
|
|
41
|
+
function canonicalTarget(target, rejectDangling = true) {
|
|
42
|
+
let ancestor = resolve(target);
|
|
43
|
+
const remaining = [];
|
|
44
|
+
for (;;) {
|
|
45
|
+
try {
|
|
46
|
+
return join(realpathSync(ancestor), ...remaining);
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
if (error.code !== 'ENOENT')
|
|
50
|
+
throw refusal();
|
|
51
|
+
}
|
|
52
|
+
// A dangling link has no canonical target; fail closed instead of treating it as a missing directory.
|
|
53
|
+
try {
|
|
54
|
+
if (lstatSync(ancestor).isSymbolicLink()) {
|
|
55
|
+
if (!rejectDangling)
|
|
56
|
+
return resolve(target);
|
|
57
|
+
throw refusal();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
if (error.code !== 'ENOENT')
|
|
62
|
+
throw refusal();
|
|
63
|
+
}
|
|
64
|
+
const parent = dirname(ancestor);
|
|
65
|
+
if (parent === ancestor)
|
|
66
|
+
throw refusal();
|
|
67
|
+
remaining.unshift(basename(ancestor));
|
|
68
|
+
ancestor = parent;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
let roots;
|
|
72
|
+
try {
|
|
73
|
+
roots = accountProtectedRoots();
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
throw refusal();
|
|
77
|
+
}
|
|
78
|
+
const destination = canonicalTarget(path);
|
|
79
|
+
for (const root of roots) {
|
|
80
|
+
if (insideRoot(destination, canonicalTarget(root, false), nativePathPlatform))
|
|
81
|
+
throw refusal();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/** A test install marker belongs to a sandbox. Refuse an account root in every process, test runner or not. */
|
|
85
|
+
export function assertTestHomeOutsideAccountHome(root) {
|
|
86
|
+
assertOutsideAccountHome(root, () => new Error(`[cez] refusing to write a test install marker to ${root}: it is the account's real cezar home, ` +
|
|
87
|
+
'or the OS gives no account home to check it against. ' +
|
|
88
|
+
'Use a sandbox directory for a test home.'));
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=protected-roots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protected-roots.js","sourceRoot":"","sources":["../../src/home/protected-roots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MA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GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;YACjC,IAAI,MAAM,KAAK,QAAQ;gBAAE,MAAM,OAAO,EAAE,CAAC;YACzC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;YACtC,QAAQ,GAAG,MAAM,CAAC;QACpB,CAAC;IACH,CAAC;IACD,IAAI,KAAe,CAAC;IACpB,IAAI,CAAC;QAAC,KAAK,GAAG,qBAAqB,EAAE,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC;QAAC,MAAM,OAAO,EAAE,CAAC;IAAC,CAAC;IACnE,MAAM,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAC1C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,UAAU,CAAC,WAAW,EAAE,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,kBAAkB,CAAC;YAAE,MAAM,OAAO,EAAE,CAAC;IACjG,CAAC;AACH,CAAC;AAED,+GAA+G;AAC/G,MAAM,UAAU,gCAAgC,CAAC,IAAY;IAC3D,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,CAC5C,oDAAoD,IAAI,yCAAyC;QAC/F,uDAAuD;QACvD,0CAA0C,CAC7C,CAAC,CAAC;AACL,CAAC"}
|
package/dist/paths.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { homedir
|
|
2
|
-
import {
|
|
3
|
-
import { basename, dirname, join, resolve, sep } from 'node:path';
|
|
1
|
+
import { homedir } from 'node:os';
|
|
2
|
+
import { dirname, join } from 'node:path';
|
|
4
3
|
import { isOmpProfileName } from './core/agent-profiles.js';
|
|
5
|
-
import {
|
|
4
|
+
import { assertOutsideAccountHome } from './home/protected-roots.js';
|
|
6
5
|
/**
|
|
7
6
|
* Test writers must never reach the account's real cezar home. HOME can be a
|
|
8
7
|
* sandbox, so read the account home from the OS. Runner detection belongs to
|
|
@@ -13,47 +12,8 @@ export function assertCezarHomeWriteIsSandboxed(path, _env = process.env) {
|
|
|
13
12
|
|| Object.keys(process.env).some((key) => key.startsWith('STRYKER_'));
|
|
14
13
|
if (!testing)
|
|
15
14
|
return;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const refusal = () => new Error(`[cez] refusing to write ${path} from a test run — CEZ_HOME is not pinned to a sandbox. ` +
|
|
19
|
-
'Pin it to a test sandbox so the suite never touches the real cezar home.');
|
|
20
|
-
// Resolve existing ancestors too: the destination itself may not exist yet.
|
|
21
|
-
function canonicalTarget(target, rejectDangling = true) {
|
|
22
|
-
let ancestor = resolve(target);
|
|
23
|
-
const remaining = [];
|
|
24
|
-
for (;;) {
|
|
25
|
-
try {
|
|
26
|
-
return join(realpathSync(ancestor), ...remaining);
|
|
27
|
-
}
|
|
28
|
-
catch (error) {
|
|
29
|
-
if (error.code !== 'ENOENT')
|
|
30
|
-
throw refusal();
|
|
31
|
-
}
|
|
32
|
-
// A dangling link has no canonical target; fail closed instead of treating it as a missing directory.
|
|
33
|
-
try {
|
|
34
|
-
if (lstatSync(ancestor).isSymbolicLink()) {
|
|
35
|
-
if (!rejectDangling)
|
|
36
|
-
return resolve(target);
|
|
37
|
-
throw refusal();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
if (error.code !== 'ENOENT')
|
|
42
|
-
throw refusal();
|
|
43
|
-
}
|
|
44
|
-
const parent = dirname(ancestor);
|
|
45
|
-
if (parent === ancestor)
|
|
46
|
-
throw refusal();
|
|
47
|
-
remaining.unshift(basename(ancestor));
|
|
48
|
-
ancestor = parent;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
const destination = canonicalTarget(path);
|
|
52
|
-
for (const root of protectedRoots) {
|
|
53
|
-
const protectedHome = canonicalTarget(root, false);
|
|
54
|
-
if (destination === protectedHome || destination.startsWith(protectedHome + sep))
|
|
55
|
-
throw refusal();
|
|
56
|
-
}
|
|
15
|
+
assertOutsideAccountHome(path, () => new Error(`[cez] refusing to write ${path} from a test run — CEZ_HOME is not pinned to a sandbox. ` +
|
|
16
|
+
'Pin it to a test sandbox so the suite never touches the real cezar home.'));
|
|
57
17
|
}
|
|
58
18
|
/**
|
|
59
19
|
* The default server-install instance id. An install with no `--domain` (the
|
package/dist/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAGrE;;;;GAIG;AACH,MAAM,UAAU,+BAA+B,CAAC,IAAY,EAAE,IAAI,GAAsB,OAAO,CAAC,GAAG;IACjG,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc;WAC5F,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IACxE,IAAI,CAAC,OAAO;QAAE,OAAO;IACrB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,CAC5C,2BAA2B,IAAI,0DAA0D;QACvF,0EAA0E,CAC7E,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,SAAS,CAAC;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AAE,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC,CAAC;AACrG,CAAC"}
|
|
@@ -59,6 +59,29 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
|
|
|
59
59
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
60
60
|
"/workspace/activity": {
|
|
61
61
|
$get: {
|
|
62
|
+
output: {
|
|
63
|
+
error: string;
|
|
64
|
+
code?: "invalid_input" | undefined;
|
|
65
|
+
};
|
|
66
|
+
outputFormat: "json";
|
|
67
|
+
status: 400;
|
|
68
|
+
input: {
|
|
69
|
+
query: {
|
|
70
|
+
project?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
} | {
|
|
74
|
+
output: {
|
|
75
|
+
error: string;
|
|
76
|
+
};
|
|
77
|
+
outputFormat: "json";
|
|
78
|
+
status: 404 | 409 | 503;
|
|
79
|
+
input: {
|
|
80
|
+
query: {
|
|
81
|
+
project?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
} | {
|
|
62
85
|
output: {
|
|
63
86
|
generatedAt: string;
|
|
64
87
|
projects: {
|
|
@@ -289,29 +312,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
289
312
|
project?: string | undefined;
|
|
290
313
|
};
|
|
291
314
|
};
|
|
292
|
-
} | {
|
|
293
|
-
output: {
|
|
294
|
-
error: string;
|
|
295
|
-
code?: "invalid_input" | undefined;
|
|
296
|
-
};
|
|
297
|
-
outputFormat: "json";
|
|
298
|
-
status: 400;
|
|
299
|
-
input: {
|
|
300
|
-
query: {
|
|
301
|
-
project?: string | undefined;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
} | {
|
|
305
|
-
output: {
|
|
306
|
-
error: string;
|
|
307
|
-
};
|
|
308
|
-
outputFormat: "json";
|
|
309
|
-
status: 404 | 409 | 503;
|
|
310
|
-
input: {
|
|
311
|
-
query: {
|
|
312
|
-
project?: string | undefined;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
317
|
}, "/", "/workspace/activity">;
|
|
@@ -16,6 +16,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
16
16
|
output: {
|
|
17
17
|
generation: string;
|
|
18
18
|
results: ({
|
|
19
|
+
projectId: string;
|
|
20
|
+
runId: string;
|
|
21
|
+
type: "error" | "reset";
|
|
22
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
23
|
+
error: string;
|
|
24
|
+
} | {
|
|
19
25
|
projectId: string;
|
|
20
26
|
runId: string;
|
|
21
27
|
type: "batch";
|
|
@@ -29,12 +35,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
29
35
|
cursor: string;
|
|
30
36
|
afterSeq: number;
|
|
31
37
|
hasMore: boolean;
|
|
32
|
-
} | {
|
|
33
|
-
projectId: string;
|
|
34
|
-
runId: string;
|
|
35
|
-
type: "error" | "reset";
|
|
36
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
37
|
-
error: string;
|
|
38
38
|
})[];
|
|
39
39
|
};
|
|
40
40
|
outputFormat: "json";
|
|
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
40
40
|
error: string;
|
|
41
41
|
};
|
|
42
42
|
outputFormat: "json";
|
|
43
|
-
status:
|
|
43
|
+
status: 400;
|
|
44
44
|
input: {
|
|
45
45
|
query: {
|
|
46
46
|
q?: string | undefined;
|
|
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
53
53
|
error: string;
|
|
54
54
|
};
|
|
55
55
|
outputFormat: "json";
|
|
56
|
-
status:
|
|
56
|
+
status: 409;
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
59
59
|
q?: string | undefined;
|
|
@@ -97,12 +97,10 @@ function removalRefusal(store, run, id, deletion) {
|
|
|
97
97
|
}
|
|
98
98
|
function removeCheckout({ store, manager }, id, options) {
|
|
99
99
|
const active = { status: 409, body: { error: 'run is active — cancel it first' } };
|
|
100
|
-
if (options.checksActive && options.activeBeforeLookup && manager.isActive(id))
|
|
101
|
-
return active;
|
|
102
100
|
const run = store.getRun(id);
|
|
103
101
|
if (!run)
|
|
104
102
|
return { status: 404, body: { error: 'not found' } };
|
|
105
|
-
if (options.checksActive &&
|
|
103
|
+
if (options.checksActive && manager.isActive(id))
|
|
106
104
|
return active;
|
|
107
105
|
const refused = removalRefusal(store, run, id, options.deletion);
|
|
108
106
|
if (refused)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-checkout.js","sourceRoot":"","sources":["../../src/server/run-checkout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAIhE,+EAA+E;AAC/E,wFAAwF;AACxF,2EAA2E;AAC3E,yEAAyE;AACzE,qEAAqE;AACrE,MAAM,UAAU,GAAG,CAAC,GAAc,EAAiB,EAAE,CACnD,GAAG,CAAC,YAAY,IAAI,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7E,MAAM,kBAAkB,GAAG,CAAC,GAAc,EAAE,QAAgB,EAAiB,EAAE,CA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AG;QAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC;IAC/D,OAAO;QACL,GAAG;QACH,SAAS,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI;QACxC,IAAI,QAAQ,KAAK,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC1C,eAAe;YACb,OAAO,kBAAkB,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC;QACxF,CAAC;QACD,IAAI,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACpD,CAAC;AACJ,CAAC"}
|
|
@@ -184,17 +184,6 @@ stores: () => readonly RunStore[]): import("hono/hono-base").HonoBase<import("ho
|
|
|
184
184
|
} & {
|
|
185
185
|
"/workspace/self-update/channel": {
|
|
186
186
|
$put: {
|
|
187
|
-
output: {
|
|
188
|
-
error: string;
|
|
189
|
-
};
|
|
190
|
-
outputFormat: "json";
|
|
191
|
-
status: 500;
|
|
192
|
-
input: {
|
|
193
|
-
json: {
|
|
194
|
-
channel: "development" | "nightly" | "stable";
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
} | {
|
|
198
187
|
output: {
|
|
199
188
|
version: string;
|
|
200
189
|
installKind: "checkout" | "global-npm" | "managed" | "npx" | "unknown";
|
|
@@ -241,22 +230,22 @@ stores: () => readonly RunStore[]): import("hono/hono-base").HonoBase<import("ho
|
|
|
241
230
|
channel: "development" | "nightly" | "stable";
|
|
242
231
|
};
|
|
243
232
|
};
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
} & {
|
|
247
|
-
"/workspace/self-update/apply": {
|
|
248
|
-
$post: {
|
|
233
|
+
} | {
|
|
249
234
|
output: {
|
|
250
235
|
error: string;
|
|
251
236
|
};
|
|
252
237
|
outputFormat: "json";
|
|
253
|
-
status:
|
|
238
|
+
status: 500;
|
|
254
239
|
input: {
|
|
255
240
|
json: {
|
|
256
|
-
|
|
241
|
+
channel: "development" | "nightly" | "stable";
|
|
257
242
|
};
|
|
258
243
|
};
|
|
259
|
-
}
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
} & {
|
|
247
|
+
"/workspace/self-update/apply": {
|
|
248
|
+
$post: {
|
|
260
249
|
output: {
|
|
261
250
|
version: string;
|
|
262
251
|
installKind: "checkout" | "global-npm" | "managed" | "npx" | "unknown";
|
|
@@ -303,6 +292,17 @@ stores: () => readonly RunStore[]): import("hono/hono-base").HonoBase<import("ho
|
|
|
303
292
|
version: string;
|
|
304
293
|
};
|
|
305
294
|
};
|
|
295
|
+
} | {
|
|
296
|
+
output: {
|
|
297
|
+
error: string;
|
|
298
|
+
};
|
|
299
|
+
outputFormat: "json";
|
|
300
|
+
status: 409;
|
|
301
|
+
input: {
|
|
302
|
+
json: {
|
|
303
|
+
version: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
}, "/", "/workspace/self-update/apply">;
|