@shumai-one/shumai-transcode 0.3.6 → 0.3.8

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.6",
3
+ "version": "0.3.8",
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.6",
31
- "@shumai-one/shumai-transcode-darwin-x64": "0.3.6",
32
- "@shumai-one/shumai-transcode-linux-arm64": "0.3.6",
33
- "@shumai-one/shumai-transcode-linux-x64": "0.3.6",
34
- "@shumai-one/shumai-transcode-win32-arm64": "0.3.6",
35
- "@shumai-one/shumai-transcode-win32-x64": "0.3.6"
30
+ "@shumai-one/shumai-transcode-darwin-arm64": "0.3.8",
31
+ "@shumai-one/shumai-transcode-darwin-x64": "0.3.8",
32
+ "@shumai-one/shumai-transcode-linux-arm64": "0.3.8",
33
+ "@shumai-one/shumai-transcode-linux-x64": "0.3.8",
34
+ "@shumai-one/shumai-transcode-win32-arm64": "0.3.8",
35
+ "@shumai-one/shumai-transcode-win32-x64": "0.3.8"
36
36
  },
37
37
  "repository": {
38
38
  "type": "git",
@@ -0,0 +1,8 @@
1
+ -- Backfill autofillSource in config JSON where ai_autofill is true
2
+ UPDATE "metadata_fields"
3
+ SET "config" = jsonb_set(COALESCE("config", '{}'::jsonb), '{autofillSource}', '"CONTENT"')
4
+ WHERE "ai_autofill" = true;
5
+
6
+ UPDATE "metadata_fields"
7
+ SET "config" = jsonb_set(COALESCE("config", '{}'::jsonb), '{autofillSource}', '"NONE"')
8
+ WHERE "ai_autofill" = false OR "ai_autofill" IS NULL;
@@ -0,0 +1,12 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `autofill_context` on the `assets` table. All the data in the column will be lost.
5
+ - You are about to drop the column `ai_autofill` on the `metadata_fields` table. All the data in the column will be lost.
6
+
7
+ */
8
+ -- AlterTable
9
+ ALTER TABLE "assets" DROP COLUMN "autofill_context";
10
+
11
+ -- AlterTable
12
+ ALTER TABLE "metadata_fields" DROP COLUMN "ai_autofill";
@@ -0,0 +1,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "sandboxes" ADD COLUMN "network_sandbox_enabled" BOOLEAN NOT NULL DEFAULT false;
@@ -0,0 +1,2 @@
1
+ -- Data migration: set network_sandbox_enabled to true for existing legacy sandbox records
2
+ UPDATE "sandboxes" SET "network_sandbox_enabled" = true;
@@ -0,0 +1,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "assets" ADD COLUMN "agentmd" TEXT;
@@ -0,0 +1,21 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `agentmd` on the `assets` table. All the data in the column will be lost.
5
+
6
+ */
7
+ -- AlterTable
8
+ ALTER TABLE "assets" DROP COLUMN "agentmd";
9
+
10
+ -- CreateTable
11
+ CREATE TABLE "asset_agentmd" (
12
+ "asset_id" TEXT NOT NULL,
13
+ "content" TEXT NOT NULL,
14
+ "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
15
+ "updated_at" TIMESTAMP(3) NOT NULL,
16
+
17
+ CONSTRAINT "asset_agentmd_pkey" PRIMARY KEY ("asset_id")
18
+ );
19
+
20
+ -- AddForeignKey
21
+ ALTER TABLE "asset_agentmd" ADD CONSTRAINT "asset_agentmd_asset_id_fkey" FOREIGN KEY ("asset_id") REFERENCES "assets"("id") ON DELETE CASCADE ON UPDATE CASCADE;
@@ -263,11 +263,12 @@ model Team {
263
263
  }
264
264
 
265
265
  model Sandbox {
266
- id String @id @default(ulid())
267
- allowedDomains String[] @default(["npmjs.org", "*.npmjs.org", "registry.npmjs.org", "registry.yarnpkg.com", "pypi.org", "*.pypi.org", "github.com", "*.github.com", "api.github.com", "raw.githubusercontent.com"])
268
- pendingDomains String[] @default([]) @map("pending_domains")
269
- createdAt DateTime @default(now()) @map("created_at")
270
- updatedAt DateTime @updatedAt @map("updated_at")
266
+ id String @id @default(ulid())
267
+ networkSandboxEnabled Boolean @default(false) @map("network_sandbox_enabled")
268
+ allowedDomains String[] @default(["npmjs.org", "*.npmjs.org", "registry.npmjs.org", "registry.yarnpkg.com", "pypi.org", "*.pypi.org", "github.com", "*.github.com", "api.github.com", "raw.githubusercontent.com"])
269
+ pendingDomains String[] @default([]) @map("pending_domains")
270
+ createdAt DateTime @default(now()) @map("created_at")
271
+ updatedAt DateTime @updatedAt @map("updated_at")
271
272
 
272
273
  teamId String @unique @map("team_id")
273
274
  team Team @relation("TeamToSandbox", fields: [teamId], references: [id], onDelete: Cascade)
@@ -450,7 +451,6 @@ model Asset {
450
451
  transcodeTaskId String? @map("transcode_task_id")
451
452
  /// [MediaInfo]
452
453
  media Json?
453
- autofillContext String? @map("autofill_context")
454
454
  isDeleted Boolean @default(false) @map("is_deleted")
455
455
  deletedAt DateTime? @map("deleted_at")
456
456
  sortIndex String? @map("sort_index")
@@ -490,6 +490,7 @@ model Asset {
490
490
  shareLinkRootFolder ShareLink? @relation("ShareLinkToRootFolder")
491
491
  agentSessions AgentSession[] @relation("AssetToAgentSession")
492
492
  watermarkFiles WatermarkFile[] @relation("AssetToWatermarkFile")
493
+ agentMd AssetAgentMd? @relation("AssetToAgentMd")
493
494
 
494
495
  @@map("assets")
495
496
  @@index([type])
@@ -537,6 +538,17 @@ model AssetMetadataValue {
537
538
  @@map("asset_metadata_values")
538
539
  }
539
540
 
541
+ model AssetAgentMd {
542
+ assetId String @id @map("asset_id")
543
+ content String @db.Text
544
+ createdAt DateTime @default(now()) @map("created_at")
545
+ updatedAt DateTime @updatedAt @map("updated_at")
546
+
547
+ asset Asset @relation("AssetToAgentMd", fields: [assetId], references: [id], onDelete: Cascade)
548
+
549
+ @@map("asset_agentmd")
550
+ }
551
+
540
552
  model AssetComment {
541
553
  id String @id @default(ulid())
542
554
  message String?
@@ -622,9 +634,8 @@ model MetadataField {
622
634
  scope MetadataFieldScope?
623
635
  /// [FieldConfig]
624
636
  config Json?
625
- readOnly Boolean @default(false) @map("read_only")
626
- aiAutofill Boolean @default(false) @map("ai_autofill")
627
- description String @default("")
637
+ readOnly Boolean @default(false) @map("read_only")
638
+ description String @default("")
628
639
 
629
640
  teamId String? @map("team_id")
630
641
  team Team? @relation("TeamToMetadataField", fields: [teamId], references: [id])