平台账号登录
正在加载平台登录页…
diff --git a/.github/workflows/ipollo-publish.yml b/.github/workflows/ipollo-publish.yml index d2957c4296..f3e17c49c9 100644 --- a/.github/workflows/ipollo-publish.yml +++ b/.github/workflows/ipollo-publish.yml @@ -6,16 +6,13 @@ on: release_tag: description: Complete numeric draft release, for example v1.0.3 required: true - mirror: - description: Also dispatch synchronization to configured mainland storage - type: boolean - default: false promote_preview: description: Promote an existing public preview after every platform has qualified type: boolean default: false permissions: + id-token: write contents: write actions: write @@ -26,7 +23,8 @@ concurrency: jobs: publish: runs-on: ubuntu-latest - timeout-minutes: 30 + environment: release-mirror + timeout-minutes: 90 env: GH_TOKEN: ${{ github.token }} RELEASE_TAG: ${{ inputs.release_tag }} @@ -37,6 +35,14 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '24.22.3' + - name: Obtain temporary OSS credentials through GitHub OIDC + uses: aliyun/configure-aliyun-credentials-action@1e5248c8d5d93a8781ac344a68e19a43341e79e6 + with: + role-to-assume: acs:ram::1369978658055461:role/ipollowork-release-oss + oidc-provider-arn: acs:ram::1369978658055461:oidc-provider/github-actions-ipollowork + audience: sts.aliyuncs.com + role-session-expiration: 3600 + role-session-name: ipollowork-release-${{ github.run_id }} - name: Require a numeric draft and a version newer than Latest env: PROMOTE_PREVIEW: ${{ inputs.promote_preview }} @@ -57,11 +63,21 @@ jobs: version="${RELEASE_TAG#v}" gh release upload "$RELEASE_TAG" release-assets/stable-mac.yml release-assets/stable.yml release-assets/IPOLLO-SHA256SUMS.txt \ "release-assets/ipollowork-win-x64-$version.exe" release-assets/ipollowork-*-latest.* --clobber + - name: Install CI-only OSS transport + working-directory: integrations/tooling/oss + run: npm ci --ignore-scripts --registry=https://registry.npmjs.org + - name: Require verified copies in both website OSS buckets + run: | + release_api=$(gh release view "$RELEASE_TAG" --json apiUrl --jq .apiUrl) + gh api "$release_api" > mirror-release.json + node integrations/tooling/release-oss.mjs stage mirror-release.json release-assets - name: Publish Latest id: publish-latest run: gh release edit "$RELEASE_TAG" --draft=false --prerelease=false --latest - name: Verify public update feeds and every referenced download run: node integrations/tooling/release-publication.mjs verify release.json "https://github.com/$GITHUB_REPOSITORY/releases/latest/download/" release-assets + - name: Activate verified website downloads in both regions + run: node integrations/tooling/release-oss.mjs activate mirror-release.json release-assets - name: Restore the previous Latest if public verification fails if: failure() && steps.publish-latest.outcome == 'success' run: | @@ -69,6 +85,3 @@ jobs: previous=$(node -p 'JSON.parse(require("fs").readFileSync("previous-release.json", "utf8")).tag_name') gh release edit "$previous" --latest fi - - name: Synchronize exact release bytes to the mainland mirror - if: inputs.mirror - run: gh workflow run release-mirror.yml --ref main -f "release_tag=$RELEASE_TAG" -f publish_draft=false diff --git a/.github/workflows/ipollo-repair-downloads.yml b/.github/workflows/ipollo-repair-downloads.yml index 6e517f8d4a..021ef7a02f 100644 --- a/.github/workflows/ipollo-repair-downloads.yml +++ b/.github/workflows/ipollo-repair-downloads.yml @@ -6,6 +6,7 @@ on: description: Existing Latest release whose verified payloads need website aliases required: true permissions: + id-token: write contents: write concurrency: group: ipollo-publish @@ -13,7 +14,8 @@ concurrency: jobs: repair: runs-on: ubuntu-latest - timeout-minutes: 20 + environment: release-mirror + timeout-minutes: 90 env: GH_TOKEN: ${{ github.token }} RELEASE_TAG: ${{ inputs.release_tag }} @@ -22,6 +24,14 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '24.22.3' + - name: Obtain temporary OSS credentials through GitHub OIDC + uses: aliyun/configure-aliyun-credentials-action@1e5248c8d5d93a8781ac344a68e19a43341e79e6 + with: + role-to-assume: acs:ram::1369978658055461:role/ipollowork-release-oss + oidc-provider-arn: acs:ram::1369978658055461:oidc-provider/github-actions-ipollowork + audience: sts.aliyuncs.com + role-session-expiration: 3600 + role-session-name: ipollowork-release-${{ github.run_id }} - name: Verify the current public release and original payloads run: | set -euo pipefail @@ -36,3 +46,12 @@ jobs: gh release upload "$RELEASE_TAG" "release-assets/ipollowork-win-x64-$version.exe" release-assets/ipollowork-*-latest.* release-assets/IPOLLO-SHA256SUMS.txt --clobber - name: Verify the actual public download URLs run: node integrations/tooling/release-publication.mjs verify release.json "https://github.com/$GITHUB_REPOSITORY/releases/latest/download/" release-assets + - name: Install CI-only OSS transport + working-directory: integrations/tooling/oss + run: npm ci --ignore-scripts --registry=https://registry.npmjs.org + - name: Refresh both OSS mirrors after repairing aliases + run: | + release_api=$(gh release view "$RELEASE_TAG" --json apiUrl --jq .apiUrl) + gh api "$release_api" > mirror-release.json + node integrations/tooling/release-oss.mjs stage mirror-release.json release-assets + node integrations/tooling/release-oss.mjs activate mirror-release.json release-assets diff --git a/.github/workflows/ipollowork-integrations.yml b/.github/workflows/ipollowork-integrations.yml index 99e796cfe7..c30edfaf23 100644 --- a/.github/workflows/ipollowork-integrations.yml +++ b/.github/workflows/ipollowork-integrations.yml @@ -2,9 +2,9 @@ name: iPolloWork integrations on: push: branches: [main] - paths: ['plugins/ipollo-enterprise/**', 'plugins/ipollowork-suite/**', 'plugins/collaboration-board/**', 'plugins/notification-center/**', 'services/ipollowork/**', 'integrations/**', '.github/workflows/ipollowork-integrations.yml', 'package.json', 'AGENTS.md', 'LICENSE', 'LICENSES/**', 'README*'] + paths: ['plugins/ipollo-enterprise/**', 'plugins/ipollowork-suite/**', 'plugins/collaboration-board/**', 'plugins/notification-center/**', 'plugins/doctor-workbench/**', 'plugins/_shared/**', 'services/ipollowork/**', 'integrations/**', '.github/workflows/ipollowork-integrations.yml', 'package.json', 'AGENTS.md', 'LICENSE', 'LICENSES/**', 'README*'] pull_request: - paths: ['plugins/ipollo-enterprise/**', 'plugins/ipollowork-suite/**', 'plugins/collaboration-board/**', 'plugins/notification-center/**', 'services/ipollowork/**', 'integrations/**', '.github/workflows/ipollowork-integrations.yml', 'package.json', 'AGENTS.md', 'LICENSE', 'LICENSES/**', 'README*'] + paths: ['plugins/ipollo-enterprise/**', 'plugins/ipollowork-suite/**', 'plugins/collaboration-board/**', 'plugins/notification-center/**', 'plugins/doctor-workbench/**', 'plugins/_shared/**', 'services/ipollowork/**', 'integrations/**', '.github/workflows/ipollowork-integrations.yml', 'package.json', 'AGENTS.md', 'LICENSE', 'LICENSES/**', 'README*'] workflow_dispatch: permissions: contents: read @@ -38,6 +38,12 @@ jobs: run: node node_modules/vitest/vitest.mjs run --config integrations/desktop/vitest.config.ts --maxWorkers=2 - name: Check enterprise connector run: npm run check --prefix plugins/ipollo-enterprise + - name: Check and package Doctor Workbench + working-directory: plugins/doctor-workbench + run: | + npm ci --ignore-scripts --workspaces=false + npm run check --workspaces=false + npm run pack:check --workspaces=false - name: Install account service dependencies working-directory: services/ipollowork run: npm ci --ignore-scripts --workspaces=false diff --git a/.github/workflows/release-mirror.yml b/.github/workflows/release-mirror.yml index 719e9db6b4..fa4ee73053 100644 --- a/.github/workflows/release-mirror.yml +++ b/.github/workflows/release-mirror.yml @@ -1,93 +1,57 @@ -name: Publish identical global and mainland releases +name: Mirror published releases to both website OSS buckets on: release: types: [published, edited] workflow_dispatch: inputs: release_tag: - description: Fully built release tag (a draft is published only after mirror verification) + description: Existing published numeric release to archive in both regions required: true - publish_draft: - description: Publish draft after every mirrored asset passes verification - type: boolean - default: true permissions: - contents: write + id-token: write + contents: read +# Serialize all website-pointer writers with normal release publication. concurrency: - group: release-mirror-${{ github.event.release.tag_name || inputs.release_tag }} + group: ipollo-publish cancel-in-progress: false jobs: mirror: - if: github.event_name == 'workflow_dispatch' || github.event.release.draft == false + if: github.event_name == 'workflow_dispatch' || (github.event.release.draft == false && github.event.release.prerelease == false) runs-on: ubuntu-latest environment: release-mirror timeout-minutes: 90 env: GH_TOKEN: ${{ github.token }} RELEASE_TAG: ${{ github.event.release.tag_name || inputs.release_tag }} - MIRROR_ENDPOINT: ${{ vars.IPOLLO_MIRROR_S3_ENDPOINT }} - MIRROR_BUCKET: ${{ vars.IPOLLO_MIRROR_BUCKET }} - MIRROR_PUBLIC_URL: ${{ vars.IPOLLO_MIRROR_PUBLIC_URL }} - AWS_DEFAULT_REGION: ${{ vars.IPOLLO_MIRROR_REGION || 'cn-north-1' }} - AWS_ACCESS_KEY_ID: ${{ secrets.IPOLLO_MIRROR_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.IPOLLO_MIRROR_SECRET_ACCESS_KEY }} - AWS_RETRY_MODE: standard - AWS_MAX_ATTEMPTS: 5 steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 + ref: main - uses: actions/setup-node@v4 with: node-version: '24.22.3' - - name: Require configured mainland storage - shell: bash + - name: Obtain temporary OSS credentials through GitHub OIDC + uses: aliyun/configure-aliyun-credentials-action@1e5248c8d5d93a8781ac344a68e19a43341e79e6 + with: + role-to-assume: acs:ram::1369978658055461:role/ipollowork-release-oss + oidc-provider-arn: acs:ram::1369978658055461:oidc-provider/github-actions-ipollowork + audience: sts.aliyuncs.com + role-session-expiration: 3600 + role-session-name: ipollowork-release-${{ github.run_id }} + - name: Require a public stable release run: | - set -euo pipefail - : "${MIRROR_ENDPOINT:?Configure IPOLLO_MIRROR_S3_ENDPOINT}" - : "${MIRROR_BUCKET:?Configure IPOLLO_MIRROR_BUCKET}" - : "${MIRROR_PUBLIC_URL:?Configure IPOLLO_MIRROR_PUBLIC_URL}" - : "${AWS_ACCESS_KEY_ID:?Configure IPOLLO_MIRROR_ACCESS_KEY_ID}" - : "${AWS_SECRET_ACCESS_KEY:?Configure IPOLLO_MIRROR_SECRET_ACCESS_KEY}" - - name: Download and verify original GitHub assets - shell: bash + release_api=$(gh release view "$RELEASE_TAG" --json apiUrl --jq .apiUrl) + gh api "$release_api" > mirror-release.json + node --input-type=module -e 'import fs from "node:fs"; import assert from "node:assert/strict"; import {numericReleaseVersion} from "./integrations/tooling/release-update-feed.mjs"; const r=JSON.parse(fs.readFileSync("mirror-release.json")); numericReleaseVersion(r.tag_name); assert.equal(r.draft,false); assert.equal(r.prerelease,false)' + - name: Install CI-only OSS transport + working-directory: integrations/tooling/oss + run: npm ci --ignore-scripts --registry=https://registry.npmjs.org + - name: Use GitHub fallback while a manually published Latest is syncing + run: node integrations/tooling/release-oss.mjs pending mirror-release.json release-assets + - name: Copy and verify all release assets in both regions run: | - set -euo pipefail mkdir release-assets - release_api=$(gh release view "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --json apiUrl --jq .apiUrl) - gh api "$release_api" > release.json - gh release download "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --dir release-assets - node integrations/tooling/release-mirror.mjs manifest release.json release-assets - - name: Require upgrade qualification before publishing the mirror - env: - PUBLISH_DRAFT: ${{ inputs.publish_draft }} - run: | - previous=() - if [[ "$PUBLISH_DRAFT" == true ]] && node -e 'process.exit(require("./release.json").draft ? 0 : 1)'; then - gh api "repos/$GITHUB_REPOSITORY/releases/latest" > previous-release.json - previous+=(previous-release.json) - fi - node integrations/tooling/release-publication.mjs qualify release.json release-assets "${previous[@]}" - - name: Configure OSS-compatible addressing - run: aws configure set default.s3.addressing_style virtual - - name: Copy exact bytes to mainland storage - shell: bash - run: | - set -euo pipefail - aws s3 cp release-assets/ "s3://$MIRROR_BUCKET/releases/$RELEASE_TAG/" --recursive --endpoint-url "$MIRROR_ENDPOINT" --only-show-errors --exclude mirror-manifest.json - - name: Verify every asset through the public mirror - shell: bash - run: | - set -euo pipefail - node integrations/tooling/release-mirror.mjs verify release-assets/mirror-manifest.json "$MIRROR_PUBLIC_URL" - - name: Publish verified manifest and optional draft - shell: bash - env: - PUBLISH_DRAFT: ${{ inputs.publish_draft }} - run: | - set -euo pipefail - aws s3 cp release-assets/mirror-manifest.json "s3://$MIRROR_BUCKET/releases/$RELEASE_TAG/mirror-manifest.json" --endpoint-url "$MIRROR_ENDPOINT" --cache-control no-cache --only-show-errors - if [ "$PUBLISH_DRAFT" = true ]; then - gh release edit "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --draft=false - fi - echo "Verified global and mainland release: $RELEASE_TAG" >> "$GITHUB_STEP_SUMMARY" + gh release download "$RELEASE_TAG" --dir release-assets + node integrations/tooling/release-oss.mjs stage mirror-release.json release-assets + - name: Activate only if this release is still GitHub Latest + run: node integrations/tooling/release-oss.mjs activate mirror-release.json release-assets diff --git a/docs/doctor-workbench-literature-roadmap.zh.md b/docs/doctor-workbench-literature-roadmap.zh.md new file mode 100644 index 0000000000..93dfab4b2e --- /dev/null +++ b/docs/doctor-workbench-literature-roadmap.zh.md @@ -0,0 +1,101 @@ +# 医生工作台市场接入与验收 + +本轮以 2026 年 11 月 27 日交接的医生工作台 2.5.21 源码为基线。市场版保留原包名、组件、工具和工作区任务存储,使用仓库固定的 DSH 0.2.3-alpha.2。 + +| 工作项 | 本轮验收条件 | +| --- | --- | +| 市场与生命周期 | 图标、版本、运行时约束和 SHA-256 与归档一致。用原生市场安装,在独立 profile 验证启停、卸载与资料保留。 | +| 文献检索与解读 | 用公开主题检查来源、无结果、超时和限流标识。使用合成来源验证引文绑定、恢复已有任务、报告版本与导出。 | +| 病例教学和其他模块 | 使用合成资料验证医疗模块入口、工作区范围、资料导入、保存、版本和可下载成果。检查缺少可用助手时的引导。 | +| 权限与界面 | 本机 owner 可进入,未授权访问与跨工作区读取被拒绝。检查深色、浅色及窄窗口。 | + +## 2026-11-29 本地验收记录 + +本轮在 Windows 的独立 DSH 配置中,从 iPolloWork 市场安装并启用 `@local/doctor-workbench@2.5.22`。最终市场归档 SHA-256 为 `9e00ff73e412677841201e80070bb9f3fd281ae1293a4a5ded2aea9d5ba30a28`。测试使用虚构资料和公开检索词。 + +| 项目 | 实际验证结果 | +| --- | --- | +| 安装与原数据 | 停用后宿主撤下工作台入口。卸载测试中,本机全局 pnpm 移除依赖后没有退出。结束该隔离子进程后,从市场安装最终包,按宿主提示重启并启用。原课题、进展和所关联的文献版本仍可读取。另用 2.5.21 创建旧病例,在 2.5.22 另存第二版,初版 Word 逐字节一致。 | +| 医生对话与界面 | 在网页宿主打开七个业务入口。选择测试工作区和助手、确认资料范围后,在原生会话发送消息并收到本机固定应答模型的回复。检查了浅色、深色以及 390 像素宽的布局。 | +| 文献与引用 | 修复检索工具输出字段与宿主声明不一致的问题。用公开关键词实查 PubMed 和 Europe PMC,两处均返回文献并通过宿主校验。WHO IRIS 与 ClinicalTrials.gov 也各返回一条公开记录。 | +| 病例与报告 | 最终安装包可导入文字版 PDF、DOCX、TXT,保留页码和原文引用。保存虚构教学稿,下载并读取 Word、PPT、Markdown 和 HTML。重开任务后资料与成果仍在,使用过期版本保存会被拒绝。 | +| 科研项目 | 在界面编辑开题稿并下载 Word 和 Markdown。另验证任务书变更、进展与指标关联、两版中期稿,以及文献更新后课题继续引用选定的旧版本。文献、循证、用药与患教四类报告的人工修订和引用档案可保存。 | +| 回归检查 | 医生插件 175 项全部通过。套件 270 项通过、11 项跳过,根项目 43 项通过、1 项跳过。类型检查、市场图标和归档清单、文档链接以及固定 DSH 来源校验通过。 | + +下一轮发布时应在正式桌面安装包复测安装、卸载及升级,并使用实际配置的模型验证生成质量。本轮验证覆盖本机对话收发、公开来源和文档处理。线上分发与院内系统对接另行安排。 + +## 2026-11-30 工作区目录失效排查 + +开发版的「123」工作区仍有注册,但原文件夹已不在原位置,读取课题返回通用错误。当前配置没有已启用的医生助手。已在开发版注册独立的「医生工作台」工作区,实际打开科研页并看到「新建课题」。旧注册保留原有会话关联。 + +本地 2.5.22 验收包在独立 DSH 配置中通过缺失目录、原目录恢复和重试检查。网页浅色宽屏和深色 390 像素窄屏均能看到恢复指引,首次读取失败时暂不可新建。验收资料为空课题列表和合成测试数据。插件 175 项及根项目 44 项测试通过,包清单和固定 DSH 校验通过。 + +下一轮随插件版本分发工作区恢复提示,并在配置了真实模型的开发环境中复测医生对话。 + +## 2026-11-30 独立安装与内置医生助手 + +`@local/doctor-workbench@2.5.23` 随包提供「内置医生助手」,使用 DSH 的标准预设和宿主默认模型。仅已绑定的医生会话收到医疗任务上下文。Suite 已启用的自定义助手仍可选择。Windows 短暂占用任务或成果文件时,保留原文件并重试原子替换。 + +候选归档 SHA-256 为 `8ff5181916f4e13a0bde27aeb6b0c2c5e8bfde8b51ba90b2fbacbd2820277083`。在 Windows 上安装到全新的 DSH 0.2.3-alpha.2 Web 配置,确认未装 Suite 时默认工作区可进入科研页。使用本机回环模拟模型和虚构输入,逐一验证医生对话、病例教学、文献研读、临床循证、教学汇报、用药核查和患者沟通的界面入口、医疗任务绑定及回复。普通宿主对话未收到医疗任务上下文。另验证 Windows 文件锁短暂阻塞后可以保存任务并继续回复。 + +病例表单能提交虚构示例,文字版 PDF、DOCX、TXT 可导入,Word、PPT、Markdown、HTML 可导出。科研项目能创建、记进展、保存两版阶段稿、导出 Word 和 Markdown,并固定引用已有文献成果版本。目录丢失与恢复指引在浅色宽屏和深色窄屏验证。用公开通用词实际取得 PubMed 和 Europe PMC 文献记录、WHO 指南检索记录及 ClinicalTrials.gov 登记记录。验收未使用患者资料。 + +插件 175 项测试、根项目 44 项测试、归档清单与固定 DSH 来源校验均通过。原生插件管理器停用后路由撤下,重新启用能读回原课题,卸载后课题文件内容保持一致。本次安装在独立验收配置进行,日常开发配置仍使用此前版本。后续可在正式桌面安装包和已配置的真实模型上复验生成质量。 + +## 2026-11-30 独立安装功能复验 + +将相同 SHA-256 的 2.5.23 归档重新安装到无 Suite 的 DSH 0.2.3-alpha.2 配置。空白宿主的可用模型目录为空。通过本地模拟模型在原生会话发起实际工具调用,验证附件入库与原文核对、病例核对稿和正式版、医学教学 PPT 讲稿、临床清单、用药清单及患教问答。任务切换保留旧成果并可复用原来源。虚构引文被拒绝,修正后可保存。已校验实际导出文件内容。 + +主界面打开已有用药成果后,编辑标题并保存新版。两个 Word 版本分别从原生侧栏下载,旧版字节保持一致。模型服务离线时,仍可从界面新建课题、按课题记录生成本地模板文稿、编辑保存并下载 Word 和 Markdown。额外验证 TXT、Markdown、CSV、TSV、JSON 导入。无文字层 PDF 提示先 OCR,XLSX 提示支持格式。原生工具验收使用独立的临时工作区和虚构资料。 + +通过任务绑定工具,以公开查询实际取得 PMID 36641521 及 openFDA 美国药品说明书,并用已知 WHO 原始发布页验证直接导入和原文留存。通过关键词搜索官方候选网页需要宿主的搜索授权,空白配置会返回该错误。七步调研断点续跑、证据归档与科研项目等 24 项针对性测试通过。真实模型的医学内容质量、付费全文授权和院内系统仍待具备对应环境后验证。日常开发配置未升级,本轮没有重新打包。 + +## 2026-11-30 日常开发版升级 + +在当前 Jovan Windows 桌面开发配置中,原生插件管理器将已启用的医生工作台从 2.5.22 更新到已经独立验收的 2.5.23。旧版本返回零个医生助手。新版工作台默认显示「内置医生助手」并沿用该宿主已配置的 DeepSeek V4 Pro。 + +在实际桌面窗口选择「医生工作台」工作区、确认本次仅用公开或虚构资料后,点击进入自由对话。用一条无医学内容的测试消息验证真实模型回复,确认可直接进入对话而无需创建智能体。已在同一宿主验证科研项目列表可读。真实模型验收覆盖会话启动与收发,专业生成质量仍需另行复核。 + +## 2026-11-30 工作台内嵌对话与宿主模型 + +2.5.24 在医生工作台内嵌原生对话和「依据与成果」,病例表单、历史任务和科研润色都在工作台打开。返回时保留原页面及未保存的科研草稿。新任务使用内置助手,沿用主软件当前选中的默认模型。文献筛选、写作、逐句复核和证据缺口核对均使用当前医生会话的模型。既有会话与已保存报告继续保留原模型记录。 + +最终归档 SHA-256 为 `0dbed78a56332c0e080b27cfaa6d576608f368cd109cc393a6e35407ffbac5ac`。在不含 Suite 的独立 DSH 配置中,用两个本地模拟模型验证了主软件切换默认模型后新会话的实际调用、内嵌输入、成果切换时保留对话草稿、重开历史、科研草稿返回和病例表单往返。浅色桌面与深色 390 像素窄屏检查通过。停用、重新启用和卸载均验证,已保存课题保持一致。插件 175 项、根项目 44 项及固定 DSH 来源校验通过。 + +已更新当前 Jovan Windows 桌面开发配置。在实际桌面窗口验证内嵌对话及成果切换。开发配置中的 DeepSeek V4 Pro 已回复一条虚构验收消息,旧版医生对话也可从工作台内重新打开。验收使用虚构内容,真实模型专业生成质量仍需复核。 + +## 2026-11-30 医学 Skill 与 MCP 盘点 + +从当前 Jovan 桌面实际安装的 2.5.24 归档加载 Host 注册入口,核对到 9 个内置 Skill 和 19 个原生工具。安装包未注册医疗 MCP。宿主连接清单未发现 BioMCP、Zotero 或 FHIR 等医疗科研专用连接。文献 Skill 中的 BioMCP 是可选宿主能力。现有文献、试验和药品检索直连公开数据源,官方网页候选发现使用宿主网页搜索。此次盘点只读取注册与连接目录,未发送临床资料或安装服务。 + +优先候选为对题录与既有引用补齐撤稿和更正检查,以及为中国药品说明书和指南补齐可复查的版本资料。科研项目可复用现有筛选记录增加 PRISMA 流程图和 GRADE 复核表。后续可评估 Zotero 本地只读连接、扫描版 PDF 的本地 OCR,以及有专科需求时使用 BioMCP。院内 FHIR 属于独立的授权部署。参考[Crossref Retraction Watch](https://www.crossref.org/documentation/retrieve-metadata/retraction-watch/)、[PRISMA 2020](https://www.prisma-statement.org/prisma-2020)及[Zotero 本地 API](https://www.zotero.org/support/dev/web_api/v3/local_api)。 + +## 2026-11-30 病例教学成果提交 + +2.5.25 在 DSH 0.2.3-alpha.2 的原生会话中处理病例发布参数的 JSON 解析失败。绑定病例的同一轮自动重试一次,并通过运行时上下文提醒模型修正转义和保持原引文。失败响应内的工具不会执行。病例结果页和 Suite 对话只显示具体失败原因,原始工具参数留在宿主诊断记录中。 + +在无 Suite 的独立 DSH 配置中,经实际模型适配器注入与原故障相同的未转义双引号。一次失败后自动重试并生成一份 3 页 PPT,每页带备注。连续两次失败时停在一次重试后且没有新版本。其他工具的 JSON 解析失败不进入病例重试。另将原表单要求和两份虚构材料导入独立配置,模拟修正后的工具调用生成一个版本,核对三页、三份讲稿、两道讨论题和四个原始数值。桌面开发配置已通过原生插件管理器安装 2.5.25,原始虚构病例的真实模型验收单独核对。 + +原 Windows 开发会话的前两次复跑在模型连接阶段中断。重启开发宿主后,保留 DeepSeek V4 Pro 和原会话,实际再次触发该 JSON 错误。会话记录显示同一步自动注入一次修正提示,随后 `medical_case_publish` 保存 v1。下载接口与工作区内的 PPT 字节一致,包含三页和三份讲稿,末页有两道讨论题,检验单 7.6% 与门诊摘要 7.8% 并列。讲稿将资料的「早餐前」写成「空腹」,正式教学前需按原文复核。插件 176 项测试及 Suite 错误提示 4 项测试通过。 + +PowerPoint 打开验证发现旧 PPT 主题的空样式列表会造成文件打开失败。2.5.26 补齐主题样式及讲稿母版和关系,并在下载旧版时从保存的草稿重新导出不兼容的 PPT。开发配置已升级。使用原会话的 v1 下载结果修复了工作区中的同版本 PPT,在 PowerPoint 中打开下载结果及工作区文件,三页均能读取讲稿。参见[PresentationML 文档结构](https://learn.microsoft.com/en-us/office/open-xml/presentation/structure-of-a-presentationml-document)。 + +## 2026-11-30 市场版本统一为 1.0.0 + +医生工作台 `1.0.0` 候选包基于 2.5.26 源码构建。归档 SHA-256 为 `ed16415014004e432186f0ab8946a9ca84f79f2ff86e4112cffd4eb85d920fdb`。在无 Suite 的独立 DSH 0.2.3-alpha.2 配置中,用原生插件管理命令安装本地市场候选包并冷启动。在独立测试工作区创建并重新读取虚构病例任务,工作台返回版本 `1.0.0`。插件 177 项测试和 Suite 市场及移植插件相关的 39 项测试通过。 + +本轮范围为本地候选安装、启动和任务保存。日常开发配置继续使用原已安装版本。专业生成质量与正式分发环境的验收仍待后续复核。 + +## 2026-11-30 日常桌面安装 1.0.0 + +经用户授权,在实际 Jovan 桌面的 DSH 0.2.3-alpha.2 profile 通过原生插件管理器,将医生工作台从 `2.5.26` 替换为 `1.0.0`,并核对运行时报告版本 `1.0.0`。同期的工作台界面布局更新继续使用同一版本。该归档与原候选的差异限于客户端 JavaScript 和 CSS,Host 与工作区存储实现一致。 + +安装前备份 profile 配置及旧版本回退清单。安装后复核既有两个工作区、14 个会话关联及 15 个医生工作台任务均仍在,既有成果文件可保留原样。本轮只读核对日常数据,没有发起医学检索或公开发布。专业生成质量与正式分发环境的验收仍待后续复核。 + +## 2026-11-30 医生对话工具栏对齐 + +在固定 DSH 的独立配置中安装原 1.0.0 归档。以 1680 像素窗口从宿主侧栏打开医生会话,复现工具栏宽 1210 像素、输入框宽 912 像素。工作台的内嵌入口此前有单独限制。修复让两个入口的工具栏跟随宿主输入框宽度和两侧留白,空间不足时换行。 + +用安装归档在浏览器复验 1680、960、390 和 320 像素布局。拖动对话宽度、开关成果侧栏并在两个入口间切换,工具栏与输入框两侧对齐。浅色和深色均已查看。320 像素时右侧按钮换行,三项操作均可命中。插入示例、保留未发送草稿、键盘聚焦及任务类型切换已验证。插件 177 项、根项目 45 项及固定 DSH 源码校验通过。 + +归档版本为 1.0.0,SHA-256 为 `5bd2713e2b6cdedff8d7a32b16b885c8813da2e574edf23b31f3d34ffecb6f9e`。本地开发配置已通过原生插件管理器安装该归档,并验证开发宿主加载修正后的样式。视觉和交互验收使用独立配置中的虚构对话。独立配置验证停用、重新启用和卸载时工作台路由随插件状态变化。 diff --git a/docs/native-plugin-market.md b/docs/native-plugin-market.md new file mode 100644 index 0000000000..ded121a388 --- /dev/null +++ b/docs/native-plugin-market.md @@ -0,0 +1,22 @@ +# Native DSH plugin market + +Build a candidate from the curated iPolloWork catalog and its bundled archives with the pinned DSH source and Node.js installed. The command checks the archive checksums, package identities and DSH version requirements. The resulting format-1 index lists product bundles and points each exact version to a read-only npm registry. DSH itself provides the session-title bundle. + +```powershell +npm run package:native-market -- dist/native-market-candidate --base http://127.0.0.1:18482/ +npm run preview:native-market -- dist/native-market-candidate --port 18482 +``` + +Use a fresh output directory for each build. In a disposable DSH profile, enable **Custom plugin indexes**, open **Plugins → Discover → Add index source**, and enter `http://127.0.0.1:18482/index.json`. Confirm the package name, version and registry in the DSH install dialog. DSH handles build-script approvals and activation. Dependencies outside the iPolloWork catalog resolve through the public npm registry. + +The snapshot contains `index.json`, npm metadata and the byte-identical archives. For a release, regenerate it with the approved HTTPS base URL and make that base route to the read-only server behind TLS. The server binds to loopback and serves paths under the configured base. Keep the approved snapshot immutable while it is discoverable, including archives used by existing profiles. Building and previewing a snapshot are local operations. + +The index supplies the registry for each installation. For profiles that also manage these packages after restart, set `plugin-manager.config.registry` to the same `registry/` URL in the native profile patch. The pinned Plugin Manager uses its configured registry for package operations such as removal after restart. + +```yaml +- id: plugin-manager + config: + registry: http://127.0.0.1:18482/registry/ +``` + +The catalog explains requirements for optional cloud, desktop and third-party features. Decision Intelligence supports local workspace reports and standalone HTML export. Existing cloud reports use iPolloWork App Data. Sharing online requires iPolloWork publishing access. Media and Short Video Studios use the DSH workspace for local assets and task history. Cloud generation and server-side recovery use the iPolloWork Service Center. diff --git a/docs/native-plugin-market.zh.md b/docs/native-plugin-market.zh.md new file mode 100644 index 0000000000..c0c895d519 --- /dev/null +++ b/docs/native-plugin-market.zh.md @@ -0,0 +1,22 @@ +# DSH 原生插件市场 + +准备固定版 DSH 源码和受支持的 Node.js 后,从 iPolloWork 精选目录及随包归档构建候选市场。构建会校验归档 SHA-256、包名、版本和 DSH 兼容范围。生成的 format-1 索引将每个产品插件的确切版本指向只读 npm registry。会话标题由 DSH 自带。 + +```powershell +npm run package:native-market -- dist/native-market-candidate --base http://127.0.0.1:18482/ +npm run preview:native-market -- dist/native-market-candidate --port 18482 +``` + +每次构建使用新的输出目录。在隔离 DSH profile 启用「自定义插件索引」,打开「插件 → 发现 → 添加索引源」,输入 `http://127.0.0.1:18482/index.json`。在原生安装对话框确认包名、版本和 registry。构建脚本审批和启用由 DSH 管理。目录之外的普通 npm 依赖通过公共 npm registry 解析。 + +快照包含 `index.json`、npm 元数据和未改动的归档字节。正式发布时,用获准的 HTTPS 基址重新构建,在 TLS 反向代理后提供相同路径的只读服务。服务监听回环地址,并沿用索引中配置的路径。保持已发布快照和旧版归档可访问,供现有 profile 继续使用。构建和预览只在本地执行。 + +安装时由索引提供对应 registry。如果重启后还要继续更新或卸载这些包,在原生 profile 补丁中把 `plugin-manager.config.registry` 设为同一个 `registry/` 地址。当前固定版本的插件管理器在重启后通过该配置执行包管理操作。 + +```yaml +- id: plugin-manager + config: + registry: http://127.0.0.1:18482/registry/ +``` + +目录会提示云服务、桌面能力和第三方前置条件。决策情报可在本地工作区保存图谱并下载独立 HTML。已有云端图谱仍通过 iPolloWork 应用数据访问,在线分享需要网页发布权限。素材和短片工作台的本地素材及任务记录使用 DSH 工作区,云端生成及任务恢复依赖 iPolloWork 服务中心。 diff --git a/integrations/desktop/native/wechat-channels-browser/ChannelsBrowser.cs b/integrations/desktop/native/wechat-channels-browser/ChannelsBrowser.cs new file mode 100644 index 0000000000..47c04a6470 --- /dev/null +++ b/integrations/desktop/native/wechat-channels-browser/ChannelsBrowser.cs @@ -0,0 +1,125 @@ +using System; +using System.Drawing; +using System.IO; +using System.Text; +using System.Windows.Forms; +using Thread = System.Threading.Thread; +using Microsoft.Web.WebView2.Core; +using Microsoft.Web.WebView2.WinForms; + +internal sealed class ChannelsBrowser : Form +{ + private const string Entry = "https://channels.weixin.qq.com/platform/"; + private readonly WebView2 browser = new WebView2(); + private readonly Timer poll = new Timer { Interval = 1500 }; + private readonly TextWriter output = new StreamWriter(Console.OpenStandardOutput(), new UTF8Encoding(false)) { AutoFlush = true }; + private readonly string userData; + private readonly string probe; + private string previous; + private bool reading; + + private ChannelsBrowser(string userData) + { + this.userData = userData; + probe = File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "identity.js")); + Text = "iPolloWork · 视频号助手"; + var windowIcon = System.Drawing.Icon.ExtractAssociatedIcon(Application.ExecutablePath); + Icon = windowIcon; + Width = 1080; + Height = 800; + MinimumSize = new Size(620, 500); + StartPosition = FormStartPosition.CenterScreen; + browser.Dock = DockStyle.Fill; + Controls.Add(browser); + Shown += Start; + FormClosed += delegate + { + poll.Dispose(); + browser.Dispose(); + output.Dispose(); + if (windowIcon != null) windowIcon.Dispose(); + }; + } + + private static bool Allowed(string url) + { + Uri target; + return Uri.TryCreate(url, UriKind.Absolute, out target) && target.Scheme == "https" + && target.IsDefaultPort && target.UserInfo.Length == 0 + && (target.Host == "weixin.qq.com" || target.Host.EndsWith(".weixin.qq.com", StringComparison.Ordinal)); + } + + private async void Start(object sender, EventArgs args) + { + // The desktop owns this process. Its command pipe also closes the view if the owner exits. + new Thread(() => + { + for (;;) + { + var command = Console.ReadLine(); + if (command == "raise") BeginInvoke((Action)(() => + { + if (WindowState == FormWindowState.Minimized) WindowState = FormWindowState.Normal; + Activate(); + })); + if (command != null && command != "close") continue; + BeginInvoke((Action)Close); + return; + } + }) { IsBackground = true }.Start(); + try + { + var environment = await CoreWebView2Environment.CreateAsync(null, userData); + if (IsDisposed) return; + await browser.EnsureCoreWebView2Async(environment); + if (IsDisposed) return; + var view = browser.CoreWebView2; + view.Settings.AreHostObjectsAllowed = false; + view.Settings.IsWebMessageEnabled = false; + view.Settings.AreDevToolsEnabled = false; + view.Settings.IsPasswordAutosaveEnabled = false; + view.Settings.IsGeneralAutofillEnabled = false; + view.PermissionRequested += delegate(object _, CoreWebView2PermissionRequestedEventArgs e) { e.State = CoreWebView2PermissionState.Deny; }; + view.DownloadStarting += delegate(object _, CoreWebView2DownloadStartingEventArgs e) { e.Cancel = true; }; + view.NewWindowRequested += delegate(object _, CoreWebView2NewWindowRequestedEventArgs e) + { + e.Handled = true; + if (Allowed(e.Uri)) view.Navigate(e.Uri); + }; + view.NavigationStarting += delegate(object _, CoreWebView2NavigationStartingEventArgs e) { e.Cancel = !Allowed(e.Uri); }; + view.Navigate(Entry); + poll.Tick += Inspect; + poll.Start(); + } + catch (Exception) + { + if (!IsDisposed) { output.WriteLine("{\"kind\":\"unavailable\"}"); Close(); } + } + } + + private async void Inspect(object sender, EventArgs args) + { + var address = browser.Source; + if (reading || IsDisposed || address == null || address.Host != "channels.weixin.qq.com") return; + reading = true; + try + { + var result = await browser.ExecuteScriptAsync(probe); + if (IsDisposed || browser.Source != address || result == previous) return; + previous = result; + if (result != "null") output.WriteLine(result); + } + catch (InvalidOperationException) { } + catch (IOException) { if (!IsDisposed) Close(); } + finally { reading = false; } + } + + [STAThread] + private static void Main(string[] args) + { + if (args.Length != 1 || !Path.IsPathRooted(args[0])) return; + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new ChannelsBrowser(args[0])); + } +} diff --git a/integrations/desktop/native/wechat-channels-browser/ChannelsBrowser.swift b/integrations/desktop/native/wechat-channels-browser/ChannelsBrowser.swift new file mode 100644 index 0000000000..28cec30e93 --- /dev/null +++ b/integrations/desktop/native/wechat-channels-browser/ChannelsBrowser.swift @@ -0,0 +1,112 @@ +import Cocoa +import WebKit + +@MainActor +final class ChannelsBrowser: NSObject, NSApplicationDelegate, WKNavigationDelegate, WKUIDelegate { + private let profile: UUID + private let probe: String + private let entry = URL(string: "https://channels.weixin.qq.com/platform/")! + private var window: NSWindow? + private var browser: WKWebView? + private var timer: Timer? + private var previous: Data? + private var reading = false + + init(profile: UUID, probe: String) { + self.profile = profile + self.probe = probe + } + + func applicationDidFinishLaunching(_ notification: Notification) { + guard #available(macOS 14.0, *) else { + print("{\"kind\":\"unavailable\"}") + NSApp.terminate(nil) + return + } + let configuration = WKWebViewConfiguration() + configuration.websiteDataStore = WKWebsiteDataStore(forIdentifier: profile) + let browser = WKWebView(frame: .zero, configuration: configuration) + browser.navigationDelegate = self + browser.uiDelegate = self + self.browser = browser + let window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 1080, height: 800), + styleMask: [.titled, .closable, .miniaturizable, .resizable], backing: .buffered, defer: false) + window.contentView = browser + window.minSize = NSSize(width: 620, height: 500) + window.title = "iPolloWork · 视频号助手" + window.center() + window.makeKeyAndOrderFront(nil) + self.window = window + NSApp.activate(ignoringOtherApps: true) + browser.load(URLRequest(url: entry)) + timer = Timer.scheduledTimer(timeInterval: 1.5, target: self, selector: #selector(inspect), userInfo: nil, repeats: true) + let input = Thread { [weak self] in + while let command = readLine() { + if command == "close" { break } + if command == "raise" { + DispatchQueue.main.async { [weak self] in + self?.window?.deminiaturize(nil) + self?.window?.makeKeyAndOrderFront(nil) + NSApp.activate(ignoringOtherApps: true) + } + } + } + DispatchQueue.main.async { NSApp.terminate(nil) } + } + input.start() + } + + func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { true } + + private func allowed(_ url: URL?) -> Bool { + guard let url, url.scheme == "https", url.user == nil, url.password == nil, + url.port == nil || url.port == 443, let host = url.host else { return false } + return host == "weixin.qq.com" || host.hasSuffix(".weixin.qq.com") + } + + func webView(_ webView: WKWebView, decidePolicyFor action: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) { + let allowedFrame = action.targetFrame?.isMainFrame == false + || (action.targetFrame != nil && allowed(action.request.url)) + decisionHandler(allowedFrame ? .allow : .cancel) + } + + func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, + for action: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? { + if allowed(action.request.url) { webView.load(action.request) } + return nil + } + + @objc private func inspect() { + guard !reading, let browser, let address = browser.url, + address.host == "channels.weixin.qq.com" else { return } + reading = true + browser.evaluateJavaScript(probe) { [weak self] value, _ in + guard let self else { return } + self.reading = false + guard browser.url == address else { return } + let data = value.flatMap { report in + JSONSerialization.isValidJSONObject(report) + ? (try? JSONSerialization.data(withJSONObject: report, options: [.sortedKeys])) : nil + } + guard data != self.previous else { return } + self.previous = data + if let data, let line = String(data: data, encoding: .utf8) { + FileHandle.standardOutput.write(Data((line + "\n").utf8)) + } + } + } +} + +@main +struct ChannelsBrowserMain { + @MainActor static func main() { + let probeFile = Bundle.main.bundleURL.deletingLastPathComponent().appendingPathComponent("identity.js") + guard CommandLine.arguments.count == 2, let profile = UUID(uuidString: CommandLine.arguments[1]), + let probe = try? String(contentsOf: probeFile, encoding: .utf8) else { exit(1) } + let application = NSApplication.shared + let delegate = ChannelsBrowser(profile: profile, probe: probe) + application.delegate = delegate + application.setActivationPolicy(.accessory) + withExtendedLifetime(delegate) { application.run() } + } +} diff --git a/integrations/desktop/native/wechat-channels-browser/identity.js b/integrations/desktop/native/wechat-channels-browser/identity.js new file mode 100644 index 0000000000..f004976366 --- /dev/null +++ b/integrations/desktop/native/wechat-channels-browser/identity.js @@ -0,0 +1,16 @@ +(() => { + if (location.origin !== 'https://channels.weixin.qq.com' || !document.body) return null; + if (/^\/(?:login\.html|platform\/login(?:\/.*)?)$/.test(location.pathname)) { + // Chromium's top-level navigation can briefly pass through login before restoring a session. + if (document.body.innerText.includes('扫码') || document.querySelector('img[src*="qrcode"]')) return { kind: 'qr' }; + return null; + } + if (!/^\/platform(?:\/home)?\/?$/.test(location.pathname)) return null; + const lines = document.body.innerText.slice(0, 24_000).split('\n').map(line => line.trim()).filter(Boolean); + const marker = lines.findIndex(line => /^视频号\s*ID\s*[::]/i.test(line)); + if (marker < 1 || !lines.some(line => line === '发表视频' || line === '昨日数据')) return null; + const id = lines[marker].replace(/^视频号\s*ID\s*[::]\s*/i, '') || lines[marker + 1]; + const name = lines[marker - 1] === '申请认证' ? lines[marker - 2] : lines[marker - 1]; + if (!name || name.length > 100 || !id || !/^[A-Za-z0-9_-]{1,100}$/.test(id)) return null; + return { kind: 'identity', id, name }; +})(); diff --git a/integrations/desktop/package.json b/integrations/desktop/package.json index 0fb9f59336..6c8372728c 100644 --- a/integrations/desktop/package.json +++ b/integrations/desktop/package.json @@ -1,7 +1,7 @@ { "name": "@ipollo/desktop", "description": "Electron desktop shell for a bundled dsh runtime and external plugins", - "version": "1.0.23", + "version": "1.0.24", "private": true, "license": "SEE LICENSE IN LICENSE", "author": { diff --git a/integrations/desktop/renderer/social-login-loading.html b/integrations/desktop/renderer/social-login-loading.html index 2098dff1f0..cc282a9e7e 100644 --- a/integrations/desktop/renderer/social-login-loading.html +++ b/integrations/desktop/renderer/social-login-loading.html @@ -53,7 +53,6 @@
正在加载平台登录页…