@crewx/sdk 0.9.0-rc.190 → 0.9.0-rc.192
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/desktop/index.js +3 -3
- package/dist/esm/desktop/index.js +3 -3
- package/dist/esm/index.js +310 -302
- package/dist/esm/plugins/index.js +77 -77
- package/dist/esm/process/index.js +1 -1
- package/dist/esm/repository/index.js +116 -116
- package/dist/events/types.d.ts +15 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +352 -344
- package/dist/lifecycle/task-stop.d.ts +7 -3
- package/dist/plugins/index.js +80 -80
- package/dist/process/index.js +1 -1
- package/dist/provider/acp/adapter.d.ts +37 -2
- package/dist/provider/acp/adapters/antigravity-account.d.ts +4 -0
- package/dist/provider/acp/completion-observer.d.ts +24 -0
- package/dist/provider/acp/connection.d.ts +63 -3
- package/dist/provider/acp/index.d.ts +3 -3
- package/dist/provider/acp/register.d.ts +1 -0
- package/dist/provider/acp/runtime.d.ts +1 -0
- package/dist/provider/acp/types.d.ts +31 -4
- package/dist/provider/bridge.browser.d.ts +1 -0
- package/dist/provider/bridge.d.ts +9 -1
- package/dist/provider-account/antigravity-acp/auth.d.ts +29 -0
- package/dist/provider-account/antigravity-acp/browser.d.ts +4 -0
- package/dist/provider-account/antigravity-acp/install.d.ts +42 -0
- package/dist/provider-account/antigravity-acp/lease.d.ts +23 -0
- package/dist/provider-account/antigravity-acp/lifecycle.d.ts +76 -0
- package/dist/provider-account/antigravity-acp/manifest.d.ts +76 -0
- package/dist/provider-account/antigravity-acp/profile.d.ts +4 -0
- package/dist/provider-account/capabilities.d.ts +6 -0
- package/dist/provider-account/index.d.ts +9 -1
- package/dist/provider-account/registry.d.ts +1 -1
- package/dist/provider-account/types.d.ts +9 -2
- package/dist/repository/index.d.ts +1 -1
- package/dist/repository/index.js +117 -117
- package/dist/repository/task.repository.d.ts +10 -0
- package/dist/types/index.d.ts +8 -0
- package/package.json +2 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { FinalizeTaskForHostShutdownOptions, FinalizeTaskForHostShutdownOutcome, FinalizeTaskStopOptions, TaskRepository, TaskRow, TaskStopOrigin, TaskStopRequestResult } from '../repository/task.repository.js';
|
|
1
|
+
import type { FinalizeTaskForHostShutdownOptions, FinalizeTaskForHostShutdownOutcome, FinalizeTaskStopOptions, TaskRepository, TaskRow, TaskStopRequestReceipt, TaskStopOrigin, TaskStopRequestResult } from '../repository/task.repository.js';
|
|
2
2
|
import { checkProcessOwnershipAsync as defaultCheckProcessOwnershipAsync, readProcessIdentityAsync as defaultReadProcessIdentityAsync, terminateProcessTree as defaultTerminateProcessTree, type ProcessControlOptions, type ProcessOwnership } from '../process/process-control.js';
|
|
3
3
|
export declare const TASK_STOP_DEFAULT_GRACE_MS = 5000;
|
|
4
4
|
export declare const TASK_STOP_DEFAULT_POLL_MS = 250;
|
|
5
5
|
export declare function resolveTaskStopMethod(requestedAt: string | null | undefined, completedAt?: string | number, graceMs?: number): 'cooperative' | 'forced';
|
|
6
|
-
export declare const TASK_STOP_OWNED_PROCESS_MARKERS: readonly ["crewx", "claude", "codex", "opencode", "grok", "node"];
|
|
6
|
+
export declare const TASK_STOP_OWNED_PROCESS_MARKERS: readonly ["agy", "crewx", "claude", "codex", "opencode", "grok", "node"];
|
|
7
7
|
export interface RecordedTaskProcess {
|
|
8
8
|
pid: number;
|
|
9
9
|
startedAt: string | null | undefined;
|
|
@@ -36,6 +36,7 @@ export interface StopTaskResult {
|
|
|
36
36
|
finalStatus: string | null;
|
|
37
37
|
pid?: number;
|
|
38
38
|
error?: string;
|
|
39
|
+
stopRequestReceipt?: TaskStopRequestReceipt;
|
|
39
40
|
}
|
|
40
41
|
export interface StopTaskProcessControl {
|
|
41
42
|
checkProcessOwnershipAsync?: typeof defaultCheckProcessOwnershipAsync;
|
|
@@ -94,10 +95,13 @@ interface InstructionStopRepository {
|
|
|
94
95
|
sourceRunEpoch: number;
|
|
95
96
|
settleRunEpoch: number;
|
|
96
97
|
workspaceId?: string | null;
|
|
97
|
-
}) =>
|
|
98
|
+
}) => InstructionTaskStopRequestResult;
|
|
98
99
|
getTask: (taskId: string) => TaskRow | undefined;
|
|
99
100
|
finalizeTaskStop: (options: FinalizeTaskStopOptions) => boolean;
|
|
100
101
|
}
|
|
102
|
+
interface InstructionTaskStopRequestResult extends TaskStopRequestResult {
|
|
103
|
+
stopRequestReceipt?: TaskStopRequestReceipt;
|
|
104
|
+
}
|
|
101
105
|
type HostShutdownRepository = Pick<TaskRepository, 'getTask'> & {
|
|
102
106
|
finalizeTaskForHostShutdown: (options: FinalizeTaskForHostShutdownOptions) => FinalizeTaskForHostShutdownOutcome;
|
|
103
107
|
};
|