openclacky 1.5.27 → 1.5.28
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.
- checksums.yaml +4 -4
- data/.clacky/skills/gem-release/SKILL.md +7 -1
- data/CHANGELOG.md +27 -0
- data/lib/clacky/billing/platform_billing.rb +7 -0
- data/lib/clacky/default_extensions/knowledge/README.md +3 -3
- data/lib/clacky/default_extensions/knowledge/README.zh.md +3 -3
- data/lib/clacky/default_extensions/knowledge/ext.yml +2 -2
- data/lib/clacky/default_extensions/knowledge/lib/index.rb +3 -1
- data/lib/clacky/default_extensions/knowledge/lib/knowledge.rb +1 -1
- data/lib/clacky/default_extensions/knowledge/lib/t2s.rb +44 -0
- data/lib/clacky/default_extensions/knowledge/lib/t2s.txt +3221 -0
- data/lib/clacky/default_extensions/knowledge/panels/kb/view.js +25 -7
- data/lib/clacky/default_extensions/side-chat/README.md +1 -1
- data/lib/clacky/default_extensions/side-chat/README.zh.md +1 -1
- data/lib/clacky/default_extensions/side-chat/api/runtime.rb +7 -2
- data/lib/clacky/default_extensions/side-chat/panels/side-chat/view.js +58 -16
- data/lib/clacky/default_extensions/terminal/README.md +2 -0
- data/lib/clacky/default_extensions/terminal/README.zh.md +2 -0
- data/lib/clacky/default_extensions/terminal/panels/terminal/view.js +80 -10
- data/lib/clacky/default_parsers/deepseek_ocr.rb +275 -0
- data/lib/clacky/default_parsers/pdf_parser.rb +39 -10
- data/lib/clacky/default_skills/media-gen/SKILL.md +5 -2
- data/lib/clacky/media/openai_compat.rb +17 -1
- data/lib/clacky/message_format/open_ai.rb +2 -2
- data/lib/clacky/message_format/open_ai_responses.rb +8 -2
- data/lib/clacky/providers.rb +34 -18
- data/lib/clacky/reasoning_levels.rb +2 -2
- data/lib/clacky/server/http_server.rb +104 -14
- data/lib/clacky/server/session_registry.rb +1 -1
- data/lib/clacky/utils/model_pricing.rb +9 -0
- data/lib/clacky/version.rb +1 -1
- data/lib/clacky/web/components/code-editor.js +45 -0
- data/lib/clacky/web/components/custom-select.js +15 -2
- data/lib/clacky/web/components/model-picker.js +11 -0
- data/lib/clacky/web/components/quote-select.js +7 -2
- data/lib/clacky/web/core/ext.js +34 -1
- data/lib/clacky/web/features/workspace/view.js +4 -2
- data/lib/clacky/web/i18n.js +28 -18
- data/lib/clacky/web/index.html +0 -2
- data/lib/clacky/web/sessions.js +74 -0
- metadata +4 -2
- data/lib/clacky/web/vendor/katex/auto-render.min.js +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2e0f1cb5d5840e34f75d1f2026276bb2fb78cfc1faf2f3ec1e6d53cf35ebe24
|
|
4
|
+
data.tar.gz: 841b6dfe8aba199c3a7c597a5ea27e35eb26888a3014573d8281c5bb42b1a2a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 611599059496385d2b3aa25d868177da0c5ddcc827b233b84982fa5166bfbdcbe33276bbe3f361382773312482ccc3996d2da3d31db46d45238e9a705238fa97
|
|
7
|
+
data.tar.gz: 85035703a54036c262cf184c679eff842139373dd16636dde9c480a6184968d8c1e77f9f446a62c12dcb51be3848ba652bad7ad4d4e6f2f677982bc48c27b825
|
|
@@ -160,6 +160,12 @@ Rules:
|
|
|
160
160
|
- Translate technical terms into plain language
|
|
161
161
|
- Keep each item one sentence, action-oriented
|
|
162
162
|
|
|
163
|
+
The Fresh install line must pin `install.sh` to the release tag `v{version}`
|
|
164
|
+
(never the mutable `main` branch) and check the SHA-256 of `scripts/install.sh`
|
|
165
|
+
from the release tree before bash runs it. Compute that digest with
|
|
166
|
+
`sha256sum scripts/install.sh` or `shasum -a 256 scripts/install.sh` and
|
|
167
|
+
substitute `{install_sha256}`.
|
|
168
|
+
|
|
163
169
|
Format (flexible — adapt as needed, but roughly):
|
|
164
170
|
|
|
165
171
|
```
|
|
@@ -180,7 +186,7 @@ Fixed:
|
|
|
180
186
|
- ...
|
|
181
187
|
|
|
182
188
|
Upgrade: click "Upgrade" in Web UI bottom-left, or `gem update openclacky`
|
|
183
|
-
Fresh install: curl -
|
|
189
|
+
Fresh install: curl -fsSL -o /tmp/openclacky-install.sh https://raw.githubusercontent.com/clacky-ai/openclacky/v{version}/scripts/install.sh && if [ "$(openssl dgst -sha256 -r /tmp/openclacky-install.sh | awk '{print $1}')" = "{install_sha256}" ]; then bash /tmp/openclacky-install.sh; else echo "Checksum mismatch — aborting install."; false; fi
|
|
184
190
|
|
|
185
191
|
RubyGems: https://rubygems.org/gems/openclacky/versions/{version}
|
|
186
192
|
GitHub: https://github.com/clacky-ai/openclacky/releases/tag/v{version}
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,33 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
|
7
|
+
## [1.5.28] - 2026-12-04
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- Generate video with Alibaba's Wan 3.0, listed beside Seedance in the model picker
|
|
11
|
+
- Choose GLM-5.4 on the glm and volcengine-ark providers
|
|
12
|
+
- Generate images with Seedream 5.5 and video with Seedance 2.5, both with a cheaper Flash tier, while Nano Banana 2 and GPT Image 2.5 / 2 leave the picker
|
|
13
|
+
- Restart a terminal tab from its right-click menu to get a clean shell without closing the tab
|
|
14
|
+
- OCR a scanned PDF through DeepSeek when no page carries a text layer
|
|
15
|
+
|
|
16
|
+
### Improved
|
|
17
|
+
- Keep a terminal tab's shell and its scrollback alive across a page reload
|
|
18
|
+
- Cut the web UI's first load from 4.4 MB to 1.3 MB, and let repeat visits revalidate instead of re-downloading
|
|
19
|
+
- Load the code editor only when a file is opened instead of on every page load
|
|
20
|
+
- Return ten knowledge hits per search by default
|
|
21
|
+
- Match traditional Chinese questions against simplified knowledge entries
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
- Stop the terminal from sizing itself past the panel, which flickered the scrollbars and the terminal body
|
|
25
|
+
- Keep a just-created session from being evicted before its task starts when many sessions run at once
|
|
26
|
+
- Show the side-chat reset line where the old branch ended instead of asking for a resend
|
|
27
|
+
- Let a quote-only side-chat send start a turn
|
|
28
|
+
- Stop the quote pill from re-appearing after right-clicking inside a side panel
|
|
29
|
+
- Keep the knowledge stats dropdowns in step with their filters, and dismiss their panels on close or Escape
|
|
30
|
+
- Keep a document that holds a fenced code sample inside one block instead of splitting the message
|
|
31
|
+
- Name Claude Sonnet 5's list price as the ratio baseline in price tooltips, so a promo row no longer contradicts itself
|
|
32
|
+
- Pin the fresh-install command to the release tag and check its checksum (#759 - @SparkTheCreater)
|
|
33
|
+
|
|
7
34
|
## [1.5.27] - 2026-12-01
|
|
8
35
|
|
|
9
36
|
### Added
|
|
@@ -75,6 +75,10 @@ module Clacky
|
|
|
75
75
|
"or-gemini-3-pro-image" => "gemini-3-pro-image",
|
|
76
76
|
"or-gemini-3-1-flash-image" => "gemini-3.1-flash-image",
|
|
77
77
|
"or-gemini-3-1-flash-lite-image" => "gemini-3.1-flash-lite-image",
|
|
78
|
+
"or-gpt-image-2-6" => "openai/gpt-image-2.6-sunburst",
|
|
79
|
+
"or-gpt-image-2-6-flare" => "openai/gpt-image-2.6-flare",
|
|
80
|
+
"or-seedream-5-5" => "bytedance-seed/seedream-5-5",
|
|
81
|
+
"or-seedream-5-0-flash" => "bytedance-seed/seedream-5-0-flash",
|
|
78
82
|
"or-gpt-image-2-5" => "openai/gpt-image-2.5-sunburst",
|
|
79
83
|
"or-gpt-image-2-5-flare" => "openai/gpt-image-2.5-flare",
|
|
80
84
|
"or-gpt-image-2" => "openai/gpt-5.4-image-2",
|
|
@@ -85,6 +89,9 @@ module Clacky
|
|
|
85
89
|
"or-veo-3-1-fast" => "veo-3.1-fast-generate-001",
|
|
86
90
|
"or-veo-3-1-lite" => "veo-3.1-lite-generate-001",
|
|
87
91
|
"or-gemini-omni-flash" => "gemini-omni-1.2-flash",
|
|
92
|
+
"or-seedance-2-5" => "bytedance/seedance-2.5",
|
|
93
|
+
"or-seedance-2-5-flash" => "bytedance/seedance-2.5-flash",
|
|
94
|
+
"or-wan-3-0" => "alibaba/wan-3.0",
|
|
88
95
|
# text-to-speech (or-)
|
|
89
96
|
"or-tts-gemini-2-5-flash" => "gemini-2.5-flash-tts",
|
|
90
97
|
"or-tts-gemini-2-5-pro" => "gemini-2.5-pro-tts",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## How to open
|
|
2
2
|
|
|
3
|
-
- **Knowledge Base
|
|
3
|
+
- **Knowledge Base at the bottom of the sidebar's More group**: opens the manager where you organise and import documents.
|
|
4
4
|
- **Pick the Knowledge Base agent in a session**: questions are answered from your documents only.
|
|
5
5
|
- Status: off by default. Enable **Knowledge Base** under **Extensions › All › Official** first; the sidebar entry and the agent card only appear after that. Turning it off removes the entry, the tools and the automatic retrieval together, while the documents you already imported are left untouched.
|
|
6
6
|
|
|
@@ -45,8 +45,8 @@ Uploaded md / txt files may start with a small block that sets the title and sou
|
|
|
45
45
|
|
|
46
46
|
```markdown
|
|
47
47
|
---
|
|
48
|
-
title:
|
|
49
|
-
source:
|
|
48
|
+
title: Roasting
|
|
49
|
+
source: Qinglan Tea Annals, p. 12
|
|
50
50
|
---
|
|
51
51
|
|
|
52
52
|
Body text…
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## 入口
|
|
2
2
|
|
|
3
|
-
-
|
|
3
|
+
- **左侧栏「更多」分组底部的「知识库」**:打开管理界面,整理和导入资料。
|
|
4
4
|
- **会话选择「知识库」agent**:只根据你的资料回答问题。
|
|
5
5
|
- 状态:默认关闭。先在 **扩展 › 全部 › 官方** 里启用「知识库」,左侧栏入口和 agent 卡片才会出现。停用后入口、工具和自动检索一起消失,已导入的资料不受影响。
|
|
6
6
|
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
|
|
46
46
|
```markdown
|
|
47
47
|
---
|
|
48
|
-
title:
|
|
49
|
-
source:
|
|
48
|
+
title: 焙火工艺
|
|
49
|
+
source: 《青岚茶志》第 12 页
|
|
50
50
|
---
|
|
51
51
|
|
|
52
52
|
正文……
|
|
@@ -10,8 +10,8 @@ author: OpenClacky
|
|
|
10
10
|
license: MIT
|
|
11
11
|
enabled_by_default: false
|
|
12
12
|
contributes:
|
|
13
|
-
# Management page: a sidebar entry
|
|
14
|
-
# full-page workspace at #ext/knowledge. Global app chrome — not tied to
|
|
13
|
+
# Management page: a sidebar entry at the bottom of the More group that opens
|
|
14
|
+
# a full-page workspace at #ext/knowledge. Global app chrome — not tied to
|
|
15
15
|
# any agent, so no `attach`.
|
|
16
16
|
api: api/handler.rb
|
|
17
17
|
panels:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require_relative "t2s"
|
|
4
|
+
|
|
3
5
|
module Clacky
|
|
4
6
|
module Knowledge
|
|
5
7
|
# In-memory BM25 over paragraph chunks. Chinese runs are split into
|
|
@@ -17,7 +19,7 @@ module Clacky
|
|
|
17
19
|
CHUNK_CHARS = 600
|
|
18
20
|
|
|
19
21
|
def self.tokenize(text)
|
|
20
|
-
text.
|
|
22
|
+
T2S.convert(text).downcase.scan(/\p{Han}+|[a-z0-9]+/).flat_map do |run|
|
|
21
23
|
next [run] unless run.match?(/\p{Han}/)
|
|
22
24
|
run.length == 1 ? [run] : run.chars.each_cons(2).map(&:join)
|
|
23
25
|
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Clacky
|
|
4
|
+
module Knowledge
|
|
5
|
+
# Folds traditional characters to simplified before tokenizing, so a
|
|
6
|
+
# simplified question can hit a traditional document. The table is a
|
|
7
|
+
# trimmed copy of OpenCC's TSCharacters.txt (Apache-2.0): only one-to-one
|
|
8
|
+
# character pairs, identity mappings dropped.
|
|
9
|
+
#
|
|
10
|
+
# String#tr does the work in C: keys and values line up positionally, so
|
|
11
|
+
# it is a single pass over the text with no per-character block call.
|
|
12
|
+
module T2S
|
|
13
|
+
TABLE_PATH = File.expand_path("t2s.txt", __dir__)
|
|
14
|
+
|
|
15
|
+
# Variant forms, not simplified/traditional pairs, so OpenCC's table has
|
|
16
|
+
# none of them. Hakka sources use both spellings interchangeably; fold
|
|
17
|
+
# the rarer one onto the common one so retrieval matches either way.
|
|
18
|
+
VARIANTS = {
|
|
19
|
+
"畬" => "畲",
|
|
20
|
+
"猺" => "瑶"
|
|
21
|
+
}.freeze
|
|
22
|
+
|
|
23
|
+
def self.convert(text)
|
|
24
|
+
text.to_s.tr(from, to)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.pairs
|
|
28
|
+
@pairs ||= File.readlines(TABLE_PATH, chomp: true, encoding: "UTF-8")
|
|
29
|
+
.each_with_object({}) do |line, acc|
|
|
30
|
+
source, target = line.split("\t", 2)
|
|
31
|
+
acc[source] = target if source && target
|
|
32
|
+
end.merge(VARIANTS).freeze
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def self.from
|
|
36
|
+
@from ||= pairs.keys.join.freeze
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def self.to
|
|
40
|
+
@to ||= pairs.values.join.freeze
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|