dsh-lowtide 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,9 +32,9 @@ type PriceTable = Record<string, {
32
32
  };
33
33
  }>;
34
34
  /** Hypothetical peak-hour cost of a usage — the "what you saved" baseline.
35
- * Only models with a real price entry (official table incl.
36
- * deepseek-v4-flash-vision-exp, or a user price override) get a baseline;
37
- * anything else yields 0 so no fake savings are ever reported. */
35
+ * Only models with a real price entry (the official table — including legacy
36
+ * aliases such as deepseek-v4-flash-vision-exp — or a user price override)
37
+ * get a baseline; anything else yields 0 so no fake savings are reported. */
38
38
  export declare function peakCostOf(usage: UsageLike, modelId: string, prices: PriceTable | undefined): number;
39
39
  /** Retrying a quota/balance rejection is pointless (and costly): the account
40
40
  * state cannot change inside one batch. Matches deepseek's 402 payload. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-lowtide",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "lowtide: human-adjudicated off-peak batch task pipeline for dsh (peak/valley pricing aware)",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -40,13 +40,6 @@
40
40
  "lib/types/**/*.d.ts",
41
41
  "cordis.patch.yml"
42
42
  ],
43
- "scripts": {
44
- "bundle": "tsdown && tsc -p tsconfig.build.json",
45
- "watch": "tsdown --watch",
46
- "typecheck": "tsc --noEmit",
47
- "test": "vitest run",
48
- "dev": "npx @deepseek-ai/dsh@0.1.0-rc.7 web --patch ./cordis.dev.yml"
49
- },
50
43
  "license": "MIT",
51
44
  "keywords": [
52
45
  "dsh-plugin",
@@ -95,11 +88,18 @@
95
88
  "@types/node": "^22.20.0",
96
89
  "@types/react": "~18.3.1",
97
90
  "lightningcss": "^1.32.0",
98
- "lowtide-core": "workspace:*",
99
91
  "react": "^18.2.0",
100
92
  "tsdown": "^0.22.2",
101
93
  "typescript": "^6.0.3",
102
94
  "vitest": "^4.1.8",
103
- "zod": "^4.4.3"
95
+ "zod": "^4.4.3",
96
+ "lowtide-core": "0.2.2"
97
+ },
98
+ "scripts": {
99
+ "bundle": "tsdown && tsc -p tsconfig.build.json",
100
+ "watch": "tsdown --watch",
101
+ "typecheck": "tsc --noEmit",
102
+ "test": "vitest run",
103
+ "dev": "npx @deepseek-ai/dsh@0.1.5-rc.1 web --patch ./cordis.dev.yml"
104
104
  }
105
- }
105
+ }