opencode-lmstudio-warm 0.1.0 → 0.1.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## [0.1.1](https://github.com/diegomarino/opencode-lmstudio-warm/compare/v0.1.0...v0.1.1) (2026-07-04)
2
+
1
3
  # Changelog
2
4
 
3
5
  All notable changes to this project are documented here.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-lmstudio-warm",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Deterministic LM Studio model pre-warm gate for opencode — loads and keeps the target model resident before every request, healing cold starts and mid-session TTL evictions.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -47,11 +47,23 @@
47
47
  "test": "vitest run",
48
48
  "test:watch": "vitest",
49
49
  "e2e": "test/e2e/verify.sh",
50
- "check": "bun run typecheck && bun run test && shellcheck --severity=warning test/e2e/verify.sh"
50
+ "check": "bun run typecheck && bun run test && shellcheck --severity=warning test/e2e/verify.sh",
51
+ "prepare": "husky"
51
52
  },
52
53
  "devDependencies": {
54
+ "@commitlint/cli": "^21.2.0",
55
+ "@commitlint/config-conventional": "^21.2.0",
53
56
  "@opencode-ai/plugin": "1.17.10",
57
+ "@semantic-release/changelog": "^6.0.3",
58
+ "@semantic-release/commit-analyzer": "^13.0.1",
59
+ "@semantic-release/git": "^10.0.1",
60
+ "@semantic-release/github": "^12.0.9",
61
+ "@semantic-release/npm": "^13.1.5",
62
+ "@semantic-release/release-notes-generator": "^14.1.1",
54
63
  "@types/node": "^26.1.0",
64
+ "conventional-changelog-conventionalcommits": "^10.2.0",
65
+ "husky": "^9.1.7",
66
+ "semantic-release": "^25.0.5",
55
67
  "vitest": "^4.1.9"
56
68
  }
57
69
  }
package/src/index.ts CHANGED
@@ -520,9 +520,12 @@ export const LMStudioWarm: Plugin = async (_input, pluginOptions) => {
520
520
  // chat.params gate below remains the deterministic barrier.
521
521
  config: async (cfg: any) => {
522
522
  if (!opts.eager) return
523
+ const warmed = new Set<string>()
523
524
  for (const ref of [cfg?.model, cfg?.small_model]) {
524
525
  const parsed = parseModelRef(ref)
525
526
  if (!parsed || !opts.providers.includes(parsed.providerID)) continue
527
+ if (warmed.has(parsed.key)) continue // model === small_model ⇒ warm the key once
528
+ warmed.add(parsed.key)
526
529
  const configured = cfg?.provider?.[parsed.providerID]?.options?.baseURL
527
530
  const baseURL = typeof configured === "string" && configured.startsWith("http") ? configured : opts.baseURL
528
531
  log(`eager warm queued for ${parsed.key}`)