{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "aisland-sjl-dsh-usage--run-offline-tests-before-changing-plugin",
 "repo": "Aisland-SJL/dsh-usage",
 "repo_url": "https://github.com/Aisland-SJL/dsh-usage",
 "repo_slug": "aisland-sjl-dsh-usage",
 "title": "Run the offline test suite before editing the plugin",
 "page_title": "How to run the offline test suite before editing the plugin with DSH Usage",
 "summary": "Install dependencies and run the checks and 112 offline tests on a development copy.",
 "who": "A contributor or agent that plans to change the DSH Usage code and needs a safe baseline first.",
 "problem": "Changes to balance schemes, token folding, or the server boundary can break silently without a baseline test run.",
 "outcome": "All syntax checks and offline tests pass on a clean checkout, giving a known starting point before edits.",
 "steps": [
  "Clone the repository with `git clone https://github.com/Aisland-SJL/dsh-usage.git` and change into the folder. (inferred, check the README)",
  "Run `npm install` to add react, react-dom, and jsdom for offline tests only.",
  "Run `npm run check` to run syntax checks for every module and script.",
  "Run `npm test` to run the 112 offline tests.",
  "Run `npm run test:package` to check the runtime dependency and client inject contract."
 ],
 "agent_prompt": "In the repo Aisland-SJL/dsh-usage, run npm install, npm run check, and npm test, then report the pass count out of 112. Verify that no test touched the real ~/.dsh directory, as the README says the tests redirect DSH_HOME to a temp dir.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README says the tests are offline and do not establish acceptance for every account, historical session, or Desktop feature.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "javascript",
 "requirements": [
  "DeepSeek Harness host, version 0.2.0-rc.2 for v0.3.1 of this plugin, with the dsh CLI installed",
  "An API key for each provider you want to query, configured through Harness credentials (for example DEEPSEEK_API_KEY)",
  "Node.js and npm only if you plan to run the offline tests or develop the plugin"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/aisland-sjl-dsh-usage/run-offline-tests-before-changing-plugin/",
 "md": "https://dedupedai.com/use-cases/aisland-sjl-dsh-usage/run-offline-tests-before-changing-plugin/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/aisland-sjl-dsh-usage--run-offline-tests-before-changing-plugin.json",
 "api_version": "v1"
}
