@crewx/sdk 0.9.0-rc.97 → 0.9.0-rc.99
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 +147 -147
- package/dist/esm/plugins/index.js +125 -125
- package/dist/esm/process/index.js +1 -1
- package/dist/esm/repository/index.js +85 -85
- package/dist/index.d.ts +2 -2
- package/dist/index.js +147 -147
- package/dist/lifecycle/task-stop.d.ts +31 -1
- package/dist/plugins/index.js +125 -125
- package/dist/process/index.js +1 -1
- package/dist/process/process-control.d.ts +1 -0
- package/dist/repository/index.d.ts +2 -2
- package/dist/repository/index.js +84 -84
- package/dist/repository/task.repository.d.ts +3 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { BaseSqliteRepository } from './base-sqlite-repository.js';
|
|
|
2
2
|
import { tasks } from '../schema/index.js';
|
|
3
3
|
import type { TaskLogEntry, TaskLogReadResult, TaskLogState } from './task-log.repository.js';
|
|
4
4
|
import { type TaskStatus, type TaskTerminalReason } from './task-status.js';
|
|
5
|
-
import { type StopTaskOptions, type StopTaskResult } from '../lifecycle/task-stop.js';
|
|
5
|
+
import { type StopTaskOptions, type StopTaskGenerationForInstructionOptions, type StopTaskResult } from '../lifecycle/task-stop.js';
|
|
6
6
|
export { TASK_HEARTBEAT_HARD_STALE_MS, TASK_HEARTBEAT_INTERVAL_MS, TASK_HEARTBEAT_STALE_MS, resolveTaskHeartbeatHardStaleMs, resolveTaskHeartbeatIntervalMs, resolveTaskHeartbeatStaleMs, } from '../lifecycle/task-heartbeat.js';
|
|
7
7
|
type RawTaskRow = typeof tasks.$inferSelect;
|
|
8
8
|
export type TaskRow = Omit<RawTaskRow, 'status'> & {
|
|
@@ -170,8 +170,10 @@ export declare class TaskRepository extends BaseSqliteRepository {
|
|
|
170
170
|
id: string;
|
|
171
171
|
requestedAt: string;
|
|
172
172
|
}): TaskStopRequestResult;
|
|
173
|
+
private requestTaskStopForInstruction;
|
|
173
174
|
finalizeTaskStop(opts: FinalizeTaskStopOptions): boolean;
|
|
174
175
|
stopTask(id: string, options?: StopTaskOptions): Promise<StopTaskResult>;
|
|
176
|
+
stopTaskGenerationForInstruction(options: StopTaskGenerationForInstructionOptions): Promise<StopTaskResult>;
|
|
175
177
|
startTask(opts: {
|
|
176
178
|
id: string;
|
|
177
179
|
agentId: string;
|