# 来源与修改说明(Provenance) 本仓库是 **DeepSeek Harness 的第三方插件封装**,不是 WordCraft 上游仓库,也不代表上游或 ArtCraft 团队。下面逐项记录来源、许可证与本地修改,便于审计与二次分发。 ## 上游来源 | 组件 | 来源 | 许可证 | | --- | --- | --- | | 编辑器引擎(`ui/dist/editor/`,WordCraft 0.7.0) | `storytold/wordcraft`,commit `fc41918814f62645b6746ed68e71e8c2c2e85d6f` | MIT OR Apache-2.0;第三方 Rust/JS/字体许可见 `ui/dist/editor/licenses/` | | 多宿主插件外壳、技能文本、编辑器增强构建 | `full-aigc-plugins/wordcraft-plugin` v0.1.0-dev.20261019.1,Apache-2.0 | Apache-2.0 | | 编辑器自动化 overlay / 运行时谱系 | `zai-org/zcode-plugins` 的 `craft-runtime`(Apache-2.0),经上述插件 fork 引入 | Apache-2.0,许可见 `ui/dist/editor/licenses/LICENSE-ZCODE`、声明见 `ui/dist/editor/licenses/NOTICE.md` | | DSH 插件外壳(`package.json`、`cordis.patch.yml`、`lib/`、`src/`) | 由上述插件 DSH host 改写而来 | Apache-2.0 | | 技能文本(`skills/wordcraft-editor`) | 由上述插件的技能文档改写、精简 | Apache-2.0 | ## 本仓库相对上游的修改 1. **单一宿主**:删除 `.zcode-plugin/`、`.claude-plugin/`、`.codex-plugin/`、`.mcp.json`、`kimi.plugin.json`、`hosts/`、Codex 市场元数据、OpenAI/Codex 技能元数据等宿主集成文件;只保留 DeepSeek Harness 入口。 2. **合并为一个 bundle 包**:原 `dsh/` 子包与根包合并为本仓库根包 `dsh-wordcraft`;`cordis.patch.yml` 同时插入技能提供方和 MCP 行,路径只解析一次包根(`dirname(require.resolve('dsh-wordcraft/package.json'))`),可在 git / tarball / link 三种安装方式下工作。 3. **去除两条外部更新通道**: - 删除 `ui/editor-update.mjs` 的联网查询/下载逻辑,编辑器只使用包内锁定运行时; - `ui/bootstrap.mjs` 不再在哈希不符时回退下载上游归档,改为 fail-closed 并提示重装; - `runtime.lock.json` 重新生成,去掉上游 release URL 与摘要。 4. **运行时元数据中性化**:`ui/dist/editor/assets.json`、`BUILD.json` 的 `buildKind`、`releaseRepository`、`pluginVersion` 改为中性值;`runtime.lock.json` 版本改为 `0.1.0`。 5. **品牌清理(依据 `ui/dist/editor/licenses/docs/brand/LICENSE-brand.txt`)**:修改版必须移除 ArtCraft Marks。处理方式: - About/社区/官网/Discord 等产品与营销文案中的 `ArtCraft`、`discord.gg/artcraft`、`Crafting Apps` 等标识替换为中性占位(`CraftApp`、`discord.gg/craftapp`、`Crafting Docs`、`example.invalid`); - 仅保留 About 对话框中的版权归属行(`Copyright (c) … ArtCraft …`),属于品牌许可允许的纯文本来源说明,也是 MIT/Apache 归属要求; - 保留 `ui/dist/editor/licenses/` 下的全部上游许可、NOTICE、ATTRIBUTION 和品牌许可文件,不删除、不改写。 6. **编辑器 WASM 标识**:内部构建标识由 `ZCode live WASM editor` 改为 `Craft live WASM editor`(与 `ui/runtime/rust/bridge.rs.in` 的本地补丁一致)。 7. **重建与重新锁定**:adapter / host 由 `src/` 重新构建(移除联网更新、宿主面板元数据注入、缓存运行时选择逻辑);`ui/runtime.lock.json` 按新的 45 个文件重新生成。 8. **文档**:删除上游多宿主 README/docs,重写为 DSH 专用说明;新增本文件、根 `NOTICE`、测试与 CI。 ## 发布产物 - `ui/dist/editor/` 是锁定制品:完整许可证与第三方声明位于 `ui/dist/editor/licenses/`,分发时不得删除。 - 修改 `ui/dist/` 后运行 `node scripts/update-runtime-lock.mjs` 重新生成 `ui/runtime.lock.json`,`npm test` 会拦住未同步的发布。 - 品牌许可文本 `LICENSE-brand.txt` 仅作为上游条款说明保留;本仓库不主张任何 ArtCraft 商标权利。