@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shumai-one/shumai-transcode",
3
- "version": "0.1.8",
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.8",
30
- "@shumai-one/shumai-transcode-darwin-x64": "0.1.8",
31
- "@shumai-one/shumai-transcode-linux-arm64": "0.1.8",
32
- "@shumai-one/shumai-transcode-linux-x64": "0.1.8",
33
- "@shumai-one/shumai-transcode-win32-arm64": "0.1.8",
34
- "@shumai-one/shumai-transcode-win32-x64": "0.1.8"
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");
@@ -0,0 +1,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "agent_sessions" ADD COLUMN "name" TEXT;
@@ -0,0 +1,2 @@
1
+ -- AlterEnum
2
+ ALTER TYPE "AgentSessionType" ADD VALUE 'naming';
@@ -0,0 +1,5 @@
1
+ -- AlterTable
2
+ ALTER TABLE "workflow_tasks" ADD COLUMN "session_id" TEXT;
3
+
4
+ -- CreateIndex
5
+ CREATE INDEX "workflow_tasks_session_id_idx" ON "workflow_tasks"("session_id");
@@ -0,0 +1,4 @@
1
+ -- Backfill session_id from existing task payloads
2
+ UPDATE "workflow_tasks"
3
+ SET "session_id" = (payload->'agent'->>'sessionId')
4
+ WHERE "session_id" IS NULL AND (payload->'agent'->>'sessionId') IS NOT NULL;
@@ -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