feat(db,contracts): trash_item migration and file manager contract refinements
- 0024_trash: trash_item table + unique idempotency index on artifact(files_idem) - files.ts: TrashItemRow, delete planId/planExpiresAt, organize group warnings, scrape returns refreshMetadata taskId - registry tests list the new table/row schema Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
673cb3920a
commit
09f6e3a3e5
6 files changed
+98
-2
No files matched your search
@@ -93,6 +93,8 @@ const ROWS: Record<string, { row: Obj; dbOnly?: string[]; apiOnly?: string[] }>
|
||||
BrowserSession: { row: C.BrowserSession },
|
||||
BrowserTab: { row: C.BrowserTab },
|
||||
BrowserControlLease: { row: C.BrowserControlLease },
|
||||
// W5-A 文件管理回收站(0024)
|
||||
TrashItem: { row: C.TrashItemRow },
|
||||
};
|
||||
|
||||
/** 引擎自有表(@umt/tasks 内部使用,不经 API 暴露),不要求 Row schema */
|
||||
|
||||
@@ -33,6 +33,7 @@ const STRING_CANDIDATES = [
|
||||
"catalog.lookup",
|
||||
"测试 Test",
|
||||
"123456",
|
||||
`lib:${UUID}`,
|
||||
];
|
||||
const NUMBER_CANDIDATES = [1, 50, 2024, 0.5, 0, 4096, 128000];
|
||||
|
||||
@@ -88,6 +89,7 @@ const OVERRIDES: Record<string, (v: Record<string, unknown>) => Record<string, u
|
||||
ExternalIdentityCreate: (v) => ({ ...v, contentUnitId: null }),
|
||||
PathBindingCreate: (v) => ({ ...v, bindingKind: "season", seasonNumber: 1 }),
|
||||
OrganizeRequest: (v) => ({ ...v, sourcePaths: undefined }),
|
||||
FilesListQuery: (v) => ({ ...v, filter: "video,unidentified" }),
|
||||
CatalogLookupInput: (v) => v,
|
||||
IdentityResolveInput: (v) => v,
|
||||
AssetLocationCreate: (v) => v,
|
||||
|
||||
Reference in new issue
Block a user