dsh-thinking-levels 4.4.1 → 4.4.4
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.de.md +465 -0
- package/CHANGELOG.es.md +477 -0
- package/CHANGELOG.fr.md +474 -0
- package/CHANGELOG.it.md +462 -0
- package/CHANGELOG.ja.md +53 -31
- package/CHANGELOG.ko.md +53 -31
- package/CHANGELOG.md +53 -21
- package/CHANGELOG.ru.md +456 -0
- package/INSTALL.de.md +175 -0
- package/INSTALL.es.md +175 -0
- package/INSTALL.fr.md +175 -0
- package/INSTALL.it.md +175 -0
- package/INSTALL.ru.md +175 -0
- package/dsh.plugin.json +1 -1
- package/lib/client.js +265 -58
- package/lib/client.js.map +1 -1
- package/lib/takeover-sync.d.ts +11 -3
- package/lib/takeover-sync.js +13 -5
- package/package.json +17 -2
package/CHANGELOG.ko.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
`dsh-thinking-levels`의 주요 변경 사항을 기록합니다.
|
|
4
4
|
|
|
5
|
+
## [4.4.4] — 2026-10-21 (호환 필드를 화면에서 제거·레벨 표는 모든 프로토콜에서 편집 — issue #7 #8)
|
|
6
|
+
|
|
7
|
+
- `支持 think effort` / `思考格式` 두 스위치는 다른 프로토콜에서 "비활성화 + 긴 안내문" 대신 화면에 아예 표시하지 않습니다. 표시 조건은 "사고 모델로 선언됨" 그리고 "라우트가 openai-completions" 두 가지뿐입니다. 사고 스위치 자체는 모든 프로토콜에서 계속 사용 가능합니다(protocol 중립적 `reasoningEfforts`).
|
|
8
|
+
- **레벨별 wire 편집기가 completions 에 갇히지 않습니다**(issue #8). 이것은 `reasoningEfforts` 를 편집하며, 호스트가 pi-ai 의 `thinkingLevelMap` 으로 변환해 모든 프로토콜이 읽습니다(Anthropic 사고 예산 / Responses reasoning effort / completions reasoning_effort 문자열). 사고 모델이면 어느 프로토콜에서든 그리드가 열립니다. completions 의 toggle 가드(effort 단을 내놓기 전에 `支持 think effort` 필요)만 그대로입니다.
|
|
9
|
+
- `toggleEffortCapable` 은 비 completions 엔트리를 즉시 거부합니다.
|
|
10
|
+
- 수정: `applyDraft` 는 비 toggle 단을 체크할 때 `compat.supportsReasoningEffort: true` 를 자동 기록했습니다. Responses / Anthropic 에서 이 필드 때문에 호스트가 **providers 전체를 거부**하여 한 번의 클릭으로 저장이 통째로 사라졌습니다. 부작용을 completions 전용으로 제한했습니다.
|
|
11
|
+
- 잔여물 검사(`staleThinkingCompatFields`)와 원클릭 정리(`stripThinkingCompat`) 추가. 행 단위·카드 전체에서 제거할 수 있고, 형제 compat 필드는 보존하며, 비게 된 `compat` 은 삭제합니다.
|
|
12
|
+
- 테스트 180/180 통과(변이 검증 완료).
|
|
13
|
+
|
|
14
|
+
## [4.4.3] — 2026-10-21 (사고는 모든 프로토콜에서 설정 가능 — issue #6)
|
|
15
|
+
|
|
16
|
+
- 능력 카드: 사고 체크박스가 openai-completions 외(Responses / Anthropic)에서도 다시 선택 가능합니다. 기록하는 값은 protocol 중립적인 `reasoningEfforts` 이며, 호스트 llm-pi-ai 가 `reasoning: true` + `thinkingLevelMap` 으로 해석하고 pi-ai 가 프로토콜별로 네이티브 변환합니다(에포트 선택의 전제).
|
|
17
|
+
- 비 completions 사고 선언에 completions 전용 `thinkingFormat` 을 더 이상 함께 기록하지 않습니다(모델 계층 기록은 providers 전체 거부를 유발하므로 qwen 형식 자동 채움 생략). `off` 는 실제 값(`none`)을 유지해 Off 가 "미지원"으로 사라지지 않습니다.
|
|
18
|
+
- `thinkingFormat` / 支持 think effort 는 계속 openai-completions 전용(실제로 completions 전용 호환 필드). 카드 안내 문구도 그에 맞게 수정.
|
|
19
|
+
- 호스트 측 호환 동기화: 명시적인 비 completions `api` 를 커스텀 openai-completions 게이트웨이로 판정하지 않음(baseURL 판정은 프로토콜 미지정 시에만).
|
|
20
|
+
- 테스트 168/168 통과.
|
|
21
|
+
|
|
5
22
|
- [English changelog](./CHANGELOG.md)
|
|
6
23
|
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
7
24
|
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
@@ -11,22 +28,27 @@
|
|
|
11
28
|
- [Список изменений на русском](./CHANGELOG.ru.md)
|
|
12
29
|
- [Changelog en español](./CHANGELOG.es.md)
|
|
13
30
|
|
|
14
|
-
## [4.4.
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
## [4.4.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
###
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
31
|
+
## [4.4.2] — 2026-10-19(카드 토글·가시 설명 — 사용자 피드백)
|
|
32
|
+
|
|
33
|
+
- 설정 카드의 체크박스(활성화/인수 마스터/강등 허용/승격 허용/모델 UI 인수)를 낙관적 횡형 알약 토글로 변경 — 클릭 즉시 반전, 쓰기 거부 시 롤백.
|
|
34
|
+
- 모델 UI 인수 행 아래에 상시 표시 설명 추가(기존엔 툴팁만): ON이 무엇을 대체하고 OFF가 무엇을 유지하며 auto 마스크는 양쪽 모두 계속 제공됨.
|
|
35
|
+
|
|
36
|
+
## [4.4.1] — 2026-10-19(takeoverUi 시트 감시 — 데스크톱 실측 피드백)
|
|
37
|
+
|
|
38
|
+
- 수정: `takeoverUi` 즉시 반영(새로고침 불필요). 4.4.0은 시트 inject 시 설정 미러를 1회만 읽어, 실제 호스트에서 설정 바인딩/미러 접힘보다 모델 시트 콜백이 먼저 실행되면 ON이어도 착석하지 않았다. 이제 웨이스트 바인딩과 모든 설정 변경 시 재평가하는 감시 방식으로 전환.
|
|
39
|
+
- 카드: takeoverUi 줄을 낙관적 횡형 알약 토글로 변경.
|
|
40
|
+
|
|
41
|
+
## [4.4.0] — 2026-10-19(issue 일괄 처리: #2 #3 #4 #5)
|
|
42
|
+
|
|
43
|
+
### 수정
|
|
44
|
+
- 기능 카드(#2): `api`가 openai-completions이 아닌 제공자에서는 Thinking / Supports-effort / thinkingFormat 컨트롤을 안내 문구와 함께 비활성화 — 잘못된 쓰기로 인한 `card.writeError` 제거(호스트 Responses 호환 게이트는 이 모델 필드를 제공하지 않음).
|
|
45
|
+
- 로딩 비용(#4): `resolveModel` 광고를 멱등화(WeakSet 가드). 기존에는 `llm/adapters-updated`마다 래퍼가 중첩되어 해석마다 전체 settings 읽기가 발생. readout 세대 캐시화, 설정 커밋 시 무효화, takeover 미러 재동기는 관련 namespace에서만 실행.
|
|
46
|
+
- 단계 chip(#5): `auto` 선택 시 chip은 **Auto**를 유지하고 해당 스텝의 해석 값은 `→ <level>` 보조 표기로 격하.
|
|
47
|
+
|
|
48
|
+
### 추가
|
|
49
|
+
- `takeoverUi` 설정(기본 OFF, #3/#4): 공식 모델 팝업 유지(검색·로딩은 네이티브, `auto`는 서버측 광고로 계속 제공). OFF일 때 공식 모델 컨텍스트 편집은 설정 카드로. ON이면 ModelPanel 인수 복원. 변경 후 새로고침 필요.
|
|
50
|
+
- ModelPanel 팝업 검색(#3): 4개 모델 초과 시 표시, 공식 규칙과 동일.
|
|
51
|
+
|
|
30
52
|
## [4.3.1] — 2026-10-17(호스트 열거 갱신: 0.2.1-rc.1 추가)
|
|
31
53
|
|
|
32
54
|
### Fixed
|
|
@@ -35,21 +57,21 @@
|
|
|
35
57
|
- devDependencies `@deepseek-ai/dsh-client-*`를 0.2.0-rc.1 → 0.2.1-rc.1로 전환, 빌드·전체 테스트(140건) 대상 라인에서 검증.
|
|
36
58
|
- README 호환 서술(en/zh/ja/ko/de/es/fr/it/ru)을 열거와 동기화. 동작 변경 없음.
|
|
37
59
|
|
|
38
|
-
## [4.3.0] — 2026-10-17
|
|
39
|
-
|
|
40
|
-
### 추가
|
|
41
|
-
- 가격 카탈로그(src/price-catalog.ts): 29개 모델 x 지역 — DeepSeek V4.1-Flash / V4-Flash / V4-Pro는 공식 봉우/곡선 2단(베이징 09-12, 14-18 봉우리; 2026-08-17 시행), GLM / Kimi / Qwen / Doubao / MiniMax / Ernie는 평일 가격. 각 항목은 백만 토큰당 3개 슬롯(비캐시 입력 / 캐시 히트 입력 / 출력)과 asOf + 출처 표기를 가짐. 해외(USD) 항목은 구조만 확보, 공식 페이지 검증 전까지 의도적 비움(날조 없음).
|
|
42
|
-
- defaultPricing 설정(cn / global / custom / off, 기본 off): 카탈로그 밖 모델은 더 이상 Flash 가격으로 추정하지 않고 "미과금"으로 표시.
|
|
43
|
-
- 2026 국무원 공휴/보근 수정표(39항목, dsh-session-guard 와 동일 출처): 보근 주말은 평일처럼 봉우리의 대상, 법정 공휴는 종일 곡선. 표 밖 연도는 주말 규칙으로 축퇴.
|
|
44
|
-
|
|
45
|
-
### 변경
|
|
46
|
-
- 프로젝션 stateVersion 1 -> 2: 사용 샘플에 절입 시점 계산 전표를 영속화, 동일 단계 교체는 기록값 차감(혼합 요율 재계산·음수 제거), 합계는 통화별 버킷. 업그레이드 후 옛 세션은 현재 카탈로그로 재절입되어 총액이 한 번 변동, 이후 설정 변경은 신규 샘플에만 반영.
|
|
47
|
-
- 과금 팝오버: 통화별 기호(¥ / $, 미지는 ISO 코드), flat/null 정직한 표시, "모댔 기반 과금", 혼통화 세션은 합산 대신 통화별 행.
|
|
48
|
-
|
|
49
|
-
### 수정
|
|
50
|
-
- settings.describe() 모양 정규화(프로세스 내 배열 vs RPC {namespaces:[...]} 봉투): 이상 모양은 예외 대신 결측 처리(조용한 동결 classe 해소).
|
|
51
|
-
- 프로젝션 등록 try/catch 보호: 과금 단위 실패가 플러그인 전체/콜드 세션 히스토리를 오염시키지 않음.
|
|
52
|
-
|
|
60
|
+
## [4.3.0] — 2026-10-17
|
|
61
|
+
|
|
62
|
+
### 추가
|
|
63
|
+
- 가격 카탈로그(src/price-catalog.ts): 29개 모델 x 지역 — DeepSeek V4.1-Flash / V4-Flash / V4-Pro는 공식 봉우/곡선 2단(베이징 09-12, 14-18 봉우리; 2026-08-17 시행), GLM / Kimi / Qwen / Doubao / MiniMax / Ernie는 평일 가격. 각 항목은 백만 토큰당 3개 슬롯(비캐시 입력 / 캐시 히트 입력 / 출력)과 asOf + 출처 표기를 가짐. 해외(USD) 항목은 구조만 확보, 공식 페이지 검증 전까지 의도적 비움(날조 없음).
|
|
64
|
+
- defaultPricing 설정(cn / global / custom / off, 기본 off): 카탈로그 밖 모델은 더 이상 Flash 가격으로 추정하지 않고 "미과금"으로 표시.
|
|
65
|
+
- 2026 국무원 공휴/보근 수정표(39항목, dsh-session-guard 와 동일 출처): 보근 주말은 평일처럼 봉우리의 대상, 법정 공휴는 종일 곡선. 표 밖 연도는 주말 규칙으로 축퇴.
|
|
66
|
+
|
|
67
|
+
### 변경
|
|
68
|
+
- 프로젝션 stateVersion 1 -> 2: 사용 샘플에 절입 시점 계산 전표를 영속화, 동일 단계 교체는 기록값 차감(혼합 요율 재계산·음수 제거), 합계는 통화별 버킷. 업그레이드 후 옛 세션은 현재 카탈로그로 재절입되어 총액이 한 번 변동, 이후 설정 변경은 신규 샘플에만 반영.
|
|
69
|
+
- 과금 팝오버: 통화별 기호(¥ / $, 미지는 ISO 코드), flat/null 정직한 표시, "모댔 기반 과금", 혼통화 세션은 합산 대신 통화별 행.
|
|
70
|
+
|
|
71
|
+
### 수정
|
|
72
|
+
- settings.describe() 모양 정규화(프로세스 내 배열 vs RPC {namespaces:[...]} 봉투): 이상 모양은 예외 대신 결측 처리(조용한 동결 classe 해소).
|
|
73
|
+
- 프로젝션 등록 try/catch 보호: 과금 단위 실패가 플러그인 전체/콜드 세션 히스토리를 오염시키지 않음.
|
|
74
|
+
|
|
53
75
|
## [4.2.1] — 2026-10-12
|
|
54
76
|
|
|
55
77
|
### 변경 — 안정 버전 승격 (4.2.0-beta.29 이후 코드 변경 없음)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,25 +1,57 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
-
|
|
3
|
-
## [4.4.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
### Fixed
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
## 4.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
2
|
+
|
|
3
|
+
## [4.4.4] — 2026-10-21 (compat fields moved out, effort map opened everywhere — issues #7 #8)
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- The two openai-completions-only switches (`支持 think effort` / `思考格式`) are no longer RENDERED on other protocols — they used to be shown greyed with a long note. They now appear only when the model is **declared a thinking model** AND the route speaks `openai-completions`; everywhere else they are absent from the DOM. Thinking itself stays live on every protocol (protocol-neutral `reasoningEfforts`).
|
|
7
|
+
- The **per-level wire editor is no longer trapped in completions** (issue #8). It edits `reasoningEfforts` — the table the host turns into pi-ai's `thinkingLevelMap`, which every protocol reads (Anthropic thinking budget, Responses reasoning effort, completions reasoning_effort string). A thinking model now opens the grid on any protocol; only the completions toggle-style guard (needs `支持 think effort` before offering effort levels) still applies there.
|
|
8
|
+
- `toggleEffortCapable` refuses a non-completions entry outright, so no code path can write the field where the host would reject it.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- `applyDraft` used to auto-write `compat.supportsReasoningEffort: true` whenever a non-toggle level was ticked. On a Responses/Anthropic route that field makes the host **reject the WHOLE providers payload** — one tick and the entire save was lost. The side effect is now completions-only, so editing levels outside completions is safe.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- Leftover audit (`staleThinkingCompatFields`) + one-click cleanup (`stripThinkingCompat`): a model row still carrying `thinkingFormat` / `supportsReasoningEffort` from an older version (or a hand-edited `cordis.yml`) now shows which fields block the next write, with a per-row and a card-wide sweep. Sibling compat fields survive; an emptied `compat` object is deleted rather than left as `{}`.
|
|
15
|
+
|
|
16
|
+
### Tests
|
|
17
|
+
- 180/180: the issue-#7 render matrix (absent vs present by protocol × thinking), the issue-#8 grid-on-every-protocol matrix, the write-recorder bomb regression (mutation-verified: removing the guard fails it), the audit, and the strip writer's sibling/empty-object cases.
|
|
18
|
+
|
|
19
|
+
## [4.4.3] — 2026-10-21 (thinking stays configurable on every protocol — issue #6)
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- Capability card: the 思考 (thinking) checkbox is selectable again on every wire protocol, not only openai-completions. It writes the protocol-neutral `reasoningEfforts` (host llm-pi-ai → `reasoning: true` + `thinkingLevelMap`, which pi-ai maps natively per protocol), so the prerequisite the effort selector needs is back on Responses/Anthropic routes too.
|
|
23
|
+
- A non-completions thinking declaration no longer carries the completions-only `thinkingFormat` along: the qwen format autofill is skipped there (a model-level write of it made the host reject the WHOLE providers payload), and `off` keeps a real wire token (`none`) so the Off level stays selectable instead of being marked unsupported by pi-ai.
|
|
24
|
+
- `thinkingFormat` / 支持 think effort remain gated to openai-completions — those two ARE completions-only compat fields — and the card note now says exactly that instead of claiming thinking itself is unconfigurable.
|
|
25
|
+
- Host-side compat sync: an explicitly non-completions `api` is no longer treated as a custom openai-completions gateway (the baseURL heuristic applies only when no protocol is named), so the auto-sync cannot write completions-only compat into a Responses/Anthropic route.
|
|
26
|
+
|
|
27
|
+
### Tests
|
|
28
|
+
- 168/168: new `writeThinkingRow` protocol matrix (completions / responses / anthropic), the 4.4.x alias, and the sync gateway guard.
|
|
29
|
+
|
|
30
|
+
## [4.4.2] — 2026-10-19 (card toggles, visible explainer — user feedback)
|
|
31
|
+
|
|
32
|
+
- The settings-card checkboxes (启用 / 接管主控 / 允许降档 / 允许升档 / 模型界面接管) are now optimistic horizontal pill toggles — click flips instantly, a refused write rolls back.
|
|
33
|
+
- The 模型界面接管 row gained a VISIBLE explainer under the row (previously tooltip-only): what ON replaces, what OFF keeps, and that the auto mask still arrives either way.
|
|
34
|
+
|
|
35
|
+
## [4.4.1] — 2026-10-19 (takeoverUi seat watchdog — desktop field report)
|
|
36
|
+
|
|
37
|
+
- Fixed: `takeoverUi` now applies live, no reload. The 4.4.0 gate read the settings mirror once at seat-inject time; on the real desktop host the model-seat callback can fire BEFORE the settings channel binds or the mirror folds, so with the switch on the panel never seated (and the official popup stayed with no context chips). Seating is now a watchdog re-evaluated whenever the settings waist binds or any settings change lands: flipping the switch seats the ModelPanel — flipping back returns the shipped ModelSelect — immediately.
|
|
38
|
+
- Card: the takeoverUi row is an optimistic horizontal pill toggle (flips on click, rolls back on a refused write).
|
|
39
|
+
|
|
40
|
+
## [4.4.0] — 2026-10-19 (issue batch: #2 #3 #4 #5)
|
|
41
|
+
|
|
42
|
+
### Fixed
|
|
43
|
+
- Capability card (#2): providers whose `api` is not `openai-completions` (openai-responses family, anthropic-messages …) now grey out the Thinking / Supports-effort / thinkingFormat controls with an explanatory note instead of failing the whole providers write with a generic `card.writeError` — the host's Responses compat gate never offers those model-level fields.
|
|
44
|
+
- Load cost (#4): the `resolveModel` advertisement is idempotent again — repeated `llm/adapters-updated` used to STACK wrappers, each replaying a full settings readout (O(models × wrappers) on the model page). The readout is generation-cached (invalidated on settings commits) and the takeover mirror re-check only runs for namespaces that can move the judgment. Note: the 4.3.0 projection stateVersion bump keeps a ONE-TIME history re-fold on the first load after upgrading.
|
|
45
|
+
- Effort chip (#5): with the level set to `auto` the panel chip keeps showing **Auto** and demotes the step's resolved level to a secondary `→ <level>` hint, instead of being overwritten by the scheduler's wire value.
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
- `takeoverUi` setting (default OFF, #3/#4): the composer keeps the official model popup — native search and loading, and the `auto` mask still arrives through the server-side advertisement; official-model context editing lives on the settings card while it is OFF. Flip it ON to restore the ModelPanel takeover. Reload the page after changing.
|
|
49
|
+
- ModelPanel popup search (#3): shown past four models, mirroring the shipped selector's rule.
|
|
50
|
+
|
|
51
|
+
## 4.3.3 (2026-10-18)
|
|
52
|
+
|
|
53
|
+
- 计价目录化上线:price-catalog 41 条(国内 30 CNY 峰谷/平价 + 海外 11 USD:Claude 4 官方页一手、GPT 4/Gemini 3 Copilot 计费文档×公告交叉核实),注入型号按目录实价入账、目录外走 estimate 典型价兜底并标「未校准·仅供参考」(免费档调用=按标准价折算的花费/白嫖额度感知)。
|
|
54
|
+
- 凭证入账 stateVersion 2→3;设置卡目录外定价五档选择器(9 语);CATALOG_VERSION 1→2;golden 150/150 绿。
|
|
23
55
|
|
|
24
56
|
## 4.3.2 (2026-10-18)
|
|
25
57
|
|