From b56507bcf18c3e481c1d848183ceead3b43c6d55 Mon Sep 17 00:00:00 2001 From: zcol <297114876@qq.com> Date: Fri, 21 Aug 2026 23:22:57 +0300 Subject: [PATCH] chore: package dsh-workspace-groups v0.1.0 for GitHub distribution - MIT license, README with install/uninstall + screenshot, .gitignore - keywords + docs for dsh-plugin topic collection - commit lib/ so git install needs no build scripts --- .gitignore | 3 + LICENSE | 21 + README.md | 174 ++ cordis.patch.yml | 18 + docs/verification.md | 94 + lib/client.js | 1369 ++++++++++ lib/client.js.map | 1 + lib/index.js | 2558 ++++++++++++++++++ lib/types/client/GroupsBrowser.d.ts | 7 + lib/types/client/contract.d.ts | 51 + lib/types/client/index.d.ts | 32 + lib/types/client/locales.d.ts | 12 + lib/types/client/rows.d.ts | 35 + lib/types/client/store-core.d.ts | 25 + lib/types/client/stores.d.ts | 26 + lib/types/client/tree.d.ts | 106 + lib/types/context-types.d.ts | 25 + lib/types/core/matcher.d.ts | 15 + lib/types/core/types.d.ts | 32 + lib/types/host-config.d.ts | 14 + lib/types/index.d.ts | 7 + package.json | 107 + pnpm-lock.yaml | 3738 +++++++++++++++++++++++++++ screenshot.png | Bin 0 -> 25733 bytes src/client/GroupsBrowser.tsx | 649 +++++ src/client/contract.ts | 67 + src/client/index.ts | 99 + src/client/locales.ts | 153 ++ src/client/rows.tsx | 217 ++ src/client/store-core.ts | 44 + src/client/stores.ts | 44 + src/client/styles.css | 317 +++ src/client/tree.ts | 357 +++ src/context-types.ts | 28 + src/core/matcher.ts | 34 + src/core/types.ts | 39 + src/css-modules.d.ts | 5 + src/host-config.ts | 96 + src/index.ts | 55 + tests/core.test.ts | 96 + tests/store.test.ts | 67 + tsconfig.build.json | 10 + tsconfig.client.json | 13 + tsconfig.json | 21 + tsdown.config.ts | 150 ++ vitest.config.ts | 8 + workspace-groups.example.yaml | 31 + 47 files changed, 11070 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 cordis.patch.yml create mode 100644 docs/verification.md create mode 100644 lib/client.js create mode 100644 lib/client.js.map create mode 100644 lib/index.js create mode 100644 lib/types/client/GroupsBrowser.d.ts create mode 100644 lib/types/client/contract.d.ts create mode 100644 lib/types/client/index.d.ts create mode 100644 lib/types/client/locales.d.ts create mode 100644 lib/types/client/rows.d.ts create mode 100644 lib/types/client/store-core.d.ts create mode 100644 lib/types/client/stores.d.ts create mode 100644 lib/types/client/tree.d.ts create mode 100644 lib/types/context-types.d.ts create mode 100644 lib/types/core/matcher.d.ts create mode 100644 lib/types/core/types.d.ts create mode 100644 lib/types/host-config.d.ts create mode 100644 lib/types/index.d.ts create mode 100644 package.json create mode 100644 pnpm-lock.yaml create mode 100644 screenshot.png create mode 100644 src/client/GroupsBrowser.tsx create mode 100644 src/client/contract.ts create mode 100644 src/client/index.ts create mode 100644 src/client/locales.ts create mode 100644 src/client/rows.tsx create mode 100644 src/client/store-core.ts create mode 100644 src/client/stores.ts create mode 100644 src/client/styles.css create mode 100644 src/client/tree.ts create mode 100644 src/context-types.ts create mode 100644 src/core/matcher.ts create mode 100644 src/core/types.ts create mode 100644 src/css-modules.d.ts create mode 100644 src/host-config.ts create mode 100644 src/index.ts create mode 100644 tests/core.test.ts create mode 100644 tests/store.test.ts create mode 100644 tsconfig.build.json create mode 100644 tsconfig.client.json create mode 100644 tsconfig.json create mode 100644 tsdown.config.ts create mode 100644 vitest.config.ts create mode 100644 workspace-groups.example.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c45938 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +*.log +.DS_Store diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a3de44d --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 zcol + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..9d36af5 --- /dev/null +++ b/README.md @@ -0,0 +1,174 @@ +# dsh-workspace-groups + +![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg) +![DSH](https://img.shields.io/badge/DSH-0.1.1--rc.2-purple.svg) + +> **DeepSeek Harness(DSH)Web 客户端插件**:把 GUI 侧边栏的工作区列表从两层 +> 「项目 → 会话」变成三层 **「分类文件夹 → 项目文件夹 → 会话」**。 + +典型场景:多个 DSH 插件项目(SkillsManagePlugins / Documentation-Driven AI Coding / +DeepSeek峰谷小组件 等)归入一个「DSH 插件」分类文件夹,点开是各项目,再点开是各自会话。 + +## 截图 + +![dsh-workspace-groups 侧边栏三层树](screenshot.png) + +## 特性 + +- **三层侧边栏**:分类文件夹(可折叠)→ 项目文件夹(可折叠)→ 会话行 +- **sidecar 配置**:分类规则写在 `~/.dsh/workspace-groups.yaml`,改配置即可增删分类 / + 调整归类,无需改代码、无需重启(刷新页面生效) +- **树形搜索**:搜索命中后仍保留三层树结构(分类 → 项目 → 命中会话),命中行高亮并 + 显示内容摘要,而不是扁平的结果列表 +- **零侵入**:不修改 `~/.dsh/storages/workspace.json`、不修改会话落盘结构、 + 不修改官方 `@deepseek-ai/dsh-client-ui-workspace` 包 +- **功能不退化**:打开/新建/搜索会话、Add Workspace、项目重命名/删除、 + 会话重命名/派生/归档、展开状态持久化(独立 key,重启保留) +- **产物自包含**:`lib/` 已构建并随仓库分发,Git 安装无需执行任何依赖脚本 + +## 工作原理 + +- 本插件是 **client 插件**,注册进官方 sidebar shell 声明的 `sidebar.workspaces` + slot(`kind: 'single'`),以 `priority: -1` 顶替官方默认 WorkspaceBrowser + (官方以 priority 0 注册;single 槽位最低 priority 胜出)。 +- 数据源全部复用运行时 API:`useWorkspaces` / `useSessions` 全局 hooks 与 + `ctx.workspaces.*` / `ctx.sessions.*`,分类只是**展示层变换**。 +- host 半只做一件事:把 sidecar YAML 解析为 JSON,经 + `/workspace-groups/config` 路由(`Cache-Control: no-cache`)供 client 获取。 + +## 安装(GitHub 分发) + +> 前置:已安装 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) +> (`dsh` 命令可用),并已初始化好目标 profile(如内置 `web`)。 + +```sh +dsh plugin --profile web add github:z-col/dsh-workspace-groups +``` + +这会自动: + +1. 在 `~/.dsh/profiles/web/package.json` 的 `dependencies` 加入 + `"dsh-workspace-groups": "github:z-col/dsh-workspace-groups"`(含版本/commit) +2. 在 `dsh.profile.bundles` 末尾追加 `"dsh-workspace-groups"` +3. 运行 pnpm 安装并校验 bundle 层 + +**安装后重启 web profile**(bundle 与 host 半只有在重启后才会被加载): + +```sh +# 停止现有 dsh web 进程后重新启动,例如: +dsh web +``` + +验证安装: + +```sh +dsh --profile web --dump-config | grep -A3 workspace-groups +# 应出现 - id: workspace-groups / name: dsh-workspace-groups / config: {} +curl http://127.0.0.1:3080/workspace-groups/config +# 应返回 sidecar YAML 解析后的 JSON +``` + +## 卸载 + +```sh +dsh plugin --profile web remove dsh-workspace-groups +``` + +这会自动从 `dependencies` 删除该依赖并从 `dsh.profile.bundles` 移除对应行。 +同样需要**重启 web profile** 后生效。 + +> 手动等价做法(任选其一,不要重复):编辑 `~/.dsh/profiles/web/package.json`, +> 从 `dependencies` 删除 `dsh-workspace-groups` 行、从 `dsh.profile.bundles` +> 删除 `"dsh-workspace-groups"`,然后在该目录 `pnpm install`。 + +## 分类配置(sidecar) + +默认位置 `~/.dsh/workspace-groups.yaml`(也可用 `$DSH_HOME` 环境变量覆盖家目录)。 +模板见仓库根目录 `workspace-groups.example.yaml`。 + +```yaml +categories: + - name: DSH 插件 + rules: + - pathPrefix: /Users/zcol/Project/SkillsManagePlugins + - nameContains: 插件 + - basenameContains: plugin + - name: 个人项目 + rules: + - pathPrefix: /Users/zcol/Project/yeluzi +``` + +规则字段(每个 rule 是 OR 关系,任一命中即归类;分类按序匹配,先到先得): + +| 字段 | 含义 | +|---|---| +| `pathPrefix` | 项目绝对路径前缀 | +| `pathExact` | 项目绝对路径精确匹配 | +| `nameContains` | 项目显示标题包含(忽略大小写) | +| `basenameContains` | 项目目录名包含(忽略大小写) | + +未命中任何分类的项目进入「未分类」桶,不会被隐藏。 + +## 收录标签(topics) + +本仓库面向 DSH 插件生态的自动收录(社区市场靠 GitHub topic 扫描发现),已设置: + +- `dsh-plugin`(核心标签,[1024Store](https://github.com/imsai-sh/awesome-deepseek-harness-plugins) + 等市场定时按此 topic 自动发现,并校验 `package.json` + `dsh.bundle.patch` 字段) +- `deepseek-harness` / `deepseek-harness-plugin` / `dsh` +- `sidebar` / `workspace` / `workspace-groups` + +`package.json` 同时提供 `keywords` 便于 npm/搜索索引。 + +## 开发 + +```sh +pnpm install +pnpm typecheck # host + client 双 program 类型检查 +pnpm test # 核心规则与配置解析单测 +pnpm build # 构建 lib/(node 半 + client bundle) +pnpm watch # tsdown 监听(client HMR) +``` + +产物契约(与官方 client 包一致): + +- `lib/index.js` —— host 半(ESM;读取 sidecar + `/workspace-groups/config` 路由, + js-yaml 已内联,无运行时依赖) +- `lib/client.js` —— browser 半(`window.__ModuleLoader__.load({id, factory})`; + 仅 require 平台 seed:react / react/jsx-runtime / @deepseek-ai/dsh-client-runtime/client / + @deepseek-ai/dsh-client-ui-primitives;跨插件值 import 在构建期被 purity 门拒绝) +- `lib/types/**` —— 声明文件 + +> 发布策略说明:`lib/` 构建产物随仓库提交(无 `prepare` 脚本),因此 +> `dsh plugin add github:...` 全程无需执行第三方构建脚本,安装即用。 + +## 目录结构 + +``` +src/ + index.ts # host 半:config 路由 + host-config.ts # sidecar YAML 读取/校验 + context-types.ts # host 侧 cordis 服务结构类型 + core/ + types.ts # 配置类型(两半共享) + matcher.ts # 分类规则纯函数(两半共享) + client/ + index.ts # apply:注册 sidebar.workspaces(priority -1) + contract.ts # 注入面类型 + stores.ts # 展开状态 store(persist: dsh.workspace.groups.view.v1) + tree.ts # 三层树派生 + 树形搜索派生 + GroupsBrowser.tsx # 浏览区域组件 + rows.tsx # 分类/项目/会话/搜索结果行 + locales.ts # 中英文案 + styles.css # 内联样式 +tests/ + core.test.ts # 分类规则 + 配置解析单测 +``` + +## 验证记录 + +见 `docs/verification.md`(真实组合验证:headless Chrome + CDP 实操记录)。 + +## License + +MIT diff --git a/cordis.patch.yml b/cordis.patch.yml new file mode 100644 index 0000000..ececa46 --- /dev/null +++ b/cordis.patch.yml @@ -0,0 +1,18 @@ +# dsh-workspace-groups bundle patch +# +# This file is the `dsh.bundle.patch` layer of the package: when the plugin is +# installed through the official CLI — +# +# dsh plugin --profile add dsh-workspace-groups +# +# — the command reconciles `dsh.profile.bundles` against installed packages +# and, seeing this declaration, appends `dsh-workspace-groups` to the bundle +# stack. The profile boot then merges THIS patch (a single `insert` of the +# plugin row) exactly like a manual cordis.patch.yml mount line. +# +# The row uses a stable `id` (configuration-tree line identity), a `name` the +# host Loader resolves as a package, and a `config` the host half consumes. +- insert: + - id: workspace-groups + name: 'dsh-workspace-groups' + config: {} diff --git a/docs/verification.md b/docs/verification.md new file mode 100644 index 0000000..a8f9a6f --- /dev/null +++ b/docs/verification.md @@ -0,0 +1,94 @@ +# 真实组合验证记录(dsh-workspace-groups) + +验证日期:2026-08-21 +验证对象:`dsh-workspace-groups@0.1.0`(link 安装于 `~/.dsh/profiles/web`) +运行环境:`dsh web`(PID 90954),GUI http://127.0.0.1:3080,官方 dsh 0.1.1-rc.2 + +## 1. 安装与组合层验证 + +| 检查项 | 结果 | +|---|---| +| `dsh plugin --profile web add` 自动对账 bundles | ✅ 追加 `dsh-workspace-groups` 至 `dsh.profile.bundles` | +| `dsh --profile web --dump-config` 出现插件层 | ✅ `- id: workspace-groups / name: dsh-workspace-groups / config: {}` | +| 重启后 boot manifest 含插件 client 行 | ✅ `dsh-workspace-groups` 出现于 `__DSH_BOOT__.entries` | +| client bundle 可服务 | ✅ `/plugins/dsh-workspace-groups/client.js` 返回 ModuleLoader 包装 | +| host config 路由 | ✅ `GET /workspace-groups/config` 200,返回 sidecar JSON | + +## 2. 顶替与数据链路(最小验证先行,三项全绿) + +1. **顶替默认 WorkspaceBrowser**:侧边栏渲染 `.wgRoot` 树(非官方浏览器); + CDP 断言 `officialBrowser: false`、`wgRoot: true` ✅ +2. **useWorkspaces 数据完整**:6 个工作区全部可见并按 sidecar 归类 ✅ +3. **一层树渲染**:分类 → 项目 → 会话三层结构渲染成功 ✅ + +## 3. 分类结果(sidecar 实际生效) + +``` +DSH 插件 (4) ← pathPrefix 规则命中 +├── DSH-工作区分组 +├── DeepSeek峰谷小组件 +├── Documentation-Driven AI Coding +└── SkillsManagePlugins +个人项目 (2) +├── 闲谝 +└── yeluzi +``` + +计数与 `~/.dsh/storages/workspace.json` 的 6 个工作区精确一致。 + +## 4. 交互验证(headless Chrome + CDP 实操) + +| 操作 | 结果 | +|---|---| +| 点击分类「个人项目」 | ✅ 展开,显示闲谝 / yeluzi 项目 | +| 刷新页面 | ✅ 展开状态保留(store `dsh.workspace.groups.view.v1` 持久化) | +| 点击会话 `Docs AI Coding` | ✅ 选中态迁移到该会话(`.wgSelected`),打开生效 | +| 搜索「DSH」 | ✅ 返回 `Docs AI Coding · DSH-工作区分组`(workspace 归属保留) | +| 清除搜索 | ✅ 恢复三层树 | + +## 5. 存储零侵入断言 + +| 检查项 | 结果 | +|---|---| +| `workspace.json` 结构 | ✅ 无 `category` 字段,unit.version=2 不变,workspace 计数 6 | +| 会话落盘 | ✅ 未新增/改动任何 session 文件 | +| 官方 view store | ✅ `dsh.workspace.view.v5` 未被触碰(仅新增独立 key `dsh.workspace.groups.view.v1`) | +| host 暴露面 | ✅ 仅一个只读 GET 路由 `/workspace-groups/config`(no-cache) | + +## 6. 构建与质量门 + +| 检查项 | 结果 | +|---|---| +| `pnpm typecheck`(host + client 双 program) | ✅ 0 错误 | +| `pnpm test` | ✅ 12/12 通过(分类规则、配置解析) | +| `pnpm build` | ✅ lib/index.js(96KB,js-yaml 内联)+ lib/client.js(56KB)+ types | +| client bundle purity | ✅ 仅 require 平台 seed(react / runtime/client / primitives),跨插件值 import 被拒 | +| host bundle 自包含 | ✅ 零外部运行时 require(js-yaml 已内联) | + +## 7. 已知限制(非缺陷) + +- 会话拖拽排序未实现(当前行交互为打开/重命名/派生/归档;官方浏览器同样具备的 + 拖拽排序在 v0.1 未移植)。项目拖拽排序同样未移植。 +- 分类/项目的折叠状态自动展开当前会话所在分类与项目(与官方行为一致)。 +- Add Workspace 使用原生目录选择器(`ctx.workspaces.pickDirectory`), + 无官方 WorkspacePickFlow 的菜单选择既有工作区功能 —— 已在功能上等价覆盖 + (既有工作区在树中始终可见)。 + +## 8. 缺陷修复记录(2026-08-21 二轮验证) + +**Bug:当前分类/项目无法收缩**(用户报告) + +- 现象:包含当前会话的「DSH 插件」分类与其下「DSH-工作区分组」项目无法折叠, + 其他节点正常。 +- 根因:store 折叠用 `delete` 删 key + auto-expand effect 用 `!expansion[key]` + 守卫 —— 折叠后 key 缺失 → effect 重新展开。 +- 修复:折叠改写入 `false`(key 保留,同官方 `setGroupExpanded` 语义); + auto-expand 守卫改 `Object.hasOwn`(仅从未操作过的 key 自动展开)。 +- 验证(CDP 实操,全新 profile): + | 操作 | 结果 | + |---|---| + | 收缩「DSH 插件」(当前分类) | ✅ 折叠,2s 后不反弹,store `{"DSH 插件": false}` | + | 再展开「DSH 插件」 | ✅ 恢复正常 | + | 折叠后刷新 | ✅ 折叠状态持久保留 | + | 收缩「DSH-工作区分组」(当前项目)后刷新 | ✅ 保持折叠(sessions 隐藏) | +- 回归:`pnpm typecheck` 0 错误;`pnpm test` 18/18(新增 6 个 store 语义测试)。 diff --git a/lib/client.js b/lib/client.js new file mode 100644 index 0000000..a8971b8 --- /dev/null +++ b/lib/client.js @@ -0,0 +1,1369 @@ +window.__ModuleLoader__.load({ + id: "dsh-workspace-groups", + factory: (require) => { + var module = { exports: {} }; + var exports = module.exports; + Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); + let _deepseek_ai_dsh_client_runtime_client = require("@deepseek-ai/dsh-client-runtime/client"); + let react = require("react"); + let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives"); + let react_jsx_runtime = require("react/jsx-runtime"); + //#region src/client/store-core.ts + /** Collapse writes `false` (key retained); expand writes `true`. */ + function setCategoryExpandedImpl(state, key, expanded) { + state.categoryExpansion[key] = expanded; + } + /** Collapse writes `false` (key retained); expand writes `true`. */ + function setWorkspaceExpandedImpl(state, key, expanded) { + state.workspaceExpansion[key] = expanded; + } + /** Drop expansion keys that no longer exist (renames/deletes/config edits). */ + function retainKeysImpl(state, categoryKeys, workspaceKeys) { + state.categoryExpansion = Object.fromEntries(Object.entries(state.categoryExpansion).filter(([key]) => categoryKeys.includes(key))); + state.workspaceExpansion = Object.fromEntries(Object.entries(state.workspaceExpansion).filter(([key]) => workspaceKeys.includes(key))); + } + //#endregion + //#region src/client/stores.ts + /** + * The workspace-groups viewing store: category / workspace folder expansion, + * persisted across reloads under an independent key (the official + * ui-workspace store keeps its own `dsh.workspace.view.v5` — we never touch + * it). Module level exports the factory only (a module-level handle would pin + * the store identity across plugin reloads); register() receives the factory + * and the browser derives its PropsStore share from the return type. + * + * The action implementations live in `store-core.ts` (pure, runtime-free) so + * unit tests exercise the real semantics without a browser module loader; + * this file only binds them through defineStore. + */ + /** + * Create the workspace-groups viewing store handle. + * @returns the store handle (spec + type + identity + factory in one). + */ + function createGroupsViewStore() { + return (0, _deepseek_ai_dsh_client_runtime_client.defineStore)({ + init: () => ({ + categoryExpansion: {}, + workspaceExpansion: {} + }), + persist: "dsh.workspace.groups.view.v1", + actions: { + setCategoryExpanded: setCategoryExpandedImpl, + setWorkspaceExpanded: setWorkspaceExpandedImpl, + retainKeys: retainKeysImpl + } + }); + } + //#endregion + //#region src/core/types.ts + /** The label of the fallback bucket for unmatched workspaces. */ + const UNCATEGORIZED_LABEL = "未分类"; + /** Normalize a path for prefix matching: trailing slashes stripped. */ + function normalizePath(path) { + return path.replace(/[/\\]+$/, ""); + } + //#endregion + //#region src/core/matcher.ts + /** + * Pure classification logic: decides which category a workspace belongs to. + * Shared by the host half (validation) and the client half (tree derivation), + * so the rule semantics can never drift between the config surface and the + * rendered tree. + */ + /** One rule match against a workspace's path and title. */ + function ruleMatches(rule, path, title) { + const normalized = normalizePath(path); + if (rule.pathPrefix !== void 0 && normalized.startsWith(normalizePath(rule.pathPrefix))) return true; + if (rule.pathExact !== void 0 && normalized === normalizePath(rule.pathExact)) return true; + if (rule.nameContains !== void 0 && title.toLowerCase().includes(rule.nameContains.toLowerCase())) return true; + if (rule.basenameContains !== void 0) { + if ((path.replace(/[/\\]+$/, "").split(/[/\\]/).pop() ?? "").toLowerCase().includes(rule.basenameContains.toLowerCase())) return true; + } + return false; + } + /** + * Classify a workspace into its category. + * @param categories - configured categories, in render order. + * @param path - workspace canonical directory path. + * @param title - workspace display title. + * @returns the matching category, or undefined when no rule matches. + */ + function classify(categories, path, title) { + for (const category of categories) if (category.rules.some((rule) => ruleMatches(rule, path, title))) return category; + } + //#endregion + //#region src/client/tree.ts + /** + * Derives the three-level workspace-groups tree: 分类文件夹 → 项目文件夹 → + * 会话行. Pure derivation — all inputs are snapshots; the renderer never + * scans. Session visibility rules mirror the official ui-workspace tree + * (blank rows only when current, archived excluded, subagent rows excluded). + */ + /** Key of the uncategorized bucket (matches the config fallback label). */ + const UNCATEGORIZED_KEY = UNCATEGORIZED_LABEL; + /** Directory display label: basename of the path (both separators accepted). */ + function workspaceLabel(cwd) { + if (cwd === void 0 || cwd === "") return UNCATEGORIZED_LABEL; + const base = cwd.replace(/[/\\]+$/, "").split(/[/\\]/).pop(); + return base !== void 0 && base !== "" ? base : cwd; + } + /** Ordinary sessions are visible; blank only when current; archived/subagent never. */ + function sessionVisible(session, current, archived) { + return session.origin !== "subagent" && !archived.has(session.id) && (!session.blank || session.id === current); + } + /** Blank rows display the localized New Session label (never enters search). */ + function sessionTitle(session) { + return session.blank ? "New Session" : session.displayTitle; + } + function sessionNode(s, descendants) { + return { + id: s.id, + title: sessionTitle(s), + blank: s.blank, + running: s.running, + runningSubagentCount: descendants.get(s.id)?.runningCount ?? 0, + completed: s.completed === true, + updatedAt: s.updatedAt, + ...s.pendingInteraction === void 0 ? {} : { pendingInteraction: s.pendingInteraction } + }; + } + /** Visible sessions of one workspace in its stored account order. */ + function workspaceSessions(list, workspace, archived, descendants) { + const nodes = []; + for (const id of workspace.sessionIds) { + const summary = list.byId[id]; + if (summary === void 0) continue; + if (!sessionVisible(summary, list.current, archived)) continue; + nodes.push(sessionNode(summary, descendants)); + } + return nodes; + } + /** + * Derive the three-level tree. + * @param list - sessions list snapshot (`current` feeds containsCurrent). + * @param workspaces - real workspaces in stable Host order. + * @param archivedSessionIds - registry-global archive set. + * @param config - sidecar grouping config. + * @param view - local expansion arrays. + * @returns category sections in render order (configured categories first, uncategorized last). + */ + function deriveGroups(list, workspaces, archivedSessionIds, config, view) { + const archived = new Set(archivedSessionIds); + const expandedCategories = new Set(view.expandedCategories); + const expandedWorkspaces = new Set(view.expandedWorkspaces); + const descendants = (0, _deepseek_ai_dsh_client_runtime_client.indexSubagentDescendants)(list.byId); + const byCategory = /* @__PURE__ */ new Map(); + const categorized = /* @__PURE__ */ new Set(); + for (const category of config.categories) byCategory.set(category.name, []); + for (const workspace of workspaces) { + const category = classify(config.categories, workspace.path, workspace.title); + const key = category !== void 0 ? category.name : UNCATEGORIZED_KEY; + if (!byCategory.has(key)) byCategory.set(key, []); + byCategory.get(key).push(workspace); + categorized.add(workspace.workspaceId); + } + const currentWorkspaceId = list.current === void 0 ? void 0 : workspaces.find((w) => w.sessionIds.includes(list.current))?.workspaceId; + const nodes = []; + for (const [key, bucket] of byCategory) { + if (bucket.length === 0) continue; + const expanded = expandedCategories.has(key); + const workspaceNodes = []; + let containsCurrent = false; + for (const workspace of bucket) { + const sessions = workspaceSessions(list, workspace, archived, descendants); + const wsExpanded = expandedWorkspaces.has(workspace.workspaceId); + const wsContainsCurrent = workspace.workspaceId === currentWorkspaceId; + if (wsContainsCurrent) containsCurrent = true; + workspaceNodes.push({ + workspaceId: workspace.workspaceId, + path: workspace.path, + label: workspace.title, + createdAt: Date.parse(workspace.createdAt), + sessionCount: sessions.length, + expanded: wsExpanded, + containsCurrent: wsContainsCurrent, + sessions: wsExpanded ? sessions : [] + }); + } + nodes.push({ + key, + label: key === UNCATEGORIZED_KEY ? UNCATEGORIZED_LABEL : key, + expanded, + containsCurrent, + workspaces: workspaceNodes + }); + } + return nodes; + } + /** Recency comparator: newest first, id as the deterministic tiebreak. */ + function byRecency(a, b) { + if (b.updatedAt !== a.updatedAt) return b.updatedAt - a.updatedAt; + return a.id < b.id ? -1 : 1; + } + /** + * Compute the matched-session set: immediate title/Workspace substring matches + * from the local list, merged with ranked Host content matches. The consumer + * (SearchBody) derives the pruned three-level tree from these ids. + */ + function deriveSearchMatches(list, workspaces, config, query, archivedSessionIds, content, limit) { + const q = query.trim().toLowerCase(); + if (q === "") return { + matchedIds: /* @__PURE__ */ new Set(), + snippetsBySession: /* @__PURE__ */ new Map(), + hasMore: false + }; + const archived = new Set(archivedSessionIds); + (0, _deepseek_ai_dsh_client_runtime_client.indexSubagentDescendants)(list.byId); + const workspaceBySession = /* @__PURE__ */ new Map(); + for (const workspace of workspaces) for (const sessionId of workspace.sessionIds) if (!workspaceBySession.has(sessionId)) workspaceBySession.set(sessionId, workspace); + const labelOf = (summary) => workspaceBySession.get(summary.id)?.title ?? workspaceLabel(summary.cwd); + const local = []; + for (const id of list.ids) { + const summary = list.byId[id]; + if (summary === void 0 || summary.blank || !sessionVisible(summary, list.current, archived)) continue; + if (sessionTitle(summary).toLowerCase().includes(q) || labelOf(summary).toLowerCase().includes(q)) local.push(summary); + } + local.sort(byRecency); + const ordered = []; + const included = /* @__PURE__ */ new Set(); + const include = (summary) => { + if (included.has(summary.id)) return; + included.add(summary.id); + ordered.push(summary); + }; + for (const summary of local) include(summary); + for (const item of content.items) { + const summary = list.byId[item.sessionId]; + if (summary !== void 0 && !summary.blank && sessionVisible(summary, list.current, archived)) include(summary); + } + const snippets = /* @__PURE__ */ new Map(); + for (const item of content.items) if (item.snippet !== void 0) snippets.set(item.sessionId, item.snippet); + return { + matchedIds: ordered.slice(0, limit).reduce((set, summary) => { + set.add(summary.id); + return set; + }, /* @__PURE__ */ new Set()), + snippetsBySession: snippets, + hasMore: content.hasMore || ordered.length > limit + }; + } + /** + * Build a three-level search tree containing ONLY the branches that hold a + * matched session: 分类文件夹 → 项目文件夹 → 命中会话行. Every matched + * session carries `matched: true` so rows render with the search-hit tint. + * + * @param list - sessions list snapshot. + * @param workspaces - real workspaces in stable Host order. + * @param config - sidecar grouping config. + * @param matchedIds - set of session ids that matched the query. + * @param archivedSessionIds - registry-global archive set. + * @param snippetsBySession - optional content-match snippets keyed by session id. + * @returns categories in render order, pruned to matched branches only. + */ + function deriveSearchGroups(list, workspaces, config, matchedIds, archivedSessionIds, snippetsBySession) { + const archived = new Set(archivedSessionIds); + const descendants = (0, _deepseek_ai_dsh_client_runtime_client.indexSubagentDescendants)(list.byId); + const byCategory = /* @__PURE__ */ new Map(); + for (const category of config.categories) byCategory.set(category.name, []); + for (const workspace of workspaces) { + const nodes = []; + for (const id of workspace.sessionIds) { + const summary = list.byId[id]; + if (summary === void 0 || !matchedIds.has(id)) continue; + if (!sessionVisible(summary, list.current, archived)) continue; + const node = sessionNode(summary, descendants); + const snippet = snippetsBySession?.get(id); + nodes.push({ + ...node, + matched: true, + ...snippet === void 0 ? {} : { snippet } + }); + } + if (nodes.length === 0) continue; + const category = classify(config.categories, workspace.path, workspace.title); + const key = category !== void 0 ? category.name : UNCATEGORIZED_KEY; + if (!byCategory.has(key)) byCategory.set(key, []); + byCategory.get(key).push({ + workspaceId: workspace.workspaceId, + path: workspace.path, + label: workspace.title, + createdAt: Date.parse(workspace.createdAt), + sessionCount: nodes.length, + expanded: true, + containsCurrent: false, + sessions: nodes + }); + } + const categories = []; + for (const [key, workspaceNodes] of byCategory) { + if (workspaceNodes.length === 0) continue; + categories.push({ + key, + label: key === UNCATEGORIZED_KEY ? UNCATEGORIZED_LABEL : key, + expanded: true, + containsCurrent: false, + workspaces: workspaceNodes + }); + } + return categories; + } + //#endregion + //#region src/client/rows.tsx + /** + * Row components for the workspace-groups tree. Kept dependency-light: they + * consume only React, primitives (StateDot/Menu/icons), and the shared CSS + * string. Each row owns its hover actions menu; dialogs live in the browser + * root so they survive row unmounts during collapse. + */ + /** Pending interaction status → primitives StateDot state. */ + function pendingState(status) { + switch (status) { + case "approval": + case "plan-review": + case "question": return "warning"; + default: return; + } + } + /** Primary status dot state for a session row. */ + function sessionDotState(node) { + if (pendingState(node.pendingInteraction) !== void 0) return "warning"; + if (node.running || node.runningSubagentCount > 0) return "ongoing"; + return node.completed ? "done" : "done"; + } + /** Compact relative time ("now"/"5min"/"3h"/"2d"/"4mo"/"1y"). */ + function relativeTimeLabel(updatedAt, now) { + const diff = Math.max(0, now - updatedAt); + const MIN = 6e4; + const HOUR = 36e5; + const DAY = 864e5; + if (diff < MIN) return "now"; + if (diff < HOUR) return `${Math.floor(diff / MIN)}min`; + if (diff < DAY) return `${Math.floor(diff / HOUR)}h`; + if (diff < 30 * DAY) return `${Math.floor(diff / DAY)}d`; + if (diff < 365 * DAY) return `${Math.floor(diff / (30 * DAY))}mo`; + return `${Math.floor(diff / (365 * DAY))}y`; + } + /** One category folder row. */ + function CategoryRow({ node, t, onToggle }) { + const count = node.workspaces.length; + return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + className: "wgCategoryRow", + role: "treeitem", + "aria-expanded": node.expanded, + "aria-label": t("section.workspaces"), + onClick: onToggle, + children: [ + /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: `wgChevron${node.expanded ? " wgChevronOpen" : ""}`, + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTriangleRightFill14, {}) + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgCategoryIcon", + children: node.expanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderOpen16, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderClose16, {}) + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgCategoryLabel", + children: node.label + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgCategoryCount", + children: count + }) + ] + }); + } + /** One workspace folder row inside a category. */ + function WorkspaceRow({ node, t, onToggle, onNewSession, onRename, onDelete }) { + const [menuOpen, setMenuOpen] = (0, react.useState)(false); + const menuItems = [{ + id: "rename", + label: t("workspace.rename"), + icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEditOutline16, {}) + }, { + id: "delete", + label: t("workspace.delete"), + icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutline16, {}), + danger: true + }]; + return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + className: `wgProjectRow${node.containsCurrent ? " wgProjectActive" : ""}`, + role: "treeitem", + "aria-expanded": node.expanded, + onClick: onToggle, + children: [ + /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: `wgChevron${node.expanded ? " wgChevronOpen" : ""}`, + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTriangleRightFill14, {}) + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgCategoryIcon", + children: node.expanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderOpen16, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderClose16, {}) + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgProjectLabel", + title: node.path, + children: node.label + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { + className: "wgRowActions", + children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, { + open: menuOpen, + onClose: () => { + setMenuOpen(false); + }, + items: menuItems, + onSelect: (id) => { + setMenuOpen(false); + if (id === "rename") onRename(); + if (id === "delete") onDelete(); + }, + portal: true, + closeOnPointerLeave: true, + anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", { + type: "button", + className: "wgIconButton", + "aria-label": `${t("workspace.rename")} ${node.label}`, + onClick: (e) => { + e.stopPropagation(); + setMenuOpen((v) => !v); + }, + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEllipsisOutline16, {}) + }) + }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", { + type: "button", + className: "wgIconButton", + "aria-label": `${t("session.new")} ${node.label}`, + onClick: (e) => { + e.stopPropagation(); + onNewSession(); + }, + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutline16, {}) + })] + }) + ] + }); + } + /** One session leaf row. */ + function SessionRow({ node, currentId, now, t, onOpen, onRename, onFork, onArchive }) { + const selected = node.id === currentId; + const [menuOpen, setMenuOpen] = (0, react.useState)(false); + const menuItems = [ + { + id: "rename", + label: t("session.rename"), + icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEditOutline16, {}) + }, + { + id: "fork", + label: t("session.fork"), + icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconBranchOutline16, {}) + }, + { + id: "archive", + label: t("session.archive"), + icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconArchiveOutline20, { size: 16 }) + } + ]; + return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + className: `wgSessionRow${selected ? " wgSelected" : ""}${node.matched === true ? " wgMatched" : ""}`, + role: "treeitem", + "aria-selected": selected, + onClick: () => { + onOpen(node.id); + }, + children: [ + /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgStatusSlot", + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: sessionDotState(node) }) + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgSessionTitle", + children: node.title + }), + !node.blank && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgSessionTime", + children: relativeTimeLabel(node.updatedAt, now) + }), + node.snippet !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgSessionSnippet", + title: node.snippet, + children: node.snippet + }), + !node.blank && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgRowActions", + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, { + open: menuOpen, + onClose: () => { + setMenuOpen(false); + }, + items: menuItems, + onSelect: (id) => { + setMenuOpen(false); + if (id === "rename") onRename(node.id, node.title); + if (id === "fork") onFork(node.id); + if (id === "archive") onArchive(node.id); + }, + portal: true, + closeOnPointerLeave: true, + anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", { + type: "button", + className: "wgIconButton", + "aria-label": `${t("session.rename")} ${node.title}`, + onClick: (e) => { + e.stopPropagation(); + setMenuOpen((v) => !v); + }, + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEllipsisOutline16, {}) + }) + }) + }) + ] + }); + } + //#endregion + //#region \0dsh-workspace-groups-inline-css:/Users/zcol/Project/dsh-workspace-groups/src/client/styles.css.mjs + var styles_css_default = ".wgRoot{flex-direction:column;flex:1;min-height:0;display:flex}.wgSectionHeader{flex:none;align-items:center;gap:4px;height:36px;padding:0 12px;display:flex}.wgSectionLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:45%;color:var(--dsw-fg-1,inherit);flex:none;font-size:12px;font-weight:600;overflow:hidden}.wgIconButton{width:26px;height:26px;color:var(--dsw-fg-2,inherit);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:0;display:inline-flex}.wgIconButton:hover{background:var(--dsw-bg-hover,#7f7f7f1f);color:var(--dsw-fg-1,inherit)}.wgIconButton:disabled{opacity:.5;cursor:default}.wgSearch{flex:1;align-items:center;min-width:0;max-width:28px;margin-left:auto;transition:max-width .18s;display:flex}.wgSearchExpanded{max-width:100%}.wgSearchInput{min-width:0;color:var(--dsw-fg-1,inherit);background:0 0;border:none;outline:none;flex:1;padding:0;font-size:12px}.wgTreeBody{flex:1;min-height:0;padding:0 8px 8px;overflow-y:auto}.wgList{flex-direction:column;gap:1px;display:flex}.wgEmpty{text-align:center;color:var(--dsw-fg-3,#7f7f7fcc);padding:16px 8px;font-size:12px}.wgCategoryRow{cursor:pointer;user-select:none;border-radius:6px;align-items:center;gap:4px;height:28px;padding:0 4px;display:flex}.wgCategoryRow:hover{background:var(--dsw-bg-hover,#7f7f7f1f)}.wgChevron{width:14px;height:14px;color:var(--dsw-fg-3,#7f7f7fcc);flex:none;justify-content:center;align-items:center;transition:transform .12s;display:inline-flex}.wgChevronOpen{transform:rotate(90deg)}.wgCategoryIcon{color:var(--dsw-fg-2,inherit);flex:none;justify-content:center;align-items:center;display:inline-flex}.wgCategoryLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-fg-1,inherit);flex:1;font-size:12px;font-weight:600;overflow:hidden}.wgCategoryCount{color:var(--dsw-fg-3,#7f7f7fcc);flex:none;font-size:11px}.wgProjectRow{cursor:pointer;user-select:none;border-radius:6px;align-items:center;gap:4px;height:28px;padding:0 4px 0 20px;display:flex}.wgProjectRow:hover{background:var(--dsw-bg-hover,#7f7f7f1f)}.wgProjectActive{color:var(--dsw-accent,#4a90d9)}.wgProjectLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-fg-1,inherit);flex:1;font-size:12px;overflow:hidden}.wgRowActions{opacity:0;flex:none;align-items:center;gap:2px;display:inline-flex}.wgProjectRow:hover .wgRowActions,.wgProjectRow:focus-within .wgRowActions{opacity:1}.wgSessionRow{cursor:pointer;user-select:none;border-radius:6px;align-items:center;gap:6px;height:30px;padding:0 4px 0 40px;display:flex}.wgSessionRow:hover{background:var(--dsw-bg-hover,#7f7f7f1f)}.wgSessionRow:hover .wgRowActions,.wgSessionRow:focus-within .wgRowActions{opacity:1}.wgSelected{background:var(--dsw-bg-selected,#4a90d92e)}.wgStatusSlot{flex:none;justify-content:center;align-items:center;width:14px;height:14px;display:inline-flex}.wgSessionTitle{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-fg-1,inherit);flex:1;font-size:12px;overflow:hidden}.wgSessionTime{color:var(--dsw-fg-3,#7f7f7fcc);flex:none;font-size:11px}.wgVisuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wgMatched{background:var(--dsw-bg-selected,#4a90d92e)}.wgSessionSnippet{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-fg-3,#7f7f7fcc);flex:1;font-size:11px;overflow:hidden}.wgSearchStatus{color:var(--dsw-fg-3,#7f7f7fcc);text-align:center;padding:8px;font-size:11px}.wgRail{flex-direction:column;align-items:center;gap:4px;padding:8px 0;display:flex}.wgAddError{color:var(--dsw-fg-1,inherit);white-space:pre-wrap;word-break:break-word;max-height:200px;font-size:12px;overflow-y:auto}.wgRenameInput{border:1px solid var(--dsw-border,#7f7f7f4d);background:var(--dsw-bg-1,transparent);width:100%;color:var(--dsw-fg-1,inherit);border-radius:6px;outline:none;padding:6px 8px;font-size:13px}.wgRenameInput:focus{border-color:var(--dsw-accent,#4a90d9)}"; + //#endregion + //#region src/client/GroupsBrowser.tsx + /** + * The workspace-groups browsing region filling the sidebar shell's + * `sidebar.workspaces` hole: section header (title + right-aligned search + + * add workspace), the three-level tree (category → workspace → session), + * and the workspace/session dialogs. Wide state renders the full browser; + * rail state renders the two region icons (search / add workspace) as 36px + * controls on the shell's shared rail entry path, each requesting expansion + * through the owner share. + * + * Data: workspaces/sessions via the framework global hooks; grouping config + * via the host half's `/workspace-groups/config` route (refetched on mount). + */ + const SEARCH_DEBOUNCE_MS = 250; + const SEARCH_QUERY_MAX_CODE_UNITS = 500; + function sanitizeSearchQuery(value) { + const withoutNul = value.replaceAll("\0", ""); + if (withoutNul.length <= SEARCH_QUERY_MAX_CODE_UNITS) return withoutNul; + return withoutNul.slice(0, SEARCH_QUERY_MAX_CODE_UNITS); + } + /** Minimal fetch of the grouping config (host route; no-cache revalidation). */ + async function fetchGroupsConfig() { + const response = await fetch("/workspace-groups/config", { cache: "no-cache" }); + if (!response.ok) throw new Error(`config request failed: ${response.status}`); + const body = await response.json(); + return Array.isArray(body.categories) ? body : { categories: [] }; + } + /** + * Render the browsing region. + * @param props - composed slot props (shell owner share + store + injected actions). + * @returns the region element tree. + */ + function GroupsBrowser({ wide, expandSidebar, useSessions, useWorkspaces, useStore, actions, startSession, open, renameSession, forkSession, renameWorkspace, deleteWorkspace, insertWorkspaceBefore, archiveSession, insertSessionBefore, createWorkspace, pickDirectory, searchSessions, searchResultLimit, t }) { + (0, react.useEffect)(() => { + const style = document.createElement("style"); + style.setAttribute("data-plugin", "dsh-workspace-groups"); + style.textContent = styles_css_default; + document.head.append(style); + return () => { + style.remove(); + }; + }, []); + const [config, setConfig] = (0, react.useState)({ categories: [] }); + const [configError, setConfigError] = (0, react.useState)(null); + const reloadConfig = () => { + setConfigError(null); + fetchGroupsConfig().then(setConfig).catch((reason) => { + setConfigError(reason instanceof Error ? reason.message : String(reason)); + }); + }; + (0, react.useEffect)(() => { + reloadConfig(); + }, []); + const workspaces = useWorkspaces((state) => state.items); + const workspacePhase = useWorkspaces((state) => state.phase); + const archivedSessionIds = useWorkspaces((state) => state.archivedSessionIds); + const categoryExpansion = useStore((s) => s.categoryExpansion); + const workspaceExpansion = useStore((s) => s.workspaceExpansion); + const list = useSessions((s) => s); + const current = list.current; + const currentWorkspaceKey = current === void 0 ? void 0 : workspaces.find((w) => w.sessionIds.includes(current))?.workspaceId; + (0, react.useEffect)(() => { + if (current === void 0 || currentWorkspaceKey === void 0) return; + const category = categoriesForCurrent(config, workspaces, current); + if (category !== void 0 && !Object.hasOwn(categoryExpansion, category)) actions.setCategoryExpanded(category, true); + if (!Object.hasOwn(workspaceExpansion, currentWorkspaceKey)) actions.setWorkspaceExpanded(currentWorkspaceKey, true); + }, [ + current, + currentWorkspaceKey, + config, + workspaces, + categoryExpansion, + workspaceExpansion, + actions + ]); + (0, react.useEffect)(() => { + if (workspacePhase !== "ready") return; + actions.retainKeys(config.categories.map((c) => c.name), workspaces.map((w) => w.workspaceId)); + }, [ + actions, + config, + workspacePhase, + workspaces + ]); + const [query, setQuery] = (0, react.useState)(""); + const [searchExpanded, setSearchExpanded] = (0, react.useState)(false); + const normalizedQuery = sanitizeSearchQuery(query).trim(); + const [remoteSearch, setRemoteSearch] = (0, react.useState)({ + query: "", + status: "idle", + items: [], + hasMore: false + }); + const searchInput = (0, react.useRef)(null); + const searchRoot = (0, react.useRef)(null); + (0, react.useEffect)(() => { + if (normalizedQuery === "") { + setRemoteSearch({ + query: "", + status: "idle", + items: [], + hasMore: false + }); + return; + } + const controller = new AbortController(); + setRemoteSearch({ + query: normalizedQuery, + status: "loading", + items: [], + hasMore: false + }); + const timer = window.setTimeout(() => { + searchSessions(normalizedQuery, controller.signal).then((result) => { + if (controller.signal.aborted) return; + setRemoteSearch({ + query: normalizedQuery, + status: "ready", + items: result.items, + hasMore: result.hasMore + }); + }).catch(() => { + if (controller.signal.aborted) return; + setRemoteSearch({ + query: normalizedQuery, + status: "error", + items: [], + hasMore: false + }); + }); + }, SEARCH_DEBOUNCE_MS); + return () => { + window.clearTimeout(timer); + controller.abort(); + }; + }, [normalizedQuery, searchSessions]); + (0, react.useEffect)(() => { + if (!wide || !searchExpanded) return; + const onClick = (event) => { + if (!(event.target instanceof Node) || searchRoot.current?.contains(event.target) === true) return; + searchInput.current?.blur(); + if (normalizedQuery !== "") return; + setSearchExpanded(false); + }; + document.addEventListener("click", onClick); + return () => { + document.removeEventListener("click", onClick); + }; + }, [ + normalizedQuery, + wide, + searchExpanded + ]); + const expandedCategories = (0, react.useMemo)(() => Object.entries(categoryExpansion).filter(([, v]) => v).map(([k]) => k), [categoryExpansion]); + const expandedWorkspaces = (0, react.useMemo)(() => Object.entries(workspaceExpansion).filter(([, v]) => v).map(([k]) => k), [workspaceExpansion]); + const groups = (0, react.useMemo)(() => deriveGroups(list, workspaces, archivedSessionIds, config, { + expandedCategories, + expandedWorkspaces + }), [ + list, + workspaces, + archivedSessionIds, + config, + expandedCategories, + expandedWorkspaces + ]); + const [adding, setAdding] = (0, react.useState)(false); + const [addError, setAddError] = (0, react.useState)(null); + const [addErrorOpen, setAddErrorOpen] = (0, react.useState)(false); + const addWorkspace = async () => { + if (adding) return; + setAdding(true); + setAddError(null); + setAddErrorOpen(false); + try { + const path = await pickDirectory(); + if (path === null) return; + startSession((await createWorkspace({ path })).workspaceId); + } catch (reason) { + const message = reason instanceof Error ? reason.message : String(reason); + setAddError(message); + setAddErrorOpen(true); + } finally { + setAdding(false); + } + }; + const [renameTarget, setRenameTarget] = (0, react.useState)(null); + const [renameDraft, setRenameDraft] = (0, react.useState)(""); + const [renaming, setRenaming] = (0, react.useState)(false); + const [renameError, setRenameError] = (0, react.useState)(null); + const renameTrimmed = renameDraft.trim(); + const renameDuplicate = renameTarget !== null && renameTrimmed !== "" && renameTrimmed !== renameTarget.currentTitle && workspaces.some((w) => w.title === renameTrimmed); + const renameBlocked = renaming || renameTrimmed === "" || renameTarget === null || renameTrimmed === renameTarget.currentTitle || renameDuplicate; + const confirmRename = () => { + if (renameBlocked || renameTarget === null) return; + setRenaming(true); + setRenameError(null); + renameWorkspace(renameTarget.workspaceId, renameTrimmed).then(() => { + setRenaming(false); + setRenameTarget(null); + }).catch((reason) => { + setRenaming(false); + setRenameError(reason instanceof Error ? reason.message : String(reason)); + }); + }; + const [deleteTarget, setDeleteTarget] = (0, react.useState)(null); + const [deleting, setDeleting] = (0, react.useState)(false); + const [deleteError, setDeleteError] = (0, react.useState)(null); + const confirmDelete = () => { + if (deleting || deleteTarget === null) return; + setDeleting(true); + setDeleteError(null); + deleteWorkspace(deleteTarget.workspaceId).then(() => { + setDeleting(false); + setDeleteTarget(null); + }).catch((reason) => { + setDeleting(false); + setDeleteError(reason instanceof Error ? reason.message : String(reason)); + }); + }; + const [sessionRenameTarget, setSessionRenameTarget] = (0, react.useState)(null); + const [sessionRenameDraft, setSessionRenameDraft] = (0, react.useState)(""); + const [sessionRenaming, setSessionRenaming] = (0, react.useState)(false); + const [sessionRenameError, setSessionRenameError] = (0, react.useState)(null); + const sessionRenameTrimmed = sessionRenameDraft.trim(); + const sessionRenameBlocked = sessionRenaming || sessionRenameTrimmed === "" || sessionRenameTarget === null; + const confirmSessionRename = () => { + if (sessionRenameBlocked || sessionRenameTarget === null) return; + setSessionRenaming(true); + setSessionRenameError(null); + renameSession(sessionRenameTarget.sessionId, sessionRenameTrimmed).then(() => { + setSessionRenaming(false); + setSessionRenameTarget(null); + }).catch((reason) => { + setSessionRenaming(false); + setSessionRenameError(reason instanceof Error ? reason.message : String(reason)); + }); + }; + const onSessionRename = (sessionId, currentTitle) => { + setSessionRenameTarget({ + sessionId, + currentTitle + }); + setSessionRenameDraft(currentTitle); + setSessionRenameError(null); + }; + const onSessionArchive = (sessionId) => { + archiveSession(sessionId).catch((reason) => { + console.warn("session archive rejected:", reason); + }); + }; + const now = Date.now(); + return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + className: `wgRoot${wide ? "" : " wgRail"}`, + children: [ + /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + className: "wgSectionHeader", + children: [ + wide && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { + className: "wgSectionLabel", + children: t("section.workspaces") + }), + wide && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + className: `wgSearch${searchExpanded ? " wgSearchExpanded" : ""}`, + ref: searchRoot, + children: [ + /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", { + type: "button", + className: "wgIconButton", + "aria-label": t("search"), + onClick: () => { + setSearchExpanded(true); + }, + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSearchOutline16, { size: searchExpanded ? 11 : 14 }) + }), + searchExpanded && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", { + ref: searchInput, + className: "wgSearchInput", + type: "text", + placeholder: t("search.placeholder"), + maxLength: SEARCH_QUERY_MAX_CODE_UNITS, + value: query, + autoFocus: true, + onChange: (e) => { + setQuery(sanitizeSearchQuery(e.target.value)); + }, + onKeyDown: (e) => { + if (e.key !== "Escape") return; + setQuery(""); + setSearchExpanded(false); + } + }), + searchExpanded && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", { + type: "button", + className: "wgIconButton", + "aria-label": t("search.clear"), + onClick: (e) => { + e.stopPropagation(); + setQuery(""); + setSearchExpanded(false); + }, + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCloseFill14, {}) + }) + ] + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, { + label: t("workspace.add"), + side: "bottom", + delayMs: 500, + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", { + type: "button", + className: "wgIconButton", + "aria-label": t("workspace.add"), + disabled: adding, + onClick: addWorkspace, + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconProjectAddOutline16, { size: wide ? 16 : 18 }) + }) + }) + ] + }), + !wide && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgSectionHeader", + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, { + label: t("search"), + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", { + type: "button", + className: "wgIconButton", + "aria-label": t("search"), + onClick: () => { + setSearchExpanded(true); + expandSidebar(); + }, + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSearchOutline16, { size: 18 }) + }) + }) + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + className: "wgTreeBody", + children: [configError !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgSearchStatus", + role: "status", + children: t("configUnavailable") + }), wide && normalizedQuery !== "" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchBody, { + list, + workspaces, + config, + archivedSessionIds, + query: normalizedQuery, + remote: remoteSearch, + resultLimit: searchResultLimit, + current, + now, + open, + t + }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + className: "wgList", + role: "tree", + "aria-label": t("section.workspaces"), + children: [groups.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgEmpty", + children: workspacePhase === "ready" ? t("empty.noWorkspaces") : t("empty.none") + }), groups.map((category) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CategorySection, { + category, + current, + now, + t, + onToggleCategory: () => { + actions.setCategoryExpanded(category.key, !category.expanded); + }, + onToggleWorkspace: (key) => { + actions.setWorkspaceExpanded(key, !workspaceExpansion[key]); + }, + onNewSession: startSession, + onOpen: open, + onRenameRequest: (workspaceId, title) => { + setRenameTarget({ + workspaceId, + currentTitle: title + }); + setRenameDraft(title); + setRenameError(null); + }, + onDeleteRequest: (workspaceId, title) => { + setDeleteTarget({ + workspaceId, + title + }); + setDeleteError(null); + }, + onSessionRename, + onSessionArchive, + onFork: forkSession + }, category.key))] + })] + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, { + open: renameTarget !== null, + onClose: () => { + setRenameTarget(null); + }, + closeLabel: t("close"), + title: t("workspace.renameTitle"), + footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, { + variant: "outline", + onClick: () => { + setRenameTarget(null); + }, + children: t("cancel") + }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, { + variant: "primary", + disabled: renameBlocked, + onClick: confirmRename, + children: t("workspace.renameConfirm") + })] }), + children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", { + className: "wgRenameInput", + value: renameDraft, + "aria-label": t("workspace.renamePlaceholder"), + autoFocus: true, + onChange: (e) => { + setRenameDraft(e.target.value); + }, + onKeyDown: (e) => { + if (e.key === "Enter") confirmRename(); + } + }), renameError !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgAddError", + role: "alert", + children: renameError + })] + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, { + open: deleteTarget !== null, + onClose: () => { + setDeleteTarget(null); + }, + closeLabel: t("close"), + title: t("workspace.deleteTitle"), + footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, { + variant: "outline", + onClick: () => { + setDeleteTarget(null); + }, + children: t("workspace.deleteCancel") + }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, { + variant: "outline", + disabled: deleting, + onClick: confirmDelete, + children: t("workspace.delete") + })] }), + children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgAddError", + children: t("workspace.deleteConfirm") + }), deleteError !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgAddError", + role: "alert", + children: deleteError + })] + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, { + open: sessionRenameTarget !== null, + onClose: () => { + setSessionRenameTarget(null); + }, + closeLabel: t("close"), + title: t("session.renameTitle"), + footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, { + variant: "outline", + onClick: () => { + setSessionRenameTarget(null); + }, + children: t("session.renameCancel") + }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, { + variant: "primary", + disabled: sessionRenameBlocked, + onClick: confirmSessionRename, + children: t("session.renameConfirm") + })] }), + children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", { + className: "wgRenameInput", + value: sessionRenameDraft, + "aria-label": t("session.renamePlaceholder"), + autoFocus: true, + onChange: (e) => { + setSessionRenameDraft(e.target.value); + }, + onKeyDown: (e) => { + if (e.key === "Enter") confirmSessionRename(); + } + }), sessionRenameError !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgAddError", + role: "alert", + children: sessionRenameError + })] + }), + /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, { + open: addErrorOpen, + onClose: () => { + setAddErrorOpen(false); + }, + closeLabel: t("close"), + title: t("workspace.addErrorTitle"), + footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, { + variant: "outline", + onClick: () => { + setAddErrorOpen(false); + }, + children: t("close") + }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, { + variant: "primary", + onClick: addWorkspace, + children: t("retry") + })] }), + children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgAddError", + role: "alert", + children: addError + }) + }) + ] + }); + } + /** Resolve the category label containing the current session (auto-expand helper). */ + function categoriesForCurrent(config, workspaces, current) { + const workspace = workspaces.find((w) => w.sessionIds.includes(current)); + if (workspace === void 0) return void 0; + return classify(config.categories, workspace.path, workspace.title)?.name; + } + /** One category section: header row + expanded workspace folders. */ + function CategorySection({ category, current, now, t, onToggleCategory, onToggleWorkspace, onNewSession, onOpen, onRenameRequest, onDeleteRequest, onSessionRename, onSessionArchive, onFork }) { + return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + role: "group", + children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CategoryRow, { + node: category, + t, + onToggle: onToggleCategory + }), category.expanded && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + role: "group", + children: category.workspaces.map((workspace) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + role: "group", + children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorkspaceRow, { + node: workspace, + t, + onToggle: () => { + onToggleWorkspace(workspace.workspaceId); + }, + onNewSession: () => { + onNewSession(workspace.workspaceId); + }, + onRename: () => { + onRenameRequest(workspace.workspaceId, workspace.label); + }, + onDelete: () => { + onDeleteRequest(workspace.workspaceId, workspace.label); + } + }), workspace.expanded && workspace.sessions.map((session) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SessionRow, { + node: session, + currentId: current, + now, + t, + onOpen, + onRename: onSessionRename, + onFork, + onArchive: onSessionArchive + }, session.id))] + }, workspace.workspaceId)) + })] + }); + } + /** + * Search body rendered as a three-level tree pruned to matched branches: + * 分类文件夹 → 项目文件夹 → 命中会话行. Reuses the same row components as + * the idle tree, so search keeps the same folder hierarchy the user is used to. + */ + function SearchBody({ list, workspaces, config, archivedSessionIds, query, remote, resultLimit, current, now, open, t }) { + const currentRemote = remote.query === query ? remote : { + query, + status: "loading", + items: [], + hasMore: false + }; + const matches = (0, react.useMemo)(() => deriveSearchMatches(list, workspaces, config, query, archivedSessionIds, currentRemote, resultLimit), [ + list, + workspaces, + config, + query, + archivedSessionIds, + currentRemote, + resultLimit + ]); + const groups = (0, react.useMemo)(() => deriveSearchGroups(list, workspaces, config, matches.matchedIds, archivedSessionIds, matches.snippetsBySession), [ + list, + workspaces, + config, + matches, + archivedSessionIds + ]); + const pending = currentRemote.status === "loading"; + const failed = currentRemote.status === "error"; + return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + className: "wgList", + role: "tree", + "aria-label": t("search.results.aria"), + children: [ + groups.map((category) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + role: "group", + children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CategoryRow, { + node: category, + t, + onToggle: () => {} + }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + role: "group", + children: category.workspaces.map((workspace) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { + role: "group", + children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorkspaceRow, { + node: workspace, + t, + onToggle: () => {}, + onNewSession: () => {}, + onRename: () => {}, + onDelete: () => {} + }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + role: "group", + children: workspace.sessions.map((session) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SessionRow, { + node: session, + currentId: current, + now, + t, + onOpen: open, + onRename: () => {}, + onFork: () => {}, + onArchive: () => {} + }, session.id)) + })] + }, workspace.workspaceId)) + })] + }, category.key)), + pending && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgSearchStatus", + role: "status", + children: t("search.pending") + }), + failed && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgSearchStatus", + role: "status", + children: t("search.unavailable") + }), + !pending && groups.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgEmpty", + children: t("search.noMatches") + }), + matches.hasMore && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { + className: "wgSearchStatus", + children: t("search.hasMore") + }) + ] + }); + } + //#endregion + //#region src/client/locales.ts + /** Simplified Chinese dictionary. */ + const zh = { + "section.workspaces": "工作区", + "section.sessions": "会话", + search: "搜索", + "search.placeholder": "搜索会话…", + "search.clear": "清除", + "search.noMatches": "没有匹配的会话", + "search.unavailable": "搜索不可用", + "search.pending": "搜索中…", + "search.hasMore": "结果过多,请细化关键词", + "search.results.aria": "搜索结果", + "workspace.add": "添加工作区", + "workspace.addBusy": "正在添加…", + "workspace.addError": "添加失败", + "workspace.addErrorTitle": "无法添加工作区", + "workspace.rename": "重命名", + "workspace.delete": "删除", + "workspace.deleteTitle": "删除工作区", + "workspace.deleteConfirm": "仅删除注册信息,目录与会话日志保留。确定删除?", + "workspace.deleteCancel": "取消删除", + "workspace.renaming": "重命名中…", + "workspace.deleting": "删除中…", + "workspace.renameTitle": "重命名工作区", + "workspace.renamePlaceholder": "工作区名称", + "workspace.renameConfirm": "重命名", + "workspace.renameCancel": "取消", + "session.new": "新建会话", + "session.rename": "重命名会话", + "session.archive": "归档", + "session.fork": "派生", + "session.renameTitle": "重命名会话", + "session.renamePlaceholder": "会话名称", + "session.renameConfirm": "重命名", + "session.renameCancel": "取消", + "session.renaming": "重命名中…", + uncategorized: "未分类", + "empty.none": "暂无内容", + "empty.noWorkspaces": "还没有工作区", + close: "关闭", + cancel: "取消", + confirm: "确定", + retry: "重试", + configUnavailable: "分组配置不可用", + collapse: "折叠", + expandMore: "展开全部", + newSession: "新建会话" + }; + /** English dictionary. */ + const en = { + "section.workspaces": "Workspaces", + "section.sessions": "Sessions", + search: "Search", + "search.placeholder": "Search sessions…", + "search.clear": "Clear", + "search.noMatches": "No matching sessions", + "search.unavailable": "Search unavailable", + "search.pending": "Searching…", + "search.hasMore": "Too many results — refine the query", + "search.results.aria": "Search results", + "workspace.add": "Add workspace", + "workspace.addBusy": "Adding…", + "workspace.addError": "Add failed", + "workspace.addErrorTitle": "Could not add workspace", + "workspace.rename": "Rename", + "workspace.delete": "Delete", + "workspace.deleteTitle": "Delete workspace", + "workspace.deleteConfirm": "Only the registration is removed; the directory and session logs stay. Delete?", + "workspace.deleteCancel": "Cancel delete", + "workspace.renaming": "Renaming…", + "workspace.deleting": "Deleting…", + "workspace.renameTitle": "Rename workspace", + "workspace.renamePlaceholder": "Workspace name", + "workspace.renameConfirm": "Rename", + "workspace.renameCancel": "Cancel", + "session.new": "New Session", + "session.rename": "Rename session", + "session.archive": "Archive", + "session.fork": "Fork", + "session.renameTitle": "Rename session", + "session.renamePlaceholder": "Session name", + "session.renameConfirm": "Rename", + "session.renameCancel": "Cancel", + "session.renaming": "Renaming…", + uncategorized: "Uncategorized", + "empty.none": "Nothing here", + "empty.noWorkspaces": "No workspaces yet", + close: "Close", + cancel: "Cancel", + confirm: "Confirm", + retry: "Retry", + configUnavailable: "Grouping config unavailable", + collapse: "Collapse", + expandMore: "Show all", + newSession: "New Session" + }; + //#endregion + //#region src/client/index.ts + /** Dictionary namespace owned by this plugin. */ + const NS = "workspaceGroups"; + /** Required services (cordis fiber inject). */ + const inject = [ + "slots", + "sessions", + "workspaces", + "locale", + "connection" + ]; + /** + * Register the grouped browser once the sidebar slot declaration is on the + * ledger. Inject factory returns plain callbacks; data reads use the + * framework's global hooks. + * @param ctx - client root context. + */ + function apply(ctx) { + ctx.effect(() => ctx.locale.register(NS, { + zh, + en + }), "dsh-workspace-groups: dictionaries"); + const searchSessions = async (query, signal) => { + const result = await ctx.sessions.search(query, signal); + if (!result.ok) throw new Error(result.error.message); + return result.value; + }; + const browserInjected = () => ({ + startSession: (workspaceId) => { + ctx.workspaces.startSession(workspaceId); + }, + open: (sessionId) => { + ctx.sessions.open(sessionId); + }, + searchSessions, + searchResultLimit: ctx.sessions.searchResultLimit, + renameSession: async (sessionId, title) => { + const session = ctx.sessions.binding(sessionId)?.session; + if (session === void 0) throw new Error(`unknown session "${sessionId}"`); + const result = await session.rename(title); + if (!result.ok) throw new Error(result.error.message); + }, + forkSession: (sessionId) => { + ctx.sessions.fork({ + sessionId, + increaseTitle: true + }).then((childId) => { + ctx.sessions.open(childId); + }).catch(() => {}); + }, + renameWorkspace: async (workspaceId, title) => { + await ctx.workspaces.rename(workspaceId, title); + }, + deleteWorkspace: async (workspaceId) => { + await ctx.workspaces.delete(workspaceId); + }, + insertWorkspaceBefore: async (workspaceId, beforeWorkspaceId) => { + await ctx.workspaces.insertBefore(workspaceId, beforeWorkspaceId); + }, + archiveSession: async (sessionId) => { + await ctx.workspaces.archiveSession(sessionId); + }, + insertSessionBefore: async (workspaceId, sessionId, beforeSessionId) => { + await ctx.workspaces.insertSessionBefore(workspaceId, sessionId, beforeSessionId); + }, + createWorkspace: (input) => ctx.workspaces.create(input), + pickDirectory: () => ctx.workspaces.pickDirectory(), + hooks: { hostDescription: ctx.get("connection").hostDescription } + }); + ctx.slots.inject("sidebar.workspaces", () => ctx.slots.register({ + name: "sidebar.workspaces", + priority: -1, + store: createGroupsViewStore(), + inject: browserInjected, + locale: NS, + registrant: "dsh-workspace-groups" + }, GroupsBrowser)); + } + //#endregion + exports.apply = apply; + exports.inject = inject; + return module.exports; + } +}); + +//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/lib/client.js.map b/lib/client.js.map new file mode 100644 index 0000000..ef22741 --- /dev/null +++ b/lib/client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"client.js","names":["defineStore","indexSubagentDescendants","IconTriangleRightFill14","IconFolderOpen16","IconFolderClose16","useState","IconEditOutline16","IconTrashOutline16","Menu","IconEllipsisOutline16","IconPlusOutline16","IconBranchOutline16","IconArchiveOutline20","StateDot","css","useState","useRef","useMemo","IconSearchOutline16","IconCloseFill14","Tooltip","IconProjectAddOutline16","Modal","Button"],"sources":["../src/client/store-core.ts","../src/client/stores.ts","../src/core/types.ts","../src/core/matcher.ts","../src/client/tree.ts","../src/client/rows.tsx","../src/client/GroupsBrowser.tsx","../src/client/locales.ts","../src/client/index.ts"],"sourcesContent":["/**\n * Pure expansion-state transforms for the workspace-groups store. Kept free\n * of any runtime import so both the store (which binds them via defineStore)\n * and unit tests (which exercise them directly) share one implementation.\n *\n * Expansion semantics follow the official ui-workspace store: collapse\n * WRITES `false` (never deletes the key). The browser's auto-expand guard\n * uses `Object.hasOwn` — a present `false` means \"user deliberately\n * collapsed this\" and must NOT be re-expanded; only a fully absent key means\n * \"never touched\" and may auto-expand. (Earlier versions deleted the key on\n * collapse, which made the current category/workspace impossible to fold.)\n */\n\n/** Workspace-groups browser viewing state persisted across surface remounts and reloads. */\nexport interface GroupsViewState {\n /** Category folder expansion keyed by category label (absent = never touched). */\n categoryExpansion: Record\n /** Workspace folder expansion keyed by workspace id (absent = never touched). */\n workspaceExpansion: Record\n}\n\n/** Collapse writes `false` (key retained); expand writes `true`. */\nexport function setCategoryExpandedImpl(state: GroupsViewState, key: string, expanded: boolean): void {\n state.categoryExpansion[key] = expanded\n}\n\n/** Collapse writes `false` (key retained); expand writes `true`. */\nexport function setWorkspaceExpandedImpl(state: GroupsViewState, key: string, expanded: boolean): void {\n state.workspaceExpansion[key] = expanded\n}\n\n/** Drop expansion keys that no longer exist (renames/deletes/config edits). */\nexport function retainKeysImpl(\n state: GroupsViewState,\n categoryKeys: readonly string[],\n workspaceKeys: readonly string[],\n): void {\n state.categoryExpansion = Object.fromEntries(\n Object.entries(state.categoryExpansion).filter(([key]) => categoryKeys.includes(key)),\n )\n state.workspaceExpansion = Object.fromEntries(\n Object.entries(state.workspaceExpansion).filter(([key]) => workspaceKeys.includes(key)),\n )\n}\n","/**\n * The workspace-groups viewing store: category / workspace folder expansion,\n * persisted across reloads under an independent key (the official\n * ui-workspace store keeps its own `dsh.workspace.view.v5` — we never touch\n * it). Module level exports the factory only (a module-level handle would pin\n * the store identity across plugin reloads); register() receives the factory\n * and the browser derives its PropsStore share from the return type.\n *\n * The action implementations live in `store-core.ts` (pure, runtime-free) so\n * unit tests exercise the real semantics without a browser module loader;\n * this file only binds them through defineStore.\n */\nimport { defineStore, type EngineStoreHandle } from '@deepseek-ai/dsh-client-runtime/client'\nimport {\n retainKeysImpl,\n setCategoryExpandedImpl,\n setWorkspaceExpandedImpl,\n type GroupsViewState,\n} from './store-core.ts'\n\n/** Annotation twin of the actions literal below (structural type, satisfies `ActionsDecl`). */\ntype GroupsViewActions = {\n setCategoryExpanded: typeof setCategoryExpandedImpl\n setWorkspaceExpanded: typeof setWorkspaceExpandedImpl\n retainKeys: typeof retainKeysImpl\n}\n\n/**\n * Create the workspace-groups viewing store handle.\n * @returns the store handle (spec + type + identity + factory in one).\n */\nexport function createGroupsViewStore(): EngineStoreHandle {\n return defineStore({\n init: () => ({ categoryExpansion: {}, workspaceExpansion: {} }),\n persist: 'dsh.workspace.groups.view.v1',\n actions: {\n setCategoryExpanded: setCategoryExpandedImpl,\n setWorkspaceExpanded: setWorkspaceExpandedImpl,\n retainKeys: retainKeysImpl,\n },\n })\n}\n\nexport type { GroupsViewState } from './store-core.ts'\n","/**\n * Shared config types for dsh-workspace-groups. Pure types (zero runtime\n * deps) so both halves — the node half (sidecar YAML reading) and the\n * browser half (tree derivation) — compile against the same contract.\n */\n\n/** One classification rule: any rule that matches places the workspace in the category. */\nexport interface GroupRule {\n /** Absolute path prefix match (normalized, case-sensitive). */\n pathPrefix?: string\n /** Case-insensitive substring match against the workspace display title. */\n nameContains?: string\n /** Case-insensitive substring match against the workspace directory basename. */\n basenameContains?: string\n /** Exact absolute path match (normalized). */\n pathExact?: string\n}\n\n/** One category folder in the sidebar tree. */\nexport interface GroupCategory {\n /** Display label of the category folder. */\n name: string\n /** Rules; a workspace is classified here when ANY rule matches. */\n rules: GroupRule[]\n}\n\n/** The full sidecar configuration (mirrors workspace-groups.yaml). */\nexport interface GroupsConfig {\n /** Category folders, in render order. First match wins. */\n categories: GroupCategory[]\n}\n\n/** The label of the fallback bucket for unmatched workspaces. */\nexport const UNCATEGORIZED_LABEL = '未分类'\n\n/** Normalize a path for prefix matching: trailing slashes stripped. */\nexport function normalizePath(path: string): string {\n return path.replace(/[/\\\\]+$/, '')\n}\n","/**\n * Pure classification logic: decides which category a workspace belongs to.\n * Shared by the host half (validation) and the client half (tree derivation),\n * so the rule semantics can never drift between the config surface and the\n * rendered tree.\n */\nimport { normalizePath, type GroupCategory, type GroupRule } from './types.ts'\n\n/** One rule match against a workspace's path and title. */\nfunction ruleMatches(rule: GroupRule, path: string, title: string): boolean {\n const normalized = normalizePath(path)\n if (rule.pathPrefix !== undefined && normalized.startsWith(normalizePath(rule.pathPrefix))) return true\n if (rule.pathExact !== undefined && normalized === normalizePath(rule.pathExact)) return true\n if (rule.nameContains !== undefined && title.toLowerCase().includes(rule.nameContains.toLowerCase())) return true\n if (rule.basenameContains !== undefined) {\n const base = path.replace(/[/\\\\]+$/, '').split(/[/\\\\]/).pop() ?? ''\n if (base.toLowerCase().includes(rule.basenameContains.toLowerCase())) return true\n }\n return false\n}\n\n/**\n * Classify a workspace into its category.\n * @param categories - configured categories, in render order.\n * @param path - workspace canonical directory path.\n * @param title - workspace display title.\n * @returns the matching category, or undefined when no rule matches.\n */\nexport function classify(categories: readonly GroupCategory[], path: string, title: string): GroupCategory | undefined {\n for (const category of categories) {\n if (category.rules.some(rule => ruleMatches(rule, path, title))) return category\n }\n return undefined\n}\n","/**\n * Derives the three-level workspace-groups tree: 分类文件夹 → 项目文件夹 →\n * 会话行. Pure derivation — all inputs are snapshots; the renderer never\n * scans. Session visibility rules mirror the official ui-workspace tree\n * (blank rows only when current, archived excluded, subagent rows excluded).\n */\nimport {\n indexSubagentDescendants,\n type PendingInteractionStatus,\n type SessionId,\n type SessionListState,\n type SessionSearchResultItem,\n type SessionSummary,\n type SubagentDescendantSummary,\n type WorkspaceId,\n type WorkspaceView,\n} from '@deepseek-ai/dsh-client-runtime/client'\nimport { classify } from '../core/matcher.ts'\nimport { UNCATEGORIZED_LABEL, type GroupsConfig } from '../core/types.ts'\n\n/** One top-level session row inside a workspace folder. */\nexport interface SessionNode {\n id: SessionId\n /** Stored display title; blank rows show the localized New Session label. */\n title: string\n /** The provisional blank session (renderer shows the localized New Session title). */\n blank: boolean\n pendingInteraction?: PendingInteractionStatus\n running: boolean\n /** Running descendants connected through uninterrupted subagent-origin lineage. */\n runningSubagentCount: number\n /** Finished running while not selected and not yet opened (the green \"done\" reminder dot). */\n completed: boolean\n updatedAt: number\n /** Search-hit marker (rendered with a highlighted tint in search mode). */\n matched?: boolean\n /** Content-match snippet from the Host search (search mode only). */\n snippet?: string\n}\n\n/** One workspace folder row inside a category folder. */\nexport interface WorkspaceGroupNode {\n workspaceId: WorkspaceId\n /** Canonical host directory path. */\n path: string\n /** Display title. */\n label: string\n /** Workspace creation time (epoch ms). */\n createdAt: number\n /** Total visible sessions in the folder. */\n sessionCount: number\n expanded: boolean\n /** The folder contains the selected session (active folder tint). */\n containsCurrent: boolean\n /** Visible session rows (empty while the folder is folded). */\n sessions: readonly SessionNode[]\n}\n\n/** One category folder at the top of the tree. */\nexport interface CategoryNode {\n /** Stable category key: the configured label, or the uncategorized bucket. */\n key: string\n /** Display label. */\n label: string\n expanded: boolean\n /** The category contains the selected session (active folder tint). */\n containsCurrent: boolean\n /** Workspace folders in host order. */\n workspaces: readonly WorkspaceGroupNode[]\n}\n\n/** Viewing state consumed by the derivation. */\nexport interface GroupsTreeView {\n expandedCategories: readonly string[]\n expandedWorkspaces: readonly string[]\n}\n\n/** Key of the uncategorized bucket (matches the config fallback label). */\nexport const UNCATEGORIZED_KEY = UNCATEGORIZED_LABEL\n\n/** Directory display label: basename of the path (both separators accepted). */\nexport function workspaceLabel(cwd: string | undefined): string {\n if (cwd === undefined || cwd === '') return UNCATEGORIZED_LABEL\n const base = cwd.replace(/[/\\\\]+$/, '').split(/[/\\\\]/).pop()\n return base !== undefined && base !== '' ? base : cwd\n}\n\n/** Ordinary sessions are visible; blank only when current; archived/subagent never. */\nfunction sessionVisible(session: SessionSummary, current: SessionId | undefined, archived: ReadonlySet): boolean {\n return session.origin !== 'subagent'\n && !archived.has(session.id)\n && (!session.blank || session.id === current)\n}\n\n/** Blank rows display the localized New Session label (never enters search). */\nfunction sessionTitle(session: SessionSummary): string {\n return session.blank ? 'New Session' : session.displayTitle\n}\n\nfunction sessionNode(\n s: SessionSummary,\n descendants: ReadonlyMap,\n): SessionNode {\n return {\n id: s.id,\n title: sessionTitle(s),\n blank: s.blank,\n running: s.running,\n runningSubagentCount: descendants.get(s.id)?.runningCount ?? 0,\n completed: s.completed === true,\n updatedAt: s.updatedAt,\n ...(s.pendingInteraction === undefined ? {} : { pendingInteraction: s.pendingInteraction }),\n }\n}\n\n/** Visible sessions of one workspace in its stored account order. */\nfunction workspaceSessions(\n list: SessionListState,\n workspace: WorkspaceView,\n archived: ReadonlySet,\n descendants: ReadonlyMap,\n): SessionNode[] {\n const nodes: SessionNode[] = []\n for (const id of workspace.sessionIds) {\n const summary = list.byId[id]\n if (summary === undefined) continue // account may lead the list pull; appears when the summary lands\n if (!sessionVisible(summary, list.current, archived)) continue\n nodes.push(sessionNode(summary, descendants))\n }\n return nodes\n}\n\n/**\n * Derive the three-level tree.\n * @param list - sessions list snapshot (`current` feeds containsCurrent).\n * @param workspaces - real workspaces in stable Host order.\n * @param archivedSessionIds - registry-global archive set.\n * @param config - sidecar grouping config.\n * @param view - local expansion arrays.\n * @returns category sections in render order (configured categories first, uncategorized last).\n */\nexport function deriveGroups(\n list: SessionListState,\n workspaces: readonly WorkspaceView[],\n archivedSessionIds: readonly SessionId[],\n config: GroupsConfig,\n view: GroupsTreeView,\n): CategoryNode[] {\n const archived = new Set(archivedSessionIds)\n const expandedCategories = new Set(view.expandedCategories)\n const expandedWorkspaces = new Set(view.expandedWorkspaces)\n const descendants = indexSubagentDescendants(list.byId)\n\n // Bucket workspaces by category, preserving host order inside each bucket.\n const byCategory = new Map()\n const categorized = new Set()\n for (const category of config.categories) {\n byCategory.set(category.name, [])\n }\n for (const workspace of workspaces) {\n const category = classify(config.categories, workspace.path, workspace.title)\n const key = category !== undefined ? category.name : UNCATEGORIZED_KEY\n if (!byCategory.has(key)) byCategory.set(key, [])\n byCategory.get(key)!.push(workspace)\n categorized.add(workspace.workspaceId)\n }\n\n const currentWorkspaceId = list.current === undefined\n ? undefined\n : workspaces.find(w => w.sessionIds.includes(list.current as SessionId))?.workspaceId\n\n const nodes: CategoryNode[] = []\n for (const [key, bucket] of byCategory) {\n if (bucket.length === 0) continue\n const expanded = expandedCategories.has(key)\n const workspaceNodes: WorkspaceGroupNode[] = []\n let containsCurrent = false\n for (const workspace of bucket) {\n const sessions = workspaceSessions(list, workspace, archived, descendants)\n const wsExpanded = expandedWorkspaces.has(workspace.workspaceId as string)\n const wsContainsCurrent = workspace.workspaceId === currentWorkspaceId\n if (wsContainsCurrent) containsCurrent = true\n workspaceNodes.push({\n workspaceId: workspace.workspaceId,\n path: workspace.path,\n label: workspace.title,\n createdAt: Date.parse(workspace.createdAt),\n sessionCount: sessions.length,\n expanded: wsExpanded,\n containsCurrent: wsContainsCurrent,\n sessions: wsExpanded ? sessions : [],\n })\n }\n nodes.push({\n key,\n label: key === UNCATEGORIZED_KEY ? UNCATEGORIZED_LABEL : key,\n expanded,\n containsCurrent,\n workspaces: workspaceNodes,\n })\n }\n return nodes\n}\n\n/** Recency comparator: newest first, id as the deterministic tiebreak. */\nfunction byRecency(a: SessionSummary, b: SessionSummary): number {\n if (b.updatedAt !== a.updatedAt) return b.updatedAt - a.updatedAt\n return a.id < b.id ? -1 : 1\n}\n\n/** Bounded set of matched sessions plus content snippets (feeds the search tree). */\nexport interface SearchMatchSet {\n /** Session ids that matched (local metadata hits + Host content hits). */\n matchedIds: ReadonlySet\n /** Content-match snippets keyed by session id (Host search only). */\n snippetsBySession: ReadonlyMap\n hasMore: boolean\n}\n\n/**\n * Compute the matched-session set: immediate title/Workspace substring matches\n * from the local list, merged with ranked Host content matches. The consumer\n * (SearchBody) derives the pruned three-level tree from these ids.\n */\nexport function deriveSearchMatches(\n list: SessionListState,\n workspaces: readonly WorkspaceView[],\n config: GroupsConfig,\n query: string,\n archivedSessionIds: readonly SessionId[],\n content: { items: readonly SessionSearchResultItem[]; hasMore: boolean },\n limit: number,\n): SearchMatchSet {\n const q = query.trim().toLowerCase()\n if (q === '') return { matchedIds: new Set(), snippetsBySession: new Map(), hasMore: false }\n const archived = new Set(archivedSessionIds)\n const descendants = indexSubagentDescendants(list.byId)\n\n const workspaceBySession = new Map()\n for (const workspace of workspaces) {\n for (const sessionId of workspace.sessionIds) {\n if (!workspaceBySession.has(sessionId)) workspaceBySession.set(sessionId, workspace)\n }\n }\n const labelOf = (summary: SessionSummary): string =>\n workspaceBySession.get(summary.id)?.title ?? workspaceLabel(summary.cwd)\n\n const local: SessionSummary[] = []\n for (const id of list.ids) {\n const summary = list.byId[id]\n if (summary === undefined || summary.blank || !sessionVisible(summary, list.current, archived)) continue\n if (\n sessionTitle(summary).toLowerCase().includes(q)\n || labelOf(summary).toLowerCase().includes(q)\n ) {\n local.push(summary)\n }\n }\n local.sort(byRecency)\n\n const ordered: SessionSummary[] = []\n const included = new Set()\n const include = (summary: SessionSummary): void => {\n if (included.has(summary.id)) return\n included.add(summary.id)\n ordered.push(summary)\n }\n for (const summary of local) include(summary)\n for (const item of content.items) {\n const summary = list.byId[item.sessionId]\n if (summary !== undefined && !summary.blank && sessionVisible(summary, list.current, archived)) include(summary)\n }\n\n const snippets = new Map()\n for (const item of content.items) {\n if (item.snippet !== undefined) snippets.set(item.sessionId, item.snippet)\n }\n\n return {\n matchedIds: ordered.slice(0, limit).reduce((set, summary) => { set.add(summary.id); return set }, new Set()),\n snippetsBySession: snippets,\n hasMore: content.hasMore || ordered.length > limit,\n }\n}\n\n/**\n * Build a three-level search tree containing ONLY the branches that hold a\n * matched session: 分类文件夹 → 项目文件夹 → 命中会话行. Every matched\n * session carries `matched: true` so rows render with the search-hit tint.\n *\n * @param list - sessions list snapshot.\n * @param workspaces - real workspaces in stable Host order.\n * @param config - sidecar grouping config.\n * @param matchedIds - set of session ids that matched the query.\n * @param archivedSessionIds - registry-global archive set.\n * @param snippetsBySession - optional content-match snippets keyed by session id.\n * @returns categories in render order, pruned to matched branches only.\n */\nexport function deriveSearchGroups(\n list: SessionListState,\n workspaces: readonly WorkspaceView[],\n config: GroupsConfig,\n matchedIds: ReadonlySet,\n archivedSessionIds: readonly SessionId[],\n snippetsBySession?: ReadonlyMap,\n): CategoryNode[] {\n const archived = new Set(archivedSessionIds)\n const descendants = indexSubagentDescendants(list.byId)\n\n const byCategory = new Map()\n for (const category of config.categories) byCategory.set(category.name, [])\n\n for (const workspace of workspaces) {\n // Only sessions that matched the query and are visible in this folder.\n const nodes: SessionNode[] = []\n for (const id of workspace.sessionIds) {\n const summary = list.byId[id]\n if (summary === undefined || !matchedIds.has(id)) continue\n if (!sessionVisible(summary, list.current, archived)) continue\n const node = sessionNode(summary, descendants)\n const snippet = snippetsBySession?.get(id)\n nodes.push({\n ...node,\n matched: true,\n ...(snippet === undefined ? {} : { snippet }),\n })\n }\n if (nodes.length === 0) continue\n\n const category = classify(config.categories, workspace.path, workspace.title)\n const key = category !== undefined ? category.name : UNCATEGORIZED_KEY\n if (!byCategory.has(key)) byCategory.set(key, [])\n byCategory.get(key)!.push({\n workspaceId: workspace.workspaceId,\n path: workspace.path,\n label: workspace.title,\n createdAt: Date.parse(workspace.createdAt),\n sessionCount: nodes.length,\n expanded: true,\n containsCurrent: false,\n sessions: nodes,\n })\n }\n\n const categories: CategoryNode[] = []\n for (const [key, workspaceNodes] of byCategory) {\n if (workspaceNodes.length === 0) continue\n categories.push({\n key,\n label: key === UNCATEGORIZED_KEY ? UNCATEGORIZED_LABEL : key,\n expanded: true,\n containsCurrent: false,\n workspaces: workspaceNodes,\n })\n }\n return categories\n}\n","/**\n * Row components for the workspace-groups tree. Kept dependency-light: they\n * consume only React, primitives (StateDot/Menu/icons), and the shared CSS\n * string. Each row owns its hover actions menu; dialogs live in the browser\n * root so they survive row unmounts during collapse.\n */\nimport { useState } from 'react'\nimport {\n IconArchiveOutline20,\n IconBranchOutline16,\n IconEditOutline16,\n IconEllipsisOutline16,\n IconFolderClose16,\n IconFolderOpen16,\n IconPlusOutline16,\n IconTriangleRightFill14,\n IconTrashOutline16,\n Menu,\n StateDot,\n type StateDotState,\n} from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'\nimport type { WorkspaceGroupsKey } from './locales.ts'\nimport type { CategoryNode, SessionNode, WorkspaceGroupNode } from './tree.ts'\n\ntype T = TranslateNS<'workspaceGroups'>\n\n/** Pending interaction status → primitives StateDot state. */\nfunction pendingState(status: SessionNode['pendingInteraction']): StateDotState | undefined {\n switch (status) {\n case 'approval':\n case 'plan-review':\n case 'question':\n return 'warning'\n default:\n return undefined\n }\n}\n\n/** Primary status dot state for a session row. */\nexport function sessionDotState(node: Pick): StateDotState {\n if (pendingState(node.pendingInteraction) !== undefined) return 'warning'\n if (node.running || node.runningSubagentCount > 0) return 'ongoing'\n return node.completed ? 'done' : 'done'\n}\n\n/** Compact relative time (\"now\"/\"5min\"/\"3h\"/\"2d\"/\"4mo\"/\"1y\"). */\nexport function relativeTimeLabel(updatedAt: number, now: number): string {\n const diff = Math.max(0, now - updatedAt)\n const MIN = 60_000\n const HOUR = 3_600_000\n const DAY = 86_400_000\n if (diff < MIN) return 'now'\n if (diff < HOUR) return `${Math.floor(diff / MIN)}min`\n if (diff < DAY) return `${Math.floor(diff / HOUR)}h`\n if (diff < 30 * DAY) return `${Math.floor(diff / DAY)}d`\n if (diff < 365 * DAY) return `${Math.floor(diff / (30 * DAY))}mo`\n return `${Math.floor(diff / (365 * DAY))}y`\n}\n\n/** One category folder row. */\nexport function CategoryRow({ node, t, onToggle }: {\n node: CategoryNode\n t: T\n onToggle: () => void\n}) {\n const count = node.workspaces.length\n return (\n \n \n \n \n \n {node.expanded ? : }\n \n {node.label}\n {count}\n \n )\n}\n\n/** One workspace folder row inside a category. */\nexport function WorkspaceRow({ node, t, onToggle, onNewSession, onRename, onDelete }: {\n node: WorkspaceGroupNode\n t: T\n onToggle: () => void\n onNewSession: () => void\n onRename: () => void\n onDelete: () => void\n}) {\n const [menuOpen, setMenuOpen] = useState(false)\n const menuItems = [\n { id: 'rename', label: t('workspace.rename'), icon: },\n { id: 'delete', label: t('workspace.delete'), icon: , danger: true },\n ]\n return (\n \n \n \n \n \n {node.expanded ? : }\n \n {node.label}\n \n { setMenuOpen(false) }}\n items={menuItems}\n onSelect={(id) => {\n setMenuOpen(false)\n if (id === 'rename') onRename()\n if (id === 'delete') onDelete()\n }}\n portal\n closeOnPointerLeave\n anchor={(\n { e.stopPropagation(); setMenuOpen(v => !v) }}\n >\n \n \n )}\n />\n { e.stopPropagation(); onNewSession() }}\n >\n \n \n \n \n )\n}\n\n/** One session leaf row. */\nexport function SessionRow({ node, currentId, now, t, onOpen, onRename, onFork, onArchive }: {\n node: SessionNode\n currentId: string | undefined\n now: number\n t: T\n onOpen: (id: SessionNode['id']) => void\n onRename: (id: SessionNode['id'], currentTitle: string) => void\n onFork: (id: SessionNode['id']) => void\n onArchive: (id: SessionNode['id']) => void\n}) {\n const selected = node.id === currentId\n const [menuOpen, setMenuOpen] = useState(false)\n const showStatus = true\n const menuItems = [\n { id: 'rename', label: t('session.rename'), icon: },\n { id: 'fork', label: t('session.fork'), icon: },\n { id: 'archive', label: t('session.archive'), icon: },\n ]\n return (\n { onOpen(node.id) }}\n >\n \n {showStatus && }\n \n {node.title}\n {!node.blank && {relativeTimeLabel(node.updatedAt, now)}}\n {node.snippet !== undefined && (\n {node.snippet}\n )}\n {!node.blank && (\n \n { setMenuOpen(false) }}\n items={menuItems}\n onSelect={(id) => {\n setMenuOpen(false)\n if (id === 'rename') onRename(node.id, node.title)\n if (id === 'fork') onFork(node.id)\n if (id === 'archive') onArchive(node.id)\n }}\n portal\n closeOnPointerLeave\n anchor={(\n { e.stopPropagation(); setMenuOpen(v => !v) }}\n >\n \n \n )}\n />\n \n )}\n \n )\n}\n\nexport type { T }\n","/**\n * The workspace-groups browsing region filling the sidebar shell's\n * `sidebar.workspaces` hole: section header (title + right-aligned search +\n * add workspace), the three-level tree (category → workspace → session),\n * and the workspace/session dialogs. Wide state renders the full browser;\n * rail state renders the two region icons (search / add workspace) as 36px\n * controls on the shell's shared rail entry path, each requesting expansion\n * through the owner share.\n *\n * Data: workspaces/sessions via the framework global hooks; grouping config\n * via the host half's `/workspace-groups/config` route (refetched on mount).\n */\nimport { useEffect, useMemo, useRef, useState } from 'react'\nimport {\n Button,\n IconCloseFill14,\n IconProjectAddOutline16,\n IconSearchOutline16,\n Modal,\n Tooltip,\n} from '@deepseek-ai/dsh-client-ui-primitives'\nimport type { SessionId, SessionListState, SessionSearchResultItem, WorkspaceId, WorkspaceView } from '@deepseek-ai/dsh-client-runtime/client'\nimport { classify } from '../core/matcher.ts'\nimport type { GroupsConfig } from '../core/types.ts'\nimport type { GroupsBrowserProps } from './contract.ts'\nimport { deriveGroups, deriveSearchGroups, deriveSearchMatches, type CategoryNode } from './tree.ts'\nimport { CategoryRow, SessionRow, WorkspaceRow } from './rows.tsx'\nimport css from './styles.css?inline'\n\nconst SEARCH_DEBOUNCE_MS = 250\nconst SEARCH_QUERY_MAX_CODE_UNITS = 500\n\nfunction sanitizeSearchQuery(value: string): string {\n const withoutNul = value.replaceAll('\\0', '')\n if (withoutNul.length <= SEARCH_QUERY_MAX_CODE_UNITS) return withoutNul\n return withoutNul.slice(0, SEARCH_QUERY_MAX_CODE_UNITS)\n}\n\n/** Immutable membership toggle for the local expand-all array. */\nfunction toggled(list: readonly string[], key: string): string[] {\n return list.includes(key) ? list.filter(k => k !== key) : [...list, key]\n}\n\ninterface RemoteSearchState {\n query: string\n status: 'idle' | 'loading' | 'ready' | 'error'\n items: readonly SessionSearchResultItem[]\n hasMore: boolean\n}\n\n/** Minimal fetch of the grouping config (host route; no-cache revalidation). */\nasync function fetchGroupsConfig(): Promise {\n const response = await fetch('/workspace-groups/config', { cache: 'no-cache' })\n if (!response.ok) throw new Error(`config request failed: ${response.status}`)\n const body = (await response.json()) as GroupsConfig\n return Array.isArray(body.categories) ? body : { categories: [] }\n}\n\n/**\n * Render the browsing region.\n * @param props - composed slot props (shell owner share + store + injected actions).\n * @returns the region element tree.\n */\nexport function GroupsBrowser({\n wide,\n expandSidebar,\n useSessions,\n useWorkspaces,\n useStore,\n actions,\n startSession,\n open,\n renameSession,\n forkSession,\n renameWorkspace,\n deleteWorkspace,\n insertWorkspaceBefore,\n archiveSession,\n insertSessionBefore,\n createWorkspace,\n pickDirectory,\n searchSessions,\n searchResultLimit,\n t,\n}: GroupsBrowserProps) {\n // Inject the stylesheet once per fiber; dispose removes it (HMR safe).\n useEffect(() => {\n const style = document.createElement('style')\n style.setAttribute('data-plugin', 'dsh-workspace-groups')\n style.textContent = css\n document.head.append(style)\n return () => { style.remove() }\n }, [])\n\n // Grouping config from the host route.\n const [config, setConfig] = useState({ categories: [] })\n const [configError, setConfigError] = useState(null)\n const reloadConfig = () => {\n setConfigError(null)\n fetchGroupsConfig().then(setConfig).catch((reason: unknown) => {\n setConfigError(reason instanceof Error ? reason.message : String(reason))\n })\n }\n useEffect(() => { reloadConfig() }, [])\n\n const workspaces = useWorkspaces(state => state.items)\n const workspacePhase = useWorkspaces(state => state.phase)\n const archivedSessionIds = useWorkspaces(state => state.archivedSessionIds)\n const categoryExpansion = useStore(s => s.categoryExpansion)\n const workspaceExpansion = useStore(s => s.workspaceExpansion)\n\n const list = useSessions(s => s)\n const current = list.current\n const currentWorkspaceKey = current === undefined\n ? undefined\n : (workspaces.find(w => w.sessionIds.includes(current as SessionId))?.workspaceId as string | undefined)\n\n // Auto-expand the category + workspace containing the current session, but\n // ONLY when the user has never touched that key (`Object.hasOwn`): a\n // present `false` is a deliberate collapse and must stay folded. Without\n // this guard the effect re-expands the just-collapsed current category on\n // every store change (the reported \"cannot collapse\" bug).\n useEffect(() => {\n if (current === undefined || currentWorkspaceKey === undefined) return\n const category = categoriesForCurrent(config, workspaces, current)\n if (category !== undefined && !Object.hasOwn(categoryExpansion, category)) {\n actions.setCategoryExpanded(category, true)\n }\n if (!Object.hasOwn(workspaceExpansion, currentWorkspaceKey)) {\n actions.setWorkspaceExpanded(currentWorkspaceKey, true)\n }\n }, [current, currentWorkspaceKey, config, workspaces, categoryExpansion, workspaceExpansion, actions])\n\n // Drop expansion keys that no longer exist (config edits / workspace deletion).\n useEffect(() => {\n if (workspacePhase !== 'ready') return\n actions.retainKeys(\n config.categories.map(c => c.name),\n workspaces.map(w => w.workspaceId as string),\n )\n }, [actions, config, workspacePhase, workspaces])\n\n const [query, setQuery] = useState('')\n const [searchExpanded, setSearchExpanded] = useState(false)\n const normalizedQuery = sanitizeSearchQuery(query).trim()\n const [remoteSearch, setRemoteSearch] = useState({\n query: '', status: 'idle', items: [], hasMore: false,\n })\n const searchInput = useRef(null)\n const searchRoot = useRef(null)\n\n // Search debounce + abort, same posture as the official browser.\n useEffect(() => {\n if (normalizedQuery === '') {\n setRemoteSearch({ query: '', status: 'idle', items: [], hasMore: false })\n return\n }\n const controller = new AbortController()\n setRemoteSearch({ query: normalizedQuery, status: 'loading', items: [], hasMore: false })\n const timer = window.setTimeout(() => {\n searchSessions(normalizedQuery, controller.signal).then((result) => {\n if (controller.signal.aborted) return\n setRemoteSearch({ query: normalizedQuery, status: 'ready', items: result.items, hasMore: result.hasMore })\n }).catch(() => {\n if (controller.signal.aborted) return\n setRemoteSearch({ query: normalizedQuery, status: 'error', items: [], hasMore: false })\n })\n }, SEARCH_DEBOUNCE_MS)\n return () => {\n window.clearTimeout(timer)\n controller.abort()\n }\n }, [normalizedQuery, searchSessions])\n\n // Outside-click dismissal of the search box.\n useEffect(() => {\n if (!wide || !searchExpanded) return\n const onClick = (event: MouseEvent): void => {\n if (!(event.target instanceof Node) || searchRoot.current?.contains(event.target) === true) return\n searchInput.current?.blur()\n if (normalizedQuery !== '') return\n setSearchExpanded(false)\n }\n document.addEventListener('click', onClick)\n return () => { document.removeEventListener('click', onClick) }\n }, [normalizedQuery, wide, searchExpanded])\n\n const expandedCategories = useMemo(\n () => Object.entries(categoryExpansion).filter(([, v]) => v).map(([k]) => k),\n [categoryExpansion],\n )\n const expandedWorkspaces = useMemo(\n () => Object.entries(workspaceExpansion).filter(([, v]) => v).map(([k]) => k),\n [workspaceExpansion],\n )\n const groups = useMemo(\n () => deriveGroups(list, workspaces, archivedSessionIds, config, {\n expandedCategories,\n expandedWorkspaces,\n }),\n [list, workspaces, archivedSessionIds, config, expandedCategories, expandedWorkspaces],\n )\n\n // Add workspace flow: self-contained (no directory-flow hole dependency).\n const [adding, setAdding] = useState(false)\n const [addError, setAddError] = useState(null)\n const [addErrorOpen, setAddErrorOpen] = useState(false)\n const addWorkspace = async (): Promise => {\n if (adding) return\n setAdding(true)\n setAddError(null)\n setAddErrorOpen(false)\n try {\n const path = await pickDirectory()\n if (path === null) return // cancelled\n const workspace = await createWorkspace({ path })\n startSession(workspace.workspaceId)\n } catch (reason) {\n const message = reason instanceof Error ? reason.message : String(reason)\n setAddError(message)\n setAddErrorOpen(true)\n } finally {\n setAdding(false)\n }\n }\n\n // Workspace rename dialog.\n const [renameTarget, setRenameTarget] = useState<{ workspaceId: WorkspaceId; currentTitle: string } | null>(null)\n const [renameDraft, setRenameDraft] = useState('')\n const [renaming, setRenaming] = useState(false)\n const [renameError, setRenameError] = useState(null)\n const renameTrimmed = renameDraft.trim()\n const renameDuplicate = renameTarget !== null && renameTrimmed !== '' && renameTrimmed !== renameTarget.currentTitle\n && workspaces.some(w => w.title === renameTrimmed)\n const renameBlocked = renaming || renameTrimmed === '' || renameTarget === null\n || renameTrimmed === renameTarget.currentTitle || renameDuplicate\n const confirmRename = () => {\n if (renameBlocked || renameTarget === null) return\n setRenaming(true)\n setRenameError(null)\n renameWorkspace(renameTarget.workspaceId, renameTrimmed).then(() => {\n setRenaming(false)\n setRenameTarget(null)\n }).catch((reason: unknown) => {\n setRenaming(false)\n setRenameError(reason instanceof Error ? reason.message : String(reason))\n })\n }\n\n // Workspace delete dialog.\n const [deleteTarget, setDeleteTarget] = useState<{ workspaceId: WorkspaceId; title: string } | null>(null)\n const [deleting, setDeleting] = useState(false)\n const [deleteError, setDeleteError] = useState(null)\n const confirmDelete = () => {\n if (deleting || deleteTarget === null) return\n setDeleting(true)\n setDeleteError(null)\n deleteWorkspace(deleteTarget.workspaceId).then(() => {\n setDeleting(false)\n setDeleteTarget(null)\n }).catch((reason: unknown) => {\n setDeleting(false)\n setDeleteError(reason instanceof Error ? reason.message : String(reason))\n })\n }\n\n // Session rename dialog.\n const [sessionRenameTarget, setSessionRenameTarget] = useState<{ sessionId: SessionId; currentTitle: string } | null>(null)\n const [sessionRenameDraft, setSessionRenameDraft] = useState('')\n const [sessionRenaming, setSessionRenaming] = useState(false)\n const [sessionRenameError, setSessionRenameError] = useState(null)\n const sessionRenameTrimmed = sessionRenameDraft.trim()\n const sessionRenameBlocked = sessionRenaming || sessionRenameTrimmed === '' || sessionRenameTarget === null\n const confirmSessionRename = () => {\n if (sessionRenameBlocked || sessionRenameTarget === null) return\n setSessionRenaming(true)\n setSessionRenameError(null)\n renameSession(sessionRenameTarget.sessionId, sessionRenameTrimmed).then(() => {\n setSessionRenaming(false)\n setSessionRenameTarget(null)\n }).catch((reason: unknown) => {\n setSessionRenaming(false)\n setSessionRenameError(reason instanceof Error ? reason.message : String(reason))\n })\n }\n const onSessionRename = (sessionId: SessionId, currentTitle: string) => {\n setSessionRenameTarget({ sessionId, currentTitle })\n setSessionRenameDraft(currentTitle)\n setSessionRenameError(null)\n }\n\n const onSessionArchive = (sessionId: SessionId) => {\n archiveSession(sessionId).catch((reason: unknown) => {\n console.warn('session archive rejected:', reason)\n })\n }\n\n const now = Date.now()\n\n return (\n
\n
\n {wide && {t('section.workspaces')}}\n {wide && (\n
\n { setSearchExpanded(true) }}\n >\n \n \n {searchExpanded && (\n { setQuery(sanitizeSearchQuery(e.target.value)) }}\n onKeyDown={(e) => {\n if (e.key !== 'Escape') return\n setQuery('')\n setSearchExpanded(false)\n }}\n />\n )}\n {searchExpanded && (\n {\n e.stopPropagation()\n setQuery('')\n setSearchExpanded(false)\n }}\n >\n \n \n )}\n
\n )}\n \n \n \n \n \n
\n\n {!wide && (\n
\n \n { setSearchExpanded(true); expandSidebar() }}\n >\n \n \n \n
\n )}\n\n
\n {configError !== null && (\n
{t('configUnavailable')}
\n )}\n {wide && normalizedQuery !== '' ? (\n \n ) : (\n
\n {groups.length === 0 && (\n
{workspacePhase === 'ready' ? t('empty.noWorkspaces') : t('empty.none')}
\n )}\n {groups.map((category) => (\n { actions.setCategoryExpanded(category.key, !category.expanded) }}\n onToggleWorkspace={(key) => { actions.setWorkspaceExpanded(key, !workspaceExpansion[key]) }}\n onNewSession={startSession}\n onOpen={open}\n onRenameRequest={(workspaceId, title) => {\n setRenameTarget({ workspaceId, currentTitle: title })\n setRenameDraft(title)\n setRenameError(null)\n }}\n onDeleteRequest={(workspaceId, title) => {\n setDeleteTarget({ workspaceId, title })\n setDeleteError(null)\n }}\n onSessionRename={onSessionRename}\n onSessionArchive={onSessionArchive}\n onFork={forkSession}\n />\n ))}\n
\n )}\n
\n\n {/* Workspace rename dialog */}\n { setRenameTarget(null) }}\n closeLabel={t('close')}\n title={t('workspace.renameTitle')}\n footer={(\n <>\n \n \n \n )}\n >\n { setRenameDraft(e.target.value) }}\n onKeyDown={(e) => { if (e.key === \"Enter\") confirmRename() }}\n />\n {renameError !== null &&
{renameError}
}\n \n\n {/* Workspace delete dialog */}\n { setDeleteTarget(null) }}\n closeLabel={t('close')}\n title={t('workspace.deleteTitle')}\n footer={(\n <>\n \n \n \n )}\n >\n
{t('workspace.deleteConfirm')}
\n {deleteError !== null &&
{deleteError}
}\n \n\n {/* Session rename dialog */}\n { setSessionRenameTarget(null) }}\n closeLabel={t('close')}\n title={t('session.renameTitle')}\n footer={(\n <>\n \n \n \n )}\n >\n { setSessionRenameDraft(e.target.value) }}\n onKeyDown={(e) => { if (e.key === \"Enter\") confirmSessionRename() }}\n />\n {sessionRenameError !== null &&
{sessionRenameError}
}\n \n\n {/* Add workspace error dialog */}\n { setAddErrorOpen(false) }}\n closeLabel={t('close')}\n title={t('workspace.addErrorTitle')}\n footer={(\n <>\n \n \n \n )}\n >\n
{addError}
\n \n
\n )\n}\n\n/** Resolve the category label containing the current session (auto-expand helper). */\nfunction categoriesForCurrent(\n config: GroupsConfig,\n workspaces: readonly WorkspaceView[],\n current: SessionId,\n): string | undefined {\n const workspace = workspaces.find(w => w.sessionIds.includes(current))\n if (workspace === undefined) return undefined\n return classify(config.categories, workspace.path, workspace.title)?.name\n}\n\n/** One category section: header row + expanded workspace folders. */\nfunction CategorySection({ category, current, now, t, onToggleCategory, onToggleWorkspace, onNewSession, onOpen, onRenameRequest, onDeleteRequest, onSessionRename, onSessionArchive, onFork }: {\n category: CategoryNode\n current: SessionId | undefined\n now: number\n t: GroupsBrowserProps['t']\n onToggleCategory: () => void\n onToggleWorkspace: (key: string) => void\n onNewSession: (workspaceId?: WorkspaceId) => void\n onOpen: (sessionId: SessionId) => void\n onRenameRequest: (workspaceId: WorkspaceId, currentTitle: string) => void\n onDeleteRequest: (workspaceId: WorkspaceId, title: string) => void\n onSessionRename: (sessionId: SessionId, currentTitle: string) => void\n onSessionArchive: (sessionId: SessionId) => void\n onFork: (sessionId: SessionId) => void\n}) {\n return (\n
\n \n {category.expanded && (\n
\n {category.workspaces.map((workspace) => (\n
\n { onToggleWorkspace(workspace.workspaceId as string) }}\n onNewSession={() => { onNewSession(workspace.workspaceId) }}\n onRename={() => { onRenameRequest(workspace.workspaceId, workspace.label) }}\n onDelete={() => { onDeleteRequest(workspace.workspaceId, workspace.label) }}\n />\n {workspace.expanded && workspace.sessions.map((session) => (\n \n ))}\n
\n ))}\n
\n )}\n
\n )\n}\n\n/**\n * Search body rendered as a three-level tree pruned to matched branches:\n * 分类文件夹 → 项目文件夹 → 命中会话行. Reuses the same row components as\n * the idle tree, so search keeps the same folder hierarchy the user is used to.\n */\nfunction SearchBody({ list, workspaces, config, archivedSessionIds, query, remote, resultLimit, current, now, open, t }: {\n list: SessionListState\n workspaces: readonly WorkspaceView[]\n config: GroupsConfig\n archivedSessionIds: readonly SessionId[]\n query: string\n remote: RemoteSearchState\n resultLimit: number\n current: SessionId | undefined\n now: number\n open: (sessionId: SessionId) => void\n t: GroupsBrowserProps['t']\n}) {\n const currentRemote = remote.query === query ? remote : { query, status: 'loading' as const, items: [], hasMore: false }\n const matches = useMemo(\n () => deriveSearchMatches(list, workspaces, config, query, archivedSessionIds, currentRemote, resultLimit),\n [list, workspaces, config, query, archivedSessionIds, currentRemote, resultLimit],\n )\n const groups = useMemo(\n () => deriveSearchGroups(list, workspaces, config, matches.matchedIds, archivedSessionIds, matches.snippetsBySession),\n [list, workspaces, config, matches, archivedSessionIds],\n )\n const pending = currentRemote.status === 'loading'\n const failed = currentRemote.status === 'error'\n return (\n
\n {groups.map((category) => (\n
\n {}} />\n
\n {category.workspaces.map((workspace) => (\n
\n {}}\n onNewSession={() => {}}\n onRename={() => {}}\n onDelete={() => {}}\n />\n
\n {workspace.sessions.map((session) => (\n {}}\n onFork={() => {}}\n onArchive={() => {}}\n />\n ))}\n
\n
\n ))}\n
\n
\n ))}\n {pending &&
{t('search.pending')}
}\n {failed &&
{t('search.unavailable')}
}\n {!pending && groups.length === 0 && (\n
{t('search.noMatches')}
\n )}\n {matches.hasMore && (\n
{t('search.hasMore')}
\n )}\n
\n )\n}\n","/**\n * Locale dictionaries for the workspace-groups browser. The namespace is\n * `workspaceGroups` (independent from ui-workspace's `workspace` namespace).\n */\nimport type { LocaleDictOf } from '@deepseek-ai/dsh-client-ui-slots'\n\n/** Dictionary keys of the workspaceGroups namespace (single source of truth). */\nexport type WorkspaceGroupsKey =\n | 'section.workspaces'\n | 'section.sessions'\n | 'search'\n | 'search.placeholder'\n | 'search.clear'\n | 'search.noMatches'\n | 'search.unavailable'\n | 'search.pending'\n | 'search.hasMore'\n | 'search.results.aria'\n | 'workspace.add'\n | 'workspace.addBusy'\n | 'workspace.addError'\n | 'workspace.addErrorTitle'\n | 'workspace.rename'\n | 'workspace.delete'\n | 'workspace.deleteTitle'\n | 'workspace.deleteConfirm'\n | 'workspace.deleteCancel'\n | 'workspace.renaming'\n | 'workspace.deleting'\n | 'workspace.renameTitle'\n | 'workspace.renamePlaceholder'\n | 'workspace.renameConfirm'\n | 'workspace.renameCancel'\n | 'session.new'\n | 'session.rename'\n | 'session.archive'\n | 'session.fork'\n | 'session.renameTitle'\n | 'session.renamePlaceholder'\n | 'session.renameConfirm'\n | 'session.renameCancel'\n | 'session.renaming'\n | 'uncategorized'\n | 'empty.none'\n | 'empty.noWorkspaces'\n | 'close'\n | 'cancel'\n | 'confirm'\n | 'retry'\n | 'configUnavailable'\n | 'collapse'\n | 'expandMore'\n | 'newSession'\n\nexport type WorkspaceGroupsDict = LocaleDictOf<'workspaceGroups'>\n\n/** Simplified Chinese dictionary. */\nexport const zh: WorkspaceGroupsDict = {\n 'section.workspaces': '工作区',\n 'section.sessions': '会话',\n search: '搜索',\n 'search.placeholder': '搜索会话…',\n 'search.clear': '清除',\n 'search.noMatches': '没有匹配的会话',\n 'search.unavailable': '搜索不可用',\n 'search.pending': '搜索中…',\n 'search.hasMore': '结果过多,请细化关键词',\n 'search.results.aria': '搜索结果',\n 'workspace.add': '添加工作区',\n 'workspace.addBusy': '正在添加…',\n 'workspace.addError': '添加失败',\n 'workspace.addErrorTitle': '无法添加工作区',\n 'workspace.rename': '重命名',\n 'workspace.delete': '删除',\n 'workspace.deleteTitle': '删除工作区',\n 'workspace.deleteConfirm': '仅删除注册信息,目录与会话日志保留。确定删除?',\n 'workspace.deleteCancel': '取消删除',\n 'workspace.renaming': '重命名中…',\n 'workspace.deleting': '删除中…',\n 'workspace.renameTitle': '重命名工作区',\n 'workspace.renamePlaceholder': '工作区名称',\n 'workspace.renameConfirm': '重命名',\n 'workspace.renameCancel': '取消',\n 'session.new': '新建会话',\n 'session.rename': '重命名会话',\n 'session.archive': '归档',\n 'session.fork': '派生',\n 'session.renameTitle': '重命名会话',\n 'session.renamePlaceholder': '会话名称',\n 'session.renameConfirm': '重命名',\n 'session.renameCancel': '取消',\n 'session.renaming': '重命名中…',\n uncategorized: '未分类',\n 'empty.none': '暂无内容',\n 'empty.noWorkspaces': '还没有工作区',\n close: '关闭',\n cancel: '取消',\n confirm: '确定',\n retry: '重试',\n configUnavailable: '分组配置不可用',\n collapse: '折叠',\n expandMore: '展开全部',\n newSession: '新建会话',\n}\n\n/** English dictionary. */\nexport const en: WorkspaceGroupsDict = {\n 'section.workspaces': 'Workspaces',\n 'section.sessions': 'Sessions',\n search: 'Search',\n 'search.placeholder': 'Search sessions…',\n 'search.clear': 'Clear',\n 'search.noMatches': 'No matching sessions',\n 'search.unavailable': 'Search unavailable',\n 'search.pending': 'Searching…',\n 'search.hasMore': 'Too many results — refine the query',\n 'search.results.aria': 'Search results',\n 'workspace.add': 'Add workspace',\n 'workspace.addBusy': 'Adding…',\n 'workspace.addError': 'Add failed',\n 'workspace.addErrorTitle': 'Could not add workspace',\n 'workspace.rename': 'Rename',\n 'workspace.delete': 'Delete',\n 'workspace.deleteTitle': 'Delete workspace',\n 'workspace.deleteConfirm': 'Only the registration is removed; the directory and session logs stay. Delete?',\n 'workspace.deleteCancel': 'Cancel delete',\n 'workspace.renaming': 'Renaming…',\n 'workspace.deleting': 'Deleting…',\n 'workspace.renameTitle': 'Rename workspace',\n 'workspace.renamePlaceholder': 'Workspace name',\n 'workspace.renameConfirm': 'Rename',\n 'workspace.renameCancel': 'Cancel',\n 'session.new': 'New Session',\n 'session.rename': 'Rename session',\n 'session.archive': 'Archive',\n 'session.fork': 'Fork',\n 'session.renameTitle': 'Rename session',\n 'session.renamePlaceholder': 'Session name',\n 'session.renameConfirm': 'Rename',\n 'session.renameCancel': 'Cancel',\n 'session.renaming': 'Renaming…',\n uncategorized: 'Uncategorized',\n 'empty.none': 'Nothing here',\n 'empty.noWorkspaces': 'No workspaces yet',\n close: 'Close',\n cancel: 'Cancel',\n confirm: 'Confirm',\n retry: 'Retry',\n configUnavailable: 'Grouping config unavailable',\n collapse: 'Collapse',\n expandMore: 'Show all',\n newSession: 'New Session',\n}\n","/**\n * dsh-workspace-groups client half: registers the three-level grouped\n * workspace browser into the `sidebar.workspaces` slot, shadowing the\n * official ui-workspace browser.\n *\n * Shadowing mechanics (SlotCore semantics):\n * - `sidebar.workspaces` is a `single`/`root` slot. The official browser\n * registers at priority 0; this entry registers at priority -1, and the\n * single-cell shadow rule makes the LOWEST priority the winner — the\n * sidebar renders this browser instead of the official one.\n * - This entry deliberately declares NO child slots: the official entry\n * already declared `sidebar.workspaces.directoryFlow` (a second declaration\n * of an occupied child key throws). Add Workspace is therefore self-\n * contained — `ctx.workspaces.pickDirectory()` + `create()`, no hole.\n */\nimport type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client'\nimport type { ConnectionHandle } from '@deepseek-ai/dsh-client-connection/client'\n// Type-only: pulls the locale plugin's Context merge (ctx.locale).\nimport type {} from '@deepseek-ai/dsh-client-locale/client'\nimport type { GroupsBrowserInjected } from './contract.ts'\nimport { createGroupsViewStore } from './stores.ts'\nimport { GroupsBrowser } from './GroupsBrowser.tsx'\nimport { en, zh, type WorkspaceGroupsKey } from './locales.ts'\n\ndeclare module '@deepseek-ai/dsh-client-ui-slots' {\n interface LocaleNamespaceMap {\n /** The workspace-groups browsing region copy. */\n workspaceGroups: WorkspaceGroupsKey\n }\n}\n\n/** Dictionary namespace owned by this plugin. */\nconst NS = 'workspaceGroups'\n\n/** Required services (cordis fiber inject). */\nexport const inject = ['slots', 'sessions', 'workspaces', 'locale', 'connection']\n\n/**\n * Register the grouped browser once the sidebar slot declaration is on the\n * ledger. Inject factory returns plain callbacks; data reads use the\n * framework's global hooks.\n * @param ctx - client root context.\n */\nexport function apply(ctx: ClientContext): void {\n ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'dsh-workspace-groups: dictionaries')\n\n const searchSessions: GroupsBrowserInjected['searchSessions'] = async (query, signal) => {\n const result = await ctx.sessions.search(query, signal)\n if (!result.ok) throw new Error(result.error.message)\n return result.value\n }\n\n const browserInjected = (): GroupsBrowserInjected => ({\n startSession: (workspaceId) => { ctx.workspaces.startSession(workspaceId) },\n open: (sessionId) => { ctx.sessions.open(sessionId) },\n searchSessions,\n searchResultLimit: ctx.sessions.searchResultLimit,\n renameSession: async (sessionId, title) => {\n const session = ctx.sessions.binding(sessionId)?.session\n if (session === undefined) throw new Error(`unknown session \"${sessionId}\"`)\n const result = await session.rename(title)\n if (!result.ok) throw new Error(result.error.message)\n },\n forkSession: (sessionId) => {\n ctx.sessions.fork({ sessionId, increaseTitle: true })\n .then((childId) => { ctx.sessions.open(childId) })\n .catch(() => {})\n },\n renameWorkspace: async (workspaceId, title) => { await ctx.workspaces.rename(workspaceId, title) },\n deleteWorkspace: async (workspaceId) => { await ctx.workspaces.delete(workspaceId) },\n insertWorkspaceBefore: async (workspaceId, beforeWorkspaceId) => {\n await ctx.workspaces.insertBefore(workspaceId, beforeWorkspaceId)\n },\n archiveSession: async (sessionId) => { await ctx.workspaces.archiveSession(sessionId) },\n insertSessionBefore: async (workspaceId, sessionId, beforeSessionId) => {\n await ctx.workspaces.insertSessionBefore(workspaceId, sessionId, beforeSessionId)\n },\n createWorkspace: input => ctx.workspaces.create(input),\n pickDirectory: () => ctx.workspaces.pickDirectory(),\n hooks: {\n hostDescription: (ctx.get('connection') as ConnectionHandle).hostDescription,\n },\n })\n\n // priority: -1 — lower than the official browser's default 0, so the\n // single-slot shadow rule elects this entry. No children declaration: the\n // official entry already owns `sidebar.workspaces.directoryFlow`.\n ctx.slots.inject('sidebar.workspaces', () => ctx.slots.register(\n {\n name: 'sidebar.workspaces',\n priority: -1,\n store: createGroupsViewStore(),\n inject: browserInjected,\n locale: NS,\n registrant: 'dsh-workspace-groups',\n },\n GroupsBrowser,\n ))\n}\n"],"mappings":";;;;;;;;;;;;EAsBA,SAAgB,wBAAwB,OAAwB,KAAa,UAAyB;GACpG,MAAM,kBAAkB,OAAO;EACjC;;EAGA,SAAgB,yBAAyB,OAAwB,KAAa,UAAyB;GACrG,MAAM,mBAAmB,OAAO;EAClC;;EAGA,SAAgB,eACd,OACA,cACA,eACM;GACN,MAAM,oBAAoB,OAAO,YAC/B,OAAO,QAAQ,MAAM,iBAAiB,CAAC,CAAC,QAAQ,CAAC,SAAS,aAAa,SAAS,GAAG,CAAC,CACtF;GACA,MAAM,qBAAqB,OAAO,YAChC,OAAO,QAAQ,MAAM,kBAAkB,CAAC,CAAC,QAAQ,CAAC,SAAS,cAAc,SAAS,GAAG,CAAC,CACxF;EACF;;;;;;;;;;;;;;;;;;;ECZA,SAAgB,wBAA+E;GAC7F,QAAA,GAAOA,uCAAAA,YAAAA,CAAY;IACjB,aAAa;KAAE,mBAAmB,CAAC;KAAG,oBAAoB,CAAC;IAAE;IAC7D,SAAS;IACT,SAAS;KACP,qBAAqB;KACrB,sBAAsB;KACtB,YAAY;IACd;GACF,CAAC;EACH;;;;ECRA,MAAa,sBAAsB;;EAGnC,SAAgB,cAAc,MAAsB;GAClD,OAAO,KAAK,QAAQ,WAAW,EAAE;EACnC;;;;;;;;;;EC7BA,SAAS,YAAY,MAAiB,MAAc,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AC,CACjD,YAAY,CAAC,CAAC;IACnB;IACA,iBAAiB,OAAO,aAAa,UAAU;KAAE,MAAM,IAAI,WAAW,OAAO,aAAa,KAAK;IAAE;IACjG,iBAAiB,OAAO,gBAAgB;KAAE,MAAM,IAAI,WAAW,OAAO,WAAW;IAAE;IACnF,uBAAuB,OAAO,aAAa,sBAAsB;KAC/D,MAAM,IAAI,WAAW,aAAa,aAAa,iBAAiB;IAClE;IACA,gBAAgB,OAAO,cAAc;KAAE,MAAM,IAAI,WAAW,eAAe,SAAS;IAAE;IACtF,qBAAqB,OAAO,aAAa,WAAW,oBAAoB;KACtE,MAAM,IAAI,WAAW,oBAAoB,aAAa,WAAW,eAAe;IAClF;IACA,kBAAiB,UAAS,IAAI,WAAW,OAAO,KAAK;IACrD,qBAAqB,IAAI,WAAW,cAAc;IAClD,OAAO,EACL,iBAAkB,IAAI,IAAI,YAAY,CAAC,CAAsB,gBAC/D;GACF;GAKA,IAAI,MAAM,OAAO,4BAA4B,IAAI,MAAM,SACrD;IACE,MAAM;IACN,UAAU;IACV,OAAO,sBAAsB;IAC7B,QAAQ;IACR,QAAQ;IACR,YAAY;GACd,GACA,aACF,CAAC;EACH"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js new file mode 100644 index 0000000..e235a9b --- /dev/null +++ b/lib/index.js @@ -0,0 +1,2558 @@ +import { readFile } from "node:fs/promises"; +import { resolve } from "node:path"; +import { homedir } from "node:os"; +//#region node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/dist/js-yaml.mjs +function getDefaultExportFromCjs(x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; +} +var jsYaml = {}; +var loader = {}; +var common = {}; +var hasRequiredCommon; +function requireCommon() { + if (hasRequiredCommon) return common; + hasRequiredCommon = 1; + function isNothing(subject) { + return typeof subject === "undefined" || subject === null; + } + function isObject(subject) { + return typeof subject === "object" && subject !== null; + } + function toArray(sequence) { + if (Array.isArray(sequence)) return sequence; + else if (isNothing(sequence)) return []; + return [sequence]; + } + function extend(target, source) { + if (source) { + const sourceKeys = Object.keys(source); + for (let index = 0, length = sourceKeys.length; index < length; index += 1) { + const key = sourceKeys[index]; + target[key] = source[key]; + } + } + return target; + } + function repeat(string, count) { + let result = ""; + for (let cycle = 0; cycle < count; cycle += 1) result += string; + return result; + } + function isNegativeZero(number) { + return number === 0 && Number.NEGATIVE_INFINITY === 1 / number; + } + common.isNothing = isNothing; + common.isObject = isObject; + common.toArray = toArray; + common.repeat = repeat; + common.isNegativeZero = isNegativeZero; + common.extend = extend; + return common; +} +var exception; +var hasRequiredException; +function requireException() { + if (hasRequiredException) return exception; + hasRequiredException = 1; + function formatError(exception2, compact) { + let where = ""; + const message = exception2.reason || "(unknown reason)"; + if (!exception2.mark) return message; + if (exception2.mark.name) where += "in \"" + exception2.mark.name + "\" "; + where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")"; + if (!compact && exception2.mark.snippet) where += "\n\n" + exception2.mark.snippet; + return message + " " + where; + } + function YAMLException2(reason, mark) { + Error.call(this); + this.name = "YAMLException"; + this.reason = reason; + this.mark = mark; + this.message = formatError(this, false); + if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor); + else this.stack = (/* @__PURE__ */ new Error()).stack || ""; + } + YAMLException2.prototype = Object.create(Error.prototype); + YAMLException2.prototype.constructor = YAMLException2; + YAMLException2.prototype.toString = function toString(compact) { + return this.name + ": " + formatError(this, compact); + }; + exception = YAMLException2; + return exception; +} +var snippet; +var hasRequiredSnippet; +function requireSnippet() { + if (hasRequiredSnippet) return snippet; + hasRequiredSnippet = 1; + const common2 = requireCommon(); + function getLine(buffer, lineStart, lineEnd, position, maxLineLength) { + let head = ""; + let tail = ""; + const maxHalfLength = Math.floor(maxLineLength / 2) - 1; + if (position - lineStart > maxHalfLength) { + head = " ... "; + lineStart = position - maxHalfLength + head.length; + } + if (lineEnd - position > maxHalfLength) { + tail = " ..."; + lineEnd = position + maxHalfLength - tail.length; + } + return { + str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, "→") + tail, + pos: position - lineStart + head.length + }; + } + function padStart(string, max) { + return common2.repeat(" ", max - string.length) + string; + } + function makeSnippet(mark, options) { + options = Object.create(options || null); + if (!mark.buffer) return null; + if (!options.maxLength) options.maxLength = 79; + if (typeof options.indent !== "number") options.indent = 1; + if (typeof options.linesBefore !== "number") options.linesBefore = 3; + if (typeof options.linesAfter !== "number") options.linesAfter = 2; + const re = /\r?\n|\r|\0/g; + const lineStarts = [0]; + const lineEnds = []; + let match; + let foundLineNo = -1; + while (match = re.exec(mark.buffer)) { + lineEnds.push(match.index); + lineStarts.push(match.index + match[0].length); + if (mark.position <= match.index && foundLineNo < 0) foundLineNo = lineStarts.length - 2; + } + if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; + let result = ""; + const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; + const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); + for (let i = 1; i <= options.linesBefore; i++) { + if (foundLineNo - i < 0) break; + const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength); + result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + "\n" + result; + } + const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); + result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n"; + result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n"; + for (let i = 1; i <= options.linesAfter; i++) { + if (foundLineNo + i >= lineEnds.length) break; + const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength); + result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + "\n"; + } + return result.replace(/\n$/, ""); + } + snippet = makeSnippet; + return snippet; +} +var type; +var hasRequiredType; +function requireType() { + if (hasRequiredType) return type; + hasRequiredType = 1; + const YAMLException2 = requireException(); + const TYPE_CONSTRUCTOR_OPTIONS = [ + "kind", + "multi", + "resolve", + "construct", + "instanceOf", + "predicate", + "represent", + "representName", + "defaultStyle", + "styleAliases" + ]; + const YAML_NODE_KINDS = [ + "scalar", + "sequence", + "mapping" + ]; + function compileStyleAliases(map2) { + const result = {}; + if (map2 !== null) Object.keys(map2).forEach(function(style) { + map2[style].forEach(function(alias) { + result[String(alias)] = style; + }); + }); + return result; + } + function Type2(tag, options) { + options = options || {}; + Object.keys(options).forEach(function(name) { + if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) throw new YAMLException2("Unknown option \"" + name + "\" is met in definition of \"" + tag + "\" YAML type."); + }); + this.options = options; + this.tag = tag; + this.kind = options["kind"] || null; + this.resolve = options["resolve"] || function() { + return true; + }; + this.construct = options["construct"] || function(data) { + return data; + }; + this.instanceOf = options["instanceOf"] || null; + this.predicate = options["predicate"] || null; + this.represent = options["represent"] || null; + this.representName = options["representName"] || null; + this.defaultStyle = options["defaultStyle"] || null; + this.multi = options["multi"] || false; + this.styleAliases = compileStyleAliases(options["styleAliases"] || null); + if (YAML_NODE_KINDS.indexOf(this.kind) === -1) throw new YAMLException2("Unknown kind \"" + this.kind + "\" is specified for \"" + tag + "\" YAML type."); + } + type = Type2; + return type; +} +var schema; +var hasRequiredSchema; +function requireSchema() { + if (hasRequiredSchema) return schema; + hasRequiredSchema = 1; + const YAMLException2 = requireException(); + const Type2 = requireType(); + function compileList(schema2, name) { + const result = []; + schema2[name].forEach(function(currentType) { + let newIndex = result.length; + result.forEach(function(previousType, previousIndex) { + if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) newIndex = previousIndex; + }); + result[newIndex] = currentType; + }); + return result; + } + function compileMap() { + const result = { + scalar: {}, + sequence: {}, + mapping: {}, + fallback: {}, + multi: { + scalar: [], + sequence: [], + mapping: [], + fallback: [] + } + }; + function collectType(type2) { + if (type2.multi) { + result.multi[type2.kind].push(type2); + result.multi["fallback"].push(type2); + } else result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2; + } + for (let index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType); + return result; + } + function Schema2(definition) { + return this.extend(definition); + } + Schema2.prototype.extend = function extend(definition) { + let implicit = []; + let explicit = []; + if (definition instanceof Type2) explicit.push(definition); + else if (Array.isArray(definition)) explicit = explicit.concat(definition); + else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { + if (definition.implicit) implicit = implicit.concat(definition.implicit); + if (definition.explicit) explicit = explicit.concat(definition.explicit); + } else throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })"); + implicit.forEach(function(type2) { + if (!(type2 instanceof Type2)) throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object."); + if (type2.loadKind && type2.loadKind !== "scalar") throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported."); + if (type2.multi) throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit."); + }); + explicit.forEach(function(type2) { + if (!(type2 instanceof Type2)) throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object."); + }); + const result = Object.create(Schema2.prototype); + result.implicit = (this.implicit || []).concat(implicit); + result.explicit = (this.explicit || []).concat(explicit); + result.compiledImplicit = compileList(result, "implicit"); + result.compiledExplicit = compileList(result, "explicit"); + result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); + return result; + }; + schema = Schema2; + return schema; +} +var str; +var hasRequiredStr; +function requireStr() { + if (hasRequiredStr) return str; + hasRequiredStr = 1; + str = new (requireType())("tag:yaml.org,2002:str", { + kind: "scalar", + construct: function(data) { + return data !== null ? data : ""; + } + }); + return str; +} +var seq; +var hasRequiredSeq; +function requireSeq() { + if (hasRequiredSeq) return seq; + hasRequiredSeq = 1; + seq = new (requireType())("tag:yaml.org,2002:seq", { + kind: "sequence", + construct: function(data) { + return data !== null ? data : []; + } + }); + return seq; +} +var map; +var hasRequiredMap; +function requireMap() { + if (hasRequiredMap) return map; + hasRequiredMap = 1; + map = new (requireType())("tag:yaml.org,2002:map", { + kind: "mapping", + construct: function(data) { + return data !== null ? data : {}; + } + }); + return map; +} +var failsafe; +var hasRequiredFailsafe; +function requireFailsafe() { + if (hasRequiredFailsafe) return failsafe; + hasRequiredFailsafe = 1; + failsafe = new (requireSchema())({ explicit: [ + requireStr(), + requireSeq(), + requireMap() + ] }); + return failsafe; +} +var _null; +var hasRequired_null; +function require_null() { + if (hasRequired_null) return _null; + hasRequired_null = 1; + const Type2 = requireType(); + function resolveYamlNull(data) { + if (data === null) return true; + const max = data.length; + return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL"); + } + function constructYamlNull() { + return null; + } + function isNull(object) { + return object === null; + } + _null = new Type2("tag:yaml.org,2002:null", { + kind: "scalar", + resolve: resolveYamlNull, + construct: constructYamlNull, + predicate: isNull, + represent: { + canonical: function() { + return "~"; + }, + lowercase: function() { + return "null"; + }, + uppercase: function() { + return "NULL"; + }, + camelcase: function() { + return "Null"; + }, + empty: function() { + return ""; + } + }, + defaultStyle: "lowercase" + }); + return _null; +} +var bool; +var hasRequiredBool; +function requireBool() { + if (hasRequiredBool) return bool; + hasRequiredBool = 1; + const Type2 = requireType(); + function resolveYamlBoolean(data) { + if (data === null) return false; + const max = data.length; + return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE"); + } + function constructYamlBoolean(data) { + return data === "true" || data === "True" || data === "TRUE"; + } + function isBoolean(object) { + return Object.prototype.toString.call(object) === "[object Boolean]"; + } + bool = new Type2("tag:yaml.org,2002:bool", { + kind: "scalar", + resolve: resolveYamlBoolean, + construct: constructYamlBoolean, + predicate: isBoolean, + represent: { + lowercase: function(object) { + return object ? "true" : "false"; + }, + uppercase: function(object) { + return object ? "TRUE" : "FALSE"; + }, + camelcase: function(object) { + return object ? "True" : "False"; + } + }, + defaultStyle: "lowercase" + }); + return bool; +} +var int; +var hasRequiredInt; +function requireInt() { + if (hasRequiredInt) return int; + hasRequiredInt = 1; + const common2 = requireCommon(); + const Type2 = requireType(); + function isHexCode(c) { + return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102; + } + function isOctCode(c) { + return c >= 48 && c <= 55; + } + function isDecCode(c) { + return c >= 48 && c <= 57; + } + function resolveYamlInteger(data) { + if (data === null) return false; + const max = data.length; + let index = 0; + let hasDigits = false; + if (!max) return false; + let ch = data[index]; + if (ch === "-" || ch === "+") ch = data[++index]; + if (ch === "0") { + if (index + 1 === max) return true; + ch = data[++index]; + if (ch === "b") { + index++; + for (; index < max; index++) { + ch = data[index]; + if (ch !== "0" && ch !== "1") return false; + hasDigits = true; + } + return hasDigits && isFinite(parseYamlInteger(data)); + } + if (ch === "x") { + index++; + for (; index < max; index++) { + if (!isHexCode(data.charCodeAt(index))) return false; + hasDigits = true; + } + return hasDigits && isFinite(parseYamlInteger(data)); + } + if (ch === "o") { + index++; + for (; index < max; index++) { + if (!isOctCode(data.charCodeAt(index))) return false; + hasDigits = true; + } + return hasDigits && isFinite(parseYamlInteger(data)); + } + } + for (; index < max; index++) { + if (!isDecCode(data.charCodeAt(index))) return false; + hasDigits = true; + } + if (!hasDigits) return false; + return isFinite(parseYamlInteger(data)); + } + function parseYamlInteger(data) { + let value = data; + let sign = 1; + let ch = value[0]; + if (ch === "-" || ch === "+") { + if (ch === "-") sign = -1; + value = value.slice(1); + ch = value[0]; + } + if (value === "0") return 0; + if (ch === "0") { + if (value[1] === "b") return sign * parseInt(value.slice(2), 2); + if (value[1] === "x") return sign * parseInt(value.slice(2), 16); + if (value[1] === "o") return sign * parseInt(value.slice(2), 8); + } + return sign * parseInt(value, 10); + } + function constructYamlInteger(data) { + return parseYamlInteger(data); + } + function isInteger(object) { + return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common2.isNegativeZero(object); + } + int = new Type2("tag:yaml.org,2002:int", { + kind: "scalar", + resolve: resolveYamlInteger, + construct: constructYamlInteger, + predicate: isInteger, + represent: { + binary: function(obj) { + return obj >= 0 ? "0b" + obj.toString(2) : "-0b" + obj.toString(2).slice(1); + }, + octal: function(obj) { + return obj >= 0 ? "0o" + obj.toString(8) : "-0o" + obj.toString(8).slice(1); + }, + decimal: function(obj) { + return obj.toString(10); + }, + hexadecimal: function(obj) { + return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1); + } + }, + defaultStyle: "decimal", + styleAliases: { + binary: [2, "bin"], + octal: [8, "oct"], + decimal: [10, "dec"], + hexadecimal: [16, "hex"] + } + }); + return int; +} +var float; +var hasRequiredFloat; +function requireFloat() { + if (hasRequiredFloat) return float; + hasRequiredFloat = 1; + const common2 = requireCommon(); + const Type2 = requireType(); + const YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"); + const YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"); + function resolveYamlFloat(data) { + if (data === null) return false; + if (!YAML_FLOAT_PATTERN.test(data)) return false; + if (isFinite(parseFloat(data, 10))) return true; + return YAML_FLOAT_SPECIAL_PATTERN.test(data); + } + function constructYamlFloat(data) { + let value = data.toLowerCase(); + const sign = value[0] === "-" ? -1 : 1; + if ("+-".indexOf(value[0]) >= 0) value = value.slice(1); + if (value === ".inf") return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; + else if (value === ".nan") return NaN; + return sign * parseFloat(value, 10); + } + const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; + function representYamlFloat(object, style) { + if (isNaN(object)) switch (style) { + case "lowercase": return ".nan"; + case "uppercase": return ".NAN"; + case "camelcase": return ".NaN"; + } + else if (Number.POSITIVE_INFINITY === object) switch (style) { + case "lowercase": return ".inf"; + case "uppercase": return ".INF"; + case "camelcase": return ".Inf"; + } + else if (Number.NEGATIVE_INFINITY === object) switch (style) { + case "lowercase": return "-.inf"; + case "uppercase": return "-.INF"; + case "camelcase": return "-.Inf"; + } + else if (common2.isNegativeZero(object)) return "-0.0"; + const res = object.toString(10); + return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res; + } + function isFloat(object) { + return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object)); + } + float = new Type2("tag:yaml.org,2002:float", { + kind: "scalar", + resolve: resolveYamlFloat, + construct: constructYamlFloat, + predicate: isFloat, + represent: representYamlFloat, + defaultStyle: "lowercase" + }); + return float; +} +var json; +var hasRequiredJson; +function requireJson() { + if (hasRequiredJson) return json; + hasRequiredJson = 1; + json = requireFailsafe().extend({ implicit: [ + require_null(), + requireBool(), + requireInt(), + requireFloat() + ] }); + return json; +} +var core; +var hasRequiredCore; +function requireCore() { + if (hasRequiredCore) return core; + hasRequiredCore = 1; + core = requireJson(); + return core; +} +var timestamp; +var hasRequiredTimestamp; +function requireTimestamp() { + if (hasRequiredTimestamp) return timestamp; + hasRequiredTimestamp = 1; + const Type2 = requireType(); + const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"); + const YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"); + function resolveYamlTimestamp(data) { + if (data === null) return false; + if (YAML_DATE_REGEXP.exec(data) !== null) return true; + if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; + return false; + } + function constructYamlTimestamp(data) { + let fraction = 0; + let delta = null; + let match = YAML_DATE_REGEXP.exec(data); + if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); + if (match === null) throw new Error("Date resolve error"); + const year = +match[1]; + const month = +match[2] - 1; + const day = +match[3]; + if (!match[4]) return new Date(Date.UTC(year, month, day)); + const hour = +match[4]; + const minute = +match[5]; + const second = +match[6]; + if (match[7]) { + fraction = match[7].slice(0, 3); + while (fraction.length < 3) fraction += "0"; + fraction = +fraction; + } + if (match[9]) { + const tzHour = +match[10]; + const tzMinute = +(match[11] || 0); + delta = (tzHour * 60 + tzMinute) * 6e4; + if (match[9] === "-") delta = -delta; + } + const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); + if (delta) date.setTime(date.getTime() - delta); + return date; + } + function representYamlTimestamp(object) { + return object.toISOString(); + } + timestamp = new Type2("tag:yaml.org,2002:timestamp", { + kind: "scalar", + resolve: resolveYamlTimestamp, + construct: constructYamlTimestamp, + instanceOf: Date, + represent: representYamlTimestamp + }); + return timestamp; +} +var merge; +var hasRequiredMerge; +function requireMerge() { + if (hasRequiredMerge) return merge; + hasRequiredMerge = 1; + const Type2 = requireType(); + function resolveYamlMerge(data) { + return data === "<<" || data === null; + } + merge = new Type2("tag:yaml.org,2002:merge", { + kind: "scalar", + resolve: resolveYamlMerge + }); + return merge; +} +var binary; +var hasRequiredBinary; +function requireBinary() { + if (hasRequiredBinary) return binary; + hasRequiredBinary = 1; + const Type2 = requireType(); + const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"; + function resolveYamlBinary(data) { + if (data === null) return false; + let bitlen = 0; + const max = data.length; + const map2 = BASE64_MAP; + for (let idx = 0; idx < max; idx++) { + const code = map2.indexOf(data.charAt(idx)); + if (code > 64) continue; + if (code < 0) return false; + bitlen += 6; + } + return bitlen % 8 === 0; + } + function constructYamlBinary(data) { + const input = data.replace(/[\r\n=]/g, ""); + const max = input.length; + const map2 = BASE64_MAP; + let bits = 0; + const result = []; + for (let idx = 0; idx < max; idx++) { + if (idx % 4 === 0 && idx) { + result.push(bits >> 16 & 255); + result.push(bits >> 8 & 255); + result.push(bits & 255); + } + bits = bits << 6 | map2.indexOf(input.charAt(idx)); + } + const tailbits = max % 4 * 6; + if (tailbits === 0) { + result.push(bits >> 16 & 255); + result.push(bits >> 8 & 255); + result.push(bits & 255); + } else if (tailbits === 18) { + result.push(bits >> 10 & 255); + result.push(bits >> 2 & 255); + } else if (tailbits === 12) result.push(bits >> 4 & 255); + return new Uint8Array(result); + } + function representYamlBinary(object) { + let result = ""; + let bits = 0; + const max = object.length; + const map2 = BASE64_MAP; + for (let idx = 0; idx < max; idx++) { + if (idx % 3 === 0 && idx) { + result += map2[bits >> 18 & 63]; + result += map2[bits >> 12 & 63]; + result += map2[bits >> 6 & 63]; + result += map2[bits & 63]; + } + bits = (bits << 8) + object[idx]; + } + const tail = max % 3; + if (tail === 0) { + result += map2[bits >> 18 & 63]; + result += map2[bits >> 12 & 63]; + result += map2[bits >> 6 & 63]; + result += map2[bits & 63]; + } else if (tail === 2) { + result += map2[bits >> 10 & 63]; + result += map2[bits >> 4 & 63]; + result += map2[bits << 2 & 63]; + result += map2[64]; + } else if (tail === 1) { + result += map2[bits >> 2 & 63]; + result += map2[bits << 4 & 63]; + result += map2[64]; + result += map2[64]; + } + return result; + } + function isBinary(obj) { + return Object.prototype.toString.call(obj) === "[object Uint8Array]"; + } + binary = new Type2("tag:yaml.org,2002:binary", { + kind: "scalar", + resolve: resolveYamlBinary, + construct: constructYamlBinary, + predicate: isBinary, + represent: representYamlBinary + }); + return binary; +} +var omap; +var hasRequiredOmap; +function requireOmap() { + if (hasRequiredOmap) return omap; + hasRequiredOmap = 1; + const Type2 = requireType(); + const _hasOwnProperty = Object.prototype.hasOwnProperty; + const _toString = Object.prototype.toString; + function resolveYamlOmap(data) { + if (data === null) return true; + const objectKeys = {}; + const object = data; + for (let index = 0, length = object.length; index < length; index += 1) { + const pair = object[index]; + let pairHasKey = false; + if (_toString.call(pair) !== "[object Object]") return false; + let pairKey; + for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) { + if (!pairHasKey) pairHasKey = true; + else return false; + } + if (!pairHasKey) return false; + if (_hasOwnProperty.call(objectKeys, pairKey)) return false; + Object.defineProperty(objectKeys, pairKey, { value: true }); + } + return true; + } + function constructYamlOmap(data) { + return data !== null ? data : []; + } + omap = new Type2("tag:yaml.org,2002:omap", { + kind: "sequence", + resolve: resolveYamlOmap, + construct: constructYamlOmap + }); + return omap; +} +var pairs; +var hasRequiredPairs; +function requirePairs() { + if (hasRequiredPairs) return pairs; + hasRequiredPairs = 1; + const Type2 = requireType(); + const _toString = Object.prototype.toString; + function resolveYamlPairs(data) { + if (data === null) return true; + const object = data; + const result = new Array(object.length); + for (let index = 0, length = object.length; index < length; index += 1) { + const pair = object[index]; + if (_toString.call(pair) !== "[object Object]") return false; + const keys = Object.keys(pair); + if (keys.length !== 1) return false; + result[index] = [keys[0], pair[keys[0]]]; + } + return true; + } + function constructYamlPairs(data) { + if (data === null) return []; + const object = data; + const result = new Array(object.length); + for (let index = 0, length = object.length; index < length; index += 1) { + const pair = object[index]; + const keys = Object.keys(pair); + result[index] = [keys[0], pair[keys[0]]]; + } + return result; + } + pairs = new Type2("tag:yaml.org,2002:pairs", { + kind: "sequence", + resolve: resolveYamlPairs, + construct: constructYamlPairs + }); + return pairs; +} +var set; +var hasRequiredSet; +function requireSet() { + if (hasRequiredSet) return set; + hasRequiredSet = 1; + const Type2 = requireType(); + const _hasOwnProperty = Object.prototype.hasOwnProperty; + function resolveYamlSet(data) { + if (data === null) return true; + const object = data; + for (const key in object) if (_hasOwnProperty.call(object, key)) { + if (object[key] !== null) return false; + } + return true; + } + function constructYamlSet(data) { + return data !== null ? data : {}; + } + set = new Type2("tag:yaml.org,2002:set", { + kind: "mapping", + resolve: resolveYamlSet, + construct: constructYamlSet + }); + return set; +} +var _default; +var hasRequired_default; +function require_default() { + if (hasRequired_default) return _default; + hasRequired_default = 1; + _default = requireCore().extend({ + implicit: [requireTimestamp(), requireMerge()], + explicit: [ + requireBinary(), + requireOmap(), + requirePairs(), + requireSet() + ] + }); + return _default; +} +var hasRequiredLoader; +function requireLoader() { + if (hasRequiredLoader) return loader; + hasRequiredLoader = 1; + const common2 = requireCommon(); + const YAMLException2 = requireException(); + const makeSnippet = requireSnippet(); + const DEFAULT_SCHEMA2 = require_default(); + const _hasOwnProperty = Object.prototype.hasOwnProperty; + const CONTEXT_FLOW_IN = 1; + const CONTEXT_FLOW_OUT = 2; + const CONTEXT_BLOCK_IN = 3; + const CONTEXT_BLOCK_OUT = 4; + const CHOMPING_CLIP = 1; + const CHOMPING_STRIP = 2; + const CHOMPING_KEEP = 3; + const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; + const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; + const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/; + const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/; + const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i; + function _class(obj) { + return Object.prototype.toString.call(obj); + } + function isEol(c) { + return c === 10 || c === 13; + } + function isWhiteSpace(c) { + return c === 9 || c === 32; + } + function isWsOrEol(c) { + return c === 9 || c === 32 || c === 10 || c === 13; + } + function isFlowIndicator(c) { + return c === 44 || c === 91 || c === 93 || c === 123 || c === 125; + } + function fromHexCode(c) { + if (c >= 48 && c <= 57) return c - 48; + const lc = c | 32; + if (lc >= 97 && lc <= 102) return lc - 97 + 10; + return -1; + } + function escapedHexLen(c) { + if (c === 120) return 2; + if (c === 117) return 4; + if (c === 85) return 8; + return 0; + } + function fromDecimalCode(c) { + if (c >= 48 && c <= 57) return c - 48; + return -1; + } + function simpleEscapeSequence(c) { + switch (c) { + case 48: return "\0"; + case 97: return "\x07"; + case 98: return "\b"; + case 116: return " "; + case 9: return " "; + case 110: return "\n"; + case 118: return "\v"; + case 102: return "\f"; + case 114: return "\r"; + case 101: return "\x1B"; + case 32: return " "; + case 34: return "\""; + case 47: return "/"; + case 92: return "\\"; + case 78: return "…"; + case 95: return "\xA0"; + case 76: return "\u2028"; + case 80: return "\u2029"; + default: return ""; + } + } + function charFromCodepoint(c) { + if (c <= 65535) return String.fromCharCode(c); + return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320); + } + function setProperty(object, key, value) { + if (key === "__proto__") Object.defineProperty(object, key, { + configurable: true, + enumerable: true, + writable: true, + value + }); + else object[key] = value; + } + const simpleEscapeCheck = new Array(256); + const simpleEscapeMap = new Array(256); + for (let i = 0; i < 256; i++) { + simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; + simpleEscapeMap[i] = simpleEscapeSequence(i); + } + function State(input, options) { + this.input = input; + this.filename = options["filename"] || null; + this.schema = options["schema"] || DEFAULT_SCHEMA2; + this.onWarning = options["onWarning"] || null; + this.legacy = options["legacy"] || false; + this.json = options["json"] || false; + this.listener = options["listener"] || null; + this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100; + this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4; + this.implicitTypes = this.schema.compiledImplicit; + this.typeMap = this.schema.compiledTypeMap; + this.length = input.length; + this.position = 0; + this.line = 0; + this.lineStart = 0; + this.lineIndent = 0; + this.depth = 0; + this.totalMergeKeys = 0; + this.firstTabInLine = -1; + this.documents = []; + this.anchorMapTransactions = []; + } + function generateError(state, message) { + const mark = { + name: state.filename, + buffer: state.input.slice(0, -1), + position: state.position, + line: state.line, + column: state.position - state.lineStart + }; + mark.snippet = makeSnippet(mark); + return new YAMLException2(message, mark); + } + function throwError(state, message) { + throw generateError(state, message); + } + function throwWarning(state, message) { + if (state.onWarning) state.onWarning.call(null, generateError(state, message)); + } + function storeAnchor(state, name, value) { + const transactions = state.anchorMapTransactions; + if (transactions.length !== 0) { + const transaction = transactions[transactions.length - 1]; + if (!_hasOwnProperty.call(transaction, name)) transaction[name] = { + existed: _hasOwnProperty.call(state.anchorMap, name), + value: state.anchorMap[name] + }; + } + state.anchorMap[name] = value; + } + function beginAnchorTransaction(state) { + state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null)); + } + function commitAnchorTransaction(state) { + const transaction = state.anchorMapTransactions.pop(); + const transactions = state.anchorMapTransactions; + if (transactions.length === 0) return; + const parent = transactions[transactions.length - 1]; + const names = Object.keys(transaction); + for (let index = 0, length = names.length; index < length; index += 1) { + const name = names[index]; + if (!_hasOwnProperty.call(parent, name)) parent[name] = transaction[name]; + } + } + function rollbackAnchorTransaction(state) { + const transaction = state.anchorMapTransactions.pop(); + const names = Object.keys(transaction); + for (let index = names.length - 1; index >= 0; index -= 1) { + const entry = transaction[names[index]]; + if (entry.existed) state.anchorMap[names[index]] = entry.value; + else delete state.anchorMap[names[index]]; + } + } + function snapshotState(state) { + return { + position: state.position, + line: state.line, + lineStart: state.lineStart, + lineIndent: state.lineIndent, + firstTabInLine: state.firstTabInLine, + tag: state.tag, + anchor: state.anchor, + kind: state.kind, + result: state.result + }; + } + function restoreState(state, snapshot) { + state.position = snapshot.position; + state.line = snapshot.line; + state.lineStart = snapshot.lineStart; + state.lineIndent = snapshot.lineIndent; + state.firstTabInLine = snapshot.firstTabInLine; + state.tag = snapshot.tag; + state.anchor = snapshot.anchor; + state.kind = snapshot.kind; + state.result = snapshot.result; + } + const directiveHandlers = { + YAML: function handleYamlDirective(state, name, args) { + if (state.version !== null) throwError(state, "duplication of %YAML directive"); + if (args.length !== 1) throwError(state, "YAML directive accepts exactly one argument"); + const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); + if (match === null) throwError(state, "ill-formed argument of the YAML directive"); + const major = parseInt(match[1], 10); + const minor = parseInt(match[2], 10); + if (major !== 1) throwError(state, "unacceptable YAML version of the document"); + state.version = args[0]; + state.checkLineBreaks = minor < 2; + if (minor !== 1 && minor !== 2) throwWarning(state, "unsupported YAML version of the document"); + }, + TAG: function handleTagDirective(state, name, args) { + let prefix; + if (args.length !== 2) throwError(state, "TAG directive accepts exactly two arguments"); + const handle = args[0]; + prefix = args[1]; + if (!PATTERN_TAG_HANDLE.test(handle)) throwError(state, "ill-formed tag handle (first argument) of the TAG directive"); + if (_hasOwnProperty.call(state.tagMap, handle)) throwError(state, "there is a previously declared suffix for \"" + handle + "\" tag handle"); + if (!PATTERN_TAG_URI.test(prefix)) throwError(state, "ill-formed tag prefix (second argument) of the TAG directive"); + try { + prefix = decodeURIComponent(prefix); + } catch (err) { + throwError(state, "tag prefix is malformed: " + prefix); + } + state.tagMap[handle] = prefix; + } + }; + function captureSegment(state, start, end, checkJson) { + if (start < end) { + const _result = state.input.slice(start, end); + if (checkJson) for (let _position = 0, _length = _result.length; _position < _length; _position += 1) { + const _character = _result.charCodeAt(_position); + if (!(_character === 9 || _character >= 32 && _character <= 1114111)) throwError(state, "expected valid JSON character"); + } + else if (PATTERN_NON_PRINTABLE.test(_result)) throwError(state, "the stream contains non-printable characters"); + state.result += _result; + } + } + function mergeMappings(state, destination, source, overridableKeys) { + if (!common2.isObject(source)) throwError(state, "cannot merge mappings; the provided source object is unacceptable"); + const sourceKeys = Object.keys(source); + for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { + const key = sourceKeys[index]; + if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")"); + if (!_hasOwnProperty.call(destination, key)) { + setProperty(destination, key, source[key]); + overridableKeys[key] = true; + } + } + } + function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) { + if (Array.isArray(keyNode)) { + keyNode = Array.prototype.slice.call(keyNode); + for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) { + if (Array.isArray(keyNode[index])) throwError(state, "nested arrays are not supported inside keys"); + if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") keyNode[index] = "[object Object]"; + } + } + if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]"; + keyNode = String(keyNode); + if (_result === null) _result = {}; + if (keyTag === "tag:yaml.org,2002:merge") { + if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys); + else mergeMappings(state, _result, valueNode, overridableKeys); + } else { + if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) { + state.line = startLine || state.line; + state.lineStart = startLineStart || state.lineStart; + state.position = startPos || state.position; + throwError(state, "duplicated mapping key"); + } + setProperty(_result, keyNode, valueNode); + delete overridableKeys[keyNode]; + } + return _result; + } + function readLineBreak(state) { + const ch = state.input.charCodeAt(state.position); + if (ch === 10) state.position++; + else if (ch === 13) { + state.position++; + if (state.input.charCodeAt(state.position) === 10) state.position++; + } else throwError(state, "a line break is expected"); + state.line += 1; + state.lineStart = state.position; + state.firstTabInLine = -1; + } + function skipSeparationSpace(state, allowComments, checkIndent) { + let lineBreaks = 0; + let ch = state.input.charCodeAt(state.position); + while (ch !== 0) { + while (isWhiteSpace(ch)) { + if (ch === 9 && state.firstTabInLine === -1) state.firstTabInLine = state.position; + ch = state.input.charCodeAt(++state.position); + } + if (allowComments && ch === 35) do + ch = state.input.charCodeAt(++state.position); + while (ch !== 10 && ch !== 13 && ch !== 0); + if (isEol(ch)) { + readLineBreak(state); + ch = state.input.charCodeAt(state.position); + lineBreaks++; + state.lineIndent = 0; + while (ch === 32) { + state.lineIndent++; + ch = state.input.charCodeAt(++state.position); + } + } else break; + } + if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) throwWarning(state, "deficient indentation"); + return lineBreaks; + } + function testDocumentSeparator(state) { + let _position = state.position; + let ch = state.input.charCodeAt(_position); + if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) { + _position += 3; + ch = state.input.charCodeAt(_position); + if (ch === 0 || isWsOrEol(ch)) return true; + } + return false; + } + function writeFoldedLines(state, count) { + if (count === 1) state.result += " "; + else if (count > 1) state.result += common2.repeat("\n", count - 1); + } + function readPlainScalar(state, nodeIndent, withinFlowCollection) { + let captureStart; + let captureEnd; + let hasPendingContent; + let _line; + let _lineStart; + let _lineIndent; + const _kind = state.kind; + const _result = state.result; + let ch = state.input.charCodeAt(state.position); + if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) return false; + if (ch === 63 || ch === 45) { + const following = state.input.charCodeAt(state.position + 1); + if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) return false; + } + state.kind = "scalar"; + state.result = ""; + captureStart = captureEnd = state.position; + hasPendingContent = false; + while (ch !== 0) { + if (ch === 58) { + const following = state.input.charCodeAt(state.position + 1); + if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) break; + } else if (ch === 35) { + if (isWsOrEol(state.input.charCodeAt(state.position - 1))) break; + } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) break; + else if (isEol(ch)) { + _line = state.line; + _lineStart = state.lineStart; + _lineIndent = state.lineIndent; + skipSeparationSpace(state, false, -1); + if (state.lineIndent >= nodeIndent) { + hasPendingContent = true; + ch = state.input.charCodeAt(state.position); + continue; + } else { + state.position = captureEnd; + state.line = _line; + state.lineStart = _lineStart; + state.lineIndent = _lineIndent; + break; + } + } + if (hasPendingContent) { + captureSegment(state, captureStart, captureEnd, false); + writeFoldedLines(state, state.line - _line); + captureStart = captureEnd = state.position; + hasPendingContent = false; + } + if (!isWhiteSpace(ch)) captureEnd = state.position + 1; + ch = state.input.charCodeAt(++state.position); + } + captureSegment(state, captureStart, captureEnd, false); + if (state.result) return true; + state.kind = _kind; + state.result = _result; + return false; + } + function readSingleQuotedScalar(state, nodeIndent) { + let captureStart; + let captureEnd; + let ch = state.input.charCodeAt(state.position); + if (ch !== 39) return false; + state.kind = "scalar"; + state.result = ""; + state.position++; + captureStart = captureEnd = state.position; + while ((ch = state.input.charCodeAt(state.position)) !== 0) if (ch === 39) { + captureSegment(state, captureStart, state.position, true); + ch = state.input.charCodeAt(++state.position); + if (ch === 39) { + captureStart = state.position; + state.position++; + captureEnd = state.position; + } else return true; + } else if (isEol(ch)) { + captureSegment(state, captureStart, captureEnd, true); + writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); + captureStart = captureEnd = state.position; + } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a single quoted scalar"); + else { + state.position++; + if (!isWhiteSpace(ch)) captureEnd = state.position; + } + throwError(state, "unexpected end of the stream within a single quoted scalar"); + } + function readDoubleQuotedScalar(state, nodeIndent) { + let captureStart; + let captureEnd; + let tmp; + let ch = state.input.charCodeAt(state.position); + if (ch !== 34) return false; + state.kind = "scalar"; + state.result = ""; + state.position++; + captureStart = captureEnd = state.position; + while ((ch = state.input.charCodeAt(state.position)) !== 0) if (ch === 34) { + captureSegment(state, captureStart, state.position, true); + state.position++; + return true; + } else if (ch === 92) { + captureSegment(state, captureStart, state.position, true); + ch = state.input.charCodeAt(++state.position); + if (isEol(ch)) skipSeparationSpace(state, false, nodeIndent); + else if (ch < 256 && simpleEscapeCheck[ch]) { + state.result += simpleEscapeMap[ch]; + state.position++; + } else if ((tmp = escapedHexLen(ch)) > 0) { + let hexLength = tmp; + let hexResult = 0; + for (; hexLength > 0; hexLength--) { + ch = state.input.charCodeAt(++state.position); + if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp; + else throwError(state, "expected hexadecimal character"); + } + state.result += charFromCodepoint(hexResult); + state.position++; + } else throwError(state, "unknown escape sequence"); + captureStart = captureEnd = state.position; + } else if (isEol(ch)) { + captureSegment(state, captureStart, captureEnd, true); + writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); + captureStart = captureEnd = state.position; + } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a double quoted scalar"); + else { + state.position++; + if (!isWhiteSpace(ch)) captureEnd = state.position; + } + throwError(state, "unexpected end of the stream within a double quoted scalar"); + } + function readFlowCollection(state, nodeIndent) { + let readNext = true; + let _line; + let _lineStart; + let _pos; + const _tag = state.tag; + let _result; + const _anchor = state.anchor; + let terminator; + let isPair; + let isExplicitPair; + let isMapping; + const overridableKeys = /* @__PURE__ */ Object.create(null); + let keyNode; + let keyTag; + let valueNode; + let ch = state.input.charCodeAt(state.position); + if (ch === 91) { + terminator = 93; + isMapping = false; + _result = []; + } else if (ch === 123) { + terminator = 125; + isMapping = true; + _result = {}; + } else return false; + if (state.anchor !== null) storeAnchor(state, state.anchor, _result); + ch = state.input.charCodeAt(++state.position); + while (ch !== 0) { + skipSeparationSpace(state, true, nodeIndent); + ch = state.input.charCodeAt(state.position); + if (ch === terminator) { + state.position++; + state.tag = _tag; + state.anchor = _anchor; + state.kind = isMapping ? "mapping" : "sequence"; + state.result = _result; + return true; + } else if (!readNext) throwError(state, "missed comma between flow collection entries"); + else if (ch === 44) throwError(state, "expected the node content, but found ','"); + keyTag = keyNode = valueNode = null; + isPair = isExplicitPair = false; + if (ch === 63) { + if (isWsOrEol(state.input.charCodeAt(state.position + 1))) { + isPair = isExplicitPair = true; + state.position++; + skipSeparationSpace(state, true, nodeIndent); + } + } + _line = state.line; + _lineStart = state.lineStart; + _pos = state.position; + composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); + keyTag = state.tag; + keyNode = state.result; + skipSeparationSpace(state, true, nodeIndent); + ch = state.input.charCodeAt(state.position); + if ((isExplicitPair || state.line === _line) && ch === 58) { + isPair = true; + ch = state.input.charCodeAt(++state.position); + skipSeparationSpace(state, true, nodeIndent); + composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); + valueNode = state.result; + } + if (isMapping) storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); + else if (isPair) _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); + else _result.push(keyNode); + skipSeparationSpace(state, true, nodeIndent); + ch = state.input.charCodeAt(state.position); + if (ch === 44) { + readNext = true; + ch = state.input.charCodeAt(++state.position); + } else readNext = false; + } + throwError(state, "unexpected end of the stream within a flow collection"); + } + function readBlockScalar(state, nodeIndent) { + let folding; + let chomping = CHOMPING_CLIP; + let didReadContent = false; + let detectedIndent = false; + let textIndent = nodeIndent; + let emptyLines = 0; + let atMoreIndented = false; + let tmp; + let ch = state.input.charCodeAt(state.position); + if (ch === 124) folding = false; + else if (ch === 62) folding = true; + else return false; + state.kind = "scalar"; + state.result = ""; + while (ch !== 0) { + ch = state.input.charCodeAt(++state.position); + if (ch === 43 || ch === 45) { + if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP; + else throwError(state, "repeat of a chomping mode identifier"); + } else if ((tmp = fromDecimalCode(ch)) >= 0) { + if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one"); + else if (!detectedIndent) { + textIndent = nodeIndent + tmp - 1; + detectedIndent = true; + } else throwError(state, "repeat of an indentation width identifier"); + } else break; + } + if (isWhiteSpace(ch)) { + do + ch = state.input.charCodeAt(++state.position); + while (isWhiteSpace(ch)); + if (ch === 35) do + ch = state.input.charCodeAt(++state.position); + while (!isEol(ch) && ch !== 0); + } + while (ch !== 0) { + readLineBreak(state); + state.lineIndent = 0; + ch = state.input.charCodeAt(state.position); + while ((!detectedIndent || state.lineIndent < textIndent) && ch === 32) { + state.lineIndent++; + ch = state.input.charCodeAt(++state.position); + } + if (!detectedIndent && state.lineIndent > textIndent) textIndent = state.lineIndent; + if (isEol(ch)) { + emptyLines++; + continue; + } + if (!detectedIndent && textIndent === 0) throwError(state, "missing indentation for block scalar"); + if (state.lineIndent < textIndent) { + if (chomping === CHOMPING_KEEP) state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines); + else if (chomping === CHOMPING_CLIP) { + if (didReadContent) state.result += "\n"; + } + break; + } + if (folding) { + if (isWhiteSpace(ch)) { + atMoreIndented = true; + state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines); + } else if (atMoreIndented) { + atMoreIndented = false; + state.result += common2.repeat("\n", emptyLines + 1); + } else if (emptyLines === 0) { + if (didReadContent) state.result += " "; + } else state.result += common2.repeat("\n", emptyLines); + } else state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines); + didReadContent = true; + detectedIndent = true; + emptyLines = 0; + const captureStart = state.position; + while (!isEol(ch) && ch !== 0) ch = state.input.charCodeAt(++state.position); + captureSegment(state, captureStart, state.position, false); + } + return true; + } + function readBlockSequence(state, nodeIndent) { + const _tag = state.tag; + const _anchor = state.anchor; + const _result = []; + let detected = false; + if (state.firstTabInLine !== -1) return false; + if (state.anchor !== null) storeAnchor(state, state.anchor, _result); + let ch = state.input.charCodeAt(state.position); + while (ch !== 0) { + if (state.firstTabInLine !== -1) { + state.position = state.firstTabInLine; + throwError(state, "tab characters must not be used in indentation"); + } + if (ch !== 45) break; + if (!isWsOrEol(state.input.charCodeAt(state.position + 1))) break; + detected = true; + state.position++; + if (skipSeparationSpace(state, true, -1)) { + if (state.lineIndent <= nodeIndent) { + _result.push(null); + ch = state.input.charCodeAt(state.position); + continue; + } + } + const _line = state.line; + composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); + _result.push(state.result); + skipSeparationSpace(state, true, -1); + ch = state.input.charCodeAt(state.position); + if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) throwError(state, "bad indentation of a sequence entry"); + else if (state.lineIndent < nodeIndent) break; + } + if (detected) { + state.tag = _tag; + state.anchor = _anchor; + state.kind = "sequence"; + state.result = _result; + return true; + } + return false; + } + function readBlockMapping(state, nodeIndent, flowIndent) { + let allowCompact; + let _keyLine; + let _keyLineStart; + let _keyPos; + const _tag = state.tag; + const _anchor = state.anchor; + const _result = {}; + const overridableKeys = /* @__PURE__ */ Object.create(null); + let keyTag = null; + let keyNode = null; + let valueNode = null; + let atExplicitKey = false; + let detected = false; + if (state.firstTabInLine !== -1) return false; + if (state.anchor !== null) storeAnchor(state, state.anchor, _result); + let ch = state.input.charCodeAt(state.position); + while (ch !== 0) { + if (!atExplicitKey && state.firstTabInLine !== -1) { + state.position = state.firstTabInLine; + throwError(state, "tab characters must not be used in indentation"); + } + const following = state.input.charCodeAt(state.position + 1); + const _line = state.line; + if ((ch === 63 || ch === 58) && isWsOrEol(following)) { + if (ch === 63) { + if (atExplicitKey) { + storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); + keyTag = keyNode = valueNode = null; + } + detected = true; + atExplicitKey = true; + allowCompact = true; + } else if (atExplicitKey) { + atExplicitKey = false; + allowCompact = true; + } else throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"); + state.position += 1; + ch = following; + } else { + _keyLine = state.line; + _keyLineStart = state.lineStart; + _keyPos = state.position; + if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) break; + if (state.line === _line) { + ch = state.input.charCodeAt(state.position); + while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position); + if (ch === 58) { + ch = state.input.charCodeAt(++state.position); + if (!isWsOrEol(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping"); + if (atExplicitKey) { + storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); + keyTag = keyNode = valueNode = null; + } + detected = true; + atExplicitKey = false; + allowCompact = false; + keyTag = state.tag; + keyNode = state.result; + } else if (detected) throwError(state, "can not read an implicit mapping pair; a colon is missed"); + else { + state.tag = _tag; + state.anchor = _anchor; + return true; + } + } else if (detected) throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key"); + else { + state.tag = _tag; + state.anchor = _anchor; + return true; + } + } + if (state.line === _line || state.lineIndent > nodeIndent) { + if (atExplicitKey) { + _keyLine = state.line; + _keyLineStart = state.lineStart; + _keyPos = state.position; + } + if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { + if (atExplicitKey) keyNode = state.result; + else valueNode = state.result; + } + if (!atExplicitKey) { + storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); + keyTag = keyNode = valueNode = null; + } + skipSeparationSpace(state, true, -1); + ch = state.input.charCodeAt(state.position); + } + if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) throwError(state, "bad indentation of a mapping entry"); + else if (state.lineIndent < nodeIndent) break; + } + if (atExplicitKey) storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); + if (detected) { + state.tag = _tag; + state.anchor = _anchor; + state.kind = "mapping"; + state.result = _result; + } + return detected; + } + function readTagProperty(state) { + let isVerbatim = false; + let isNamed = false; + let tagHandle; + let tagName; + let ch = state.input.charCodeAt(state.position); + if (ch !== 33) return false; + if (state.tag !== null) throwError(state, "duplication of a tag property"); + ch = state.input.charCodeAt(++state.position); + if (ch === 60) { + isVerbatim = true; + ch = state.input.charCodeAt(++state.position); + } else if (ch === 33) { + isNamed = true; + tagHandle = "!!"; + ch = state.input.charCodeAt(++state.position); + } else tagHandle = "!"; + let _position = state.position; + if (isVerbatim) { + do + ch = state.input.charCodeAt(++state.position); + while (ch !== 0 && ch !== 62); + if (state.position < state.length) { + tagName = state.input.slice(_position, state.position); + ch = state.input.charCodeAt(++state.position); + } else throwError(state, "unexpected end of the stream within a verbatim tag"); + } else { + while (ch !== 0 && !isWsOrEol(ch)) { + if (ch === 33) { + if (!isNamed) { + tagHandle = state.input.slice(_position - 1, state.position + 1); + if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters"); + isNamed = true; + _position = state.position + 1; + } else throwError(state, "tag suffix cannot contain exclamation marks"); + } + ch = state.input.charCodeAt(++state.position); + } + tagName = state.input.slice(_position, state.position); + if (PATTERN_FLOW_INDICATORS.test(tagName)) throwError(state, "tag suffix cannot contain flow indicator characters"); + } + if (tagName && !PATTERN_TAG_URI.test(tagName)) throwError(state, "tag name cannot contain such characters: " + tagName); + try { + tagName = decodeURIComponent(tagName); + } catch (err) { + throwError(state, "tag name is malformed: " + tagName); + } + if (isVerbatim) state.tag = tagName; + else if (_hasOwnProperty.call(state.tagMap, tagHandle)) state.tag = state.tagMap[tagHandle] + tagName; + else if (tagHandle === "!") state.tag = "!" + tagName; + else if (tagHandle === "!!") state.tag = "tag:yaml.org,2002:" + tagName; + else throwError(state, "undeclared tag handle \"" + tagHandle + "\""); + return true; + } + function readAnchorProperty(state) { + let ch = state.input.charCodeAt(state.position); + if (ch !== 38) return false; + if (state.anchor !== null) throwError(state, "duplication of an anchor property"); + ch = state.input.charCodeAt(++state.position); + const _position = state.position; + while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position); + if (state.position === _position) throwError(state, "name of an anchor node must contain at least one character"); + state.anchor = state.input.slice(_position, state.position); + return true; + } + function readAlias(state) { + let ch = state.input.charCodeAt(state.position); + if (ch !== 42) return false; + ch = state.input.charCodeAt(++state.position); + const _position = state.position; + while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position); + if (state.position === _position) throwError(state, "name of an alias node must contain at least one character"); + const alias = state.input.slice(_position, state.position); + if (!_hasOwnProperty.call(state.anchorMap, alias)) throwError(state, "unidentified alias \"" + alias + "\""); + state.result = state.anchorMap[alias]; + skipSeparationSpace(state, true, -1); + return true; + } + function tryReadBlockMappingFromProperty(state, propertyStart, nodeIndent, flowIndent) { + const fallbackState = snapshotState(state); + beginAnchorTransaction(state); + restoreState(state, propertyStart); + state.tag = null; + state.anchor = null; + state.kind = null; + state.result = null; + if (readBlockMapping(state, nodeIndent, flowIndent) && state.kind === "mapping") { + commitAnchorTransaction(state); + return true; + } + rollbackAnchorTransaction(state); + restoreState(state, fallbackState); + return false; + } + function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { + let allowBlockScalars; + let allowBlockCollections; + let indentStatus = 1; + let atNewLine = false; + let hasContent = false; + let propertyStart = null; + let type2; + let flowIndent; + let blockIndent; + if (state.depth >= state.maxDepth) throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")"); + state.depth += 1; + if (state.listener !== null) state.listener("open", state); + state.tag = null; + state.anchor = null; + state.kind = null; + state.result = null; + const allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext; + if (allowToSeek) { + if (skipSeparationSpace(state, true, -1)) { + atNewLine = true; + if (state.lineIndent > parentIndent) indentStatus = 1; + else if (state.lineIndent === parentIndent) indentStatus = 0; + else if (state.lineIndent < parentIndent) indentStatus = -1; + } + } + if (indentStatus === 1) while (true) { + const ch = state.input.charCodeAt(state.position); + const propertyState = snapshotState(state); + if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) break; + if (!readTagProperty(state) && !readAnchorProperty(state)) break; + if (propertyStart === null) propertyStart = propertyState; + if (skipSeparationSpace(state, true, -1)) { + atNewLine = true; + allowBlockCollections = allowBlockStyles; + if (state.lineIndent > parentIndent) indentStatus = 1; + else if (state.lineIndent === parentIndent) indentStatus = 0; + else if (state.lineIndent < parentIndent) indentStatus = -1; + } else allowBlockCollections = false; + } + if (allowBlockCollections) allowBlockCollections = atNewLine || allowCompact; + if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { + if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent; + else flowIndent = parentIndent + 1; + blockIndent = state.position - state.lineStart; + if (indentStatus === 1) { + if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true; + else { + const ch = state.input.charCodeAt(state.position); + if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true; + else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true; + else if (readAlias(state)) { + hasContent = true; + if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties"); + } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { + hasContent = true; + if (state.tag === null) state.tag = "?"; + } + if (state.anchor !== null) storeAnchor(state, state.anchor, state.result); + } + } else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); + } + if (state.tag === null) { + if (state.anchor !== null) storeAnchor(state, state.anchor, state.result); + } else if (state.tag === "?") { + if (state.result !== null && state.kind !== "scalar") throwError(state, "unacceptable node kind for ! tag; it should be \"scalar\", not \"" + state.kind + "\""); + for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { + type2 = state.implicitTypes[typeIndex]; + if (type2.resolve(state.result)) { + state.result = type2.construct(state.result); + state.tag = type2.tag; + if (state.anchor !== null) storeAnchor(state, state.anchor, state.result); + break; + } + } + } else if (state.tag !== "!") { + if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) type2 = state.typeMap[state.kind || "fallback"][state.tag]; + else { + type2 = null; + const typeList = state.typeMap.multi[state.kind || "fallback"]; + for (let typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { + type2 = typeList[typeIndex]; + break; + } + } + if (!type2) throwError(state, "unknown tag !<" + state.tag + ">"); + if (state.result !== null && type2.kind !== state.kind) throwError(state, "unacceptable node kind for !<" + state.tag + "> tag; it should be \"" + type2.kind + "\", not \"" + state.kind + "\""); + if (!type2.resolve(state.result, state.tag)) throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag"); + else { + state.result = type2.construct(state.result, state.tag); + if (state.anchor !== null) storeAnchor(state, state.anchor, state.result); + } + } + if (state.listener !== null) state.listener("close", state); + state.depth -= 1; + return state.tag !== null || state.anchor !== null || hasContent; + } + function readDocument(state) { + const documentStart = state.position; + let hasDirectives = false; + let ch; + state.version = null; + state.checkLineBreaks = state.legacy; + state.tagMap = /* @__PURE__ */ Object.create(null); + state.anchorMap = /* @__PURE__ */ Object.create(null); + while ((ch = state.input.charCodeAt(state.position)) !== 0) { + skipSeparationSpace(state, true, -1); + ch = state.input.charCodeAt(state.position); + if (state.lineIndent > 0 || ch !== 37) break; + hasDirectives = true; + ch = state.input.charCodeAt(++state.position); + let _position = state.position; + while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position); + const directiveName = state.input.slice(_position, state.position); + const directiveArgs = []; + if (directiveName.length < 1) throwError(state, "directive name must not be less than one character in length"); + while (ch !== 0) { + while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position); + if (ch === 35) { + do + ch = state.input.charCodeAt(++state.position); + while (ch !== 0 && !isEol(ch)); + break; + } + if (isEol(ch)) break; + _position = state.position; + while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position); + directiveArgs.push(state.input.slice(_position, state.position)); + } + if (ch !== 0) readLineBreak(state); + if (_hasOwnProperty.call(directiveHandlers, directiveName)) directiveHandlers[directiveName](state, directiveName, directiveArgs); + else throwWarning(state, "unknown document directive \"" + directiveName + "\""); + } + skipSeparationSpace(state, true, -1); + if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) { + state.position += 3; + skipSeparationSpace(state, true, -1); + } else if (hasDirectives) throwError(state, "directives end mark is expected"); + composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); + skipSeparationSpace(state, true, -1); + if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) throwWarning(state, "non-ASCII line breaks are interpreted as content"); + state.documents.push(state.result); + if (state.position === state.lineStart && testDocumentSeparator(state)) { + if (state.input.charCodeAt(state.position) === 46) { + state.position += 3; + skipSeparationSpace(state, true, -1); + } + return; + } + if (state.position < state.length - 1) throwError(state, "end of the stream or a document separator is expected"); + } + function loadDocuments(input, options) { + input = String(input); + options = options || {}; + if (input.length !== 0) { + if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) input += "\n"; + if (input.charCodeAt(0) === 65279) input = input.slice(1); + } + const state = new State(input, options); + const nullpos = input.indexOf("\0"); + if (nullpos !== -1) { + state.position = nullpos; + throwError(state, "null byte is not allowed in input"); + } + state.input += "\0"; + while (state.input.charCodeAt(state.position) === 32) { + state.lineIndent += 1; + state.position += 1; + } + while (state.position < state.length - 1) readDocument(state); + return state.documents; + } + function loadAll2(input, iterator, options) { + if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") { + options = iterator; + iterator = null; + } + const documents = loadDocuments(input, options); + if (typeof iterator !== "function") return documents; + for (let index = 0, length = documents.length; index < length; index += 1) iterator(documents[index]); + } + function load2(input, options) { + const documents = loadDocuments(input, options); + if (documents.length === 0) return; + else if (documents.length === 1) return documents[0]; + throw new YAMLException2("expected a single document in the stream, but found more"); + } + loader.loadAll = loadAll2; + loader.load = load2; + return loader; +} +var dumper = {}; +var hasRequiredDumper; +function requireDumper() { + if (hasRequiredDumper) return dumper; + hasRequiredDumper = 1; + const common2 = requireCommon(); + const YAMLException2 = requireException(); + const DEFAULT_SCHEMA2 = require_default(); + const _toString = Object.prototype.toString; + const _hasOwnProperty = Object.prototype.hasOwnProperty; + const CHAR_BOM = 65279; + const CHAR_TAB = 9; + const CHAR_LINE_FEED = 10; + const CHAR_CARRIAGE_RETURN = 13; + const CHAR_SPACE = 32; + const CHAR_EXCLAMATION = 33; + const CHAR_DOUBLE_QUOTE = 34; + const CHAR_SHARP = 35; + const CHAR_PERCENT = 37; + const CHAR_AMPERSAND = 38; + const CHAR_SINGLE_QUOTE = 39; + const CHAR_ASTERISK = 42; + const CHAR_COMMA = 44; + const CHAR_MINUS = 45; + const CHAR_COLON = 58; + const CHAR_EQUALS = 61; + const CHAR_GREATER_THAN = 62; + const CHAR_QUESTION = 63; + const CHAR_COMMERCIAL_AT = 64; + const CHAR_LEFT_SQUARE_BRACKET = 91; + const CHAR_RIGHT_SQUARE_BRACKET = 93; + const CHAR_GRAVE_ACCENT = 96; + const CHAR_LEFT_CURLY_BRACKET = 123; + const CHAR_VERTICAL_LINE = 124; + const CHAR_RIGHT_CURLY_BRACKET = 125; + const ESCAPE_SEQUENCES = {}; + ESCAPE_SEQUENCES[0] = "\\0"; + ESCAPE_SEQUENCES[7] = "\\a"; + ESCAPE_SEQUENCES[8] = "\\b"; + ESCAPE_SEQUENCES[9] = "\\t"; + ESCAPE_SEQUENCES[10] = "\\n"; + ESCAPE_SEQUENCES[11] = "\\v"; + ESCAPE_SEQUENCES[12] = "\\f"; + ESCAPE_SEQUENCES[13] = "\\r"; + ESCAPE_SEQUENCES[27] = "\\e"; + ESCAPE_SEQUENCES[34] = "\\\""; + ESCAPE_SEQUENCES[92] = "\\\\"; + ESCAPE_SEQUENCES[133] = "\\N"; + ESCAPE_SEQUENCES[160] = "\\_"; + ESCAPE_SEQUENCES[8232] = "\\L"; + ESCAPE_SEQUENCES[8233] = "\\P"; + const DEPRECATED_BOOLEANS_SYNTAX = [ + "y", + "Y", + "yes", + "Yes", + "YES", + "on", + "On", + "ON", + "n", + "N", + "no", + "No", + "NO", + "off", + "Off", + "OFF" + ]; + const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; + function compileStyleMap(schema2, map2) { + if (map2 === null) return {}; + const result = {}; + const keys = Object.keys(map2); + for (let index = 0, length = keys.length; index < length; index += 1) { + let tag = keys[index]; + let style = String(map2[tag]); + if (tag.slice(0, 2) === "!!") tag = "tag:yaml.org,2002:" + tag.slice(2); + const type2 = schema2.compiledTypeMap["fallback"][tag]; + if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) style = type2.styleAliases[style]; + result[tag] = style; + } + return result; + } + function encodeHex(character) { + let handle; + let length; + const string = character.toString(16).toUpperCase(); + if (character <= 255) { + handle = "x"; + length = 2; + } else if (character <= 65535) { + handle = "u"; + length = 4; + } else if (character <= 4294967295) { + handle = "U"; + length = 8; + } else throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF"); + return "\\" + handle + common2.repeat("0", length - string.length) + string; + } + const QUOTING_TYPE_SINGLE = 1; + const QUOTING_TYPE_DOUBLE = 2; + function State(options) { + this.schema = options["schema"] || DEFAULT_SCHEMA2; + this.indent = Math.max(1, options["indent"] || 2); + this.noArrayIndent = options["noArrayIndent"] || false; + this.skipInvalid = options["skipInvalid"] || false; + this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"]; + this.styleMap = compileStyleMap(this.schema, options["styles"] || null); + this.sortKeys = options["sortKeys"] || false; + this.lineWidth = options["lineWidth"] || 80; + this.noRefs = options["noRefs"] || false; + this.noCompatMode = options["noCompatMode"] || false; + this.condenseFlow = options["condenseFlow"] || false; + this.quotingType = options["quotingType"] === "\"" ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; + this.forceQuotes = options["forceQuotes"] || false; + this.replacer = typeof options["replacer"] === "function" ? options["replacer"] : null; + this.implicitTypes = this.schema.compiledImplicit; + this.explicitTypes = this.schema.compiledExplicit; + this.tag = null; + this.result = ""; + this.duplicates = []; + this.usedDuplicates = null; + } + function indentString(string, spaces) { + const ind = common2.repeat(" ", spaces); + let position = 0; + let result = ""; + const length = string.length; + while (position < length) { + let line; + const next = string.indexOf("\n", position); + if (next === -1) { + line = string.slice(position); + position = length; + } else { + line = string.slice(position, next + 1); + position = next + 1; + } + if (line.length && line !== "\n") result += ind; + result += line; + } + return result; + } + function generateNextLine(state, level) { + return "\n" + common2.repeat(" ", state.indent * level); + } + function testImplicitResolving(state, str2) { + for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) if (state.implicitTypes[index].resolve(str2)) return true; + return false; + } + function isWhitespace(c) { + return c === CHAR_SPACE || c === CHAR_TAB; + } + function isPrintable(c) { + return c >= 32 && c <= 126 || c >= 161 && c <= 55295 && c !== 8232 && c !== 8233 || c >= 57344 && c <= 65533 && c !== CHAR_BOM || c >= 65536 && c <= 1114111; + } + function isNsCharOrWhitespace(c) { + return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED; + } + function isPlainSafe(c, prev, inblock) { + const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); + const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); + return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && c !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar; + } + function isPlainSafeFirst(c) { + return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) && c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT; + } + function isPlainSafeLast(c) { + return !isWhitespace(c) && c !== CHAR_COLON; + } + function codePointAt(string, pos) { + const first = string.charCodeAt(pos); + let second; + if (first >= 55296 && first <= 56319 && pos + 1 < string.length) { + second = string.charCodeAt(pos + 1); + if (second >= 56320 && second <= 57343) return (first - 55296) * 1024 + second - 56320 + 65536; + } + return first; + } + function needIndentIndicator(string) { + return /^\n* /.test(string); + } + const STYLE_PLAIN = 1; + const STYLE_SINGLE = 2; + const STYLE_LITERAL = 3; + const STYLE_FOLDED = 4; + const STYLE_DOUBLE = 5; + function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) { + let i; + let char = 0; + let prevChar = null; + let hasLineBreak = false; + let hasFoldableLine = false; + const shouldTrackWidth = lineWidth !== -1; + let previousLineBreak = -1; + let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1)); + if (singleLineOnly || forceQuotes) for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) { + char = codePointAt(string, i); + if (!isPrintable(char)) return STYLE_DOUBLE; + plain = plain && isPlainSafe(char, prevChar, inblock); + prevChar = char; + } + else { + for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) { + char = codePointAt(string, i); + if (char === CHAR_LINE_FEED) { + hasLineBreak = true; + if (shouldTrackWidth) { + hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " "; + previousLineBreak = i; + } + } else if (!isPrintable(char)) return STYLE_DOUBLE; + plain = plain && isPlainSafe(char, prevChar, inblock); + prevChar = char; + } + hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " "; + } + if (!hasLineBreak && !hasFoldableLine) { + if (plain && !forceQuotes && !testAmbiguousType(string)) return STYLE_PLAIN; + return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; + } + if (indentPerLevel > 9 && needIndentIndicator(string)) return STYLE_DOUBLE; + if (!forceQuotes) return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; + return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; + } + function writeScalar(state, string, level, iskey, inblock) { + state.dump = (function() { + if (string.length === 0) return state.quotingType === QUOTING_TYPE_DOUBLE ? "\"\"" : "''"; + if (!state.noCompatMode) { + if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) return state.quotingType === QUOTING_TYPE_DOUBLE ? "\"" + string + "\"" : "'" + string + "'"; + } + const indent = state.indent * Math.max(1, level); + const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); + const singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel; + function testAmbiguity(string2) { + return testImplicitResolving(state, string2); + } + switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { + case STYLE_PLAIN: return string; + case STYLE_SINGLE: return "'" + string.replace(/'/g, "''") + "'"; + case STYLE_LITERAL: return "|" + blockHeader(string, state.indent) + dropEndingNewline(indentString(string, indent)); + case STYLE_FOLDED: return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); + case STYLE_DOUBLE: return "\"" + escapeString(string) + "\""; + default: throw new YAMLException2("impossible error: invalid scalar style"); + } + })(); + } + function blockHeader(string, indentPerLevel) { + const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ""; + const clip = string[string.length - 1] === "\n"; + return indentIndicator + (clip && (string[string.length - 2] === "\n" || string === "\n") ? "+" : clip ? "" : "-") + "\n"; + } + function dropEndingNewline(string) { + return string[string.length - 1] === "\n" ? string.slice(0, -1) : string; + } + function foldString(string, width) { + const lineRe = /(\n+)([^\n]*)/g; + let result = (function() { + let nextLF = string.indexOf("\n"); + nextLF = nextLF !== -1 ? nextLF : string.length; + lineRe.lastIndex = nextLF; + return foldLine(string.slice(0, nextLF), width); + })(); + let prevMoreIndented = string[0] === "\n" || string[0] === " "; + let moreIndented; + let match; + while (match = lineRe.exec(string)) { + const prefix = match[1]; + const line = match[2]; + moreIndented = line[0] === " "; + result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width); + prevMoreIndented = moreIndented; + } + return result; + } + function foldLine(line, width) { + if (line === "" || line[0] === " ") return line; + const breakRe = / [^ ]/g; + let match; + let start = 0; + let end; + let curr = 0; + let next = 0; + let result = ""; + while (match = breakRe.exec(line)) { + next = match.index; + if (next - start > width) { + end = curr > start ? curr : next; + result += "\n" + line.slice(start, end); + start = end + 1; + } + curr = next; + } + result += "\n"; + if (line.length - start > width && curr > start) result += line.slice(start, curr) + "\n" + line.slice(curr + 1); + else result += line.slice(start); + return result.slice(1); + } + function escapeString(string) { + let result = ""; + let char = 0; + for (let i = 0; i < string.length; char >= 65536 ? i += 2 : i++) { + char = codePointAt(string, i); + const escapeSeq = ESCAPE_SEQUENCES[char]; + if (!escapeSeq && isPrintable(char)) { + result += string[i]; + if (char >= 65536) result += string[i + 1]; + } else result += escapeSeq || encodeHex(char); + } + return result; + } + function writeFlowSequence(state, level, object) { + let _result = ""; + const _tag = state.tag; + for (let index = 0, length = object.length; index < length; index += 1) { + let value = object[index]; + if (state.replacer) value = state.replacer.call(object, String(index), value); + if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) { + if (_result !== "") _result += "," + (!state.condenseFlow ? " " : ""); + _result += state.dump; + } + } + state.tag = _tag; + state.dump = "[" + _result + "]"; + } + function writeBlockSequence(state, level, object, compact) { + let _result = ""; + const _tag = state.tag; + for (let index = 0, length = object.length; index < length; index += 1) { + let value = object[index]; + if (state.replacer) value = state.replacer.call(object, String(index), value); + if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) { + if (!compact || _result !== "") _result += generateNextLine(state, level); + if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) _result += "-"; + else _result += "- "; + _result += state.dump; + } + } + state.tag = _tag; + state.dump = _result || "[]"; + } + function writeFlowMapping(state, level, object) { + let _result = ""; + const _tag = state.tag; + const objectKeyList = Object.keys(object); + for (let index = 0, length = objectKeyList.length; index < length; index += 1) { + let pairBuffer = ""; + if (_result !== "") pairBuffer += ", "; + if (state.condenseFlow) pairBuffer += "\""; + const objectKey = objectKeyList[index]; + let objectValue = object[objectKey]; + if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue); + if (!writeNode(state, level, objectKey, false, false)) continue; + if (state.dump.length > 1024) pairBuffer += "? "; + pairBuffer += state.dump + (state.condenseFlow ? "\"" : "") + ":" + (state.condenseFlow ? "" : " "); + if (!writeNode(state, level, objectValue, false, false)) continue; + pairBuffer += state.dump; + _result += pairBuffer; + } + state.tag = _tag; + state.dump = "{" + _result + "}"; + } + function writeBlockMapping(state, level, object, compact) { + let _result = ""; + const _tag = state.tag; + const objectKeyList = Object.keys(object); + if (state.sortKeys === true) objectKeyList.sort(); + else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys); + else if (state.sortKeys) throw new YAMLException2("sortKeys must be a boolean or a function"); + for (let index = 0, length = objectKeyList.length; index < length; index += 1) { + let pairBuffer = ""; + if (!compact || _result !== "") pairBuffer += generateNextLine(state, level); + const objectKey = objectKeyList[index]; + let objectValue = object[objectKey]; + if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue); + if (!writeNode(state, level + 1, objectKey, true, true, true)) continue; + const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024; + if (explicitPair) { + if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?"; + else pairBuffer += "? "; + } + pairBuffer += state.dump; + if (explicitPair) pairBuffer += generateNextLine(state, level); + if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue; + if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += ":"; + else pairBuffer += ": "; + pairBuffer += state.dump; + _result += pairBuffer; + } + state.tag = _tag; + state.dump = _result || "{}"; + } + function detectType(state, object, explicit) { + const typeList = explicit ? state.explicitTypes : state.implicitTypes; + for (let index = 0, length = typeList.length; index < length; index += 1) { + const type2 = typeList[index]; + if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) { + if (explicit) { + if (type2.multi && type2.representName) state.tag = type2.representName(object); + else state.tag = type2.tag; + } else state.tag = "?"; + if (type2.represent) { + const style = state.styleMap[type2.tag] || type2.defaultStyle; + let _result; + if (_toString.call(type2.represent) === "[object Function]") _result = type2.represent(object, style); + else if (_hasOwnProperty.call(type2.represent, style)) _result = type2.represent[style](object, style); + else throw new YAMLException2("!<" + type2.tag + "> tag resolver accepts not \"" + style + "\" style"); + state.dump = _result; + } + return true; + } + } + return false; + } + function writeNode(state, level, object, block, compact, iskey, isblockseq) { + state.tag = null; + state.dump = object; + if (!detectType(state, object, false)) detectType(state, object, true); + const type2 = _toString.call(state.dump); + const inblock = block; + if (block) block = state.flowLevel < 0 || state.flowLevel > level; + const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]"; + let duplicateIndex; + let duplicate; + if (objectOrArray) { + duplicateIndex = state.duplicates.indexOf(object); + duplicate = duplicateIndex !== -1; + } + if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) compact = false; + if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex; + else { + if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true; + if (type2 === "[object Object]") { + if (block && Object.keys(state.dump).length !== 0) { + writeBlockMapping(state, level, state.dump, compact); + if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump; + } else { + writeFlowMapping(state, level, state.dump); + if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump; + } + } else if (type2 === "[object Array]") { + if (block && state.dump.length !== 0) { + if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact); + else writeBlockSequence(state, level, state.dump, compact); + if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump; + } else { + writeFlowSequence(state, level, state.dump); + if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump; + } + } else if (type2 === "[object String]") { + if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock); + } else if (type2 === "[object Undefined]") return false; + else { + if (state.skipInvalid) return false; + throw new YAMLException2("unacceptable kind of an object to dump " + type2); + } + if (state.tag !== null && state.tag !== "?") { + let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21"); + if (state.tag[0] === "!") tagStr = "!" + tagStr; + else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") tagStr = "!!" + tagStr.slice(18); + else tagStr = "!<" + tagStr + ">"; + state.dump = tagStr + " " + state.dump; + } + } + return true; + } + function getDuplicateReferences(object, state) { + const objects = []; + const duplicatesIndexes = []; + inspectNode(object, objects, duplicatesIndexes); + const length = duplicatesIndexes.length; + for (let index = 0; index < length; index += 1) state.duplicates.push(objects[duplicatesIndexes[index]]); + state.usedDuplicates = new Array(length); + } + function inspectNode(object, objects, duplicatesIndexes) { + if (object !== null && typeof object === "object") { + const index = objects.indexOf(object); + if (index !== -1) { + if (duplicatesIndexes.indexOf(index) === -1) duplicatesIndexes.push(index); + } else { + objects.push(object); + if (Array.isArray(object)) for (let i = 0, length = object.length; i < length; i += 1) inspectNode(object[i], objects, duplicatesIndexes); + else { + const objectKeyList = Object.keys(object); + for (let i = 0, length = objectKeyList.length; i < length; i += 1) inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes); + } + } + } + } + function dump2(input, options) { + options = options || {}; + const state = new State(options); + if (!state.noRefs) getDuplicateReferences(input, state); + let value = input; + if (state.replacer) value = state.replacer.call({ "": value }, "", value); + if (writeNode(state, 0, value, true, true)) return state.dump + "\n"; + return ""; + } + dumper.dump = dump2; + return dumper; +} +var hasRequiredJsYaml; +function requireJsYaml() { + if (hasRequiredJsYaml) return jsYaml; + hasRequiredJsYaml = 1; + const loader2 = requireLoader(); + const dumper2 = requireDumper(); + function renamed(from, to) { + return function() { + throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default."); + }; + } + jsYaml.Type = requireType(); + jsYaml.Schema = requireSchema(); + jsYaml.FAILSAFE_SCHEMA = requireFailsafe(); + jsYaml.JSON_SCHEMA = requireJson(); + jsYaml.CORE_SCHEMA = requireCore(); + jsYaml.DEFAULT_SCHEMA = require_default(); + jsYaml.load = loader2.load; + jsYaml.loadAll = loader2.loadAll; + jsYaml.dump = dumper2.dump; + jsYaml.YAMLException = requireException(); + jsYaml.types = { + binary: requireBinary(), + float: requireFloat(), + map: requireMap(), + null: require_null(), + pairs: requirePairs(), + set: requireSet(), + timestamp: requireTimestamp(), + bool: requireBool(), + int: requireInt(), + merge: requireMerge(), + omap: requireOmap(), + seq: requireSeq(), + str: requireStr() + }; + jsYaml.safeLoad = renamed("safeLoad", "load"); + jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll"); + jsYaml.safeDump = renamed("safeDump", "dump"); + return jsYaml; +} +const { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = /* @__PURE__ */ getDefaultExportFromCjs(requireJsYaml()); +//#endregion +//#region src/host-config.ts +/** +* Sidecar config reading for dsh-workspace-groups. The classification rules +* live in a user-editable YAML file (default `~/.dsh/workspace-groups.yaml`), +* read and validated on the host, served to the browser half as JSON. The +* core workspace.json and session storage are never touched. +*/ +/** Default sidecar location: `$DSH_HOME/workspace-groups.yaml` (DSH_HOME falls back to ~/.dsh). */ +function defaultConfigPath() { + const home = process.env.DSH_HOME !== void 0 && process.env.DSH_HOME !== "" ? process.env.DSH_HOME : resolve(homedir(), ".dsh"); + return resolve(home, "workspace-groups.yaml"); +} +/** Parse + validate a raw sidecar document into a GroupsConfig (throws on malformed input). */ +function parseGroupsConfig(raw) { + if (raw === void 0 || raw === null) return { categories: [] }; + if (typeof raw !== "object" || Array.isArray(raw)) throw new Error("workspace-groups.yaml: top-level value must be a mapping"); + const categoriesValue = raw.categories; + const categories = []; + if (categoriesValue === void 0) return { categories: [] }; + if (!Array.isArray(categoriesValue)) throw new Error("workspace-groups.yaml: categories must be a list"); + for (const entry of categoriesValue) { + if (typeof entry !== "object" || entry === null || Array.isArray(entry)) throw new Error("workspace-groups.yaml: each category must be a mapping"); + const name = entry.name; + if (typeof name !== "string" || name.trim() === "") throw new Error("workspace-groups.yaml: each category needs a non-empty name"); + const rulesValue = entry.rules; + if (rulesValue === void 0) throw new Error(`workspace-groups.yaml: category "${name}" needs a rules list`); + if (!Array.isArray(rulesValue)) throw new Error(`workspace-groups.yaml: category "${name}" rules must be a list`); + const rules = []; + for (const rule of rulesValue) { + if (typeof rule !== "object" || rule === null || Array.isArray(rule)) throw new Error(`workspace-groups.yaml: category "${name}" rule must be a mapping`); + const r = rule; + const normalized = {}; + for (const key of [ + "pathPrefix", + "nameContains", + "basenameContains", + "pathExact" + ]) { + const value = r[key]; + if (value !== void 0) { + if (typeof value !== "string" || value === "") throw new Error(`workspace-groups.yaml: category "${name}" rule ${key} must be a non-empty string`); + normalized[key] = value; + } + } + if (Object.keys(normalized).length === 0) throw new Error(`workspace-groups.yaml: category "${name}" has a rule with no matchers`); + rules.push(normalized); + } + if (rules.length === 0) throw new Error(`workspace-groups.yaml: category "${name}" needs at least one rule`); + categories.push({ + name: name.trim(), + rules + }); + } + return { categories }; +} +/** +* Read + parse the sidecar config file. A missing file yields an empty config +* (all workspaces fall into the uncategorized bucket); malformed YAML throws +* so the operator sees the problem instead of silently ungrouping everything. +*/ +async function readGroupsConfig(path) { + let text; + try { + text = await readFile(path, "utf8"); + } catch (error) { + if (error.code === "ENOENT") return { categories: [] }; + throw error; + } + return parseGroupsConfig(load(text)); +} +//#endregion +//#region src/index.ts +/** Plugin identity for cordis.yml rows. */ +const name = "dsh-workspace-groups"; +/** Services required before mounting: the webserver route. */ +const inject = ["webServer"]; +/** Write a plain-text error response with the given status. */ +function writeError(res, status, message) { + res.writeHead(status, { "Content-Type": "text/plain; charset=utf-8" }); + res.end(message); +} +/** Plugin body: mount the config route. */ +function apply(ctx) { + const configPath = defaultConfigPath(); + ctx.effect(() => ctx.webServer.register({ + kind: "exact", + path: "/workspace-groups/config", + handler: async (req, res) => { + if (req.method !== "GET" && req.method !== "HEAD") { + writeError(res, 405, "method not allowed"); + return; + } + let config; + try { + config = await readGroupsConfig(configPath); + } catch (error) { + writeError(res, 500, `workspace-groups: failed to read config: ${error instanceof Error ? error.message : String(error)}`); + return; + } + const body = JSON.stringify(config); + res.writeHead(200, { + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Content-Length": Buffer.byteLength(body) + }); + res.end(req.method === "HEAD" ? void 0 : body); + } + }), "dsh-workspace-groups: /workspace-groups/config route"); +} +//#endregion +export { apply, inject, name }; diff --git a/lib/types/client/GroupsBrowser.d.ts b/lib/types/client/GroupsBrowser.d.ts new file mode 100644 index 0000000..89f5e4f --- /dev/null +++ b/lib/types/client/GroupsBrowser.d.ts @@ -0,0 +1,7 @@ +import type { GroupsBrowserProps } from './contract.ts'; +/** + * Render the browsing region. + * @param props - composed slot props (shell owner share + store + injected actions). + * @returns the region element tree. + */ +export declare function GroupsBrowser({ wide, expandSidebar, useSessions, useWorkspaces, useStore, actions, startSession, open, renameSession, forkSession, renameWorkspace, deleteWorkspace, insertWorkspaceBefore, archiveSession, insertSessionBefore, createWorkspace, pickDirectory, searchSessions, searchResultLimit, t, }: GroupsBrowserProps): import("react").JSX.Element; diff --git a/lib/types/client/contract.d.ts b/lib/types/client/contract.d.ts new file mode 100644 index 0000000..3f6c9f4 --- /dev/null +++ b/lib/types/client/contract.d.ts @@ -0,0 +1,51 @@ +/** + * Registrant-private injected share for the workspace-groups browser entry. + * Mirrors the official ui-workspace browser inject (same runtime calls), with + * two differences: no directory-flow hole dependency (Add Workspace is + * self-contained via `pickDirectory`), and no locale-keyed naming collision. + */ +import type { PropsHooks, PropsLocale, PropsRuntime, PropsStore } from '@deepseek-ai/dsh-client-ui-slots'; +import type { HostDescriptionSource } from '@deepseek-ai/dsh-client-connection/client'; +import type { SessionId, SessionSearchResultItem, WorkspaceId, WorkspaceView } from '@deepseek-ai/dsh-client-runtime/client'; +import type { createGroupsViewStore } from './stores.ts'; +/** Injected share (arrives via the register inject factory). */ +export type GroupsBrowserInjected = { + /** Start a New Session in a Workspace (reuse-or-create its blank session and open it). */ + startSession: (workspaceId?: WorkspaceId) => void; + /** Open a real Session. */ + open: (sessionId: SessionId) => void; + /** Search current visible conversation messages. */ + searchSessions: (query: string, signal: AbortSignal) => Promise<{ + items: readonly SessionSearchResultItem[]; + hasMore: boolean; + }>; + /** Maximum number of merged rows rendered for one search. */ + searchResultLimit: number; + /** Rename a Session (resolves on host acceptance). */ + renameSession: (sessionId: SessionId, title: string) => Promise; + /** Fork a Session at its last completed turn and open the child. */ + forkSession: (sessionId: SessionId) => void; + /** Rename a Host Workspace (rejects on name conflict). */ + renameWorkspace: (workspaceId: WorkspaceId, title: string) => Promise; + /** Delete only a Host Workspace registration; directory and Session logs remain. */ + deleteWorkspace: (workspaceId: WorkspaceId) => Promise; + /** Reorder a Workspace in the durable registry display order (omitted anchor appends). */ + insertWorkspaceBefore: (workspaceId: WorkspaceId, beforeWorkspaceId?: WorkspaceId) => Promise; + /** Archive a Session into the registry-global set (hidden from grouping surfaces). */ + archiveSession: (sessionId: SessionId) => Promise; + /** Reorder a session inside its Workspace account. */ + insertSessionBefore: (workspaceId: WorkspaceId, sessionId: SessionId, beforeSessionId?: SessionId) => Promise; + /** Adopt a picked host directory as a real Workspace before targeting a Session. */ + createWorkspace: (input: { + path: string; + }) => Promise; + /** Ask the local Host to open its native single-directory chooser (self-contained Add Workspace). */ + pickDirectory: () => Promise; + /** Browser-private injected hooks (host description; bound by the slot renderer). */ + hooks: { + /** Current generation's Host description. */ + hostDescription: HostDescriptionSource; + }; +}; +/** Full browser props: shell owner share + viewing store + injected actions + locale seat. */ +export type GroupsBrowserProps = PropsRuntime<'sidebar.workspaces'> & PropsStore> & Omit & PropsHooks & PropsLocale<'workspaceGroups'>; diff --git a/lib/types/client/index.d.ts b/lib/types/client/index.d.ts new file mode 100644 index 0000000..65a6112 --- /dev/null +++ b/lib/types/client/index.d.ts @@ -0,0 +1,32 @@ +/** + * dsh-workspace-groups client half: registers the three-level grouped + * workspace browser into the `sidebar.workspaces` slot, shadowing the + * official ui-workspace browser. + * + * Shadowing mechanics (SlotCore semantics): + * - `sidebar.workspaces` is a `single`/`root` slot. The official browser + * registers at priority 0; this entry registers at priority -1, and the + * single-cell shadow rule makes the LOWEST priority the winner — the + * sidebar renders this browser instead of the official one. + * - This entry deliberately declares NO child slots: the official entry + * already declared `sidebar.workspaces.directoryFlow` (a second declaration + * of an occupied child key throws). Add Workspace is therefore self- + * contained — `ctx.workspaces.pickDirectory()` + `create()`, no hole. + */ +import type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client'; +import { type WorkspaceGroupsKey } from './locales.ts'; +declare module '@deepseek-ai/dsh-client-ui-slots' { + interface LocaleNamespaceMap { + /** The workspace-groups browsing region copy. */ + workspaceGroups: WorkspaceGroupsKey; + } +} +/** Required services (cordis fiber inject). */ +export declare const inject: string[]; +/** + * Register the grouped browser once the sidebar slot declaration is on the + * ledger. Inject factory returns plain callbacks; data reads use the + * framework's global hooks. + * @param ctx - client root context. + */ +export declare function apply(ctx: ClientContext): void; diff --git a/lib/types/client/locales.d.ts b/lib/types/client/locales.d.ts new file mode 100644 index 0000000..2a183d3 --- /dev/null +++ b/lib/types/client/locales.d.ts @@ -0,0 +1,12 @@ +/** + * Locale dictionaries for the workspace-groups browser. The namespace is + * `workspaceGroups` (independent from ui-workspace's `workspace` namespace). + */ +import type { LocaleDictOf } from '@deepseek-ai/dsh-client-ui-slots'; +/** Dictionary keys of the workspaceGroups namespace (single source of truth). */ +export type WorkspaceGroupsKey = 'section.workspaces' | 'section.sessions' | 'search' | 'search.placeholder' | 'search.clear' | 'search.noMatches' | 'search.unavailable' | 'search.pending' | 'search.hasMore' | 'search.results.aria' | 'workspace.add' | 'workspace.addBusy' | 'workspace.addError' | 'workspace.addErrorTitle' | 'workspace.rename' | 'workspace.delete' | 'workspace.deleteTitle' | 'workspace.deleteConfirm' | 'workspace.deleteCancel' | 'workspace.renaming' | 'workspace.deleting' | 'workspace.renameTitle' | 'workspace.renamePlaceholder' | 'workspace.renameConfirm' | 'workspace.renameCancel' | 'session.new' | 'session.rename' | 'session.archive' | 'session.fork' | 'session.renameTitle' | 'session.renamePlaceholder' | 'session.renameConfirm' | 'session.renameCancel' | 'session.renaming' | 'uncategorized' | 'empty.none' | 'empty.noWorkspaces' | 'close' | 'cancel' | 'confirm' | 'retry' | 'configUnavailable' | 'collapse' | 'expandMore' | 'newSession'; +export type WorkspaceGroupsDict = LocaleDictOf<'workspaceGroups'>; +/** Simplified Chinese dictionary. */ +export declare const zh: WorkspaceGroupsDict; +/** English dictionary. */ +export declare const en: WorkspaceGroupsDict; diff --git a/lib/types/client/rows.d.ts b/lib/types/client/rows.d.ts new file mode 100644 index 0000000..21e3af1 --- /dev/null +++ b/lib/types/client/rows.d.ts @@ -0,0 +1,35 @@ +import { type StateDotState } from '@deepseek-ai/dsh-client-ui-primitives'; +import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots'; +import type { CategoryNode, SessionNode, WorkspaceGroupNode } from './tree.ts'; +type T = TranslateNS<'workspaceGroups'>; +/** Primary status dot state for a session row. */ +export declare function sessionDotState(node: Pick): StateDotState; +/** Compact relative time ("now"/"5min"/"3h"/"2d"/"4mo"/"1y"). */ +export declare function relativeTimeLabel(updatedAt: number, now: number): string; +/** One category folder row. */ +export declare function CategoryRow({ node, t, onToggle }: { + node: CategoryNode; + t: T; + onToggle: () => void; +}): import("react").JSX.Element; +/** One workspace folder row inside a category. */ +export declare function WorkspaceRow({ node, t, onToggle, onNewSession, onRename, onDelete }: { + node: WorkspaceGroupNode; + t: T; + onToggle: () => void; + onNewSession: () => void; + onRename: () => void; + onDelete: () => void; +}): import("react").JSX.Element; +/** One session leaf row. */ +export declare function SessionRow({ node, currentId, now, t, onOpen, onRename, onFork, onArchive }: { + node: SessionNode; + currentId: string | undefined; + now: number; + t: T; + onOpen: (id: SessionNode['id']) => void; + onRename: (id: SessionNode['id'], currentTitle: string) => void; + onFork: (id: SessionNode['id']) => void; + onArchive: (id: SessionNode['id']) => void; +}): import("react").JSX.Element; +export type { T }; diff --git a/lib/types/client/store-core.d.ts b/lib/types/client/store-core.d.ts new file mode 100644 index 0000000..4ad0661 --- /dev/null +++ b/lib/types/client/store-core.d.ts @@ -0,0 +1,25 @@ +/** + * Pure expansion-state transforms for the workspace-groups store. Kept free + * of any runtime import so both the store (which binds them via defineStore) + * and unit tests (which exercise them directly) share one implementation. + * + * Expansion semantics follow the official ui-workspace store: collapse + * WRITES `false` (never deletes the key). The browser's auto-expand guard + * uses `Object.hasOwn` — a present `false` means "user deliberately + * collapsed this" and must NOT be re-expanded; only a fully absent key means + * "never touched" and may auto-expand. (Earlier versions deleted the key on + * collapse, which made the current category/workspace impossible to fold.) + */ +/** Workspace-groups browser viewing state persisted across surface remounts and reloads. */ +export interface GroupsViewState { + /** Category folder expansion keyed by category label (absent = never touched). */ + categoryExpansion: Record; + /** Workspace folder expansion keyed by workspace id (absent = never touched). */ + workspaceExpansion: Record; +} +/** Collapse writes `false` (key retained); expand writes `true`. */ +export declare function setCategoryExpandedImpl(state: GroupsViewState, key: string, expanded: boolean): void; +/** Collapse writes `false` (key retained); expand writes `true`. */ +export declare function setWorkspaceExpandedImpl(state: GroupsViewState, key: string, expanded: boolean): void; +/** Drop expansion keys that no longer exist (renames/deletes/config edits). */ +export declare function retainKeysImpl(state: GroupsViewState, categoryKeys: readonly string[], workspaceKeys: readonly string[]): void; diff --git a/lib/types/client/stores.d.ts b/lib/types/client/stores.d.ts new file mode 100644 index 0000000..b6d4c92 --- /dev/null +++ b/lib/types/client/stores.d.ts @@ -0,0 +1,26 @@ +/** + * The workspace-groups viewing store: category / workspace folder expansion, + * persisted across reloads under an independent key (the official + * ui-workspace store keeps its own `dsh.workspace.view.v5` — we never touch + * it). Module level exports the factory only (a module-level handle would pin + * the store identity across plugin reloads); register() receives the factory + * and the browser derives its PropsStore share from the return type. + * + * The action implementations live in `store-core.ts` (pure, runtime-free) so + * unit tests exercise the real semantics without a browser module loader; + * this file only binds them through defineStore. + */ +import { type EngineStoreHandle } from '@deepseek-ai/dsh-client-runtime/client'; +import { retainKeysImpl, setCategoryExpandedImpl, setWorkspaceExpandedImpl, type GroupsViewState } from './store-core.ts'; +/** Annotation twin of the actions literal below (structural type, satisfies `ActionsDecl`). */ +type GroupsViewActions = { + setCategoryExpanded: typeof setCategoryExpandedImpl; + setWorkspaceExpanded: typeof setWorkspaceExpandedImpl; + retainKeys: typeof retainKeysImpl; +}; +/** + * Create the workspace-groups viewing store handle. + * @returns the store handle (spec + type + identity + factory in one). + */ +export declare function createGroupsViewStore(): EngineStoreHandle; +export type { GroupsViewState } from './store-core.ts'; diff --git a/lib/types/client/tree.d.ts b/lib/types/client/tree.d.ts new file mode 100644 index 0000000..bbcdda9 --- /dev/null +++ b/lib/types/client/tree.d.ts @@ -0,0 +1,106 @@ +/** + * Derives the three-level workspace-groups tree: 分类文件夹 → 项目文件夹 → + * 会话行. Pure derivation — all inputs are snapshots; the renderer never + * scans. Session visibility rules mirror the official ui-workspace tree + * (blank rows only when current, archived excluded, subagent rows excluded). + */ +import { type PendingInteractionStatus, type SessionId, type SessionListState, type SessionSearchResultItem, type WorkspaceId, type WorkspaceView } from '@deepseek-ai/dsh-client-runtime/client'; +import { type GroupsConfig } from '../core/types.ts'; +/** One top-level session row inside a workspace folder. */ +export interface SessionNode { + id: SessionId; + /** Stored display title; blank rows show the localized New Session label. */ + title: string; + /** The provisional blank session (renderer shows the localized New Session title). */ + blank: boolean; + pendingInteraction?: PendingInteractionStatus; + running: boolean; + /** Running descendants connected through uninterrupted subagent-origin lineage. */ + runningSubagentCount: number; + /** Finished running while not selected and not yet opened (the green "done" reminder dot). */ + completed: boolean; + updatedAt: number; + /** Search-hit marker (rendered with a highlighted tint in search mode). */ + matched?: boolean; + /** Content-match snippet from the Host search (search mode only). */ + snippet?: string; +} +/** One workspace folder row inside a category folder. */ +export interface WorkspaceGroupNode { + workspaceId: WorkspaceId; + /** Canonical host directory path. */ + path: string; + /** Display title. */ + label: string; + /** Workspace creation time (epoch ms). */ + createdAt: number; + /** Total visible sessions in the folder. */ + sessionCount: number; + expanded: boolean; + /** The folder contains the selected session (active folder tint). */ + containsCurrent: boolean; + /** Visible session rows (empty while the folder is folded). */ + sessions: readonly SessionNode[]; +} +/** One category folder at the top of the tree. */ +export interface CategoryNode { + /** Stable category key: the configured label, or the uncategorized bucket. */ + key: string; + /** Display label. */ + label: string; + expanded: boolean; + /** The category contains the selected session (active folder tint). */ + containsCurrent: boolean; + /** Workspace folders in host order. */ + workspaces: readonly WorkspaceGroupNode[]; +} +/** Viewing state consumed by the derivation. */ +export interface GroupsTreeView { + expandedCategories: readonly string[]; + expandedWorkspaces: readonly string[]; +} +/** Key of the uncategorized bucket (matches the config fallback label). */ +export declare const UNCATEGORIZED_KEY = "\u672A\u5206\u7C7B"; +/** Directory display label: basename of the path (both separators accepted). */ +export declare function workspaceLabel(cwd: string | undefined): string; +/** + * Derive the three-level tree. + * @param list - sessions list snapshot (`current` feeds containsCurrent). + * @param workspaces - real workspaces in stable Host order. + * @param archivedSessionIds - registry-global archive set. + * @param config - sidecar grouping config. + * @param view - local expansion arrays. + * @returns category sections in render order (configured categories first, uncategorized last). + */ +export declare function deriveGroups(list: SessionListState, workspaces: readonly WorkspaceView[], archivedSessionIds: readonly SessionId[], config: GroupsConfig, view: GroupsTreeView): CategoryNode[]; +/** Bounded set of matched sessions plus content snippets (feeds the search tree). */ +export interface SearchMatchSet { + /** Session ids that matched (local metadata hits + Host content hits). */ + matchedIds: ReadonlySet; + /** Content-match snippets keyed by session id (Host search only). */ + snippetsBySession: ReadonlyMap; + hasMore: boolean; +} +/** + * Compute the matched-session set: immediate title/Workspace substring matches + * from the local list, merged with ranked Host content matches. The consumer + * (SearchBody) derives the pruned three-level tree from these ids. + */ +export declare function deriveSearchMatches(list: SessionListState, workspaces: readonly WorkspaceView[], config: GroupsConfig, query: string, archivedSessionIds: readonly SessionId[], content: { + items: readonly SessionSearchResultItem[]; + hasMore: boolean; +}, limit: number): SearchMatchSet; +/** + * Build a three-level search tree containing ONLY the branches that hold a + * matched session: 分类文件夹 → 项目文件夹 → 命中会话行. Every matched + * session carries `matched: true` so rows render with the search-hit tint. + * + * @param list - sessions list snapshot. + * @param workspaces - real workspaces in stable Host order. + * @param config - sidecar grouping config. + * @param matchedIds - set of session ids that matched the query. + * @param archivedSessionIds - registry-global archive set. + * @param snippetsBySession - optional content-match snippets keyed by session id. + * @returns categories in render order, pruned to matched branches only. + */ +export declare function deriveSearchGroups(list: SessionListState, workspaces: readonly WorkspaceView[], config: GroupsConfig, matchedIds: ReadonlySet, archivedSessionIds: readonly SessionId[], snippetsBySession?: ReadonlyMap): CategoryNode[]; diff --git a/lib/types/context-types.d.ts b/lib/types/context-types.d.ts new file mode 100644 index 0000000..c9aa1d6 --- /dev/null +++ b/lib/types/context-types.d.ts @@ -0,0 +1,25 @@ +/** + * Structural types for the cordis services this plugin consumes. A third-party + * plugin resolves outside the DSH monorepo's single cordis instance, so the + * upstream `declare module` augmentations do not reach this Context — the + * members below mirror the actual runtime shapes this plugin touches: + * - webServer: @deepseek-ai/dsh-host-webserver (the WebServer) + * - effect: the DSH-vendored cordis lifecycle helper + * Drift from upstream is contained to this file. + */ +import type { IncomingMessage, ServerResponse } from 'node:http'; +import type { Context } from '@deepseek-ai/cordis'; +/** One named webserver route (mirror of the host-webserver WebRoute). */ +export interface GroupsWebRoute { + kind: 'exact' | 'prefix'; + path: string; + handler: (req: IncomingMessage, res: ServerResponse) => void | Promise; +} +/** The webServer service face this plugin uses. */ +export interface GroupsWebServer { + register(route: GroupsWebRoute): () => void; +} +/** Cordis Context augmented with the services this plugin needs. */ +export interface GroupsContext extends Context { + webServer: GroupsWebServer; +} diff --git a/lib/types/core/matcher.d.ts b/lib/types/core/matcher.d.ts new file mode 100644 index 0000000..879c3c0 --- /dev/null +++ b/lib/types/core/matcher.d.ts @@ -0,0 +1,15 @@ +/** + * Pure classification logic: decides which category a workspace belongs to. + * Shared by the host half (validation) and the client half (tree derivation), + * so the rule semantics can never drift between the config surface and the + * rendered tree. + */ +import { type GroupCategory } from './types.ts'; +/** + * Classify a workspace into its category. + * @param categories - configured categories, in render order. + * @param path - workspace canonical directory path. + * @param title - workspace display title. + * @returns the matching category, or undefined when no rule matches. + */ +export declare function classify(categories: readonly GroupCategory[], path: string, title: string): GroupCategory | undefined; diff --git a/lib/types/core/types.d.ts b/lib/types/core/types.d.ts new file mode 100644 index 0000000..16d26c4 --- /dev/null +++ b/lib/types/core/types.d.ts @@ -0,0 +1,32 @@ +/** + * Shared config types for dsh-workspace-groups. Pure types (zero runtime + * deps) so both halves — the node half (sidecar YAML reading) and the + * browser half (tree derivation) — compile against the same contract. + */ +/** One classification rule: any rule that matches places the workspace in the category. */ +export interface GroupRule { + /** Absolute path prefix match (normalized, case-sensitive). */ + pathPrefix?: string; + /** Case-insensitive substring match against the workspace display title. */ + nameContains?: string; + /** Case-insensitive substring match against the workspace directory basename. */ + basenameContains?: string; + /** Exact absolute path match (normalized). */ + pathExact?: string; +} +/** One category folder in the sidebar tree. */ +export interface GroupCategory { + /** Display label of the category folder. */ + name: string; + /** Rules; a workspace is classified here when ANY rule matches. */ + rules: GroupRule[]; +} +/** The full sidecar configuration (mirrors workspace-groups.yaml). */ +export interface GroupsConfig { + /** Category folders, in render order. First match wins. */ + categories: GroupCategory[]; +} +/** The label of the fallback bucket for unmatched workspaces. */ +export declare const UNCATEGORIZED_LABEL = "\u672A\u5206\u7C7B"; +/** Normalize a path for prefix matching: trailing slashes stripped. */ +export declare function normalizePath(path: string): string; diff --git a/lib/types/host-config.d.ts b/lib/types/host-config.d.ts new file mode 100644 index 0000000..6ace14a --- /dev/null +++ b/lib/types/host-config.d.ts @@ -0,0 +1,14 @@ +import { classify } from './core/matcher.ts'; +import type { GroupsConfig } from './core/types.ts'; +/** Default sidecar location: `$DSH_HOME/workspace-groups.yaml` (DSH_HOME falls back to ~/.dsh). */ +export declare function defaultConfigPath(): string; +/** Parse + validate a raw sidecar document into a GroupsConfig (throws on malformed input). */ +export declare function parseGroupsConfig(raw: unknown): GroupsConfig; +/** + * Read + parse the sidecar config file. A missing file yields an empty config + * (all workspaces fall into the uncategorized bucket); malformed YAML throws + * so the operator sees the problem instead of silently ungrouping everything. + */ +export declare function readGroupsConfig(path: string): Promise; +export { classify }; +export type { GroupsConfig, GroupCategory, GroupRule } from './core/types.ts'; diff --git a/lib/types/index.d.ts b/lib/types/index.d.ts new file mode 100644 index 0000000..91192a3 --- /dev/null +++ b/lib/types/index.d.ts @@ -0,0 +1,7 @@ +import type { GroupsContext } from './context-types.ts'; +/** Plugin identity for cordis.yml rows. */ +export declare const name = "dsh-workspace-groups"; +/** Services required before mounting: the webserver route. */ +export declare const inject: string[]; +/** Plugin body: mount the config route. */ +export declare function apply(ctx: GroupsContext): void; diff --git a/package.json b/package.json new file mode 100644 index 0000000..d563fff --- /dev/null +++ b/package.json @@ -0,0 +1,107 @@ +{ + "name": "dsh-workspace-groups", + "version": "0.1.0", + "description": "DSH web client plugin: group sidebar workspaces into configurable category folders (分类 → 项目 → 会话 three-level tree). Sidecar YAML rules, no core storage changes.", + "keywords": [ + "dsh", + "deepseek-harness", + "deepseek-harness-plugin", + "dsh-plugin", + "plugin", + "sidebar", + "workspace", + "workspace-groups", + "client-plugin" + ], + "type": "module", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/z-col/dsh-workspace-groups" + }, + "main": "lib/index.js", + "types": "lib/types/index.d.ts", + "exports": { + ".": { + "types": "./lib/types/index.d.ts", + "default": "./lib/index.js" + }, + "./client": { + "types": "./lib/types/client/index.d.ts", + "default": "./lib/client.js" + }, + "./cordis.patch.yml": "./cordis.patch.yml", + "./package.json": "./package.json" + }, + "files": [ + "lib", + "cordis.patch.yml", + "README.md" + ], + "engines": { + "node": ">=20" + }, + "dsh": { + "bundle": { + "patch": "./cordis.patch.yml" + }, + "client": { + "platform": "web", + "inject": [ + "@deepseek-ai/dsh-client-runtime", + "@deepseek-ai/dsh-client-locale", + "@deepseek-ai/dsh-client-ui-slots" + ] + } + }, + "scripts": { + "build": "rm -rf lib && pnpm build:types && tsdown", + "build:types": "tsc -p tsconfig.build.json --noEmit false --declaration --emitDeclarationOnly --outDir lib/types", + "watch": "tsdown --watch", + "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit", + "verify": "pnpm typecheck && pnpm test", + "test": "vitest run" + }, + "peerDependencies": { + "@deepseek-ai/cordis": "^4.0.1", + "@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2", + "@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2", + "@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2", + "@deepseek-ai/dsh-client-ui-primitives": "^0.1.1-rc.2", + "@deepseek-ai/dsh-client-ui-sidebar": "^0.1.1-rc.2", + "@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2", + "@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + } + }, + "dependencies": { + "js-yaml": "^4.1.0" + }, + "devDependencies": { + "@deepseek-ai/cordis": "^4.0.1", + "@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2", + "@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2", + "@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2", + "@deepseek-ai/dsh-client-ui-primitives": "^0.1.1-rc.2", + "@deepseek-ai/dsh-client-ui-sidebar": "^0.1.1-rc.2", + "@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2", + "@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2", + "@types/js-yaml": "^4.0.9", + "@types/node": "^24.0.0", + "@types/react": "~18.3.1", + "@types/react-dom": "~18.3.0", + "js-yaml": "^4.1.0", + "jsdom": "^30.0.1", + "lightningcss": "^1.32.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "tsdown": "^0.22.2", + "typescript": "^5.6.0", + "vitest": "^4.1.8" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..d2e143e --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,3738 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + js-yaml: + specifier: ^4.1.0 + version: 4.3.1 + devDependencies: + '@deepseek-ai/cordis': + specifier: ^4.0.1 + version: 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-client-connection': + specifier: ^0.1.1-rc.2 + version: 0.1.1-rc.2(9b40f28fccfb9ee3f86188afc9586c29) + '@deepseek-ai/dsh-client-locale': + specifier: ^0.1.1-rc.2 + version: 0.1.1-rc.2(048e7c438545728704e82d9acbc5c221) + '@deepseek-ai/dsh-client-runtime': + specifier: ^0.1.1-rc.2 + version: 0.1.1-rc.2(601e9129357dc48738583e18d75d19b2) + '@deepseek-ai/dsh-client-ui-primitives': + specifier: ^0.1.1-rc.2 + version: 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-client-ui-sidebar': + specifier: ^0.1.1-rc.2 + version: 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-client-locale@0.1.1-rc.2(048e7c438545728704e82d9acbc5c221))(@deepseek-ai/dsh-client-runtime@0.1.1-rc.2(601e9129357dc48738583e18d75d19b2))(@deepseek-ai/dsh-client-ui-layout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-client-runtime@0.1.1-rc.2(601e9129357dc48738583e18d75d19b2))(@deepseek-ai/dsh-client-ui-theme@0.1.1-rc.2(a6c39110759121c55549be9a5dac7bf7))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-client-ui-slots': + specifier: ^0.1.1-rc.2 + version: 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-host-webserver': + specifier: ^0.1.1-rc.2 + version: 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@types/js-yaml': + specifier: ^4.0.9 + version: 4.0.9 + '@types/node': + specifier: ^24.0.0 + version: 24.13.3 + '@types/react': + specifier: ~18.3.1 + version: 18.3.31 + '@types/react-dom': + specifier: ~18.3.0 + version: 18.3.7(@types/react@18.3.31) + jsdom: + specifier: ^30.0.1 + version: 30.0.1 + lightningcss: + specifier: ^1.32.0 + version: 1.33.0 + react: + specifier: ^18.2.0 + version: 18.3.1 + react-dom: + specifier: ^18.2.0 + version: 18.3.1(react@18.3.1) + tsdown: + specifier: ^0.22.2 + version: 0.22.14(typescript@5.9.3) + typescript: + specifier: ^5.6.0 + version: 5.9.3 + vitest: + specifier: ^4.1.8 + version: 4.1.11(@types/node@24.13.3)(jsdom@30.0.1)(vite@8.2.2(@types/node@24.13.3)) + +packages: + + '@asamuzakjp/css-color@6.0.7': + resolution: {integrity: sha512-vC/bk1Lz7Tn/EfU9/apOTBk80/8dyGyWMowPoV1tJ52muDGsDqt2HPT2klrFUiY60MQmQv9q8yIht15JnBgDGw==} + engines: {node: ^22.13.0 || >=24.0.0} + + '@asamuzakjp/dom-selector@8.3.2': + resolution: {integrity: sha512-93Z1N+BQNXysodoicpOIyNh2drHfz/CTf9nnT0FEx72GJcIiwgydD7tGAr78j41LsYn3hlRn+LdGPuBLn1Bl8Q==} + engines: {node: ^22.13.0 || >=24.0.0} + + '@bramus/specificity@2.4.2': + resolution: {integrity: sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==} + hasBin: true + + '@csstools/color-helpers@6.1.1': + resolution: {integrity: sha512-gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==} + engines: {node: '>=20.19.0'} + + '@csstools/css-calc@3.3.0': + resolution: {integrity: sha512-c5ihYsPkdG6JCkU2zTMm4+k6r7RXuGxtWYhu5DHMIiF1FHzrfmHL5so11AoFpUv/tu61xfcmT4AmKoFfMPoqdQ==} + engines: {node: '>=20.19.0'} + peerDependencies: + '@csstools/css-parser-algorithms': ^4.0.0 + '@csstools/css-tokenizer': ^4.0.0 + + '@csstools/css-color-parser@4.2.0': + resolution: {integrity: sha512-5+5LEmFuY1AjXdYhmgjTJogtQnP1evJ1zrBZGUNZ0thkpwnnmKxcHdAMn/OtFjAb25zA+jKDVYVRl+5G7rjv1A==} + engines: {node: '>=20.19.0'} + peerDependencies: + '@csstools/css-parser-algorithms': ^4.0.0 + '@csstools/css-tokenizer': ^4.0.0 + + '@csstools/css-parser-algorithms@4.0.0': + resolution: {integrity: sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==} + engines: {node: '>=20.19.0'} + peerDependencies: + '@csstools/css-tokenizer': ^4.0.0 + + '@csstools/css-syntax-patches-for-csstree@1.1.8': + resolution: {integrity: sha512-CpMLjAvwQg3BL5S0IeqsZNMH7EQrEWi0kLKOC13ZBF0ZwERiLWlibNPJr8G1kdU3Ms/r2KiNrF81pUh2HwAHdg==} + peerDependencies: + css-tree: ^3.2.1 + peerDependenciesMeta: + css-tree: + optional: true + + '@csstools/css-tokenizer@4.0.0': + resolution: {integrity: sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==} + engines: {node: '>=20.19.0'} + + '@deepseek-ai/cordis-plugin-include@1.0.6': + resolution: {integrity: sha512-i1VXrZCbv6tk/iUgedCNjrxxArbWT3IvRZGB5sdqJ3ectnihivXXQbRZ8JJ73DSmAPvlMGmrbtjFAfm10yvXRg==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/cordis-plugin-loader': ^1.0.2 + + '@deepseek-ai/cordis-plugin-loader@1.0.2': + resolution: {integrity: sha512-RIW9hoVyhYDWdCI9BsvtZccPde1ECLC4OAxupwowGTak78vwVTVdb3HezTSOK1Y1/Ax3Ru0LA1pYOB04CnTxIQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + node-addon-require-builtin: ^0.1.4 + peerDependenciesMeta: + node-addon-require-builtin: + optional: true + + '@deepseek-ai/cordis@4.0.1': + resolution: {integrity: sha512-YBdskTU2Po1kru3GgcUWUbkTsPMA9LkSQDAY8rBkFJeajdgcQad3QPJZE26JyK99Xb6HaASvoXg2DSUTeN/0Nw==} + hasBin: true + peerDependencies: + '@deepseek-ai/cordis-plugin-include': ^1.0.6 + '@deepseek-ai/cordis-plugin-loader': ^1.0.2 + peerDependenciesMeta: + '@deepseek-ai/cordis-plugin-include': + optional: true + '@deepseek-ai/cordis-plugin-loader': + optional: true + + '@deepseek-ai/cosmokit@1.8.2': + resolution: {integrity: sha512-muBOKtSrUKU5m/xpq8ZXWL6hQ/jgd4PhU2PqH97bcxIiLEJfNwZOGQEx4t/aS/GgxRAR+ra9pMHPMtTHU4sqqA==} + + '@deepseek-ai/dsh-agent-default-model@0.1.1-rc.2': + resolution: {integrity: sha512-Pv+4p20Eol7Ds/n0OS0vjtChCWfFTJAMThxugXcEcLKEJ9WAtpI4mzWfLgjmeVXnwD2yvp6HlLKDrrQV9PIkww==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-settings': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-agent-presets@0.1.1-rc.2': + resolution: {integrity: sha512-88r3jkrbdwTgcP3MZLIUX458Ecu8JcLmZa7PtPszwf33yFoWlZvZmgjyn5ETHV55plNQ8gKMRm9a0RwzGGmzCw==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/cordis-plugin-include': ^1.0.6 + '@deepseek-ai/cordis-plugin-loader': ^1.0.2 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-atomic-write': ^0.1.1-rc.2 + '@deepseek-ai/dsh-home-paths': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-settings': ^0.1.1-rc.2 + '@deepseek-ai/dsh-system-prompt': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-agent@0.1.1-rc.2': + resolution: {integrity: sha512-cC7lnJe7JgPFcreNXxcxLMxQd78LnpVO9ZXROjZsGRQN1zGH6i/DduI892F1am85IfzzO+XTxMwwUHmfwamb0g==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-system-prompt': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-protocol': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-api-gateway@0.1.1-rc.2': + resolution: {integrity: sha512-i/e/Ecg1QCjMePUFHBfjRQU3NbDV0IdORwQbQD6RpiirzyvAIm4vvZgmW/FfgkO2XYJHHIVjo3i1i0YaHPcQag==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-client-connection': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-registry': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-api-remotes@0.1.1-rc.2': + resolution: {integrity: sha512-mtmMxA0TZwTjy46E2DF0kmsPCXVq6RBhrwEHWXBaRzc0DLjnYqmJODrZ0X+XwXOkwFZtDxWSv/uheiIsXf8now==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-agent-presets': ^0.1.1-rc.2 + '@deepseek-ai/dsh-api-gateway': ^0.1.1-rc.2 + '@deepseek-ai/dsh-commands': ^0.1.1-rc.2 + '@deepseek-ai/dsh-cordis-host-runner': ^0.1.1-rc.2 + '@deepseek-ai/dsh-credentials': ^0.1.1-rc.2 + '@deepseek-ai/dsh-file-reference': ^0.1.1-rc.2 + '@deepseek-ai/dsh-goal': ^0.1.1-rc.2 + '@deepseek-ai/dsh-host-plugin-inventory': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-message-feedback': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-persistence': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-reference': ^0.1.1-rc.2 + '@deepseek-ai/dsh-settings': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-registry': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-atomic-write@0.1.1-rc.2': + resolution: {integrity: sha512-QqNSF0+Ddn6qWY480dlilwEy6FLv3JKEWx1UQgoNJrxD4y54SDRzqBQB9yDXWKOoOGyC+05TN6/Px10GNIzMWA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-attachment@0.1.1-rc.2': + resolution: {integrity: sha512-rCYAt8QsawP1yfDCU7XxNwYT/XWvyFsxYrkwhLLkdfW83QVD0CQHizSkTQE7RFX74nKUD1z3sTLfnLr7xneArw==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-brand@0.1.1-rc.2': + resolution: {integrity: sha512-8vXsAXoUdzKAgvd/E9DgyT6HKmR6ZM4rtJ3fs/XoJ6n2kBk4tWil8Lv+jxCMWJeMOnTJF55gu2+NWQ3ECFPtJw==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-client-connection@0.1.1-rc.2': + resolution: {integrity: sha512-YX2WLA/aZdDQsien4Zo7IHTEfYVJ+4QhRXbgA6BrRUM23NSP/+V3K00dQYyQVsF3ZwocE5uyvlZvbYeg1Iz4ug==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-attachment': ^0.1.1-rc.2 + '@deepseek-ai/dsh-commands': ^0.1.1-rc.2 + '@deepseek-ai/dsh-host-apiproxy': ^0.1.1-rc.2 + '@deepseek-ai/dsh-host-webserver': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-tools': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-client-locale@0.1.1-rc.2': + resolution: {integrity: sha512-AMoR4FwMPLmt6WlYd4m0PCoxXj4qqMhpElBQZSc3r3NyGCZIuleU8tCG1xphGtr/w9mA1Y0kUX7Ftdmf7yV4FQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-api-remotes': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-connection': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-runtime': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-ui-settings': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-settings': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-client-runtime@0.1.1-rc.2': + resolution: {integrity: sha512-o1FH7Rlns0Xaxh4SBOWZ1wpa0ViGw6DXWNm5NFpsBTGYD94RGdIrud3QxgrfzmQKLzu33gvS8JL/IjqbzWyYsg==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-api-remotes': ^0.1.1-rc.2 + '@deepseek-ai/dsh-attachment': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-connection': ^0.1.1-rc.2 + '@deepseek-ai/dsh-commands': ^0.1.1-rc.2 + '@deepseek-ai/dsh-host-apiproxy': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm-retry': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-projection': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-title': ^0.1.1-rc.2 + '@deepseek-ai/dsh-tools': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-protocol': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-registry': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-client-ui-layout@0.1.1-rc.2': + resolution: {integrity: sha512-y7xSQyQYGuahLyJcSXpB+JbH1F5lGEc3L9K8cjLy5vd/L9N6gLFLWyeGdlGxxM4jxRt1+rAHDDZ/zl7b8GC5zQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-client-runtime': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-ui-theme': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-client-ui-primitives@0.1.1-rc.2': + resolution: {integrity: sha512-vCWEha1yhY//26j/LppHC/xZrU6MOuw6lcI4bJr5L7ppbY8h7GAR24ozBr+4ESMtQ5OmsvqGnsa/Kj5ZjSLfEQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-client-ui-settings@0.1.1-rc.2': + resolution: {integrity: sha512-WqEQkyjW467leTJoA31BgqM+nALI3JnrvN1IXDhJuKd8E9nXhTLJcRgDrovEUkh2cjbHF8g8gQJ5Qafg9PzJiQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-api-remotes': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-connection': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-runtime': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-settings': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-client-ui-sidebar@0.1.1-rc.2': + resolution: {integrity: sha512-UCilyaNPwMO54JYtpCW5leLL+ecwtoRd4sHNVNG94aPQAqZOrqH+hqrBBsuolDJ9d0cKG9K5Mtew0fPz/hByZA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-client-locale': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-runtime': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-ui-layout': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-client-ui-slots@0.1.1-rc.2': + resolution: {integrity: sha512-6uBi+Wq+dH1Q8RaJpbK66TjzPlkcSNDWvNZgQXw45RRQCi1gnm/gxFOyJcSQvgqk4pvm2/h/aIvaM/Pa5PRFCA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-client-ui-theme@0.1.1-rc.2': + resolution: {integrity: sha512-gRKI92D+EZtOy7UBkRfNvyL4e/3HikZ7exQSfgGpLEJ278/aXMvStNbL5ZgWVC41+MSZsBUk3dZAfbXNjelz2g==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-api-remotes': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-connection': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-locale': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-runtime': ^0.1.1-rc.2 + '@deepseek-ai/dsh-client-ui-settings': ^0.1.1-rc.2 + '@deepseek-ai/dsh-host-webserver': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-settings': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-code-runtime@0.1.1-rc.2': + resolution: {integrity: sha512-SgFresqH5UABzRQZ7tOfqzOLMHF7089VeH+mfcwNQH5peOavgEKrAGOYz/9RnISH0XmMrj/x177t8gfO8Uvo/w==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-commands@0.1.1-rc.2': + resolution: {integrity: sha512-BOIe4Sht9rmMv1a6b3GWjWBbeWr7PtHlAy41vgpaymvUUuzOapOIA648ZMGCI/crRIt72Umev2FHtSwCNSbYZg==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-attachment': ^0.1.1-rc.2 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-protocol': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-compaction@0.1.1-rc.2': + resolution: {integrity: sha512-LV5GAIx7GO8DCRivnN2bmLmuucsYDG+ifG18BaXBqsVKdrzmaIu5o+CBxQAI2bX1N6mfBenLxmvCnROkyumLTg==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-commands': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-cordis-host-runner@0.1.1-rc.2': + resolution: {integrity: sha512-+AQGegPy+gdtcjTTPxDDYwAFUn6BB1J/MFFbmpPr+WIqJoDyVsuCDe8Rr8mCJmxs12CmTZXXSOE03LW203W8fA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-tools': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-protocol': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-credentials@0.1.1-rc.2': + resolution: {integrity: sha512-aeVBaH07rox7NuSNbSqbz8g0eNb2IIhNbrZngj/VxUsr/TR9TXOq7lm1CL6SBUDlstGw3vNWeXyhim/DmA5iSQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-file-reference@0.1.1-rc.2': + resolution: {integrity: sha512-8Pd4SNHhV6OlbwfV5K4qmFb709I0Z68qgaUQJ7zM4BTjClNe1/dktQnETtWPfqbPTx/2sNKXM1rz4WXuROrIfQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-protocol': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-goal@0.1.1-rc.2': + resolution: {integrity: sha512-lSHTh4vfS6eRb9to/y+bjRf2+0QkNpY3tHJ29HMTewR9fJYZsEVVu4Hc+GPhPEjF7RpiD35/sKx+akijtDasyg==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-projection': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-protocol': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-home-paths@0.1.1-rc.2': + resolution: {integrity: sha512-lGsP7sbnu20AiRAb+gxYiKx9oa9r1D/8Fr6BwWHXpaPx6ZE4Qg0+ybh5SZVfGQ+XhLcQisu3nwWemEjtTJGiig==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-host-apiproxy@0.1.1-rc.2': + resolution: {integrity: sha512-dplRnGGXXsQYFQ1KMHymAM0iaxuE9Z153JHYcGEgOwXNkS3HA20gSi3yMt6fz+zi/cMHYXvY1JQhS54BTc761A==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent-presets': ^0.1.1-rc.2 + '@deepseek-ai/dsh-cordis-host-runner': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-host-directory-picker@0.1.1-rc.2': + resolution: {integrity: sha512-m3puwS+bvJQ1eASdpEEwlQqKa9znhBSgtoSSI0GZN5VMynZVl7E31HMltENz3QC2Nd+C3bh7vNjrJFtumUDsLQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-host-plugin-inventory@0.1.1-rc.2': + resolution: {integrity: sha512-Hud9ezW0bexWfhX7C+c5rdUDX1xzbEGDzj1lGQyj/QxdrxHYHjGrJq3tLRyvN6K4FSmEdG2IBKdQGCOLVrIthA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/cordis-plugin-loader': ^1.0.2 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-protocol': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-host-webserver@0.1.1-rc.2': + resolution: {integrity: sha512-t9MrjC65QHiiWhG9V8UZxgfE/aWYhJHHrIM0kbTvtXxg4tLGIKo/upHp7iiag65F3HTkVLrH/DUyPMi4v2ZA7g==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-invariants@0.1.1-rc.2': + resolution: {integrity: sha512-l+1Om/EDFyMjhgSuEx2WDLLA2fia/+ga9mBTCoT/MMslsnWaK5G0/lWwbwlTBSaJ6OfmYc3DuBgox8DbgIGHRQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + + '@deepseek-ai/dsh-jobs@0.1.1-rc.2': + resolution: {integrity: sha512-SXvDJMvcUrGrlzIyE7j8/lI4Pj1nDe/UOR8C05Zagp+/0R8p46n6KylySvZdPAFENV5t8WX3Fw3eOaS4No0+wQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-llm-retry@0.1.1-rc.2': + resolution: {integrity: sha512-a13Fpmn8HFy8LCjl6gljaNPxcVjO/R+/uMPDl0QLjwQcHWVyGW38ZA8jP5iRuFgdyNNXpyxLWuZXi/0VOH00tA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-timeout': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-llm@0.1.1-rc.2': + resolution: {integrity: sha512-ASJfjIdZbIXvLwi3rGo+eZb/GxMVV/WO5/XVD3B96mT8EIzrlw3+nMR6/CvmJVzcycKQ2XN0wj7jD6TasPRySA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-attachment': ^0.1.1-rc.2 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-timeout': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-message-feedback@0.1.1-rc.2': + resolution: {integrity: sha512-GzxDiNvyUVs/bbbm+Hr3MfuU3wM8ErRF5z9XadnSGPYZvipZDAMrvrS5v6JgOUaZt6ApBpEMJ4xVgIel1VnGYQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-persistence': ^0.1.1-rc.2 + '@deepseek-ai/dsh-storage-domain': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-protocol': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-native-command@0.1.1-rc.2': + resolution: {integrity: sha512-GIknPrwU7vZOUQ2o/ES7Z0uUhUrZGp/yigKP+RXEu41VI9tcybiXQAA8CEdDFmNQ11R2wfYQhr3WO5vy35akWg==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-output-retention@0.1.1-rc.2': + resolution: {integrity: sha512-tCni+bTEp/FWokfz3fqn4p6SzHn6pkY6H3HkS9UY5PHrztUE1ESUQUp41kIVtwUhRmJU7yissqjxe6kLDB6t2Q==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-scope@0.1.1-rc.2': + resolution: {integrity: sha512-Xy3ejL6dwVSluZL7XOWy76ya4pCw1uHwxodDK4O9XiQUiUV4FBXnt0aNJUtMeAFN0c1YujxxCmRniMvuuNn1Nw==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-session-persistence@0.1.1-rc.2': + resolution: {integrity: sha512-dxdYxRfmK5jWtiFFabqRNb/jGGjkXyF2djI7O8IIKmDVjhQiv170zpvhbAhRUuqClEdseCtbQpLBrRm2blzt3g==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-timeout': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-session-projection-cache@0.1.1-rc.2': + resolution: {integrity: sha512-UvCRpIb+LoQI/nCLof17xc2P2KuZoucU3VuzfAukfsF3dYZAy5OP7jrCRdVZIvjRfvFUd7G+awdS9sWbnjcolg==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-persistence': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-projection': ^0.1.1-rc.2 + '@deepseek-ai/dsh-storage-domain': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-session-projection@0.1.1-rc.2': + resolution: {integrity: sha512-SNaOrjRS4RMXocna6uL33TeS/uhcQ7jDJtJZ1HyDPL06mXUdAgje2MVt8OZCh6dH95xIiqpQQm+KjzeiQnhYSQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-session-query@0.1.1-rc.2': + resolution: {integrity: sha512-QxQFRg/KnrZnYiO7fNtTJVTakuGs9ZFRkGGgYuNPzSz1pRqiohGNE/JZzBtq+HMv38RRTRZrM4aIOUV8OgqoXQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-persistence': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-title': ^0.1.1-rc.2 + peerDependenciesMeta: + '@deepseek-ai/dsh-session-persistence': + optional: true + + '@deepseek-ai/dsh-session-reference@0.1.1-rc.2': + resolution: {integrity: sha512-c9mz19ndxjVxSnXEhmJwGDjyKG4oNmu4Sfneix8OUJ+mAr3jIgb/QZZ8rYEc8Bi+Dd1z7Wr90IeWOBF0nolU3A==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-compaction': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-output-retention': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-query': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-protocol': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-session-title@0.1.1-rc.2': + resolution: {integrity: sha512-qHv+9nE6J/piHsWwckmbJBS1sJjunCWsv00arhsgjW1XMLCHxG6QOB+U48P4EBZjve798Tz8AQIlWZy+9T8XmA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-projection': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-session@0.1.1-rc.2': + resolution: {integrity: sha512-4/cv6X9HPhm47eyRhCu/WZwzrtJKegk5J+0xaxcZ9i8S0smdxP57tqy8a0jkSshLQn7BzMFxneQrlYExrLrDhQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + '@deepseek-ai/dsh-typert-protocol': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-settings@0.1.1-rc.2': + resolution: {integrity: sha512-iGdKEt91Im3gE7xA9CzRfTJsPcFcxDeDOCLhAjzbpjEv7TAjx/EoYP7lPtiy+QmOjKSKy206SEtAKol9PXWbOw==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/schemastery': ^3.18.1 + + '@deepseek-ai/dsh-skill@0.1.1-rc.2': + resolution: {integrity: sha512-FACjlOqdsWX+0RtSs3RWrdY0QQEpPJrBfvxUbWSh7E8UyCM8dKdIbsQnuXIjsAgC7GgYp7lyFDSCMovQ3ARp8g==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-storage-domain@0.1.1-rc.2': + resolution: {integrity: sha512-9/3OuaZpxf9NZWhrARpgZ7UBa03pPaTIiDBw+SfESfwVk42NNLVCQgvnEbrWoNwdtzmv0aYCEV23sKwwlQ0LBA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-storage': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-storage@0.1.1-rc.2': + resolution: {integrity: sha512-ptJ1ss8spF+Y2VXjsMV37Qh1+hviYWZylDvXtfEBXjLbPi/BP3dktT4B6OMIAD1rRN+0A4HdTqJBgLk7Gp1rig==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-subagent@0.1.1-rc.2': + resolution: {integrity: sha512-CNa0WuFCR69TMnBKYQInz49/olDSaVHiYkDTyTuDh7YW7Y80/f/HjQe5G0fQaqZMLla3IUSXCIPl5EssWmjcQw==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-agent-presets': ^0.1.1-rc.2 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-jobs': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-sandbox': ^0.1.1-rc.2 + '@deepseek-ai/dsh-sandbox-policy': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-persistence': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-projection': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-projection-cache': ^0.1.1-rc.2 + '@deepseek-ai/dsh-tools': ^0.1.1-rc.2 + '@deepseek-ai/dsh-user-approval': ^0.1.1-rc.2 + peerDependenciesMeta: + '@deepseek-ai/dsh-agent-presets': + optional: true + '@deepseek-ai/dsh-jobs': + optional: true + '@deepseek-ai/dsh-sandbox': + optional: true + '@deepseek-ai/dsh-sandbox-policy': + optional: true + '@deepseek-ai/dsh-session-persistence': + optional: true + '@deepseek-ai/dsh-session-projection': + optional: true + '@deepseek-ai/dsh-session-projection-cache': + optional: true + '@deepseek-ai/dsh-user-approval': + optional: true + + '@deepseek-ai/dsh-system-prompt@0.1.1-rc.2': + resolution: {integrity: sha512-on4hjAlYI5uX9q7Sf95YkMMBVe6heywtA/H50ksrIMUub8U2B98hO9iQpHhjwIO1F1vu+5pLcPvRr6yUGGmtXQ==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-timeout@0.1.1-rc.2': + resolution: {integrity: sha512-RrouVgU3G5gXr9zHhpThkMG6YKdcRJzXXdPm1dq3ioBxbvxlfMSfNY4tN8lWMJxLyGtvWkPra0HQX+YWxvdOOA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-tools@0.1.1-rc.2': + resolution: {integrity: sha512-0GGL4D55MwYDepzZMOI3L0ycu5b2qr96GL0Y7snwhAnpK2Di61rbX3fJE+PB3ZrovGX0csIRdt9n3iJZDVtDrw==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-code-runtime': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-system-prompt': ^0.1.1-rc.2 + '@deepseek-ai/dsh-user-approval': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-typert-protocol@0.1.1-rc.2': + resolution: {integrity: sha512-lxBssDc5Pz1qBE5kuIyaArA7AvIPq9rpaVclylodiSzVJe95e2xruBg73tflyjtd8y00toet+DLgQ6tSSsq6Kw==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-typert-registry@0.1.1-rc.2': + resolution: {integrity: sha512-ATZu3i7UId+ktsWW3pUFm5Hi1fVsRXFmByATVPp2RlxH1zjxXnauVW6k70ZwU/4FOsphRzo65SXOlAXA+natYg==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-user-approval@0.1.1-rc.2': + resolution: {integrity: sha512-SdsO4Rs+NeJFoertkVilXBACREOLfkKPJJznYKqDhJxeRo38RJ56dtj0Xd0/6rERmsQiMck4Bwdrzg1ubUqPNA==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + '@deepseek-ai/dsh-scope': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-system-prompt': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-user-questions@0.1.1-rc.2': + resolution: {integrity: sha512-9lYoB7qCFE+Vvgwjny3MnRfS7QUefOspj4KpE3b30DAAJfxwrU4hRtLCHOKxyurF01qrkoEBBpXn4H5ilXYTKg==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-agent': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-llm': ^0.1.1-rc.2 + + '@deepseek-ai/dsh-workspace@0.1.1-rc.2': + resolution: {integrity: sha512-jBUob4H5TZAiExq9YNVCglKAFmAKMtd1UbyqFfnZZ1Owm+3c3NbAXY947MHiD6NwCwFEW1y7FjrFj66UQvG90A==} + peerDependencies: + '@deepseek-ai/cordis': ^4.0.1 + '@deepseek-ai/dsh-brand': ^0.1.1-rc.2 + '@deepseek-ai/dsh-invariants': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session': ^0.1.1-rc.2 + '@deepseek-ai/dsh-session-persistence': ^0.1.1-rc.2 + '@deepseek-ai/dsh-storage': ^0.1.1-rc.2 + '@deepseek-ai/dsh-storage-domain': ^0.1.1-rc.2 + + '@deepseek-ai/schemastery@3.18.1': + resolution: {integrity: sha512-Qn0FCSwCQnpnj6SB31I6i2sIKgKWnkbJM8O0EU91Gv2UsYVvtZTl6IA0sCwk2e2MZf5S8w5hpq9QkeVvK9qwxg==} + + '@exodus/bytes@1.15.1': + resolution: {integrity: sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==} + engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} + peerDependencies: + '@noble/hashes': ^1.8.0 || ^2.0.0 + peerDependenciesMeta: + '@noble/hashes': + optional: true + + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + + '@oxc-project/types@0.146.0': + resolution: {integrity: sha512-XC0QsnnhVe7sLIWmYmdPw7x5P0h4W8vUU3Nv1ySgWXtvCz8NizoAEpGXA0sOYoJQV2Rl13LgURAHQ5cI5ILCSA==} + + '@quansync/fs@1.0.0': + resolution: {integrity: sha512-4TJ3DFtlf1L5LDMaM6CanJ/0lckGNtJcMjQ1NAV6zDmA0tEHKZtxNKin8EgPaVX1YzljbxckyT2tJrpQKAtngQ==} + + '@rolldown/binding-android-arm-eabi@1.2.5': + resolution: {integrity: sha512-DLe/i+l8ynIBY7XEQ191TeZvCoowIGa18R+dIV30GW7DiOtp74i/xX8hs8GUjW5ARV7VZuie3d6AumSmCwbeRA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.2.5': + resolution: {integrity: sha512-zXcwKlQApYAOELHd8PwKDFkagYF9Wy4e0RJ+0qnzl9Pjnpj75TEG8ufv40p2J7kCEfwZAsNiuzRIyNNMWT38ig==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.2.5': + resolution: {integrity: sha512-dK4QakI42nzWgJT5sm4y4y/O//D4OxM75/cH28RLV+nzIN9AY+YsbuUVrUTjlLjXR6vpyxFbSsbmNuJ6BP9sww==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.2.5': + resolution: {integrity: sha512-fqSALaUu1Wjd1nK2uW2kJDWdLCc8lx1IcY+MTY26Aurfdx19anlzhqXOgCFbBFQnlFDTn4TC1/7Nz4Bl2mLP3A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.2.5': + resolution: {integrity: sha512-/vCnNxlkxs9tKxNDcyWUePpJ/PgTzxIaVhoM5SmG8UV+GR/IcPam4VYxi7GIMo7PSDuNqlJqvprqii9NqqVCMw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.2.5': + resolution: {integrity: sha512-abk0NLA519LxRCszmbE0jYKuQ9YPocOXTiOXOo6Yr+YAT95VH+PtqYAjOJvGKt3viEd/x4qzabAlwd5bHOOARg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.2.5': + resolution: {integrity: sha512-Y7eALiJ8lr0M2HH103Js+g7V34wf6snlpZLAsHI90uLhr3PVlNsbFVAXJC9d/V6BnPyKtpSwI+NcB/RLxsQxuA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.2.5': + resolution: {integrity: sha512-xMvZgnbZg4YVnR/AX2b3oOPDTFYJvUVaJg5FedA/LuvexAtXibZQej4cnTkw3rjsJ/ggUROB64TdtETiim+FYA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.2.5': + resolution: {integrity: sha512-GRjeqTUDHTo5GwntsLaAMcBahG3nlpjftXWZLN73HiYQlhwEowvarFgQnRnQZtIp4keXX7quXFbG38uPZBa2EA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.2.5': + resolution: {integrity: sha512-vLNTR45F2Uwc8AufkNXPmB4VliaXs+FvcheEogIzOXzO4l+LzieXF5A/TWxLy5HtqpsRCHUfd0lPVrrdgXdLHQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.2.5': + resolution: {integrity: sha512-Mgj59/HTuYeK9Gz2MA+mBWKnHsAgkBSec15ZMb1st3oIfFbX7gCjOae7GydHhzcyQi9Z/7M1QuN9bR3oFqF0jQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.2.5': + resolution: {integrity: sha512-mY8AP0/ichsbhAxGnLa3d3+MwV0EfgrPND2bplI3Ym8T6R2pJ0N87bvrKVwNXmdy3jnr6eQBecdqx/HMknBmpA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.2.5': + resolution: {integrity: sha512-8SLssA2oweAxyRgDp789ACfRb/3P+zNRJpzZxSizxF9m8NUDQ4+3xjo8ttjhVGGw6Qxb70oZiEtIjaKikCO7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-win32-arm64-msvc@1.2.5': + resolution: {integrity: sha512-vGbruD5zquhoc8D9SViXgN2FBJtNdTyQ4DtG+SWiEGlJiAzoKcZ2xp+xuXCffhubVdt0NJlTZqkeRuERy7g8Cw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.2.5': + resolution: {integrity: sha512-e/SXpgISz+IoqVcSSI0rx/d/he8zqLex+/rCWpnHpmVfmPIUjag9H6P7zotf0gJHwPUhQxZ/mF8tr6acebT9yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.0.1': + resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} + + '@shikijs/core@4.4.3': + resolution: {integrity: sha512-QCR4q2ZO/ILJEuwiBMel4wdcTDb1JGwfjKTxPDF6x8ixOaluPrVqIn06C99AcRPhmYlBR56d/Fb+GN58GzExpg==} + engines: {node: '>=20'} + + '@shikijs/engine-javascript@4.4.3': + resolution: {integrity: sha512-FbOjFJp9VLdo1Wevs10BBtVxiTWwNLqZh5Gkhjgda/ioL15YOgeSl9n+6XMa3qRlPQzfhFNe641SrynFHYG0nQ==} + engines: {node: '>=20'} + + '@shikijs/engine-oniguruma@4.4.3': + resolution: {integrity: sha512-EcOQkxdxGQrc1Row/cC2c96/v1dbZqGnEVu1qTuT/MJmp6+cXCvQussowVmCv5Tqr3KuY3c7IbM6HTW3LJ1k9w==} + engines: {node: '>=20'} + + '@shikijs/langs@4.4.3': + resolution: {integrity: sha512-ePic0yfAJGOF83D5wBHK/00EjK65oahBYxFk5epgq33WRv7X9UuxLEV8PtR0szC0z8dl7INIpIodB99JRFlR+A==} + engines: {node: '>=20'} + + '@shikijs/primitive@4.4.3': + resolution: {integrity: sha512-m0wBeLDQDeIxRdUmrCPdQqfuUamDwRL5isCfYbguKD6NiaKpVbsv+3J81DyIKgNW5h4WAIIr8T4EkgQrBBxvaQ==} + engines: {node: '>=20'} + + '@shikijs/themes@4.4.3': + resolution: {integrity: sha512-w8UHjeUnIR965KMWJHUPXOc2mNJUnK3vpVLYLvw5IYU2mnTTJ89E24OrJDBNiJDQ0qzb0tc4l7mrIXx5cFeIyw==} + engines: {node: '>=20'} + + '@shikijs/types@4.4.3': + resolution: {integrity: sha512-UEJxmRR++MAGR6hugn0vgVS2W/6lWAts84FFSrnlH9sP0LNol7E5+NQ792pH8liWUhyMyjhTgSUH3k7iD7tc5g==} + engines: {node: '>=20'} + + '@shikijs/vscode-textmate@10.0.2': + resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==} + + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + + '@types/debug@4.1.13': + resolution: {integrity: sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + + '@types/estree@1.0.9': + resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + + '@types/hast@3.0.5': + resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==} + + '@types/js-yaml@4.0.9': + resolution: {integrity: sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==} + + '@types/katex@0.16.8': + resolution: {integrity: sha512-trgaNyfU+Xh2Tc+ABIb44a5AYUpicB3uwirOioeOkNPPbmgRNtcWyDeeFRzjPZENO9Vq8gvVqfhaaXWLlevVwg==} + + '@types/mdast@4.0.4': + resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} + + '@types/ms@2.1.0': + resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} + + '@types/node@24.13.3': + resolution: {integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==} + + '@types/prop-types@15.7.15': + resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==} + + '@types/react-dom@18.3.7': + resolution: {integrity: sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==} + peerDependencies: + '@types/react': ^18.0.0 + + '@types/react@18.3.31': + resolution: {integrity: sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==} + + '@types/unist@3.0.3': + resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + + '@ungap/structured-clone@1.3.3': + resolution: {integrity: sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==} + + '@vitest/expect@4.1.11': + resolution: {integrity: sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==} + + '@vitest/mocker@4.1.11': + resolution: {integrity: sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==} + peerDependencies: + msw: ^2.4.9 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@4.1.11': + resolution: {integrity: sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==} + + '@vitest/runner@4.1.11': + resolution: {integrity: sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==} + + '@vitest/snapshot@4.1.11': + resolution: {integrity: sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==} + + '@vitest/spy@4.1.11': + resolution: {integrity: sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==} + + '@vitest/utils@4.1.11': + resolution: {integrity: sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==} + + '@yuku-codegen/binding-android-arm64@0.8.7': + resolution: {integrity: sha512-C/0zV5IhgVdYhGJTwrY0v8dknxlhiKwtVJkMUaexu9/QvRmzlV4vfU3hZlUSgqc2BxQHntL1mCVbDq8j0FRFDw==} + cpu: [arm64] + os: [android] + + '@yuku-codegen/binding-darwin-arm64@0.8.7': + resolution: {integrity: sha512-/u+REDMI4a0/lsJXTM4c53/w31OGZLOReZIyg62uhgLs0kc8NHsj/nOcxTdlQjq5gi0zhdkccD9LaLTXcdzPvw==} + cpu: [arm64] + os: [darwin] + + '@yuku-codegen/binding-darwin-x64@0.8.7': + resolution: {integrity: sha512-sMMzFOwCo4WXR+/6zIBThOocSC50iIIZZdfiIDbaLvj0Ax/rWt/iavyfEAqajyvzydLyCqR/ZItdLWSRlu1umw==} + cpu: [x64] + os: [darwin] + + '@yuku-codegen/binding-freebsd-x64@0.8.7': + resolution: {integrity: sha512-MpdpKXix9P+Y1rKgjvcNeNtGjXeL1CmttNhYINrWls8kRpm4xM/oBGTmn6w7to8lAlwj5jm8q03dQPl5mRv4Qw==} + cpu: [x64] + os: [freebsd] + + '@yuku-codegen/binding-linux-arm-gnu@0.8.7': + resolution: {integrity: sha512-rr1srFLlPAmC1vtxfc9C1YLDe3iH09YjfSeeIidBqKhzx1MATjOAq4mjlRUOnhr/L27MotWIYOFKwVsd5JZFOg==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@yuku-codegen/binding-linux-arm-musl@0.8.7': + resolution: {integrity: sha512-eAufXh8qBRpiSO6ueaMDL+yyoXIGLhpUce72YbcACtZU2qhExwBIJyEtQf5kH2Ki0X2aqkSjSfog4OPtKXan3Q==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@yuku-codegen/binding-linux-arm64-gnu@0.8.7': + resolution: {integrity: sha512-gw4w6wPoHObBrdIC4duVWLmJOvpdE25j5D7yrM5mACNlK4klRz/lv8hK+ssQk9EJHBgZjSaqZIJVFgqNYbfv7A==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@yuku-codegen/binding-linux-arm64-musl@0.8.7': + resolution: {integrity: sha512-L68N6Y4XkqcIaKo3Ra88JEvBEH4AHff44A4INcrxeVWZ8CZtu2tCpfVxe3hR8qQQMcvBSQlDn24KpkCKEhVvfA==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@yuku-codegen/binding-linux-x64-gnu@0.8.7': + resolution: {integrity: sha512-dzyAbltJmf3Cqlb8HcFuYIf5Yn0fl1vTr3XJ9HiVNNvOlhqPSArOqtw9vI1p6/VTXTjrMLXlU+s+/kNHiIy/Cw==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@yuku-codegen/binding-linux-x64-musl@0.8.7': + resolution: {integrity: sha512-Otw4MH3404q0Bbvl+YTdW9aoUV5vXmUw8260bWvt1XlaoIX/ceSgI4ygheRDMfBPoHt6FDayQaO9OLVUZAgkFA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@yuku-codegen/binding-win32-arm64@0.8.7': + resolution: {integrity: sha512-qo/jyrzryiBuKEsFiuWaBCBe3tRMynQ0qFWFgOEjcCMQeZfBm+wKiVEUEFXXLc7bh8YezguAWp0Mtnhq4ARNyA==} + cpu: [arm64] + os: [win32] + + '@yuku-codegen/binding-win32-x64@0.8.7': + resolution: {integrity: sha512-D5lDsVDx6m00E6bWySlWdH72Ca4TPSaphDqB6QjU6MpuNLIJqoGoatYyq2rOmBE8Zv/kunot/o58KGL03P3eiA==} + cpu: [x64] + os: [win32] + + '@yuku-parser/binding-android-arm64@0.8.7': + resolution: {integrity: sha512-eGKYiUDX7Y0V7tDTmg+JTVnXnjMqfXXsorZ+EDf5kxwchQ3Or1HS14MzI2fw+jFhHR85fCWt+mtX33Yao73hIQ==} + cpu: [arm64] + os: [android] + + '@yuku-parser/binding-darwin-arm64@0.8.7': + resolution: {integrity: sha512-Re0RHelKLnjEURulY2/KxW+Ngb8zuNA4BRZuMwgGQNzVumT6u4U2N2hc01oeYVNVof0i7GrXE4UCNBgbpRRnjQ==} + cpu: [arm64] + os: [darwin] + + '@yuku-parser/binding-darwin-x64@0.8.7': + resolution: {integrity: sha512-Hn8DROtQkjlA1ACbPgj4a7eP9IuVOI504oiTwpkWPbpaDWD9KdmnVYCqW+1LfenNK/g7O9NhWGpXEdaCNX7lIA==} + cpu: [x64] + os: [darwin] + + '@yuku-parser/binding-freebsd-x64@0.8.7': + resolution: {integrity: sha512-bAP2OV8wRuzplX/jYxv9+vvqQT8JxyNphI8fLfXGL054Xs+4/J5u33cIm3y4rxY8rdoLmmdiJs2Tq7r7lrDRfA==} + cpu: [x64] + os: [freebsd] + + '@yuku-parser/binding-linux-arm-gnu@0.8.7': + resolution: {integrity: sha512-kTYwJQQgmZeAWdDIWabiReIZMpmfLueIj1tCmjStUtFGhR1Z0qwxonKVfUC4N7h/VhGGzLZ//7O1kgt1QKqgCg==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@yuku-parser/binding-linux-arm-musl@0.8.7': + resolution: {integrity: sha512-uL4jE8HPT2BLlxAXyD10LqgPuXa9eDa0BKpCdSANmzIJghq/2eZo3/gQNtaxPZMupWoxjYzSad9IXrwu7aYPXQ==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@yuku-parser/binding-linux-arm64-gnu@0.8.7': + resolution: {integrity: sha512-3gVN4pWSKZmXiNX7cU164dR9MPvesCHnlH6nPfpK+yQsCuYphjKKplcb4SnZBrhiqmXbgb2HR0c2TS0IZUPhgA==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@yuku-parser/binding-linux-arm64-musl@0.8.7': + resolution: {integrity: sha512-S0mwfEjoLpxzXeZw802Wa4RaELsQiPtWqG6INcy8j4GtvNFtl4LCX3eGO1XLn9pyLAISLzTRyU3zUCBUPin8lg==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@yuku-parser/binding-linux-x64-gnu@0.8.7': + resolution: {integrity: sha512-lnbWdPmerE5D1uH1G4IEZKnPzCrWCStRGrtgpSIe1RibAo5bZIjDbbbPYXmMHCEh4F+x/JaJpElh26a3r+BPbg==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@yuku-parser/binding-linux-x64-musl@0.8.7': + resolution: {integrity: sha512-769uwndMvMzUvATWbAcEvyLHKA+DzhHSCl/obBUrRdYfRo26yxui6S8y3z7uJ+Naup7UKrDxrpK7OnQkxkl9KQ==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@yuku-parser/binding-win32-arm64@0.8.7': + resolution: {integrity: sha512-mEB/9PlaAkisJ6KWGz0zvywXoU6+80dTlR2LwS7s/jcXXoU6fm2+sitBZXtqu3+Q4DcDgPxM45uWMCzPs0TSRw==} + cpu: [arm64] + os: [win32] + + '@yuku-parser/binding-win32-x64@0.8.7': + resolution: {integrity: sha512-8vNB2DP0ou61nGb8tc/qfi41gfyDXz1MHr2zqL3nR+cJ6CEbiuWV/l/a/vv151gCgiZLLAyGkQGENpozdg716w==} + cpu: [x64] + os: [win32] + + '@yuku-toolchain/types@0.8.7': + resolution: {integrity: sha512-2Z53dNxAJL6UvFoIrDZvYf3zlO8s4VJK4O2hhaB4mXVwwpX/7ajtss3cmfqKvamlNLWyt9FSWs4eoYdlbxpnHA==} + + anser@2.3.5: + resolution: {integrity: sha512-vcZjxvvVoxTeR5XBNJB38oTu/7eDCZlwdz32N1eNgpyPF7j/Z7Idf+CUwQOkKKpJ7RJyjxgLHCM7vdIK0iCNMQ==} + + ansis@4.3.1: + resolution: {integrity: sha512-BJ8/l4R5LRE7hW9WdSuGYrLSHi2ynxeFpDFbH0K/CgNeY/tyhk+vO6TYxXC5r5CpUhNVX310xzPsN/H9lCdfOA==} + engines: {node: '>=14'} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + bidi-js@1.0.3: + resolution: {integrity: sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==} + + cac@7.0.0: + resolution: {integrity: sha512-tixWYgm5ZoOD+3g6UTea91eow5z6AAHaho3g0V9CNSNb45gM8SmflpAc+GRd1InC4AqN/07Unrgp56Y94N9hJQ==} + engines: {node: '>=20.19.0'} + + ccount@2.0.1: + resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} + + chai@6.2.2: + resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} + engines: {node: '>=18'} + + character-entities-html4@2.1.0: + resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} + + character-entities-legacy@3.0.0: + resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==} + + character-entities@2.0.2: + resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==} + + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + + comma-separated-tokens@2.0.3: + resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} + + commander@8.3.0: + resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==} + engines: {node: '>= 12'} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + css-tree@3.2.1: + resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==} + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + data-urls@7.0.0: + resolution: {integrity: sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==} + engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + decimal.js@10.6.0: + resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==} + + decode-named-character-reference@1.3.0: + resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + devlop@1.1.0: + resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} + + dts-resolver@3.0.0: + resolution: {integrity: sha512-1T1f+z+4tl9XD+m+0HBgWoL/nm0bOIffyWaUuUSBlFg/86IWvfx+wjNaO/ybU0AJzG9/Mi5hBUgGV6zCmWEN7Q==} + engines: {node: ^22.18.0 || >=24.0.0} + peerDependencies: + oxc-resolver: '>=11.0.0' + peerDependenciesMeta: + oxc-resolver: + optional: true + + empathic@2.0.1: + resolution: {integrity: sha512-YGRs8knHhKHVShLkFET/rWAU8kmHbOV5LwN938RHI0pljAJ1Gf6SzXsSmRaEzcXTtOOmVqJ5+WtQPL5uigY50Q==} + engines: {node: '>=14'} + + entities@8.0.0: + resolution: {integrity: sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==} + engines: {node: '>=20.19.0'} + + es-module-lexer@2.3.2: + resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} + + escape-string-regexp@5.0.0: + resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} + engines: {node: '>=12'} + + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} + engines: {node: '>=12.0.0'} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + get-tsconfig@5.0.0-beta.5: + resolution: {integrity: sha512-/6gFNr0N04nob252sTQxyFLi3eKFRqIg1I87YcqAMT1i6SQrSF6KujUEQrtrjMV0H/eejTCltLdDSTEMzHbnsQ==} + engines: {node: '>=20.20.0'} + + hast-util-to-html@9.0.5: + resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==} + + hast-util-whitespace@3.0.0: + resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} + + hookable@6.1.1: + resolution: {integrity: sha512-U9LYDy1CwhMCnprUfeAZWZGByVbhd54hwepegYTK7Pi5NvqEj63ifz5z+xukznehT7i6NIZRu89Ay1AZmRsLEQ==} + + html-encoding-sniffer@6.0.0: + resolution: {integrity: sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==} + engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} + + html-void-elements@3.0.0: + resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} + + immer@10.2.0: + resolution: {integrity: sha512-d/+XTN3zfODyjr89gM3mPq1WNX2B8pYsu7eORitdwyA2sBubnTl3laYlBk4sXY5FUa5qTZGBDPJICVbvqzjlbw==} + + import-without-cache@0.4.0: + resolution: {integrity: sha512-NkJQA7oZ4YHQhd2+H3BoRFKF3d/XNsiKpHZCQEMH9pDX27hQQLsTyOocyRgaIVtf8gHX3Nt3LPkR4e5EdtPAGQ==} + engines: {node: ^22.18.0 || >=24.0.0} + + is-potential-custom-element-name@1.0.1: + resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + js-yaml@4.3.1: + resolution: {integrity: sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==} + hasBin: true + + jsdom@30.0.1: + resolution: {integrity: sha512-52v7mUVUfNQVYYqE1lcdaymWL0njO7lTLUog6ZvW2U5KsbiLk/GnZlVJ+qx0xfNJZ6Gn+KSpPNE52vurbxZwrA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + canvas: ^3.2.3 + peerDependenciesMeta: + canvas: + optional: true + + katex@0.16.47: + resolution: {integrity: sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==} + hasBin: true + + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} + engines: {node: '>= 12.0.0'} + + longest-streak@3.1.0: + resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} + + loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + + lru-cache@11.5.2: + resolution: {integrity: sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==} + engines: {node: 20 || >=22} + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + markdown-table@3.0.4: + resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==} + + mdast-util-find-and-replace@3.0.2: + resolution: {integrity: sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==} + + mdast-util-from-markdown@2.0.3: + resolution: {integrity: sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==} + + mdast-util-gfm-autolink-literal@2.0.1: + resolution: {integrity: sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==} + + mdast-util-gfm-footnote@2.1.0: + resolution: {integrity: sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==} + + mdast-util-gfm-strikethrough@2.0.0: + resolution: {integrity: sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==} + + mdast-util-gfm-table@2.0.0: + resolution: {integrity: sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==} + + mdast-util-gfm-task-list-item@2.0.0: + resolution: {integrity: sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==} + + mdast-util-gfm@3.1.0: + resolution: {integrity: sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==} + + mdast-util-math@3.0.0: + resolution: {integrity: sha512-Tl9GBNeG/AhJnQM221bJR2HPvLOSnLE/T9cJI9tlc6zwQk2nPk/4f0cHkOdEixQPC/j8UtKDdITswvLAy1OZ1w==} + + mdast-util-phrasing@4.1.0: + resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==} + + mdast-util-to-hast@13.2.1: + resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==} + + mdast-util-to-markdown@2.1.2: + resolution: {integrity: sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==} + + mdast-util-to-string@4.0.0: + resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==} + + mdn-data@2.27.1: + resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==} + + micromark-core-commonmark@2.0.3: + resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==} + + micromark-extension-gfm-autolink-literal@2.1.0: + resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==} + + micromark-extension-gfm-footnote@2.1.0: + resolution: {integrity: sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==} + + micromark-extension-gfm-strikethrough@2.1.0: + resolution: {integrity: sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==} + + micromark-extension-gfm-table@2.1.1: + resolution: {integrity: sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==} + + micromark-extension-gfm-tagfilter@2.0.0: + resolution: {integrity: sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==} + + micromark-extension-gfm-task-list-item@2.1.0: + resolution: {integrity: sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==} + + micromark-extension-gfm@3.0.0: + resolution: {integrity: sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==} + + micromark-extension-math@3.1.0: + resolution: {integrity: sha512-lvEqd+fHjATVs+2v/8kg9i5Q0AP2k85H0WUOwpIVvUML8BapsMvh1XAogmQjOCsLpoKRCVQqEkQBB3NhVBcsOg==} + + micromark-factory-destination@2.0.1: + resolution: {integrity: sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==} + + micromark-factory-label@2.0.1: + resolution: {integrity: sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==} + + micromark-factory-space@2.0.1: + resolution: {integrity: sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==} + + micromark-factory-title@2.0.1: + resolution: {integrity: sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==} + + micromark-factory-whitespace@2.0.1: + resolution: {integrity: sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==} + + micromark-util-character@2.1.1: + resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==} + + micromark-util-chunked@2.0.1: + resolution: {integrity: sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==} + + micromark-util-classify-character@2.0.1: + resolution: {integrity: sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==} + + micromark-util-combine-extensions@2.0.1: + resolution: {integrity: sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==} + + micromark-util-decode-numeric-character-reference@2.0.2: + resolution: {integrity: sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==} + + micromark-util-decode-string@2.0.1: + resolution: {integrity: sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==} + + micromark-util-encode@2.0.1: + resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==} + + micromark-util-html-tag-name@2.0.1: + resolution: {integrity: sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==} + + micromark-util-normalize-identifier@2.0.1: + resolution: {integrity: sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==} + + micromark-util-resolve-all@2.0.1: + resolution: {integrity: sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==} + + micromark-util-sanitize-uri@2.0.1: + resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==} + + micromark-util-subtokenize@2.1.0: + resolution: {integrity: sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==} + + micromark-util-symbol@2.0.1: + resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==} + + micromark-util-types@2.0.2: + resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==} + + micromark@4.0.2: + resolution: {integrity: sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + nanoid@3.3.18: + resolution: {integrity: sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + obug@2.1.4: + resolution: {integrity: sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==} + engines: {node: '>=12.20.0'} + + oniguruma-parser@0.12.2: + resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==} + + oniguruma-to-es@4.3.6: + resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==} + + parse5@8.0.1: + resolution: {integrity: sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.5: + resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} + engines: {node: '>=12'} + + postcss@8.5.26: + resolution: {integrity: sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==} + engines: {node: ^10 || ^12 || >=14} + + property-information@7.2.0: + resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + quansync@1.0.0: + resolution: {integrity: sha512-5xZacEEufv3HSTPQuchrvV6soaiACMFnq1H8wkVioctoH3TRha9Sz66lOxRwPK/qZj7HPiSveih9yAyh98gvqA==} + + react-dom@18.3.1: + resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} + peerDependencies: + react: ^18.3.1 + + react@18.3.1: + resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} + engines: {node: '>=0.10.0'} + + regex-recursion@6.0.2: + resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==} + + regex-utilities@2.3.0: + resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} + + regex@6.1.0: + resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + + rolldown-plugin-dts@0.27.14: + resolution: {integrity: sha512-ZvuDDwoIpRK9RPxDXratCpklFO9QZZWndf/sd0VBFb4LEj0jj07UcHK9OCh7V4XiFz2Z89ziyBC2K6tJiDjrbw==} + engines: {node: ^22.18.0 || >=24.11.0} + peerDependencies: + '@typescript/native-preview': '*' + '@volar/typescript': ~2.4.0 + rolldown: ^1.0.0 + typescript: ^5.0.0 || ^6.0.0 || ~7.0.0 + vue-tsc: ~3.2.0 || ~3.3.0 + peerDependenciesMeta: + '@typescript/native-preview': + optional: true + '@volar/typescript': + optional: true + typescript: + optional: true + vue-tsc: + optional: true + + rolldown@1.2.5: + resolution: {integrity: sha512-VD2IE5PUG4Oj8zz2VGykiYd5wbnjdIiSsNQb8Qu5B+noEp+A78mu2iVvpp27g8es14Tk9rofNs5Tku9iQCS4fA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + saxes@6.0.0: + resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} + engines: {node: '>=v12.22.7'} + + scheduler@0.23.2: + resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + + shiki@4.4.3: + resolution: {integrity: sha512-Mb/GvXPHBAXdgGIcnfU5L3ldpn1XcxrGkPHwqgRx17/I2XRfqlFKk2vGkHWINn1kdXvzJZeuO3is6I9KLPFm0g==} + engines: {node: '>=20'} + + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + space-separated-tokens@2.0.2: + resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} + + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + std-env@4.2.0: + resolution: {integrity: sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==} + + stringify-entities@4.0.4: + resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==} + + symbol-tree@3.2.4: + resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinyexec@1.3.0: + resolution: {integrity: sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==} + engines: {node: '>=18'} + + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + + tinyrainbow@3.1.1: + resolution: {integrity: sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==} + engines: {node: '>=14.0.0'} + + tldts-core@7.4.10: + resolution: {integrity: sha512-KnQjp53ZekKgm/r3l+u8kJGGzYgrWdP8+Mql7a4vijh2WE0IrZWspQj/TpTxDho/YxO+AnOZnIjQcCD+q6iJsw==} + + tldts@7.4.10: + resolution: {integrity: sha512-GgouD1B+sWwvkaEq8vXC15DjQitxbvs12oIXELpconwm+Tg3zfcEv4jgzq3vtKverDXsg3VI8aRgNL2Nra0Iog==} + hasBin: true + + tough-cookie@6.0.2: + resolution: {integrity: sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==} + engines: {node: '>=16'} + + tr46@6.0.0: + resolution: {integrity: sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==} + engines: {node: '>=20'} + + tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + + trim-lines@3.0.1: + resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} + + tsdown@0.22.14: + resolution: {integrity: sha512-ule7Y+fsAN2iZbLDoo7C4KYljFJNJJ+fLshyn+9gozeTspVersWHxwdGB+Dm2hzA38s6muFnUTl0jK3vJm9ifQ==} + engines: {node: ^22.18.0 || >=24.11.0} + hasBin: true + peerDependencies: + '@arethetypeswrong/core': ^0.18.1 + '@tsdown/css': 0.22.14 + '@tsdown/exe': 0.22.14 + '@vitejs/devtools': '*' + publint: ^0.3.8 + tsx: '*' + typescript: ^5.0.0 || ^6.0.0 || ^7.0.0 + unplugin-unused: ^0.5.0 + unrun: '*' + peerDependenciesMeta: + '@arethetypeswrong/core': + optional: true + '@tsdown/css': + optional: true + '@tsdown/exe': + optional: true + '@vitejs/devtools': + optional: true + publint: + optional: true + tsx: + optional: true + typescript: + optional: true + unplugin-unused: + optional: true + unrun: + optional: true + + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + + unconfig-core@7.5.0: + resolution: {integrity: sha512-Su3FauozOGP44ZmKdHy2oE6LPjk51M/TRRjHv2HNCWiDvfvCoxC2lno6jevMA91MYAdCdwP05QnWdWpSbncX/w==} + + undici-types@7.18.2: + resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} + + undici@8.10.0: + resolution: {integrity: sha512-HvltHd7avK13QIw/oLe4qoOLyoVSoafqJ2jYOrtMRBkbYT31eiBQ8O0ehRKZiEZCMEyLFQNIADpgCWC5fALvYQ==} + engines: {node: '>=22.19.0'} + + unist-util-is@6.0.1: + resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} + + unist-util-position@5.0.0: + resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==} + + unist-util-remove-position@5.0.0: + resolution: {integrity: sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==} + + unist-util-stringify-position@4.0.0: + resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} + + unist-util-visit-parents@6.0.2: + resolution: {integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==} + + unist-util-visit@5.1.0: + resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==} + + use-sync-external-store@1.2.0: + resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + + verkit@0.3.2: + resolution: {integrity: sha512-zj/ob3UsvJGN0whEAKFp53REA5X66hvffVqoCtVQAakJKnKlH+/PcOfMoFwIG/o4rElqLv/ycAFlx8ZlXUorCg==} + engines: {node: '>=18.12.0'} + + vfile-message@4.0.3: + resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==} + + vfile@6.0.3: + resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} + + vite@8.2.2: + resolution: {integrity: sha512-cFKLV/PRgAUlIRm5WjMjJ86jrftzpqcgH+Us+DS8mI3CDNiH30Whrz8uHL3+MOLPAgqbMBAqWdAHAphOAM+z/Q==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + '@vitejs/devtools': ^0.4.0 || ^0.5.0 + esbuild: ^0.27.0 || ^0.28.0 + jiti: '>=1.21.0' + less: ^4.0.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + '@vitejs/devtools': + optional: true + esbuild: + optional: true + jiti: + optional: true + less: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitest@4.1.11: + resolution: {integrity: sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==} + engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@opentelemetry/api': ^1.9.0 + '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 4.1.11 + '@vitest/browser-preview': 4.1.11 + '@vitest/browser-webdriverio': 4.1.11 + '@vitest/coverage-istanbul': 4.1.11 + '@vitest/coverage-v8': 4.1.11 + '@vitest/ui': 4.1.11 + happy-dom: '*' + jsdom: '*' + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@opentelemetry/api': + optional: true + '@types/node': + optional: true + '@vitest/browser-playwright': + optional: true + '@vitest/browser-preview': + optional: true + '@vitest/browser-webdriverio': + optional: true + '@vitest/coverage-istanbul': + optional: true + '@vitest/coverage-v8': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + w3c-xmlserializer@5.0.0: + resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} + engines: {node: '>=18'} + + webidl-conversions@8.0.1: + resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==} + engines: {node: '>=20'} + + whatwg-mimetype@5.0.0: + resolution: {integrity: sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==} + engines: {node: '>=20'} + + whatwg-url@16.0.1: + resolution: {integrity: sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==} + engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} + + whatwg-url@17.1.0: + resolution: {integrity: sha512-3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw==} + engines: {node: ^22.14.0 || >=24.0.0} + + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + + ws@8.21.3: + resolution: {integrity: sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + xml-name-validator@5.0.0: + resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==} + engines: {node: '>=18'} + + xmlchars@2.2.0: + resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + + yuku-ast@0.8.7: + resolution: {integrity: sha512-h6+4bDfyootiMB9vckk5uKo5r5j0GHrkr17FQTDNfEsFT3DWlN9uu1HJwQwc64pgmLCI945fWM3lbTIqxjT3GQ==} + + yuku-codegen@0.8.7: + resolution: {integrity: sha512-adwDZSh8oVDzhE6Du9PwVWxcOxeV0e2EVhUuMKWfhSY4wkrDq9eqixlxFF3l/XGUV1E7UFzhpz9393MUumkyNw==} + + yuku-parser@0.8.7: + resolution: {integrity: sha512-vRD9nwt4L3aYpxNqeSC4WqLv58xrXef0Ong1Mc45CTXTIpvLafx7JO05sczmQZwdLEZvywrLOGdNC5+Rp5N1BQ==} + + zod@4.4.3: + resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} + + zustand@4.4.7: + resolution: {integrity: sha512-QFJWJMdlETcI69paJwhSMJz7PPWjVP8Sjhclxmxmxv/RYI7ZOvR5BHX+ktH0we9gTWQMxcne8q1OY8xxz604gw==} + engines: {node: '>=12.7.0'} + peerDependencies: + '@types/react': '>=16.8' + immer: '>=9.0' + react: '>=16.8' + peerDependenciesMeta: + '@types/react': + optional: true + immer: + optional: true + react: + optional: true + + zwitch@2.0.4: + resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} + +snapshots: + + '@asamuzakjp/css-color@6.0.7': + dependencies: + '@csstools/css-calc': 3.3.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) + '@csstools/css-color-parser': 4.2.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) + '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) + '@csstools/css-tokenizer': 4.0.0 + lru-cache: 11.5.2 + + '@asamuzakjp/dom-selector@8.3.2': + dependencies: + bidi-js: 1.0.3 + css-tree: 3.2.1 + is-potential-custom-element-name: 1.0.1 + lru-cache: 11.5.2 + + '@bramus/specificity@2.4.2': + dependencies: + css-tree: 3.2.1 + + '@csstools/color-helpers@6.1.1': {} + + '@csstools/css-calc@3.3.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0)': + dependencies: + '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) + '@csstools/css-tokenizer': 4.0.0 + + '@csstools/css-color-parser@4.2.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0)': + dependencies: + '@csstools/color-helpers': 6.1.1 + '@csstools/css-calc': 3.3.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) + '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) + '@csstools/css-tokenizer': 4.0.0 + + '@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0)': + dependencies: + '@csstools/css-tokenizer': 4.0.0 + + '@csstools/css-syntax-patches-for-csstree@1.1.8(css-tree@3.2.1)': + optionalDependencies: + css-tree: 3.2.1 + + '@csstools/css-tokenizer@4.0.0': {} + + '@deepseek-ai/cordis-plugin-include@1.0.6(@deepseek-ai/cordis-plugin-loader@1.0.2)(@deepseek-ai/cordis@4.0.1)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/cordis-plugin-loader': 1.0.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/cosmokit': 1.8.2 + js-yaml: 4.3.1 + + '@deepseek-ai/cordis-plugin-loader@1.0.2(@deepseek-ai/cordis@4.0.1)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/cosmokit': 1.8.2 + + '@deepseek-ai/cordis@4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2)': + dependencies: + '@deepseek-ai/cosmokit': 1.8.2 + '@standard-schema/spec': 1.1.0 + optionalDependencies: + '@deepseek-ai/cordis-plugin-include': 1.0.6(@deepseek-ai/cordis-plugin-loader@1.0.2)(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/cordis-plugin-loader': 1.0.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/cosmokit@1.8.2': {} + + '@deepseek-ai/dsh-agent-default-model@0.1.1-rc.2(cffd0b3811dd3fb50ded7f3d23c3fd53)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-settings': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-agent-presets@0.1.1-rc.2(5200ead8959daeaefdf3dd69ba905368)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/cordis-plugin-include': 1.0.6(@deepseek-ai/cordis-plugin-loader@1.0.2)(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/cordis-plugin-loader': 1.0.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-atomic-write': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-home-paths': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-settings': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1) + '@deepseek-ai/dsh-system-prompt': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-llm@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))))(@deepseek-ai/dsh-scope@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/schemastery': 3.18.1 + js-yaml: 4.3.1 + + '@deepseek-ai/dsh-agent@0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-system-prompt': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-llm@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))))(@deepseek-ai/dsh-scope@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + + '@deepseek-ai/dsh-api-gateway@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-client-connection@0.1.1-rc.2)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-typert-registry@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-client-connection': 0.1.1-rc.2(9b40f28fccfb9ee3f86188afc9586c29) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-typert-registry': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + + '@deepseek-ai/dsh-api-remotes@0.1.1-rc.2(0037c360ed8ef45e74e856e82932995e)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-agent-presets': 0.1.1-rc.2(5200ead8959daeaefdf3dd69ba905368) + '@deepseek-ai/dsh-api-gateway': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-client-connection@0.1.1-rc.2)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-typert-registry@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-commands': 0.1.1-rc.2(0ecd3a66a950f0a38490382753aa1d93) + '@deepseek-ai/dsh-cordis-host-runner': 0.1.1-rc.2(c90d5f481a921221b380b90110ccbd94) + '@deepseek-ai/dsh-credentials': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-file-reference': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-agent@0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-typert-protocol@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-goal': 0.1.1-rc.2(a40f169b35a63b1d25a94e0ed91514fe) + '@deepseek-ai/dsh-host-plugin-inventory': 0.1.1-rc.2(@deepseek-ai/cordis-plugin-loader@1.0.2)(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-typert-protocol@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-message-feedback': 0.1.1-rc.2(b957b1ba06764ef01eadad39e9185151) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-session-reference': 0.1.1-rc.2(535ff208b76500c8770cfd701efd9f97) + '@deepseek-ai/dsh-settings': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-typert-registry': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + + '@deepseek-ai/dsh-atomic-write@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-client-connection@0.1.1-rc.2(9b40f28fccfb9ee3f86188afc9586c29)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-attachment': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-commands': 0.1.1-rc.2(0ecd3a66a950f0a38490382753aa1d93) + '@deepseek-ai/dsh-host-apiproxy': 0.1.1-rc.2(3a4ac70475a4c9406aac4d9ef9838e03) + '@deepseek-ai/dsh-host-webserver': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-tools': 0.1.1-rc.2(119bc70f73f8eddebfaa6b47561adeb3) + '@deepseek-ai/schemastery': 3.18.1 + ws: 8.21.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + '@deepseek-ai/dsh-client-locale@0.1.1-rc.2(048e7c438545728704e82d9acbc5c221)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-api-remotes': 0.1.1-rc.2(0037c360ed8ef45e74e856e82932995e) + '@deepseek-ai/dsh-client-connection': 0.1.1-rc.2(9b40f28fccfb9ee3f86188afc9586c29) + '@deepseek-ai/dsh-client-runtime': 0.1.1-rc.2(601e9129357dc48738583e18d75d19b2) + '@deepseek-ai/dsh-client-ui-settings': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-api-remotes@0.1.1-rc.2(0037c360ed8ef45e74e856e82932995e))(@deepseek-ai/dsh-client-connection@0.1.1-rc.2)(@deepseek-ai/dsh-client-runtime@0.1.1-rc.2(601e9129357dc48738583e18d75d19b2))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-settings@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-settings': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-client-runtime@0.1.1-rc.2(601e9129357dc48738583e18d75d19b2)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-api-remotes': 0.1.1-rc.2(0037c360ed8ef45e74e856e82932995e) + '@deepseek-ai/dsh-attachment': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-client-connection': 0.1.1-rc.2(9b40f28fccfb9ee3f86188afc9586c29) + '@deepseek-ai/dsh-commands': 0.1.1-rc.2(0ecd3a66a950f0a38490382753aa1d93) + '@deepseek-ai/dsh-host-apiproxy': 0.1.1-rc.2(3a4ac70475a4c9406aac4d9ef9838e03) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-llm-retry': 0.1.1-rc.2(a0b14eb40667f7e2f3e22b89a59650a0) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc)) + '@deepseek-ai/dsh-session-title': 0.1.1-rc.2(54f3cb7dfcb0c20072924b6c262cea76) + '@deepseek-ai/dsh-tools': 0.1.1-rc.2(119bc70f73f8eddebfaa6b47561adeb3) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-typert-registry': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + immer: 10.2.0 + zustand: 4.4.7(@types/react@18.3.31)(immer@10.2.0)(react@18.3.1) + transitivePeerDependencies: + - '@types/react' + - react + + '@deepseek-ai/dsh-client-ui-layout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-client-runtime@0.1.1-rc.2(601e9129357dc48738583e18d75d19b2))(@deepseek-ai/dsh-client-ui-theme@0.1.1-rc.2(a6c39110759121c55549be9a5dac7bf7))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-client-runtime': 0.1.1-rc.2(601e9129357dc48738583e18d75d19b2) + '@deepseek-ai/dsh-client-ui-theme': 0.1.1-rc.2(a6c39110759121c55549be9a5dac7bf7) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-client-ui-primitives@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@shikijs/langs': 4.4.3 + '@types/mdast': 4.0.4 + anser: 2.3.5 + clsx: 2.1.1 + katex: 0.16.47 + mdast-util-from-markdown: 2.0.3 + mdast-util-gfm: 3.1.0 + mdast-util-math: 3.0.0 + micromark-core-commonmark: 2.0.3 + micromark-extension-gfm: 3.0.0 + micromark-extension-math: 3.1.0 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-classify-character: 2.0.1 + micromark-util-sanitize-uri: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shiki: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@deepseek-ai/dsh-client-ui-settings@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-api-remotes@0.1.1-rc.2(0037c360ed8ef45e74e856e82932995e))(@deepseek-ai/dsh-client-connection@0.1.1-rc.2)(@deepseek-ai/dsh-client-runtime@0.1.1-rc.2(601e9129357dc48738583e18d75d19b2))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-settings@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-api-remotes': 0.1.1-rc.2(0037c360ed8ef45e74e856e82932995e) + '@deepseek-ai/dsh-client-connection': 0.1.1-rc.2(9b40f28fccfb9ee3f86188afc9586c29) + '@deepseek-ai/dsh-client-runtime': 0.1.1-rc.2(601e9129357dc48738583e18d75d19b2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-settings': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-client-ui-sidebar@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-client-locale@0.1.1-rc.2(048e7c438545728704e82d9acbc5c221))(@deepseek-ai/dsh-client-runtime@0.1.1-rc.2(601e9129357dc48738583e18d75d19b2))(@deepseek-ai/dsh-client-ui-layout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-client-runtime@0.1.1-rc.2(601e9129357dc48738583e18d75d19b2))(@deepseek-ai/dsh-client-ui-theme@0.1.1-rc.2(a6c39110759121c55549be9a5dac7bf7))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-client-locale': 0.1.1-rc.2(048e7c438545728704e82d9acbc5c221) + '@deepseek-ai/dsh-client-runtime': 0.1.1-rc.2(601e9129357dc48738583e18d75d19b2) + '@deepseek-ai/dsh-client-ui-layout': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-client-runtime@0.1.1-rc.2(601e9129357dc48738583e18d75d19b2))(@deepseek-ai/dsh-client-ui-theme@0.1.1-rc.2(a6c39110759121c55549be9a5dac7bf7))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + clsx: 2.1.1 + + '@deepseek-ai/dsh-client-ui-slots@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-client-ui-theme@0.1.1-rc.2(a6c39110759121c55549be9a5dac7bf7)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-api-remotes': 0.1.1-rc.2(0037c360ed8ef45e74e856e82932995e) + '@deepseek-ai/dsh-client-connection': 0.1.1-rc.2(9b40f28fccfb9ee3f86188afc9586c29) + '@deepseek-ai/dsh-client-locale': 0.1.1-rc.2(048e7c438545728704e82d9acbc5c221) + '@deepseek-ai/dsh-client-runtime': 0.1.1-rc.2(601e9129357dc48738583e18d75d19b2) + '@deepseek-ai/dsh-client-ui-settings': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-api-remotes@0.1.1-rc.2(0037c360ed8ef45e74e856e82932995e))(@deepseek-ai/dsh-client-connection@0.1.1-rc.2)(@deepseek-ai/dsh-client-runtime@0.1.1-rc.2(601e9129357dc48738583e18d75d19b2))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-settings@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1)) + '@deepseek-ai/dsh-host-webserver': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-settings': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1) + '@deepseek-ai/schemastery': 3.18.1 + clsx: 2.1.1 + + '@deepseek-ai/dsh-code-runtime@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-commands@0.1.1-rc.2(0ecd3a66a950f0a38490382753aa1d93)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-attachment': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + zod: 4.4.3 + + '@deepseek-ai/dsh-compaction@0.1.1-rc.2(80d45efbb3b7de81b65c253ede5096fd)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-commands': 0.1.1-rc.2(0ecd3a66a950f0a38490382753aa1d93) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + + '@deepseek-ai/dsh-cordis-host-runner@0.1.1-rc.2(c90d5f481a921221b380b90110ccbd94)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-tools': 0.1.1-rc.2(119bc70f73f8eddebfaa6b47561adeb3) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/schemastery': 3.18.1 + zod: 4.4.3 + + '@deepseek-ai/dsh-credentials@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-file-reference@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-agent@0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-typert-protocol@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + zod: 4.4.3 + + '@deepseek-ai/dsh-goal@0.1.1-rc.2(a40f169b35a63b1d25a94e0ed91514fe)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc)) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/schemastery': 3.18.1 + zod: 4.4.3 + + '@deepseek-ai/dsh-home-paths@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-host-apiproxy@0.1.1-rc.2(3a4ac70475a4c9406aac4d9ef9838e03)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-agent-default-model': 0.1.1-rc.2(cffd0b3811dd3fb50ded7f3d23c3fd53) + '@deepseek-ai/dsh-agent-presets': 0.1.1-rc.2(5200ead8959daeaefdf3dd69ba905368) + '@deepseek-ai/dsh-api-remotes': 0.1.1-rc.2(0037c360ed8ef45e74e856e82932995e) + '@deepseek-ai/dsh-attachment': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-commands': 0.1.1-rc.2(0ecd3a66a950f0a38490382753aa1d93) + '@deepseek-ai/dsh-cordis-host-runner': 0.1.1-rc.2(c90d5f481a921221b380b90110ccbd94) + '@deepseek-ai/dsh-credentials': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-goal': 0.1.1-rc.2(a40f169b35a63b1d25a94e0ed91514fe) + '@deepseek-ai/dsh-host-directory-picker': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-jobs': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-agent@0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc)) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-native-command': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc)) + '@deepseek-ai/dsh-session-projection-cache': 0.1.1-rc.2(5675a3df65adc346aa213cdd0bac196b) + '@deepseek-ai/dsh-session-query': 0.1.1-rc.2(d854f9afd763ce298cb594d238b23507) + '@deepseek-ai/dsh-session-title': 0.1.1-rc.2(54f3cb7dfcb0c20072924b6c262cea76) + '@deepseek-ai/dsh-settings': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1) + '@deepseek-ai/dsh-skill': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-llm@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))))(@deepseek-ai/dsh-scope@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-subagent': 0.1.1-rc.2(f18caf5d52b775ea3fe478091fd38a81) + '@deepseek-ai/dsh-tools': 0.1.1-rc.2(119bc70f73f8eddebfaa6b47561adeb3) + '@deepseek-ai/dsh-user-approval': 0.1.1-rc.2(09871eaf880be2109e9d668352ef8c05) + '@deepseek-ai/dsh-user-questions': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-agent@0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-llm@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))) + '@deepseek-ai/dsh-workspace': 0.1.1-rc.2(ca1aef6913f66bb64a14405a8170db89) + '@deepseek-ai/schemastery': 3.18.1 + fflate: 0.8.3 + zod: 4.4.3 + transitivePeerDependencies: + - '@deepseek-ai/dsh-api-gateway' + - '@deepseek-ai/dsh-code-runtime' + - '@deepseek-ai/dsh-file-reference' + - '@deepseek-ai/dsh-host-plugin-inventory' + - '@deepseek-ai/dsh-message-feedback' + - '@deepseek-ai/dsh-sandbox' + - '@deepseek-ai/dsh-sandbox-policy' + - '@deepseek-ai/dsh-scope' + - '@deepseek-ai/dsh-session-reference' + - '@deepseek-ai/dsh-storage' + - '@deepseek-ai/dsh-storage-domain' + - '@deepseek-ai/dsh-system-prompt' + - '@deepseek-ai/dsh-timeout' + - '@deepseek-ai/dsh-typert-protocol' + - '@deepseek-ai/dsh-typert-registry' + + '@deepseek-ai/dsh-host-directory-picker@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-host-plugin-inventory@0.1.1-rc.2(@deepseek-ai/cordis-plugin-loader@1.0.2)(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-typert-protocol@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/cordis-plugin-loader': 1.0.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + zod: 4.4.3 + + '@deepseek-ai/dsh-host-webserver@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-jobs@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-agent@0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + + '@deepseek-ai/dsh-llm-retry@0.1.1-rc.2(a0b14eb40667f7e2f3e22b89a59650a0)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-timeout': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-llm@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-attachment': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-timeout': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-message-feedback@0.1.1-rc.2(b957b1ba06764ef01eadad39e9185151)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-storage-domain': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-storage@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/schemastery': 3.18.1 + zod: 4.4.3 + + '@deepseek-ai/dsh-native-command@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-output-retention@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-scope@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-session-persistence@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-timeout': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + + '@deepseek-ai/dsh-session-projection-cache@0.1.1-rc.2(5675a3df65adc346aa213cdd0bac196b)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc)) + '@deepseek-ai/dsh-storage-domain': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-storage@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/schemastery': 3.18.1 + zod: 4.4.3 + + '@deepseek-ai/dsh-session-projection@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + zod: 4.4.3 + + '@deepseek-ai/dsh-session-query@0.1.1-rc.2(d854f9afd763ce298cb594d238b23507)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-session-title': 0.1.1-rc.2(54f3cb7dfcb0c20072924b6c262cea76) + optionalDependencies: + '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + + '@deepseek-ai/dsh-session-reference@0.1.1-rc.2(535ff208b76500c8770cfd701efd9f97)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-compaction': 0.1.1-rc.2(80d45efbb3b7de81b65c253ede5096fd) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-output-retention': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-session-query': 0.1.1-rc.2(d854f9afd763ce298cb594d238b23507) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/schemastery': 3.18.1 + zod: 4.4.3 + + '@deepseek-ai/dsh-session-title@0.1.1-rc.2(54f3cb7dfcb0c20072924b6c262cea76)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc)) + '@deepseek-ai/schemastery': 3.18.1 + zod: 4.4.3 + + '@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + + '@deepseek-ai/dsh-settings@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/schemastery@3.18.1)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-skill@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-llm@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))))(@deepseek-ai/dsh-scope@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-storage-domain@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-storage@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-storage': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/schemastery': 3.18.1 + zod: 4.4.3 + + '@deepseek-ai/dsh-storage@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-subagent@0.1.1-rc.2(f18caf5d52b775ea3fe478091fd38a81)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-tools': 0.1.1-rc.2(119bc70f73f8eddebfaa6b47561adeb3) + zod: 4.4.3 + optionalDependencies: + '@deepseek-ai/dsh-agent-presets': 0.1.1-rc.2(5200ead8959daeaefdf3dd69ba905368) + '@deepseek-ai/dsh-jobs': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-agent@0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc)) + '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-session-projection': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc)) + '@deepseek-ai/dsh-session-projection-cache': 0.1.1-rc.2(5675a3df65adc346aa213cdd0bac196b) + '@deepseek-ai/dsh-user-approval': 0.1.1-rc.2(09871eaf880be2109e9d668352ef8c05) + + '@deepseek-ai/dsh-system-prompt@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-llm@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))))(@deepseek-ai/dsh-scope@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-tools@0.1.1-rc.2(119bc70f73f8eddebfaa6b47561adeb3)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-code-runtime': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-system-prompt': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-llm@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))))(@deepseek-ai/dsh-scope@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-user-approval': 0.1.1-rc.2(09871eaf880be2109e9d668352ef8c05) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-typert-protocol@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + + '@deepseek-ai/dsh-typert-registry@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-typert-protocol': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + zod: 4.4.3 + + '@deepseek-ai/dsh-user-approval@0.1.1-rc.2(09871eaf880be2109e9d668352ef8c05)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-scope': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-system-prompt': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-llm@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))))(@deepseek-ai/dsh-scope@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/schemastery': 3.18.1 + + '@deepseek-ai/dsh-user-questions@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-agent@0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-llm@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))))': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-agent': 0.1.1-rc.2(c1537a8836b04097f168b024f1e38d85) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-llm': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-attachment@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + + '@deepseek-ai/dsh-workspace@0.1.1-rc.2(ca1aef6913f66bb64a14405a8170db89)': + dependencies: + '@deepseek-ai/cordis': 4.0.1(@deepseek-ai/cordis-plugin-include@1.0.6)(@deepseek-ai/cordis-plugin-loader@1.0.2) + '@deepseek-ai/dsh-brand': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-invariants': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1) + '@deepseek-ai/dsh-session': 0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc) + '@deepseek-ai/dsh-session-persistence': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-brand@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)))(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-session@0.1.1-rc.2(a4e4bb24a1f3580ac25e11cfa3c6b8cc))(@deepseek-ai/dsh-timeout@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + '@deepseek-ai/dsh-storage': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)) + '@deepseek-ai/dsh-storage-domain': 0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))(@deepseek-ai/dsh-storage@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1)(@deepseek-ai/dsh-invariants@0.1.1-rc.2(@deepseek-ai/cordis@4.0.1))) + zod: 4.4.3 + + '@deepseek-ai/schemastery@3.18.1': + dependencies: + '@deepseek-ai/cosmokit': 1.8.2 + '@standard-schema/spec': 1.1.0 + + '@exodus/bytes@1.15.1': {} + + '@jridgewell/sourcemap-codec@1.5.5': {} + + '@oxc-project/types@0.146.0': {} + + '@quansync/fs@1.0.0': + dependencies: + quansync: 1.0.0 + + '@rolldown/binding-android-arm-eabi@1.2.5': + optional: true + + '@rolldown/binding-android-arm64@1.2.5': + optional: true + + '@rolldown/binding-darwin-arm64@1.2.5': + optional: true + + '@rolldown/binding-darwin-x64@1.2.5': + optional: true + + '@rolldown/binding-freebsd-x64@1.2.5': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.2.5': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.2.5': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.2.5': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.2.5': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.2.5': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.2.5': + optional: true + + '@rolldown/binding-linux-x64-musl@1.2.5': + optional: true + + '@rolldown/binding-openharmony-arm64@1.2.5': + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.2.5': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.2.5': + optional: true + + '@rolldown/pluginutils@1.0.1': {} + + '@shikijs/core@4.4.3': + dependencies: + '@shikijs/primitive': 4.4.3 + '@shikijs/types': 4.4.3 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + hast-util-to-html: 9.0.5 + + '@shikijs/engine-javascript@4.4.3': + dependencies: + '@shikijs/types': 4.4.3 + '@shikijs/vscode-textmate': 10.0.2 + oniguruma-to-es: 4.3.6 + + '@shikijs/engine-oniguruma@4.4.3': + dependencies: + '@shikijs/types': 4.4.3 + '@shikijs/vscode-textmate': 10.0.2 + + '@shikijs/langs@4.4.3': + dependencies: + '@shikijs/types': 4.4.3 + + '@shikijs/primitive@4.4.3': + dependencies: + '@shikijs/types': 4.4.3 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + '@shikijs/themes@4.4.3': + dependencies: + '@shikijs/types': 4.4.3 + + '@shikijs/types@4.4.3': + dependencies: + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + '@shikijs/vscode-textmate@10.0.2': {} + + '@standard-schema/spec@1.1.0': {} + + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + + '@types/debug@4.1.13': + dependencies: + '@types/ms': 2.1.0 + + '@types/deep-eql@4.0.2': {} + + '@types/estree@1.0.9': {} + + '@types/hast@3.0.5': + dependencies: + '@types/unist': 3.0.3 + + '@types/js-yaml@4.0.9': {} + + '@types/katex@0.16.8': {} + + '@types/mdast@4.0.4': + dependencies: + '@types/unist': 3.0.3 + + '@types/ms@2.1.0': {} + + '@types/node@24.13.3': + dependencies: + undici-types: 7.18.2 + + '@types/prop-types@15.7.15': {} + + '@types/react-dom@18.3.7(@types/react@18.3.31)': + dependencies: + '@types/react': 18.3.31 + + '@types/react@18.3.31': + dependencies: + '@types/prop-types': 15.7.15 + csstype: 3.2.3 + + '@types/unist@3.0.3': {} + + '@ungap/structured-clone@1.3.3': {} + + '@vitest/expect@4.1.11': + dependencies: + '@standard-schema/spec': 1.1.0 + '@types/chai': 5.2.3 + '@vitest/spy': 4.1.11 + '@vitest/utils': 4.1.11 + chai: 6.2.2 + tinyrainbow: 3.1.1 + + '@vitest/mocker@4.1.11(vite@8.2.2(@types/node@24.13.3))': + dependencies: + '@vitest/spy': 4.1.11 + estree-walker: 3.0.3 + magic-string: 0.30.21 + optionalDependencies: + vite: 8.2.2(@types/node@24.13.3) + + '@vitest/pretty-format@4.1.11': + dependencies: + tinyrainbow: 3.1.1 + + '@vitest/runner@4.1.11': + dependencies: + '@vitest/utils': 4.1.11 + pathe: 2.0.3 + + '@vitest/snapshot@4.1.11': + dependencies: + '@vitest/pretty-format': 4.1.11 + '@vitest/utils': 4.1.11 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/spy@4.1.11': {} + + '@vitest/utils@4.1.11': + dependencies: + '@vitest/pretty-format': 4.1.11 + convert-source-map: 2.0.0 + tinyrainbow: 3.1.1 + + '@yuku-codegen/binding-android-arm64@0.8.7': + optional: true + + '@yuku-codegen/binding-darwin-arm64@0.8.7': + optional: true + + '@yuku-codegen/binding-darwin-x64@0.8.7': + optional: true + + '@yuku-codegen/binding-freebsd-x64@0.8.7': + optional: true + + '@yuku-codegen/binding-linux-arm-gnu@0.8.7': + optional: true + + '@yuku-codegen/binding-linux-arm-musl@0.8.7': + optional: true + + '@yuku-codegen/binding-linux-arm64-gnu@0.8.7': + optional: true + + '@yuku-codegen/binding-linux-arm64-musl@0.8.7': + optional: true + + '@yuku-codegen/binding-linux-x64-gnu@0.8.7': + optional: true + + '@yuku-codegen/binding-linux-x64-musl@0.8.7': + optional: true + + '@yuku-codegen/binding-win32-arm64@0.8.7': + optional: true + + '@yuku-codegen/binding-win32-x64@0.8.7': + optional: true + + '@yuku-parser/binding-android-arm64@0.8.7': + optional: true + + '@yuku-parser/binding-darwin-arm64@0.8.7': + optional: true + + '@yuku-parser/binding-darwin-x64@0.8.7': + optional: true + + '@yuku-parser/binding-freebsd-x64@0.8.7': + optional: true + + '@yuku-parser/binding-linux-arm-gnu@0.8.7': + optional: true + + '@yuku-parser/binding-linux-arm-musl@0.8.7': + optional: true + + '@yuku-parser/binding-linux-arm64-gnu@0.8.7': + optional: true + + '@yuku-parser/binding-linux-arm64-musl@0.8.7': + optional: true + + '@yuku-parser/binding-linux-x64-gnu@0.8.7': + optional: true + + '@yuku-parser/binding-linux-x64-musl@0.8.7': + optional: true + + '@yuku-parser/binding-win32-arm64@0.8.7': + optional: true + + '@yuku-parser/binding-win32-x64@0.8.7': + optional: true + + '@yuku-toolchain/types@0.8.7': {} + + anser@2.3.5: {} + + ansis@4.3.1: {} + + argparse@2.0.1: {} + + assertion-error@2.0.1: {} + + bidi-js@1.0.3: + dependencies: + require-from-string: 2.0.2 + + cac@7.0.0: {} + + ccount@2.0.1: {} + + chai@6.2.2: {} + + character-entities-html4@2.1.0: {} + + character-entities-legacy@3.0.0: {} + + character-entities@2.0.2: {} + + clsx@2.1.1: {} + + comma-separated-tokens@2.0.3: {} + + commander@8.3.0: {} + + convert-source-map@2.0.0: {} + + css-tree@3.2.1: + dependencies: + mdn-data: 2.27.1 + source-map-js: 1.2.1 + + csstype@3.2.3: {} + + data-urls@7.0.0: + dependencies: + whatwg-mimetype: 5.0.0 + whatwg-url: 16.0.1 + transitivePeerDependencies: + - '@noble/hashes' + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + decimal.js@10.6.0: {} + + decode-named-character-reference@1.3.0: + dependencies: + character-entities: 2.0.2 + + defu@6.1.7: {} + + dequal@2.0.3: {} + + detect-libc@2.1.2: {} + + devlop@1.1.0: + dependencies: + dequal: 2.0.3 + + dts-resolver@3.0.0: {} + + empathic@2.0.1: {} + + entities@8.0.0: {} + + es-module-lexer@2.3.2: {} + + escape-string-regexp@5.0.0: {} + + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.9 + + expect-type@1.4.0: {} + + fdir@6.5.0(picomatch@4.0.5): + optionalDependencies: + picomatch: 4.0.5 + + fflate@0.8.3: {} + + fsevents@2.3.3: + optional: true + + get-tsconfig@5.0.0-beta.5: + dependencies: + resolve-pkg-maps: 1.0.0 + + hast-util-to-html@9.0.5: + dependencies: + '@types/hast': 3.0.5 + '@types/unist': 3.0.3 + ccount: 2.0.1 + comma-separated-tokens: 2.0.3 + hast-util-whitespace: 3.0.0 + html-void-elements: 3.0.0 + mdast-util-to-hast: 13.2.1 + property-information: 7.2.0 + space-separated-tokens: 2.0.2 + stringify-entities: 4.0.4 + zwitch: 2.0.4 + + hast-util-whitespace@3.0.0: + dependencies: + '@types/hast': 3.0.5 + + hookable@6.1.1: {} + + html-encoding-sniffer@6.0.0: + dependencies: + '@exodus/bytes': 1.15.1 + transitivePeerDependencies: + - '@noble/hashes' + + html-void-elements@3.0.0: {} + + immer@10.2.0: {} + + import-without-cache@0.4.0: {} + + is-potential-custom-element-name@1.0.1: {} + + js-tokens@4.0.0: {} + + js-yaml@4.3.1: + dependencies: + argparse: 2.0.1 + + jsdom@30.0.1: + dependencies: + '@asamuzakjp/css-color': 6.0.7 + '@asamuzakjp/dom-selector': 8.3.2 + '@bramus/specificity': 2.4.2 + '@csstools/css-syntax-patches-for-csstree': 1.1.8(css-tree@3.2.1) + '@exodus/bytes': 1.15.1 + css-tree: 3.2.1 + data-urls: 7.0.0 + decimal.js: 10.6.0 + html-encoding-sniffer: 6.0.0 + is-potential-custom-element-name: 1.0.1 + lru-cache: 11.5.2 + parse5: 8.0.1 + saxes: 6.0.0 + symbol-tree: 3.2.4 + tough-cookie: 6.0.2 + undici: 8.10.0 + w3c-xmlserializer: 5.0.0 + webidl-conversions: 8.0.1 + whatwg-mimetype: 5.0.0 + whatwg-url: 17.1.0 + xml-name-validator: 5.0.0 + transitivePeerDependencies: + - '@noble/hashes' + + katex@0.16.47: + dependencies: + commander: 8.3.0 + + lightningcss-android-arm64@1.33.0: + optional: true + + lightningcss-darwin-arm64@1.33.0: + optional: true + + lightningcss-darwin-x64@1.33.0: + optional: true + + lightningcss-freebsd-x64@1.33.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.33.0: + optional: true + + lightningcss-linux-arm64-gnu@1.33.0: + optional: true + + lightningcss-linux-arm64-musl@1.33.0: + optional: true + + lightningcss-linux-x64-gnu@1.33.0: + optional: true + + lightningcss-linux-x64-musl@1.33.0: + optional: true + + lightningcss-win32-arm64-msvc@1.33.0: + optional: true + + lightningcss-win32-x64-msvc@1.33.0: + optional: true + + lightningcss@1.33.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.33.0 + lightningcss-darwin-arm64: 1.33.0 + lightningcss-darwin-x64: 1.33.0 + lightningcss-freebsd-x64: 1.33.0 + lightningcss-linux-arm-gnueabihf: 1.33.0 + lightningcss-linux-arm64-gnu: 1.33.0 + lightningcss-linux-arm64-musl: 1.33.0 + lightningcss-linux-x64-gnu: 1.33.0 + lightningcss-linux-x64-musl: 1.33.0 + lightningcss-win32-arm64-msvc: 1.33.0 + lightningcss-win32-x64-msvc: 1.33.0 + + longest-streak@3.1.0: {} + + loose-envify@1.4.0: + dependencies: + js-tokens: 4.0.0 + + lru-cache@11.5.2: {} + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + + markdown-table@3.0.4: {} + + mdast-util-find-and-replace@3.0.2: + dependencies: + '@types/mdast': 4.0.4 + escape-string-regexp: 5.0.0 + unist-util-is: 6.0.1 + unist-util-visit-parents: 6.0.2 + + mdast-util-from-markdown@2.0.3: + dependencies: + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + decode-named-character-reference: 1.3.0 + devlop: 1.1.0 + mdast-util-to-string: 4.0.0 + micromark: 4.0.2 + micromark-util-decode-numeric-character-reference: 2.0.2 + micromark-util-decode-string: 2.0.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + unist-util-stringify-position: 4.0.0 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-autolink-literal@2.0.1: + dependencies: + '@types/mdast': 4.0.4 + ccount: 2.0.1 + devlop: 1.1.0 + mdast-util-find-and-replace: 3.0.2 + micromark-util-character: 2.1.1 + + mdast-util-gfm-footnote@2.1.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.3 + mdast-util-to-markdown: 2.1.2 + micromark-util-normalize-identifier: 2.0.1 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-strikethrough@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-from-markdown: 2.0.3 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-table@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + markdown-table: 3.0.4 + mdast-util-from-markdown: 2.0.3 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-task-list-item@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.3 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm@3.1.0: + dependencies: + mdast-util-from-markdown: 2.0.3 + mdast-util-gfm-autolink-literal: 2.0.1 + mdast-util-gfm-footnote: 2.1.0 + mdast-util-gfm-strikethrough: 2.0.0 + mdast-util-gfm-table: 2.0.0 + mdast-util-gfm-task-list-item: 2.0.0 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-math@3.0.0: + dependencies: + '@types/hast': 3.0.5 + '@types/mdast': 4.0.4 + devlop: 1.1.0 + longest-streak: 3.1.0 + mdast-util-from-markdown: 2.0.3 + mdast-util-to-markdown: 2.1.2 + unist-util-remove-position: 5.0.0 + transitivePeerDependencies: + - supports-color + + mdast-util-phrasing@4.1.0: + dependencies: + '@types/mdast': 4.0.4 + unist-util-is: 6.0.1 + + mdast-util-to-hast@13.2.1: + dependencies: + '@types/hast': 3.0.5 + '@types/mdast': 4.0.4 + '@ungap/structured-clone': 1.3.3 + devlop: 1.1.0 + micromark-util-sanitize-uri: 2.0.1 + trim-lines: 3.0.1 + unist-util-position: 5.0.0 + unist-util-visit: 5.1.0 + vfile: 6.0.3 + + mdast-util-to-markdown@2.1.2: + dependencies: + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + longest-streak: 3.1.0 + mdast-util-phrasing: 4.1.0 + mdast-util-to-string: 4.0.0 + micromark-util-classify-character: 2.0.1 + micromark-util-decode-string: 2.0.1 + unist-util-visit: 5.1.0 + zwitch: 2.0.4 + + mdast-util-to-string@4.0.0: + dependencies: + '@types/mdast': 4.0.4 + + mdn-data@2.27.1: {} + + micromark-core-commonmark@2.0.3: + dependencies: + decode-named-character-reference: 1.3.0 + devlop: 1.1.0 + micromark-factory-destination: 2.0.1 + micromark-factory-label: 2.0.1 + micromark-factory-space: 2.0.1 + micromark-factory-title: 2.0.1 + micromark-factory-whitespace: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-chunked: 2.0.1 + micromark-util-classify-character: 2.0.1 + micromark-util-html-tag-name: 2.0.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-resolve-all: 2.0.1 + micromark-util-subtokenize: 2.1.0 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-autolink-literal@2.1.0: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-sanitize-uri: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-footnote@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-core-commonmark: 2.0.3 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-sanitize-uri: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-strikethrough@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-util-chunked: 2.0.1 + micromark-util-classify-character: 2.0.1 + micromark-util-resolve-all: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-table@2.1.1: + dependencies: + devlop: 1.1.0 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-tagfilter@2.0.0: + dependencies: + micromark-util-types: 2.0.2 + + micromark-extension-gfm-task-list-item@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm@3.0.0: + dependencies: + micromark-extension-gfm-autolink-literal: 2.1.0 + micromark-extension-gfm-footnote: 2.1.0 + micromark-extension-gfm-strikethrough: 2.1.0 + micromark-extension-gfm-table: 2.1.1 + micromark-extension-gfm-tagfilter: 2.0.0 + micromark-extension-gfm-task-list-item: 2.1.0 + micromark-util-combine-extensions: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-math@3.1.0: + dependencies: + '@types/katex': 0.16.8 + devlop: 1.1.0 + katex: 0.16.47 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-destination@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-label@2.0.1: + dependencies: + devlop: 1.1.0 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-space@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-types: 2.0.2 + + micromark-factory-title@2.0.1: + dependencies: + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-whitespace@2.0.1: + dependencies: + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-character@2.1.1: + dependencies: + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-chunked@2.0.1: + dependencies: + micromark-util-symbol: 2.0.1 + + micromark-util-classify-character@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-combine-extensions@2.0.1: + dependencies: + micromark-util-chunked: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-decode-numeric-character-reference@2.0.2: + dependencies: + micromark-util-symbol: 2.0.1 + + micromark-util-decode-string@2.0.1: + dependencies: + decode-named-character-reference: 1.3.0 + micromark-util-character: 2.1.1 + micromark-util-decode-numeric-character-reference: 2.0.2 + micromark-util-symbol: 2.0.1 + + micromark-util-encode@2.0.1: {} + + micromark-util-html-tag-name@2.0.1: {} + + micromark-util-normalize-identifier@2.0.1: + dependencies: + micromark-util-symbol: 2.0.1 + + micromark-util-resolve-all@2.0.1: + dependencies: + micromark-util-types: 2.0.2 + + micromark-util-sanitize-uri@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-encode: 2.0.1 + micromark-util-symbol: 2.0.1 + + micromark-util-subtokenize@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-util-chunked: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-symbol@2.0.1: {} + + micromark-util-types@2.0.2: {} + + micromark@4.0.2: + dependencies: + '@types/debug': 4.1.13 + debug: 4.4.3 + decode-named-character-reference: 1.3.0 + devlop: 1.1.0 + micromark-core-commonmark: 2.0.3 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-chunked: 2.0.1 + micromark-util-combine-extensions: 2.0.1 + micromark-util-decode-numeric-character-reference: 2.0.2 + micromark-util-encode: 2.0.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-resolve-all: 2.0.1 + micromark-util-sanitize-uri: 2.0.1 + micromark-util-subtokenize: 2.1.0 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + transitivePeerDependencies: + - supports-color + + ms@2.1.3: {} + + nanoid@3.3.18: {} + + obug@2.1.4: {} + + oniguruma-parser@0.12.2: {} + + oniguruma-to-es@4.3.6: + dependencies: + oniguruma-parser: 0.12.2 + regex: 6.1.0 + regex-recursion: 6.0.2 + + parse5@8.0.1: + dependencies: + entities: 8.0.0 + + pathe@2.0.3: {} + + picocolors@1.1.1: {} + + picomatch@4.0.5: {} + + postcss@8.5.26: + dependencies: + nanoid: 3.3.18 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + property-information@7.2.0: {} + + punycode@2.3.1: {} + + quansync@1.0.0: {} + + react-dom@18.3.1(react@18.3.1): + dependencies: + loose-envify: 1.4.0 + react: 18.3.1 + scheduler: 0.23.2 + + react@18.3.1: + dependencies: + loose-envify: 1.4.0 + + regex-recursion@6.0.2: + dependencies: + regex-utilities: 2.3.0 + + regex-utilities@2.3.0: {} + + regex@6.1.0: + dependencies: + regex-utilities: 2.3.0 + + require-from-string@2.0.2: {} + + resolve-pkg-maps@1.0.0: {} + + rolldown-plugin-dts@0.27.14(rolldown@1.2.5)(typescript@5.9.3): + dependencies: + dts-resolver: 3.0.0 + get-tsconfig: 5.0.0-beta.5 + obug: 2.1.4 + rolldown: 1.2.5 + yuku-ast: 0.8.7 + yuku-codegen: 0.8.7 + yuku-parser: 0.8.7 + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - oxc-resolver + + rolldown@1.2.5: + dependencies: + '@oxc-project/types': 0.146.0 + '@rolldown/pluginutils': 1.0.1 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.2.5 + '@rolldown/binding-android-arm64': 1.2.5 + '@rolldown/binding-darwin-arm64': 1.2.5 + '@rolldown/binding-darwin-x64': 1.2.5 + '@rolldown/binding-freebsd-x64': 1.2.5 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.5 + '@rolldown/binding-linux-arm64-gnu': 1.2.5 + '@rolldown/binding-linux-arm64-musl': 1.2.5 + '@rolldown/binding-linux-ppc64-gnu': 1.2.5 + '@rolldown/binding-linux-s390x-gnu': 1.2.5 + '@rolldown/binding-linux-x64-gnu': 1.2.5 + '@rolldown/binding-linux-x64-musl': 1.2.5 + '@rolldown/binding-openharmony-arm64': 1.2.5 + '@rolldown/binding-win32-arm64-msvc': 1.2.5 + '@rolldown/binding-win32-x64-msvc': 1.2.5 + + saxes@6.0.0: + dependencies: + xmlchars: 2.2.0 + + scheduler@0.23.2: + dependencies: + loose-envify: 1.4.0 + + shiki@4.4.3: + dependencies: + '@shikijs/core': 4.4.3 + '@shikijs/engine-javascript': 4.4.3 + '@shikijs/engine-oniguruma': 4.4.3 + '@shikijs/langs': 4.4.3 + '@shikijs/themes': 4.4.3 + '@shikijs/types': 4.4.3 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + siginfo@2.0.0: {} + + source-map-js@1.2.1: {} + + space-separated-tokens@2.0.2: {} + + stackback@0.0.2: {} + + std-env@4.2.0: {} + + stringify-entities@4.0.4: + dependencies: + character-entities-html4: 2.1.0 + character-entities-legacy: 3.0.0 + + symbol-tree@3.2.4: {} + + tinybench@2.9.0: {} + + tinyexec@1.3.0: {} + + tinyglobby@0.2.17: + dependencies: + fdir: 6.5.0(picomatch@4.0.5) + picomatch: 4.0.5 + + tinyrainbow@3.1.1: {} + + tldts-core@7.4.10: {} + + tldts@7.4.10: + dependencies: + tldts-core: 7.4.10 + + tough-cookie@6.0.2: + dependencies: + tldts: 7.4.10 + + tr46@6.0.0: + dependencies: + punycode: 2.3.1 + + tree-kill@1.2.2: {} + + trim-lines@3.0.1: {} + + tsdown@0.22.14(typescript@5.9.3): + dependencies: + ansis: 4.3.1 + cac: 7.0.0 + defu: 6.1.7 + empathic: 2.0.1 + hookable: 6.1.1 + import-without-cache: 0.4.0 + obug: 2.1.4 + picomatch: 4.0.5 + rolldown: 1.2.5 + rolldown-plugin-dts: 0.27.14(rolldown@1.2.5)(typescript@5.9.3) + tinyexec: 1.3.0 + tinyglobby: 0.2.17 + tree-kill: 1.2.2 + unconfig-core: 7.5.0 + verkit: 0.3.2 + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - '@typescript/native-preview' + - '@volar/typescript' + - oxc-resolver + - vue-tsc + + typescript@5.9.3: {} + + unconfig-core@7.5.0: + dependencies: + '@quansync/fs': 1.0.0 + quansync: 1.0.0 + + undici-types@7.18.2: {} + + undici@8.10.0: {} + + unist-util-is@6.0.1: + dependencies: + '@types/unist': 3.0.3 + + unist-util-position@5.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-remove-position@5.0.0: + dependencies: + '@types/unist': 3.0.3 + unist-util-visit: 5.1.0 + + unist-util-stringify-position@4.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-visit-parents@6.0.2: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + + unist-util-visit@5.1.0: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + unist-util-visit-parents: 6.0.2 + + use-sync-external-store@1.2.0(react@18.3.1): + dependencies: + react: 18.3.1 + + verkit@0.3.2: {} + + vfile-message@4.0.3: + dependencies: + '@types/unist': 3.0.3 + unist-util-stringify-position: 4.0.0 + + vfile@6.0.3: + dependencies: + '@types/unist': 3.0.3 + vfile-message: 4.0.3 + + vite@8.2.2(@types/node@24.13.3): + dependencies: + lightningcss: 1.33.0 + picomatch: 4.0.5 + postcss: 8.5.26 + rolldown: 1.2.5 + tinyglobby: 0.2.17 + optionalDependencies: + '@types/node': 24.13.3 + fsevents: 2.3.3 + + vitest@4.1.11(@types/node@24.13.3)(jsdom@30.0.1)(vite@8.2.2(@types/node@24.13.3)): + dependencies: + '@vitest/expect': 4.1.11 + '@vitest/mocker': 4.1.11(vite@8.2.2(@types/node@24.13.3)) + '@vitest/pretty-format': 4.1.11 + '@vitest/runner': 4.1.11 + '@vitest/snapshot': 4.1.11 + '@vitest/spy': 4.1.11 + '@vitest/utils': 4.1.11 + es-module-lexer: 2.3.2 + expect-type: 1.4.0 + magic-string: 0.30.21 + obug: 2.1.4 + pathe: 2.0.3 + picomatch: 4.0.5 + std-env: 4.2.0 + tinybench: 2.9.0 + tinyexec: 1.3.0 + tinyglobby: 0.2.17 + tinyrainbow: 3.1.1 + vite: 8.2.2(@types/node@24.13.3) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 24.13.3 + jsdom: 30.0.1 + transitivePeerDependencies: + - msw + + w3c-xmlserializer@5.0.0: + dependencies: + xml-name-validator: 5.0.0 + + webidl-conversions@8.0.1: {} + + whatwg-mimetype@5.0.0: {} + + whatwg-url@16.0.1: + dependencies: + '@exodus/bytes': 1.15.1 + tr46: 6.0.0 + webidl-conversions: 8.0.1 + transitivePeerDependencies: + - '@noble/hashes' + + whatwg-url@17.1.0: + dependencies: + '@exodus/bytes': 1.15.1 + tr46: 6.0.0 + webidl-conversions: 8.0.1 + transitivePeerDependencies: + - '@noble/hashes' + + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + + ws@8.21.3: {} + + xml-name-validator@5.0.0: {} + + xmlchars@2.2.0: {} + + yuku-ast@0.8.7: + dependencies: + '@yuku-toolchain/types': 0.8.7 + + yuku-codegen@0.8.7: + dependencies: + '@yuku-toolchain/types': 0.8.7 + optionalDependencies: + '@yuku-codegen/binding-android-arm64': 0.8.7 + '@yuku-codegen/binding-darwin-arm64': 0.8.7 + '@yuku-codegen/binding-darwin-x64': 0.8.7 + '@yuku-codegen/binding-freebsd-x64': 0.8.7 + '@yuku-codegen/binding-linux-arm-gnu': 0.8.7 + '@yuku-codegen/binding-linux-arm-musl': 0.8.7 + '@yuku-codegen/binding-linux-arm64-gnu': 0.8.7 + '@yuku-codegen/binding-linux-arm64-musl': 0.8.7 + '@yuku-codegen/binding-linux-x64-gnu': 0.8.7 + '@yuku-codegen/binding-linux-x64-musl': 0.8.7 + '@yuku-codegen/binding-win32-arm64': 0.8.7 + '@yuku-codegen/binding-win32-x64': 0.8.7 + + yuku-parser@0.8.7: + dependencies: + '@yuku-toolchain/types': 0.8.7 + yuku-ast: 0.8.7 + optionalDependencies: + '@yuku-parser/binding-android-arm64': 0.8.7 + '@yuku-parser/binding-darwin-arm64': 0.8.7 + '@yuku-parser/binding-darwin-x64': 0.8.7 + '@yuku-parser/binding-freebsd-x64': 0.8.7 + '@yuku-parser/binding-linux-arm-gnu': 0.8.7 + '@yuku-parser/binding-linux-arm-musl': 0.8.7 + '@yuku-parser/binding-linux-arm64-gnu': 0.8.7 + '@yuku-parser/binding-linux-arm64-musl': 0.8.7 + '@yuku-parser/binding-linux-x64-gnu': 0.8.7 + '@yuku-parser/binding-linux-x64-musl': 0.8.7 + '@yuku-parser/binding-win32-arm64': 0.8.7 + '@yuku-parser/binding-win32-x64': 0.8.7 + + zod@4.4.3: {} + + zustand@4.4.7(@types/react@18.3.31)(immer@10.2.0)(react@18.3.1): + dependencies: + use-sync-external-store: 1.2.0(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.31 + immer: 10.2.0 + react: 18.3.1 + + zwitch@2.0.4: {} diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7bf010e65f41b69faab7d8e12e2a94b7c1dfa3 GIT binary patch literal 25733 zcmb@uWl$Vl*fxl}ySoIpzyx;>7TkjeclY29A-KD{ySuwXaCi6Z=Y9A4w^dtPwLhk2 zm@_rqMK|Ztn=nOrNn`{91TZi#WN9g}A7EhMRA68bZg3F5JEDT{rN9%o;}1y@u*ylI zW8eod6AfuoIXN(T;58f=c!)U|)PElV9t6Mx3=A?G91Ie82LJE9Y>5A}3Qm;``F~zR zxc&D*XV=AbFfbu7X)$3HH}JCzXdSFI+#zal0&y8=Z7j%viwm3gwT$JB;;ABm-IB|d zji`#{jg6?^Ql(D2pG|u0lWDq(CI&zK>n_ar9S=7-Tst|sIyhVt9qV(A4C|vU z*xA2+WoMsVT>LmUErvj!wu9K--p(;Fh}C>JTcJKF=eMc zzq_liuctcs(n1YUA`d2tuQxL@qoky?%EM!7dcecOQ__ijp(q}`3 zUz=oyy&@(Q5C8M$G;p+;#hHbnXZIk?J1-$9+-+g===&eM!(1%l@j$9Zl zNnBS?oydd?Wnqu%N6MxB`V%>0c+Z`A(8y{EAe~l?7pa5{$5Mwf9(ai1VwY#Zd92wj zG0196CU)gLGf<$Utd7AlxKcRbW0z|W?29_&VIim*o&4m}##4bc&D-WVy&_0(3~e5v zA~{nzV6EJJ-MnhfA1sWCID3w!js{p;uNe=l{Xd>oTkwUmhQ?E^ z$ry1&QhjY>Uz_u3quEsE+;k^Rm$rq(lFUc&#~egYBoY#m5Dwe#?{abiib4m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gID{dm-D%y|0 zoIDB@-8_|bnw1r?cTnz>vlIK;lSt}zPc`2#`?5C4D|(73oH4JD-?VV656f7A6j zuvDdHW@cJNMO#~2MXI(B*FFn-EW24-!&CYr;-;`W@Wh0K^jT|>NX2}i$&BH3Bws#9 z<%^32k8j=ML6UEl3Yht8YdH$2Ne5IRN5{wU@n0*q@7l&Qnlg1tcoU1Rwvyd3?4#DB z$l*$-r>1OT=5EXCZ>B$5o83lMv@J;7zCOuF$I(9;41ic!S%r579t8afmQ>_A4d zbTx*!Z@<@kSe`#jCGSDJlYPqp!ADIC@ia!J9{95j0GT9!RH z_d2GYtR@@QY?#^@-l-sD>F-j{eTEBp(&nxs1SiwbN&M8Uk|BV=%-uA<4CFCwp@kmF zqlA@iz3;{DCZhDwW)srSXtF!(gDv)d7G~u8oOGr}`C9t{EEylq!fN?*CK|oqOVHTm z#6v|>zV|DbO(}w>d4$g$JUblX;;LSyx@mYeSXjxja=sg{{gZ-B#jo%9N8JD5QeG`Q z&8w8&Rzr*09kshbDNU1Oy&w(clE>(r-ak1AhXjdZDYd>n8G@^40ayvUHZ?Xz+0zvQQA*&i7w>QE{e(wCJLuEflG>0NEHN+r9kU_a z9uP0Z?Us(D?xjD-Zq4DLZfXBT)bQYr_0Y46eT$o2Z}%I%U^;u1SZi8gf)EydmKId5 z3voD4eF{qHhK*3_&S2|c_DMh17S|7Nv5emnW5Jk2r_cE@;`KSX1!P_u2GhyD)?~fY z@i9-j(MRCeTz1dz^^3=nW0=tVx4qcutfo-KX~&F~FA6*m*5q){R=#h~nr?c^#!sXM z&n9Slq&cA0s?%M30#r3Q>@M#qCH)rbd3!DIK9iyj(&EV!F``1p5)zXoWu|C15coy~ sqTQdb=L$92uuS`fMiHqtbe#}>lgWxg+dlvMi4Y8Bd3CvJ8H=$00!&xTIRF3v literal 0 HcmV?d00001 diff --git a/src/client/GroupsBrowser.tsx b/src/client/GroupsBrowser.tsx new file mode 100644 index 0000000..3866d18 --- /dev/null +++ b/src/client/GroupsBrowser.tsx @@ -0,0 +1,649 @@ +/** + * The workspace-groups browsing region filling the sidebar shell's + * `sidebar.workspaces` hole: section header (title + right-aligned search + + * add workspace), the three-level tree (category → workspace → session), + * and the workspace/session dialogs. Wide state renders the full browser; + * rail state renders the two region icons (search / add workspace) as 36px + * controls on the shell's shared rail entry path, each requesting expansion + * through the owner share. + * + * Data: workspaces/sessions via the framework global hooks; grouping config + * via the host half's `/workspace-groups/config` route (refetched on mount). + */ +import { useEffect, useMemo, useRef, useState } from 'react' +import { + Button, + IconCloseFill14, + IconProjectAddOutline16, + IconSearchOutline16, + Modal, + Tooltip, +} from '@deepseek-ai/dsh-client-ui-primitives' +import type { SessionId, SessionListState, SessionSearchResultItem, WorkspaceId, WorkspaceView } from '@deepseek-ai/dsh-client-runtime/client' +import { classify } from '../core/matcher.ts' +import type { GroupsConfig } from '../core/types.ts' +import type { GroupsBrowserProps } from './contract.ts' +import { deriveGroups, deriveSearchGroups, deriveSearchMatches, type CategoryNode } from './tree.ts' +import { CategoryRow, SessionRow, WorkspaceRow } from './rows.tsx' +import css from './styles.css?inline' + +const SEARCH_DEBOUNCE_MS = 250 +const SEARCH_QUERY_MAX_CODE_UNITS = 500 + +function sanitizeSearchQuery(value: string): string { + const withoutNul = value.replaceAll('\0', '') + if (withoutNul.length <= SEARCH_QUERY_MAX_CODE_UNITS) return withoutNul + return withoutNul.slice(0, SEARCH_QUERY_MAX_CODE_UNITS) +} + +/** Immutable membership toggle for the local expand-all array. */ +function toggled(list: readonly string[], key: string): string[] { + return list.includes(key) ? list.filter(k => k !== key) : [...list, key] +} + +interface RemoteSearchState { + query: string + status: 'idle' | 'loading' | 'ready' | 'error' + items: readonly SessionSearchResultItem[] + hasMore: boolean +} + +/** Minimal fetch of the grouping config (host route; no-cache revalidation). */ +async function fetchGroupsConfig(): Promise { + const response = await fetch('/workspace-groups/config', { cache: 'no-cache' }) + if (!response.ok) throw new Error(`config request failed: ${response.status}`) + const body = (await response.json()) as GroupsConfig + return Array.isArray(body.categories) ? body : { categories: [] } +} + +/** + * Render the browsing region. + * @param props - composed slot props (shell owner share + store + injected actions). + * @returns the region element tree. + */ +export function GroupsBrowser({ + wide, + expandSidebar, + useSessions, + useWorkspaces, + useStore, + actions, + startSession, + open, + renameSession, + forkSession, + renameWorkspace, + deleteWorkspace, + insertWorkspaceBefore, + archiveSession, + insertSessionBefore, + createWorkspace, + pickDirectory, + searchSessions, + searchResultLimit, + t, +}: GroupsBrowserProps) { + // Inject the stylesheet once per fiber; dispose removes it (HMR safe). + useEffect(() => { + const style = document.createElement('style') + style.setAttribute('data-plugin', 'dsh-workspace-groups') + style.textContent = css + document.head.append(style) + return () => { style.remove() } + }, []) + + // Grouping config from the host route. + const [config, setConfig] = useState({ categories: [] }) + const [configError, setConfigError] = useState(null) + const reloadConfig = () => { + setConfigError(null) + fetchGroupsConfig().then(setConfig).catch((reason: unknown) => { + setConfigError(reason instanceof Error ? reason.message : String(reason)) + }) + } + useEffect(() => { reloadConfig() }, []) + + const workspaces = useWorkspaces(state => state.items) + const workspacePhase = useWorkspaces(state => state.phase) + const archivedSessionIds = useWorkspaces(state => state.archivedSessionIds) + const categoryExpansion = useStore(s => s.categoryExpansion) + const workspaceExpansion = useStore(s => s.workspaceExpansion) + + const list = useSessions(s => s) + const current = list.current + const currentWorkspaceKey = current === undefined + ? undefined + : (workspaces.find(w => w.sessionIds.includes(current as SessionId))?.workspaceId as string | undefined) + + // Auto-expand the category + workspace containing the current session, but + // ONLY when the user has never touched that key (`Object.hasOwn`): a + // present `false` is a deliberate collapse and must stay folded. Without + // this guard the effect re-expands the just-collapsed current category on + // every store change (the reported "cannot collapse" bug). + useEffect(() => { + if (current === undefined || currentWorkspaceKey === undefined) return + const category = categoriesForCurrent(config, workspaces, current) + if (category !== undefined && !Object.hasOwn(categoryExpansion, category)) { + actions.setCategoryExpanded(category, true) + } + if (!Object.hasOwn(workspaceExpansion, currentWorkspaceKey)) { + actions.setWorkspaceExpanded(currentWorkspaceKey, true) + } + }, [current, currentWorkspaceKey, config, workspaces, categoryExpansion, workspaceExpansion, actions]) + + // Drop expansion keys that no longer exist (config edits / workspace deletion). + useEffect(() => { + if (workspacePhase !== 'ready') return + actions.retainKeys( + config.categories.map(c => c.name), + workspaces.map(w => w.workspaceId as string), + ) + }, [actions, config, workspacePhase, workspaces]) + + const [query, setQuery] = useState('') + const [searchExpanded, setSearchExpanded] = useState(false) + const normalizedQuery = sanitizeSearchQuery(query).trim() + const [remoteSearch, setRemoteSearch] = useState({ + query: '', status: 'idle', items: [], hasMore: false, + }) + const searchInput = useRef(null) + const searchRoot = useRef(null) + + // Search debounce + abort, same posture as the official browser. + useEffect(() => { + if (normalizedQuery === '') { + setRemoteSearch({ query: '', status: 'idle', items: [], hasMore: false }) + return + } + const controller = new AbortController() + setRemoteSearch({ query: normalizedQuery, status: 'loading', items: [], hasMore: false }) + const timer = window.setTimeout(() => { + searchSessions(normalizedQuery, controller.signal).then((result) => { + if (controller.signal.aborted) return + setRemoteSearch({ query: normalizedQuery, status: 'ready', items: result.items, hasMore: result.hasMore }) + }).catch(() => { + if (controller.signal.aborted) return + setRemoteSearch({ query: normalizedQuery, status: 'error', items: [], hasMore: false }) + }) + }, SEARCH_DEBOUNCE_MS) + return () => { + window.clearTimeout(timer) + controller.abort() + } + }, [normalizedQuery, searchSessions]) + + // Outside-click dismissal of the search box. + useEffect(() => { + if (!wide || !searchExpanded) return + const onClick = (event: MouseEvent): void => { + if (!(event.target instanceof Node) || searchRoot.current?.contains(event.target) === true) return + searchInput.current?.blur() + if (normalizedQuery !== '') return + setSearchExpanded(false) + } + document.addEventListener('click', onClick) + return () => { document.removeEventListener('click', onClick) } + }, [normalizedQuery, wide, searchExpanded]) + + const expandedCategories = useMemo( + () => Object.entries(categoryExpansion).filter(([, v]) => v).map(([k]) => k), + [categoryExpansion], + ) + const expandedWorkspaces = useMemo( + () => Object.entries(workspaceExpansion).filter(([, v]) => v).map(([k]) => k), + [workspaceExpansion], + ) + const groups = useMemo( + () => deriveGroups(list, workspaces, archivedSessionIds, config, { + expandedCategories, + expandedWorkspaces, + }), + [list, workspaces, archivedSessionIds, config, expandedCategories, expandedWorkspaces], + ) + + // Add workspace flow: self-contained (no directory-flow hole dependency). + const [adding, setAdding] = useState(false) + const [addError, setAddError] = useState(null) + const [addErrorOpen, setAddErrorOpen] = useState(false) + const addWorkspace = async (): Promise => { + if (adding) return + setAdding(true) + setAddError(null) + setAddErrorOpen(false) + try { + const path = await pickDirectory() + if (path === null) return // cancelled + const workspace = await createWorkspace({ path }) + startSession(workspace.workspaceId) + } catch (reason) { + const message = reason instanceof Error ? reason.message : String(reason) + setAddError(message) + setAddErrorOpen(true) + } finally { + setAdding(false) + } + } + + // Workspace rename dialog. + const [renameTarget, setRenameTarget] = useState<{ workspaceId: WorkspaceId; currentTitle: string } | null>(null) + const [renameDraft, setRenameDraft] = useState('') + const [renaming, setRenaming] = useState(false) + const [renameError, setRenameError] = useState(null) + const renameTrimmed = renameDraft.trim() + const renameDuplicate = renameTarget !== null && renameTrimmed !== '' && renameTrimmed !== renameTarget.currentTitle + && workspaces.some(w => w.title === renameTrimmed) + const renameBlocked = renaming || renameTrimmed === '' || renameTarget === null + || renameTrimmed === renameTarget.currentTitle || renameDuplicate + const confirmRename = () => { + if (renameBlocked || renameTarget === null) return + setRenaming(true) + setRenameError(null) + renameWorkspace(renameTarget.workspaceId, renameTrimmed).then(() => { + setRenaming(false) + setRenameTarget(null) + }).catch((reason: unknown) => { + setRenaming(false) + setRenameError(reason instanceof Error ? reason.message : String(reason)) + }) + } + + // Workspace delete dialog. + const [deleteTarget, setDeleteTarget] = useState<{ workspaceId: WorkspaceId; title: string } | null>(null) + const [deleting, setDeleting] = useState(false) + const [deleteError, setDeleteError] = useState(null) + const confirmDelete = () => { + if (deleting || deleteTarget === null) return + setDeleting(true) + setDeleteError(null) + deleteWorkspace(deleteTarget.workspaceId).then(() => { + setDeleting(false) + setDeleteTarget(null) + }).catch((reason: unknown) => { + setDeleting(false) + setDeleteError(reason instanceof Error ? reason.message : String(reason)) + }) + } + + // Session rename dialog. + const [sessionRenameTarget, setSessionRenameTarget] = useState<{ sessionId: SessionId; currentTitle: string } | null>(null) + const [sessionRenameDraft, setSessionRenameDraft] = useState('') + const [sessionRenaming, setSessionRenaming] = useState(false) + const [sessionRenameError, setSessionRenameError] = useState(null) + const sessionRenameTrimmed = sessionRenameDraft.trim() + const sessionRenameBlocked = sessionRenaming || sessionRenameTrimmed === '' || sessionRenameTarget === null + const confirmSessionRename = () => { + if (sessionRenameBlocked || sessionRenameTarget === null) return + setSessionRenaming(true) + setSessionRenameError(null) + renameSession(sessionRenameTarget.sessionId, sessionRenameTrimmed).then(() => { + setSessionRenaming(false) + setSessionRenameTarget(null) + }).catch((reason: unknown) => { + setSessionRenaming(false) + setSessionRenameError(reason instanceof Error ? reason.message : String(reason)) + }) + } + const onSessionRename = (sessionId: SessionId, currentTitle: string) => { + setSessionRenameTarget({ sessionId, currentTitle }) + setSessionRenameDraft(currentTitle) + setSessionRenameError(null) + } + + const onSessionArchive = (sessionId: SessionId) => { + archiveSession(sessionId).catch((reason: unknown) => { + console.warn('session archive rejected:', reason) + }) + } + + const now = Date.now() + + return ( +
+
+ {wide && {t('section.workspaces')}} + {wide && ( +
+ + {searchExpanded && ( + { setQuery(sanitizeSearchQuery(e.target.value)) }} + onKeyDown={(e) => { + if (e.key !== 'Escape') return + setQuery('') + setSearchExpanded(false) + }} + /> + )} + {searchExpanded && ( + + )} +
+ )} + + + +
+ + {!wide && ( +
+ + + +
+ )} + +
+ {configError !== null && ( +
{t('configUnavailable')}
+ )} + {wide && normalizedQuery !== '' ? ( + + ) : ( +
+ {groups.length === 0 && ( +
{workspacePhase === 'ready' ? t('empty.noWorkspaces') : t('empty.none')}
+ )} + {groups.map((category) => ( + { actions.setCategoryExpanded(category.key, !category.expanded) }} + onToggleWorkspace={(key) => { actions.setWorkspaceExpanded(key, !workspaceExpansion[key]) }} + onNewSession={startSession} + onOpen={open} + onRenameRequest={(workspaceId, title) => { + setRenameTarget({ workspaceId, currentTitle: title }) + setRenameDraft(title) + setRenameError(null) + }} + onDeleteRequest={(workspaceId, title) => { + setDeleteTarget({ workspaceId, title }) + setDeleteError(null) + }} + onSessionRename={onSessionRename} + onSessionArchive={onSessionArchive} + onFork={forkSession} + /> + ))} +
+ )} +
+ + {/* Workspace rename dialog */} + { setRenameTarget(null) }} + closeLabel={t('close')} + title={t('workspace.renameTitle')} + footer={( + <> + + + + )} + > + { setRenameDraft(e.target.value) }} + onKeyDown={(e) => { if (e.key === "Enter") confirmRename() }} + /> + {renameError !== null &&
{renameError}
} +
+ + {/* Workspace delete dialog */} + { setDeleteTarget(null) }} + closeLabel={t('close')} + title={t('workspace.deleteTitle')} + footer={( + <> + + + + )} + > +
{t('workspace.deleteConfirm')}
+ {deleteError !== null &&
{deleteError}
} +
+ + {/* Session rename dialog */} + { setSessionRenameTarget(null) }} + closeLabel={t('close')} + title={t('session.renameTitle')} + footer={( + <> + + + + )} + > + { setSessionRenameDraft(e.target.value) }} + onKeyDown={(e) => { if (e.key === "Enter") confirmSessionRename() }} + /> + {sessionRenameError !== null &&
{sessionRenameError}
} +
+ + {/* Add workspace error dialog */} + { setAddErrorOpen(false) }} + closeLabel={t('close')} + title={t('workspace.addErrorTitle')} + footer={( + <> + + + + )} + > +
{addError}
+
+
+ ) +} + +/** Resolve the category label containing the current session (auto-expand helper). */ +function categoriesForCurrent( + config: GroupsConfig, + workspaces: readonly WorkspaceView[], + current: SessionId, +): string | undefined { + const workspace = workspaces.find(w => w.sessionIds.includes(current)) + if (workspace === undefined) return undefined + return classify(config.categories, workspace.path, workspace.title)?.name +} + +/** One category section: header row + expanded workspace folders. */ +function CategorySection({ category, current, now, t, onToggleCategory, onToggleWorkspace, onNewSession, onOpen, onRenameRequest, onDeleteRequest, onSessionRename, onSessionArchive, onFork }: { + category: CategoryNode + current: SessionId | undefined + now: number + t: GroupsBrowserProps['t'] + onToggleCategory: () => void + onToggleWorkspace: (key: string) => void + onNewSession: (workspaceId?: WorkspaceId) => void + onOpen: (sessionId: SessionId) => void + onRenameRequest: (workspaceId: WorkspaceId, currentTitle: string) => void + onDeleteRequest: (workspaceId: WorkspaceId, title: string) => void + onSessionRename: (sessionId: SessionId, currentTitle: string) => void + onSessionArchive: (sessionId: SessionId) => void + onFork: (sessionId: SessionId) => void +}) { + return ( +
+ + {category.expanded && ( +
+ {category.workspaces.map((workspace) => ( +
+ { onToggleWorkspace(workspace.workspaceId as string) }} + onNewSession={() => { onNewSession(workspace.workspaceId) }} + onRename={() => { onRenameRequest(workspace.workspaceId, workspace.label) }} + onDelete={() => { onDeleteRequest(workspace.workspaceId, workspace.label) }} + /> + {workspace.expanded && workspace.sessions.map((session) => ( + + ))} +
+ ))} +
+ )} +
+ ) +} + +/** + * Search body rendered as a three-level tree pruned to matched branches: + * 分类文件夹 → 项目文件夹 → 命中会话行. Reuses the same row components as + * the idle tree, so search keeps the same folder hierarchy the user is used to. + */ +function SearchBody({ list, workspaces, config, archivedSessionIds, query, remote, resultLimit, current, now, open, t }: { + list: SessionListState + workspaces: readonly WorkspaceView[] + config: GroupsConfig + archivedSessionIds: readonly SessionId[] + query: string + remote: RemoteSearchState + resultLimit: number + current: SessionId | undefined + now: number + open: (sessionId: SessionId) => void + t: GroupsBrowserProps['t'] +}) { + const currentRemote = remote.query === query ? remote : { query, status: 'loading' as const, items: [], hasMore: false } + const matches = useMemo( + () => deriveSearchMatches(list, workspaces, config, query, archivedSessionIds, currentRemote, resultLimit), + [list, workspaces, config, query, archivedSessionIds, currentRemote, resultLimit], + ) + const groups = useMemo( + () => deriveSearchGroups(list, workspaces, config, matches.matchedIds, archivedSessionIds, matches.snippetsBySession), + [list, workspaces, config, matches, archivedSessionIds], + ) + const pending = currentRemote.status === 'loading' + const failed = currentRemote.status === 'error' + return ( +
+ {groups.map((category) => ( +
+ {}} /> +
+ {category.workspaces.map((workspace) => ( +
+ {}} + onNewSession={() => {}} + onRename={() => {}} + onDelete={() => {}} + /> +
+ {workspace.sessions.map((session) => ( + {}} + onFork={() => {}} + onArchive={() => {}} + /> + ))} +
+
+ ))} +
+
+ ))} + {pending &&
{t('search.pending')}
} + {failed &&
{t('search.unavailable')}
} + {!pending && groups.length === 0 && ( +
{t('search.noMatches')}
+ )} + {matches.hasMore && ( +
{t('search.hasMore')}
+ )} +
+ ) +} diff --git a/src/client/contract.ts b/src/client/contract.ts new file mode 100644 index 0000000..8a06320 --- /dev/null +++ b/src/client/contract.ts @@ -0,0 +1,67 @@ +/** + * Registrant-private injected share for the workspace-groups browser entry. + * Mirrors the official ui-workspace browser inject (same runtime calls), with + * two differences: no directory-flow hole dependency (Add Workspace is + * self-contained via `pickDirectory`), and no locale-keyed naming collision. + */ +import type { + PropsHooks, + PropsLocale, + PropsRuntime, + PropsStore, +} from '@deepseek-ai/dsh-client-ui-slots' +// Type-only: pulls the sidebar shell's SlotMap merge (sidebar.workspaces). +import type {} from '@deepseek-ai/dsh-client-ui-sidebar/client' +import type { HostDescriptionSource } from '@deepseek-ai/dsh-client-connection/client' +import type { + SessionId, + SessionSearchResultItem, + WorkspaceId, + WorkspaceView, +} from '@deepseek-ai/dsh-client-runtime/client' +import type { createGroupsViewStore } from './stores.ts' + +/** Injected share (arrives via the register inject factory). */ +export type GroupsBrowserInjected = { + /** Start a New Session in a Workspace (reuse-or-create its blank session and open it). */ + startSession: (workspaceId?: WorkspaceId) => void + /** Open a real Session. */ + open: (sessionId: SessionId) => void + /** Search current visible conversation messages. */ + searchSessions: (query: string, signal: AbortSignal) => Promise<{ + items: readonly SessionSearchResultItem[] + hasMore: boolean + }> + /** Maximum number of merged rows rendered for one search. */ + searchResultLimit: number + /** Rename a Session (resolves on host acceptance). */ + renameSession: (sessionId: SessionId, title: string) => Promise + /** Fork a Session at its last completed turn and open the child. */ + forkSession: (sessionId: SessionId) => void + /** Rename a Host Workspace (rejects on name conflict). */ + renameWorkspace: (workspaceId: WorkspaceId, title: string) => Promise + /** Delete only a Host Workspace registration; directory and Session logs remain. */ + deleteWorkspace: (workspaceId: WorkspaceId) => Promise + /** Reorder a Workspace in the durable registry display order (omitted anchor appends). */ + insertWorkspaceBefore: (workspaceId: WorkspaceId, beforeWorkspaceId?: WorkspaceId) => Promise + /** Archive a Session into the registry-global set (hidden from grouping surfaces). */ + archiveSession: (sessionId: SessionId) => Promise + /** Reorder a session inside its Workspace account. */ + insertSessionBefore: (workspaceId: WorkspaceId, sessionId: SessionId, beforeSessionId?: SessionId) => Promise + /** Adopt a picked host directory as a real Workspace before targeting a Session. */ + createWorkspace: (input: { path: string }) => Promise + /** Ask the local Host to open its native single-directory chooser (self-contained Add Workspace). */ + pickDirectory: () => Promise + /** Browser-private injected hooks (host description; bound by the slot renderer). */ + hooks: { + /** Current generation's Host description. */ + hostDescription: HostDescriptionSource + } +} + +/** Full browser props: shell owner share + viewing store + injected actions + locale seat. */ +export type GroupsBrowserProps = PropsRuntime<'sidebar.workspaces'> & + PropsStore> & + Omit & + PropsHooks & + PropsLocale<'workspaceGroups'> diff --git a/src/client/index.ts b/src/client/index.ts new file mode 100644 index 0000000..86bc80b --- /dev/null +++ b/src/client/index.ts @@ -0,0 +1,99 @@ +/** + * dsh-workspace-groups client half: registers the three-level grouped + * workspace browser into the `sidebar.workspaces` slot, shadowing the + * official ui-workspace browser. + * + * Shadowing mechanics (SlotCore semantics): + * - `sidebar.workspaces` is a `single`/`root` slot. The official browser + * registers at priority 0; this entry registers at priority -1, and the + * single-cell shadow rule makes the LOWEST priority the winner — the + * sidebar renders this browser instead of the official one. + * - This entry deliberately declares NO child slots: the official entry + * already declared `sidebar.workspaces.directoryFlow` (a second declaration + * of an occupied child key throws). Add Workspace is therefore self- + * contained — `ctx.workspaces.pickDirectory()` + `create()`, no hole. + */ +import type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client' +import type { ConnectionHandle } from '@deepseek-ai/dsh-client-connection/client' +// Type-only: pulls the locale plugin's Context merge (ctx.locale). +import type {} from '@deepseek-ai/dsh-client-locale/client' +import type { GroupsBrowserInjected } from './contract.ts' +import { createGroupsViewStore } from './stores.ts' +import { GroupsBrowser } from './GroupsBrowser.tsx' +import { en, zh, type WorkspaceGroupsKey } from './locales.ts' + +declare module '@deepseek-ai/dsh-client-ui-slots' { + interface LocaleNamespaceMap { + /** The workspace-groups browsing region copy. */ + workspaceGroups: WorkspaceGroupsKey + } +} + +/** Dictionary namespace owned by this plugin. */ +const NS = 'workspaceGroups' + +/** Required services (cordis fiber inject). */ +export const inject = ['slots', 'sessions', 'workspaces', 'locale', 'connection'] + +/** + * Register the grouped browser once the sidebar slot declaration is on the + * ledger. Inject factory returns plain callbacks; data reads use the + * framework's global hooks. + * @param ctx - client root context. + */ +export function apply(ctx: ClientContext): void { + ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'dsh-workspace-groups: dictionaries') + + const searchSessions: GroupsBrowserInjected['searchSessions'] = async (query, signal) => { + const result = await ctx.sessions.search(query, signal) + if (!result.ok) throw new Error(result.error.message) + return result.value + } + + const browserInjected = (): GroupsBrowserInjected => ({ + startSession: (workspaceId) => { ctx.workspaces.startSession(workspaceId) }, + open: (sessionId) => { ctx.sessions.open(sessionId) }, + searchSessions, + searchResultLimit: ctx.sessions.searchResultLimit, + renameSession: async (sessionId, title) => { + const session = ctx.sessions.binding(sessionId)?.session + if (session === undefined) throw new Error(`unknown session "${sessionId}"`) + const result = await session.rename(title) + if (!result.ok) throw new Error(result.error.message) + }, + forkSession: (sessionId) => { + ctx.sessions.fork({ sessionId, increaseTitle: true }) + .then((childId) => { ctx.sessions.open(childId) }) + .catch(() => {}) + }, + renameWorkspace: async (workspaceId, title) => { await ctx.workspaces.rename(workspaceId, title) }, + deleteWorkspace: async (workspaceId) => { await ctx.workspaces.delete(workspaceId) }, + insertWorkspaceBefore: async (workspaceId, beforeWorkspaceId) => { + await ctx.workspaces.insertBefore(workspaceId, beforeWorkspaceId) + }, + archiveSession: async (sessionId) => { await ctx.workspaces.archiveSession(sessionId) }, + insertSessionBefore: async (workspaceId, sessionId, beforeSessionId) => { + await ctx.workspaces.insertSessionBefore(workspaceId, sessionId, beforeSessionId) + }, + createWorkspace: input => ctx.workspaces.create(input), + pickDirectory: () => ctx.workspaces.pickDirectory(), + hooks: { + hostDescription: (ctx.get('connection') as ConnectionHandle).hostDescription, + }, + }) + + // priority: -1 — lower than the official browser's default 0, so the + // single-slot shadow rule elects this entry. No children declaration: the + // official entry already owns `sidebar.workspaces.directoryFlow`. + ctx.slots.inject('sidebar.workspaces', () => ctx.slots.register( + { + name: 'sidebar.workspaces', + priority: -1, + store: createGroupsViewStore(), + inject: browserInjected, + locale: NS, + registrant: 'dsh-workspace-groups', + }, + GroupsBrowser, + )) +} diff --git a/src/client/locales.ts b/src/client/locales.ts new file mode 100644 index 0000000..8b23a90 --- /dev/null +++ b/src/client/locales.ts @@ -0,0 +1,153 @@ +/** + * Locale dictionaries for the workspace-groups browser. The namespace is + * `workspaceGroups` (independent from ui-workspace's `workspace` namespace). + */ +import type { LocaleDictOf } from '@deepseek-ai/dsh-client-ui-slots' + +/** Dictionary keys of the workspaceGroups namespace (single source of truth). */ +export type WorkspaceGroupsKey = + | 'section.workspaces' + | 'section.sessions' + | 'search' + | 'search.placeholder' + | 'search.clear' + | 'search.noMatches' + | 'search.unavailable' + | 'search.pending' + | 'search.hasMore' + | 'search.results.aria' + | 'workspace.add' + | 'workspace.addBusy' + | 'workspace.addError' + | 'workspace.addErrorTitle' + | 'workspace.rename' + | 'workspace.delete' + | 'workspace.deleteTitle' + | 'workspace.deleteConfirm' + | 'workspace.deleteCancel' + | 'workspace.renaming' + | 'workspace.deleting' + | 'workspace.renameTitle' + | 'workspace.renamePlaceholder' + | 'workspace.renameConfirm' + | 'workspace.renameCancel' + | 'session.new' + | 'session.rename' + | 'session.archive' + | 'session.fork' + | 'session.renameTitle' + | 'session.renamePlaceholder' + | 'session.renameConfirm' + | 'session.renameCancel' + | 'session.renaming' + | 'uncategorized' + | 'empty.none' + | 'empty.noWorkspaces' + | 'close' + | 'cancel' + | 'confirm' + | 'retry' + | 'configUnavailable' + | 'collapse' + | 'expandMore' + | 'newSession' + +export type WorkspaceGroupsDict = LocaleDictOf<'workspaceGroups'> + +/** Simplified Chinese dictionary. */ +export const zh: WorkspaceGroupsDict = { + 'section.workspaces': '工作区', + 'section.sessions': '会话', + search: '搜索', + 'search.placeholder': '搜索会话…', + 'search.clear': '清除', + 'search.noMatches': '没有匹配的会话', + 'search.unavailable': '搜索不可用', + 'search.pending': '搜索中…', + 'search.hasMore': '结果过多,请细化关键词', + 'search.results.aria': '搜索结果', + 'workspace.add': '添加工作区', + 'workspace.addBusy': '正在添加…', + 'workspace.addError': '添加失败', + 'workspace.addErrorTitle': '无法添加工作区', + 'workspace.rename': '重命名', + 'workspace.delete': '删除', + 'workspace.deleteTitle': '删除工作区', + 'workspace.deleteConfirm': '仅删除注册信息,目录与会话日志保留。确定删除?', + 'workspace.deleteCancel': '取消删除', + 'workspace.renaming': '重命名中…', + 'workspace.deleting': '删除中…', + 'workspace.renameTitle': '重命名工作区', + 'workspace.renamePlaceholder': '工作区名称', + 'workspace.renameConfirm': '重命名', + 'workspace.renameCancel': '取消', + 'session.new': '新建会话', + 'session.rename': '重命名会话', + 'session.archive': '归档', + 'session.fork': '派生', + 'session.renameTitle': '重命名会话', + 'session.renamePlaceholder': '会话名称', + 'session.renameConfirm': '重命名', + 'session.renameCancel': '取消', + 'session.renaming': '重命名中…', + uncategorized: '未分类', + 'empty.none': '暂无内容', + 'empty.noWorkspaces': '还没有工作区', + close: '关闭', + cancel: '取消', + confirm: '确定', + retry: '重试', + configUnavailable: '分组配置不可用', + collapse: '折叠', + expandMore: '展开全部', + newSession: '新建会话', +} + +/** English dictionary. */ +export const en: WorkspaceGroupsDict = { + 'section.workspaces': 'Workspaces', + 'section.sessions': 'Sessions', + search: 'Search', + 'search.placeholder': 'Search sessions…', + 'search.clear': 'Clear', + 'search.noMatches': 'No matching sessions', + 'search.unavailable': 'Search unavailable', + 'search.pending': 'Searching…', + 'search.hasMore': 'Too many results — refine the query', + 'search.results.aria': 'Search results', + 'workspace.add': 'Add workspace', + 'workspace.addBusy': 'Adding…', + 'workspace.addError': 'Add failed', + 'workspace.addErrorTitle': 'Could not add workspace', + 'workspace.rename': 'Rename', + 'workspace.delete': 'Delete', + 'workspace.deleteTitle': 'Delete workspace', + 'workspace.deleteConfirm': 'Only the registration is removed; the directory and session logs stay. Delete?', + 'workspace.deleteCancel': 'Cancel delete', + 'workspace.renaming': 'Renaming…', + 'workspace.deleting': 'Deleting…', + 'workspace.renameTitle': 'Rename workspace', + 'workspace.renamePlaceholder': 'Workspace name', + 'workspace.renameConfirm': 'Rename', + 'workspace.renameCancel': 'Cancel', + 'session.new': 'New Session', + 'session.rename': 'Rename session', + 'session.archive': 'Archive', + 'session.fork': 'Fork', + 'session.renameTitle': 'Rename session', + 'session.renamePlaceholder': 'Session name', + 'session.renameConfirm': 'Rename', + 'session.renameCancel': 'Cancel', + 'session.renaming': 'Renaming…', + uncategorized: 'Uncategorized', + 'empty.none': 'Nothing here', + 'empty.noWorkspaces': 'No workspaces yet', + close: 'Close', + cancel: 'Cancel', + confirm: 'Confirm', + retry: 'Retry', + configUnavailable: 'Grouping config unavailable', + collapse: 'Collapse', + expandMore: 'Show all', + newSession: 'New Session', +} diff --git a/src/client/rows.tsx b/src/client/rows.tsx new file mode 100644 index 0000000..e2bc8c5 --- /dev/null +++ b/src/client/rows.tsx @@ -0,0 +1,217 @@ +/** + * Row components for the workspace-groups tree. Kept dependency-light: they + * consume only React, primitives (StateDot/Menu/icons), and the shared CSS + * string. Each row owns its hover actions menu; dialogs live in the browser + * root so they survive row unmounts during collapse. + */ +import { useState } from 'react' +import { + IconArchiveOutline20, + IconBranchOutline16, + IconEditOutline16, + IconEllipsisOutline16, + IconFolderClose16, + IconFolderOpen16, + IconPlusOutline16, + IconTriangleRightFill14, + IconTrashOutline16, + Menu, + StateDot, + type StateDotState, +} from '@deepseek-ai/dsh-client-ui-primitives' +import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots' +import type { WorkspaceGroupsKey } from './locales.ts' +import type { CategoryNode, SessionNode, WorkspaceGroupNode } from './tree.ts' + +type T = TranslateNS<'workspaceGroups'> + +/** Pending interaction status → primitives StateDot state. */ +function pendingState(status: SessionNode['pendingInteraction']): StateDotState | undefined { + switch (status) { + case 'approval': + case 'plan-review': + case 'question': + return 'warning' + default: + return undefined + } +} + +/** Primary status dot state for a session row. */ +export function sessionDotState(node: Pick): StateDotState { + if (pendingState(node.pendingInteraction) !== undefined) return 'warning' + if (node.running || node.runningSubagentCount > 0) return 'ongoing' + return node.completed ? 'done' : 'done' +} + +/** Compact relative time ("now"/"5min"/"3h"/"2d"/"4mo"/"1y"). */ +export function relativeTimeLabel(updatedAt: number, now: number): string { + const diff = Math.max(0, now - updatedAt) + const MIN = 60_000 + const HOUR = 3_600_000 + const DAY = 86_400_000 + if (diff < MIN) return 'now' + if (diff < HOUR) return `${Math.floor(diff / MIN)}min` + if (diff < DAY) return `${Math.floor(diff / HOUR)}h` + if (diff < 30 * DAY) return `${Math.floor(diff / DAY)}d` + if (diff < 365 * DAY) return `${Math.floor(diff / (30 * DAY))}mo` + return `${Math.floor(diff / (365 * DAY))}y` +} + +/** One category folder row. */ +export function CategoryRow({ node, t, onToggle }: { + node: CategoryNode + t: T + onToggle: () => void +}) { + const count = node.workspaces.length + return ( +
+ + + + + {node.expanded ? : } + + {node.label} + {count} +
+ ) +} + +/** One workspace folder row inside a category. */ +export function WorkspaceRow({ node, t, onToggle, onNewSession, onRename, onDelete }: { + node: WorkspaceGroupNode + t: T + onToggle: () => void + onNewSession: () => void + onRename: () => void + onDelete: () => void +}) { + const [menuOpen, setMenuOpen] = useState(false) + const menuItems = [ + { id: 'rename', label: t('workspace.rename'), icon: }, + { id: 'delete', label: t('workspace.delete'), icon: , danger: true }, + ] + return ( +
+ + + + + {node.expanded ? : } + + {node.label} + + { setMenuOpen(false) }} + items={menuItems} + onSelect={(id) => { + setMenuOpen(false) + if (id === 'rename') onRename() + if (id === 'delete') onDelete() + }} + portal + closeOnPointerLeave + anchor={( + + )} + /> + + +
+ ) +} + +/** One session leaf row. */ +export function SessionRow({ node, currentId, now, t, onOpen, onRename, onFork, onArchive }: { + node: SessionNode + currentId: string | undefined + now: number + t: T + onOpen: (id: SessionNode['id']) => void + onRename: (id: SessionNode['id'], currentTitle: string) => void + onFork: (id: SessionNode['id']) => void + onArchive: (id: SessionNode['id']) => void +}) { + const selected = node.id === currentId + const [menuOpen, setMenuOpen] = useState(false) + const showStatus = true + const menuItems = [ + { id: 'rename', label: t('session.rename'), icon: }, + { id: 'fork', label: t('session.fork'), icon: }, + { id: 'archive', label: t('session.archive'), icon: }, + ] + return ( +
{ onOpen(node.id) }} + > + + {showStatus && } + + {node.title} + {!node.blank && {relativeTimeLabel(node.updatedAt, now)}} + {node.snippet !== undefined && ( + {node.snippet} + )} + {!node.blank && ( + + { setMenuOpen(false) }} + items={menuItems} + onSelect={(id) => { + setMenuOpen(false) + if (id === 'rename') onRename(node.id, node.title) + if (id === 'fork') onFork(node.id) + if (id === 'archive') onArchive(node.id) + }} + portal + closeOnPointerLeave + anchor={( + + )} + /> + + )} +
+ ) +} + +export type { T } diff --git a/src/client/store-core.ts b/src/client/store-core.ts new file mode 100644 index 0000000..768c998 --- /dev/null +++ b/src/client/store-core.ts @@ -0,0 +1,44 @@ +/** + * Pure expansion-state transforms for the workspace-groups store. Kept free + * of any runtime import so both the store (which binds them via defineStore) + * and unit tests (which exercise them directly) share one implementation. + * + * Expansion semantics follow the official ui-workspace store: collapse + * WRITES `false` (never deletes the key). The browser's auto-expand guard + * uses `Object.hasOwn` — a present `false` means "user deliberately + * collapsed this" and must NOT be re-expanded; only a fully absent key means + * "never touched" and may auto-expand. (Earlier versions deleted the key on + * collapse, which made the current category/workspace impossible to fold.) + */ + +/** Workspace-groups browser viewing state persisted across surface remounts and reloads. */ +export interface GroupsViewState { + /** Category folder expansion keyed by category label (absent = never touched). */ + categoryExpansion: Record + /** Workspace folder expansion keyed by workspace id (absent = never touched). */ + workspaceExpansion: Record +} + +/** Collapse writes `false` (key retained); expand writes `true`. */ +export function setCategoryExpandedImpl(state: GroupsViewState, key: string, expanded: boolean): void { + state.categoryExpansion[key] = expanded +} + +/** Collapse writes `false` (key retained); expand writes `true`. */ +export function setWorkspaceExpandedImpl(state: GroupsViewState, key: string, expanded: boolean): void { + state.workspaceExpansion[key] = expanded +} + +/** Drop expansion keys that no longer exist (renames/deletes/config edits). */ +export function retainKeysImpl( + state: GroupsViewState, + categoryKeys: readonly string[], + workspaceKeys: readonly string[], +): void { + state.categoryExpansion = Object.fromEntries( + Object.entries(state.categoryExpansion).filter(([key]) => categoryKeys.includes(key)), + ) + state.workspaceExpansion = Object.fromEntries( + Object.entries(state.workspaceExpansion).filter(([key]) => workspaceKeys.includes(key)), + ) +} diff --git a/src/client/stores.ts b/src/client/stores.ts new file mode 100644 index 0000000..9b339a8 --- /dev/null +++ b/src/client/stores.ts @@ -0,0 +1,44 @@ +/** + * The workspace-groups viewing store: category / workspace folder expansion, + * persisted across reloads under an independent key (the official + * ui-workspace store keeps its own `dsh.workspace.view.v5` — we never touch + * it). Module level exports the factory only (a module-level handle would pin + * the store identity across plugin reloads); register() receives the factory + * and the browser derives its PropsStore share from the return type. + * + * The action implementations live in `store-core.ts` (pure, runtime-free) so + * unit tests exercise the real semantics without a browser module loader; + * this file only binds them through defineStore. + */ +import { defineStore, type EngineStoreHandle } from '@deepseek-ai/dsh-client-runtime/client' +import { + retainKeysImpl, + setCategoryExpandedImpl, + setWorkspaceExpandedImpl, + type GroupsViewState, +} from './store-core.ts' + +/** Annotation twin of the actions literal below (structural type, satisfies `ActionsDecl`). */ +type GroupsViewActions = { + setCategoryExpanded: typeof setCategoryExpandedImpl + setWorkspaceExpanded: typeof setWorkspaceExpandedImpl + retainKeys: typeof retainKeysImpl +} + +/** + * Create the workspace-groups viewing store handle. + * @returns the store handle (spec + type + identity + factory in one). + */ +export function createGroupsViewStore(): EngineStoreHandle { + return defineStore({ + init: () => ({ categoryExpansion: {}, workspaceExpansion: {} }), + persist: 'dsh.workspace.groups.view.v1', + actions: { + setCategoryExpanded: setCategoryExpandedImpl, + setWorkspaceExpanded: setWorkspaceExpandedImpl, + retainKeys: retainKeysImpl, + }, + }) +} + +export type { GroupsViewState } from './store-core.ts' diff --git a/src/client/styles.css b/src/client/styles.css new file mode 100644 index 0000000..b71e223 --- /dev/null +++ b/src/client/styles.css @@ -0,0 +1,317 @@ +/* dsh-workspace-groups browser styles. Plain CSS injected by the plugin's + apply (via the ?inline virtual module) — no CSS Modules toolchain needed. */ + +.wgRoot { + display: flex; + flex-direction: column; + min-height: 0; + flex: 1; +} + +.wgSectionHeader { + display: flex; + align-items: center; + gap: 4px; + padding: 0 12px; + height: 36px; + flex: none; +} + +.wgSectionLabel { + flex: none; + max-width: 45%; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-size: 12px; + font-weight: 600; + color: var(--dsw-fg-1, inherit); +} + +.wgIconButton { + display: inline-flex; + align-items: center; + justify-content: center; + width: 26px; + height: 26px; + border: none; + background: transparent; + border-radius: 6px; + color: var(--dsw-fg-2, inherit); + cursor: pointer; + padding: 0; +} + +.wgIconButton:hover { + background: var(--dsw-bg-hover, rgba(127, 127, 127, 0.12)); + color: var(--dsw-fg-1, inherit); +} + +.wgIconButton:disabled { + opacity: 0.5; + cursor: default; +} + +.wgSearch { + display: flex; + align-items: center; + flex: 1; + min-width: 0; + max-width: 28px; + margin-left: auto; + transition: max-width 180ms ease; +} + +/* Search expanded: the slot grows to fill the header so the input widens + (mirrors the official ui-workspace searchSlot idle/expanded swap). */ +.wgSearchExpanded { + max-width: 100%; +} + +.wgSearchInput { + flex: 1; + min-width: 0; + border: none; + background: transparent; + outline: none; + font-size: 12px; + color: var(--dsw-fg-1, inherit); + padding: 0; +} + +.wgTreeBody { + flex: 1; + min-height: 0; + overflow-y: auto; + padding: 0 8px 8px; +} + +.wgList { + display: flex; + flex-direction: column; + gap: 1px; +} + +.wgEmpty { + padding: 16px 8px; + text-align: center; + font-size: 12px; + color: var(--dsw-fg-3, rgba(127, 127, 127, 0.8)); +} + +/* Category row: top-level folder. */ +.wgCategoryRow { + display: flex; + align-items: center; + gap: 4px; + height: 28px; + padding: 0 4px; + border-radius: 6px; + cursor: pointer; + user-select: none; +} + +.wgCategoryRow:hover { + background: var(--dsw-bg-hover, rgba(127, 127, 127, 0.12)); +} + +.wgChevron { + display: inline-flex; + align-items: center; + justify-content: center; + width: 14px; + height: 14px; + flex: none; + transition: transform 120ms ease; + color: var(--dsw-fg-3, rgba(127, 127, 127, 0.8)); +} + +.wgChevronOpen { + transform: rotate(90deg); +} + +.wgCategoryIcon { + display: inline-flex; + align-items: center; + justify-content: center; + flex: none; + color: var(--dsw-fg-2, inherit); +} + +.wgCategoryLabel { + flex: 1; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-size: 12px; + font-weight: 600; + color: var(--dsw-fg-1, inherit); +} + +.wgCategoryCount { + flex: none; + font-size: 11px; + color: var(--dsw-fg-3, rgba(127, 127, 127, 0.8)); +} + +/* Workspace row: project folder under a category. */ +.wgProjectRow { + display: flex; + align-items: center; + gap: 4px; + height: 28px; + padding: 0 4px 0 20px; + border-radius: 6px; + cursor: pointer; + user-select: none; +} + +.wgProjectRow:hover { + background: var(--dsw-bg-hover, rgba(127, 127, 127, 0.12)); +} + +.wgProjectActive { + color: var(--dsw-accent, #4a90d9); +} + +.wgProjectLabel { + flex: 1; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-size: 12px; + color: var(--dsw-fg-1, inherit); +} + +.wgRowActions { + display: inline-flex; + align-items: center; + gap: 2px; + flex: none; + opacity: 0; +} + +.wgProjectRow:hover .wgRowActions, +.wgProjectRow:focus-within .wgRowActions { + opacity: 1; +} + +/* Session row: leaf under a workspace folder. */ +.wgSessionRow { + display: flex; + align-items: center; + gap: 6px; + height: 30px; + padding: 0 4px 0 40px; + border-radius: 6px; + cursor: pointer; + user-select: none; +} + +.wgSessionRow:hover { + background: var(--dsw-bg-hover, rgba(127, 127, 127, 0.12)); +} + +.wgSessionRow:hover .wgRowActions, +.wgSessionRow:focus-within .wgRowActions { + opacity: 1; +} + +.wgSelected { + background: var(--dsw-bg-selected, rgba(74, 144, 217, 0.18)); +} + +.wgStatusSlot { + display: inline-flex; + align-items: center; + justify-content: center; + width: 14px; + height: 14px; + flex: none; +} + +.wgSessionTitle { + flex: 1; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-size: 12px; + color: var(--dsw-fg-1, inherit); +} + +.wgSessionTime { + flex: none; + font-size: 11px; + color: var(--dsw-fg-3, rgba(127, 127, 127, 0.8)); +} + +.wgVisuallyHidden { + position: absolute; + width: 1px; + height: 1px; + margin: -1px; + padding: 0; + overflow: hidden; + clip: rect(0 0 0 0); + white-space: nowrap; + border: 0; +} + +/* Search: the idle tree is re-rendered pruned to matched branches; matched + session rows get a tint, and content hits show a snippet line. */ +.wgMatched { + background: var(--dsw-bg-selected, rgba(74, 144, 217, 0.18)); +} + +.wgSessionSnippet { + flex: 1; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-size: 11px; + color: var(--dsw-fg-3, rgba(127, 127, 127, 0.8)); +} + +.wgSearchStatus { + padding: 8px; + font-size: 11px; + color: var(--dsw-fg-3, rgba(127, 127, 127, 0.8)); + text-align: center; +} + +.wgRail { + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; + padding: 8px 0; +} + +.wgAddError { + font-size: 12px; + color: var(--dsw-fg-1, inherit); + white-space: pre-wrap; + word-break: break-word; + max-height: 200px; + overflow-y: auto; +} + +.wgRenameInput { + width: 100%; + border: 1px solid var(--dsw-border, rgba(127, 127, 127, 0.3)); + border-radius: 6px; + background: var(--dsw-bg-1, transparent); + color: var(--dsw-fg-1, inherit); + font-size: 13px; + padding: 6px 8px; + outline: none; +} + +.wgRenameInput:focus { + border-color: var(--dsw-accent, #4a90d9); +} diff --git a/src/client/tree.ts b/src/client/tree.ts new file mode 100644 index 0000000..6b60150 --- /dev/null +++ b/src/client/tree.ts @@ -0,0 +1,357 @@ +/** + * Derives the three-level workspace-groups tree: 分类文件夹 → 项目文件夹 → + * 会话行. Pure derivation — all inputs are snapshots; the renderer never + * scans. Session visibility rules mirror the official ui-workspace tree + * (blank rows only when current, archived excluded, subagent rows excluded). + */ +import { + indexSubagentDescendants, + type PendingInteractionStatus, + type SessionId, + type SessionListState, + type SessionSearchResultItem, + type SessionSummary, + type SubagentDescendantSummary, + type WorkspaceId, + type WorkspaceView, +} from '@deepseek-ai/dsh-client-runtime/client' +import { classify } from '../core/matcher.ts' +import { UNCATEGORIZED_LABEL, type GroupsConfig } from '../core/types.ts' + +/** One top-level session row inside a workspace folder. */ +export interface SessionNode { + id: SessionId + /** Stored display title; blank rows show the localized New Session label. */ + title: string + /** The provisional blank session (renderer shows the localized New Session title). */ + blank: boolean + pendingInteraction?: PendingInteractionStatus + running: boolean + /** Running descendants connected through uninterrupted subagent-origin lineage. */ + runningSubagentCount: number + /** Finished running while not selected and not yet opened (the green "done" reminder dot). */ + completed: boolean + updatedAt: number + /** Search-hit marker (rendered with a highlighted tint in search mode). */ + matched?: boolean + /** Content-match snippet from the Host search (search mode only). */ + snippet?: string +} + +/** One workspace folder row inside a category folder. */ +export interface WorkspaceGroupNode { + workspaceId: WorkspaceId + /** Canonical host directory path. */ + path: string + /** Display title. */ + label: string + /** Workspace creation time (epoch ms). */ + createdAt: number + /** Total visible sessions in the folder. */ + sessionCount: number + expanded: boolean + /** The folder contains the selected session (active folder tint). */ + containsCurrent: boolean + /** Visible session rows (empty while the folder is folded). */ + sessions: readonly SessionNode[] +} + +/** One category folder at the top of the tree. */ +export interface CategoryNode { + /** Stable category key: the configured label, or the uncategorized bucket. */ + key: string + /** Display label. */ + label: string + expanded: boolean + /** The category contains the selected session (active folder tint). */ + containsCurrent: boolean + /** Workspace folders in host order. */ + workspaces: readonly WorkspaceGroupNode[] +} + +/** Viewing state consumed by the derivation. */ +export interface GroupsTreeView { + expandedCategories: readonly string[] + expandedWorkspaces: readonly string[] +} + +/** Key of the uncategorized bucket (matches the config fallback label). */ +export const UNCATEGORIZED_KEY = UNCATEGORIZED_LABEL + +/** Directory display label: basename of the path (both separators accepted). */ +export function workspaceLabel(cwd: string | undefined): string { + if (cwd === undefined || cwd === '') return UNCATEGORIZED_LABEL + const base = cwd.replace(/[/\\]+$/, '').split(/[/\\]/).pop() + return base !== undefined && base !== '' ? base : cwd +} + +/** Ordinary sessions are visible; blank only when current; archived/subagent never. */ +function sessionVisible(session: SessionSummary, current: SessionId | undefined, archived: ReadonlySet): boolean { + return session.origin !== 'subagent' + && !archived.has(session.id) + && (!session.blank || session.id === current) +} + +/** Blank rows display the localized New Session label (never enters search). */ +function sessionTitle(session: SessionSummary): string { + return session.blank ? 'New Session' : session.displayTitle +} + +function sessionNode( + s: SessionSummary, + descendants: ReadonlyMap, +): SessionNode { + return { + id: s.id, + title: sessionTitle(s), + blank: s.blank, + running: s.running, + runningSubagentCount: descendants.get(s.id)?.runningCount ?? 0, + completed: s.completed === true, + updatedAt: s.updatedAt, + ...(s.pendingInteraction === undefined ? {} : { pendingInteraction: s.pendingInteraction }), + } +} + +/** Visible sessions of one workspace in its stored account order. */ +function workspaceSessions( + list: SessionListState, + workspace: WorkspaceView, + archived: ReadonlySet, + descendants: ReadonlyMap, +): SessionNode[] { + const nodes: SessionNode[] = [] + for (const id of workspace.sessionIds) { + const summary = list.byId[id] + if (summary === undefined) continue // account may lead the list pull; appears when the summary lands + if (!sessionVisible(summary, list.current, archived)) continue + nodes.push(sessionNode(summary, descendants)) + } + return nodes +} + +/** + * Derive the three-level tree. + * @param list - sessions list snapshot (`current` feeds containsCurrent). + * @param workspaces - real workspaces in stable Host order. + * @param archivedSessionIds - registry-global archive set. + * @param config - sidecar grouping config. + * @param view - local expansion arrays. + * @returns category sections in render order (configured categories first, uncategorized last). + */ +export function deriveGroups( + list: SessionListState, + workspaces: readonly WorkspaceView[], + archivedSessionIds: readonly SessionId[], + config: GroupsConfig, + view: GroupsTreeView, +): CategoryNode[] { + const archived = new Set(archivedSessionIds) + const expandedCategories = new Set(view.expandedCategories) + const expandedWorkspaces = new Set(view.expandedWorkspaces) + const descendants = indexSubagentDescendants(list.byId) + + // Bucket workspaces by category, preserving host order inside each bucket. + const byCategory = new Map() + const categorized = new Set() + for (const category of config.categories) { + byCategory.set(category.name, []) + } + for (const workspace of workspaces) { + const category = classify(config.categories, workspace.path, workspace.title) + const key = category !== undefined ? category.name : UNCATEGORIZED_KEY + if (!byCategory.has(key)) byCategory.set(key, []) + byCategory.get(key)!.push(workspace) + categorized.add(workspace.workspaceId) + } + + const currentWorkspaceId = list.current === undefined + ? undefined + : workspaces.find(w => w.sessionIds.includes(list.current as SessionId))?.workspaceId + + const nodes: CategoryNode[] = [] + for (const [key, bucket] of byCategory) { + if (bucket.length === 0) continue + const expanded = expandedCategories.has(key) + const workspaceNodes: WorkspaceGroupNode[] = [] + let containsCurrent = false + for (const workspace of bucket) { + const sessions = workspaceSessions(list, workspace, archived, descendants) + const wsExpanded = expandedWorkspaces.has(workspace.workspaceId as string) + const wsContainsCurrent = workspace.workspaceId === currentWorkspaceId + if (wsContainsCurrent) containsCurrent = true + workspaceNodes.push({ + workspaceId: workspace.workspaceId, + path: workspace.path, + label: workspace.title, + createdAt: Date.parse(workspace.createdAt), + sessionCount: sessions.length, + expanded: wsExpanded, + containsCurrent: wsContainsCurrent, + sessions: wsExpanded ? sessions : [], + }) + } + nodes.push({ + key, + label: key === UNCATEGORIZED_KEY ? UNCATEGORIZED_LABEL : key, + expanded, + containsCurrent, + workspaces: workspaceNodes, + }) + } + return nodes +} + +/** Recency comparator: newest first, id as the deterministic tiebreak. */ +function byRecency(a: SessionSummary, b: SessionSummary): number { + if (b.updatedAt !== a.updatedAt) return b.updatedAt - a.updatedAt + return a.id < b.id ? -1 : 1 +} + +/** Bounded set of matched sessions plus content snippets (feeds the search tree). */ +export interface SearchMatchSet { + /** Session ids that matched (local metadata hits + Host content hits). */ + matchedIds: ReadonlySet + /** Content-match snippets keyed by session id (Host search only). */ + snippetsBySession: ReadonlyMap + hasMore: boolean +} + +/** + * Compute the matched-session set: immediate title/Workspace substring matches + * from the local list, merged with ranked Host content matches. The consumer + * (SearchBody) derives the pruned three-level tree from these ids. + */ +export function deriveSearchMatches( + list: SessionListState, + workspaces: readonly WorkspaceView[], + config: GroupsConfig, + query: string, + archivedSessionIds: readonly SessionId[], + content: { items: readonly SessionSearchResultItem[]; hasMore: boolean }, + limit: number, +): SearchMatchSet { + const q = query.trim().toLowerCase() + if (q === '') return { matchedIds: new Set(), snippetsBySession: new Map(), hasMore: false } + const archived = new Set(archivedSessionIds) + const descendants = indexSubagentDescendants(list.byId) + + const workspaceBySession = new Map() + for (const workspace of workspaces) { + for (const sessionId of workspace.sessionIds) { + if (!workspaceBySession.has(sessionId)) workspaceBySession.set(sessionId, workspace) + } + } + const labelOf = (summary: SessionSummary): string => + workspaceBySession.get(summary.id)?.title ?? workspaceLabel(summary.cwd) + + const local: SessionSummary[] = [] + for (const id of list.ids) { + const summary = list.byId[id] + if (summary === undefined || summary.blank || !sessionVisible(summary, list.current, archived)) continue + if ( + sessionTitle(summary).toLowerCase().includes(q) + || labelOf(summary).toLowerCase().includes(q) + ) { + local.push(summary) + } + } + local.sort(byRecency) + + const ordered: SessionSummary[] = [] + const included = new Set() + const include = (summary: SessionSummary): void => { + if (included.has(summary.id)) return + included.add(summary.id) + ordered.push(summary) + } + for (const summary of local) include(summary) + for (const item of content.items) { + const summary = list.byId[item.sessionId] + if (summary !== undefined && !summary.blank && sessionVisible(summary, list.current, archived)) include(summary) + } + + const snippets = new Map() + for (const item of content.items) { + if (item.snippet !== undefined) snippets.set(item.sessionId, item.snippet) + } + + return { + matchedIds: ordered.slice(0, limit).reduce((set, summary) => { set.add(summary.id); return set }, new Set()), + snippetsBySession: snippets, + hasMore: content.hasMore || ordered.length > limit, + } +} + +/** + * Build a three-level search tree containing ONLY the branches that hold a + * matched session: 分类文件夹 → 项目文件夹 → 命中会话行. Every matched + * session carries `matched: true` so rows render with the search-hit tint. + * + * @param list - sessions list snapshot. + * @param workspaces - real workspaces in stable Host order. + * @param config - sidecar grouping config. + * @param matchedIds - set of session ids that matched the query. + * @param archivedSessionIds - registry-global archive set. + * @param snippetsBySession - optional content-match snippets keyed by session id. + * @returns categories in render order, pruned to matched branches only. + */ +export function deriveSearchGroups( + list: SessionListState, + workspaces: readonly WorkspaceView[], + config: GroupsConfig, + matchedIds: ReadonlySet, + archivedSessionIds: readonly SessionId[], + snippetsBySession?: ReadonlyMap, +): CategoryNode[] { + const archived = new Set(archivedSessionIds) + const descendants = indexSubagentDescendants(list.byId) + + const byCategory = new Map() + for (const category of config.categories) byCategory.set(category.name, []) + + for (const workspace of workspaces) { + // Only sessions that matched the query and are visible in this folder. + const nodes: SessionNode[] = [] + for (const id of workspace.sessionIds) { + const summary = list.byId[id] + if (summary === undefined || !matchedIds.has(id)) continue + if (!sessionVisible(summary, list.current, archived)) continue + const node = sessionNode(summary, descendants) + const snippet = snippetsBySession?.get(id) + nodes.push({ + ...node, + matched: true, + ...(snippet === undefined ? {} : { snippet }), + }) + } + if (nodes.length === 0) continue + + const category = classify(config.categories, workspace.path, workspace.title) + const key = category !== undefined ? category.name : UNCATEGORIZED_KEY + if (!byCategory.has(key)) byCategory.set(key, []) + byCategory.get(key)!.push({ + workspaceId: workspace.workspaceId, + path: workspace.path, + label: workspace.title, + createdAt: Date.parse(workspace.createdAt), + sessionCount: nodes.length, + expanded: true, + containsCurrent: false, + sessions: nodes, + }) + } + + const categories: CategoryNode[] = [] + for (const [key, workspaceNodes] of byCategory) { + if (workspaceNodes.length === 0) continue + categories.push({ + key, + label: key === UNCATEGORIZED_KEY ? UNCATEGORIZED_LABEL : key, + expanded: true, + containsCurrent: false, + workspaces: workspaceNodes, + }) + } + return categories +} diff --git a/src/context-types.ts b/src/context-types.ts new file mode 100644 index 0000000..f3effce --- /dev/null +++ b/src/context-types.ts @@ -0,0 +1,28 @@ +/** + * Structural types for the cordis services this plugin consumes. A third-party + * plugin resolves outside the DSH monorepo's single cordis instance, so the + * upstream `declare module` augmentations do not reach this Context — the + * members below mirror the actual runtime shapes this plugin touches: + * - webServer: @deepseek-ai/dsh-host-webserver (the WebServer) + * - effect: the DSH-vendored cordis lifecycle helper + * Drift from upstream is contained to this file. + */ +import type { IncomingMessage, ServerResponse } from 'node:http' +import type { Context } from '@deepseek-ai/cordis' + +/** One named webserver route (mirror of the host-webserver WebRoute). */ +export interface GroupsWebRoute { + kind: 'exact' | 'prefix' + path: string + handler: (req: IncomingMessage, res: ServerResponse) => void | Promise +} + +/** The webServer service face this plugin uses. */ +export interface GroupsWebServer { + register(route: GroupsWebRoute): () => void +} + +/** Cordis Context augmented with the services this plugin needs. */ +export interface GroupsContext extends Context { + webServer: GroupsWebServer +} diff --git a/src/core/matcher.ts b/src/core/matcher.ts new file mode 100644 index 0000000..f1a52da --- /dev/null +++ b/src/core/matcher.ts @@ -0,0 +1,34 @@ +/** + * Pure classification logic: decides which category a workspace belongs to. + * Shared by the host half (validation) and the client half (tree derivation), + * so the rule semantics can never drift between the config surface and the + * rendered tree. + */ +import { normalizePath, type GroupCategory, type GroupRule } from './types.ts' + +/** One rule match against a workspace's path and title. */ +function ruleMatches(rule: GroupRule, path: string, title: string): boolean { + const normalized = normalizePath(path) + if (rule.pathPrefix !== undefined && normalized.startsWith(normalizePath(rule.pathPrefix))) return true + if (rule.pathExact !== undefined && normalized === normalizePath(rule.pathExact)) return true + if (rule.nameContains !== undefined && title.toLowerCase().includes(rule.nameContains.toLowerCase())) return true + if (rule.basenameContains !== undefined) { + const base = path.replace(/[/\\]+$/, '').split(/[/\\]/).pop() ?? '' + if (base.toLowerCase().includes(rule.basenameContains.toLowerCase())) return true + } + return false +} + +/** + * Classify a workspace into its category. + * @param categories - configured categories, in render order. + * @param path - workspace canonical directory path. + * @param title - workspace display title. + * @returns the matching category, or undefined when no rule matches. + */ +export function classify(categories: readonly GroupCategory[], path: string, title: string): GroupCategory | undefined { + for (const category of categories) { + if (category.rules.some(rule => ruleMatches(rule, path, title))) return category + } + return undefined +} diff --git a/src/core/types.ts b/src/core/types.ts new file mode 100644 index 0000000..d632609 --- /dev/null +++ b/src/core/types.ts @@ -0,0 +1,39 @@ +/** + * Shared config types for dsh-workspace-groups. Pure types (zero runtime + * deps) so both halves — the node half (sidecar YAML reading) and the + * browser half (tree derivation) — compile against the same contract. + */ + +/** One classification rule: any rule that matches places the workspace in the category. */ +export interface GroupRule { + /** Absolute path prefix match (normalized, case-sensitive). */ + pathPrefix?: string + /** Case-insensitive substring match against the workspace display title. */ + nameContains?: string + /** Case-insensitive substring match against the workspace directory basename. */ + basenameContains?: string + /** Exact absolute path match (normalized). */ + pathExact?: string +} + +/** One category folder in the sidebar tree. */ +export interface GroupCategory { + /** Display label of the category folder. */ + name: string + /** Rules; a workspace is classified here when ANY rule matches. */ + rules: GroupRule[] +} + +/** The full sidecar configuration (mirrors workspace-groups.yaml). */ +export interface GroupsConfig { + /** Category folders, in render order. First match wins. */ + categories: GroupCategory[] +} + +/** The label of the fallback bucket for unmatched workspaces. */ +export const UNCATEGORIZED_LABEL = '未分类' + +/** Normalize a path for prefix matching: trailing slashes stripped. */ +export function normalizePath(path: string): string { + return path.replace(/[/\\]+$/, '') +} diff --git a/src/css-modules.d.ts b/src/css-modules.d.ts new file mode 100644 index 0000000..485f414 --- /dev/null +++ b/src/css-modules.d.ts @@ -0,0 +1,5 @@ +/** Type declaration for the `*.css?inline` virtual module (compiled CSS text). */ +declare module '*.css?inline' { + const css: string + export default css +} diff --git a/src/host-config.ts b/src/host-config.ts new file mode 100644 index 0000000..c1d059e --- /dev/null +++ b/src/host-config.ts @@ -0,0 +1,96 @@ +/** + * Sidecar config reading for dsh-workspace-groups. The classification rules + * live in a user-editable YAML file (default `~/.dsh/workspace-groups.yaml`), + * read and validated on the host, served to the browser half as JSON. The + * core workspace.json and session storage are never touched. + */ +import { readFile } from 'node:fs/promises' +import { resolve } from 'node:path' +import { homedir } from 'node:os' +import { load as parseYaml } from 'js-yaml' +import { classify } from './core/matcher.ts' +import type { GroupsConfig, GroupCategory } from './core/types.ts' + +/** Default sidecar location: `$DSH_HOME/workspace-groups.yaml` (DSH_HOME falls back to ~/.dsh). */ +export function defaultConfigPath(): string { + const home = process.env.DSH_HOME !== undefined && process.env.DSH_HOME !== '' + ? process.env.DSH_HOME + : resolve(homedir(), '.dsh') + return resolve(home, 'workspace-groups.yaml') +} + +/** Parse + validate a raw sidecar document into a GroupsConfig (throws on malformed input). */ +export function parseGroupsConfig(raw: unknown): GroupsConfig { + if (raw === undefined || raw === null) return { categories: [] } + if (typeof raw !== 'object' || Array.isArray(raw)) { + throw new Error('workspace-groups.yaml: top-level value must be a mapping') + } + const categoriesValue = (raw as { categories?: unknown }).categories + const categories: GroupCategory[] = [] + if (categoriesValue === undefined) return { categories: [] } + if (!Array.isArray(categoriesValue)) { + throw new Error('workspace-groups.yaml: categories must be a list') + } + for (const entry of categoriesValue) { + if (typeof entry !== 'object' || entry === null || Array.isArray(entry)) { + throw new Error('workspace-groups.yaml: each category must be a mapping') + } + const name = (entry as { name?: unknown }).name + if (typeof name !== 'string' || name.trim() === '') { + throw new Error('workspace-groups.yaml: each category needs a non-empty name') + } + const rulesValue = (entry as { rules?: unknown }).rules + if (rulesValue === undefined) { + throw new Error(`workspace-groups.yaml: category "${name}" needs a rules list`) + } + if (!Array.isArray(rulesValue)) { + throw new Error(`workspace-groups.yaml: category "${name}" rules must be a list`) + } + const rules: GroupCategory['rules'] = [] + for (const rule of rulesValue) { + if (typeof rule !== 'object' || rule === null || Array.isArray(rule)) { + throw new Error(`workspace-groups.yaml: category "${name}" rule must be a mapping`) + } + const r = rule as Record + const normalized: GroupCategory['rules'][number] = {} + for (const key of ['pathPrefix', 'nameContains', 'basenameContains', 'pathExact'] as const) { + const value = r[key] + if (value !== undefined) { + if (typeof value !== 'string' || value === '') { + throw new Error(`workspace-groups.yaml: category "${name}" rule ${key} must be a non-empty string`) + } + normalized[key] = value + } + } + if (Object.keys(normalized).length === 0) { + throw new Error(`workspace-groups.yaml: category "${name}" has a rule with no matchers`) + } + rules.push(normalized) + } + if (rules.length === 0) { + throw new Error(`workspace-groups.yaml: category "${name}" needs at least one rule`) + } + categories.push({ name: name.trim(), rules }) + } + return { categories } +} + +/** + * Read + parse the sidecar config file. A missing file yields an empty config + * (all workspaces fall into the uncategorized bucket); malformed YAML throws + * so the operator sees the problem instead of silently ungrouping everything. + */ +export async function readGroupsConfig(path: string): Promise { + let text: string + try { + text = await readFile(path, 'utf8') + } catch (error) { + if ((error as NodeJS.ErrnoException).code === 'ENOENT') return { categories: [] } + throw error + } + const raw = parseYaml(text) + return parseGroupsConfig(raw) +} + +export { classify } +export type { GroupsConfig, GroupCategory, GroupRule } from './core/types.ts' diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..a55393f --- /dev/null +++ b/src/index.ts @@ -0,0 +1,55 @@ +/** + * dsh-workspace-groups host half: serves the sidecar grouping config to the + * browser half over a single fenced GET route (`/workspace-groups/config`). + * + * The route is a read-only snapshot endpoint: the browser half fetches it on + * load (and refetches on demand), the classification rules stay operator- + * editable in the YAML file, and no core workspace.json / session storage is + * touched. Static content — the config is small and operator-owned — uses + * `Cache-Control: no-cache` so a page reload revalidates against the file + * without the browser serving a stale grouping. + */ +import type { ServerResponse } from 'node:http' +import type { GroupsContext } from './context-types.ts' +import { defaultConfigPath, readGroupsConfig, type GroupsConfig } from './host-config.ts' + +/** Plugin identity for cordis.yml rows. */ +export const name = 'dsh-workspace-groups' + +/** Services required before mounting: the webserver route. */ +export const inject = ['webServer'] + +/** Write a plain-text error response with the given status. */ +function writeError(res: ServerResponse, status: number, message: string): void { + res.writeHead(status, { 'Content-Type': 'text/plain; charset=utf-8' }) + res.end(message) +} + +/** Plugin body: mount the config route. */ +export function apply(ctx: GroupsContext): void { + const configPath = defaultConfigPath() + ctx.effect(() => ctx.webServer.register({ + kind: 'exact', + path: '/workspace-groups/config', + handler: async (req, res) => { + if (req.method !== 'GET' && req.method !== 'HEAD') { + writeError(res, 405, 'method not allowed') + return + } + let config: GroupsConfig + try { + config = await readGroupsConfig(configPath) + } catch (error) { + writeError(res, 500, `workspace-groups: failed to read config: ${error instanceof Error ? error.message : String(error)}`) + return + } + const body = JSON.stringify(config) + res.writeHead(200, { + 'Content-Type': 'application/json; charset=utf-8', + 'Cache-Control': 'no-cache', + 'Content-Length': Buffer.byteLength(body), + }) + res.end(req.method === 'HEAD' ? undefined : body) + }, + }), 'dsh-workspace-groups: /workspace-groups/config route') +} diff --git a/tests/core.test.ts b/tests/core.test.ts new file mode 100644 index 0000000..928d7f7 --- /dev/null +++ b/tests/core.test.ts @@ -0,0 +1,96 @@ +/** + * Pure-logic tests: classification rules (the matcher) and config parsing. + * These are the plugin's business rules — no DOM, no cordis runtime. + */ +import { describe, expect, it } from 'vitest' +import { classify } from '../src/core/matcher.ts' +import { parseGroupsConfig } from '../src/host-config.ts' +import type { GroupsConfig } from '../src/core/types.ts' + +const CONFIG: GroupsConfig = { + categories: [ + { + name: 'DSH 插件', + rules: [ + { pathPrefix: '/Users/zcol/Project/SkillsManagePlugins' }, + { nameContains: '峰谷' }, + ], + }, + { + name: '文档', + rules: [{ basenameContains: 'docs' }], + }, + ], +} + +describe('classify', () => { + it('matches by path prefix', () => { + const category = classify(CONFIG.categories, '/Users/zcol/Project/SkillsManagePlugins', 'SkillsManagePlugins') + expect(category?.name).toBe('DSH 插件') + }) + + it('matches by name substring', () => { + const category = classify(CONFIG.categories, '/Users/zcol/Project/DeepSeek峰谷小组件', 'DeepSeek峰谷小组件') + expect(category?.name).toBe('DSH 插件') + }) + + it('matches by basename substring', () => { + const category = classify(CONFIG.categories, '/Users/zcol/Project/SomeDocs', 'SomeDocs') + expect(category?.name).toBe('文档') + }) + + it('first match wins across categories', () => { + const config: GroupsConfig = { + categories: [ + { name: 'A', rules: [{ nameContains: 'common' }] }, + { name: 'B', rules: [{ nameContains: 'common' }] }, + ], + } + const category = classify(config.categories, '/p/x', 'common-project') + expect(category?.name).toBe('A') + }) + + it('returns undefined when nothing matches', () => { + const category = classify(CONFIG.categories, '/tmp/random', 'Random') + expect(category).toBeUndefined() + }) + + it('path prefix matching strips trailing slashes', () => { + const category = classify(CONFIG.categories, '/Users/zcol/Project/SkillsManagePlugins/sub', 'Sub') + expect(category?.name).toBe('DSH 插件') + }) +}) + +describe('parseGroupsConfig', () => { + it('parses a valid document', () => { + const parsed = parseGroupsConfig({ + categories: [ + { name: 'X', rules: [{ pathPrefix: '/a' }] }, + ], + }) + expect(parsed.categories).toHaveLength(1) + expect(parsed.categories[0]?.name).toBe('X') + }) + + it('empty document yields empty categories', () => { + expect(parseGroupsConfig(undefined).categories).toEqual([]) + expect(parseGroupsConfig({}).categories).toEqual([]) + }) + + it('rejects a category without a name', () => { + expect(() => parseGroupsConfig({ categories: [{ rules: [] }] })).toThrow(/name/) + }) + + it('rejects a rule with no matchers', () => { + expect(() => parseGroupsConfig({ categories: [{ name: 'X', rules: [{}] }] })).toThrow(/no matchers/) + }) + + it('rejects a non-list categories value', () => { + expect(() => parseGroupsConfig({ categories: 'nope' })).toThrow(/list/) + }) + + it('trims category names', () => { + const parsed = parseGroupsConfig({ categories: [{ name: ' X ', rules: [{ pathPrefix: '/a' }] }] }) + expect(parsed.categories[0]?.name).toBe('X') + }) +}) diff --git a/tests/store.test.ts b/tests/store.test.ts new file mode 100644 index 0000000..33b1399 --- /dev/null +++ b/tests/store.test.ts @@ -0,0 +1,67 @@ +/** + * Store action tests: expansion semantics must match the official + * ui-workspace store — a collapse writes `false` (key retained), never + * deletes the key, so the auto-expand guard (`Object.hasOwn`) can tell + * "user collapsed this" from "user never touched this". + * + * Tested against the pure action implementations (the defineStore wrapper is + * a thin binder over these; the runtime bundle needs a browser loader we do + * not pull into this suite). + */ +import { describe, expect, it } from 'vitest' +import { + retainKeysImpl, + setCategoryExpandedImpl, + setWorkspaceExpandedImpl, + type GroupsViewState, +} from '../src/client/store-core.ts' + +function freshState(): GroupsViewState { + return { categoryExpansion: {}, workspaceExpansion: {} } +} + +describe('groups view store expansion semantics', () => { + it('setCategoryExpanded(true) stores the key as true', () => { + const state = freshState() + setCategoryExpandedImpl(state, 'DSH 插件', true) + expect(state.categoryExpansion['DSH 插件']).toBe(true) + }) + + it('setCategoryExpanded(false) retains the key with false (never deletes)', () => { + const state = freshState() + setCategoryExpandedImpl(state, 'DSH 插件', false) + // The key must EXIST with false — this is what lets the auto-expand + // guard distinguish a deliberate collapse from an untouched key. + expect(state.categoryExpansion).toHaveProperty('DSH 插件', false) + expect('DSH 插件' in state.categoryExpansion).toBe(true) + }) + + it('setWorkspaceExpanded(false) retains the key with false', () => { + const state = freshState() + setWorkspaceExpandedImpl(state, 'ws-1', false) + expect(state.workspaceExpansion).toHaveProperty('ws-1', false) + expect('ws-1' in state.workspaceExpansion).toBe(true) + }) + + it('retainKeys keeps collapsed keys (deliberate user state survives config churn)', () => { + const state = freshState() + setCategoryExpandedImpl(state, 'DSH 插件', true) + setCategoryExpandedImpl(state, '个人项目', false) + retainKeysImpl(state, ['DSH 插件', '个人项目'], []) + expect(state.categoryExpansion).toEqual({ 'DSH 插件': true, '个人项目': false }) + }) + + it('retainKeys drops keys for removed categories', () => { + const state = freshState() + setCategoryExpandedImpl(state, '旧分类', true) + retainKeysImpl(state, ['新分类'], []) + expect(state.categoryExpansion).toEqual({}) + }) + + it('retainKeys drops workspace keys for deleted workspaces', () => { + const state = freshState() + setWorkspaceExpandedImpl(state, 'ws-gone', false) + retainKeysImpl(state, [], ['ws-kept']) + expect(state.workspaceExpansion).toEqual({}) + }) +}) diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..2379810 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false, + "declaration": true, + "emitDeclarationOnly": true, + "outDir": "lib/types" + }, + "include": ["src"] +} diff --git a/tsconfig.client.json b/tsconfig.client.json new file mode 100644 index 0000000..034a88a --- /dev/null +++ b/tsconfig.client.json @@ -0,0 +1,13 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "jsx": "react-jsx", + "types": ["react", "react-dom", "node"] + }, + "include": [ + "src/client/**/*.ts", + "src/client/**/*.tsx", + "src/core/**/*.ts", + "src/css-modules.d.ts" + ] +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..533c75f --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Bundler", + "lib": ["ES2022", "DOM"], + "strict": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, + "exactOptionalPropertyTypes": true, + "verbatimModuleSyntax": true, + "skipLibCheck": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "allowImportingTsExtensions": true, + "jsx": "react-jsx", + "types": ["node"] + }, + "include": ["src"] +} diff --git a/tsdown.config.ts b/tsdown.config.ts new file mode 100644 index 0000000..220ab73 --- /dev/null +++ b/tsdown.config.ts @@ -0,0 +1,150 @@ +/** + * tsdown build for dsh-workspace-groups: the host-half lib (lib/index.js, ESM + * node) plus one browser client bundle (lib/client.js, CJS closure factory). + * + * The client bundle replicates the official DSH client-bundle preset + * (packages/client/tsdown.client.ts, same shape as dsh-better-sidebar and the + * official ui-* client packages): + * - externals resolve through the loader module table at runtime (the + * PLATFORM_MODULES seed list from packages/client/web/src/platform.ts, + * plus the runtime/client exemption), + * - everything else is inlined into the bundle, + * - the purity gate rejects any other @deepseek-ai value import: cross-plugin + * collaboration goes through cordis services / slots, never value imports, + * - CSS Modules compile to hashed class maps and inject