@goodandready/dsh-key-rotation 0.8.82 → 0.8.83

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +16 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.83 (2026-10-31)
4
+
5
+ ### TypeScript Migration & Type-Safe Core Architecture (Block 11 Release)
6
+ - **TypeScript Server-Side Architecture (Issue #524)**: Migrated server-side codebase to TypeScript with `src/` directory structure, strict `tsconfig.json`, and `tsdown` build pipeline generating `lib/index.d.ts`.
7
+ - **Domain Type Definitions (`src/types/`)**: Defined comprehensive TypeScript types for configuration schemas (`PoolConfig`, `ModelQuotaConfig`, `FailoverConfig`, `PluginConfig`), pool & key state machines (`KeyState`, `KeyStatus`, `PoolItem`, `ResolvedKey`, `RoutingDecision`, `QuotaWindow`), and Cordis service interaction contracts (`Context`, `LlmService`, `WebServerService`, `SettingsService`, `CredentialsService`).
8
+ - **Static Type Safety & Tooling**: Integrated `npm run typecheck` (`tsc --noEmit`) into `npm run check`, guaranteeing compile-time type safety across all configuration fields, service bindings, and event handlers with 0 errors.
9
+ - **Zero Runtime Dependencies**: All TypeScript build tools (`typescript`, `tsdown`, `@types/node`) maintained strictly in `devDependencies`, with `dependencies: {}` preserved.
10
+
3
11
  ## 0.8.82 (2026-10-30)
4
12
 
5
13
  ### Modernized UI Builder & JSX Pipeline (Block 10 Release)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-key-rotation",
3
- "version": "0.8.82",
3
+ "version": "0.8.83",
4
4
  "packageManager": "pnpm@10.33.2",
5
5
  "description": "Per-provider API key rotation for DeepSeek Harness: a key pool per provider, auto-created clone routes, and switching to the next key on quota/rate-limit errors. Includes a Settings section (Key Rotation) to edit the key pools, cooldown and switch codes.",
6
6
  "keywords": [
@@ -24,7 +24,10 @@
24
24
  "type": "module",
25
25
  "main": "lib/index.js",
26
26
  "exports": {
27
- ".": "./lib/index.js",
27
+ ".": {
28
+ "types": "./lib/index.d.ts",
29
+ "default": "./lib/index.js"
30
+ },
28
31
  "./client": "./lib/client.js",
29
32
  "./transports": "./lib/transports/index.js",
30
33
  "./catalog": "./lib/model-catalog.js",
@@ -67,9 +70,12 @@
67
70
  "scripts": {
68
71
  "test": "node tools/test.mjs",
69
72
  "test:core": "node tools/test.mjs --core",
70
- "check": "node tools/check.mjs",
73
+ "check": "npm run typecheck && node tools/check.mjs",
71
74
  "build:client": "node scripts/build-client.mjs",
72
- "pretest": "node scripts/build-client.mjs"
75
+ "pretest": "node scripts/build-client.mjs",
76
+ "typecheck": "tsc --noEmit",
77
+ "build:server": "tsdown",
78
+ "build": "npm run build:server && npm run build:client"
73
79
  },
74
80
  "devDependencies": {
75
81
  "react": "18.3.1",
@@ -78,7 +84,11 @@
78
84
  "@deepseek-ai/dsh-llm": "^0.2.0-rc.2",
79
85
  "@deepseek-ai/schemastery": "^3.18.4",
80
86
  "semver": "^7.6.3",
81
- "esbuild": "^0.28.2"
87
+ "esbuild": "^0.28.2",
88
+ "typescript": "^5.7.2",
89
+ "tsdown": "^0.22.14",
90
+ "@types/node": "^22.0.0"
82
91
  },
83
- "dependencies": {}
92
+ "dependencies": {},
93
+ "types": "./lib/index.d.ts"
84
94
  }