omoinoki/dsh-sekaisync-connect ↗★ 1
dsh-sekaisync-connect
SekaiSync 知识库的 DeepSeek Harness 直连模块:零构建、token 最小化。插件拉起 sekaisync HTTP 服务并暴露 10 个紧凑工具(含动态热词探针、活动简称/箱活名统一解析与跨语言用语穿透),并在插件面板中提供部署路径选择。 适合SekaiSync用户,需在DSH中直接检索该知识库并使用其解析工具。需Python环境。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:omoinoki/dsh-sekaisync-connectConfiguration
Precedence: environment variables > profile row config > SEKAISYNC_CONFIG file > plugin-directory config.local.json > config.json > automatic discovery.
| Setting | Description |
|---|---|
SEKAISYNC_STORE | Store directory containing kb/. When omitted, discovery checks /store, cwd/store, and the repository store located with python -c "import sekaisync" |
SEKAISYNC_ROOT | SekaiSync repository root, used as the working directory for python -m sekaisync |
SEKAISYNC_PYTHON | Python executable; defaults to python |
SEKAISYNC_PORT | Port to probe for an existing server; defaults to 8787. If a ready SekaiSync service is already listening there, it is reused instead of starting another process. 0 retains its meaning: skip the external probe and start a managed service directly |
SEKAISYNC_MAX_RESPONSE_BYTES | Byte budget for one successful HTTP response; defaults to 134217728 (128 MiB), configurable from 65536–1073741824. It can also be set as maxResponseBytes in a configuration file or profile row. Exceeding the budget cancels the read and returns an explicit error |
You can also override these settings in your own profile patch; plugin upgrades do not overwrite that layer:
- id: sekaisync-connect
name: 'dsh-sekaisync-connect'
config:
store: 'D:\\sekaisync\\store'
python: 'py'
Keep the row id as sekaisync-connect. It is the key the panel writes through, so if you copy this
snippet into a profile that still uses an older id, update that row's id to match — otherwise the panel
and the saved path refer to different rows.
- HTTP connects only to loopback and rejects redirects. Health and error responses are limited to 64 KiB and 4 KiB respectively. The default successful-response budget is 128 MiB, covering typical body results with
limit=100andmax_text_chars=200000.max_text_chars=0still means full text upstream; if an exceptionally large full-text response exceeds the transfer budget, increasemaxResponseBytes(up to 1 GiB) or read in batches. - External-port reuse still follows the existing
/healthready/status check. That endpoint carries no store identifier, so you must ensure the configured port serves the intended knowledge base.
Usage Recommendations (Token Discipline)
- Use
sekai_resolvebefore generating any localized text. Usesekai_factfor precise facts; do not let the model answer from memory. - For an unfamiliar term, an uncertain topic, or a character name with an unknown source, first use
sekai_probeto determine whether it concerns Project Sekai, then route to local tools or the web. Matches directly suggest anext_tool. - For time-sensitive questions such as current events, gachas, and maintenance, check freshness and coverage with
sekai_statusfirst. - To verify a localized name in context, use
sekai_termto confirm the term exists, thensekai_penetrateto inspect aligned lines across languages. Remember thatmissingexplicitly means there is no corresponding line in that language; it is not an error. sekai_webis slow; use it only when quoting original story text. Trysekai_lookup/sekai_termfirst, or usesekai_probeto confirm the direction.- Ask directly with event shorthand or an official event name, whether a unit-focused event or World Link.
sekai_lookupautomatically includes activity resolution, andsekai_aliassupports shorthand, official event names, and natural-language questions. - If a result is truncated, reduce
limitor use a more precise query.