@shumai-one/shumai-transcode 0.3.0 → 0.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shumai-one/shumai-transcode",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Media transcoding worker for the shumai media workspace",
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,12 +27,12 @@
27
27
  "zod": "4.4.3"
28
28
  },
29
29
  "optionalDependencies": {
30
- "@shumai-one/shumai-transcode-darwin-arm64": "0.3.0",
31
- "@shumai-one/shumai-transcode-darwin-x64": "0.3.0",
32
- "@shumai-one/shumai-transcode-linux-arm64": "0.3.0",
33
- "@shumai-one/shumai-transcode-linux-x64": "0.3.0",
34
- "@shumai-one/shumai-transcode-win32-arm64": "0.3.0",
35
- "@shumai-one/shumai-transcode-win32-x64": "0.3.0"
30
+ "@shumai-one/shumai-transcode-darwin-arm64": "0.3.2",
31
+ "@shumai-one/shumai-transcode-darwin-x64": "0.3.2",
32
+ "@shumai-one/shumai-transcode-linux-arm64": "0.3.2",
33
+ "@shumai-one/shumai-transcode-linux-x64": "0.3.2",
34
+ "@shumai-one/shumai-transcode-win32-arm64": "0.3.2",
35
+ "@shumai-one/shumai-transcode-win32-x64": "0.3.2"
36
36
  },
37
37
  "repository": {
38
38
  "type": "git",
@@ -0,0 +1,5 @@
1
+ -- DropForeignKey
2
+ ALTER TABLE "agent_sessions" DROP CONSTRAINT "agent_sessions_asset_id_fkey";
3
+
4
+ -- AddForeignKey
5
+ ALTER TABLE "agent_sessions" ADD CONSTRAINT "agent_sessions_asset_id_fkey" FOREIGN KEY ("asset_id") REFERENCES "assets"("id") ON DELETE SET NULL ON UPDATE CASCADE;
@@ -0,0 +1,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "assets" ALTER COLUMN "size_byte" SET DATA TYPE BIGINT;
@@ -0,0 +1,5 @@
1
+ -- AlterTable
2
+ ALTER TABLE "ai_usages" ALTER COLUMN "input_tokens" SET DATA TYPE BIGINT,
3
+ ALTER COLUMN "output_tokens" SET DATA TYPE BIGINT,
4
+ ALTER COLUMN "cache_read_tokens" SET DATA TYPE BIGINT,
5
+ ALTER COLUMN "total_tokens" SET DATA TYPE BIGINT;
@@ -374,7 +374,7 @@ model Asset {
374
374
  type AssetType
375
375
  mediaType String? @map("media_type")
376
376
  fileCount Int @default(0) @map("file_count")
377
- sizeByte Int @default(0) @map("size_byte")
377
+ sizeByte BigInt @default(0) @map("size_byte")
378
378
  status AssetStatus
379
379
  transcodeTaskId String? @map("transcode_task_id")
380
380
  /// [MediaInfo]
@@ -708,7 +708,7 @@ model AgentSession {
708
708
  cwd String
709
709
  leafId String? @map("leaf_id")
710
710
  assetId String? @map("asset_id")
711
- asset Asset? @relation("AssetToAgentSession", fields: [assetId], references: [id], onDelete: Cascade)
711
+ asset Asset? @relation("AssetToAgentSession", fields: [assetId], references: [id], onDelete: SetNull)
712
712
  userCommentId String? @map("user_comment_id")
713
713
  type AgentSessionType @default(comment)
714
714
  name String?
@@ -828,10 +828,10 @@ model AiUsage {
828
828
  teamId String @map("team_id")
829
829
  userId String? @map("user_id")
830
830
  periodStart DateTime @map("period_start")
831
- inputTokens Int @default(0) @map("input_tokens")
832
- outputTokens Int @default(0) @map("output_tokens")
833
- cacheReadTokens Int @default(0) @map("cache_read_tokens")
834
- totalTokens Int @default(0) @map("total_tokens")
831
+ inputTokens BigInt @default(0) @map("input_tokens")
832
+ outputTokens BigInt @default(0) @map("output_tokens")
833
+ cacheReadTokens BigInt @default(0) @map("cache_read_tokens")
834
+ totalTokens BigInt @default(0) @map("total_tokens")
835
835
  cost Float @default(0) @map("cost")
836
836
  createdAt DateTime @default(now()) @map("created_at")
837
837
  updatedAt DateTime @updatedAt @map("updated_at")