jiafang-plugins
开发工具 活跃维护

jiafang-plugins

happyDABAI7/jiafang-plugins

DeepSeek Harness plugins for textile-factory management: document extraction (image/text), voice work-report transcription, whitelisted NL-to-SQL query.

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
39 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:happyDABAI7/jiafang-plugins
git clone https://github.com/happyDABAI7/jiafang-plugins.git
git clone git@github.com:happyDABAI7/jiafang-plugins.git
README.md main

jiafang-plugins

A set of DeepSeek Harness plugins for textile-factory management (家纺工厂管家). A monorepo of 5 independent bundles: document field extraction (image/text), voice work-report transcription, and whitelisted natural-language-to-SQL query.

Features

  • Image recognition jiafang-vision: document image → fields (Qwen-VL, one step)
  • Text extraction jiafang-extract: document text → fields (Qwen)
  • Query jiafang-nl2sql: natural language → read-only SQL (table whitelist / read-only / row-limit three gates)
  • Transcription jiafang-asr: audio → text (Qwen-ASR)
  • Persona & routing jiafang-persona: textile-factory role + task routing (injects systemPrompt)

Plugins

Package Tool Responsibility
jiafang-vision extract_image Image: document image → fields (Qwen-VL)
jiafang-extract extract_text Text extraction: document text → fields (Qwen)
jiafang-nl2sql nl2sql Query: natural language → SQL (three gates)
jiafang-asr transcribe Transcription: audio → text (Qwen-ASR)
jiafang-persona — (injects systemPrompt) Role + task routing

Each subdirectory is an independent DSH bundle (src/ + dist/ + cordis.patch.yml + package.json).

Install

dsh plugin --profile <name> add file:./jiafang-vision
# repeat for the others, then add the package names to that profile's dsh.profile.bundles

Build

npx tsc -p jiafang-vision/tsconfig.json
# same for the other four

Pack

node scripts/pack-all.mjs   # produces release/*.tgz

tasks.json belongs to the project, not to any plugin; plugins read it through the JIAFANG_TASKS_JSON environment variable.

中文说明见 README.zh-CN.md。