Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

chore(workspace): archive legacy dsh-tauri core and refresh workspace config

hairyfd6e133927c29
diff --git a/.gitignore b/.gitignore
index ecb34603..2060fb93 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,9 +15,13 @@ src-tauri/resources/internal-plugins/
.tmp
.temp/
release-msi-version.tmp.json
-skills
+
+.agents/skills/
+.claude/skills/
+.trae/skills/
+
.serena
-# 参考源码克隆(如 source/dsh-automation),不作为本仓库内容提交
+
source/
.gitmodules
.tmp-alpha-inspect
\ No newline at end of file
diff --git a/archive/dsh-tauri/README.md b/archive/dsh-tauri/README.md
new file mode 100644
index 00000000..c7c4e0b3
--- /dev/null
+++ b/archive/dsh-tauri/README.md
@@ -0,0 +1,17 @@
+# dsh-tauri
+
+`dsh-tauri` 是 DSH Tauri 桌面壳的基础插件。它提供一个无宿主行为的 host half,以及运行在 DSH iframe 中的客户端消息桥。
+
+## 功能
+
+- 将宿主导航栏的侧边栏开关转发至 `layout.toggleSidebar`。
+- 将宿主导航栏「文件」菜单的「新聊天」「打开文件夹」转发至官方工作区服务(`uiWorkspace.startSession` / 选目录 + `workspaces.create`,能力缺席时退级为点击官方按钮)。
+- 将后退、前进命令转发至浏览器历史记录。
+- 向宿主回报侧边栏折叠状态和历史边界。
+- 隐藏与桌面导航栏重复的官方折叠控件。
+- 在插件自身异常时向宿主报告,避免静默失败。
+
+## 相关包
+
+- [`dsh-tauri-ui`](../dsh-tauri-ui):桌面化 UI。
+- [`dsh-tauri-worktree`](../dsh-tauri-worktree):会话级 Git worktree。
diff --git a/archive/dsh-tauri/cordis.patch.yml b/archive/dsh-tauri/cordis.patch.yml
new file mode 100644
index 00000000..d11b6bb0
--- /dev/null
+++ b/archive/dsh-tauri/cordis.patch.yml
@@ -0,0 +1,3 @@
+- insert:
+ - id: dsh-tauri
+ name: dsh-tauri
diff --git a/archive/dsh-tauri/package.json b/archive/dsh-tauri/package.json
new file mode 100644
index 00000000..8930cfa9
--- /dev/null
+++ b/archive/dsh-tauri/package.json
@@ -0,0 +1,72 @@
+{
+ "name": "dsh-tauri",
+ "type": "module",
+ "version": "0.6.7",
+ "author": "Hairyf <[email protected]>",
+ "license": "MIT",
+ "homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/dsh-tauri-desk/dsh-tauri-plugins.git"
+ },
+ "bugs": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/issues",
+ "keywords": [
+ "dsh",
+ "plugin",
+ "dsh-plugin",
+ "tauri",
+ "deepseek-harness",
+ "bridge"
+ ],
+ "sideEffects": false,
+ "exports": {
+ ".": "./dist/index.js",
+ "./client": {
+ "types": "./dist/client.d.cts",
+ "default": "./dist/client.cjs"
+ },
+ "./package.json": "./package.json"
+ },
+ "main": "./dist/index.js",
+ "module": "./dist/index.js",
+ "types": "./dist/index.d.ts",
+ "files": [
+ "README.md",
+ "cordis.patch.yml",
+ "dist"
+ ],
+ "dsh": {
+ "client": {
+ "inject": [
+ "@deepseek-ai/dsh-client-ui-layout"
+ ],
+ "platform": "web"
+ },
+ "bundle": {
+ "patch": "./cordis.patch.yml"
+ }
+ },
+ "scripts": {
+ "build": "tsdown",
+ "dev": "tsdown --watch",
+ "prepublishOnly": "nr build",
+ "start": "tsx src/index.ts",
+ "typecheck": "tsc"
+ },
+ "dependencies": {
+ "hookable": "catalog:utils",
+ "ofetch": "catalog:utils",
+ "unstorage": "catalog:utils"
+ },
+ "devDependencies": {
+ "@deepseek-ai/dsh-api-session-controller": "catalog:dsh",
+ "@deepseek-ai/dsh-api-workspace-controller": "catalog:dsh",
+ "@deepseek-ai/dsh-client-ui-renderer": "catalog:dsh",
+ "@deepseek-ai/dsh-client-ui-slots": "catalog:dsh",
+ "@reause/core": "catalog:runtime",
+ "css-render": "catalog:ui",
+ "date-fns": "catalog:utils",
+ "dsh-tauri-tsdown": "workspace:*",
+ "tsdown": "catalog:cli"
+ }
+}
diff --git a/archive/dsh-tauri/src/client/apis/client.test.ts b/archive/dsh-tauri/src/client/apis/client.test.ts
new file mode 100644
index 00000000..421ba2b1
--- /dev/null
+++ b/archive/dsh-tauri/src/client/apis/client.test.ts
@@ -0,0 +1,66 @@
+import type { Server } from 'node:http'
+import { Buffer } from 'node:buffer'
+import { createServer } from 'node:http'
+import { afterAll, beforeAll, describe, expect, it } from 'vitest'
+import { fetch } from '.'
+
+let server: Server
+let base: string
+
+beforeAll(async () => {
+ server = createServer((req, res) => {
+ const chunks: Buffer[] = []
+ req.on('data', chunk => chunks.push(chunk as Buffer))
+ req.on('end', () => {
+ const body = Buffer.concat(chunks).toString('utf8')
+ if (req.url === '/ok') {
+ res.writeHead(200, { 'content-type': 'application/json' })
+ res.end('{"ok":true}')
+ }
+ else if (req.url === '/bad') {
+ res.writeHead(400, { 'content-type': 'application/json' })
+ res.end(JSON.stringify({ error: 'boom' }))
+ }
+ else if (req.url === '/oops') {
+ res.writeHead(500, { 'content-type': 'text/plain' })
+ res.end('oops')
+ }
+ else if (req.url === '/echo' && req.method === 'POST') {
+ res.writeHead(200, { 'content-type': 'application/json' })
+ res.end(JSON.stringify({ got: body }))
+ }
+ else {
+ res.writeHead(404)
+ res.end()
+ }
+ })
+ })
+ await new Promise<void>(resolve => server.listen(0, '127.0.0.1', resolve))
+ const address = server.address()
+ if (!address || typeof address === 'string')
+ throw new Error('no test server address')
+ base = `http://127.0.0.1:${address.port}`
+})
+
+afterAll(async () => {
+ await new Promise<void>((resolve, reject) => server.close(error => error ? reject(error) : resolve()))
+})
+
+describe('dsh-tauri fetch', () => {
+ it('decodes JSON success bodies via parseResponse', async () => {
+ await expect(fetch(`${base}/ok`)).resolves.toEqual({ ok: true })
+ })
+
+ it('normalizes non-2xx bodies into readable errors (error field first)', async () => {
+ await expect(fetch(`${base}/bad`)).rejects.toThrow('请求失败 (400): boom')
+ })
+
+ it('falls back to status text when the body carries no error field', async () => {
+ await expect(fetch(`${base}/oops`)).rejects.toThrow('请求失败 (500): oops')
+ })
+
+ it('posts JSON objects with content-type handled by ofetch', async () => {
+ const result = await fetch<{ got: string }>(`${base}/echo`, { method: 'POST', body: { a: 1 } })
+ expect(JSON.parse(result.got)).toEqual({ a: 1 })
+ })
+})
diff --git a/archive/dsh-tauri/src/client/apis/index.ts b/archive/dsh-tauri/src/client/apis/index.ts
new file mode 100644
index 00000000..cbb034cb
--- /dev/null
+++ b/archive/dsh-tauri/src/client/apis/index.ts
@@ -0,0 +1,43 @@
+/**
+ * apis/index.ts — 客户端 RPC/HTTP 层:全局 fetch(ofetch 统一 JSON 客户端)。
+ *
+ * 唯一导出 `fetch`:ofetch 负责 URL 拼接、JSON 解析(parseResponse 优先解码,
+ * 旧宿主/未注册路由返回的纯文本错误体原样保留)、超时(timeout 选项)与
+ * 重试(默认关)。错误归一(非 2xx → 可展示 Error,取响应体 error 字段)内置
+ * 在此,调用方无需关心错误格式、无需自封装 requestJson/createJsonClient。
+ */
+
+import { createFetch } from 'ofetch'
+
+/** JSON 响应优先解码;非 JSON 纯文本错误体保留原文。 */
+function parseJsonResponse(text: string): unknown {
+ if (text.length === 0)
+ return undefined
+ try {
+ return JSON.parse(text)
+ }
+ catch {
+ return text
+ }
+}
+
+/** 非 2xx 默认错误信息:优先取响应体 error 字段,否则回退状态码文案。 */
+function defaultErrorMessage(status: number, body: unknown): string {
+ const text = typeof body === 'string'
+ ? body
+ : body && typeof body === 'object' && 'error' in body
+ ? String((body as { error?: unknown }).error ?? '')
+ : ''
+ return text ? `请求失败 (${status}): ${text}` : `请求失败 (${status})`
+}
+
+/** 全局 JSON fetch:同源 API 请求唯一入口(错误解析统一在此)。 */
+export const fetch = createFetch({
+ defaults: {
+ retry: 0,
+ parseResponse: parseJsonResponse,
+ onResponseError: ({ response }) => {
+ throw new Error(defaultErrorMessage(response.status, response._data))
+ },
+ },
+})
diff --git a/archive/dsh-tauri/src/client/apply.ts b/archive/dsh-tauri/src/client/apply.ts
new file mode 100644
index 00000000..1d1bbe0d
--- /dev/null
+++ b/archive/dsh-tauri/src/client/apply.ts
@@ -0,0 +1,85 @@
+/**
+ * client/apply.ts — dsh-tauri 客户端插件体(browser half):纯消息桥,无 UI、无运行时依赖。
+ *
+ * 本插件注册四件事:
+ * - `registerSidebarToggle`(`./register/sidebar.ts`):宿主导航栏的侧边栏开关经
+ * `dsh://sidebar:toggle` 转发给 dsh 布局服务(`ctx.layout.toggleSidebar()`)执行,
+ * 并把侧边栏折叠状态回报给宿主;
+ * - `registerNavigation`(`./register/navigation.ts`):宿主导航栏「文件」菜单的
+ * 「新聊天」/「打开文件夹」经 `dsh://session:new` / `dsh://workspace:add` 转发给
+ * 官方工作区服务(`uiWorkspace.startSession` / 选目录 + 建工作区);
+ * - `registerZoomShortcut`(`./register/zoom-shortcut.ts`):iframe 内的
+ * Ctrl/Cmd + `+`/`-`/`0` 经父窗口桥上报宿主(宿主写缩放真值,由 `useZoomFactor` 应用);
+ * - 侧边栏 UI 微调:官方侧边栏 logo 行自带的「收起侧边栏」按钮与宿主导航栏的开关重复,
+ * 加载时用一条 CSS 规则隐藏(折叠态窄栏的「打开侧边栏」按钮保留);同时把品牌词标
+ * 按钮(aria-label「新建会话」,CSS module 类名是生成哈希、不稳定)的内容改为水平居中。
+ *
+ * 这些原先由桌面端注入的 `NAV_SHIM_JS` / `ZOOM_SHORTCUT_BRIDGE_JS` 承担,现在统一
+ * 收敛到插件客户端(宿主只保留通知 / 样式 / 剪贴板图片 / boot 探测等无法在插件期实现的桥)。
+ *
+ * 服务依赖(inject):layout(侧边栏切换)。工作区服务(uiWorkspace / workspaces)
+ * 不列为强制注入:不同核心版本暴露面不同,运行时由 `utils/compat` 能力探测。
+ */
+import type { ClientContext } from './types'
+import { CssRender } from 'css-render'
+import {
+ COLLAPSE_SIDEBAR_SELECTOR,
+ NAVIGATION_EFFECT_ID,
+ NEW_SESSION_SELECTOR,
+ SIDEBAR_TOGGLE_EFFECT_ID,
+ SIDEBAR_TWEAKS_EFFECT_ID,
+ SIDEBAR_TWEAKS_STYLE_ID,
+ ZOOM_SHORTCUT_EFFECT_ID,
+} from './constants'
+import { registerNavigation } from './register/navigation'
+import { registerSidebarToggle } from './register/sidebar'
+import { registerZoomShortcut } from './register/zoom-shortcut'
+import { reportPluginError } from './utils/error'
+
+/**
+ * 插件体:注册侧边栏(切换 + 折叠回报)、导航命令(新聊天 / 打开文件夹)、
+ * 缩放快捷键与侧边栏 UI 微调。
+ * @param ctx - 客户端根上下文。
+ */
+export function apply(ctx: ClientContext): void {
+ ;(window as Window & { ctx?: ClientContext }).ctx = ctx
+
+ // 侧边栏:宿主命令 → dsh 布局服务;折叠状态 → 宿主导航栏
+ ctx.effect(
+ () => registerSidebarToggle(() => { ctx.layout.toggleSidebar() }),
+ SIDEBAR_TOGGLE_EFFECT_ID,
+ )
+
+ // 导航命令:宿主「文件」菜单 → 官方工作区服务(新聊天 / 打开文件夹)
+ ctx.effect(() => registerNavigation(ctx), NAVIGATION_EFFECT_ID)
+
+ // 缩放快捷键:iframe 内捕获 → 父窗口桥 → 宿主缩放真值
+ ctx.effect(() => registerZoomShortcut(), ZOOM_SHORTCUT_EFFECT_ID)
+
+ ctx.effect(() => {
+ // 侧边栏 UI 微调(一律用稳定的 aria-label 属性选择器,不用生成哈希的
+ // CSS module 类名):
+ // 1. 隐藏 logo 行的「收起侧边栏」按钮:宿主导航栏已有侧边栏开关,应用内
+ // 这个折叠按钮属于重复控件。只匹配折叠态文案(zh/en),窄栏恢复用的
+ // 「打开侧边栏」按钮保留。
+ // 2. 品牌词标按钮(与工具栏「新建会话」按钮共用 aria-label,后者本就
+ // 居中,此规则对其是 no-op)默认 flex-start,改为水平居中。
+ // CSS 选择器天然覆盖 React 后续重渲染,卸载时移除样式。
+ let styleCleanup: (() => void) | undefined
+ try {
+ const cssr = CssRender()
+ const { c } = cssr
+ const style = c([
+ c(COLLAPSE_SIDEBAR_SELECTOR, { display: 'none !important' }),
+ c(NEW_SESSION_SELECTOR, { justifyContent: 'center !important' }),
+ ])
+ style.mount({ id: SIDEBAR_TWEAKS_STYLE_ID, head: true })
+ styleCleanup = () => style.unmount({ id: SIDEBAR_TWEAKS_STYLE_ID })
+ }
+ catch (error) {
+ // 插件自身代码路径异常:上报宿主,避免静默失败
+ reportPluginError(error, 'runtime')
+ }
+ return () => styleCleanup?.()
+ }, SIDEBAR_TWEAKS_EFFECT_ID)
+}
diff --git a/archive/dsh-tauri/src/client/constants/index.ts b/archive/dsh-tauri/src/client/constants/index.ts
new file mode 100644
index 00000000..1fdfd036
--- /dev/null
+++ b/archive/dsh-tauri/src/client/constants/index.ts
@@ -0,0 +1,72 @@
+// ── dsh-tauri invoke 桥(iframe → 宿主 → invoke() → 回传)─────────────
+// iframe 内的 dsh 界面 / 插件无法直接访问 `@tauri-apps/api`(`__TAURI_INTERNALS__`
+// 只在顶层 webview)。本桥让客户端经 postMessage 把 command 上报到宿主(主
+// webview)监听器,由宿主调用 Tauri `invoke` 并把结果回传给 iframe。
+/** iframe → 宿主:invoke 请求的 source。 */
+export const SRC_INVOKE = 'dsh-tauri-invoke'
+/** 宿主 → iframe:invoke 应答的 source。 */
+export const SRC_INVOKE_REPLY = 'dsh-desktop-invoke'
+/** invoke 请求消息类型。 */
+export const TYPE_INVOKE = 'dsh://tauri:invoke'
+/** invoke 应答消息类型。 */
+export const TYPE_INVOKE_REPLY = 'dsh://tauri:reply'
+/** 单次 invoke 等待宿主应答的最长毫秒数(超时按失败处理)。 */
+export const INVOKE_TIMEOUT_MS = 15000
+
+/**
+ * 宿主 → iframe:Tauri 事件转发的消息类型(`listen()` 消费)。
+ *
+ * 与桌面端 `useListenIframe` 的 `forward()` 返回的 `type` 必须逐字一致;
+ * 配对关系:宿主 `useListenIframe(iframeRef, event, payload => ({ type: TYPE_EVENT, event, payload }))`
+ * ↔ 客户端 `listen(event, handler)`。
+ */
+export const TYPE_EVENT = 'dsh://tauri:event'
+
+/** 宿主 → iframe:侧边栏切换命令(`register/sidebar.ts` 消费)。 */
+export const CMD_TOGGLE = 'dsh://sidebar:toggle'
+
+/**
+ * 宿主 → iframe:新建会话命令(`register/navigation.ts` 消费)——官方「新建会话」
+ * 同款入口(`uiWorkspace.startSession`)。
+ */
+export const CMD_NEW_SESSION = 'dsh://session:new'
+
+/**
+ * 宿主 → iframe:打开文件夹命令(`register/navigation.ts` 消费)——官方
+ * 「添加工作区」流程(选目录 → 建工作区 → 在新工作区开会话)。
+ */
+export const CMD_ADD_WORKSPACE = 'dsh://workspace:add'
+
+/** iframe → 宿主:侧边栏折叠状态回报(`register/sidebar.ts` 发送)。 */
+export const EVENT_SIDEBAR_COLLAPSED = 'dsh://sidebar:collapsed'
+
+/** iframe → 宿主:缩放快捷键动作(`register/zoom-shortcut.ts` 发送;宿主据此更新缩放真值)。 */
+export const TYPE_ZOOM_SHORTCUT = 'dsh://zoom-shortcut'
+
+/** dsh 应用布局根(AppFrame):`data-shell-overlay` 的父节点,带侧边栏折叠属性。 */
+export const SIDEBAR_FRAME_SELECTOR = '[data-shell-overlay]'
+export const SIDEBAR_COLLAPSED_ATTRIBUTE = 'data-sidebar-collapsed'
+
+/** 应用晚挂载时补报一次侧边栏折叠状态的轮询参数(拿到 AppFrame 即停)。 */
+export const SIDEBAR_TRACK_MAX_TRIES = 30
+export const SIDEBAR_TRACK_INTERVAL_MS = 500
+
+/** 上报消息的 type key(宿主按 `type` 分发:`dsh://plugin-error`)。 */
+export const ERROR_TYPE = 'dsh://plugin-error'
+
+/** 插件 id(npm 包名):宿主错误注册表与插件列表的主键。 */
+export const PLUGIN_ID = 'dsh-tauri'
+
+/** 客户端插件元数据与生命周期标识。 */
+export const PLUGIN_INJECT = ['layout']
+export const SIDEBAR_TWEAKS_STYLE_ID = 'dsh-tauri:sidebar-tweaks'
+export const SIDEBAR_TWEAKS_EFFECT_ID = 'dsh-tauri: sidebar tweaks (hide collapse toggle, center brand)'
+export const SIDEBAR_TOGGLE_EFFECT_ID = 'dsh-tauri: sidebar (toggle command + collapsed report)'
+export const ZOOM_SHORTCUT_EFFECT_ID = 'dsh-tauri: zoom shortcuts (ctrl/cmd +/-/0)'
+export const NAVIGATION_EFFECT_ID = 'dsh-tauri: navigation (new session, add workspace)'
+
+/** 侧边栏稳定 ARIA 选择器。 */
+export const COLLAPSE_SIDEBAR_SELECTOR = 'button[aria-label="收起侧边栏"],button[aria-label="Collapse sidebar"]'
+export const NEW_SESSION_SELECTOR = 'button[aria-label="新建会话"],button[aria-label="New session"]'
+/** 官方「添加工作区」按钮:工作区服务能力探测失败时的 DOM 退级目标。 */
+export const ADD_WORKSPACE_SELECTOR = 'button[aria-label="添加工作区"],button[aria-label="Add workspace"]'
diff --git a/archive/dsh-tauri/src/client/controller/index.ts b/archive/dsh-tauri/src/client/controller/index.ts
new file mode 100644
index 00000000..5ddcf679
--- /dev/null
+++ b/archive/dsh-tauri/src/client/controller/index.ts
@@ -0,0 +1,153 @@
+/**
+ * client/controller.ts — 基于 hookable 的生命周期控制器(全 workspace 客户端共享)。
+ *
+ * Controller 化统一方案:observer / timer / listener / disposer 全部登记进统一清理队列;
+ * dispose 保证幂等,异步续接以 isDisposed() 守护,业务代码无需各自维护 disposed 标志。
+ */
+
+import { noop } from '@reause/core'
+import { createHooks } from 'hookable'
+
+/** 控制器注册的命名生命周期钩子(dispose 为统一清理点)。 */
+export interface LifecycleHooks {
+ dispose: () => void
+}
+
+/** 受控生命周期资源(listener / timer / observer / disposer)的统一归口。 */
+export interface LifecycleController {
+ /**
+ * 注册任意 disposer(dispose 时统一执行;执行失败不中断其他清理)。返回取消注册句柄。
+ */
+ add: (disposer: () => void) => () => void
+ /**
+ * 受控 setTimeout:dispose 后不再触发;返回提前取消句柄。
+ */
+ timeout: (fn: () => void, ms: number) => () => void
+ /**
+ * 受控 setInterval:dispose 时自动清除;返回提前取消句柄。
+ */
+ interval: (fn: () => void, ms: number) => () => void
+ /**
+ * 受控 document 事件监听:dispose 时自动移除;返回移除句柄。
+ */
+ listen: <K extends keyof DocumentEventMap>(
+ type: K,
+ fn: (event: DocumentEventMap[K]) => void,
+ options?: AddEventListenerOptions,
+ ) => () => void
+ /**
+ * 受控 MutationObserver:dispose 时自动 disconnect;返回 observer 本体。
+ */
+ observe: (target: Node, options: MutationObserverInit, onMutate: MutationCallback) => MutationObserver
+ /**
+ * 是否已 dispose(异步续接 Guard)。
+ */
+ isDisposed: () => boolean
+ /**
+ * 一次性清理所有已注册资源(幂等)。
+ */
+ dispose: () => void
+}
+
+/** 创建生命周期控制器 */
+export function createLifecycleController(): LifecycleController {
+ const hooks = createHooks<LifecycleHooks>()
+ let isDisposed = false
+ const activeTimeouts = new Set<ReturnType<typeof setTimeout>>()
+ const controller: LifecycleController = {
+ add(disposer) {
+ if (isDisposed)
+ return noop
+ const safeDisposer = () => {
+ try {
+ disposer()
+ }
+ catch (error) {
+ console.error('[LifecycleController] Unhandled exception in disposer:', error)
+ }
+ }
+
+ return hooks.hook('dispose', safeDisposer)
+ },
+
+ timeout(fn, ms) {
+ if (isDisposed)
+ return noop
+
+ const timer = setTimeout(() => {
+ activeTimeouts.delete(timer)
+ fn()
+ }, ms)
+
+ activeTimeouts.add(timer)
+
+ const cancel = () => activeTimeouts.delete(timer) && clearTimeout(timer)
+
+ const unhook = controller.add(cancel)
+ return () => {
+ cancel()
+ unhook()
+ }
+ },
+
+ interval(fn, ms) {
+ if (isDisposed)
+ return noop
+
+ const timer = setInterval(fn, ms)
+ const cancel = () => clearInterval(timer)
+
+ const unhook = controller.add(cancel)
+ return () => {
+ cancel()
+ unhook()
+ }
+ },
+
+ listen(type, fn, options) {
+ if (isDisposed)
+ return noop
+
+ const handler = fn as EventListener
+ document.addEventListener(type, handler, options)
+
+ const remove = () => document.removeEventListener(type, handler, options)
+ const unhook = controller.add(remove)
+
+ return () => {
+ remove()
+ unhook()
+ }
+ },
+
+ observe(target, options, onMutate) {
+ const observer = new MutationObserver(onMutate)
+
+ if (!isDisposed) {
+ observer.observe(target, options)
+ controller.add(() => observer.disconnect())
+ }
+
+ return observer
+ },
+
+ isDisposed: () => isDisposed,
+
+ dispose() {
+ if (isDisposed)
+ return
+
+ isDisposed = true
+
+ for (const timer of activeTimeouts)
+ clearTimeout(timer)
+ activeTimeouts.clear()
+
+ // 2. 统一触发所有通过 controller.add / interval / listen / observe 挂载的资源销毁函数
+ void hooks.callHook('dispose')
+ hooks.removeAllHooks()
+ },
+ }
+
+ return controller
+}
diff --git a/archive/dsh-tauri/src/client/hooks/use-invoke.ts b/archive/dsh-tauri/src/client/hooks/use-invoke.ts
new file mode 100644
index 00000000..63224218
--- /dev/null
+++ b/archive/dsh-tauri/src/client/hooks/use-invoke.ts
@@ -0,0 +1,72 @@
+/* eslint-disable react/set-state-in-effect */
+import type { InvokeArgs, InvokeOptions } from '../types'
+import { useEffect, useRef, useState } from 'react'
+import { invoke } from '../service/invoke'
+
+export interface UseInvokeResult<T> {
+ /** command 成功返回值;未完成/失败时为 null。 */
+ data: T | null
+ loading: boolean
+ /** 失败原因(`NODE_NOT_ANSWERED: …` / command 抛出的字符串);成功时为 null。 */
+ error: string | null
+}
+
+/**
+ * 调用一次宿主侧 Tauri command 并把结果交给组件(`invoke` 的 React 版)。
+ *
+ * 只做「读一次」:`cmd`(或 `args` 的内容)变化时重新调用,卸载后丢弃结果。
+ * 变更类调用(写设置、触发动作)请在事件回调里直接 `invoke`,不要用本 hook。
+ *
+ * 参数与依赖:
+ * - `args` / `options` 经 ref 转发,**不**参与 effect 依赖(对象字面量每次渲染都是新引用,
+ * 直接用引用做依赖会每帧重发请求并自我循环);重发条件按 `args` 的 JSON 串判断,
+ * 因此 `args` 必须是可结构化克隆的普通数据(桥的既有约束);
+ * - 失败不静默:登记到 `error`,调用方决定展示方式(同时 console 一条便于排查)。
+ *
+ * @example
+ * const { data: pets, loading } = useInvoke<PetListItem[]>('list_pets', { source: 'chat' })
+ */
+export function useInvoke<T>(cmd: string, args?: InvokeArgs, options?: InvokeOptions): UseInvokeResult<T> {
+ const [data, setData] = useState<T | null>(null)
+ const [loading, setLoading] = useState(true)
+ const [error, setError] = useState<string | null>(null)
+
+ const argsRef = useRef(args)
+ const optionsRef = useRef(options)
+ argsRef.current = args
+ optionsRef.current = options
+
+ // 重发键:cmd + args 内容(同一内容的新对象不重发)
+ const argsKey = args === undefined ? '' : JSON.stringify(args)
+
+ useEffect(() => {
+ let cancelled = false
+ setLoading(true)
+ setError(null)
+
+ invoke<T>(cmd, argsRef.current, optionsRef.current)
+ .then((value) => {
+ if (cancelled)
+ return
+ setData(value)
+ })
+ .catch((reason: unknown) => {
+ if (cancelled)
+ return
+ const message = reason instanceof Error ? reason.message : String(reason)
+ console.error(`[useInvoke] ${cmd} failed:`, reason)
+ setError(message)
+ })
+ .finally(() => {
+ if (!cancelled)
+ setLoading(false)
+ })
+
+ return () => {
+ cancelled = true
+ }
+ // argsKey 是 args 的归一化依赖;args/options 本体经 ref 读取
+ }, [cmd, argsKey])
+
+ return { data, loading, error }
+}
diff --git a/archive/dsh-tauri/src/client/hooks/use-listen-parent.ts b/archive/dsh-tauri/src/client/hooks/use-listen-parent.ts
new file mode 100644
index 00000000..ba01a786
--- /dev/null
+++ b/archive/dsh-tauri/src/client/hooks/use-listen-parent.ts
@@ -0,0 +1,32 @@
+import type { ParentMessage, ParentMessageTypes } from '../types'
+import { useEffect, useRef } from 'react'
+import { listenParent } from '../service/listen-parent'
+
+/** 「监听主窗口消息」的过滤条件:省略表示监听全部消息。 */
+export type UseListenParentTypes = ParentMessageTypes | undefined
+
+/**
+ * React 版的 `listenParent`:组件挂载时监听主窗口(宿主)消息,卸载时自动取消。
+ *
+ * - 回调经 ref 转发(latest ref),调用方写内联函数不会导致反复重订阅;
+ * - `types` 只在「归一化后的 key」变化时重订阅(数组字面量每次渲染都是新引用,
+ * 直接用引用做依赖会每帧重订阅);
+ * - 与 `service/listen.ts` 的 Tauri 语义不同:这里收的是**桥原始消息**(按 `type`
+ * 过滤自己那一档),适合插件自有协议;要订阅宿主转发的 Tauri 事件用 `listen`。
+ */
+export function useListenParent<T extends ParentMessage>(
+ types: UseListenParentTypes,
+ handler: (message: T) => void,
+): void {
+ const handlerRef = useRef(handler)
+ handlerRef.current = handler
+
+ const typesKey = types === undefined ? '' : (typeof types === 'string' ? types : types.join('\u0000'))
+
+ useEffect(
+ () => listenParent<T>(message => handlerRef.current(message), types),
+ // types 的引用不稳定,用归一化 key 作为依赖(语义等价:同一组 type 不重订阅)
+ // eslint-disable-next-line react/exhaustive-deps
+ [typesKey],
+ )
+}
diff --git a/archive/dsh-tauri/src/client/hooks/use-listen.ts b/archive/dsh-tauri/src/client/hooks/use-listen.ts
new file mode 100644
index 00000000..7eae6bcc
--- /dev/null
+++ b/archive/dsh-tauri/src/client/hooks/use-listen.ts
@@ -0,0 +1,42 @@
+import type { EventCallback, Options, UnlistenFn } from '../types'
+import { useEffect, useRef } from 'react'
+import { listen } from '../service/listen'
+
+/**
+ * 订阅一个「宿主转发进 iframe 的 Tauri 事件」,卸载时自动注销。
+ *
+ * - 语义对齐 `service/listen`(签名同 `@tauri-apps/api/event` 的 `listen`),
+ * 回调与 options 经 ref 转发(latest ref),调用方写内联函数不会反复重订阅,
+ * 只在 `event` 变化时重新订阅;
+ * - 竞态防护:`listen` 返回 Promise,若在 resolve 前组件已卸载则立即注销,
+ * 避免监听泄漏;
+ * - 唯一的 effect 只负责注册/注销(需要清理),无其它副作用。
+ *
+ * @example
+ * useListen<PetStatus>('pet://status', event => setStatus(event.payload))
+ */
+export function useListen<T>(event: string, handler: EventCallback<T>, options?: Options): void {
+ const handlerRef = useRef(handler)
+ const optionsRef = useRef(options)
+ handlerRef.current = handler
+ optionsRef.current = options
+
+ useEffect(() => {
+ let unlisten: UnlistenFn | undefined
+ let disposed = false
+
+ void listen<T>(event, tauriEvent => handlerRef.current(tauriEvent), optionsRef.current)
+ .then((fn) => {
+ if (disposed)
+ fn()
+ else
+ unlisten = fn
+ })
+ .catch(err => console.error(`[useListen] failed to listen ${event}:`, err))
+
+ return () => {
+ disposed = true
+ unlisten?.()
+ }
+ }, [event])
+}
diff --git a/archive/dsh-tauri/src/client/index.ts b/archive/dsh-tauri/src/client/index.ts
new file mode 100644
index 00000000..13c9add1
--- /dev/null
+++ b/archive/dsh-tauri/src/client/index.ts
@@ -0,0 +1,50 @@
+/**
+ * dsh-tauri 客户端 barrel(browser half):插件入口 + 全 workspace 客户端共享工具。
+ *
+ * 共享工具(供各插件 client 导入 `dsh-tauri/client`):
+ * - compat / resolveStartSession / resolveAddWorkspace:Alpha ↔ rc.2 服务布局适配;
+ * - store:框架无关 SnapshotStore(uSES 安全);
+ * - fetch:ofetch 统一 JSON 客户端(错误解析内置,唯一导出);
+ * - storage:unstorage createStorage / localStorageDriver;
+ * - controller:hookable 生命周期控制器(observer/timer/listener 收敛);
+ * - CssRender:css-render 样式树(各插件 mount*Styles 使用)。
+ *
+ * 父窗口桥(iframe ↔ 桌面宿主)**唯一入口**,自定义桥一律用这几个:
+ * - `invoke`:调用宿主侧的 Tauri command(签名同 `@tauri-apps/api/core`);
+ * - `listen`:订阅宿主转发进来的 Tauri 事件(签名同 `@tauri-apps/api/event`);
+ * - `invokeParent` / `listenParent`:自定义协议的裸收发原语;
+ * - `useInvoke` / `useListen` / `useListenParent`:上面三者的 React 版本。
+ */
+import { PLUGIN_ID, PLUGIN_INJECT } from './constants'
+
+/** 插件显示名(诊断元数据)。 */
+export const name = PLUGIN_ID
+
+/** 需要的客户端服务:layout(侧边栏切换)。 */
+export const inject = PLUGIN_INJECT
+
+export * from './apis'
+export { apply } from './apply'
+export * from './controller'
+export { useInvoke } from './hooks/use-invoke'
+export type { UseInvokeResult } from './hooks/use-invoke'
+export { useListen } from './hooks/use-listen'
+export { useListenParent } from './hooks/use-listen-parent'
+export { invoke } from './service/invoke'
+export { invokeParent } from './service/invoke-parent'
+export type { InvokeParentResult } from './service/invoke-parent'
+export { listen } from './service/listen'
+export { listenParent } from './service/listen-parent'
+export * from './storage'
+export * from './store'
+
+export type * from './types'
+
+export type { ClientContext } from './types'
+export { compat, resolveAddWorkspace, resolveStartSession } from './utils/compat'
+export { CssRender } from 'css-render'
+
+/** 仅构建期 tree-shake 内联所用导出;date-fns 不进入 release production 资源闭包。 */
+export { differenceInDays, differenceInHours, differenceInMinutes, format } from 'date-fns'
+
+export { createHooks } from 'hookable'
diff --git a/archive/dsh-tauri/src/client/register/navigation.ts b/archive/dsh-tauri/src/client/register/navigation.ts
new file mode 100644
index 00000000..c20edd72
--- /dev/null
+++ b/archive/dsh-tauri/src/client/register/navigation.ts
@@ -0,0 +1,91 @@
+/**
+ * register/navigation.ts — 壳层导航栏「文件」菜单的两条命令(宿主 → iframe):
+ *
+ * - `dsh://session:new`(新聊天):走官方「新建会话」同款入口
+ * `uiWorkspace.startSession()`;
+ * - `dsh://workspace:add`(打开文件夹):走官方「添加工作区」流程
+ * (`uiWorkspace.pickDirectory()` → `workspaces.create({ path })` → `startSession(id)`),
+ * 与 ui-workspace `WorkspacePickFlow.adoptDirectory` 逐步一致。
+ *
+ * 两者都只**调用**官方能力,不复制官方 UI。官方服务缺席(旧核心 / 服务未注册)时按
+ * 退级阶梯落到 DOM:点击官方侧栏的「新建会话」/「添加工作区」按钮(稳定 aria-label)。
+ * 两条路径都失败才告警——绝不静默半工作。
+ */
+import type { ClientContext } from '../types'
+import {
+ ADD_WORKSPACE_SELECTOR,
+ CMD_ADD_WORKSPACE,
+ CMD_NEW_SESSION,
+ NEW_SESSION_SELECTOR,
+} from '../constants'
+import { createLifecycleController } from '../controller'
+import { listenParent } from '../service/listen-parent'
+import { resolveAddWorkspace, resolveStartSession } from '../utils/compat'
+import { reportPluginError } from '../utils/error'
+
+/** 点击官方按钮(DOM 退级路径);按钮不存在时返回 false。 */
+function clickOfficialButton(selector: string): boolean {
+ const button = document.querySelector<HTMLButtonElement>(selector)
+ if (button === null)
+ return false
+ button.click()
+ return true
+}
+
+/** 新聊天:官方 startSession;服务缺席时退级为点官方「新建会话」按钮。 */
+async function startNewChat(ctx: ClientContext): Promise<void> {
+ const start = resolveStartSession(ctx)
+ if (start === undefined) {
+ if (!clickOfficialButton(NEW_SESSION_SELECTOR))
+ console.warn('[dsh-tauri] new chat unavailable: no workspace navigation service')
+ return
+ }
+ const result = start()
+ // startSession 在 Alpha 返回 void、rc.2 返回 Promise:只 await 真正的 thenable,
+ // 避免对同步返回值做无意义等待。
+ if (result instanceof Promise)
+ await result
+}
+
+/** 打开文件夹:官方「添加工作区」;能力缺席时退级为点官方「添加工作区」按钮。 */
+async function addWorkspace(ctx: ClientContext): Promise<void> {
+ const runtime = resolveAddWorkspace(ctx)
+ if (runtime === undefined) {
+ if (!clickOfficialButton(ADD_WORKSPACE_SELECTOR))
+ console.warn('[dsh-tauri] add workspace unavailable: no workspace service or official button')
+ return
+ }
+ const path = await runtime.pickDirectory()
+ // 用户在原生目录选择器里取消:是正常结果,不是失败。
+ if (path === null || path === undefined)
+ return
+ const workspace = await runtime.createWorkspace({ path })
+ runtime.startSession(workspace.workspaceId)
+}
+
+/**
+ * 注册导航命令监听(宿主 → iframe)。
+ * @param ctx - 客户端根上下文(用于按需探测官方工作区服务)。
+ * @returns 卸载函数(注销命令监听)。
+ */
+export function registerNavigation(ctx: ClientContext): () => void {
+ const controller = createLifecycleController()
+
+ controller.add(listenParent<{ type?: string }>((data) => {
+ // 异步 RPC 失败(目录选择器不可用 / 建工作区被拒)上报宿主插件面板,
+ // 不影响后续命令。
+ if (data.type === CMD_NEW_SESSION) {
+ void startNewChat(ctx).catch((error: unknown) => {
+ reportPluginError(error, 'runtime')
+ })
+ return
+ }
+ if (data.type === CMD_ADD_WORKSPACE) {
+ void addWorkspace(ctx).catch((error: unknown) => {
+ reportPluginError(error, 'runtime')
+ })
+ }
+ }, [CMD_NEW_SESSION, CMD_ADD_WORKSPACE]))
+
+ return () => controller.dispose()
+}
diff --git a/archive/dsh-tauri/src/client/register/sidebar.ts b/archive/dsh-tauri/src/client/register/sidebar.ts
new file mode 100644
index 00000000..10476d8d
--- /dev/null
+++ b/archive/dsh-tauri/src/client/register/sidebar.ts
@@ -0,0 +1,81 @@
+/**
+ * register/sidebar.ts — 侧边栏(宿主顶部导航栏 ↔ iframe),两个方向各一件事:
+ *
+ * - 宿主 → iframe:导航栏开关把 `dsh://sidebar:toggle` 发进来,用 dsh 应用自己的布局
+ * 服务(`ctx.layout.toggleSidebar()`)执行切换 —— 不依赖 DOM 结构与界面文案;
+ * - iframe → 宿主:观察 AppFrame 的 `data-sidebar-collapsed`,变化即回报
+ * `dsh://sidebar:collapsed`,供宿主导航栏同步折叠图标。
+ *
+ * 桌面端不再注入导航桥脚本(`NAV_SHIM_JS`):切换与折叠回报都由本注册承担,
+ * 插件缺席时导航栏本来也不渲染侧边栏控件(宿主按 dsh-tauri 是否已安装判断)。
+ */
+import {
+ CMD_TOGGLE,
+ EVENT_SIDEBAR_COLLAPSED,
+ SIDEBAR_COLLAPSED_ATTRIBUTE,
+ SIDEBAR_FRAME_SELECTOR,
+ SIDEBAR_TRACK_INTERVAL_MS,
+ SIDEBAR_TRACK_MAX_TRIES,
+} from '../constants'
+import { createLifecycleController } from '../controller'
+import { invokeParent } from '../service/invoke-parent'
+import { listenParent } from '../service/listen-parent'
+import { reportPluginError } from '../utils/error'
+
+/** AppFrame:dsh 应用布局的根(`data-shell-overlay` 的父节点)。 */
+function findFrame(): HTMLElement | null {
+ const overlay = document.querySelector<HTMLElement>(SIDEBAR_FRAME_SELECTOR)
+ return overlay?.parentElement ?? null
+}
+
+/**
+ * 注册侧边栏切换(宿主命令 → dsh 布局服务)与折叠状态回报(dsh → 宿主)。
+ * @param toggleSidebar 切换动作(插件体注入 `ctx.layout.toggleSidebar`)。
+ * @returns 卸载函数(注销命令监听、折叠观察与补报轮询)。
+ */
+export function registerSidebarToggle(toggleSidebar: () => void): () => void {
+ const controller = createLifecycleController()
+
+ /** 折叠状态回报(幂等:宿主只把它写进状态) */
+ function reportCollapsed(): void {
+ invokeParent({
+ type: EVENT_SIDEBAR_COLLAPSED,
+ collapsed: !!findFrame()?.hasAttribute(SIDEBAR_COLLAPSED_ATTRIBUTE),
+ })
+ }
+
+ // 宿主命令:切换侧边栏
+ controller.add(listenParent<{ type?: string }>((data) => {
+ if (data.type !== CMD_TOGGLE)
+ return
+ try {
+ toggleSidebar()
+ }
+ catch (error) {
+ // 布局服务抛错:上报宿主(插件面板据此显示异常标记),不影响后续命令
+ reportPluginError(error, 'runtime')
+ }
+ }, [CMD_TOGGLE]))
+
+ // 折叠状态:属性翻转即回报(AppFrame 出现后属性变化都会命中)
+ controller.observe(document.body, {
+ attributes: true,
+ attributeFilter: [SIDEBAR_COLLAPSED_ATTRIBUTE],
+ subtree: true,
+ }, reportCollapsed)
+
+ // 首次回报:应用早于插件挂载时属性不会产生变化事件;
+ // 应用晚挂载则轮询到 AppFrame 出现为止(有界,拿到即停)。
+ reportCollapsed()
+ let tries = 0
+ const stopPoll = controller.interval(() => {
+ const ready = !!findFrame()
+ if (ready || ++tries > SIDEBAR_TRACK_MAX_TRIES) {
+ if (ready)
+ reportCollapsed()
+ stopPoll()
+ }
+ }, SIDEBAR_TRACK_INTERVAL_MS)
+
+ return () => controller.dispose()
+}
diff --git a/archive/dsh-tauri/src/client/register/zoom-shortcut.ts b/archive/dsh-tauri/src/client/register/zoom-shortcut.ts
new file mode 100644
index 00000000..1e341512
--- /dev/null
+++ b/archive/dsh-tauri/src/client/register/zoom-shortcut.ts
@@ -0,0 +1,31 @@
+/**
+ * register/zoom-shortcut.ts — iframe 内的缩放快捷键(Ctrl/Cmd + `+` / `-` / `0`)。
+ *
+ * 跨域 iframe 里的按键不会冒泡到桌面壳层,因此由本注册在 iframe 内以捕获阶段监听,
+ * 命中后 `preventDefault` 并经父窗口桥上报动作;宿主(`layout/components/iframe.tsx`
+ * 的 `dsh://zoom-shortcut` 分支)把它写进 `store.setting.zoom_factor` 真值,再由
+ * `useZoomFactor` 应用到 WebView。
+ *
+ * 壳层自身获得焦点时的快捷键由宿主自己的监听处理,两端口径一致(见 `utils/zoom.ts`)。
+ * 桌面端不再注入 `ZOOM_SHORTCUT_BRIDGE_JS`:插件在场即由本注册承担。
+ */
+import { TYPE_ZOOM_SHORTCUT } from '../constants'
+import { invokeParent } from '../service/invoke-parent'
+import { zoomActionFromShortcut } from '../utils/zoom'
+
+/**
+ * 注册缩放快捷键:捕获 iframe 内的缩放按键并上报宿主。
+ * @returns 卸载函数。
+ */
+export function registerZoomShortcut(): () => void {
+ function onKeyDown(event: KeyboardEvent): void {
+ const action = zoomActionFromShortcut(event)
+ if (!action)
+ return
+ event.preventDefault()
+ invokeParent({ type: TYPE_ZOOM_SHORTCUT, action })
+ }
+
+ window.addEventListener('keydown', onKeyDown, { capture: true })
+ return () => window.removeEventListener('keydown', onKeyDown, { capture: true })
+}
diff --git a/archive/dsh-tauri/src/client/service/invoke-parent.ts b/archive/dsh-tauri/src/client/service/invoke-parent.ts
new file mode 100644
index 00000000..2a7fe384
--- /dev/null
+++ b/archive/dsh-tauri/src/client/service/invoke-parent.ts
@@ -0,0 +1,33 @@
+import type { ParentMessage } from '../types'
+
+/** 发送结果:`ok=false` 表示未送达(没有宿主 / payload 不可结构化克隆)。 */
+export interface InvokeParentResult {
+ ok: boolean
+ /** `ok=false` 时的原因(postMessage 抛出的原始错误)。 */
+ error?: unknown
+}
+
+/**
+ * 向主窗口(宿主)发送一条桥消息 —— iframe 侧**发消息的唯一出口**。
+ *
+ * 只负责发送(fire-and-forget):需要应答时配合 `listenParent` 按 nonce 匹配,
+ * 见 `service/invoke.ts` 的 invoke 桥。
+ *
+ * 自身**不抛错**,用返回值表达失败:没有宿主(顶层窗口 `window.parent === window`)
+ * 或宿主已销毁 / payload 不可克隆时返回 `{ ok: false, error }`。fire-and-forget 的
+ * 调用方(导航桥、错误上报)忽略返回值即可;需要知道送达结果的调用方(invoke 桥)
+ * 据此立即失败,而不是干等到超时。
+ *
+ * 所有自定义桥都必须经本函数发消息,不要各自写 `window.parent.postMessage(…)`。
+ */
+export function invokeParent(message: ParentMessage): InvokeParentResult {
+ if (typeof window === 'undefined' || window.parent === window)
+ return { ok: false, error: new Error('NO_HOST: parent window is not available') }
+ try {
+ window.parent.postMessage(message, '*')
+ return { ok: true }
+ }
+ catch (error) {
+ return { ok: false, error }
+ }
+}
diff --git a/archive/dsh-tauri/src/client/service/invoke.test.ts b/archive/dsh-tauri/src/client/service/invoke.test.ts
new file mode 100644
index 00000000..4727e684
--- /dev/null
+++ b/archive/dsh-tauri/src/client/service/invoke.test.ts
@@ -0,0 +1,115 @@
+import type { InvokeBridgeReply } from '../types'
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+import {
+ INVOKE_TIMEOUT_MS,
+ PLUGIN_ID,
+ SRC_INVOKE_REPLY,
+ TYPE_INVOKE_REPLY,
+} from '../constants'
+import { invoke } from './invoke'
+
+/**
+ * 构造一个最小的 window 替身:parent 作为宿主接收 postMessage,按类型独立收集
+ * 'message' 监听器并允许测试手动分发一次宿主应答。invoke.ts 只依赖
+ * window.parent / window.addEventListener / window.removeEventListener。
+ */
+function makeWindow() {
+ const windowListeners = new Set<(event: MessageEvent<unknown>) => void>()
+ const parent = {
+ postMessage: vi.fn(),
+ }
+ const win = {
+ parent,
+ addEventListener: vi.fn((type: string, fn: (event: MessageEvent<unknown>) => void) => {
+ if (type === 'message')
+ windowListeners.add(fn)
+ }),
+ removeEventListener: vi.fn((type: string, fn: (event: MessageEvent<unknown>) => void) => {
+ if (type === 'message')
+ windowListeners.delete(fn)
+ }),
+ // 模拟宿主回传:source 必须严格 === window.parent 才能通过 onMessage 的过滤
+ dispatchReply(reply: InvokeBridgeReply) {
+ for (const listener of [...windowListeners])
+ listener({ source: parent, data: reply } as unknown as MessageEvent<unknown>)
+ },
+ }
+ return { win, parent, dispatchReply: win.dispatchReply }
+}
+
+describe('dsh-tauri invoke', () => {
+ let win: ReturnType<typeof makeWindow>['win']
+ let parent: ReturnType<typeof makeWindow>['parent']
+ let dispatchReply: ReturnType<typeof makeWindow>['dispatchReply']
+
+ beforeEach(() => {
+ vi.useFakeTimers()
+ win = makeWindow().win
+ parent = win.parent
+ dispatchReply = win.dispatchReply
+ vi.stubGlobal('window', win)
+ })
+
+ afterEach(() => {
+ vi.unstubAllGlobals()
+ vi.useRealTimers()
+ })
+
+ function postedRequest() {
+ expect(parent.postMessage).toHaveBeenCalledTimes(1)
+ return parent.postMessage.mock.calls[0][0] as Record<string, unknown>
+ }
+
+ it('成功应答时 resolve,并立刻清理超时计时器', async () => {
+ const promise = invoke<{ enabled: boolean }>('get_pet_status', { a: 1 })
+ // postMessage 发出请求,且只留有这一个超时计时器(正是要清理的目标)
+ expect(vi.getTimerCount()).toBe(1)
+ const request = postedRequest()
+ expect(request.source).toBe('dsh-tauri-invoke')
+ expect(request.type).toBe('dsh://tauri:invoke')
+ expect(request.cmd).toBe('get_pet_status')
+ expect(typeof request.nonce).toBe('string')
+ expect(request.nonce).toMatch(new RegExp(`^${PLUGIN_ID}:\\d+$`))
+
+ dispatchReply({ source: SRC_INVOKE_REPLY, type: TYPE_INVOKE_REPLY, nonce: request.nonce as string, ok: true, value: { enabled: true } })
+
+ await expect(promise).resolves.toEqual({ enabled: true })
+ // 修复点:成功路径也必须 clearTimeout,否则计时器休眠 15s 仍存活(泄漏)
+ expect(vi.getTimerCount()).toBe(0)
+ })
+
+ it('错误应答时 reject,并清理超时计时器与监听器', async () => {
+ const promise = invoke('set_pet_enabled', { enabled: true })
+ const request = postedRequest()
+ expect(vi.getTimerCount()).toBe(1)
+
+ dispatchReply({ source: SRC_INVOKE_REPLY, type: TYPE_INVOKE_REPLY, nonce: request.nonce as string, ok: false, error: 'boom' })
+
+ await expect(promise).rejects.toThrow('boom')
+ expect(vi.getTimerCount()).toBe(0)
+ // 监听器已从 window 移除(宿主回传的 listener 不应残留)
+ dispatchReply({ source: SRC_INVOKE_REPLY, type: TYPE_INVOKE_REPLY, nonce: request.nonce as string, ok: true, value: 1 })
+ expect(vi.getTimerCount()).toBe(0)
+ })
+
+ it('宿主 15s 未应答时超时 reject,且无残留计时器', async () => {
+ const promise = invoke('get_pet_status')
+ postedRequest()
+ expect(vi.getTimerCount()).toBe(1)
+
+ vi.advanceTimersByTime(INVOKE_TIMEOUT_MS)
+
+ await expect(promise).rejects.toThrow('NODE_NOT_ANSWERED: invoke get_pet_status timed out')
+ expect(vi.getTimerCount()).toBe(0)
+ })
+
+ it('postMessage 抛错时 reject,并清理超时计时器与监听器', async () => {
+ parent.postMessage.mockImplementation(() => {
+ throw new Error('DataCloneError: stored value cannot be cloned')
+ })
+ const promise = invoke('get_pet_status', { session: { loop: true } })
+ // postMessage 抛错时不应发出任何东西,计时器也必须被清除
+ await expect(promise).rejects.toThrow('DataCloneError')
+ expect(vi.getTimerCount()).toBe(0)
+ })
+})
diff --git a/archive/dsh-tauri/src/client/service/invoke.ts b/archive/dsh-tauri/src/client/service/invoke.ts
new file mode 100644
index 00000000..74520962
--- /dev/null
+++ b/archive/dsh-tauri/src/client/service/invoke.ts
@@ -0,0 +1,107 @@
+import type { InvokeArgs, InvokeBridgeReply, InvokeBridgeRequest, InvokeOptions } from '../types'
+import { INVOKE_TIMEOUT_MS, PLUGIN_ID, SRC_INVOKE, TYPE_INVOKE, TYPE_INVOKE_REPLY } from '../constants'
+import { invokeParent } from './invoke-parent'
+import { listenParent } from './listen-parent'
+
+/**
+ * dsh-tauri invoke 桥(iframe 侧客户端)。
+ *
+ * iframe 内的 dsh 界面 / 插件没有 `__TAURI_INTERNALS__`(只有顶层 webview 有),
+ * 因此无法直接 `import { invoke } from '@tauri-apps/api/core'`。本桥把这些调用
+ * 经 postMessage 转发到宿主(主 webview)的监听器(见桌面端
+ * `src/hooks/use-invoke-iframe.ts`),由宿主调用 Tauri `invoke` 并把结果回传。
+ *
+ * 协议(与宿主监听器逐字一致):
+ * iframe → 宿主:{ source: 'dsh-tauri-invoke', type: 'dsh://tauri:invoke',
+ * cmd, args, nonce }
+ * 宿主 → iframe:{ source: 'dsh-desktop-invoke', type: 'dsh://tauri:reply',
+ * nonce, ok, value | error }
+ *
+ * 收发都走父窗口桥原语(`invokeParent` / `listenParent`),本文件只负责
+ * nonce 匹配、超时与错误归一。
+ */
+
+let nonceSeq = 0
+
+/** 生成全局唯一的请求 nonce(`<pluginId>:<seq>`,进程内递增)。 */
+function nextNonce(): string {
+ nonceSeq += 1
+ return `${PLUGIN_ID}:${nonceSeq}`
+}
+
+/**
+ * 经宿主桥调用一个 Tauri command,返回其成功值;command 抛错或超时时 reject。
+ *
+ * 签名与 `@tauri-apps/api/core` 的 `invoke` 保持一致(`cmd` / `args` / `options`),
+ * 便于把 `import { invoke } from '@tauri-apps/api/core'` 原地换成此实现;
+ * `options.headers` 不被桥转发(宿主直接调用 command),仅为签名一致而保留。
+ *
+ * @param cmd Tauri command 名(如 `get_pet_status`)
+ * @param args command 参数(对象 / 数字数组 / ArrayBuffer / Uint8Array)
+ * @typeParam T command 成功返回值的类型
+ */
+export function invoke<T>(
+ cmd: string,
+ args?: InvokeArgs,
+ _options?: InvokeOptions,
+): Promise<T> {
+ const nonce = nextNonce()
+
+ return new Promise<T>((resolve, reject) => {
+ let settled = false
+ // 定时器句柄:settle 成功/失败路径与 postMessage 抛错路径都要清理,避免高频
+ // 成功调用留下一 15s 的休眠超时闭包(见 issue #396 前端延迟根因之一)。
+ let timer: ReturnType<typeof setTimeout> | undefined
+
+ // 只接受宿主回传且 nonce 命中本次请求的应答(来源由 listenParent 校验)
+ const unlisten = listenParent<InvokeBridgeReply>((reply) => {
+ if (reply.type !== TYPE_INVOKE_REPLY || reply.nonce !== nonce)
+ return
+ settle(reply)
+ })
+
+ function settle(reply: InvokeBridgeReply): void {
+ if (settled)
+ return
+ settled = true
+ if (timer !== undefined)
+ clearTimeout(timer)
+ // issue #396 修复:完成路径(成功/失败)都必须清理超时计时器,避免高频成功调用遗留「休眠超时闭包」。
+ unlisten()
+ if (reply.ok) {
+ resolve(reply.value as T)
+ }
+ else {
+ reject(new Error(reply.error || `NODE_NOT_ANSWERED: invoke ${cmd} rejected by host`))
+ }
+ }
+
+ // 超时保护:宿主未应答(监听器未挂载/iframe 非 dsh 环境等)时按失败处理
+ timer = setTimeout(() => {
+ if (settled)
+ return
+ unlisten()
+ settled = true
+ reject(new Error(`NODE_NOT_ANSWERED: invoke ${cmd} timed out`))
+ }, INVOKE_TIMEOUT_MS)
+
+ const request: InvokeBridgeRequest = {
+ source: SRC_INVOKE,
+ type: TYPE_INVOKE,
+ cmd,
+ args,
+ nonce,
+ }
+ // 未送达(无宿主 / payload 不可克隆)时立即失败,不等超时
+ const sent = invokeParent(request)
+ if (!sent.ok) {
+ if (timer !== undefined)
+ clearTimeout(timer)
+ if (settled)
+ return
+ settled = true
+ unlisten()
+ reject(sent.error ?? new Error(`NODE_NOT_ANSWERED: invoke ${cmd} not delivered`))
+ }
+ })
+}
diff --git a/archive/dsh-tauri/src/client/service/listen-parent.ts b/archive/dsh-tauri/src/client/service/listen-parent.ts
new file mode 100644
index 00000000..3e70a93f
--- /dev/null
+++ b/archive/dsh-tauri/src/client/service/listen-parent.ts
@@ -0,0 +1,40 @@
+import type { ParentMessage, ParentMessageContext, ParentMessageTypes, UnlistenFn } from '../types'
+
+function matchesType(type: string | undefined, types: ParentMessageTypes): boolean {
+ return typeof types === 'string' ? type === types : types.includes(type ?? '')
+}
+
+/**
+ * 监听主窗口(宿主)发来的消息 —— iframe 侧**收消息的唯一入口**。
+ *
+ * 只做安全相关的两道校验:
+ * 1. `event.source === window.parent`:宿主是本 iframe 唯一的直接父窗口,兄弟 iframe
+ * 或页面内第三方脚本无法伪造该 source;
+ * 2. 可选 `types` 过滤:按 `type` 分发(宿主侧已不比对 `source`,客户端同样只认 `type`)。
+ *
+ * 所有自定义桥(导航、错误上报、插件自有协议)都必须经本函数收消息,
+ * 不要各自写 `window.addEventListener('message', …)`。
+ *
+ * @returns 取消监听的函数(与 `@tauri-apps/api/event` 的 `listen` 返回形态一致)
+ */
+export function listenParent<T extends ParentMessage>(
+ handler: (message: T, context: ParentMessageContext) => void,
+ types?: ParentMessageTypes,
+): UnlistenFn {
+ function onMessage(event: MessageEvent<unknown>): void {
+ if (event.source !== window.parent)
+ return
+ const data = event.data
+ if (!data || typeof data !== 'object')
+ return
+ const message = data as ParentMessage
+ if (types !== undefined && !matchesType(message.type, types))
+ return
+ handler(message as T, { event })
+ }
+
+ window.addEventListener('message', onMessage)
+ return () => {
+ window.removeEventListener('message', onMessage)
+ }
+}
diff --git a/archive/dsh-tauri/src/client/service/listen.ts b/archive/dsh-tauri/src/client/service/listen.ts
new file mode 100644
index 00000000..f67c874a
--- /dev/null
+++ b/archive/dsh-tauri/src/client/service/listen.ts
@@ -0,0 +1,36 @@
+import type { EventCallback, Options, TauriEvent, TauriEventBridgeMessage, UnlistenFn } from '../types'
+import { TYPE_EVENT } from '../constants'
+import { listenParent } from './listen-parent'
+
+/**
+ * 订阅一个「宿主转发进 iframe 的 Tauri 事件」。
+ *
+ * iframe 内的插件没有 `__TAURI_INTERNALS__`,无法直接 `import { listen } from
+ * '@tauri-apps/api/event'`;由宿主(主 webview)订阅 Tauri 事件后按协议转发进来:
+ *
+ * 宿主 → iframe:{ source: 'dsh-desktop', type: 'dsh://tauri:event', event, payload }
+ *
+ * 桌面端的配对写法(`src/layout/components/iframe.tsx` 一类的宿主代码):
+ * `useListenIframe(iframeRef, event, payload => ({ type: 'dsh://tauri:event', event, payload }))`
+ *
+ * 签名与 `@tauri-apps/api/event` 的 `listen` 保持一致(含返回 `Promise<UnlistenFn>`),
+ * 便于调用方按同一种写法使用;`options.target` 目前不生效(桥只转发到当前 iframe)。
+ */
+export function listen<T>(
+ event: string,
+ handler: EventCallback<T>,
+ _options?: Options,
+): Promise<UnlistenFn> {
+ const unlisten = listenParent<TauriEventBridgeMessage<T>>((message) => {
+ if (message.event !== event)
+ return
+ handler({
+ event: message.event,
+ // 宿主未提供 id 时回落 0(Tauri 的 Event.id 为数字,此处保持一致形状)
+ id: typeof message.id === 'number' ? message.id : 0,
+ payload: message.payload,
+ } satisfies TauriEvent<T>)
+ }, TYPE_EVENT)
+
+ return Promise.resolve(unlisten)
+}
diff --git a/archive/dsh-tauri/src/client/storage/index.ts b/archive/dsh-tauri/src/client/storage/index.ts
new file mode 100644
index 00000000..931a354f
--- /dev/null
+++ b/archive/dsh-tauri/src/client/storage/index.ts
@@ -0,0 +1,11 @@
+/**
+ * client/storage.ts — 浏览器端统一 key-value 存储(unstorage)。
+ *
+ * 统一代码源:unstorage 这类客户端依赖**只由 dsh-tauri 的 client bundle 加载**,
+ * 本模块只 re-export `createStorage` 与 `localStorageDriver`;各插件自定义
+ * `const storage = createStorage({ driver: localStorageDriver({ base: PLUGIN_ID }) })`
+ * 并统一用 `storage.setItem/getItem/removeItem`,不再 import 'unstorage'。
+ */
+
+export { createStorage } from 'unstorage'
+export { default as localStorageDriver } from 'unstorage/drivers/localstorage'
diff --git a/archive/dsh-tauri/src/client/store/index.ts b/archive/dsh-tauri/src/client/store/index.ts
new file mode 100644
index 00000000..deb8cd01
--- /dev/null
+++ b/archive/dsh-tauri/src/client/store/index.ts
@@ -0,0 +1,86 @@
+/**
+ * Framework-neutral external state store.
+ *
+ * This store is intentionally independent of React and Cordis so it can be
+ * shared by slot components, hydration/controllers, and DOM observers. React
+ * consumers can connect it with `useSyncExternalStore`.
+ *
+ * State updates are immutable: callers return the next state instead of
+ * mutating a draft. This avoids cloning the whole state tree for every update
+ * and makes the ownership of each state transition explicit.
+ */
+
+export type StoreUpdater<T> = (current: T) => T
+export type StoreValue<T> = T | StoreUpdater<T>
+export type StoreListener = () => void
+
+export interface ExternalStore<T> {
+ /** Returns the same reference until a real state change is committed. */
+ getSnapshot: () => T
+ /** Subscribes to committed state changes and returns an unsubscribe function. */
+ subscribe: (listener: StoreListener) => () => void
+ /** Replaces the state, or derives the next state from the current state. */
+ set: (next: StoreValue<T>) => void
+}
+
+/**
+ * Creates a small external store for state shared across independent plugin
+ * slots or non-React controllers.
+ */
+export function createExternalStore<T>(initial: T): ExternalStore<T> {
+ let state = initial
+ const listeners = new Set<StoreListener>()
+
+ function set(next: StoreValue<T>): void {
+ const nextState = typeof next === 'function'
+ ? (next as StoreUpdater<T>)(state)
+ : next
+
+ // Besides avoiding needless React renders, this preserves the
+ // useSyncExternalStore requirement that snapshots remain stable when
+ // nothing observable changed.
+ if (Object.is(nextState, state))
+ return
+
+ state = nextState
+ notify()
+ }
+
+ function subscribe(listener: StoreListener): () => void {
+ listeners.add(listener)
+ return () => {
+ listeners.delete(listener)
+ }
+ }
+
+ function notify(): void {
+ // Iterate over a snapshot so a listener may safely unsubscribe itself or
+ // another listener while notification is in progress.
+ for (const listener of [...listeners])
+ listener()
+ }
+
+ function getSnapshot(): T {
+ return state
+ }
+
+ return { getSnapshot, subscribe, set }
+}
+
+/**
+ * A deliberately tiny signal for invalidating derived UI such as locale
+ * revisions without allocating `{ rev: number }` snapshots.
+ */
+export interface RevisionSignal extends ExternalStore<number> {
+ bump: () => void
+}
+
+export function createRevisionSignal(initial = 0): RevisionSignal {
+ const store = createExternalStore(initial)
+ return {
+ ...store,
+ bump: () => {
+ store.set(revision => revision + 1)
+ },
+ }
+}
diff --git a/archive/dsh-tauri/src/client/types/agent.ts b/archive/dsh-tauri/src/client/types/agent.ts
new file mode 100644
index 00000000..011dd2e8
--- /dev/null
+++ b/archive/dsh-tauri/src/client/types/agent.ts
@@ -0,0 +1,8 @@
+/**
+ * 官方 Agent/Tools 类型统一客户端出口。
+ * 【来源】@deepseek-ai/dsh-agent、@deepseek-ai/dsh-tools 官方 d.ts。
+ * 【修订】2026-01:新增 dsh-tauri type-only 出口,运行时仍由 loader 注入。
+ */
+export type { ModelSelection } from '@deepseek-ai/dsh-agent'
+export type { ToolExecution, ToolRunContext } from '@deepseek-ai/dsh-tools'
diff --git a/archive/dsh-tauri/src/client/types/bridge.ts b/archive/dsh-tauri/src/client/types/bridge.ts
new file mode 100644
index 00000000..f73af7bb
--- /dev/null
+++ b/archive/dsh-tauri/src/client/types/bridge.ts
@@ -0,0 +1,87 @@
+/** 记录动作(与宿主 `PluginError.action` 语义一致)。 */
+export type ErrorAction = 'runtime' | 'install' | 'update' | 'remove'
+
+// ── 父窗口桥(iframe ↔ 主窗口)共同的信封与形态 ────────────────────
+/**
+ * 主窗口(宿主)与 iframe 之间传递的桥消息(最小信封,按 `type` 分发)。
+ *
+ * 宿主侧不再比对 `source`:来源由「`event.source === window.parent` + origin」
+ * 保证,协议分支只认 `type`。
+ */
+export interface ParentMessage {
+ type?: string
+ [key: string]: unknown
+}
+
+/** 取消监听函数(与 `@tauri-apps/api/event` 的 `UnlistenFn` 同形)。 */
+export type UnlistenFn = () => void
+
+/** 父窗口消息的 `type` 过滤器:单个类型或类型列表。 */
+export type ParentMessageTypes = string | readonly string[]
+
+/** 已校验的父窗口消息上下文。 */
+export interface ParentMessageContext {
+ /** 原始 message 事件(需要 `event.origin` 等原始信息时使用)。 */
+ event: MessageEvent
+}
+
+/** Tauri 事件对象(与 `@tauri-apps/api/event` 的 `Event<T>` 同形,改名避免遮蔽 DOM `Event`)。 */
+export interface TauriEvent<T> {
+ event: string
+ id: number
+ payload: T
+}
+
+/** Tauri `listen` 的回调(与 `@tauri-apps/api/event` 的 `EventCallback<T>` 同形)。 */
+export type EventCallback<T> = (event: TauriEvent<T>) => void
+
+/** Tauri `listen` 的可选项;桥只支持主页面的缺省目标,`target` 目前不生效。 */
+export interface Options {
+ target?: string | EventTarget
+}
+
+/** Tauri `invoke` 的参数形态(与 `@tauri-apps/api/core` 的 `InvokeArgs` 同形)。 */
+export type InvokeArgs = Record<string, unknown> | number[] | ArrayBuffer | Uint8Array
+
+/** Tauri `invoke` 的可选项;桥不转发 `headers`(宿主直接调用 command),仅为签名一致。 */
+export interface InvokeOptions {
+ headers: HeadersInit
+}
+
+/** 宿主 → iframe 的 Tauri 事件转发信封(`TYPE_EVENT`)。 */
+export interface TauriEventBridgeMessage<T = unknown> extends ParentMessage {
+ event: string
+ /** Tauri 侧的事件 id;宿主未提供时为 0。 */
+ id?: number
+ payload: T
+}
+
+// ── dsh-tauri invoke 桥(iframe → 宿主 → invoke())────────────────
+/**
+ * iframe → 宿主 的 invoke 请求(postMessage)。
+ *
+ * `extends ParentMessage`:本桥的信封与 `invokeParent` / `listenParent` 的
+ * 最小信封同族(`type` 分发 + 允许额外字段),继承其索引签名才能直接作为
+ * 这两个原语的参数类型。
+ */
+export interface InvokeBridgeRequest extends ParentMessage {
+ source: 'dsh-tauri-invoke'
+ type: 'dsh://tauri:invoke'
+ /** Tauri command 名。 */
+ cmd: string
+ /** command 参数对象。 */
+ args?: InvokeArgs
+ /** 一次请求的唯一标识,宿主原样回填用于匹配。 */
+ nonce: string
+}
+
+/** 宿主 → iframe 的 invoke 应答(postMessage)。 */
+export interface InvokeBridgeReply extends ParentMessage {
+ source: 'dsh-desktop-invoke'
+ type: 'dsh://tauri:reply'
+ nonce: string
+ /** true=成功(value 有效);false=失败(error 为 command 抛出的字符串)。 */
+ ok: boolean
+ value?: unknown
+ error?: string
+}
diff --git a/archive/dsh-tauri/src/client/types/context.ts b/archive/dsh-tauri/src/client/types/context.ts
new file mode 100644
index 00000000..82d6b88a
--- /dev/null
+++ b/archive/dsh-tauri/src/client/types/context.ts
@@ -0,0 +1,64 @@
+import type { ILayout, LocaleService } from './inject'
+
+/**
+ * 槽位条目的注册选项子集(list/keyed 槽的投影只读这几项)。
+ *
+ * `label` 与上游 `SlotLabel` 一致:可以是 thunk,读时才求值,
+ * 因此本地化文案无需重新注册(对齐上游 `resolveSlotLabel`)。
+ */
+export interface SlotEntryOptions {
+ id?: string
+ key?: string
+ order?: number
+ label?: string | (() => string)
+ priority?: number
+}
+
+/** 一个已注册槽位条目的只读投影(`entriesOfSlot` 的元素)。 */
+export interface SlotEntryLike {
+ options: SlotEntryOptions
+}
+
+/**
+ * 客户端 slots 注册中心(dsh 核心 runtime 注入)的最小契约。
+ * 槽位注册统一走 ctx.slots.inject(slot, setup) + ctx.slots.register(...)。
+ *
+ * `entriesOfSlot` / `subscribe` 用于宿主侧投影官方 list 槽(如 0.1.5-rc.1 的
+ * `sidebar.panellist`):前者读活条目,后者在声明/注册/注销时通知。
+ * 旧核心(≤0.1.2-rc.1)的 slots 服务没有这两个方法,消费方必须能力探测。
+ */
+export interface ClientSlots {
+ inject: (slot: string, setup: () => unknown) => () => void
+ register: (slot: unknown, component: unknown) => () => void
+ entriesOfSlot?: (slot: string) => readonly SlotEntryLike[]
+ subscribe?: (slot: string, listener: () => void) => () => void
+}
+
+/** 反射服务(dsh 核心 runtime 注入):服务注册(provide)与取用(get)。 */
+export interface ClientReflect {
+ get: <T = unknown>(key: string) => T | undefined
+ provide: (key: string, value: unknown) => () => void
+}
+
+/** 生命周期方法(cordis Context 同款;卸载时执行 disposer,支持一次性注册多个)。 */
+export type ClientEffect = (
+ callback: () => void | (() => void) | Array<() => void>,
+ id?: string,
+) => void
+
+/**
+ * Client context with the client services consumed by the Tauri plugins.
+ *
+ * 自包含契约(不依赖上游 cordis 的类型解析):只声明本 workspace 客户端
+ * 插件实际消费的成员——locale / layout / slots / reflect / effect /
+ * sessions / workspaces(后两者为宿主服务,消费方自行断言领域类型)。
+ */
+export interface ClientContext {
+ locale: LocaleService
+ layout: ILayout
+ slots: ClientSlots
+ reflect: ClientReflect
+ effect: ClientEffect
+ sessions?: unknown
+ workspaces?: unknown
+}
diff --git a/archive/dsh-tauri/src/client/types/index.ts b/archive/dsh-tauri/src/client/types/index.ts
new file mode 100644
index 00000000..d5c2ed7b
--- /dev/null
+++ b/archive/dsh-tauri/src/client/types/index.ts
@@ -0,0 +1,6 @@
+export * from './agent'
+export * from './bridge'
+export * from './context'
+export * from './inject'
+export * from './json'
+export * from './runtime'
diff --git a/archive/dsh-tauri/src/client/types/inject.ts b/archive/dsh-tauri/src/client/types/inject.ts
new file mode 100644
index 00000000..82fda456
--- /dev/null
+++ b/archive/dsh-tauri/src/client/types/inject.ts
@@ -0,0 +1,27 @@
+import type { ILayout as UpstreamLayout } from '@deepseek-ai/dsh-client-ui-layout/client'
+
+/**
+ * 布局服务面(ctx.layout)。
+ *
+ * 上游类型随安装的核心版本变化,而仓库 devDependency 解析到的布局包仍是
+ * 0.1.0-rc.8(只有 toggleSidebar / openDetails / closeDetails)。0.1.5-rc.1
+ * 核心在运行时把 details 换成 rightbar,并新增全局面板选中 `selectPanel`。
+ * 因此以上游类型为基座、可选地补上新核心方法,消费方一律能力探测后再调用。
+ */
+export interface ILayout extends UpstreamLayout {
+ /**
+ * ≥0.1.5-rc.1:按 `main` 槽的 key 选中全局面板,`null` 回到会话(不切换 Session)。
+ * 传入未注册的 id 会上游抛错,调用前需自查 `main` 的 key 集合。
+ */
+ selectPanel?: (panelId: string | null) => void
+ /** ≥0.1.5-rc.1:报告右侧栏是否占 track 以及是否全屏(取代 openDetails)。 */
+ openRightbar?: (track: boolean, fullscreen: boolean) => void
+ /** ≥0.1.5-rc.1:报告右侧栏隐藏(无 track、无手柄)。 */
+ closeRightbar?: () => void
+}
+
+export interface LocaleService {
+ register: (namespace: string, locale: string, dict: Record<string, unknown>) => () => void
+ getLocale: () => { active: string }
+ subscribe: (onChange: () => void) => () => void
+}
diff --git a/archive/dsh-tauri/src/client/types/json.ts b/archive/dsh-tauri/src/client/types/json.ts
new file mode 100644
index 00000000..25166375
--- /dev/null
+++ b/archive/dsh-tauri/src/client/types/json.ts
@@ -0,0 +1,8 @@
+/**
+ * 官方 branded id 与 JSON 类型统一出口。
+ * 【来源】@deepseek-ai/dsh-session、@deepseek-ai/dsh-workspace 官方 d.ts。
+ * 【版本】dsh-session/[email protected]。
+ * 【修订】2026-01:新增 dsh-tauri type-only 出口。
+ */
+export type { JsonValue, SessionId } from '@deepseek-ai/dsh-session'
+export type { WorkspaceId } from '@deepseek-ai/dsh-workspace'
diff --git a/archive/dsh-tauri/src/client/types/runtime.ts b/archive/dsh-tauri/src/client/types/runtime.ts
new file mode 100644
index 00000000..df587e8a
--- /dev/null
+++ b/archive/dsh-tauri/src/client/types/runtime.ts
@@ -0,0 +1,99 @@
+/**
+ * 官方 controller 客户端类型统一出口。
+ * 【来源】@deepseek-ai/dsh-api-session-controller/client 与
+ * @deepseek-ai/dsh-api-workspace-controller/client。
+ * 【版本】当前 lockfile 解析版本 0.1.2-alpha.3。
+ * 【修订】2026-01:删除重复快照接口;startSession 仅保留为兼容扩展。
+ */
+import type { ISessions, SessionListState, SessionSummary } from '@deepseek-ai/dsh-api-session-controller/client'
+import type { IWorkspaces, WorkspaceSnapshot, WorkspaceSource, WorkspaceView } from '@deepseek-ai/dsh-api-workspace-controller/client'
+import type { SlotRegistry } from '@deepseek-ai/dsh-client-ui-renderer/client'
+import type { WorkspaceId as WorkspaceIdType } from './json'
+
+export type { ISessions, IWorkspaces, SessionListState, SessionSummary, SlotRegistry, WorkspaceSnapshot, WorkspaceSource, WorkspaceView }
+export type SessionsRuntime = ISessions
+export type WorkspacesRuntime = IWorkspaces & { startSession?: (workspaceId?: WorkspaceIdType) => void }
+
+/**
+ * workspace 共享的宽松运行时面(ctx.sessions / ctx.workspaces 投影)。
+ * 消费插件(dsh-tauri-session / dsh-tauri-rightclick / dsh-tauri-pet)统一从
+ * `dsh-tauri/client` 引用,不再各自声明重复面,也不重复 `as unknown as` 断言
+ * (断言目标统一为此处类型)。未知成员用宽松签名,需要官方精确面时用上面的
+ * SessionsRuntime / WorkspacesRuntime Pick。
+ */
+
+/** 会话列表快照(list.subscribe/getSnapshot 投影)。 */
+export interface SessionSummaryLike {
+ id: string
+ title?: string
+ displayTitle?: string
+ cwd?: string
+ updatedAt?: number
+ blank?: boolean
+ /** Session provenance; official sidebar hides subagent sessions. */
+ origin?: string
+}
+
+export interface SessionListSnapshot {
+ ids: string[]
+ byId: Record<string, SessionSummaryLike>
+ current?: string
+ phase?: 'pending' | 'ready'
+}
+
+/** Minimal `ctx.sessions` face the plugins subscribe to. */
+export interface SessionsRuntimeLike {
+ list: {
+ subscribe: (listener: () => void) => () => void
+ getSnapshot: () => SessionListSnapshot
+ }
+ /** Rebuild the in-memory session list after deleting persisted sessions. */
+ refresh?: () => Promise<void>
+ open?: (sessionId: string) => unknown
+ binding?: (sessionId: string) => unknown
+ fork?: (...args: unknown[]) => unknown
+}
+
+/** 工作区视图快照(list 投影)。 */
+export interface WorkspaceViewLike {
+ workspaceId: string
+ path: string
+ title?: string
+ sessionIds: string[]
+}
+
+export interface WorkspaceListSnapshot {
+ items: readonly WorkspaceViewLike[]
+ archivedSessionIds?: readonly string[]
+}
+
+/** Minimal `ctx.workspaces` face the plugins subscribe to. */
+export interface WorkspacesRuntimeLike {
+ list: {
+ subscribe: (listener: () => void) => () => void
+ getSnapshot: () => WorkspaceListSnapshot
+ }
+ /** Wire-truth owner behind the `list` projection. */
+ manager?: {
+ refresh?: () => Promise<void>
+ }
+ archiveSession?: (...args: unknown[]) => unknown
+ delete?: (...args: unknown[]) => unknown
+ startSession?: (workspaceId: string) => unknown
+}
+
+/**
+ * 「打开文件夹」所需的官方工作区能力(Alpha / rc.2 通用面)。
+ *
+ * 三个动作与官方「添加工作区」流程(ui-workspace `WorkspacePickFlow.adoptDirectory`)
+ * 逐步一致:`pickDirectory()` → `create({ path })` → `startSession(workspaceId)`;
+ * 任一步缺失即视为能力不可用,由消费方走 DOM 退级(点官方按钮)。
+ */
+export interface AddWorkspaceRuntime {
+ /** `uiWorkspace.pickDirectory()`:拉起宿主原生目录选择器;用户取消时为 null。 */
+ pickDirectory: () => Promise<string | null | undefined>
+ /** `workspaces.create({ path })`:登记工作区并返回其 id。 */
+ createWorkspace: (input: { path: string }) => Promise<{ workspaceId: string }>
+ /** `uiWorkspace.startSession(workspaceId)`:在目标工作区开一个新会话并打开。 */
+ startSession: (workspaceId: string) => unknown
+}
diff --git a/archive/dsh-tauri/src/client/utils/compat.test.ts b/archive/dsh-tauri/src/client/utils/compat.test.ts
new file mode 100644
index 00000000..c645cb14
--- /dev/null
+++ b/archive/dsh-tauri/src/client/utils/compat.test.ts
@@ -0,0 +1,78 @@
+import type { AddWorkspaceRuntime, ClientContext } from '../types'
+import { describe, expect, it, vi } from 'vitest'
+import { resolveAddWorkspace, resolveStartSession } from './compat'
+
+/**
+ * 构造只带 `ctx.get` 的最小客户端上下文:compat 的能力探测完全基于
+ * `ctx.get(name)` 的返回形态(不读 ctx 属性,避免 Cordis 的 inject 守卫)。
+ */
+function makeContext(services: Record<string, unknown>): ClientContext {
+ return {
+ get: (name: string) => services[name],
+ } as unknown as ClientContext
+}
+
+/** 断言能力可用(tsc/lint 友好的非空收窄,不用 `!` 断言)。 */
+function requireRuntime(ctx: ClientContext): AddWorkspaceRuntime {
+ const runtime = resolveAddWorkspace(ctx)
+ if (runtime === undefined)
+ throw new Error('resolveAddWorkspace returned undefined')
+ return runtime
+}
+
+describe('resolveStartSession', () => {
+ it('prefers uiWorkspace and falls back to workspaces', () => {
+ const uiStart = vi.fn()
+ const wsStart = vi.fn()
+ const uiContext = makeContext({ uiWorkspace: { startSession: uiStart } })
+ const rcContext = makeContext({ workspaces: { startSession: wsStart } })
+
+ resolveStartSession(uiContext)?.('w1')
+ resolveStartSession(rcContext)?.()
+
+ // this 必须绑定到各自的服务实例上(方法被解构后仍能工作)
+ expect(uiStart).toHaveBeenCalledWith('w1')
+ expect(uiStart.mock.instances[0]).toMatchObject({ startSession: uiStart })
+ expect(wsStart).toHaveBeenCalledWith(undefined)
+ })
+
+ it('returns undefined when no navigation service exists', () => {
+ expect(resolveStartSession(makeContext({}))).toBeUndefined()
+ expect(resolveStartSession(makeContext({ workspaces: {} }))).toBeUndefined()
+ })
+})
+
+describe('resolveAddWorkspace', () => {
+ it('binds pickDirectory / create / startSession to their owners', async () => {
+ const pickDirectory = vi.fn().mockResolvedValue('D:/work/demo')
+ const create = vi.fn().mockResolvedValue({ workspaceId: 'w1', path: 'D:/work/demo' })
+ const startSession = vi.fn()
+ const runtime = requireRuntime(makeContext({
+ uiWorkspace: { pickDirectory, startSession },
+ workspaces: { create },
+ }))
+
+ const path = await runtime.pickDirectory()
+ expect(path).toBe('D:/work/demo')
+ expect(pickDirectory.mock.instances[0]).toMatchObject({ pickDirectory })
+
+ const workspace = await runtime.createWorkspace({ path: 'D:/work/demo' })
+ expect(workspace.workspaceId).toBe('w1')
+ expect(create).toHaveBeenCalledWith({ path: 'D:/work/demo' })
+ expect(create.mock.instances[0]).toMatchObject({ create })
+
+ runtime.startSession(workspace.workspaceId)
+ expect(startSession).toHaveBeenCalledWith('w1')
+ })
+
+ it('reports unavailable when any capability is missing', () => {
+ const startSession = vi.fn()
+ const create = vi.fn()
+ // 缺 pickDirectory(目录选择器远程服务未注册)
+ expect(resolveAddWorkspace(makeContext({ uiWorkspace: { startSession }, workspaces: { create } }))).toBeUndefined()
+ // 缺 workspaces.create(只有导航服务)
+ expect(resolveAddWorkspace(makeContext({ uiWorkspace: { startSession, pickDirectory: vi.fn() } }))).toBeUndefined()
+ // 缺会话导航(无法在新工作区开会话)
+ expect(resolveAddWorkspace(makeContext({ uiWorkspace: { pickDirectory: vi.fn() }, workspaces: { create } }))).toBeUndefined()
+ })
+})
diff --git a/archive/dsh-tauri/src/client/utils/compat.ts b/archive/dsh-tauri/src/client/utils/compat.ts
new file mode 100644
index 00000000..a0260e79
--- /dev/null
+++ b/archive/dsh-tauri/src/client/utils/compat.ts
@@ -0,0 +1,175 @@
+import type { AddWorkspaceRuntime, ClientContext } from '../types'
+
+type RuntimeObject = Record<string, unknown>
+export type StartSession = (workspaceId?: string) => unknown
+
+/** Read a service without triggering Cordis' inject-only property guard. */
+function lookup(ctx: ClientContext, name: string): unknown {
+ const anyCtx = ctx as unknown as { get?: (name: string) => unknown } & RuntimeObject
+ try {
+ return typeof anyCtx.get === 'function' ? anyCtx.get(name) : anyCtx[name]
+ }
+ catch {
+ return undefined
+ }
+}
+
+/** Resolve the navigation method across Alpha and rc.2 service layouts. */
+export function resolveStartSession(ctx: ClientContext): StartSession | undefined {
+ const uiWorkspace = lookup(ctx, 'uiWorkspace') as RuntimeObject | undefined
+ const workspaces = lookup(ctx, 'workspaces') as RuntimeObject | undefined
+ const owner = uiWorkspace ?? workspaces
+ const fn = owner?.startSession
+ return typeof fn === 'function' ? (workspaceId?: string) => fn.call(owner, workspaceId) : undefined
+}
+
+/**
+ * 解析「打开文件夹」需要的官方工作区能力(`uiWorkspace` + `workspaces`)。
+ *
+ * 三段能力缺一即视为不可用(返回 undefined,由调用方退级到官方按钮):
+ * 目录选择在 `uiWorkspace.pickDirectory`(Alpha 与 rc.2 同名同形),
+ * 建工作区在 `workspaces.create`(WorkspaceController 官方公开方法),
+ * 打开新会话复用 `resolveStartSession` 的跨版本适配。
+ */
+export function resolveAddWorkspace(ctx: ClientContext): AddWorkspaceRuntime | undefined {
+ const uiWorkspace = lookup(ctx, 'uiWorkspace') as RuntimeObject | undefined
+ const workspaces = lookup(ctx, 'workspaces') as RuntimeObject | undefined
+ const pickDirectory = uiWorkspace?.pickDirectory
+ const create = workspaces?.create
+ const startSession = resolveStartSession(ctx)
+ if (typeof pickDirectory !== 'function' || typeof create !== 'function' || startSession === undefined)
+ return undefined
+
+ return {
+ pickDirectory: () => pickDirectory.call(uiWorkspace) as Promise<string | null | undefined>,
+ createWorkspace: input => create.call(workspaces, input) as Promise<{ workspaceId: string }>,
+ startSession: workspaceId => startSession(workspaceId),
+ }
+}
+
+/** Adapt alpha's nested list/navigation services to the rc.2 plugin contract. */
+export function compat(ctx: ClientContext): ClientContext {
+ const safeLookup = (name: string): unknown => lookup(ctx, name)
+
+ // Inline Alpha Detection: 判断当前环境是否为 Alpha 版本
+ const alphaSessions = safeLookup('sessions') as RuntimeObject | undefined
+ const isAlpha
+ = (alphaSessions?.list !== undefined && typeof alphaSessions.getSnapshot !== 'function')
+ || safeLookup('uiWorkspace') !== undefined
+
+ if (!isAlpha)
+ return ctx
+
+ // 补全当前环境的对象引用
+ const rawSessions = (alphaSessions ?? {}) as RuntimeObject
+ const rawWorkspaces = (safeLookup('workspaces') ?? {}) as RuntimeObject
+ const uiWorkspace = safeLookup('uiWorkspace') as RuntimeObject | undefined
+ const uiSession = safeLookup('uiSession') as RuntimeObject | undefined
+
+ // Inline Auto-Bind Proxy: 为 snapshot 绑定 Proxy 实例
+ const createBoundProxy = (target: unknown): RuntimeObject | undefined => {
+ if (!target || (typeof target !== 'object' && typeof target !== 'function'))
+ return undefined
+ return new Proxy(target as object, {
+ get(t, p, r) {
+ const member = Reflect.get(t, p, r)
+ return typeof member === 'function' ? member.bind(t) : member
+ },
+ }) as RuntimeObject
+ }
+
+ const list = createBoundProxy(rawSessions.list)
+ const workspaceList = createBoundProxy(rawWorkspaces.list)
+
+ // 映射 sessions 适配层
+ const sessions = new Proxy(rawSessions as object, {
+ get(target, prop, receiver) {
+ if (prop === 'list')
+ return list
+ if (prop === 'getSnapshot')
+ return () => (list?.getSnapshot as (() => unknown) | undefined)?.()
+ if (prop === 'subscribe')
+ return (l: () => void) => (list?.subscribe as ((cb: () => void) => unknown) | undefined)?.(l)
+ if (prop === 'provideInfo')
+ return (id: string) => provideInfo(rawSessions, id, uiSession)
+ const member = Reflect.get(target, prop, receiver)
+ return typeof member === 'function' ? member.bind(target) : member
+ },
+ }) as unknown as RuntimeObject
+
+ // 映射 workspaces 适配层
+ const workspaces = new Proxy(rawWorkspaces as object, {
+ get(target, prop, receiver) {
+ if (prop === 'list')
+ return workspaceList
+ if (prop === 'startSession') {
+ // rc.2 官方运行时的 workspaces 自身已提供 startSession;旧 alpha 才经由
+ // 独立的 uiWorkspace 服务暴露。优先 uiWorkspace,缺失时回退到 rawWorkspaces,
+ // 避免按钮点击被静默吞掉。
+ const owner = uiWorkspace ?? rawWorkspaces
+ const fn = owner.startSession
+ return typeof fn === 'function' ? (id?: string) => fn.call(owner, id) : undefined
+ }
+ if (prop === 'connectWorkspace') {
+ const owner = uiWorkspace ?? rawWorkspaces
+ const fn = owner.connectWorkspace
+ return typeof fn === 'function' ? (id: string) => fn.call(owner, id) : undefined
+ }
+
+ return Reflect.get(target, prop, receiver)
+ },
+ }) as unknown as RuntimeObject
+
+ // 返回最终的上下文代理对象
+ return new Proxy(ctx, {
+ get(target, prop, receiver) {
+ if (prop === 'sessions')
+ return sessions
+ if (prop === 'workspaces')
+ return workspaces
+ return Reflect.get(target, prop, receiver)
+ },
+ })
+}
+
+/**
+ * Alpha deliberately does not expose the old per-session info lookup. Try
+ * documented scope/provide implementations when a shell supplies one, but
+ * never make a plugin fail merely because that optional bridge is absent.
+ */
+function provideInfo(sessions: RuntimeObject, id: string, uiSession: RuntimeObject | undefined): unknown {
+ // Some desktop runtimes expose the complete per-session projection on the
+ // sessions service even though their list shape still looks like Alpha.
+ // Preserve that native path first; the adapter fallback below is only for
+ // runtimes that genuinely lack sessions.provideInfo().
+ const nativeProvideInfo = sessions.provideInfo
+ if (typeof nativeProvideInfo === 'function') {
+ try {
+ return nativeProvideInfo.call(sessions, id)
+ }
+ catch {
+ // The session may still be materializing; try the compatibility path.
+ }
+ }
+ const bindingFn = sessions.binding
+ const binding = typeof bindingFn === 'function' ? bindingFn.call(sessions, id) : undefined
+ if (!binding)
+ return undefined
+
+ const adapter = uiSession?.adapter as RuntimeObject | undefined
+ const resolveFn = adapter?.resolve
+
+ if (typeof resolveFn === 'function') {
+ try {
+ const projected = resolveFn.call(adapter, id) as RuntimeObject | undefined
+ const inputActions = (projected?.props as RuntimeObject | undefined)?.inputActions
+ if (inputActions !== undefined) {
+ return { props: { inputActions } }
+ }
+ }
+ catch {
+ // The binding can disappear while a newly-created session is materialized.
+ }
+ }
+ return undefined
+}
diff --git a/archive/dsh-tauri/src/client/utils/error.ts b/archive/dsh-tauri/src/client/utils/error.ts
new file mode 100644
index 00000000..69b76c46
--- /dev/null
+++ b/archive/dsh-tauri/src/client/utils/error.ts
@@ -0,0 +1,54 @@
+/**
+ * 错误上报桥(iframe 内 → 桌面宿主)。
+ *
+ * 与桌面端入站桥(`src/layout/components/iframe.tsx`)的协议逐字一致 —— 宿主按
+ * `type` 分发,任何一处不一致都会被静默丢弃:
+ *
+ * { type: 'dsh://plugin-error', id, error, action }
+ *
+ * 宿主收到后经 `report_plugin_error` 持久化到插件错误注册表
+ * (plugin-errors.json,按插件 id 幂等覆盖并推送新列表),「插件」面板据此
+ * 给本插件显示 danger 标记与更新/卸载入口。
+ *
+ * 发送统一走 `invokeParent`(父窗口桥唯一出口),不再自己 `postMessage`。
+ */
+import type { ErrorAction } from '../types'
+import { ERROR_TYPE, PLUGIN_ID } from '../constants'
+import { invokeParent } from '../service/invoke-parent'
+
+export { ERROR_TYPE, PLUGIN_ID } from '../constants'
+export type { ErrorAction } from '../types'
+
+/**
+ * 上报插件运行期错误到宿主。
+ * @param error 错误对象/消息(宿主截断保留 2000 字符)
+ * @param action 记录动作,默认 runtime
+ */
+export function reportPluginError(error: unknown, action: ErrorAction = 'runtime'): void {
+ const message = (error instanceof Error ? `${error.name}: ${error.message}` : String(error))
+ .trim()
+ .slice(0, 2000)
+ if (!message)
+ return
+ invokeParent({ type: ERROR_TYPE, id: PLUGIN_ID, error: message, action })
+}
+
+/**
+ * 把可能抛错的回调包装成「捕获 + 上报 + 继续执行」的安全回调:
+ * 观测器/监听器回调一旦抛错会变成 uncaught error,宿主无从知晓;包装后统一
+ * 上报为本插件的 runtime 错误。
+ *
+ * 注意只包插件自身代码路径,**不**监听全局 error/unhandledrejection —— dsh
+ * 应用与本插件共享同一页面,全量捕获会把整个应用的异常都记到本插件名下,
+ * 污染宿主错误注册表。
+ */
+export function guard<T extends unknown[]>(fn: (...args: T) => void): (...args: T) => void {
+ return (...args: T) => {
+ try {
+ fn(...args)
+ }
+ catch (error) {
+ reportPluginError(error, 'runtime')
+ }
+ }
+}
diff --git a/archive/dsh-tauri/src/client/utils/zoom.test.ts b/archive/dsh-tauri/src/client/utils/zoom.test.ts
new file mode 100644
index 00000000..7979cea7
--- /dev/null
+++ b/archive/dsh-tauri/src/client/utils/zoom.test.ts
@@ -0,0 +1,32 @@
+import type { ZoomShortcutLike } from './zoom'
+import { describe, expect, it } from 'vitest'
+import { zoomActionFromShortcut } from './zoom'
+
+function shortcut(
+ key: string,
+ modifiers: Partial<ZoomShortcutLike> = {},
+): ZoomShortcutLike {
+ return {
+ key,
+ ctrlKey: false,
+ metaKey: false,
+ altKey: false,
+ ...modifiers,
+ }
+}
+
+describe('client zoom shortcuts', () => {
+ it('maps Ctrl and Command zoom keys', () => {
+ expect(zoomActionFromShortcut(shortcut('+', { ctrlKey: true }))).toBe('increase')
+ expect(zoomActionFromShortcut(shortcut('=', { metaKey: true }))).toBe('increase')
+ expect(zoomActionFromShortcut(shortcut('-', { ctrlKey: true }))).toBe('decrease')
+ expect(zoomActionFromShortcut(shortcut('_', { metaKey: true }))).toBe('decrease')
+ expect(zoomActionFromShortcut(shortcut('0', { ctrlKey: true }))).toBe('reset')
+ })
+
+ it('rejects unmodified, AltGr-like and unrelated keys', () => {
+ expect(zoomActionFromShortcut(shortcut('+'))).toBeNull()
+ expect(zoomActionFromShortcut(shortcut('+', { ctrlKey: true, altKey: true }))).toBeNull()
+ expect(zoomActionFromShortcut(shortcut('1', { ctrlKey: true }))).toBeNull()
+ })
+})
diff --git a/archive/dsh-tauri/src/client/utils/zoom.ts b/archive/dsh-tauri/src/client/utils/zoom.ts
new file mode 100644
index 00000000..e6610cc6
--- /dev/null
+++ b/archive/dsh-tauri/src/client/utils/zoom.ts
@@ -0,0 +1,30 @@
+/** 缩放动作(与宿主 `src/utils/zoom.ts` 的 `ZoomAction` 同口径)。 */
+export type ZoomAction = 'increase' | 'decrease' | 'reset'
+
+/** 快捷键形态:只取判定所需字段,便于单测直接构造。 */
+export interface ZoomShortcutLike {
+ key: string
+ ctrlKey: boolean
+ metaKey: boolean
+ altKey: boolean
+}
+
+/**
+ * 缩放快捷键 → 动作:Ctrl/Cmd + `+` / `=` / `-` / `_` / `0`(Alt 组合不处理)。
+ *
+ * 与宿主 `src/utils/zoom.ts` 的 `zoomActionFromShortcut` 保持同一口径:两端都会收到
+ * 快捷键(壳层自身按键 / iframe 内捕获后经父窗口桥转发),判定必须一致,否则同一组
+ * 按键在两个焦点位置的行为不同。
+ */
+export function zoomActionFromShortcut(shortcut: ZoomShortcutLike): ZoomAction | null {
+ if ((!shortcut.ctrlKey && !shortcut.metaKey) || shortcut.altKey)
+ return null
+
+ if (shortcut.key === '+' || shortcut.key === '=')
+ return 'increase'
+ if (shortcut.key === '-' || shortcut.key === '_')
+ return 'decrease'
+ if (shortcut.key === '0')
+ return 'reset'
+ return null
+}
diff --git a/archive/dsh-tauri/src/host/apply.ts b/archive/dsh-tauri/src/host/apply.ts
new file mode 100644
index 00000000..19ebd0ee
--- /dev/null
+++ b/archive/dsh-tauri/src/host/apply.ts
@@ -0,0 +1,6 @@
+/**
+ * host/apply.ts — dsh-tauri 宿主插件入口:纯工具包,无宿主行为。
+ * loader 按行名导入包根时需要一个可挂载的插件入口。
+ */
+
+export function apply(): void {}
diff --git a/archive/dsh-tauri/src/host/service/open.ts b/archive/dsh-tauri/src/host/service/open.ts
new file mode 100644
index 00000000..3366968b
--- /dev/null
+++ b/archive/dsh-tauri/src/host/service/open.ts
@@ -0,0 +1,59 @@
+/**
+ * host/open.ts — 系统默认方式打开 URL/目录(跨平台 spawn,windowsHide)。
+ * 由 rightclick 等插件的宿主路由使用。
+ */
+
+import { spawn } from 'node:child_process'
+import { statSync } from 'node:fs'
+import process from 'node:process'
+
+function spawnDetached(command: string, args: string[]): Promise<void> {
+ return new Promise((resolve, reject) => {
+ const child = spawn(command, args, { detached: true, stdio: 'ignore', windowsHide: true })
+ child.once('error', reject)
+ child.once('spawn', () => {
+ child.unref()
+ resolve()
+ })
+ })
+}
+
+export async function openUrl(url: string): Promise<void> {
+ if (process.platform === 'win32') {
+ await spawnDetached('rundll32.exe', ['url.dll,FileProtocolHandler', url])
+ return
+ }
+ await spawnDetached(process.platform === 'darwin' ? 'open' : 'xdg-open', [url])
+}
+
+/**
+ * 在系统文件管理器中打开一个目录(宿主 sidecar 进程内调用)。
+ * 与 panel-extension 的 opener 同一套实测约束:
+ * - explorer 对正斜杠路径会静默回落到默认文件夹,必须喂反斜杠;
+ * - 不能带 windowsHide(会把 SW_HIDE 写进 STARTUPINFO,explorer 首窗隐藏);
+ * - 不能 await exit code(explorer 在多个 Windows 版本即使成功也非零退出)。
+ * @returns 是否已成功启动系统文件管理器。
+ */
+export function openDirectory(dir: string): boolean {
+ try {
+ if (!statSync(dir).isDirectory())
+ return false
+ }
+ catch {
+ return false
+ }
+ if (process.platform === 'win32') {
+ dir = dir.split('/').join('\\')
+ }
+ const launcher = process.platform === 'win32' ? 'explorer' : process.platform === 'darwin' ? 'open' : 'xdg-open'
+ try {
+ const child = spawn(launcher, [dir], { detached: true, stdio: 'ignore' })
+ // 启动器解析失败时 'error' 异步到达;没有监听会升级成 uncaughtException 炸掉 sidecar。
+ child.once('error', () => {})
+ child.unref()
+ return true
+ }
+ catch {
+ return false
+ }
+}
diff --git a/archive/dsh-tauri/src/host/storage/index.test.ts b/archive/dsh-tauri/src/host/storage/index.test.ts
new file mode 100644
index 00000000..ce2eac7b
--- /dev/null
+++ b/archive/dsh-tauri/src/host/storage/index.test.ts
@@ -0,0 +1,130 @@
+/**
+ * host/storage/index.test.ts — 原子写契约:EPERM 锁竞争重试 + 内容落盘 + 临时清理。
+ */
+
+import { randomUUID } from 'node:crypto'
+import { tmpdir } from 'node:os'
+import { join } from 'node:path'
+import { afterEach, describe, expect, it, vi } from 'vitest'
+import { createAtomicFsStorage, writeAtomic } from '.'
+
+/** 每个用例独立的临时目录,避免跨用例污染。 */
+function tempDir(): string {
+ return join(tmpdir(), `dsh-storage-test-${randomUUID()}`)
+}
+
+describe('writeAtomic', () => {
+ it('写入目标文件并保持内容完整', async () => {
+ const dir = tempDir()
+ const target = join(dir, 'ledger.json')
+ const value = '{ "a": 1 }\n'
+
+ await expect(writeAtomic(target, value)).resolves.toBeUndefined()
+ await expect(
+ (await import('node:fs/promises')).readFile(target, 'utf8'),
+ ).resolves.toBe(value)
+ })
+
+ it('在同目录已存在同名临时文件时也不互相覆盖(每次用独立临时名)', async () => {
+ const dir = tempDir()
+ const target = join(dir, 'ledger.json')
+ await writeAtomic(target, 'first')
+ await writeAtomic(target, 'second')
+ await expect(
+ (await import('node:fs/promises')).readFile(target, 'utf8'),
+ ).resolves.toBe('second')
+ })
+})
+
+describe('createAtomicFsStorage setItem/getItem', () => {
+ it('对象序列化往返一致', async () => {
+ const store = createAtomicFsStorage(tempDir())
+ await store.setItem('ledger.json', '{ "ok": true }\n')
+ // unstorage fs getItem 会自动 JSON.parse,故按解析后的对象断言。
+ await expect(store.getItem('ledger.json')).resolves.toEqual({ ok: true })
+ })
+
+ it('冒号子目录 key 落到独立文件且互不干扰(按会话分文件的基础)', async () => {
+ const dir = tempDir()
+ const store = createAtomicFsStorage(dir)
+ await store.setItem('ledger:session-a.json', '{ "a": 1 }\n')
+ await store.setItem('ledger:session-b.json', '{ "b": 2 }\n')
+ await store.setItem('ledger:session-a.json', '{ "a": 3 }\n')
+
+ // 各自独立可读,且覆盖只作用于自己的文件。
+ await expect(store.getItem('ledger:session-a.json')).resolves.toEqual({ a: 3 })
+ await expect(store.getItem('ledger:session-b.json')).resolves.toEqual({ b: 2 })
+
+ // 枚举只暴露本方案的 `<sessionId>.json` 叶子键。
+ const keys = await store.getKeys()
+ expect([...keys].sort()).toEqual(['ledger:session-a.json', 'ledger:session-b.json'])
+
+ // removeItem 只删指定会话文件。
+ await store.removeItem('ledger:session-a.json')
+ await expect(store.hasItem('ledger:session-a.json')).resolves.toBe(false)
+ await expect(store.hasItem('ledger:session-b.json')).resolves.toBe(true)
+ })
+})
+
+describe('原子写 EPERM 锁竞争重试', () => {
+ const retries = 2
+
+ afterEach(() => {
+ vi.unstubAllGlobals()
+ vi.restoreAllMocks()
+ })
+
+ it('rename 前几次抛 EPERM 时退避重试,最终成功落盘', async () => {
+ const dir = tempDir()
+ const target = join(dir, 'ledger.json')
+
+ // 包内直接 import 的 rename 无法被 vi.mock 轻易替换,改用模块级 mock 拦截。
+ vi.doMock('node:fs/promises', async (importOriginal) => {
+ const original = await importOriginal<typeof import('node:fs/promises')>()
+ let attempts = 0
+ return {
+ ...original,
+ rename: vi.fn(async (...args: Parameters<typeof original.rename>) => {
+ if (attempts++ < retries) {
+ const err = new Error('operation not permitted') as NodeJS.ErrnoException
+ err.code = 'EPERM'
+ throw err
+ }
+ return original.rename(...args)
+ }),
+ }
+ })
+ // 从被 mock 的模块重新导入被测对象,确保其内部引用同一 rename。
+ vi.resetModules()
+ const { writeAtomic: writeAtomicRetry } = await import('.')
+
+ await expect(writeAtomicRetry(target, 'finally-ok')).resolves.toBeUndefined()
+ await expect(
+ (await import('node:fs/promises')).readFile(target, 'utf8'),
+ ).resolves.toBe('finally-ok')
+ })
+
+ it('超过重试上限后抛出并清理临时文件', async () => {
+ const dir = tempDir()
+ const target = join(dir, 'ledger.json')
+
+ vi.doMock('node:fs/promises', async (importOriginal) => {
+ const original = await importOriginal<typeof import('node:fs/promises')>()
+ return {
+ ...original,
+ rename: vi.fn(async () => {
+ const err = new Error('operation not permitted') as NodeJS.ErrnoException
+ err.code = 'EPERM'
+ throw err
+ }),
+ }
+ })
+ vi.resetModules()
+ const { writeAtomic: writeAtomicFail } = await import('.')
+
+ await expect(writeAtomicFail(target, 'nope')).rejects.toMatchObject({ code: 'EPERM' })
+ const { readdir } = await import('node:fs/promises')
+ const leftovers = await readdir(dir).catch(() => [])
+ expect(leftovers).toEqual([])
+ })
+})
diff --git a/archive/dsh-tauri/src/host/storage/index.ts b/archive/dsh-tauri/src/host/storage/index.ts
new file mode 100644
index 00000000..c2225568
--- /dev/null
+++ b/archive/dsh-tauri/src/host/storage/index.ts
@@ -0,0 +1,70 @@
+/**
+ * host/storage.ts — workspace 统一的宿主文件存储(unstorage fs driver + 原子写)。
+ *
+ * 唯一入口 `createAtomicFsStorage(featureDir)`:`featureDir` 是 DSH_HOME(默认 `~/.dsh`)
+ * 下的功能目录名(如 `"crons"`),内部拼接 `$DSH_HOME/<featureDir>`;绝对路径原样使用。
+ */
+
+import type { Storage } from 'unstorage'
+import { randomUUID } from 'node:crypto'
+import { mkdir, rename, unlink, writeFile } from 'node:fs/promises'
+import { homedir } from 'node:os'
+import { dirname, isAbsolute, join } from 'node:path'
+import process from 'node:process'
+import { setTimeout as sleep } from 'node:timers/promises'
+import { createStorage } from 'unstorage'
+import fsDriver from 'unstorage/drivers/fs'
+
+/** tmp+rename 落盘时对瞬时锁竞争(EPERM)的最大重试次数与退避延迟(ms)。 */
+const RENAME_MAX_RETRIES = 8
+const RENAME_RETRY_DELAY_MS = 25
+
+/** 宿主数据根目录(优先使用 $DSH_HOME,默认 ~/.dsh)。 */
+const DSH_HOME = process.env.DSH_HOME ?? join(homedir(), '.dsh')
+
+/**
+ * 以 tmp+rename 原子写覆盖 target;Windows 下目标被瞬时占用时按有界退避重试。
+ * 独立导出以便单测锁定重试/原子性契约。
+ */
+export async function writeAtomic(target: string, value: string): Promise<void> {
+ await mkdir(dirname(target), { recursive: true })
+ const temporary = `${target}.${process.pid}.${randomUUID()}.tmp`
+
+ try {
+ await writeFile(temporary, value, 'utf8')
+ for (let attempt = 0; ; attempt++) {
+ try {
+ await rename(temporary, target)
+ return
+ }
+ catch (error) {
+ // 非锁语义的硬失败(非 EPERM/权限/不存在等)或超过重试次数时抛出
+ if (attempt >= RENAME_MAX_RETRIES || (error as NodeJS.ErrnoException)?.code !== 'EPERM') {
+ throw error
+ }
+ await sleep(RENAME_RETRY_DELAY_MS)
+ }
+ }
+ }
+ catch (error) {
+ await unlink(temporary).catch(() => {})
+ throw error
+ }
+}
+
+/**
+ * 创建「原子写 + unstorage」的文件存储:key 即 base 下的相对路径。
+ * @param featureDir DSH_HOME 下的功能目录名;绝对路径原样使用。
+ */
+export function createAtomicFsStorage(featureDir: string): Storage {
+ const base = isAbsolute(featureDir) ? featureDir : join(DSH_HOME, featureDir)
+
+ return createStorage({
+ driver: {
+ ...fsDriver({ base }),
+ async setItem(key: string, value: string) {
+ await writeAtomic(join(base, key.replace(/:/g, '/')), value)
+ },
+ },
+ })
+}
diff --git a/archive/dsh-tauri/src/host/types/index.ts b/archive/dsh-tauri/src/host/types/index.ts
new file mode 100644
index 00000000..8e303138
--- /dev/null
+++ b/archive/dsh-tauri/src/host/types/index.ts
@@ -0,0 +1,35 @@
+/**
+ * dsh-tauri 宿主共享类型出口。
+ * 【来源】HTTP 是桌面端自报协议;其余服务类型来自官方 @deepseek-ai d.ts。
+ * 【版本】[email protected];session/tools/[email protected]。
+ * 【修订】2026-01:收口 HostContext 与 HTTP fallback,均为 type-only。
+ */
+import type { Context } from '@deepseek-ai/cordis'
+import type { AgentRegistry, ModelSelection } from '@deepseek-ai/dsh-agent'
+import type { ContentBlock, LlmRuntime } from '@deepseek-ai/dsh-llm'
+import type { SessionStore } from '@deepseek-ai/dsh-session'
+import type { ToolDefinition, ToolRuntime } from '@deepseek-ai/dsh-tools'
+import type { WorkspaceRegistry } from '@deepseek-ai/dsh-workspace'
+import type { IncomingMessage, ServerResponse } from 'node:http'
+
+export type JsonBody = Record<string, unknown>
+export type RouteResult = [number, unknown]
+export type RouteFunction = (body: JsonBody, req: IncomingMessage) => Promise<RouteResult>
+export type RouteHandler = (request: IncomingMessage, response: ServerResponse) => void | Promise<void>
+export interface ConnectionGate { requestRejection: (request: IncomingMessage) => 401 | 403 | undefined }
+export interface HostRoute { kind: 'exact', path: string, handler: RouteHandler }
+export interface AgentDefaultModelService { currentSelection?: () => ModelSelection | undefined }
+export interface AgentPresetsService { mount?: (agentCtx: unknown, presetId: string) => Promise<unknown> | unknown }
+export interface PermissionPresetsService { names: readonly string[], defaultPreset: string, optionOf: (name: string) => { value: string, name: string, description?: string }, set: (session: unknown, name: string) => void }
+export interface WebServerService { register: (route: HostRoute) => () => void }
+export interface ToolRegistrationService { register: (definition: ToolDefinition | unknown) => () => void | undefined }
+export type HostContext = Context & { agents: AgentRegistry, sessions: SessionStore, workspaceRegistry: WorkspaceRegistry, tools: ToolRuntime & ToolRegistrationService, webServer: WebServerService, connection?: ConnectionGate, llm?: LlmRuntime, agentDefaultModel?: AgentDefaultModelService, agentPresets?: AgentPresetsService, permissionPresets?: PermissionPresetsService, loader: { import: (name: string) => Promise<unknown>, unwrapExports: (exports: unknown) => unknown } } & HostLifecycle
+
+/** 宿主生命周期/注册表面(cordis Context 类型发布缺陷兜底:各插件 host/apply 共享)。 */
+export interface HostLifecycle {
+ effect: (callback: () => void | (() => void), id?: string) => void
+ inject: (services: readonly string[], setup: (hostCtx: HostContext) => void) => void
+ plugin: (plugin: unknown, config?: unknown) => unknown
+ logger: { error: (message: string) => void }
+}
+export type { AgentRegistry, ContentBlock, LlmRuntime, ModelSelection, SessionStore, ToolDefinition, ToolRuntime, WorkspaceRegistry }
diff --git a/archive/dsh-tauri/src/host/utils/http.ts b/archive/dsh-tauri/src/host/utils/http.ts
new file mode 100644
index 00000000..b343090d
--- /dev/null
+++ b/archive/dsh-tauri/src/host/utils/http.ts
@@ -0,0 +1,161 @@
+import type { IncomingMessage, ServerResponse } from 'node:http'
+/**
+ * host/utils/http.ts — 宿主侧 HTTP 路由工具:连接鉴权包装、JSON 请求体读取、
+ * JSON 响应发送与 routeHandler 方法/回环约束。
+ *
+ * 设计原因(与宿主侧 AGENTS.md 一致):
+ * - routeHandler 严格限制方法(mutate=POST,否则 GET),变更操作必须本机回环
+ * (127.0.0.1)才放行;
+ * - 路由逻辑统一经 withConnectionAuth 做 DSH 连接信任边界校验;
+ * - 请求体超限即 413,解析失败 400,绝不静默接受。
+ */
+
+import type { ConnectionGate, JsonBody, RouteFunction, RouteHandler } from '../types'
+import { Buffer } from 'node:buffer'
+
+export type { ConnectionGate, JsonBody, RouteFunction, RouteHandler, RouteResult } from '../types'
+
+export class HttpError extends Error {
+ constructor(message: string, readonly statusCode: number) {
+ super(message)
+ this.name = 'HttpError'
+ }
+}
+
+const JSON_HEADERS = { 'content-type': 'application/json; charset=utf-8' }
+const DEFAULT_MAX_BODY_BYTES = 1024 * 1024
+
+/** Apply DSH's browser trust and authentication boundary before route logic. */
+export function withConnectionAuth(connection: ConnectionGate | undefined, handler: RouteHandler, _pluginName = 'dsh-tauri-plugin'): RouteHandler {
+ if (typeof connection?.requestRejection !== 'function')
+ return handler
+ return async (request, response) => {
+ const rejection = connection.requestRejection(request)
+ if (rejection !== undefined) {
+ response.writeHead(rejection)
+ response.end(rejection === 401 ? 'unauthorized' : 'forbidden')
+ return
+ }
+ await handler(request, response)
+ }
+}
+
+function isLoopback(request: IncomingMessage): boolean {
+ const address = request.socket?.remoteAddress ?? ''
+ return address === '127.0.0.1' || address === '::1' || address === '::ffff:127.0.0.1'
+}
+
+export function readJsonBody(request: IncomingMessage, limit = DEFAULT_MAX_BODY_BYTES): Promise<JsonBody> {
+ return new Promise((resolve, reject) => {
+ const chunks: Buffer[] = []
+ let bytes = 0
+ let exceeded = false
+ request.on('data', (chunk: Uint8Array | string) => {
+ if (exceeded)
+ return
+ const buffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)
+ bytes += buffer.byteLength
+ if (bytes > limit) {
+ exceeded = true
+ reject(new HttpError('请求体过大', 413))
+ return
+ }
+ chunks.push(buffer)
+ })
+ request.on('end', () => {
+ if (exceeded)
+ return
+ try {
+ const parsed: unknown = JSON.parse(Buffer.concat(chunks).toString('utf8') || '{}')
+ if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed))
+ throw new HttpError('请求体必须是 JSON 对象', 400)
+ resolve(parsed as JsonBody)
+ }
+ catch (error) {
+ reject(error instanceof HttpError ? error : new HttpError('请求体不是有效的 JSON', 400))
+ }
+ })
+ request.on('error', reject)
+ })
+}
+
+export function sendJson(response: ServerResponse, status: number, payload: unknown, headers: Record<string, string> = {}): void {
+ response.writeHead(status, { ...JSON_HEADERS, ...headers })
+ response.end(status === 204 ? undefined : JSON.stringify(payload))
+}
+
+export function routeHandler(fn: RouteFunction, { mutate = false }: { mutate?: boolean } = {}): RouteHandler {
+ const allowedMethod = mutate ? 'POST' : 'GET'
+ return async (request, response) => {
+ if (request.method === 'OPTIONS') {
+ sendJson(response, 204, {}, { allow: `${allowedMethod}, OPTIONS` })
+ return
+ }
+ if (request.method !== allowedMethod) {
+ sendJson(response, 405, { error: `仅支持 ${allowedMethod} 请求` }, { allow: `${allowedMethod}, OPTIONS` })
+ return
+ }
+ if (mutate && !isLoopback(request)) {
+ sendJson(response, 403, { error: '变更操作仅限本机(127.0.0.1)调用' })
+ return
+ }
+ try {
+ const [code, payload] = await fn(mutate ? await readJsonBody(request) : {}, request)
+ sendJson(response, code, payload)
+ }
+ catch (error) {
+ const code = error instanceof HttpError ? error.statusCode : 500
+ sendJson(response, code, { error: error instanceof Error ? error.message : String(error) })
+ }
+ }
+}
+
+export function isSameOriginJsonRequest(request: IncomingMessage): { ok: true } | { ok: false, status: number, error: string } {
+ const contentType = request.headers['content-type'] || ''
+ if (!/^application\/json(?:\s*;|$)/i.test(contentType))
+ return { ok: false, status: 415, error: 'unsupported-media-type' }
+ const origin = request.headers.origin
+ const host = request.headers.host
+ if (origin && host) {
+ try {
+ if (new URL(origin).host !== host)
+ return { ok: false, status: 403, error: 'cross-origin-request' }
+ }
+ catch {
+ return { ok: false, status: 403, error: 'cross-origin-request' }
+ }
+ }
+ return { ok: true }
+}
+
+export function sameOrigin(request: IncomingMessage): boolean {
+ const origin = request.headers.origin
+ const host = request.headers.host
+ if (origin === undefined || host === undefined)
+ return false
+ try {
+ const parsed = new URL(origin)
+ return (parsed.protocol === 'http:' || parsed.protocol === 'https:') && parsed.host === host
+ }
+ catch {
+ return false
+ }
+}
+
+export function respond(response: ServerResponse, status: number, payload: unknown): void {
+ const body = JSON.stringify(payload)
+ response.writeHead(status, { ...JSON_HEADERS, 'content-length': Buffer.byteLength(body), 'cache-control': 'no-store' })
+ response.end(body)
+}
+
+export function safeWebUrl(value: unknown): string | null {
+ if (typeof value !== 'string')
+ return null
+ try {
+ const url = new URL(value)
+ return url.protocol === 'http:' || url.protocol === 'https:' ? url.href : null
+ }
+ catch {
+ return null
+ }
+}
diff --git a/archive/dsh-tauri/src/index.ts b/archive/dsh-tauri/src/index.ts
new file mode 100644
index 00000000..269caa0d
--- /dev/null
+++ b/archive/dsh-tauri/src/index.ts
@@ -0,0 +1,26 @@
+/**
+ * dsh-tauri 宿主侧(node half):共享 HTTP 路由工具 / 系统打开 / 原子文件存储。
+ *
+ * 目录规划(host/client 三层):
+ * - index.ts(本文件) public barrel:宿主全部公开面(HTTP 契约 + openUrl + 存储设施);
+ * - host/utils/http.ts 路由工具(鉴权包装 / JSON 体 / routeHandler);
+ * - host/service/open.ts 系统默认方式打开 URL;
+ * - host/storage/ unstorage(fs) 原子写存储(插件 JSON 状态共享设施);
+ * - host/apply.ts 空插件入口(loader 挂载用);
+ * - client/ 浏览器半区(导航桥插件 + 共享客户端工具,见其 index.ts)。
+ *
+ * 本包是全 workspace 的 base:插件宿主模块从本 barrel 导入路由工具,插件客户端
+ * 从 `dsh-tauri/client` 导入共享工具(compat/store/http/lifecycle/CssRender)。
+ */
+
+export { apply } from './host/apply'
+export * from './host/service/open'
+export * from './host/storage'
+export * from './host/types'
+export * from './host/utils/http'
+export type { Context } from '@deepseek-ai/cordis'
+export type { AgentHandle, ModelSelection } from '@deepseek-ai/dsh-agent'
+export type { ContentBlock, MessageSource, UserMessage } from '@deepseek-ai/dsh-llm'
+export type { JsonValue, SessionId } from '@deepseek-ai/dsh-session'
+export type { ToolDefinition, ToolExecution, ToolRunContext } from '@deepseek-ai/dsh-tools'
+export type { WorkspaceId } from '@deepseek-ai/dsh-workspace'
diff --git a/archive/dsh-tauri/tsdown.config.ts b/archive/dsh-tauri/tsdown.config.ts
new file mode 100644
index 00000000..5c814316
--- /dev/null
+++ b/archive/dsh-tauri/tsdown.config.ts
@@ -0,0 +1,10 @@
+import { defineDshConfig } from '../../packages/dsh-tauri-tsdown/src/index.ts'
+
+export default defineDshConfig({
+ // Client bundle inlines CJS deps (css-render/murmurhash) whose
+ // `exports.default` triggers publint's __esModule+default false positive.
+ publint: false,
+ client: {
+ dts: true,
+ },
+})
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 52e2954b..93bdb4c8 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -44,6 +44,12 @@ catalogs:
'@tauri-apps/plugin-store':
specifier: ^2.4.4
version: 2.4.4
+ h3:
+ specifier: 2.0.1-rc.31
+ version: 2.0.1-rc.31
+ valtio:
+ specifier: ^2.3.2
+ version: 2.3.2
dsh:
'@deepseek-ai/cordis':
specifier: ^4.0.1
@@ -154,8 +160,8 @@ catalogs:
specifier: ^0.9.0
version: 0.9.0
'@reause/core':
- specifier: ^0.1.4
- version: 0.1.4
+ specifier: ^0.1.7
+ version: 0.1.7
'@tanstack/react-query':
specifier: ^5.101.4
version: 5.101.4
@@ -271,9 +277,7 @@ catalogs:
version: 1.17.5
patchedDependencies:
- bumpp:
- hash: 362685edd02f1561e78b740e2b4c1ec2bd8e266eb2e26a64055ae305cac1c3ac
- path: patches/bumpp.patch
+ bumpp: 362685edd02f1561e78b740e2b4c1ec2bd8e266eb2e26a64055ae305cac1c3ac
importers:
@@ -296,7 +300,7 @@ importers:
'@reause/core':
specifier: catalog:runtime
- version: 0.1.4([email protected])
+ version: 0.1.7([email protected])
'@tanstack/react-query':
specifier: catalog:runtime
version: 5.101.4([email protected])
@@ -360,7 +364,7 @@ importers:
version: 0.1.0-rc.8(572b530e8e393ff810ca77fa3c062d83)
'@deepseek-ai/dsh-api-session-controller':
specifier: catalog:dsh
- version: 0.1.2-alpha.3(71b33c9e1d8be263f5272acd174883b9)
+ version: 0.1.2-alpha.3(ce5c64b44898f8f51c79e9a1ae8ab6b4)
'@deepseek-ai/dsh-api-workspace-controller':
specifier: catalog:dsh
version: 0.1.2-alpha.3(de13f75832bbd4bdac06799cdb8cdfe2)
@@ -499,6 +503,9 @@ importers:
packages/dsh-tauri:
dependencies:
+ h3:
+ specifier: 'catalog:'
+ version: 2.0.1-rc.31
hookable:
specifier: catalog:utils
version: 6.1.1
@@ -511,7 +518,7 @@ importers:
devDependencies:
'@deepseek-ai/dsh-api-session-controller':
specifier: catalog:dsh
- version: 0.1.2-alpha.3(71b33c9e1d8be263f5272acd174883b9)
+ version: 0.1.2-alpha.3(ce5c64b44898f8f51c79e9a1ae8ab6b4)
'@deepseek-ai/dsh-api-workspace-controller':
specifier: catalog:dsh
version: 0.1.2-alpha.3(de13f75832bbd4bdac06799cdb8cdfe2)
@@ -521,6 +528,9 @@ importers:
'@deepseek-ai/dsh-client-ui-slots':
specifier: catalog:dsh
version: 0.1.2-alpha.3(@deepseek-ai/[email protected])
+ '@reause/core':
+ specifier: catalog:runtime
+ version: 0.1.7([email protected])
css-render:
specifier: catalog:ui
version: 0.15.14
@@ -533,6 +543,12 @@ importers:
tsdown:
specifier: catalog:cli
+ valtio:
+ specifier: 'catalog:'
+ version: 2.3.2(@types/[email protected])([email protected])
+ valtio-define:
+ specifier: catalog:runtime
+ version: 1.4.1(@types/[email protected])([email protected])
packages/dsh-tauri-bundle:
dependencies:
@@ -603,6 +619,9 @@ importers:
pathe:
specifier: catalog:utils
version: 2.0.3
+ unstorage:
+ specifier: catalog:utils
+ version: 1.17.5([email protected])
yaml:
specifier: catalog:testing
version: 2.9.0
@@ -758,6 +777,9 @@ importers:
pathe:
specifier: catalog:utils
version: 2.0.3
+ unstorage:
+ specifier: catalog:utils
+ version: 1.17.5([email protected])
devDependencies:
dsh-tauri-tsdown:
specifier: workspace:*
@@ -842,6 +864,9 @@ importers:
simple-git:
specifier: catalog:utils
version: 3.36.0
+ unstorage:
+ specifier: catalog:utils
+ version: 1.17.5([email protected])
devDependencies:
dsh-tauri-tsdown:
specifier: workspace:*
@@ -2760,6 +2785,11 @@ packages:
peerDependencies:
react: '>=18'
+ '@reause/[email protected]':
+ resolution: {integrity: sha512-dw3p7M/Muz3QPDRlg6suaiGdHa2GLXzTzZBXG6P9M64B96r4e9pZ+8dw3hgLci1GyiM7Ht+GEpYF68cG+W+YFw==}
+ peerDependencies:
+ react: '>=18'
+
'@reause/[email protected]':
resolution: {integrity: sha512-1UzzEb6lLbH5SYKnNDLyUONd1+dT8RtJH6W71fWXwmU/6jiZSFNbOU8GNyVnxDOWkBokPe4/5kIoo7YHEePdfQ==}
peerDependencies:
@@ -2807,6 +2837,11 @@ packages:
peerDependencies:
react: '>=18'
+ '@reause/[email protected]':
+ resolution: {integrity: sha512-jEXG3fQEfbZp5H3P3JAeWuorESmrYmFlrTo7OzkNGLIrLr9cAu26O6eOMU6nYl/rQP/cJ8FZ48yR+vnI12ORPQ==}
+ peerDependencies:
+ react: '>=18'
+
'@rolldown/[email protected]':
resolution: {integrity: sha512-Ok9V8o7o6YfSdTTYA/uHH30r3YtOxLD6G3wih/U9DO0ucBBFq8WPt/DslU53OgfteLRHITZny9N/qCUxMf9kjQ==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -4365,6 +4400,19 @@ packages:
resolution: {integrity: sha512-L3THSe2MPeBwgIZVSH5zLdBBU90TOxarvhK9d04IDY2AmVS8j2Jz2LIWtwsGOU3lu2I5jCN7FNvVfY2+XyF+mg==}
+ resolution: {integrity: sha512-AG7qZzF99a0BSYoXT3evJgIhwSIUKow7R+hwkLRZS06WJ9nbSb7QXUDgs1ByBjp6svTvl++N/GKA7I9YPz9cQQ==}
+ engines: {node: '>=20.11.1'}
+ hasBin: true
+ peerDependencies:
+ crossws: ^0.4.12
+ ocache: '>=0.3.0'
+ peerDependenciesMeta:
+ crossws:
+ optional: true
+ ocache:
+ optional: true
+
resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}
@@ -5177,6 +5225,9 @@ packages:
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
+ resolution: {integrity: sha512-3SOzvaAg8rkHrXtRjpCvCvbyO5to9oOO27Z/XqHEYXfMRVSw/qMIVdmaOk9W2lcRLtR6dlqTjo9hDeJk70QBYQ==}
+
resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}
engines: {node: '>=18'}
@@ -5248,6 +5299,11 @@ packages:
resolution: {integrity: sha512-CWLcCCH7VLu13TgOH+r8p1O/Znwhqv/dbb6lqWy67G+pT1kHmeD/+V36AVb/vq8QMIQwVShJ6Ssl5FPh0fuSdw==}
+ resolution: {integrity: sha512-eZmYaxUfZSo7/8m8UdsHRJNmTLSCTPPom9d7a60vMmuVeZvwhbvflRR+00/CxTCjMOFa5+H8tgBeNDVZ+w7AAQ==}
+ engines: {node: '>=20.16.0'}
+ hasBin: true
+
resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
@@ -6066,32 +6122,32 @@ snapshots:
'@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-typert-registry': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/[email protected](387dbf896921a53ff8c713fda70d08e0)':
+ '@deepseek-ai/[email protected](17aab6369addadd4e03e2c5c46ee6631)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-agent': 0.1.0-rc.6(f669c855fcdbb7b6906bf05aeaf2e5f9)
+ '@deepseek-ai/dsh-agent': 0.1.1-rc.2(0819cc09ee42f2599f32e3f99a9f5d2e)
'@deepseek-ai/dsh-agent-presets': 0.1.0-rc.8(572b530e8e393ff810ca77fa3c062d83)
'@deepseek-ai/dsh-api-gateway': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
- '@deepseek-ai/dsh-commands': 0.1.1-rc.2(7fa7ec2e1867bad95bba2fec01170754)
+ '@deepseek-ai/dsh-commands': 0.1.1-rc.2(ee998c26bdd5472aa4c03bfee0c1d759)
'@deepseek-ai/dsh-cordis-host-runner': 0.1.1-rc.2(94c0a373bc88016b73cba86b07a7310e)
'@deepseek-ai/dsh-credentials': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-file-reference': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](f669c855fcdbb7b6906bf05aeaf2e5f9))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-goal': 0.1.1-rc.2(9c38dd8f6ac5b7404ff7729d8d606df5)
+ '@deepseek-ai/dsh-goal': 0.1.1-rc.2(d484fcb76282751670239b176401b372)
'@deepseek-ai/dsh-host-plugin-inventory': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-llm': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-message-feedback': 0.1.1-rc.2(f8531b75696ce0891159f9920cee4416)
- '@deepseek-ai/dsh-session': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(f3b9c066c9e4ecda580ce88fb615cafc)
+ '@deepseek-ai/dsh-session': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(53f946e9d3baa68a4846dda28e6b6fe1)
'@deepseek-ai/dsh-session-reference': 0.1.1-rc.2(ea3fdccb2c920f3daf16f56a97a82593)
'@deepseek-ai/dsh-settings': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-typert-registry': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/[email protected](c0f561008e7b1b53c5643df5379e9da3)':
+ '@deepseek-ai/[email protected](387dbf896921a53ff8c713fda70d08e0)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-agent': 0.1.1-rc.2(0819cc09ee42f2599f32e3f99a9f5d2e)
+ '@deepseek-ai/dsh-agent': 0.1.0-rc.6(f669c855fcdbb7b6906bf05aeaf2e5f9)
'@deepseek-ai/dsh-agent-presets': 0.1.0-rc.8(572b530e8e393ff810ca77fa3c062d83)
'@deepseek-ai/dsh-api-gateway': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
'@deepseek-ai/dsh-commands': 0.1.1-rc.2(7fa7ec2e1867bad95bba2fec01170754)
@@ -6101,16 +6157,16 @@ snapshots:
'@deepseek-ai/dsh-goal': 0.1.1-rc.2(9c38dd8f6ac5b7404ff7729d8d606df5)
'@deepseek-ai/dsh-host-plugin-inventory': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-llm': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-message-feedback': 0.1.1-rc.2(f8531b75696ce0891159f9920cee4416)
- '@deepseek-ai/dsh-session': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-session': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(f3b9c066c9e4ecda580ce88fb615cafc)
'@deepseek-ai/dsh-session-reference': 0.1.1-rc.2(ea3fdccb2c920f3daf16f56a97a82593)
'@deepseek-ai/dsh-settings': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-typert-registry': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/[email protected](71b33c9e1d8be263f5272acd174883b9)':
+ '@deepseek-ai/[email protected](ce5c64b44898f8f51c79e9a1ae8ab6b4)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-agent': 0.1.0-rc.6(f669c855fcdbb7b6906bf05aeaf2e5f9)
@@ -6438,30 +6494,30 @@ snapshots:
'@deepseek-ai/dsh-llm': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-sandbox': 0.1.1-rc.2(abc2fb5ec32079b87d9fa8e0b43a14fb)
- '@deepseek-ai/[email protected](2a2869e3abd45ad532380c7b24f34040)':
+ '@deepseek-ai/[email protected](9c38dd8f6ac5b7404ff7729d8d606df5)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-agent': 0.1.1-rc.2(0819cc09ee42f2599f32e3f99a9f5d2e)
- '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-agent': 0.1.0-rc.6(f669c855fcdbb7b6906bf05aeaf2e5f9)
+ '@deepseek-ai/dsh-brand': 0.1.2-alpha.5(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-llm': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-session': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
'@deepseek-ai/dsh-typert-protocol': 0.1.2-alpha.5(@deepseek-ai/[email protected])
'@deepseek-ai/schemastery': 3.18.2
zod: 4.4.3
- '@deepseek-ai/[email protected](9c38dd8f6ac5b7404ff7729d8d606df5)':
+ '@deepseek-ai/[email protected](d484fcb76282751670239b176401b372)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-agent': 0.1.0-rc.6(f669c855fcdbb7b6906bf05aeaf2e5f9)
- '@deepseek-ai/dsh-brand': 0.1.2-alpha.5(@deepseek-ai/[email protected])
+ '@deepseek-ai/dsh-agent': 0.1.1-rc.2(0819cc09ee42f2599f32e3f99a9f5d2e)
+ '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-llm': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
+ '@deepseek-ai/dsh-session': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(3184227325382b53b8760a83397b86c4)
'@deepseek-ai/dsh-typert-protocol': 0.1.2-alpha.5(@deepseek-ai/[email protected])
'@deepseek-ai/schemastery': 3.18.2
zod: 4.4.3
@@ -6477,13 +6533,13 @@ snapshots:
'@deepseek-ai/dsh-agent': 0.1.1-rc.2(0819cc09ee42f2599f32e3f99a9f5d2e)
'@deepseek-ai/dsh-agent-default-model': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](0819cc09ee42f2599f32e3f99a9f5d2e))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-agent-presets': 0.1.0-rc.8(572b530e8e393ff810ca77fa3c062d83)
- '@deepseek-ai/dsh-api-remotes': 0.1.1-rc.2(c0f561008e7b1b53c5643df5379e9da3)
+ '@deepseek-ai/dsh-api-remotes': 0.1.1-rc.2(17aab6369addadd4e03e2c5c46ee6631)
'@deepseek-ai/dsh-attachment': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-commands': 0.1.1-rc.2(ee998c26bdd5472aa4c03bfee0c1d759)
'@deepseek-ai/dsh-cordis-host-runner': 0.1.1-rc.2(94c0a373bc88016b73cba86b07a7310e)
'@deepseek-ai/dsh-credentials': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-goal': 0.1.1-rc.2(2a2869e3abd45ad532380c7b24f34040)
+ '@deepseek-ai/dsh-goal': 0.1.1-rc.2(d484fcb76282751670239b176401b372)
'@deepseek-ai/dsh-host-directory-picker': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-jobs': 0.1.1-rc.2(81258ad9cd4125d01bd833159e2fb216)
@@ -6493,15 +6549,15 @@ snapshots:
'@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(53f946e9d3baa68a4846dda28e6b6fe1)
'@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(3184227325382b53b8760a83397b86c4)
'@deepseek-ai/dsh-session-projection-cache': 0.1.1-rc.2(6e5fdfb0cb9547f4fe3f0e368392a2f3)
- '@deepseek-ai/dsh-session-query': 0.1.1-rc.2(7007f8768db5ccbe32a89bcd40344344)
- '@deepseek-ai/dsh-session-title': 0.1.1-rc.2(5368ecc54920e233ac5509f261211c9b)
+ '@deepseek-ai/dsh-session-query': 0.1.1-rc.2(f3f58b2ca257674cf4d6f2c40c2d25c0)
+ '@deepseek-ai/dsh-session-title': 0.1.1-rc.2(79b3d0f0b47c391b956f294e1820c661)
'@deepseek-ai/dsh-settings': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-skill': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
- '@deepseek-ai/dsh-subagent': 0.1.1-rc.2(376849a86a367f5cb48723d533bef1f4)
+ '@deepseek-ai/dsh-subagent': 0.1.1-rc.2(ee599d3c36b2744fa869c0020ea71489)
'@deepseek-ai/dsh-tools': 0.1.1-rc.2(485e74897d425400151460af4bef194f)
'@deepseek-ai/dsh-user-approval': 0.1.1-rc.2(e7a6e863abd095ee6db7d68296c91430)
'@deepseek-ai/dsh-user-questions': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](0819cc09ee42f2599f32e3f99a9f5d2e))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
- '@deepseek-ai/dsh-workspace': 0.1.1-rc.2(2d8364f6e186b637e71bd150074ad8cd)
+ '@deepseek-ai/dsh-workspace': 0.1.1-rc.2(02b963c6f3e6d1f56417c85be996bce8)
'@deepseek-ai/schemastery': 3.18.2
fflate: 0.8.3
zod: 4.4.3
@@ -6700,27 +6756,27 @@ snapshots:
'@deepseek-ai/dsh-session': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
zod: 4.4.3
- '@deepseek-ai/[email protected](7007f8768db5ccbe32a89bcd40344344)':
+ '@deepseek-ai/[email protected](8bd1fa002914593b4d9bcf25c09094cd)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-brand': 0.1.2-alpha.5(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-llm': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-session': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-session-title': 0.1.1-rc.2(a7243e7b5ac650b18f7a232a79adf478)
optionalDependencies:
'@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(f3b9c066c9e4ecda580ce88fb615cafc)
- '@deepseek-ai/[email protected](8bd1fa002914593b4d9bcf25c09094cd)':
+ '@deepseek-ai/[email protected](f3f58b2ca257674cf4d6f2c40c2d25c0)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-brand': 0.1.2-alpha.5(@deepseek-ai/[email protected])
+ '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-llm': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session-title': 0.1.1-rc.2(a7243e7b5ac650b18f7a232a79adf478)
+ '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-session': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-session-title': 0.1.1-rc.2(79b3d0f0b47c391b956f294e1820c661)
optionalDependencies:
- '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(f3b9c066c9e4ecda580ce88fb615cafc)
+ '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(53f946e9d3baa68a4846dda28e6b6fe1)
'@deepseek-ai/[email protected](ea3fdccb2c920f3daf16f56a97a82593)':
dependencies:
@@ -6745,14 +6801,14 @@ snapshots:
'@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
zod: 4.4.3
- '@deepseek-ai/[email protected](5368ecc54920e233ac5509f261211c9b)':
+ '@deepseek-ai/[email protected](79b3d0f0b47c391b956f294e1820c661)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-session': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
+ '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(3184227325382b53b8760a83397b86c4)
'@deepseek-ai/schemastery': 3.18.2
zod: 4.4.3
@@ -6847,16 +6903,16 @@ snapshots:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
- '@deepseek-ai/[email protected](376849a86a367f5cb48723d533bef1f4)':
+ '@deepseek-ai/[email protected](6ab041dd7b8daf9ed8b898f6b6931b25)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-agent': 0.1.1-rc.2(0819cc09ee42f2599f32e3f99a9f5d2e)
- '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-agent': 0.1.0-rc.6(f669c855fcdbb7b6906bf05aeaf2e5f9)
+ '@deepseek-ai/dsh-brand': 0.1.2-alpha.5(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-llm': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-tools': 0.1.1-rc.2(485e74897d425400151460af4bef194f)
+ '@deepseek-ai/dsh-session': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-tools': 0.1.0-rc.8(016dc165ab40530d7483298338336f5b)
zod: 4.4.3
optionalDependencies:
'@deepseek-ai/dsh-agent-presets': 0.1.0-rc.8(572b530e8e393ff810ca77fa3c062d83)
@@ -6866,28 +6922,28 @@ snapshots:
'@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(f3b9c066c9e4ecda580ce88fb615cafc)
'@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
'@deepseek-ai/dsh-session-projection-cache': 0.1.1-rc.2(6e5fdfb0cb9547f4fe3f0e368392a2f3)
- '@deepseek-ai/dsh-user-approval': 0.1.1-rc.2(e7a6e863abd095ee6db7d68296c91430)
+ '@deepseek-ai/dsh-user-approval': 0.1.0-rc.8(a14be7f57e6ee0951b7786209d76bf3f)
- '@deepseek-ai/[email protected](6ab041dd7b8daf9ed8b898f6b6931b25)':
+ '@deepseek-ai/[email protected](ee599d3c36b2744fa869c0020ea71489)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-agent': 0.1.0-rc.6(f669c855fcdbb7b6906bf05aeaf2e5f9)
- '@deepseek-ai/dsh-brand': 0.1.2-alpha.5(@deepseek-ai/[email protected])
+ '@deepseek-ai/dsh-agent': 0.1.1-rc.2(0819cc09ee42f2599f32e3f99a9f5d2e)
+ '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
- '@deepseek-ai/dsh-llm': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-tools': 0.1.0-rc.8(016dc165ab40530d7483298338336f5b)
+ '@deepseek-ai/dsh-session': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
+ '@deepseek-ai/dsh-tools': 0.1.1-rc.2(485e74897d425400151460af4bef194f)
zod: 4.4.3
optionalDependencies:
'@deepseek-ai/dsh-agent-presets': 0.1.0-rc.8(572b530e8e393ff810ca77fa3c062d83)
'@deepseek-ai/dsh-jobs': 0.1.1-rc.2(81258ad9cd4125d01bd833159e2fb216)
'@deepseek-ai/dsh-sandbox': 0.1.1-rc.2(abc2fb5ec32079b87d9fa8e0b43a14fb)
'@deepseek-ai/dsh-sandbox-policy': 0.1.1-rc.2(eb6814ca881f3d08c51e2c0dda68609c)
- '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(f3b9c066c9e4ecda580ce88fb615cafc)
- '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
+ '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(53f946e9d3baa68a4846dda28e6b6fe1)
+ '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(3184227325382b53b8760a83397b86c4)
'@deepseek-ai/dsh-session-projection-cache': 0.1.1-rc.2(6e5fdfb0cb9547f4fe3f0e368392a2f3)
- '@deepseek-ai/dsh-user-approval': 0.1.0-rc.8(a14be7f57e6ee0951b7786209d76bf3f)
+ '@deepseek-ai/dsh-user-approval': 0.1.1-rc.2(e7a6e863abd095ee6db7d68296c91430)
'@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))':
dependencies:
@@ -7029,13 +7085,13 @@ snapshots:
'@deepseek-ai/dsh-storage-domain': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
zod: 4.4.3
- '@deepseek-ai/[email protected](2d8364f6e186b637e71bd150074ad8cd)':
+ '@deepseek-ai/[email protected](02b963c6f3e6d1f56417c85be996bce8)':
dependencies:
'@deepseek-ai/cordis': 4.0.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/[email protected])
'@deepseek-ai/dsh-session': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
- '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(f3b9c066c9e4ecda580ce88fb615cafc)
+ '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(53f946e9d3baa68a4846dda28e6b6fe1)
'@deepseek-ai/dsh-storage': 0.1.1-rc.2(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))
'@deepseek-ai/dsh-storage-domain': 0.1.0-rc.8(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))
zod: 4.4.3
@@ -7770,6 +7826,11 @@ snapshots:
'@reause/shared': 0.1.4([email protected])
react: 19.2.8
+ dependencies:
+ '@reause/shared': 0.1.7([email protected])
+ react: 19.2.8
+
dependencies:
'@reause/shared': 0.1.4([email protected])
@@ -7782,6 +7843,10 @@ snapshots:
dependencies:
react: 19.2.8
+ dependencies:
+ react: 19.2.8
+
'@rolldown/[email protected]':
optional: true
@@ -9346,6 +9411,11 @@ snapshots:
ufo: 1.6.4
uncrypto: 0.1.3
+ dependencies:
+ rou3: 0.9.2
+ srvx: 1.0.4
+
dependencies:
'@types/hast': 3.0.5
@@ -10419,6 +10489,8 @@ snapshots:
'@rollup/rollup-win32-x64-msvc': 4.62.4
fsevents: 2.3.3
+
@@ -10489,6 +10561,8 @@ snapshots:
+
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 58f24209..4e9c6575 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -6,6 +6,9 @@ catalogMode: prefer
inject-workspace-packages: true
+minimumReleaseAgeExclude:
+ - '@reause/[email protected]'
+ - '@reause/[email protected]'
shellEmulator: true
trustPolicy: no-downgrade
@@ -19,6 +22,8 @@ patchedDependencies:
catalog:
'@tauri-apps/plugin-os': ^2.3.2
'@tauri-apps/plugin-store': ^2.4.4
+ h3: 2.0.1-rc.31
+ valtio: ^2.3.2
catalogs:
build:
@@ -72,7 +77,7 @@ catalogs:
'@heroui/react': ^3.2.4
'@heroui/styles': ^3.2.4
'@overlastic/react': ^0.9.0
- '@reause/core': ^0.1.4
+ '@reause/core': ^0.1.7
'@tanstack/react-query': ^5.101.4
dsh-pet-component: ^0.1.1
i18next: ^26.3.6
diff --git a/skills-lock.json b/skills-lock.json
index 40165519..200ee7de 100644
--- a/skills-lock.json
+++ b/skills-lock.json
@@ -6,6 +6,18 @@
"sourceType": "github",
"skillPath": "skills/heroui-react/SKILL.md",
"computedHash": "c3633cb324aef2a51a9828c96776897ec2273d8d092cfcfb4dfa754006c7b8df"
+ },
+ "reause-functions": {
+ "source": "hairyf/reause",
+ "sourceType": "github",
+ "skillPath": "skills/reause-functions/SKILL.md",
+ "computedHash": "6af682cfe55d986d4e2460807844afe687fa93062a9646a4d7a076b07cfc4e60"
+ },
+ "valtio-define": {
+ "source": "hairyf/valtio-define",
+ "sourceType": "github",
+ "skillPath": "skills/valtio-define/SKILL.md",
+ "computedHash": "f6ddb65919ff631433113733ce28ae605655340cefd64059f402a873924d2f40"
}
}
}