@crewx/sdk 0.9.0-rc.156 → 0.9.0-rc.157

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.
@@ -0,0 +1,23 @@
1
+ import { BaseSqliteRepository } from './base-sqlite-repository.js';
2
+ export interface RecentAgentSend {
3
+ agentId: string;
4
+ lastAcceptedAt: string;
5
+ }
6
+ export interface RecordAcceptedAgentSendInput {
7
+ workspaceId: string | null | undefined;
8
+ actorId: string | null | undefined;
9
+ actorKind: string | null | undefined;
10
+ agentId: string | null | undefined;
11
+ acceptedAt?: string;
12
+ }
13
+ export declare class AgentSendHistoryRepository extends BaseSqliteRepository {
14
+ private readonly dbPath?;
15
+ constructor(opts?: {
16
+ dbPath?: string;
17
+ dbRoot?: string;
18
+ });
19
+ resolveDbPath(): string;
20
+ private openHandle;
21
+ recordAccepted(input: RecordAcceptedAgentSendInput): boolean;
22
+ findRecentAgents(workspaceId: string, actorId: string): RecentAgentSend[];
23
+ }
@@ -5,6 +5,8 @@ export { COMMON_CODE_COLORS, COMMON_CODE_GROUPS, CommonCodeRepository, CommonCod
5
5
  export type { CommonCodeColor, CommonCodeErrorReason, CommonCodeGroup, CreateThreadStateInput, UpdateCommonCodeDisplayInput, } from './common-code.repository.js';
6
6
  export type { CommonCode, NewCommonCode } from '../schema/common-codes.js';
7
7
  export { WorkspaceRepository } from './workspace.repository.js';
8
+ export { AgentSendHistoryRepository } from './agent-send-history.repository.js';
9
+ export type { RecordAcceptedAgentSendInput, RecentAgentSend } from './agent-send-history.repository.js';
8
10
  export type { ProjectRow, ThreadRow as WorkspaceThreadRow, ThreadWithAgentRow } from './workspace.repository.js';
9
11
  export { DEFAULT_PROJECT_STAGE_KEYS, DEFAULT_PROJECT_STAGES, ProjectRepository, } from './project.repository.js';
10
12
  export type { AcceptProjectInput, AppendProjectEventInput, CreateProjectInput, CriterionVerifyStatus, ListProjectEventsOptions, ListProjectsOptions, ProjectActorInput, ProjectActorType, ProjectDetail, ProjectEvidence, ProjectEvidenceKind, ProjectEventType, ProjectScene, ProjectStage, SetCriterionEvidenceInput, SetCriterionVerifyInput, } from './project.repository.js';
@@ -15,6 +17,8 @@ export { pushSchema } from './push.js';
15
17
  export type { PushResult } from './push.js';
16
18
  export type { Workspace, NewWorkspace } from '../schema/index.js';
17
19
  export { tasks } from '../schema/index.js';
20
+ export { agent_send_history } from '../schema/index.js';
21
+ export type { AgentSendHistory, NewAgentSendHistory } from '../schema/index.js';
18
22
  export { DEFAULT_TASK_REAPER_TICK_INTERVAL_MS, mergeTerminalReason, TaskRepository, TASK_HEARTBEAT_HARD_STALE_MS, TASK_HEARTBEAT_INTERVAL_MS, TASK_HEARTBEAT_STALE_MS, resolveTaskHeartbeatHardStaleMs, resolveTaskHeartbeatIntervalMs, resolveTaskHeartbeatStaleMs, } from './task.repository.js';
19
23
  export type { ReapOrphanedTasksOptions } from './task.repository.js';
20
24
  export { countRatedTasks, listRatedTasks, RATED_TASK_EXCERPT_MAX_CHARS, RATED_TASK_LIST_MAX_LIMIT, setTaskRating, TASK_RATINGS, TaskRatingError, } from './task.repository.js';
@@ -36,7 +40,7 @@ export { runTaskLogMigration, resolveTaskLogMigrationDbPath, taskLogBackupName,
36
40
  export { TASK_LOG_MIGRATION_EVENT_ROW_BYTES, TASK_LOG_MIGRATION_MIN_FREE_SPACE_BYTES, TASK_LOG_MIGRATION_TERMINAL_STATUSES, } from './task-log-migration.js';
37
41
  export type { TaskLogMigrationFailure, TaskLogMigrationFailureKind, TaskLogMigrationMode, TaskLogMigrationOptions, TaskLogMigrationReport, TaskLogWalCheckpointConnection, TaskLogVerificationIssue, TaskLogVerificationIssueKind, TaskLogVerificationReport, } from './task-log-migration.js';
38
42
  export { ThreadRepository } from './thread.repository.js';
39
- export type { CreateAppLaunchThreadInput, CreateAppLaunchThreadResult } from './thread.repository.js';
43
+ export type { CreateAppLaunchThreadInput, CreateAppLaunchThreadResult, RespondedAgent } from './thread.repository.js';
40
44
  export { ThreadTitleMetadataPatchError, } from './thread.repository.js';
41
45
  export type { ThreadRow, NewThread, TaskDescendantList, TaskDescendantListOptions, TaskDescendantRow, TaskDescendantSummary, ThreadOriginFilter, ThreadOriginRow, ThreadTitleMetadataPatch, ThreadTitleMetadataPatchResult, ThreadTitleMetadataPatchErrorReason, } from './thread.repository.js';
42
46
  export { ThreadHistoryConflictError, ThreadHighlightConflictError, ThreadHighlightRegenerationConflictError, ThreadHistoryRepository, } from './thread-history.repository.js';