@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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/sdk",
3
- "version": "0.9.0-rc.97",
3
+ "version": "0.9.0-rc.99",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"