@crewx/sdk 0.9.0-rc.91 → 0.9.0-rc.92
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/esm/index.js +300 -118
- package/dist/esm/plugins/index.js +118 -118
- package/dist/esm/repository/index.js +29 -29
- package/dist/index.d.ts +5 -3
- package/dist/index.js +299 -117
- package/dist/migrations/0024_storage_metadata.sql +262 -0
- package/dist/migrations/meta/_journal.json +8 -1
- package/dist/plugins/index.js +118 -118
- package/dist/provider/cli/adapters/event-timestamp.util.d.ts +1 -0
- package/dist/repository/base-sqlite-repository.d.ts +1 -0
- package/dist/repository/db.d.ts +4 -1
- package/dist/repository/index.d.ts +2 -4
- package/dist/repository/index.js +29 -29
- package/dist/repository/storage-metadata.repository.d.ts +64 -0
- package/dist/repository/task.repository.d.ts +15 -0
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/storage-metadata.d.ts +181 -0
- package/dist/ui-instance/index.d.ts +2 -0
- package/dist/ui-instance/store.d.ts +14 -0
- package/package.json +1 -1
- package/dist/repository/thread-title-common-code-migration.d.ts +0 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveEventTimestamp(parsed: unknown, fallbackTs: string): string;
|
package/dist/repository/db.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export interface DrizzleHandle {
|
|
|
6
6
|
runRaw(sqlStr: string, params?: unknown[]): void;
|
|
7
7
|
close(): void;
|
|
8
8
|
}
|
|
9
|
+
export interface OpenDrizzleDbOptions {
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
}
|
|
9
12
|
export declare const CREWX_JOURNAL_SIZE_LIMIT_BYTES: number;
|
|
10
13
|
export type ReclaimJournalMode = 'PASSIVE' | 'TRUNCATE';
|
|
11
14
|
export interface ReclaimJournalResult {
|
|
@@ -13,5 +16,5 @@ export interface ReclaimJournalResult {
|
|
|
13
16
|
walBytesBefore: number;
|
|
14
17
|
walBytesAfter: number;
|
|
15
18
|
}
|
|
16
|
-
export declare function openDrizzleDb(dbPath: string): DrizzleHandle;
|
|
19
|
+
export declare function openDrizzleDb(dbPath: string, options?: OpenDrizzleDbOptions): DrizzleHandle;
|
|
17
20
|
export declare function reclaimTemporaryJournal(dbPath: string, mode?: ReclaimJournalMode): ReclaimJournalResult;
|
|
@@ -9,14 +9,14 @@ export type { ProjectRow, ThreadRow as WorkspaceThreadRow, ThreadWithAgentRow }
|
|
|
9
9
|
export { DEFAULT_PROJECT_STAGE_KEYS, DEFAULT_PROJECT_STAGES, ProjectRepository, } from './project.repository.js';
|
|
10
10
|
export type { AcceptProjectInput, AppendProjectEventInput, CreateProjectInput, CriterionVerifyStatus, ListProjectEventsOptions, ListProjectsOptions, ProjectActorInput, ProjectActorType, ProjectDetail, ProjectEvidence, ProjectEvidenceKind, ProjectEventType, ProjectScene, ProjectStage, SetCriterionEvidenceInput, SetCriterionVerifyInput, } from './project.repository.js';
|
|
11
11
|
export { CREWX_JOURNAL_SIZE_LIMIT_BYTES, openDrizzleDb, reclaimTemporaryJournal } from './db.js';
|
|
12
|
-
export type { DrizzleDb, DrizzleHandle, ReclaimJournalMode, ReclaimJournalResult } from './db.js';
|
|
12
|
+
export type { DrizzleDb, DrizzleHandle, OpenDrizzleDbOptions, ReclaimJournalMode, ReclaimJournalResult, } from './db.js';
|
|
13
13
|
export { runMigrations, runMigrationsOnce } from './migrate.js';
|
|
14
14
|
export { pushSchema } from './push.js';
|
|
15
15
|
export type { PushResult } from './push.js';
|
|
16
16
|
export type { Workspace, NewWorkspace } from '../schema/index.js';
|
|
17
17
|
export { tasks } from '../schema/index.js';
|
|
18
18
|
export { TaskRepository } from './task.repository.js';
|
|
19
|
-
export type { TaskRow, TaskActivityLogRow, FindTasksByThreadOptions, TaskListRow, NewTask, AgentUsageRow, TrendRow, ProviderUsageRow, ModelUsageRow, ReportTaskRow, DelegationEdge, DelegationMatrixResult, WorkflowCardRow, WorkflowParentTaskRow, } from './task.repository.js';
|
|
19
|
+
export type { TaskRow, TaskActivityLogRow, FindTasksByThreadOptions, TaskListRow, NewTask, AgentUsageRow, TrendRow, ProviderUsageRow, ModelUsageRow, ReportTaskRow, DelegationEdge, DelegationMatrixResult, WorkflowCardRow, WorkflowParentTaskKind, WorkflowParentTaskLookup, WorkflowParentTaskRow, } from './task.repository.js';
|
|
20
20
|
export { TaskLogRepository } from './task-log.repository.js';
|
|
21
21
|
export type { TaskLogEntry, RawTaskLogEntry, TaskLogRawEntry, TaskLogStorage, TaskLogState, TaskLogReadResult, TaskLogRepositoryContract, } from './task-log.repository.js';
|
|
22
22
|
export { runTaskLogMigration, resolveTaskLogMigrationDbPath, taskLogBackupName, tryCheckpointTaskLogWal, hasSufficientTaskLogMigrationFreeSpace, } from './task-log-migration.js';
|
|
@@ -25,8 +25,6 @@ export type { TaskLogMigrationFailure, TaskLogMigrationFailureKind, TaskLogMigra
|
|
|
25
25
|
export { ThreadRepository } from './thread.repository.js';
|
|
26
26
|
export { ThreadTitleMetadataPatchError, } from './thread.repository.js';
|
|
27
27
|
export type { ThreadRow, NewThread, ThreadTitleMetadataPatch, ThreadTitleMetadataPatchResult, ThreadTitleMetadataPatchErrorReason, } from './thread.repository.js';
|
|
28
|
-
export { migrateLegacyThreadTitleCommonCodes, migrateThreadTitleCommonCodes, } from './thread-title-common-code-migration.js';
|
|
29
|
-
export type { ThreadTitleCommonCodeMigrationOptions, ThreadTitleCommonCodeMigrationResult, } from './thread-title-common-code-migration.js';
|
|
30
28
|
export { ThreadHistoryConflictError, ThreadHighlightConflictError, ThreadHighlightRegenerationConflictError, ThreadHistoryRepository, } from './thread-history.repository.js';
|
|
31
29
|
export { THREAD_HIGHLIGHT_DELETION_REASON_REGENERATION_REPLACED, THREAD_HIGHLIGHT_REGENERATION_COMMIT_FAILED, THREAD_HIGHLIGHT_REGENERATION_DETECTION_FAILED, THREAD_HIGHLIGHT_REGENERATION_INTERRUPTED, THREAD_HIGHLIGHT_REGENERATION_NO_ELIGIBLE_TURNS, } from './thread-history.repository.js';
|
|
32
30
|
export type { CompleteThreadHighlightRegenerationInput, CompleteThreadHighlightRegenerationResult, CreateThreadHighlightRegenerationRunInput, CreateThreadHighlightRegenerationRunResult, CreateThreadHighlightInput, DismissThreadHighlightInput, FailThreadHighlightRegenerationRunInput, ListActiveHighlightsOptions, ThreadActorInput, ThreadHighlightDeletionReason, ThreadHighlightEligibleTurn, ThreadHighlightRegenerationCandidate, ThreadHighlightRegenerationErrorCode, ThreadSnapshot, ThreadSnapshotMutationInput, ThreadTimeline, ThreadTimelineOptions, ThreadTimelineQuery, UpdateThreadHighlightInput, } from './thread-history.repository.js';
|