DSH Market
D

Dsh Stock Market

by AnacondaKC · AnacondaKC/dsh-stock-market

Build failsBundlegit (build fails)freshinstall scripts

有效解决了写代码的时候账户不能同时亏钱的BUG

Install Dsh Stock Market

Likely fails to load: not on npm, needs a build, and ships no `prepare` script — a git install fetches sources, not built artifacts, so the entry point is never produced.

This install is expected to fail

A git install pulls source, not build output. This package needs a build step, has no prepare script to run it, and is not published to npm — so nothing produces the compiled output the loader then goes looking for.

Three things would fix it, all of them on the author's side: publish the package to npm, add a prepare script that builds on install, or commit the build output to the repository. Until one of those happens, the command below is here so you can reproduce the failure, not so you can install it.

What would be run — expected to install and then fail to load

# 1. add the bundle to a profile — --profile my-profile points at $DSH_HOME/profiles/my-profile
dsh plugin --profile my-profile add github:AnacondaKC/dsh-stock-market

# 2. verify: the bundle should show up as a layer in the resolved config
dsh --profile my-profile --dump-config

# 3. boot the profile
dsh --profile my-profile

Before you run itinstall scripts

  • This package declares prepack — package-manager lifecycle scripts that execute on your machine at install time, outside the agent sandbox, before any tool-approval prompt exists.
  • A plugin runs with your permissions once loaded: it can read your files, use your credentials and reach the network. Tool approvals do not sandbox it.
  • Installing from git resolves a moving branch. Pin a commit — github:AnacondaKC/dsh-stock-market#<commit-sha> — so the code you reviewed is the code you install.

Prerequisites

API key
Not required.
Network access
Not required at runtime.
Language
TypeScript — a git install pulls this source, not build output.

Install check

Every field the verdict was derived from, so you can re-derive it yourself

Field checkedResultWeightWhat the spec says about it
lifecycleScriptsfailwarnruns at install time, outside the agent sandbox: prepack
dsh.bundlepassfatalpackage.json declares a `dsh.bundle` layer
dsh.bundle.patch filepassfatalpatch file present at `cordis.patch.yml`
npm registrymissingwarn`dsh-stock-market` is not published to npm
prepare scriptmissingfatalneeds a build but ships no `prepare` script — a git install fetches sources, not built artifacts
Verdict reason
git-only + needs build + no prepare script
package.json read
package.json
Rules applied from
docs/user/develop/basic/publish.md
Checked at
2026-08-15
Install-time scripts
prepack

From the README

Excerpt as published by the author, plain text, unedited

DSH 的沪深 A 股行情侧栏和固定免费股票数据工具插件。 - 右侧“行情”侧栏:顶部信息区展示上证指数、恒生指数、纳斯达克、韩国综合、日经指数、布伦特原油和纽约金主连的最新价与涨跌,支持横向滚动;侧栏支持收起、拖拽或键盘调整宽度及会话级状态保存。 - A 股行情快照:上证指数、深证成指、创业板指和科创综指来自腾讯实时行情,5 秒刷新;两市成交额与上一交易日同期比较,财经资讯来自东方财富。 - 数据接口设置:展示全部免费数据源和已接入的固定接口目录,无需配置凭据。 - 会话级股票工具开关:输入框工具行可启用或关闭全部股票工具,状态随会话日志持久化。 | 数据源 | 接口数 | 主要能力 | |---|---:|---| | 东方财富 | 36 | 实时/批量行情、排行、K 线、分时、资金流、数据中心、F10、研报、资讯、搜索 | | 腾讯财经 | 6 | 批量实时行情、K 线、分时、个股/板块排行、个股资讯 | | 新浪财经 | 13 | 批量实时行情、K 线、市场/板块、资金流、滚动新闻及页面型数据 | | 同花顺 | 2 | 日 K、分时走势 | 只保留无需许可证、API Key、Cookie 或登录状态即可调用的免费接口。不可无状态调用或已经停服的接口不接入插件。 Agent 只看到以下 9 个按业务组织的工具,57 个数据源接口保留为插件内部适配器: - `stock_quote`:实时证券行情快照。 - `stock_chart`:K 线与分时走势。 - `stock_ranking`:个股、行业、概念和板块成分排行。 - `stock_money_flow`:个股、板块及沪深港通资金流。 - `stock_fundamentals`:公司、财务、股东、估值和经营指标。 - `stock_events`:公告、大宗交易、融资融券、龙虎榜和数据中心事件。 - `st

Topics

GitHub topics on this repository

More in Bug Vibe Feedback

Ranked by similarity inside the cluster, not alphabetically