@goodandready/dsh-clinebot 0.6.4 → 0.6.6

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
@@ -5,6 +5,22 @@ All notable changes to `@goodandready/dsh-clinebot` will be documented in this f
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.6.6] - 2026-10-21
9
+
10
+ ### Changed
11
+ - **Client bundle compression**: each source module is whitespace-minified with `esbuild` before assembly. `lib/client.js` dropped from 256.7 KB to 202.9 KB while preserving module markers, the DSH loader wrapper and deterministic builds.
12
+ - Removed unused server exports/helpers (`isQuotaExceededError`, `getConnection` re-export, unused price/transport/model exports). Added a 220 KiB regression budget test.
13
+ - Updated bundle-inspection tests to be whitespace-agnostic.
14
+
15
+ ## [0.6.5] - 2026-10-21
16
+
17
+ ### Added
18
+ - **Grouped model table**: Settings now separates `Included in plan`, `Other models` and `Custom models` with per-group counts.
19
+ - **Extended `/cline`**: `/cline cost` (`/cline budget`) reports estimated UTC day/month spend and guard state; `/cline usage` falls through to the quota report, which now includes the monthly window.
20
+
21
+ ### Changed
22
+ - Headless/web fixture profiles no longer carry the removed `transport` and `proxyMode` fields.
23
+
8
24
  ## [0.6.4] - 2026-10-21
9
25
 
10
26
  ### Added
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <h3>Native ClineBot / ClinePass Provider Companion for DeepSeek Harness</h3>
6
6
 
7
- <p><b>0.6.4</b> adds P50/P95 latency, clickable heatmap detail, JSON export and configurable retention on top of quota forecasts and spend guards. Chat runs on the native <code>ctx.llm</code> adapter and requires DSH <code>0.2.1-rc.2</code>; the legacy <code>llm-pi-ai</code>, loopback proxy and <code>llm/stream</code> path are removed.</p>
7
+ <p><b>0.6.6</b> compresses the client bundle from 256.7 KB to 202.9 KB and removes unused server helpers, with room for the next features. Chat runs on the native <code>ctx.llm</code> adapter and requires DSH <code>0.2.1-rc.2</code>; the legacy <code>llm-pi-ai</code>, loopback proxy and <code>llm/stream</code> path are removed.</p>
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://www.npmjs.com/package/@goodandready/dsh-clinebot"><img src="https://img.shields.io/npm/v/@goodandready/dsh-clinebot.svg?style=for-the-badge&color=6366f1&labelColor=1e1b4b" alt="npm version"></a>
package/README.ru.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <h3>Нативное подключение провайдера ClineBot / ClinePass для DeepSeek Harness</h3>
6
6
 
7
- <p><b>0.6.4</b> добавляет P50/P95 задержки, кликабельный heatmap, JSON-экспорт и настраиваемый retention поверх прогноза квоты и лимитов трат. Чат работает через нативный адаптер <code>ctx.llm</code>, требуется DSH <code>0.2.1-rc.2</code>; старые <code>llm-pi-ai</code>, loopback-прокси и <code>llm/stream</code> удалены.</p>
7
+ <p><b>0.6.6</b> сжимает клиентский бандл с 256.7 КБ до 202.9 КБ и убирает неиспользуемые серверные хелперы, освобождая место для следующих фич. Чат работает через нативный адаптер <code>ctx.llm</code>, требуется DSH <code>0.2.1-rc.2</code>; старые <code>llm-pi-ai</code>, loopback-прокси и <code>llm/stream</code> удалены.</p>
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://www.npmjs.com/package/@goodandready/dsh-clinebot"><img src="https://img.shields.io/npm/v/@goodandready/dsh-clinebot.svg?style=for-the-badge&color=6366f1&labelColor=1e1b4b" alt="npm version"></a>
package/README.zh.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <h3>适用于 DeepSeek Harness 的 ClineBot / ClinePass 原生模型提供商伴侣插件</h3>
6
6
 
7
- <p><b>0.6.4</b> 添加 P50/P95 延迟、可点击热力图、JSON 导出和可配置保留期,并保留配额预测与花费上限。聊天使用原生 <code>ctx.llm</code> 适配器,需要 DSH <code>0.2.1-rc.2</code>;旧的 <code>llm-pi-ai</code>、回环代理和 <code>llm/stream</code> 已删除。</p>
7
+ <p><b>0.6.6</b> 将客户端包从 256.7 KB 压缩到 202.9 KB,并移除未使用的服务端辅助代码,为后续功能腾出空间。聊天使用原生 <code>ctx.llm</code> 适配器,需要 DSH <code>0.2.1-rc.2</code>;旧的 <code>llm-pi-ai</code>、回环代理和 <code>llm/stream</code> 已删除。</p>
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://www.npmjs.com/package/@goodandready/dsh-clinebot"><img src="https://img.shields.io/npm/v/@goodandready/dsh-clinebot.svg?style=for-the-badge&color=6366f1&labelColor=1e1b4b" alt="npm version"></a>
package/lib/access.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isTrustedSettingsRequest, getConnection, writeJson } from './http.js'
2
2
 
3
- export { isTrustedSettingsRequest, getConnection }
3
+ export { isTrustedSettingsRequest }
4
4
 
5
5
  export function assertTrustedSettingsRequest(req, res, ctx = null) {
6
6
  const conn = getConnection(ctx) || req?.connectionService
@@ -247,21 +247,8 @@ export function getLastRotation() {
247
247
  return lastRotation
248
248
  }
249
249
 
250
- export function setLastRotation(info) {
250
+ function setLastRotation(info) {
251
251
  lastRotation = info
252
252
  }
253
253
 
254
- export function isQuotaExceededError(detail) {
255
- if (!detail || typeof detail !== 'string') return false
256
- const s = detail.toLowerCase()
257
- return (
258
- s.includes('quota') ||
259
- s.includes('rate limit') ||
260
- s.includes('exhausted') ||
261
- s.includes('429') ||
262
- s.includes('insufficient_quota') ||
263
- s.includes('credit') ||
264
- s.includes('too many requests')
265
- )
266
- }
267
254
 
package/lib/adapter.js CHANGED
@@ -27,7 +27,6 @@ import {
27
27
  requestChatCompletion,
28
28
  } from './transport/cline-transport.js'
29
29
 
30
- const PROVIDER = 'clinebot'
31
30
  const PROVIDER_NAME = 'ClineBot (ClinePass)'
32
31
  const DEFAULT_CONTEXT_WINDOW = 200000
33
32
  const DEFAULT_MAX_TOKENS = 8192
@@ -618,4 +617,3 @@ export class ClineBotAdapter extends LlmAdapter {
618
617
  }
619
618
  }
620
619
 
621
- export { PROVIDER, PROVIDER_NAME }