diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 68ea3f1..570e4f0 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -32,7 +32,8 @@ jobs: - name: Check if version is already published run: | PACKAGE_VERSION=$(node -p "require('./package.json').version") - npm view kunkun-ext-video-processing@$PACKAGE_VERSION + PACKAGE_NAME=$(jq -r '.name' package.json) + npm view $PACKAGE_NAME@$PACKAGE_VERSION continue-on-error: true id: check_version - name: Publish diff --git a/package.json b/package.json index c92ec84..3539131 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "$schema": "https://schema.kunkun.sh", "license": "MIT", "name": "kunkun-ext-video-processing", - "version": "0.1.0", + "version": "0.1.1", "repository": "https://github.com/kunkunsh/kunkun-ext-video-processing", "author": { "name": "Huakun", @@ -112,7 +112,7 @@ "dependencies": { "@hk/photographer-toolbox": "npm:@jsr/hk__photographer-toolbox@^0.1.8", "@iconify/svelte": "^4.0.2", - "@kksh/api": "^0.0.52", + "@kksh/api": "^0.1.1", "@kksh/svelte5": "^0.1.9", "@tanstack/table-core": "^8.20.5", "clsx": "^2.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 012fb4e..0bad1b2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^4.0.2 version: 4.0.2(svelte@5.1.16) '@kksh/api': - specifier: ^0.0.52 - version: 0.0.52(axios@1.7.9)(svelte@5.1.16)(typescript@5.6.3) + specifier: ^0.1.1 + version: 0.1.1(axios@1.7.9)(svelte@5.1.16)(typescript@5.6.3) '@kksh/svelte5': specifier: ^0.1.9 version: 0.1.9(lucide-svelte@0.416.0(svelte@5.1.16))(svelte-sonner@0.3.28(svelte@5.1.16))(svelte@5.1.16) @@ -612,8 +612,8 @@ packages: '@jsr/valibot__valibot@0.42.1': resolution: {integrity: sha512-JjIzyXUQTkmTbiDXUJoFHDigviK12MUd69lGA28fGuhfivzvFv8TgPxkfH3I0wL0skCc5Rl5+g1IFnwYwVZWRw==, tarball: https://npm.jsr.io/~/11/@jsr/valibot__valibot/0.42.1.tgz} - '@kksh/api@0.0.52': - resolution: {integrity: sha512-ss1cGJaO58iGkUcuBCcKCaepX4iquf+78VT8wh0l409proGgN68cTPpSPECuK9r3BrqnIocTOtn9nDtfHdxj+A==} + '@kksh/api@0.1.1': + resolution: {integrity: sha512-/9JLyOSAK4/dZ74LKzbqJ8LRT0otwtecS+I/k1Bs25m+DfYX8ONaWUwuwc5yufus6vqNbfAF/PHOCEs0aAE39A==} '@kksh/svelte5@0.1.9': resolution: {integrity: sha512-k6NNyLHCfoC1XQ09dWBtZJDYOLJiXZ9KxmSwtZbu4rdepoY0tMYql+odj92w2tjhzM6Q/LHdtq6DNz67Fxf20Q==} @@ -642,6 +642,58 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} + '@octokit/auth-token@5.1.2': + resolution: {integrity: sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw==} + engines: {node: '>= 18'} + + '@octokit/core@6.1.3': + resolution: {integrity: sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==} + engines: {node: '>= 18'} + + '@octokit/endpoint@10.1.2': + resolution: {integrity: sha512-XybpFv9Ms4hX5OCHMZqyODYqGTZ3H6K6Vva+M9LR7ib/xr1y1ZnlChYv9H680y77Vd/i/k+thXApeRASBQkzhA==} + engines: {node: '>= 18'} + + '@octokit/graphql@8.2.0': + resolution: {integrity: sha512-gejfDywEml/45SqbWTWrhfwvLBrcGYhOn50sPOjIeVvH6i7D16/9xcFA8dAJNp2HMcd+g4vru41g4E2RBiZvfQ==} + engines: {node: '>= 18'} + + '@octokit/openapi-types@23.0.1': + resolution: {integrity: sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g==} + + '@octokit/plugin-paginate-rest@11.4.0': + resolution: {integrity: sha512-ttpGck5AYWkwMkMazNCZMqxKqIq1fJBNxBfsFwwfyYKTf914jKkLF0POMS3YkPBwp5g1c2Y4L79gDz01GhSr1g==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/plugin-request-log@5.3.1': + resolution: {integrity: sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/plugin-rest-endpoint-methods@13.3.0': + resolution: {integrity: sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/request-error@6.1.6': + resolution: {integrity: sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==} + engines: {node: '>= 18'} + + '@octokit/request@9.2.0': + resolution: {integrity: sha512-kXLfcxhC4ozCnAXy2ff+cSxpcF0A1UqxjvYMqNuPIeOAzJbVWQ+dy5G2fTylofB/gTbObT8O6JORab+5XtA1Kw==} + engines: {node: '>= 18'} + + '@octokit/rest@21.1.0': + resolution: {integrity: sha512-93iLxcKDJboUpmnUyeJ6cRIi7z7cqTZT1K7kRK4LobGxwTwpsa+2tQQbRQNGy7IFDEAmrtkf4F4wBj3D5rVlJQ==} + engines: {node: '>= 18'} + + '@octokit/types@13.8.0': + resolution: {integrity: sha512-x7DjTIbEpEWXK99DMd01QfWy0hd5h4EN+Q7shkdKds3otGQP+oWE/y0A76i1OvH9fygo4ddvNf7ZvF0t78P98A==} + '@photostructure/tz-lookup@11.0.0': resolution: {integrity: sha512-QMV5/dWtY/MdVPXZs/EApqzyhnqDq1keYEqpS+Xj2uidyaqw2Nk/fWcsszdruIXjdqp1VoWNzsgrO6bUHU1mFw==} @@ -1124,6 +1176,9 @@ packages: resolution: {integrity: sha512-EreW0Vi8TwovhYUHBXXRA5tthuU2ynGsZFlboyMJHCCUXYa2AjgwnE3ubBOJs2xJLcuXFJbi6c/8pH5+FVj8Og==} engines: {node: '>=14'} + before-after-hook@3.0.2: + resolution: {integrity: sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==} + binary-extensions@2.3.0: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} @@ -1434,6 +1489,9 @@ packages: resolution: {integrity: sha512-u/MudsoQEgBUZgR5N1v87vEgybeVYus9VnDVaIkxkkGP2jt54naghQ3PCQHJiogS8U/GavZCUPFfx3Xkp+NaHw==} engines: {node: '>=8.0.0'} + fast-content-type-parse@2.0.1: + resolution: {integrity: sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q==} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -1729,15 +1787,10 @@ packages: keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - kkrpc@0.0.12: - resolution: {integrity: sha512-PBk4AhGfkesIdAwmIoj7dHHIp7qN97XT4yr5Rl7h2WL79gxWQVgZRJYLt7Gb17GoLDh991rnL85mhCoPG5VC/Q==} + kkrpc@0.1.1: + resolution: {integrity: sha512-zS75NGmDbMEQNJ7Y1XVNVrLmfuCY94jMCrIcNFHoT+5qLaTzpK1lokXUD9VYrRVMQMwAx8U9BgKjdiS0eDKZHA==} peerDependencies: - typescript: ^5.6.3 - - kkrpc@0.0.13: - resolution: {integrity: sha512-66ohRjbw2fLO45L1PMkGTP6KHk/Wa7nKJL6r4U/VCBsY+HoIncEdscSQcUgIdv2Da66/UyIC6UMWMvwIqXCZCg==} - peerDependencies: - typescript: ^5.6.3 + typescript: ^5.0.0 kleur@4.1.5: resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} @@ -2407,8 +2460,8 @@ packages: tanu@0.1.13: resolution: {integrity: sha512-UbRmX7ccZ4wMVOY/Uw+7ji4VOkEYSYJG1+I4qzbnn4qh/jtvVbrm6BFnF12NQQ4+jGv21wKmjb1iFyUSVnBWcQ==} - tauri-api-adapter@0.3.16: - resolution: {integrity: sha512-AoKWtRyhTPFaclM/XOtCSQg4OPmr/ssJqY209W+ELd4C11IpWyTVZ/Yfd7cCL03kB4OfvVTDWldA7Bzc7E72dg==} + tauri-api-adapter@0.3.20: + resolution: {integrity: sha512-tRK25c1d34ZRd5CJAXfrBeTr4eGh0UPshLac1DBm4TBF+EZ1TFCwLpvUj9DQ3VS2gHKA9fNc4J5pNpHh3OD4Og==} peerDependencies: typescript: ^5.0.0 @@ -2522,6 +2575,9 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + universal-user-agent@7.0.2: + resolution: {integrity: sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==} + universalify@2.0.1: resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} engines: {node: '>= 10.0.0'} @@ -3147,9 +3203,10 @@ snapshots: '@jsr/valibot__valibot@0.42.1': {} - '@kksh/api@0.0.52(axios@1.7.9)(svelte@5.1.16)(typescript@5.6.3)': + '@kksh/api@0.1.1(axios@1.7.9)(svelte@5.1.16)(typescript@5.6.3)': dependencies: '@huakunshen/jsr-client': 0.1.5(axios@1.7.9)(typescript@5.6.3) + '@octokit/rest': 21.1.0 '@tauri-apps/api': 2.2.0 '@tauri-apps/cli': 2.2.4 '@tauri-apps/plugin-deep-link': 2.2.0 @@ -3165,13 +3222,13 @@ snapshots: '@tauri-apps/plugin-store': 2.2.0 '@tauri-apps/plugin-updater': 2.3.1 '@tauri-apps/plugin-upload': 2.2.1 - kkrpc: 0.0.13(typescript@5.6.3) + kkrpc: 0.1.1(typescript@5.6.3) lodash: 4.17.21 minimatch: 10.0.1 node-fetch: 3.3.2 semver: 7.6.3 svelte-sonner: 0.3.28(svelte@5.1.16) - tauri-api-adapter: 0.3.16(typescript@5.6.3) + tauri-api-adapter: 0.3.20(typescript@5.6.3) tauri-plugin-network-api: 2.0.5(typescript@5.6.3) tauri-plugin-shellx-api: 2.0.14 tauri-plugin-system-info-api: 2.0.8(typescript@5.6.3) @@ -3221,6 +3278,68 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 + '@octokit/auth-token@5.1.2': {} + + '@octokit/core@6.1.3': + dependencies: + '@octokit/auth-token': 5.1.2 + '@octokit/graphql': 8.2.0 + '@octokit/request': 9.2.0 + '@octokit/request-error': 6.1.6 + '@octokit/types': 13.8.0 + before-after-hook: 3.0.2 + universal-user-agent: 7.0.2 + + '@octokit/endpoint@10.1.2': + dependencies: + '@octokit/types': 13.8.0 + universal-user-agent: 7.0.2 + + '@octokit/graphql@8.2.0': + dependencies: + '@octokit/request': 9.2.0 + '@octokit/types': 13.8.0 + universal-user-agent: 7.0.2 + + '@octokit/openapi-types@23.0.1': {} + + '@octokit/plugin-paginate-rest@11.4.0(@octokit/core@6.1.3)': + dependencies: + '@octokit/core': 6.1.3 + '@octokit/types': 13.8.0 + + '@octokit/plugin-request-log@5.3.1(@octokit/core@6.1.3)': + dependencies: + '@octokit/core': 6.1.3 + + '@octokit/plugin-rest-endpoint-methods@13.3.0(@octokit/core@6.1.3)': + dependencies: + '@octokit/core': 6.1.3 + '@octokit/types': 13.8.0 + + '@octokit/request-error@6.1.6': + dependencies: + '@octokit/types': 13.8.0 + + '@octokit/request@9.2.0': + dependencies: + '@octokit/endpoint': 10.1.2 + '@octokit/request-error': 6.1.6 + '@octokit/types': 13.8.0 + fast-content-type-parse: 2.0.1 + universal-user-agent: 7.0.2 + + '@octokit/rest@21.1.0': + dependencies: + '@octokit/core': 6.1.3 + '@octokit/plugin-paginate-rest': 11.4.0(@octokit/core@6.1.3) + '@octokit/plugin-request-log': 5.3.1(@octokit/core@6.1.3) + '@octokit/plugin-rest-endpoint-methods': 13.3.0(@octokit/core@6.1.3) + + '@octokit/types@13.8.0': + dependencies: + '@octokit/openapi-types': 23.0.1 + '@photostructure/tz-lookup@11.0.0': {} '@pkgjs/parseargs@0.11.0': @@ -3691,6 +3810,8 @@ snapshots: batch-cluster@13.0.0: {} + before-after-hook@3.0.2: {} + binary-extensions@2.3.0: {} bits-ui@0.21.16(svelte@5.1.16): @@ -4044,6 +4165,8 @@ snapshots: pure-rand: 6.1.0 optional: true + fast-content-type-parse@2.0.1: {} + fast-deep-equal@3.1.3: {} fast-glob@3.3.2: @@ -4324,15 +4447,7 @@ snapshots: dependencies: json-buffer: 3.0.1 - kkrpc@0.0.12(typescript@5.6.3): - dependencies: - typescript: 5.6.3 - ws: 8.18.0 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - kkrpc@0.0.13(typescript@5.6.3): + kkrpc@0.1.1(typescript@5.6.3): dependencies: typescript: 5.6.3 ws: 8.18.0 @@ -4980,7 +5095,7 @@ snapshots: tslib: 2.8.1 typescript: 4.9.5 - tauri-api-adapter@0.3.16(typescript@5.6.3): + tauri-api-adapter@0.3.20(typescript@5.6.3): dependencies: '@tauri-apps/api': 2.2.0 '@tauri-apps/plugin-dialog': 2.2.0 @@ -4991,7 +5106,7 @@ snapshots: '@tauri-apps/plugin-os': 2.2.0 '@tauri-apps/plugin-shell': 2.2.0 '@tauri-apps/plugin-upload': 2.2.1 - kkrpc: 0.0.12(typescript@5.6.3) + kkrpc: 0.1.1(typescript@5.6.3) rimraf: 6.0.1 shx: 0.3.4 tauri-plugin-clipboard-api: 2.1.11(typescript@5.6.3) @@ -5115,6 +5230,8 @@ snapshots: undici-types@5.26.5: {} + universal-user-agent@7.0.2: {} + universalify@2.0.1: {} update-browserslist-db@1.1.1(browserslist@4.24.2): diff --git a/scripts/build-template-ext.ts b/scripts/build-template-ext.ts index 22b4562..213a114 100644 --- a/scripts/build-template-ext.ts +++ b/scripts/build-template-ext.ts @@ -1,6 +1,6 @@ import { watch } from 'fs'; import { join } from 'path'; -import { refreshTemplateWorkerExtension } from '@kksh/api/dev'; +import { refreshTemplateWorkerCommand } from '@kksh/api/dev'; import { $ } from 'bun'; const entrypoints = ['./template-ext-src/video-info.ts']; @@ -17,7 +17,7 @@ async function build() { minify: false }); if (Bun.argv.includes('dev')) { - await refreshTemplateWorkerExtension(); + await refreshTemplateWorkerCommand(); } } catch (error) { console.error(error); diff --git a/src/lib/api.ts b/src/lib/api.ts index e242257..5edc8ae 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -1,4 +1,4 @@ -import { shell, toast } from '@kksh/api/ui/iframe'; +import { shell, toast } from '@kksh/api/ui/custom'; import type { API } from '../types'; export async function getRpcAPI() { diff --git a/src/lib/components/ThemeCustomizer.svelte b/src/lib/components/ThemeCustomizer.svelte index d7b86b2..f36ebbf 100644 --- a/src/lib/components/ThemeCustomizer.svelte +++ b/src/lib/components/ThemeCustomizer.svelte @@ -1,6 +1,6 @@