@shumai-one/shumai-transcode 0.1.8 → 0.1.9
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-8m5z0v3d.js → chunk-e9eqczj7.js} +25 -2
- package/bin/shumai-transcode-app.js +116 -105
- package/package.json +7 -7
- package/prisma/migrations/20260711121142_add_agent_session_type/migration.sql +8 -0
- package/prisma/migrations/20260711123731_add_agent_session_name/migration.sql +2 -0
- package/prisma/migrations/20260711124459_add_naming_session_type/migration.sql +2 -0
- package/prisma/migrations/20260714024940_add_session_id_to_workflow_tasks/migration.sql +5 -0
- package/prisma/migrations/20260714025034_backfill_session_id_in_workflow_tasks/migration.sql +4 -0
- package/prisma/schema.prisma +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shumai-one/shumai-transcode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Media transcoding worker for the shumai media workspace",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"zod": "4.4.3"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@shumai-one/shumai-transcode-darwin-arm64": "0.1.
|
|
30
|
-
"@shumai-one/shumai-transcode-darwin-x64": "0.1.
|
|
31
|
-
"@shumai-one/shumai-transcode-linux-arm64": "0.1.
|
|
32
|
-
"@shumai-one/shumai-transcode-linux-x64": "0.1.
|
|
33
|
-
"@shumai-one/shumai-transcode-win32-arm64": "0.1.
|
|
34
|
-
"@shumai-one/shumai-transcode-win32-x64": "0.1.
|
|
29
|
+
"@shumai-one/shumai-transcode-darwin-arm64": "0.1.9",
|
|
30
|
+
"@shumai-one/shumai-transcode-darwin-x64": "0.1.9",
|
|
31
|
+
"@shumai-one/shumai-transcode-linux-arm64": "0.1.9",
|
|
32
|
+
"@shumai-one/shumai-transcode-linux-x64": "0.1.9",
|
|
33
|
+
"@shumai-one/shumai-transcode-win32-arm64": "0.1.9",
|
|
34
|
+
"@shumai-one/shumai-transcode-win32-x64": "0.1.9"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
-- CreateEnum
|
|
2
|
+
CREATE TYPE "AgentSessionType" AS ENUM ('comment', 'chat');
|
|
3
|
+
|
|
4
|
+
-- AlterTable
|
|
5
|
+
ALTER TABLE "agent_sessions" ADD COLUMN "type" "AgentSessionType" NOT NULL DEFAULT 'comment';
|
|
6
|
+
|
|
7
|
+
-- CreateIndex
|
|
8
|
+
CREATE INDEX "agent_sessions_type_idx" ON "agent_sessions"("type");
|
package/prisma/schema.prisma
CHANGED
|
@@ -629,6 +629,7 @@ model WorkflowTask {
|
|
|
629
629
|
inputTokens Int @default(0) @map("input_tokens")
|
|
630
630
|
outputTokens Int @default(0) @map("output_tokens")
|
|
631
631
|
model String?
|
|
632
|
+
sessionId String? @map("session_id")
|
|
632
633
|
createdAt DateTime @default(now()) @map("created_at")
|
|
633
634
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
634
635
|
|
|
@@ -638,6 +639,7 @@ model WorkflowTask {
|
|
|
638
639
|
@@index([teamId])
|
|
639
640
|
@@index([projectId])
|
|
640
641
|
@@index([type])
|
|
642
|
+
@@index([sessionId])
|
|
641
643
|
}
|
|
642
644
|
enum AgentType {
|
|
643
645
|
chat
|
|
@@ -645,6 +647,12 @@ enum AgentType {
|
|
|
645
647
|
embedding
|
|
646
648
|
}
|
|
647
649
|
|
|
650
|
+
enum AgentSessionType {
|
|
651
|
+
comment
|
|
652
|
+
chat
|
|
653
|
+
naming
|
|
654
|
+
}
|
|
655
|
+
|
|
648
656
|
model Agent {
|
|
649
657
|
id String @id
|
|
650
658
|
user User @relation(fields: [id], references: [id], onDelete: Cascade)
|
|
@@ -693,11 +701,14 @@ model AgentSession {
|
|
|
693
701
|
assetId String? @map("asset_id")
|
|
694
702
|
asset Asset? @relation("AssetToAgentSession", fields: [assetId], references: [id], onDelete: Cascade)
|
|
695
703
|
userCommentId String? @map("user_comment_id")
|
|
704
|
+
type AgentSessionType @default(comment)
|
|
705
|
+
name String?
|
|
696
706
|
createdAt DateTime @default(now()) @map("created_at")
|
|
697
707
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
698
708
|
entries AgentSessionEntry[]
|
|
699
709
|
comments AssetComment[]
|
|
700
710
|
|
|
711
|
+
@@index([type])
|
|
701
712
|
@@map("agent_sessions")
|
|
702
713
|
}
|
|
703
714
|
|