@crewx/sdk 0.9.0-rc.174 → 0.9.0-rc.175

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.
Files changed (46) hide show
  1. package/dist/desktop/index.js +3 -3
  2. package/dist/esm/desktop/index.js +3 -3
  3. package/dist/esm/index.js +388 -259
  4. package/dist/esm/plugins/index.js +95 -91
  5. package/dist/esm/process/index.js +1 -1
  6. package/dist/esm/publish/index.js +2 -2
  7. package/dist/esm/repository/index.js +334 -201
  8. package/dist/esm/skills/index.js +2 -2
  9. package/dist/index.browser.js +1 -1
  10. package/dist/index.d.ts +9 -0
  11. package/dist/index.js +377 -248
  12. package/dist/lifecycle/task-stop.d.ts +27 -1
  13. package/dist/lifecycle/update-admission.d.ts +1 -1
  14. package/dist/mcp-app/types.d.ts +1 -1
  15. package/dist/migrations/0042_breezy_blue_shield.sql +31 -0
  16. package/dist/migrations/0043_nervous_darkstar.sql +1 -0
  17. package/dist/migrations/0044_military_galactus.sql +8 -0
  18. package/dist/migrations/0045_task_pid_started_at.sql +1 -0
  19. package/dist/migrations/meta/0042_snapshot.json +4383 -0
  20. package/dist/migrations/meta/0043_snapshot.json +4390 -0
  21. package/dist/migrations/meta/0044_snapshot.json +4435 -0
  22. package/dist/migrations/meta/0045_snapshot.json +4442 -0
  23. package/dist/migrations/meta/_journal.json +28 -0
  24. package/dist/plugins/index.js +99 -95
  25. package/dist/process/index.d.ts +2 -2
  26. package/dist/process/index.js +1 -1
  27. package/dist/process/process-control.d.ts +14 -0
  28. package/dist/publish/index.js +2 -2
  29. package/dist/repository/db.d.ts +1 -0
  30. package/dist/repository/index.d.ts +7 -0
  31. package/dist/repository/index.js +292 -159
  32. package/dist/repository/run-columns.d.ts +10 -0
  33. package/dist/repository/run-history.repository.d.ts +112 -0
  34. package/dist/repository/schedule-run.repository.d.ts +103 -0
  35. package/dist/repository/task.repository.d.ts +13 -2
  36. package/dist/repository/workflow-anchor-kinds.d.ts +4 -0
  37. package/dist/schema/index.d.ts +2 -0
  38. package/dist/schema/run-column-backfill.d.ts +81 -0
  39. package/dist/schema/schedule-runs.d.ts +451 -0
  40. package/dist/schema/tasks.d.ts +114 -0
  41. package/dist/skills/index.js +2 -2
  42. package/dist/ui-plugin/html-viewer-document-policy.d.ts +23 -0
  43. package/dist/ui-plugin/index.d.ts +2 -0
  44. package/dist/ui-plugin/types.d.ts +1 -0
  45. package/dist/utils/id.d.ts +1 -1
  46. package/package.json +1 -1
@@ -3,6 +3,7 @@ import type * as schema from '../schema/index.js';
3
3
  export type DrizzleDb = BetterSQLite3Database<typeof schema>;
4
4
  export interface DrizzleHandle {
5
5
  db: DrizzleDb;
6
+ sqlite: import('better-sqlite3').Database;
6
7
  runRaw(sqlStr: string, params?: unknown[]): void;
7
8
  close(): void;
8
9
  }
@@ -32,6 +32,9 @@ export type { HeartbeatTickResult, TaskHeartbeatHandle, TaskHeartbeatOptions, Ta
32
32
  export { isTaskRetryableByDefault, LEGACY_TASK_TERMINAL_ERROR_PATTERNS, normalizeTaskRow, normalizeTaskStatus, readTaskTerminalReason, storedTaskStatusesFor, TASK_TERMINAL_STATUSES, TASK_TERMINAL_STORED_STATUSES, } from './task-status.js';
33
33
  export type { TaskStatus, TaskStatusInput, TaskTerminalReason, TaskTerminalStatus, } from './task-status.js';
34
34
  export { hasRecordedUsage } from './task.repository.js';
35
+ export { CANONICAL_USER_STOP_ERROR } from './task.repository.js';
36
+ export { WORKFLOW_ANCHOR_TASK_KINDS, isWorkflowAnchorTaskKind } from './workflow-anchor-kinds.js';
37
+ export type { WorkflowAnchorTaskKind } from './workflow-anchor-kinds.js';
35
38
  export type { TaskRow, TaskKillResult, TaskKillStatus, TaskActivityLogRow, FindTasksByThreadOptions, TaskListRow, NewTask, AgentProviderUsageRow, AgentUsageRow, TrendRow, ProviderUsageRow, ModelUsageRow, ReportTaskRow, DelegationEdge, DelegationMatrixResult, WorkflowCardRow, WorkflowParentTaskKind, WorkflowParentTaskLookup, WorkflowParentTaskRow, } from './task.repository.js';
36
39
  export { classifyUsageAccountingReason, runUsageBackfill, USAGE_BACKFILL_MAX_LATE_USAGE_AGE_MS, USAGE_BACKFILL_TERMINAL_STATUSES, } from './usage-backfill.js';
37
40
  export type { UsageAccountingReason, UsageBackfillFailure, UsageBackfillMode, UsageBackfillOptions, UsageBackfillProviderStats, UsageBackfillReport, } from './usage-backfill.js';
@@ -73,3 +76,7 @@ export { NotificationRepository, DEFAULT_NOTIFICATION_CAP, DEFAULT_LIST_LIMIT as
73
76
  export type { NotificationRow, NewNotification, NotificationReadRow, NotificationLevel, NotificationSource, CreateNotificationInput, NotificationListItem, ListNotificationsParams, UserScope as NotificationUserScope, MarkReadParams as NotificationMarkReadParams, } from './notification.repository.js';
74
77
  export { AgentSuggestionRepository, DEFAULT_LIST_LIMIT as DEFAULT_AGENT_SUGGESTION_LIST_LIMIT, } from './agent-suggestion.repository.js';
75
78
  export type { AgentSuggestionRow, NewAgentSuggestion, SuggestionType, SuggestionStatus, CreateAgentSuggestionInput, } from './agent-suggestion.repository.js';
79
+ export type { ScheduleRun, ScheduleRunFinish, ScheduleRunListOptions, ScheduleRunMode, ScheduleRunPruneResult, ScheduleRunRepositoryInterface, ScheduleRunStatus, NewScheduleRun, } from './schedule-run.repository.js';
80
+ export { ScheduleRunRepository, SCHEDULE_RUN_COMMAND_MAX_BYTES, SCHEDULE_RUN_FAILURE_RETENTION_MS, SCHEDULE_RUN_FAILURE_TAIL_KEEP, SCHEDULE_RUN_SUCCESS_RETENTION_MS, SCHEDULE_RUN_SUCCESS_TAIL_KEEP, } from './schedule-run.repository.js';
81
+ export { RUN_HISTORY_PREVIEW_RAW_CHARS, RunHistoryRepository } from './run-history.repository.js';
82
+ export type { FailedScheduleRunsSinceInput, RunHistoryClass, RunHistoryKind, RunHistoryOrigin, RunHistoryPage, RunHistoryQuery, RunHistoryRow, RunHistoryTerminalReason, RunScheduleRunByTask, RunTaskIdsInput, RunTaskListItemRow, ScheduleRunSummary, ScheduleRunSummaryInput, ScheduleRunSummaryLastRun, RunColumnBackfillInput, RunColumnBackfillResult, } from './run-history.repository.js';