@shumai-one/shumai-transcode 0.3.6 → 0.3.7

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.7",
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.7",
31
+ "@shumai-one/shumai-transcode-darwin-x64": "0.3.7",
32
+ "@shumai-one/shumai-transcode-linux-arm64": "0.3.7",
33
+ "@shumai-one/shumai-transcode-linux-x64": "0.3.7",
34
+ "@shumai-one/shumai-transcode-win32-arm64": "0.3.7",
35
+ "@shumai-one/shumai-transcode-win32-x64": "0.3.7"
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;
@@ -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")
@@ -622,9 +622,8 @@ model MetadataField {
622
622
  scope MetadataFieldScope?
623
623
  /// [FieldConfig]
624
624
  config Json?
625
- readOnly Boolean @default(false) @map("read_only")
626
- aiAutofill Boolean @default(false) @map("ai_autofill")
627
- description String @default("")
625
+ readOnly Boolean @default(false) @map("read_only")
626
+ description String @default("")
628
627
 
629
628
  teamId String? @map("team_id")
630
629
  team Team? @relation("TeamToMetadataField", fields: [teamId], references: [id])