@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/bin/{chunk-e3kqv26s.js → chunk-nt1573w8.js} +19 -4
- package/bin/shumai-transcode-app.js +28 -28
- package/package.json +7 -7
- package/prisma/migrations/20260729073910_change_agent_session_asset_on_delete_to_set_null/migration.sql +5 -0
- package/prisma/migrations/20260729114346_asset_size_byte_bigint/migration.sql +2 -0
- package/prisma/migrations/20260729114659_ai_usage_tokens_bigint/migration.sql +5 -0
- package/prisma/schema.prisma +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shumai-one/shumai-transcode",
|
|
3
|
-
"version": "0.3.
|
|
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.
|
|
31
|
-
"@shumai-one/shumai-transcode-darwin-x64": "0.3.
|
|
32
|
-
"@shumai-one/shumai-transcode-linux-arm64": "0.3.
|
|
33
|
-
"@shumai-one/shumai-transcode-linux-x64": "0.3.
|
|
34
|
-
"@shumai-one/shumai-transcode-win32-arm64": "0.3.
|
|
35
|
-
"@shumai-one/shumai-transcode-win32-x64": "0.3.
|
|
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;
|
package/prisma/schema.prisma
CHANGED
|
@@ -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
|
|
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:
|
|
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
|
|
832
|
-
outputTokens
|
|
833
|
-
cacheReadTokens
|
|
834
|
-
totalTokens
|
|
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")
|