@caplets/core 0.24.1 → 0.25.1
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/attach/options.d.ts +1 -0
- package/dist/attach/server.d.ts +3 -0
- package/dist/caplet-source.js +14 -11
- package/dist/cli/commands.d.ts +10 -2
- package/dist/cli/doctor.d.ts +4 -1
- package/dist/cli.d.ts +3 -2
- package/dist/code-mode/platform-runtime.generated.d.ts +1 -1
- package/dist/code-mode.js +6 -6
- package/dist/{completion-BeVXdm9q.js → completion-De4t5MtT.js} +32 -10
- package/dist/config-runtime.js +2 -2
- package/dist/daemon/config.d.ts +8 -0
- package/dist/daemon/env.d.ts +2 -0
- package/dist/daemon/index.d.ts +18 -0
- package/dist/daemon/logs.d.ts +15 -0
- package/dist/daemon/manager.d.ts +2 -0
- package/dist/daemon/paths.d.ts +2 -0
- package/dist/daemon/platform-darwin.d.ts +3 -0
- package/dist/daemon/platform-linux.d.ts +3 -0
- package/dist/daemon/platform-windows.d.ts +3 -0
- package/dist/daemon/process.d.ts +11 -0
- package/dist/daemon/shell.d.ts +20 -0
- package/dist/daemon/types.d.ts +178 -0
- package/dist/daemon/validation.d.ts +14 -0
- package/dist/daemon/xml.d.ts +1 -0
- package/dist/generated-tool-input-schema.js +1 -1
- package/dist/index.js +5854 -3559
- package/dist/native/options.d.ts +5 -2
- package/dist/native/remote.d.ts +6 -1
- package/dist/native.js +1 -1
- package/dist/observed-output-shapes/pure.js +1 -1
- package/dist/{observed-output-shapes-D2k2-q8K.js → observed-output-shapes-DuP7mJQf.js} +1 -1
- package/dist/observed-output-shapes.js +1 -1
- package/dist/project-binding/attach.d.ts +1 -3
- package/dist/project-binding/session.d.ts +1 -0
- package/dist/remote/credential-store.d.ts +12 -0
- package/dist/remote/options.d.ts +2 -7
- package/dist/remote/pairing.d.ts +13 -0
- package/dist/remote/profile-store.d.ts +94 -0
- package/dist/remote/profiles.d.ts +47 -0
- package/dist/remote/selection.d.ts +4 -4
- package/dist/remote/server-credential-store.d.ts +84 -0
- package/dist/remote/server-credentials.d.ts +21 -0
- package/dist/remote-control/client.d.ts +4 -1
- package/dist/{schemas-C0PNPwjS.js → schemas-BoqMu4MG.js} +11 -8
- package/dist/serve/http.d.ts +5 -0
- package/dist/serve/index.d.ts +1 -3
- package/dist/serve/options.d.ts +7 -12
- package/dist/server/options.d.ts +2 -9
- package/dist/{service-Cvnuu9wr.js → service-Ut6dN9M8.js} +1119 -289
- package/dist/{validation-DgxCzt-A.js → validation-C4tYXw6G.js} +1 -1
- package/package.json +1 -1
- package/dist/serve/daemon/config.d.ts +0 -8
- package/dist/serve/daemon/index.d.ts +0 -16
- package/dist/serve/daemon/paths.d.ts +0 -3
- package/dist/serve/daemon/platform-darwin.d.ts +0 -2
- package/dist/serve/daemon/platform-linux.d.ts +0 -2
- package/dist/serve/daemon/platform-windows.d.ts +0 -2
- package/dist/serve/daemon/platform.d.ts +0 -9
- package/dist/serve/daemon/process.d.ts +0 -5
- package/dist/serve/daemon/types.d.ts +0 -86
|
@@ -113,7 +113,7 @@ function errorResult(error, fallback) {
|
|
|
113
113
|
const SERVER_ID_PATTERN = /^[a-zA-Z0-9_-]{1,64}$/;
|
|
114
114
|
const HEADER_NAME_PATTERN = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
115
115
|
const HTTP_BASE_URL_PATTERN = /^(?![a-zA-Z][a-zA-Z0-9+.-]*:\/\/[^/?#]*@)[^?#]*$/;
|
|
116
|
-
const FORBIDDEN_HEADERS = new Set([
|
|
116
|
+
const FORBIDDEN_HEADERS = /* @__PURE__ */ new Set([
|
|
117
117
|
"accept",
|
|
118
118
|
"authorization",
|
|
119
119
|
"connection",
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { DaemonCommandPlan, ServeDaemonConfig, ServeDaemonPaths, ServeDaemonState, ServeDaemonStatus } from "./types";
|
|
2
|
-
export declare function readDaemonConfig(paths: ServeDaemonPaths): ServeDaemonConfig | undefined;
|
|
3
|
-
export declare function writeDaemonConfig(paths: ServeDaemonPaths, serve: ServeDaemonConfig["serve"], command: DaemonCommandPlan, now?: Date): ServeDaemonConfig;
|
|
4
|
-
export declare function readDaemonState(paths: ServeDaemonPaths): ServeDaemonState | undefined;
|
|
5
|
-
export declare function writeDaemonState(paths: ServeDaemonPaths, state: Omit<ServeDaemonState, "instance" | "updatedAt"> & {
|
|
6
|
-
updatedAt?: string;
|
|
7
|
-
}, now?: Date): ServeDaemonState;
|
|
8
|
-
export declare function redactDaemonStatus(status: ServeDaemonStatus): ServeDaemonStatus;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type RawServeOptions } from "../options";
|
|
2
|
-
import type { DaemonPlatformDescriptor, ServeDaemonOperationOptions, ServeDaemonOperationResult, ServeDaemonStatus } from "./types";
|
|
3
|
-
export type ServeDaemonServiceResult = {
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
descriptor: DaemonPlatformDescriptor;
|
|
6
|
-
status: ServeDaemonStatus;
|
|
7
|
-
};
|
|
8
|
-
export declare function startDaemon(raw?: RawServeOptions, options?: ServeDaemonOperationOptions): Promise<ServeDaemonOperationResult>;
|
|
9
|
-
export declare function stopDaemon(options?: ServeDaemonOperationOptions): Promise<ServeDaemonOperationResult>;
|
|
10
|
-
export declare function restartDaemon(raw?: RawServeOptions, options?: ServeDaemonOperationOptions): Promise<ServeDaemonOperationResult>;
|
|
11
|
-
export declare function daemonStatus(options?: ServeDaemonOperationOptions): Promise<ServeDaemonStatus>;
|
|
12
|
-
export declare function enableDaemon(options?: ServeDaemonOperationOptions): Promise<ServeDaemonServiceResult>;
|
|
13
|
-
export declare function disableDaemon(options?: ServeDaemonOperationOptions): Promise<ServeDaemonServiceResult>;
|
|
14
|
-
export { buildDaemonPlatformDescriptor } from "./platform";
|
|
15
|
-
export { resolveServeDaemonPaths } from "./paths";
|
|
16
|
-
export type { DaemonPlatformDescriptor, DaemonProcessRunner, ServeDaemonConfig, ServeDaemonOperationOptions, ServeDaemonPaths, ServeDaemonState, ServeDaemonStatus, } from "./types";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ServeDaemonOperationOptions, ServeDaemonPaths } from "./types";
|
|
2
|
-
export declare function resolveServeDaemonPaths(options?: Pick<ServeDaemonOperationOptions, "env" | "home" | "platform">): ServeDaemonPaths;
|
|
3
|
-
export declare function daemonServiceDescriptorPath(paths: ServeDaemonPaths, platform: NodeJS.Platform): string;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { DaemonCommandPlan, ManualServiceDescriptor, ServeDaemonPaths, SystemdUserServiceDescriptor } from "./types";
|
|
2
|
-
export declare function buildLinuxServiceDescriptor(paths: ServeDaemonPaths, command: DaemonCommandPlan, serviceAvailable?: boolean): SystemdUserServiceDescriptor | ManualServiceDescriptor;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DaemonCommandPlan, DaemonPlatformDescriptor, ServeDaemonPaths } from "./types";
|
|
2
|
-
export type BuildDaemonPlatformDescriptorOptions = {
|
|
3
|
-
platform?: NodeJS.Platform;
|
|
4
|
-
serviceAvailable?: boolean;
|
|
5
|
-
paths: ServeDaemonPaths;
|
|
6
|
-
command: DaemonCommandPlan;
|
|
7
|
-
};
|
|
8
|
-
export declare function buildDaemonPlatformDescriptor(options: BuildDaemonPlatformDescriptorOptions): DaemonPlatformDescriptor;
|
|
9
|
-
export declare function escapeXml(value: string): string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { HttpServeOptions } from "../options";
|
|
2
|
-
import type { DaemonCommandPlan, DaemonProcessRunner } from "./types";
|
|
3
|
-
export declare function daemonServeCommand(options: HttpServeOptions): DaemonCommandPlan;
|
|
4
|
-
export declare function daemonServeArgs(options: HttpServeOptions): string[];
|
|
5
|
-
export declare function createNodeDaemonProcessRunner(): DaemonProcessRunner;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { HttpServeOptions, RawServeOptions } from "../options";
|
|
2
|
-
export type ServeDaemonInstance = "default";
|
|
3
|
-
export type ServeDaemonPaths = {
|
|
4
|
-
instance: ServeDaemonInstance;
|
|
5
|
-
stateDir: string;
|
|
6
|
-
logDir: string;
|
|
7
|
-
stateFile: string;
|
|
8
|
-
pidFile: string;
|
|
9
|
-
stdoutLog: string;
|
|
10
|
-
stderrLog: string;
|
|
11
|
-
configFile: string;
|
|
12
|
-
};
|
|
13
|
-
export type ServeDaemonConfig = {
|
|
14
|
-
instance: ServeDaemonInstance;
|
|
15
|
-
serve: HttpServeOptions;
|
|
16
|
-
command: DaemonCommandPlan;
|
|
17
|
-
paths: ServeDaemonPaths;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
};
|
|
20
|
-
export type ServeDaemonState = {
|
|
21
|
-
instance: ServeDaemonInstance;
|
|
22
|
-
running: boolean;
|
|
23
|
-
pid?: number;
|
|
24
|
-
startedAt?: string;
|
|
25
|
-
updatedAt: string;
|
|
26
|
-
enabled: boolean;
|
|
27
|
-
};
|
|
28
|
-
export type ServeDaemonStatus = ServeDaemonState & {
|
|
29
|
-
paths: ServeDaemonPaths;
|
|
30
|
-
config?: ServeDaemonConfig;
|
|
31
|
-
};
|
|
32
|
-
export type DaemonCommandPlan = {
|
|
33
|
-
executable: string;
|
|
34
|
-
args: string[];
|
|
35
|
-
};
|
|
36
|
-
export type DaemonProcessStart = {
|
|
37
|
-
args: string[];
|
|
38
|
-
stdoutLog: string;
|
|
39
|
-
stderrLog: string;
|
|
40
|
-
configFile: string;
|
|
41
|
-
};
|
|
42
|
-
export type DaemonProcessRunner = {
|
|
43
|
-
isRunning(pid: number): Promise<boolean>;
|
|
44
|
-
start(command: DaemonProcessStart): Promise<number>;
|
|
45
|
-
stop(pid: number): Promise<void>;
|
|
46
|
-
};
|
|
47
|
-
export type ServeDaemonOperationOptions = {
|
|
48
|
-
env?: NodeJS.ProcessEnv | Record<string, string | undefined>;
|
|
49
|
-
home?: string;
|
|
50
|
-
platform?: NodeJS.Platform;
|
|
51
|
-
process?: DaemonProcessRunner;
|
|
52
|
-
serviceAvailable?: boolean;
|
|
53
|
-
};
|
|
54
|
-
export type ServeDaemonStartOptions = ServeDaemonOperationOptions & {
|
|
55
|
-
raw?: RawServeOptions;
|
|
56
|
-
};
|
|
57
|
-
export type ServeDaemonOperationResult = {
|
|
58
|
-
status: ServeDaemonStatus;
|
|
59
|
-
};
|
|
60
|
-
export type LaunchdUserAgentDescriptor = {
|
|
61
|
-
kind: "launchd-user-agent";
|
|
62
|
-
label: string;
|
|
63
|
-
path: string;
|
|
64
|
-
plist: string;
|
|
65
|
-
};
|
|
66
|
-
export type SystemdUserServiceDescriptor = {
|
|
67
|
-
kind: "systemd-user";
|
|
68
|
-
unitName: string;
|
|
69
|
-
path: string;
|
|
70
|
-
unit: string;
|
|
71
|
-
};
|
|
72
|
-
export type ManualServiceDescriptor = {
|
|
73
|
-
kind: "manual";
|
|
74
|
-
reason: string;
|
|
75
|
-
command: DaemonCommandPlan;
|
|
76
|
-
};
|
|
77
|
-
export type WindowsScheduledTaskDescriptor = {
|
|
78
|
-
kind: "windows-scheduled-task";
|
|
79
|
-
taskName: string;
|
|
80
|
-
commands: {
|
|
81
|
-
register: string;
|
|
82
|
-
unregister: string;
|
|
83
|
-
query: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
export type DaemonPlatformDescriptor = LaunchdUserAgentDescriptor | SystemdUserServiceDescriptor | ManualServiceDescriptor | WindowsScheduledTaskDescriptor;
|