@oh-story/dsh 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -12
- package/lib/client.js +356 -89
- package/lib/client.js.map +4 -4
- package/lib/drama/manifest.json +34 -34
- package/lib/drama/skills/short-drama/SKILL.md +4 -1
- package/lib/drama/skills/short-drama/references/contract-and-ownership.md +2 -0
- package/lib/drama/skills/short-drama/references/creator-documents.md +30 -4
- package/lib/drama/skills/short-drama/references/creator-workflow.md +8 -2
- package/lib/drama/skills/short-drama/references/reference-roles.md +16 -2
- package/lib/drama/skills/short-drama/scripts/creator_markdown_check.py +328 -48
- package/lib/drama/skills/short-drama-produce/SKILL.md +4 -1
- package/lib/drama/skills/short-drama-produce/scripts/production_tool.py +34 -2
- package/lib/drama/skills/short-drama-storyboard/SKILL.md +27 -5
- package/lib/drama/skills/short-drama-storyboard/references/review-and-fixtures.md +2 -1
- package/lib/drama/skills/short-drama-storyboard/references/stage-contract.md +2 -2
- package/lib/drama/skills/short-drama-video-prompts/SKILL.md +11 -2
- package/lib/drama/skills/short-drama-video-prompts/assets/video-prompts.md +6 -1
- package/lib/drama/skills/short-drama-video-prompts/references/minimax-h3.md +19 -3
- package/lib/drama/skills/short-drama-video-prompts/references/stage-contract.md +8 -2
- package/lib/drama/skills/short-drama-video-prompts/references/target-model-profile.md +1 -0
- package/lib/index.js +194 -62
- package/lib/index.js.map +4 -4
- package/lib/types/client/drama-production-view.d.ts +1 -0
- package/lib/types/client/drama-production-view.d.ts.map +1 -1
- package/lib/types/client/drama-production.d.ts +3 -0
- package/lib/types/client/drama-production.d.ts.map +1 -1
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/video-studio.d.ts +2 -1
- package/lib/types/client/video-studio.d.ts.map +1 -1
- package/lib/types/client/workbench-presence.d.ts +29 -0
- package/lib/types/client/workbench-presence.d.ts.map +1 -0
- package/lib/types/drama-adapters.d.ts +65 -0
- package/lib/types/drama-adapters.d.ts.map +1 -0
- package/lib/types/host-python.d.ts +19 -0
- package/lib/types/host-python.d.ts.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/skill-provider.d.ts +1 -1
- package/lib/types/skill-provider.d.ts.map +1 -1
- package/lib/types/workspace-route.d.ts.map +1 -1
- package/package.json +41 -41
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
`oh-story-dsh` 是基于 DeepSeek Harness(DSH)构建的社区小说、短剧、互动游戏与视频解说创作插件,提供:
|
|
8
8
|
|
|
9
9
|
- 13 个 Oh Story 小说 Skills 与 7 个专业 Roles;
|
|
10
|
-
- 10 个 Drama Skills 0.6.
|
|
10
|
+
- 10 个 Drama Skills 0.6.5 短剧流程,每集按请求维护最多五份 creator-first Markdown;
|
|
11
11
|
- 7 个 NovelToGame 0.3.0 Skills、`game-adaptations/<project>` 产物协议与《金瓶梅 · 风月总账》可玩构建;
|
|
12
12
|
- 6 个 video-recap-skills 0.4.0 Skills、`video-recaps/<project>` 项目约定与轻量视频预览工作台;
|
|
13
13
|
- 小说协议 hooks 与安全的 Session workspace 文件路由;
|
|
@@ -20,21 +20,27 @@
|
|
|
20
20
|
|
|
21
21
|
## 安装
|
|
22
22
|
|
|
23
|
+
安装命令会临时提供 pnpm;只安装 Node.js 的机器也能执行。DSH 的 `plugin add` 内部需要 pnpm,单独运行 `npx @deepseek-ai/dsh ... plugin add` 不会自动补上它。
|
|
24
|
+
|
|
23
25
|
```bash
|
|
24
|
-
npx -y @deepseek-ai/dsh@0.1.2-
|
|
25
|
-
npx -y @deepseek-ai/dsh@0.1.2-
|
|
26
|
+
npx -y --package pnpm@11.7.0 --package @deepseek-ai/dsh@0.1.2-rc.1 dsh plugin --profile web add @oh-story/dsh@0.1.8 &&
|
|
27
|
+
npx -y @deepseek-ai/dsh@0.1.2-rc.1 web
|
|
26
28
|
```
|
|
27
29
|
|
|
28
30
|
也可以直接安装 GitHub Release 中的预构建包:
|
|
29
31
|
|
|
30
32
|
```bash
|
|
31
|
-
npx -y @deepseek-ai/dsh@0.1.2-
|
|
32
|
-
npx -y @deepseek-ai/dsh@0.1.2-
|
|
33
|
+
npx -y --package pnpm@11.7.0 --package @deepseek-ai/dsh@0.1.2-rc.1 dsh plugin --profile web add https://github.com/zenstory-ai/oh-story-dsh/releases/download/v0.1.8/oh-story-dsh-0.1.8.tgz &&
|
|
34
|
+
npx -y @deepseek-ai/dsh@0.1.2-rc.1 web
|
|
33
35
|
```
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
保持终端运行。若浏览器未自动打开,访问终端打印的完整 `http://127.0.0.1:3080/?token=...` 链接完成首次认证。
|
|
38
|
+
|
|
39
|
+
需要 Node.js 24+。开始 AI 创作前需要在 DSH 的「设置 → 模型」中添加 Provider 并填入 API Key,或在启动前设置环境变量 `DEEPSEEK_API_KEY`。
|
|
36
40
|
|
|
37
|
-
|
|
41
|
+
首次首页尚无创作工作台。点击左侧 Workspaces 旁的 +(添加工作区 / Add workspace)选择作品文件夹,再在下方「选择工作区 / Choose workspace」中选中该目录(或打开已有会话),目录里已有创作项目时,会显示「小说 / 短剧 / 游戏 / 视频」标签;查看已有作品无需 API Key。
|
|
42
|
+
|
|
43
|
+
配置模型后,在普通 Agent 会话中使用 `/story`、`/short-drama`、`/novel-to-game quick` 或 `/video-recap`。空目录会保留 DSH 原生 Chat,Agent 写出第一个创作文件后工作台才会自动出现。工作台收起后,可通过会话区的「创作工作台」按钮重新打开。模型、凭据、Preset、权限、会话记录、停止/继续、Todo、审批和 Composer 均沿用当前 DeepSeek Harness 配置与界面。
|
|
38
44
|
|
|
39
45
|
## 短剧工作台
|
|
40
46
|
|
|
@@ -60,21 +66,32 @@ npx -y @deepseek-ai/dsh@0.1.2-alpha.3 web
|
|
|
60
66
|
|
|
61
67
|
宿主机需要 Python 3.10+、`PATH` 上的 ffmpeg/ffprobe(默认烧录字幕,因此 ffmpeg 需带 libass 的 `subtitles` 滤镜),以及 `MIMO_API_KEY`;Fish Audio TTS 另需 `FISH_API_KEY`。安装按上游说明即可(macOS `brew install ffmpeg`、Debian/Ubuntu `sudo apt install ffmpeg`)。工作台的「运行环境」检查只报告 DSH Host 进程是否就绪,不返回 Key 内容,密钥也不会写入项目;Agent 实际的执行世界以 `video-recap --doctor` 为准。
|
|
62
68
|
|
|
69
|
+
短剧生产的图片、视频与音乐不由 DeepSeek 生成,而是由 `short-drama-produce` 调用 GPT Image 2(`OPENAI_API_KEY`)、Seedance(`ARK_API_KEY` + `SEEDANCE_MODEL`)、MiniMax H3(`MINIMAX_API_KEY` + `MINIMAX_VIDEO_MODEL` + `MINIMAX_VIDEO_RESOLUTIONS`)或 MiniMax Music(`MINIMAX_API_KEY`)生成;Key 在启动 DSH 前写入环境变量,「生产」视图会显示每个供应商是否就绪,插件从不读取 Key 的值。内置 adapter 会自动登记到一份不含凭据的配置文件,自定义时用 `OH_STORY_DRAMA_ADAPTER_CONFIG` 指向自己的文件。
|
|
70
|
+
|
|
63
71
|
Drama Skills 0.6.0 不支持把 v0.5 结构化项目原地升级为 creator-first 项目。旧项目应继续锁定 v0.5 并只读保留;迁移时请新建项目根,逐集人工确认当前工作实际需要的 `剧本.md`、`视觉设定.md`、`分镜.md`、`图片提示词.md` 或 `视频提示词.md`,不要预建空文档。
|
|
64
72
|
|
|
73
|
+
## 没看到界面时
|
|
74
|
+
|
|
75
|
+
- **安装报 `pnpm not found on PATH`**:重新执行上面带 `--package pnpm@11.7.0` 的完整安装命令,确认安装成功后再启动。
|
|
76
|
+
- **浏览器未打开或要求认证**:打开终端打印的完整带 `?token=...` 链接;端口被占用时用 `web --port 3081`,并访问新打印的链接。
|
|
77
|
+
- **没有四个创作标签**:先添加作品目录并打开会话。空目录需要先在 Chat 中运行创作命令,生成创作文件后工作台才会出现;已收起的工作台可用会话区的「创作工作台」按钮恢复。已有作品仍不显示时,检查安装与启动是否使用同一个 profile,重启 DSH 并刷新页面。
|
|
78
|
+
- **独立 `story` profile 没有网页服务**:按下节补上 `@deepseek-ai/dsh-web-app`,仅安装创作插件不会给新 profile 添加 Web 界面。
|
|
79
|
+
|
|
65
80
|
## 按需加载
|
|
66
81
|
|
|
67
|
-
插件装进哪个 profile,那个 profile 的每个 Session 就都会加载创作 Skills
|
|
82
|
+
插件装进哪个 profile,那个 profile 的每个 Session 就都会加载创作 Skills;工作台只在有创作项目时显示。想让原版 `web` 保持干净、只在创作时打开工作台,就装进独立 profile:
|
|
68
83
|
|
|
69
84
|
```bash
|
|
70
|
-
npx -y @deepseek-ai/dsh@0.1.2-
|
|
85
|
+
npx -y --package pnpm@11.7.0 --package @deepseek-ai/dsh@0.1.2-rc.1 dsh plugin --profile story add @oh-story/dsh@0.1.8
|
|
71
86
|
```
|
|
72
87
|
|
|
73
|
-
新 profile 默认没有界面。编辑 `~/.dsh/profiles/story/package.json`,把 `dsh.profile.bundles` 改成 `["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "@oh-story/dsh"]
|
|
88
|
+
新 profile 默认没有界面。编辑 `~/.dsh/profiles/story/package.json`,把 `dsh.profile.bundles` 改成 `["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "@oh-story/dsh"]`。
|
|
89
|
+
|
|
90
|
+
`@deepseek-ai/dsh-web-app` 是 DSH 自带的 Web 界面包,需要在创作插件之前加载。
|
|
74
91
|
|
|
75
92
|
```bash
|
|
76
|
-
npx -y @deepseek-ai/dsh@0.1.2-
|
|
77
|
-
npx -y @deepseek-ai/dsh@0.1.2-
|
|
93
|
+
npx -y @deepseek-ai/dsh@0.1.2-rc.1 web # 原版 DSH
|
|
94
|
+
npx -y @deepseek-ai/dsh@0.1.2-rc.1 --profile story --port 3081 # 创作工作台
|
|
78
95
|
```
|
|
79
96
|
|
|
80
97
|
模型、凭据、workspace 与历史会话由 DSH 统一保存,切换 profile 不会丢。安装与启动请使用同一个 dsh 版本。
|