@goodandready/dsh-clinebot 0.6.5 → 0.6.7

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,21 @@ 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.7] - 2026-10-21
9
+
10
+ ### Added
11
+ - **Headless contract test**: boots the plugin without the UI, asserts the `ctx.llm` adapter, config provider entry, HTTP routes and `/cline` command registration, and verifies removed proxy/register routes stay absent.
12
+
13
+ ### Changed
14
+ - Removed unused icon cases (`search`, `check`, `trash`, `refresh`, `account`) from the client bundle.
15
+
16
+ ## [0.6.6] - 2026-10-21
17
+
18
+ ### Changed
19
+ - **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.
20
+ - Removed unused server exports/helpers (`isQuotaExceededError`, `getConnection` re-export, unused price/transport/model exports). Added a 220 KiB regression budget test.
21
+ - Updated bundle-inspection tests to be whitespace-agnostic.
22
+
8
23
  ## [0.6.5] - 2026-10-21
9
24
 
10
25
  ### 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.5</b> groups the model table by plan availability and adds <code>/cline cost</code> / monthly quota reporting on top of the analytics work. 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.7</b> adds headless contract coverage and trims unused icons on top of the compressed 0.6.6 bundle. 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.5</b> группирует таблицу моделей по доступности в тарифе и добавляет <code>/cline cost</code> / отчёт по месячной квоте поверх аналитики. Чат работает через нативный адаптер <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.7</b> добавляет headless contract-проверку и убирает неиспользуемые иконки поверх сжатого бандла 0.6.6. Чат работает через нативный адаптер <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.5</b> 按套餐可用性对模型表分组,并在分析功能之上添加 <code>/cline cost</code> / 每月配额报告。聊天使用原生 <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.7</b> 在压缩后的 0.6.6 包之上添加 headless 契约测试并移除未使用的图标。聊天使用原生 <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 }