From fd42a4d6d5bd79480888326f1926de30082b3b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Thu, 6 Nov 2025 17:43:14 +0000 Subject: [PATCH] chore(devcontainer): update forwarded ports to 4730 and 4731 --- .devcontainer/devcontainer.json | 6 ++--- auto-imports.d.ts | 6 +++-- worker-configuration.d.ts | 48 +++++++++++++++++++++++++-------- 3 files changed, 44 insertions(+), 16 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 91b9e65..55fa47d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,9 +1,9 @@ { "name": "Sandbox Dev Container", - "forwardPorts": [23730, 23731], // vscode://settings/remote.localPortHost -> 默认只监听 localhost + "forwardPorts": [4730, 4731], // vscode://settings/remote.localPortHost -> 默认只监听 localhost "portsAttributes": { - "23730": { "label": "开发服务器端口", "onAutoForward": "notify" }, - "23731": { "label": "预览服务器端口", "onAutoForward": "notify" } + "4730": { "label": "开发服务器端口", "onAutoForward": "notify" }, + "4731": { "label": "预览服务器端口", "onAutoForward": "notify" } }, "build": { "dockerfile": "Dockerfile", diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 9eacf80..2117469 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -64,6 +64,7 @@ declare global { const isRef: typeof import('vue')['isRef'] const isShallow: typeof import('vue')['isShallow'] const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable'] + const manualResetRef: typeof import('@vueuse/core')['manualResetRef'] const mapActions: typeof import('pinia')['mapActions'] const mapGetters: typeof import('pinia')['mapGetters'] const mapState: typeof import('pinia')['mapState'] @@ -106,11 +107,11 @@ declare global { const refAutoReset: typeof import('@vueuse/core')['refAutoReset'] const refDebounced: typeof import('@vueuse/core')['refDebounced'] const refDefault: typeof import('@vueuse/core')['refDefault'] + const refManualReset: typeof import('@vueuse/core')['refManualReset'] const refThrottled: typeof import('@vueuse/core')['refThrottled'] const refWithControl: typeof import('@vueuse/core')['refWithControl'] const resolveComponent: typeof import('vue')['resolveComponent'] const resolveRef: typeof import('@vueuse/core')['resolveRef'] - const resolveUnref: typeof import('@vueuse/core')['resolveUnref'] const routeI18nInstance: typeof import('./src/locales-utils/i18n-auto-imports')['routeI18nInstance'] const routeI18nT: typeof import('./src/locales-utils/i18n-auto-imports')['routeI18nT'] const setActivePinia: typeof import('pinia')['setActivePinia'] @@ -410,6 +411,7 @@ declare module 'vue' { readonly isRef: UnwrapRef readonly isShallow: UnwrapRef readonly makeDestructurable: UnwrapRef + readonly manualResetRef: UnwrapRef readonly mapActions: UnwrapRef readonly mapGetters: UnwrapRef readonly mapState: UnwrapRef @@ -452,11 +454,11 @@ declare module 'vue' { readonly refAutoReset: UnwrapRef readonly refDebounced: UnwrapRef readonly refDefault: UnwrapRef + readonly refManualReset: UnwrapRef readonly refThrottled: UnwrapRef readonly refWithControl: UnwrapRef readonly resolveComponent: UnwrapRef readonly resolveRef: UnwrapRef - readonly resolveUnref: UnwrapRef readonly routeI18nInstance: UnwrapRef readonly routeI18nT: UnwrapRef readonly setActivePinia: UnwrapRef diff --git a/worker-configuration.d.ts b/worker-configuration.d.ts index 03bc000..c147066 100644 --- a/worker-configuration.d.ts +++ b/worker-configuration.d.ts @@ -1,19 +1,19 @@ /* eslint-disable */ -// Generated by Wrangler by running `wrangler types` (hash: b18d7aec4937222767b077e627f9f927) -// Runtime types generated with workerd@1.20251008.0 2025-09-09 +// Generated by Wrangler by running `wrangler types` (hash: 0003c1b3cd56e3cc5549efef6b4c6d3d) +// Runtime types generated with workerd@1.20251011.0 2025-09-09 declare namespace Cloudflare { interface GlobalProps { mainModule: typeof import("./server/index"); } interface Env { KV: KVNamespace; + VITE_APP_BUILD_TIME: string; + VITE_APP_BUILD_COMMIT: string; VITE_BUILD_SOURCE_MAP: string; VITE_BUILD_MINIFY: string; VITE_CLOUDFLARE_SERVER_ENABLED: string; VITE_APP_TITLE: string; VITE_APP_BASE: string; - VITE_APP_BUILD_COMMIT: string; - VITE_APP_BUILD_TIME: string; VITE_APP_ENABLE_VUE_DEVTOOLS: string; VITE_APP_MENU_SHOW_DEMOS: string; VITE_APP_MENU_SHOW_ORDER: string; @@ -6055,13 +6055,6 @@ type AiOptions = { prefix?: string; extraHeaders?: object; }; -type ConversionResponse = { - name: string; - mimeType: string; - format: "markdown"; - tokens: number; - data: string; -}; type AiModelsSearchParams = { author?: string; hide_experimental?: boolean; @@ -6104,6 +6097,7 @@ declare abstract class Ai { stream: true; } ? ReadableStream : AiModelList[Name]["postProcessedOutputs"]>; models(params?: AiModelsSearchParams): Promise; + toMarkdown(): ToMarkdownService; toMarkdown(files: { name: string; blob: Blob; @@ -7841,6 +7835,38 @@ declare module "cloudflare:sockets" { function _connect(address: string | SocketAddress, options?: SocketOptions): Socket; export { _connect as connect }; } +type ConversionResponse = { + name: string; + mimeType: string; +} & ({ + format: "markdown"; + tokens: number; + data: string; +} | { + format: "error"; + error: string; +}); +type SupportedFileFormat = { + mimeType: string; + extension: string; +}; +declare abstract class ToMarkdownService { + transform(files: { + name: string; + blob: Blob; + }[], options?: { + gateway?: GatewayOptions; + extraHeaders?: object; + }): Promise; + transform(files: { + name: string; + blob: Blob; + }, options?: { + gateway?: GatewayOptions; + extraHeaders?: object; + }): Promise; + supported(): Promise; +} declare namespace TailStream { interface Header { readonly name: string;