@crewx/sdk 0.9.0-rc.205 → 0.9.0-rc.207
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/app-sync/continuation.d.ts +67 -0
- package/dist/app-sync/coordinator.d.ts +92 -0
- package/dist/app-sync/create-ledger.d.ts +27 -0
- package/dist/app-sync/index.d.ts +9 -0
- package/dist/app-sync/index.js +390 -0
- package/dist/app-sync/scope.d.ts +35 -0
- package/dist/app-sync/session-fence.d.ts +26 -0
- package/dist/app-sync/sqlite-store.d.ts +237 -0
- package/dist/app-sync/types.d.ts +855 -0
- package/dist/esm/app-sync/index.js +390 -0
- package/dist/esm/index.js +319 -306
- package/dist/esm/plugins/index.js +150 -137
- package/dist/esm/publish/index.js +2 -2
- package/dist/esm/repository/index.js +210 -197
- package/dist/esm/skills/index.js +2 -2
- package/dist/index.js +310 -297
- package/dist/migrations/0050_rapid_black_cat.sql +89 -0
- package/dist/migrations/0051_lying_sinister_six.sql +1 -0
- package/dist/migrations/0052_lying_gambit.sql +33 -0
- package/dist/migrations/0053_smart_shriek.sql +172 -0
- package/dist/migrations/0054_lying_surge.sql +63 -0
- package/dist/migrations/0055_curious_talkback.sql +92 -0
- package/dist/migrations/0056_stale_menace.sql +14 -0
- package/dist/migrations/meta/0050_snapshot.json +5717 -0
- package/dist/migrations/meta/0051_snapshot.json +5725 -0
- package/dist/migrations/meta/0052_snapshot.json +5930 -0
- package/dist/migrations/meta/0053_snapshot.json +6780 -0
- package/dist/migrations/meta/0054_snapshot.json +6784 -0
- package/dist/migrations/meta/0055_snapshot.json +6896 -0
- package/dist/migrations/meta/0056_snapshot.json +6971 -0
- package/dist/migrations/meta/_journal.json +49 -0
- package/dist/plugins/index.js +150 -137
- package/dist/provider/bridge.d.ts +3 -2
- package/dist/provider/cli/adapter.types.d.ts +8 -5
- package/dist/publish/index.js +2 -2
- package/dist/repository/index.js +206 -193
- package/dist/schema/app-sync.d.ts +2533 -0
- package/dist/schema/doc-create-dispatches.d.ts +101 -0
- package/dist/schema/doc-sync-links.d.ts +75 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/skills/index.js +2 -2
- package/package.json +8 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { CliProviderAdapter, ProviderRateLimitWindows } from './cli/adapter.types.js';
|
|
1
|
+
import type { CliProviderAdapter, CliProviderInvocation, ProviderRateLimitWindows } from './cli/adapter.types.js';
|
|
2
2
|
export declare function parseStreamJsonOutput(raw: string): string;
|
|
3
3
|
export declare function parseResultEventUsage(raw: string): ProviderUsage | null;
|
|
4
4
|
export { ProviderError, IdleTimeoutError, TotalTimeoutError, type ProviderErrorCode, type ProviderErrorKind, type ProviderErrorOptions, ResumeTimeoutError, } from './errors.js';
|
|
5
5
|
export declare function shouldFallbackToGhCopilot(providerId: string, err: unknown, platform?: NodeJS.Platform): boolean;
|
|
6
6
|
export declare const KILL_GRACE_MS = 2000;
|
|
7
7
|
export interface RunCliProcessOptions {
|
|
8
|
+
signal?: AbortSignal;
|
|
8
9
|
timeoutMs?: number;
|
|
9
10
|
idleMs?: number;
|
|
10
11
|
resumeSessionId?: string;
|
|
@@ -20,7 +21,7 @@ export interface RunCliProcessOptions {
|
|
|
20
21
|
onUsage?: (usage: ProviderUsage) => void;
|
|
21
22
|
onModel?: (model: string) => void;
|
|
22
23
|
}
|
|
23
|
-
export declare function runCliProcess(command: string, args: string[], providerStr: string, _providerId: string, options?: RunCliProcessOptions, stdinMessage?: string, adapter?: CliProviderAdapter): Promise<{
|
|
24
|
+
export declare function runCliProcess(command: string, args: string[], providerStr: string, _providerId: string, options?: RunCliProcessOptions, stdinMessage?: string, adapter?: CliProviderAdapter, disposeInvocation?: CliProviderInvocation['dispose']): Promise<{
|
|
24
25
|
stdout: string;
|
|
25
26
|
parsed: string;
|
|
26
27
|
}>;
|
|
@@ -6,6 +6,13 @@ export interface ParseEventContext {
|
|
|
6
6
|
readonly rowIndex: number;
|
|
7
7
|
readonly state: Map<string, unknown>;
|
|
8
8
|
}
|
|
9
|
+
export interface CliProviderInvocation {
|
|
10
|
+
args: string[];
|
|
11
|
+
stdinMessage?: string;
|
|
12
|
+
env?: Record<string, string>;
|
|
13
|
+
prepare?: () => void | Promise<void>;
|
|
14
|
+
dispose?: () => void | Promise<void>;
|
|
15
|
+
}
|
|
9
16
|
export interface CliProviderAdapter {
|
|
10
17
|
readonly command: string;
|
|
11
18
|
readonly maxInitialInputBytes?: number;
|
|
@@ -36,11 +43,7 @@ export interface CliProviderAdapter {
|
|
|
36
43
|
usageCompleteness?: boolean;
|
|
37
44
|
};
|
|
38
45
|
};
|
|
39
|
-
buildArgs(message: string, options: ProviderQueryOptions, isExecute: boolean):
|
|
40
|
-
args: string[];
|
|
41
|
-
stdinMessage?: string;
|
|
42
|
-
env?: Record<string, string>;
|
|
43
|
-
};
|
|
46
|
+
buildArgs(message: string, options: ProviderQueryOptions, isExecute: boolean): CliProviderInvocation;
|
|
44
47
|
extractText(stdout: string): string;
|
|
45
48
|
extractPartialText?(stdout: string): string | undefined;
|
|
46
49
|
extractFailure?(line: string): Error | null;
|