@crewx/sdk 0.9.0-rc.110 → 0.9.0-rc.112
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/account/index.js +2 -2
- package/dist/esm/account/index.js +2 -2
- package/dist/esm/index.js +151 -150
- package/dist/esm/plugins/index.js +44 -44
- package/dist/esm/publish/index.js +2 -2
- package/dist/esm/repository/index.js +72 -72
- package/dist/index.d.ts +5 -3
- package/dist/index.js +151 -150
- package/dist/lifecycle/process-lease.d.ts +80 -0
- package/dist/plugins/index.js +48 -48
- package/dist/provider/cli/protocol-envelope.d.ts +1 -0
- package/dist/publish/index.js +2 -2
- package/dist/repository/index.js +66 -66
- package/dist/ui-instance/json.d.ts +1 -1
- package/dist/utils/crewx-executable.d.ts +23 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsonObject, JsonValue } from './types.js';
|
|
2
|
-
export declare function projectSafeJsonObject(value: unknown): JsonObject;
|
|
2
|
+
export declare function projectSafeJsonObject(value: unknown, envelopeDepth?: number): JsonObject;
|
|
3
3
|
export declare function serializeJson(value: JsonValue): string;
|
|
4
4
|
export declare function canonicalJson(value: JsonValue): string;
|
|
5
5
|
export declare function utf8ByteLength(value: string): number;
|
|
@@ -7,7 +7,17 @@ export interface CrewxExecutableSuccess {
|
|
|
7
7
|
ok: true;
|
|
8
8
|
argv: string[];
|
|
9
9
|
stage: CrewxExecutableStage;
|
|
10
|
+
requiredEnv?: CrewxRequiredEnv;
|
|
10
11
|
}
|
|
12
|
+
export type CrewxRequiredEnv = Readonly<Partial<Record<'ELECTRON_RUN_AS_NODE', '1'>>>;
|
|
13
|
+
export interface CrewxElectronRuntimeContext {
|
|
14
|
+
platform: NodeJS.Platform;
|
|
15
|
+
stage: CrewxExecutableStage;
|
|
16
|
+
isSelf: boolean;
|
|
17
|
+
execPath: string;
|
|
18
|
+
isFile: (candidate: string) => boolean;
|
|
19
|
+
}
|
|
20
|
+
export type CrewxElectronRuntimePredicate = (executable: string, context: CrewxElectronRuntimeContext) => boolean;
|
|
11
21
|
export interface CrewxExecutableFailure {
|
|
12
22
|
ok: false;
|
|
13
23
|
reason: string;
|
|
@@ -30,6 +40,7 @@ export interface CrewxExecutableResolverOptions {
|
|
|
30
40
|
requireResolve?: (request: string) => string;
|
|
31
41
|
findOnPath?: (command: string, options: CrewxExecutablePathLookupOptions) => CrewxExecutablePathLookupResult;
|
|
32
42
|
isFile?: (candidate: string) => boolean;
|
|
43
|
+
isElectronRuntime?: CrewxElectronRuntimePredicate;
|
|
33
44
|
}
|
|
34
45
|
export interface CrewxCliShim {
|
|
35
46
|
directory: string;
|
|
@@ -42,12 +53,23 @@ export interface CrewxCliShimOptions {
|
|
|
42
53
|
}
|
|
43
54
|
export interface CrewxStableEntrypointOptions extends CrewxCliShimOptions {
|
|
44
55
|
cwd?: string;
|
|
56
|
+
allowEnvStage?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface CrewxChildInvocation {
|
|
59
|
+
command: string;
|
|
60
|
+
args: string[];
|
|
61
|
+
env: Record<string, string>;
|
|
62
|
+
}
|
|
63
|
+
export interface CrewxChildInvocationOptions extends CrewxCliShimOptions {
|
|
64
|
+
baseEnv?: NodeJS.ProcessEnv;
|
|
45
65
|
}
|
|
46
66
|
export declare function isVolatilePath(candidate: string): boolean;
|
|
47
67
|
export declare function isRotatingInstallPath(candidate: string): boolean;
|
|
48
68
|
export declare function resolveCrewxExecutable(options?: CrewxExecutableResolverOptions): CrewxExecutableResolution;
|
|
49
69
|
export declare const resolveCrewxCliArgv: typeof resolveCrewxExecutable;
|
|
50
|
-
export declare function
|
|
70
|
+
export declare function crewxCliShimFingerprint(resolution: CrewxExecutableSuccess): string;
|
|
71
|
+
export declare function materializeCrewxCliShim(resolution: CrewxExecutableSuccess, options?: CrewxCliShimOptions): CrewxCliShim;
|
|
72
|
+
export declare function createCrewxChildInvocation(resolution: CrewxExecutableSuccess, options?: CrewxChildInvocationOptions): CrewxChildInvocation;
|
|
51
73
|
export declare function getCrewxStableEntrypoint(options?: CrewxCliShimOptions): string;
|
|
52
74
|
export declare function materializeCrewxStableEntrypoint(resolution: CrewxExecutableResolution, options?: CrewxStableEntrypointOptions): string | undefined;
|
|
53
75
|
export declare function formatCrewxExecutableArgv(argv: readonly string[], platform?: NodeJS.Platform): string;
|