mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-19 14:16:29 +00:00
chore(deps): upgrade bun to 1.4.4 and migrate to bun fmt (#488)
- Upgrade Bun to 1.4.4 across Dockerfiles, CI workflows, and release configurations. - Update @types/bun and bun-types. - Remove eslint-plugin-prettier and update format script to use native bun fmt. - Configure .prettierignore to exclude packages/webui/public and minified files.
This commit is contained in:
@@ -24,7 +24,7 @@ jobs:
|
|||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: 1.4.2
|
bun-version: 1.4.4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install
|
||||||
@@ -81,7 +81,7 @@ jobs:
|
|||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: 1.4.2
|
bun-version: 1.4.4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install
|
||||||
@@ -126,7 +126,7 @@ jobs:
|
|||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: 1.4.2
|
bun-version: 1.4.4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install
|
||||||
@@ -163,7 +163,7 @@ jobs:
|
|||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: 1.4.2
|
bun-version: 1.4.4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: 1.4.2
|
bun-version: 1.4.4
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
|
|||||||
@@ -9,3 +9,6 @@ packages/webui/paraglide
|
|||||||
*.md
|
*.md
|
||||||
**/*.md
|
**/*.md
|
||||||
docs/changelog.mdx
|
docs/changelog.mdx
|
||||||
|
packages/webui/public
|
||||||
|
**/*.min.*
|
||||||
|
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ The project is a monorepo managed by **Bun Workspaces**. It follows a strictly d
|
|||||||
We follow Bun's monorepo conventions for dependency management:
|
We follow Bun's monorepo conventions for dependency management:
|
||||||
|
|
||||||
1. **Self-Contained Packages**: Every workspace package MUST declare its own runtime `dependencies` in its local `package.json`. Do not rely on dependencies being available via the root.
|
1. **Self-Contained Packages**: Every workspace package MUST declare its own runtime `dependencies` in its local `package.json`. Do not rely on dependencies being available via the root.
|
||||||
2. **Shared DevDependencies**: Common development tools (e.g., `typescript`, `eslint`, `vitest`, `prettier`, `prisma`) MUST be declared in the root `package.json` to ensure version consistency across the workspace.
|
2. **Shared DevDependencies**: Common development tools (e.g., `typescript`, `eslint`, `vitest`, `prisma`) MUST be declared in the root `package.json` to ensure version consistency across the workspace.
|
||||||
3. **Local DevDependencies**: Tools specific to a single package (e.g., `@vitejs/plugin-react` for `webui`) should be declared in that package's local `package.json`.
|
3. **Local DevDependencies**: Tools specific to a single package (e.g., `@vitejs/plugin-react` for `webui`) should be declared in that package's local `package.json`.
|
||||||
4. **Workspace Imports**: Use `workspace:*` for internal package dependencies.
|
4. **Workspace Imports**: Use `workspace:*` for internal package dependencies.
|
||||||
5. **Clean Root**: The root `package.json` must not contain runtime `dependencies`. It is reserved for shared `devDependencies` and workspace-wide `scripts`.
|
5. **Clean Root**: The root `package.json` must not contain runtime `dependencies`. It is reserved for shared `devDependencies` and workspace-wide `scripts`.
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
#syntax=docker/dockerfile:1.7-labs
|
#syntax=docker/dockerfile:1.7-labs
|
||||||
# Stage 1: Builder
|
# Stage 1: Builder
|
||||||
FROM oven/bun:1.4.2 AS builder
|
FROM oven/bun:1.4.4 AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ RUN bun run build.ts
|
|||||||
RUN bun run scripts/extract-runtime-deps.ts
|
RUN bun run scripts/extract-runtime-deps.ts
|
||||||
|
|
||||||
# Stage 2: Runner
|
# Stage 2: Runner
|
||||||
FROM oven/bun:1.4.2 AS runner
|
FROM oven/bun:1.4.4 AS runner
|
||||||
|
|
||||||
# Install system dependencies and Jellyfin-FFmpeg (with VA-API support)
|
# Install system dependencies and Jellyfin-FFmpeg (with VA-API support)
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#syntax=docker/dockerfile:1.7-labs
|
#syntax=docker/dockerfile:1.7-labs
|
||||||
# Stage 1: Builder
|
# Stage 1: Builder
|
||||||
FROM oven/bun:1.4.2 AS builder
|
FROM oven/bun:1.4.4 AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ RUN bun run build.ts transcode
|
|||||||
RUN bun run scripts/extract-runtime-deps.ts
|
RUN bun run scripts/extract-runtime-deps.ts
|
||||||
|
|
||||||
# Stage 2: Runner
|
# Stage 2: Runner
|
||||||
FROM oven/bun:1.4.2 AS runner
|
FROM oven/bun:1.4.4 AS runner
|
||||||
|
|
||||||
# Install transcoding system dependencies and Jellyfin-FFmpeg (with VA-API/hardware acceleration support)
|
# Install transcoding system dependencies and Jellyfin-FFmpeg (with VA-API/hardware acceleration support)
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
|||||||
@@ -11,14 +11,13 @@
|
|||||||
"@testcontainers/postgresql": "12.1.0",
|
"@testcontainers/postgresql": "12.1.0",
|
||||||
"@testing-library/dom": "10.4.1",
|
"@testing-library/dom": "10.4.1",
|
||||||
"@testing-library/react": "16.3.3",
|
"@testing-library/react": "16.3.3",
|
||||||
"@types/bun": "1.4.0",
|
"@types/bun": "1.4.3",
|
||||||
"@types/node": "25.9.1",
|
"@types/node": "25.9.1",
|
||||||
"bun-plugin-pino": "1.5.0",
|
"bun-plugin-pino": "1.5.0",
|
||||||
"bun-plugin-tailwind": "0.1.2",
|
"bun-plugin-tailwind": "0.1.2",
|
||||||
"bun-types": "1.4.0",
|
"bun-types": "1.4.3",
|
||||||
"eslint": "10.9.1",
|
"eslint": "10.9.1",
|
||||||
"eslint-config-prettier": "10.1.8",
|
"eslint-config-prettier": "10.1.8",
|
||||||
"eslint-plugin-prettier": "5.5.6",
|
|
||||||
"eslint-plugin-react": "7.37.5",
|
"eslint-plugin-react": "7.37.5",
|
||||||
"globals": "17.11.0",
|
"globals": "17.11.0",
|
||||||
"happy-dom": "20.12.0",
|
"happy-dom": "20.12.0",
|
||||||
@@ -882,8 +881,6 @@
|
|||||||
|
|
||||||
"@pkgjs/parseargs": ["@pkgjs/parseargs@0.11.0", "", {}, "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg=="],
|
"@pkgjs/parseargs": ["@pkgjs/parseargs@0.11.0", "", {}, "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg=="],
|
||||||
|
|
||||||
"@pkgr/core": ["@pkgr/core@0.3.6", "", {}, "sha512-SEeaJLb3qBNF/OaXnaR1NmmBbFYk1zC0ZH/52fATcRPLFg/p791YrcyFFy44Bo9sLaGuSuLp5Q6axbb/O+v/RA=="],
|
|
||||||
|
|
||||||
"@playwright/test": ["@playwright/test@1.61.1", "", { "dependencies": { "playwright": "1.61.1" }, "bin": { "playwright": "cli.js" } }, "sha512-8nKv6+0RJSL9FE4jYOEGXnPeM/Hg12qZpmqzZjRh3qM0Y7c3z1mrOTfFLids72RDQYVh9WpLEfR5WdpNX4fkig=="],
|
"@playwright/test": ["@playwright/test@1.61.1", "", { "dependencies": { "playwright": "1.61.1" }, "bin": { "playwright": "cli.js" } }, "sha512-8nKv6+0RJSL9FE4jYOEGXnPeM/Hg12qZpmqzZjRh3qM0Y7c3z1mrOTfFLids72RDQYVh9WpLEfR5WdpNX4fkig=="],
|
||||||
|
|
||||||
"@pondwader/socks5-server": ["@pondwader/socks5-server@1.0.10", "", {}, "sha512-bQY06wzzR8D2+vVCUoBsr5QS2U6UgPUQRmErNwtsuI6vLcyRKkafjkr3KxbtGFf9aBBIV2mcvlsKD1UYaIV+sg=="],
|
"@pondwader/socks5-server": ["@pondwader/socks5-server@1.0.10", "", {}, "sha512-bQY06wzzR8D2+vVCUoBsr5QS2U6UgPUQRmErNwtsuI6vLcyRKkafjkr3KxbtGFf9aBBIV2mcvlsKD1UYaIV+sg=="],
|
||||||
@@ -1428,7 +1425,7 @@
|
|||||||
|
|
||||||
"@types/aria-query": ["@types/aria-query@5.0.4", "", {}, "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw=="],
|
"@types/aria-query": ["@types/aria-query@5.0.4", "", {}, "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw=="],
|
||||||
|
|
||||||
"@types/bun": ["@types/bun@1.4.0", "", { "dependencies": { "bun-types": "1.4.0" } }, "sha512-K+lZULY23vRgK/CfTjFIV+tyifaNdSMlPh9j+6mQ/cLfpOznLyAuzgV/JQysyECpkBQLVMSyvjlr2fBUSA9wFQ=="],
|
"@types/bun": ["@types/bun@1.4.3", "", { "dependencies": { "bun-types": "1.4.3" } }, "sha512-N67Pqy8JXbAY/j0tNraS3V5mubGvc6rrrNDmDCtZLlFzccbUJPDb0tvgUBC5q4m8ybkP93Jcn1QB+RYQ6PvBhw=="],
|
||||||
|
|
||||||
"@types/chai": ["@types/chai@5.2.3", "", { "dependencies": { "@types/deep-eql": "*", "assertion-error": "^2.0.1" } }, "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA=="],
|
"@types/chai": ["@types/chai@5.2.3", "", { "dependencies": { "@types/deep-eql": "*", "assertion-error": "^2.0.1" } }, "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA=="],
|
||||||
|
|
||||||
@@ -1708,7 +1705,7 @@
|
|||||||
|
|
||||||
"bun-plugin-tailwind": ["bun-plugin-tailwind@0.1.2", "", { "peerDependencies": { "bun": ">=1.0.0" } }, "sha512-41jNC1tZRSK3s1o7pTNrLuQG8kL/0vR/JgiTmZAJ1eHwe0w5j6HFPKeqEk0WAD13jfrUC7+ULuewFBBCoADPpg=="],
|
"bun-plugin-tailwind": ["bun-plugin-tailwind@0.1.2", "", { "peerDependencies": { "bun": ">=1.0.0" } }, "sha512-41jNC1tZRSK3s1o7pTNrLuQG8kL/0vR/JgiTmZAJ1eHwe0w5j6HFPKeqEk0WAD13jfrUC7+ULuewFBBCoADPpg=="],
|
||||||
|
|
||||||
"bun-types": ["bun-types@1.4.0", "", { "dependencies": { "@types/node": "*" } }, "sha512-iIKw23BspnQQYd3prITOBxeUsxBHnwzX6YJfGMuNOZzeNcMmVqzIIVGRm1l69ogaPQmb4wB6BN8mA5bE9YuC5Q=="],
|
"bun-types": ["bun-types@1.4.3", "", { "dependencies": { "@types/node": "*", "undici-types": "*" } }, "sha512-tinRJNGOmUN+tEAsn2y2e942n9JHRHR42iUYzDH75NmhJqVBokGSQkkfSFdNWwsANIdrK6ACH9t01M452YyTwg=="],
|
||||||
|
|
||||||
"byline": ["byline@5.0.0", "", {}, "sha512-s6webAy+R4SR8XVuJWt2V2rGvhnrhxN+9S15GNuTK3wKPOXFF6RNc+8ug2XhH+2s4f+uudG4kUVYmYOQWL2g0Q=="],
|
"byline": ["byline@5.0.0", "", {}, "sha512-s6webAy+R4SR8XVuJWt2V2rGvhnrhxN+9S15GNuTK3wKPOXFF6RNc+8ug2XhH+2s4f+uudG4kUVYmYOQWL2g0Q=="],
|
||||||
|
|
||||||
@@ -1942,8 +1939,6 @@
|
|||||||
|
|
||||||
"eslint-config-prettier": ["eslint-config-prettier@10.1.8", "", { "peerDependencies": { "eslint": ">=7.0.0" }, "bin": { "eslint-config-prettier": "bin/cli.js" } }, "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w=="],
|
"eslint-config-prettier": ["eslint-config-prettier@10.1.8", "", { "peerDependencies": { "eslint": ">=7.0.0" }, "bin": { "eslint-config-prettier": "bin/cli.js" } }, "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w=="],
|
||||||
|
|
||||||
"eslint-plugin-prettier": ["eslint-plugin-prettier@5.5.6", "", { "dependencies": { "prettier-linter-helpers": "^1.0.1", "synckit": "^0.11.13" }, "peerDependencies": { "@types/eslint": ">=8.0.0", "eslint": ">=8.0.0", "eslint-config-prettier": ">= 7.0.0 <10.0.0 || >=10.1.0", "prettier": ">=3.0.0" }, "optionalPeers": ["@types/eslint", "eslint-config-prettier"] }, "sha512-ifetmTcxWfz+4qRW3pH/ujdTq2jQIj59AxJMIN26K5avYgU8dxycUETQonWiW+wPrYXA0j3Try0l1CnwVQtDqQ=="],
|
|
||||||
|
|
||||||
"eslint-plugin-react": ["eslint-plugin-react@7.37.5", "", { "dependencies": { "array-includes": "^3.1.8", "array.prototype.findlast": "^1.2.5", "array.prototype.flatmap": "^1.3.3", "array.prototype.tosorted": "^1.1.4", "doctrine": "^2.1.0", "es-iterator-helpers": "^1.2.1", "estraverse": "^5.3.0", "hasown": "^2.0.2", "jsx-ast-utils": "^2.4.1 || ^3.0.0", "minimatch": "^3.1.2", "object.entries": "^1.1.9", "object.fromentries": "^2.0.8", "object.values": "^1.2.1", "prop-types": "^15.8.1", "resolve": "^2.0.0-next.5", "semver": "^6.3.1", "string.prototype.matchall": "^4.0.12", "string.prototype.repeat": "^1.0.0" }, "peerDependencies": { "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" } }, "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA=="],
|
"eslint-plugin-react": ["eslint-plugin-react@7.37.5", "", { "dependencies": { "array-includes": "^3.1.8", "array.prototype.findlast": "^1.2.5", "array.prototype.flatmap": "^1.3.3", "array.prototype.tosorted": "^1.1.4", "doctrine": "^2.1.0", "es-iterator-helpers": "^1.2.1", "estraverse": "^5.3.0", "hasown": "^2.0.2", "jsx-ast-utils": "^2.4.1 || ^3.0.0", "minimatch": "^3.1.2", "object.entries": "^1.1.9", "object.fromentries": "^2.0.8", "object.values": "^1.2.1", "prop-types": "^15.8.1", "resolve": "^2.0.0-next.5", "semver": "^6.3.1", "string.prototype.matchall": "^4.0.12", "string.prototype.repeat": "^1.0.0" }, "peerDependencies": { "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" } }, "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA=="],
|
||||||
|
|
||||||
"eslint-scope": ["eslint-scope@9.1.2", "", { "dependencies": { "@types/esrecurse": "^4.3.1", "@types/estree": "^1.0.8", "esrecurse": "^4.3.0", "estraverse": "^5.2.0" } }, "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ=="],
|
"eslint-scope": ["eslint-scope@9.1.2", "", { "dependencies": { "@types/esrecurse": "^4.3.1", "@types/estree": "^1.0.8", "esrecurse": "^4.3.0", "estraverse": "^5.2.0" } }, "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ=="],
|
||||||
@@ -2000,8 +1995,6 @@
|
|||||||
|
|
||||||
"fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="],
|
"fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="],
|
||||||
|
|
||||||
"fast-diff": ["fast-diff@1.3.0", "", {}, "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw=="],
|
|
||||||
|
|
||||||
"fast-fifo": ["fast-fifo@1.3.2", "", {}, "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ=="],
|
"fast-fifo": ["fast-fifo@1.3.2", "", {}, "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ=="],
|
||||||
|
|
||||||
"fast-json-stable-stringify": ["fast-json-stable-stringify@2.1.0", "", {}, "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="],
|
"fast-json-stable-stringify": ["fast-json-stable-stringify@2.1.0", "", {}, "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="],
|
||||||
@@ -2576,8 +2569,6 @@
|
|||||||
|
|
||||||
"prettier": ["prettier@3.9.6", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g=="],
|
"prettier": ["prettier@3.9.6", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g=="],
|
||||||
|
|
||||||
"prettier-linter-helpers": ["prettier-linter-helpers@1.0.1", "", { "dependencies": { "fast-diff": "^1.1.2" } }, "sha512-SxToR7P8Y2lWmv/kTzVLC1t/GDI2WGjMwNhLLE9qtH8Q13C+aEmuRlzDst4Up4s0Wc8sF2M+J57iB3cMLqftfg=="],
|
|
||||||
|
|
||||||
"pretty-format": ["pretty-format@27.5.1", "", { "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", "react-is": "^17.0.1" } }, "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ=="],
|
"pretty-format": ["pretty-format@27.5.1", "", { "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", "react-is": "^17.0.1" } }, "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ=="],
|
||||||
|
|
||||||
"prisma": ["prisma@7.10.0", "", { "dependencies": { "@prisma/config": "7.10.0", "@prisma/dev": "0.24.17", "@prisma/engines": "7.10.0", "@prisma/studio-core": "0.33.0", "mysql2": "3.15.3", "postgres": "3.4.7" }, "peerDependencies": { "better-sqlite3": ">=9.0.0", "typescript": ">=5.4.0" }, "optionalPeers": ["better-sqlite3", "typescript"], "bin": { "prisma": "build/index.js" } }, "sha512-o0ornyJOWgygVAzGCpr8PdXV8EJLHyVGDDUr/voBQt8Azzw8cYTByzzPGcA/m4tCkPcnJA8raEOv2CslsKhPEw=="],
|
"prisma": ["prisma@7.10.0", "", { "dependencies": { "@prisma/config": "7.10.0", "@prisma/dev": "0.24.17", "@prisma/engines": "7.10.0", "@prisma/studio-core": "0.33.0", "mysql2": "3.15.3", "postgres": "3.4.7" }, "peerDependencies": { "better-sqlite3": ">=9.0.0", "typescript": ">=5.4.0" }, "optionalPeers": ["better-sqlite3", "typescript"], "bin": { "prisma": "build/index.js" } }, "sha512-o0ornyJOWgygVAzGCpr8PdXV8EJLHyVGDDUr/voBQt8Azzw8cYTByzzPGcA/m4tCkPcnJA8raEOv2CslsKhPEw=="],
|
||||||
@@ -2802,8 +2793,6 @@
|
|||||||
|
|
||||||
"supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="],
|
"supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="],
|
||||||
|
|
||||||
"synckit": ["synckit@0.11.13", "", { "dependencies": { "@pkgr/core": "^0.3.6" } }, "sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg=="],
|
|
||||||
|
|
||||||
"tabbable": ["tabbable@6.5.0", "", {}, "sha512-wieBHXygIm7OyQOu5hQlkk62/WyCFYGlWg7L6/ZCUZwx0o398Zkn4pVmMyfYhfMG8kGrj/Krt8eIk6UKC6VzwA=="],
|
"tabbable": ["tabbable@6.5.0", "", {}, "sha512-wieBHXygIm7OyQOu5hQlkk62/WyCFYGlWg7L6/ZCUZwx0o398Zkn4pVmMyfYhfMG8kGrj/Krt8eIk6UKC6VzwA=="],
|
||||||
|
|
||||||
"tailwind-merge": ["tailwind-merge@3.6.0", "", {}, "sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w=="],
|
"tailwind-merge": ["tailwind-merge@3.6.0", "", {}, "sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w=="],
|
||||||
|
|||||||
+3
-4
@@ -24,7 +24,7 @@
|
|||||||
"test:e2e:workflow": "bun --bun vitest run -c packages/e2e/vitest.config.ts",
|
"test:e2e:workflow": "bun --bun vitest run -c packages/e2e/vitest.config.ts",
|
||||||
"test:e2e:install": "playwright install --with-deps",
|
"test:e2e:install": "playwright install --with-deps",
|
||||||
"harness:dev": "bun run packages/webui/e2e/harness/serve.ts",
|
"harness:dev": "bun run packages/webui/e2e/harness/serve.ts",
|
||||||
"format": "prettier --write .",
|
"format": "bun fmt",
|
||||||
"db:migrate": "bun run prisma migrate dev",
|
"db:migrate": "bun run prisma migrate dev",
|
||||||
"db:deploy": "bun run prisma migrate deploy",
|
"db:deploy": "bun run prisma migrate deploy",
|
||||||
"db:generate": "cd packages/db && bunx prisma generate",
|
"db:generate": "cd packages/db && bunx prisma generate",
|
||||||
@@ -50,14 +50,13 @@
|
|||||||
"@testcontainers/postgresql": "12.1.0",
|
"@testcontainers/postgresql": "12.1.0",
|
||||||
"@testing-library/dom": "10.4.1",
|
"@testing-library/dom": "10.4.1",
|
||||||
"@testing-library/react": "16.3.3",
|
"@testing-library/react": "16.3.3",
|
||||||
"@types/bun": "1.4.0",
|
"@types/bun": "1.4.3",
|
||||||
"@types/node": "25.9.1",
|
"@types/node": "25.9.1",
|
||||||
"bun-plugin-pino": "1.5.0",
|
"bun-plugin-pino": "1.5.0",
|
||||||
"bun-plugin-tailwind": "0.1.2",
|
"bun-plugin-tailwind": "0.1.2",
|
||||||
"bun-types": "1.4.0",
|
"bun-types": "1.4.3",
|
||||||
"eslint": "10.9.1",
|
"eslint": "10.9.1",
|
||||||
"eslint-config-prettier": "10.1.8",
|
"eslint-config-prettier": "10.1.8",
|
||||||
"eslint-plugin-prettier": "5.5.6",
|
|
||||||
"eslint-plugin-react": "7.37.5",
|
"eslint-plugin-react": "7.37.5",
|
||||||
"globals": "17.11.0",
|
"globals": "17.11.0",
|
||||||
"happy-dom": "20.12.0",
|
"happy-dom": "20.12.0",
|
||||||
|
|||||||
@@ -859,13 +859,7 @@ export const initializeAgentSessionActivity = defineStep(
|
|||||||
name: att.asset.name,
|
name: att.asset.name,
|
||||||
type: att.asset.type,
|
type: att.asset.type,
|
||||||
mediaType: attProxyType as
|
mediaType: attProxyType as
|
||||||
| 'image'
|
'image' | 'video' | 'pdf' | 'audio' | '3d' | 'other' | undefined,
|
||||||
| 'video'
|
|
||||||
| 'pdf'
|
|
||||||
| 'audio'
|
|
||||||
| '3d'
|
|
||||||
| 'other'
|
|
||||||
| undefined,
|
|
||||||
mimeType: att.asset.mediaType || undefined,
|
mimeType: att.asset.mediaType || undefined,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,8 +34,7 @@ export async function resolveAnnotationsById(
|
|||||||
})
|
})
|
||||||
if (entry) {
|
if (entry) {
|
||||||
const details = (entry.data as Record<string, unknown> | null)?.details as
|
const details = (entry.data as Record<string, unknown> | null)?.details as
|
||||||
| ShumaiMessageContext
|
ShumaiMessageContext | undefined
|
||||||
| undefined
|
|
||||||
const entryAssetId = entry.assetId || details?.currentAsset?.id
|
const entryAssetId = entry.assetId || details?.currentAsset?.id
|
||||||
if (entryAssetId && entryAssetId !== assetId) {
|
if (entryAssetId && entryAssetId !== assetId) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|||||||
@@ -355,8 +355,7 @@ export function createReadAssetTool(
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- transcode screenshot output
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- transcode screenshot output
|
||||||
const output = completedTask.output as any
|
const output = completedTask.output as any
|
||||||
const screenshots = output?.screenshots as
|
const screenshots = output?.screenshots as
|
||||||
| Array<{ key: string; timestamp: number }>
|
Array<{ key: string; timestamp: number }> | undefined
|
||||||
| undefined
|
|
||||||
|
|
||||||
if (!screenshots || screenshots.length === 0) {
|
if (!screenshots || screenshots.length === 0) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
@@ -620,8 +619,7 @@ export function createReadAssetTool(
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- transcode screenshot output
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- transcode screenshot output
|
||||||
const output = completedTask.output as any
|
const output = completedTask.output as any
|
||||||
const screenshots = output?.screenshots as
|
const screenshots = output?.screenshots as
|
||||||
| Array<{ key: string; timestamp: number }>
|
Array<{ key: string; timestamp: number }> | undefined
|
||||||
| undefined
|
|
||||||
|
|
||||||
if (!screenshots || screenshots.length === 0) {
|
if (!screenshots || screenshots.length === 0) {
|
||||||
throw new Error('No screenshots were generated.')
|
throw new Error('No screenshots were generated.')
|
||||||
|
|||||||
@@ -2408,12 +2408,7 @@ export class AssetService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const proxyType = (media?.proxyType || null) as
|
const proxyType = (media?.proxyType || null) as
|
||||||
| 'image'
|
'image' | 'video' | 'audio' | 'pdf' | '3d' | null
|
||||||
| 'video'
|
|
||||||
| 'audio'
|
|
||||||
| 'pdf'
|
|
||||||
| '3d'
|
|
||||||
| null
|
|
||||||
|
|
||||||
result.push({
|
result.push({
|
||||||
id: a.id,
|
id: a.id,
|
||||||
@@ -2780,12 +2775,7 @@ export class AssetService {
|
|||||||
if (!asset.media) return null
|
if (!asset.media) return null
|
||||||
|
|
||||||
const proxyType = (asset.media?.proxyType || null) as
|
const proxyType = (asset.media?.proxyType || null) as
|
||||||
| 'image'
|
'image' | 'video' | 'audio' | 'pdf' | '3d' | null
|
||||||
| 'video'
|
|
||||||
| 'audio'
|
|
||||||
| 'pdf'
|
|
||||||
| '3d'
|
|
||||||
| null
|
|
||||||
|
|
||||||
let rawThumbKey: string | undefined
|
let rawThumbKey: string | undefined
|
||||||
if (proxyType === 'image' && asset.media.thumbnail?.key) {
|
if (proxyType === 'image' && asset.media.thumbnail?.key) {
|
||||||
@@ -2864,11 +2854,7 @@ export class AssetService {
|
|||||||
'GET',
|
'GET',
|
||||||
)
|
)
|
||||||
const attachmentProxyType = (a.asset.media?.proxyType || null) as
|
const attachmentProxyType = (a.asset.media?.proxyType || null) as
|
||||||
| 'image'
|
'image' | 'video' | 'audio' | 'pdf' | null
|
||||||
| 'video'
|
|
||||||
| 'audio'
|
|
||||||
| 'pdf'
|
|
||||||
| null
|
|
||||||
attachments.push({
|
attachments.push({
|
||||||
id: a.id,
|
id: a.id,
|
||||||
assetId: a.asset.id,
|
assetId: a.asset.id,
|
||||||
|
|||||||
@@ -90,9 +90,7 @@ export class GotenbergService {
|
|||||||
})
|
})
|
||||||
if (versionRes.ok) {
|
if (versionRes.ok) {
|
||||||
const vData = (await versionRes.json().catch(() => null)) as
|
const vData = (await versionRes.json().catch(() => null)) as
|
||||||
| { version?: string }
|
{ version?: string } | string | null
|
||||||
| string
|
|
||||||
| null
|
|
||||||
if (vData && typeof vData === 'object' && 'version' in vData) {
|
if (vData && typeof vData === 'object' && 'version' in vData) {
|
||||||
version = String(vData.version)
|
version = String(vData.version)
|
||||||
} else if (typeof vData === 'string') {
|
} else if (typeof vData === 'string') {
|
||||||
|
|||||||
@@ -68,8 +68,7 @@ export async function resolveIntegrationConfig<TKey extends keyof PrismaJson.Set
|
|||||||
})
|
})
|
||||||
const teamSettings = team?.settings as PrismaJson.Settings | null
|
const teamSettings = team?.settings as PrismaJson.Settings | null
|
||||||
const serviceSettings = teamSettings?.[def.settingsKey] as
|
const serviceSettings = teamSettings?.[def.settingsKey] as
|
||||||
| { url?: string; username?: string; password?: string }
|
{ url?: string; username?: string; password?: string } | undefined
|
||||||
| undefined
|
|
||||||
|
|
||||||
if (serviceSettings?.url?.trim()) {
|
if (serviceSettings?.url?.trim()) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -41,9 +41,7 @@ export interface ProxyServerInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type ConnectionOutcome =
|
export type ConnectionOutcome =
|
||||||
| { status: 'connected' }
|
{ status: 'connected' } | { status: 'needs-auth' } | { status: 'error'; message: string }
|
||||||
| { status: 'needs-auth' }
|
|
||||||
| { status: 'error'; message: string }
|
|
||||||
|
|
||||||
export interface CallToolOutcome {
|
export interface CallToolOutcome {
|
||||||
ok: boolean
|
ok: boolean
|
||||||
|
|||||||
@@ -351,8 +351,7 @@ export class McpService {
|
|||||||
instructions?: string | null
|
instructions?: string | null
|
||||||
} = {}
|
} = {}
|
||||||
const impl = connection.serverVersion as
|
const impl = connection.serverVersion as
|
||||||
| { name?: string; title?: string; description?: string }
|
{ name?: string; title?: string; description?: string } | undefined
|
||||||
| undefined
|
|
||||||
if (impl && typeof impl === 'object') {
|
if (impl && typeof impl === 'object') {
|
||||||
const reportedName = impl.title ?? impl.name
|
const reportedName = impl.title ?? impl.name
|
||||||
if (typeof reportedName === 'string' && reportedName.trim() !== '') {
|
if (typeof reportedName === 'string' && reportedName.trim() !== '') {
|
||||||
|
|||||||
@@ -1141,8 +1141,7 @@ async function loadModelsDevData(): Promise<Model<any>[]> {
|
|||||||
baseUrl: getBedrockBaseUrl(id),
|
baseUrl: getBedrockBaseUrl(id),
|
||||||
reasoning: m.reasoning === true,
|
reasoning: m.reasoning === true,
|
||||||
input: (m.modalities?.input?.includes('image') ? ['text', 'image'] : ['text']) as (
|
input: (m.modalities?.input?.includes('image') ? ['text', 'image'] : ['text']) as (
|
||||||
| 'text'
|
'text' | 'image'
|
||||||
| 'image'
|
|
||||||
)[],
|
)[],
|
||||||
cost: {
|
cost: {
|
||||||
input: m.cost?.input || 0,
|
input: m.cost?.input || 0,
|
||||||
|
|||||||
@@ -243,8 +243,7 @@ export function ChatbotSidebar({
|
|||||||
const msgObj = msg as unknown as Record<string, unknown>
|
const msgObj = msg as unknown as Record<string, unknown>
|
||||||
if (msg.role === 'custom' && msgObj.customType === 'context_display_info') {
|
if (msg.role === 'custom' && msgObj.customType === 'context_display_info') {
|
||||||
const details = msgObj.details as
|
const details = msgObj.details as
|
||||||
| { assets?: Array<{ id: string; name: string; type: string }> }
|
{ assets?: Array<{ id: string; name: string; type: string }> } | undefined
|
||||||
| undefined
|
|
||||||
const assets = details?.assets || []
|
const assets = details?.assets || []
|
||||||
if (assets.length === 0) return null
|
if (assets.length === 0) return null
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -62,8 +62,7 @@ function TeamPage() {
|
|||||||
const { metadata, setMetadata: setUserMetadata } = useUserMetadataStore()
|
const { metadata, setMetadata: setUserMetadata } = useUserMetadataStore()
|
||||||
const sortKey = `team:${teamId}:projects:sort`
|
const sortKey = `team:${teamId}:projects:sort`
|
||||||
const savedSort = metadata[sortKey] as
|
const savedSort = metadata[sortKey] as
|
||||||
| { sortBy?: string; sortDirection?: 'asc' | 'desc' }
|
{ sortBy?: string; sortDirection?: 'asc' | 'desc' } | undefined
|
||||||
| undefined
|
|
||||||
|
|
||||||
const [sortBy, setSortBy] = useState<string>(() => savedSort?.sortBy || 'name')
|
const [sortBy, setSortBy] = useState<string>(() => savedSort?.sortBy || 'name')
|
||||||
const [sortDirection, setSortDirection] = useState<'asc' | 'desc'>(
|
const [sortDirection, setSortDirection] = useState<'asc' | 'desc'>(
|
||||||
|
|||||||
Reference in New Issue
Block a user