@crewx/sdk 0.9.0-rc.111 → 0.9.0-rc.113
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/esm/index.js +161 -159
- package/dist/esm/plugins/index.js +63 -62
- package/dist/esm/publish/index.js +2 -2
- package/dist/esm/repository/index.js +81 -80
- package/dist/index.d.ts +8 -7
- package/dist/index.js +162 -160
- package/dist/lifecycle/process-owner.d.ts +20 -0
- package/dist/mcp-app/index.d.ts +2 -0
- package/dist/mcp-app/sqlite-browse.d.ts +89 -0
- package/dist/mcp-app/workspace-snapshot.d.ts +2 -0
- package/dist/plugins/index.js +62 -61
- package/dist/provider/cli/adapter.types.d.ts +5 -1
- package/dist/provider/cli/adapters/codex-item.d.ts +1 -0
- package/dist/provider/cli/adapters/index.d.ts +4 -0
- package/dist/provider/cli/index.d.ts +3 -2
- package/dist/provider/cli/protocol-envelope.d.ts +1 -0
- package/dist/publish/index.js +2 -2
- package/dist/repository/index.js +81 -80
- package/dist/ui-plugin/types.d.ts +2 -1
- package/dist/utils/crewx-executable.d.ts +23 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonValue, UiDefinitionInput } from '../ui-instance/types.js';
|
|
1
|
+
import type { JsonValue, UiActionConfirmation, UiDefinitionInput } from '../ui-instance/types.js';
|
|
2
2
|
export type UiPluginPrimitive = 'card-shell' | 'meta-banner' | 'heading' | 'labeled-text' | 'step-flow' | 'text-list';
|
|
3
3
|
export type UiPluginSchemaType = 'text' | 'text-list' | 'step-list';
|
|
4
4
|
export interface UiPluginTextSchema {
|
|
@@ -108,6 +108,7 @@ export interface UiPluginAction {
|
|
|
108
108
|
readonly inputSchema: UiPluginInputSchema;
|
|
109
109
|
readonly resultProjection: UiPluginProjectionPolicy;
|
|
110
110
|
readonly backend: UiPluginBackend;
|
|
111
|
+
readonly confirmation?: UiActionConfirmation;
|
|
111
112
|
}
|
|
112
113
|
export interface UiPluginResourceRef {
|
|
113
114
|
readonly path: 'ui/index.html' | 'ui/state.json';
|
|
@@ -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;
|