DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Power Loss Split — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-power-loss-split

Power Loss Split

线损电量拆分与考核表核对(依据公开的线损计算口径,仅提示差异,不作出定性结论)

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-power-loss-split@0.2.3
README兼容性版本

兼容性与来源证明

Power Loss Split 以 dsh-power-loss-split 发布,当前版本为 0.2.3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/10/9

版本

0.2.3stable
2026/10/9
0.2.2stable
2026/10/8
0.2.1stable
2026/10/8
查看其余 2 个版本收起版本
0.2.0stable
2026/10/8
0.1.0stable
2026/10/7

相关插件

正在加载相关插件…

最新版
0.2.3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
123.7 kB
文件数
17
Surface
any
许可证
Apache-2.0
发布源
npm
GitHub
★ 0
周下载
0
最近提交
2026/10/9
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 productivity-workflow 分类下经过校验的插件。

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Experimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundle为 Web 组合添加 Schedule、其任务页面和时间上下文的可选捆绑包Ab Ocrdsh-ab-ocr--- description: "外部 ocr 工具:逐页识别扫描的 PDF 或图像,仅在处理完最后一页后按顺序合并页面,并使用模型确定的标题级别保存为一个 Markdown 文档。" kind: "package-reference" ---Deepseek Ipptdeepseek-ipptiPolloWork PPT Studio 及其精选幻灯片模板,作为原生 DeepSeek Harness 对话视图。

README

dsh-power-loss-split — Line-loss energy split and assessment-table check

DSH Market

dsh-power-loss-split reads one metering period for one line or transformer district — 供电量, 售电量, the declared 线损电量 and 线损率 and, when the material carries one, the list of metering points — and does arithmetic and interval checks on that material: the energy balance, the loss rate, the sum of the metering points, the loss-rate band you configure and the three-phase unbalance. Every finding carries the numbers and the tolerance it used, so a reviewer can redo the sum, and every check that could not run is listed in skipped instead of passing silently.

What it looks like

Terminal demo of dsh-power-loss-split: real output over its PL-001 fixture

Real output from this plugin over its own PL-001 test fixture — not a mock-up. The rule pack ships no invented quotations, so a finding names both the clause it applied and the fact that the clause text was not obtained.

What it answers

You askWhat it answers
The declared 线损电量 does not match 供电量 − 售电量. Which of the three figures is wrong?PL-001 will not say. It reports the gap — 供电量 1000 kWh − 售电量 900 kWh = 100 kWh,与填报的线损电量 50 kWh 相差 50 kWh — and compares it with the tolerance toleranceKwh, which ships at 0, so the three figures must agree exactly (report in 万 kWh and a rounding difference survives, so configure a non-zero tolerance). The rule only does the subtraction: it does not decide which of the three values is correct and does not check whether the readings are from the same period (抄表同期性).
线损率 is filled in as 5.00%, but 线损电量 ÷ 供电量 gives 6.25%. Is the denominator the problem?PL-002 shows the division: it computes 线损电量 ÷ 供电量 × 100 and reports the gap in 个百分点 against the declared rate, allowing tolerancePoints 0.01 个百分点 for rounding — the rounding rules themselves are cited separately, from GB/T 8170-2008, whose verbatim text this pack also does not have. It does not judge whether the denominator's caliber is right (口径, e.g. whether 无损电量 should be deducted): that has to be stated in the material or configured.
Our line's loss rate looks high to me. Will the tool flag it?Not on its own. PL-003 compares the 线损率 only with the band you configure (minRate / maxRate); both ship at 0, meaning unconfigured, and then the rule is listed in skipped with its reason instead of passing silently. Even configured, it is capped at info: a hit means the rate is outside the band you set, not that the loss is abnormal. The assessment target is issued per line and per year by your own institution, so no target value is hard-coded.
The list of metering points sums to less than the declared 售电量. Is a metering point missing?PL-004 reports the gap and nothing more: it adds the metering points that carry an energy value and compares the total with the declared 售电量 — or with 供电量 when no 售电量 is given — allowing toleranceKwh (0 by default). An omitted metering point, one counted twice and readings taken at different times (抄表不同期) all produce the same gap, so the cause must be checked by hand; the rule only does the addition.
The sheet carries only A-phase and B-phase values. What does the unbalance check do?PL-005 lists itself in skipped: it needs metering points named A, B and C, and with fewer than three phase values it cannot run. Even with all three, the limit maxUnbalancePercent ships unconfigured (0) and the rule goes to skipped again. Once you set a limit it computes (最大值 − 最小值) ÷ 最大值, prints that formula with the finding, and is capped at info — it does not judge whether the unbalance constitutes a defect (是否构成缺陷).

Standards it follows

DocumentNumberCited by rules
《电力网电能损耗计算导则》DL/T 686-2018PL-001, PL-002, PL-003, PL-004, PL-005
《数值修约规则与极限数值的表示和判定》GB/T 8170-2008PL-002

Boundary: this plugin does arithmetic and interval checks on one metering period's line-loss figures — the energy balance, the loss rate, the meter-list sum, the phase unbalance — and shows its working in every finding. It is not a metering or metering-fault tool (there is no probe, no AMI integration, no hardware model) and it does not decide whether a loss figure is reasonable or whether tampering occurred. It reads a spreadsheet export and reports which sums do not close.

⚠️ Read this before trusting a citation in the report

Every excerpt in this plugin's rule pack says, in so many words, that the clause text was not obtained. The two relations the plugin checks — 线损电量 = 供电量 − 售电量 and 线损率 = 线损电量 ÷ 供电量 × 100 — are definitional, and their normative home is DL/T 686-2018《电力网电能损耗计算导则》. That standard is in force, and its table of contents was verified (chapter 3 is 术语和定义, chapter 8 is 电力网电能损耗分析与降损措施效果计算), but its body is not published for free, so no verbatim clause could be read.

Rather than paraphrase a quotation, this pack states the gap outright in the excerpt field and puts the honest reasoning in note. Everything is therefore capped at warn (principle-derived) or info (locally configured), and a test asserts that no rule claims a quotation it does not have. When the standard text is in hand, two things must be done: replace each excerpt with the real clause, and raise kind to direct. Until then a finding means "these two numbers do not close", not "you violated a standard".

Assessment thresholds are yours, not the standard's. Line-loss targets are issued per line and per year by the enterprise or its superior, so PL-003's band and PL-005's unbalance limit ship empty, and a rule that cannot run says so in skipped rather than passing silently.

Compatibility

SurfaceStatus
HarnessPeer range >=0.1.2-rc.1 <0.2.0 || >=0.2.0-0 <0.3.0 — verified to accept both 0.2.0-rc.2 and 0.2.1-alpha.1. engines.dsh is deliberately not declared: it has no reader and cannot reject a host
Node`^22.19.0
PlatformsAll (plain ESM; no native code, no network, no model call)
Tool modeWorks in native, ptc and both; for a period-by-period batch use ptc

What it does

Registers the power_loss_split tool. It reads one period's figures — supply, sales, declared loss, declared rate, and optionally the meter list — applies a versioned rule pack, and returns a report.

RuleCheckSeverityBasis kind
PL-001供电量 − 售电量 = 线损电量warnprinciple
PL-002线损电量 ÷ 供电量 × 100 = 线损率warnprinciple
PL-003the loss rate sits inside your configured band (off by default)infolocal
PL-004the meter list sums to the declared sales (or supply)warnprinciple
PL-005three-phase unbalance is within your configured limit (off by default)infolocal

Findings always carry the numbers: 供电量 1000 kWh − 售电量 900 kWh = 100 kWh,与填报的线损电量 50 kWh 相差 50 kWh. A reviewer who cannot redo the sum cannot judge the finding, so the sum is in the text.

Install

dsh plugin --profile <name> add dsh-power-loss-split
dsh --profile <name> --dump-config | grep 'dsh-power-loss-split'

Configuration

KeyTypeDefaultDescription
rulesFilestringrules/power-loss-split.yamlRule-pack path, relative to the package root
disabledRulesstring[][]Rule ids to stop running; each appears in skipped
onlyRulesstring[][]Run only these rule ids; empty runs every rule
skipNotesstring""Note appended to every skipped reason
timeoutMsnumber120000Cooperative tool timeout budget

Rule-level parameters worth knowing:

  • PL-001 / PL-004 toleranceKwh — the rounding slack allowed. Zero demands an exact match; set it when figures are reported in 万 kWh and carry rounding.
  • PL-002 tolerancePoints — the slack in percentage points, default 0.01.
  • PL-003 minRate / maxRate — your assessment band for this line this year. maxRate of 0 means the rule does not run.
  • PL-005 maxUnbalancePercent — your unbalance limit for this voltage class. 0 means the rule does not run.

Material format

The tool accepts JSON or YAML:

name: 10kV 某某线
supplied: 120000      # 供电量 kWh
sold: 114000          # 售电量 kWh
loss: 6000            # 线损电量 kWh
lossRate: 5           # 线损率 %
meters:
  - { 名称: 1号配变, 电量: 60000 }
  - { 名称: 2号配变, 电量: 54000 }
  - { 名称: A, 电量: 100 }      # A/B/C rows drive PL-005
  - { 名称: B, 电量: 98 }
  - { 名称: C, 电量: 96 }

Numbers are read from strings too, so a spreadsheet export works as-is: 1,200.5, 1200 kWh, full-width digits 1234, 5% and 12.5万 all parse. A cell that is not numeric (—, blank) is simply absent, and the affected check reports what it could not do.

Rule sources

Rule data lives in rules/power-loss-split.yaml. The pack's header states the citation gap in full, and each rule's note repeats the part that matters for that rule. The load-time guard that normally enforces "an excerpt must be a real quotation of at least eight characters" cannot tell a quotation from a description — so this pack leans on the header, the per-rule notes and a test that asserts every excerpt admits the gap.

Thresholds that belong to the enterprise ship empty on purpose. A rule whose threshold is unset reports itself in skipped, so "no findings" can never silently mean "nothing was checked".

Troubleshooting

  • A finding says a sum does not close but the spreadsheet looks right. Compare the calculation periods: a meter read on a different date from the supply figure produces exactly this difference. The plugin reports the gap; it cannot see your meter-reading calendar.
  • PL-002 fires on a rate that looks correct. The denominator is taken as 供电量. If your figure uses a different base (for example supply net of untransformed energy), that is a declared-scope question, not an arithmetic one — supply the scope in the material, or disable the rule.
  • PL-003 or PL-005 never run. Their thresholds are empty. Set this line's assessment band and this voltage class's unbalance limit.
  • The plugin installs but the tool never appears. Check that main resolves to lib/index.mjs and that pnpm run build produced it; a wrong main makes the loader skip the entry silently.
  • dsh plugin add refuses the package as incompatible. The peer range covers 0.1.x and 0.2.x; if your runtime sits outside it, grant an explicit exemption: dsh plugin --profile <name> allow-version dsh-power-loss-split@0.1.0 --dsh-version <runtime> --accept-risk
  • check reports manifest-peers as failed. The static checker compares against a hard-coded peer range that predates the 0.2 line. The runtime enforces peer compatibility at install time, so the declared range is the correct one; this is a known upstream issue in dsh-plugin-dev.

Development

pnpm install
pnpm run typecheck   # tsc --noEmit
pnpm test            # vitest, paired fixtures per rule
pnpm run build       # tsdown -> lib/index.mjs + lib/index.d.mts
node ../scripts/sync-shared.mjs dsh-power-loss-split   # refresh src/shared from ../_shared

License

Apache License 2.0 © 2026 dsh-power-loss-split contributors.