Fetching metadata from the HF Docker repository...
Jun 19 06:46 chore: HF Space deploy - exclude non-runtime files i3t2y
06:35 docs: add rename-tt-to-noke.md for historical record i3t2y
04:06 ci: HF sync workflow with file exclusions via deploy branch i3t2y
03:56 ci: add GitHub Actions workflow to sync to HuggingFace Spaces i3t2y
02:52 Update roadmap.md 3t2y
02:52 Update architecture.md 3t2y
02:52 Update CHANGELOG.md 3t2y
02:50 Create README.md 3t2y
02:50 Update README.md 3t2y
02:49 Update roadmap.md 3t2y
02:47 Update architecture.md 3t2y
02:45 Update CHANGELOG.md 3t2y
Jun 18 16:42 Delete CHANGELOG.md 3t2y
16:41 Update CHANGELOG.md 3t2y
16:40 Rename MIGRATION.md to docs/MIGRATION.md 3t2y
14:38 feat: noke v0.3.0 — 5-batch architecture upgrade i3t2y
Batch 1 (P0 correctness/security):
- core/errors.py: error sanitization + classify_upstream_error
- core/openai_writer.py: OpenAI SSE streaming from ToolifyParser events
- routes/openai_compat.py: remove DSML, use ToolifyParser + OpenAISSEWriter
- routes/claude_api.py: fix non-streaming branch with ToolifyParser
Batch 2 (P1 robustness):
- core/token_manager.py: error-classified cooldown (auth/rate_limit/signature/transient) + snapshot() + get_by_id()
- core/noke_client.py: httpx.Limits connection pool + sign-key 499 retry + rich payload (references/html_parts)
- core/config.py: EDITION_PRESETS + VERIFY_TLS alias + rate_limit config
Batch 3 (P1 features):
- core/conversation_cache.py: TTL+LRU session cache
- core/ratelimit.py: token bucket rate limiter
- routes/system_api.py: /health + /status endpoints
- core/model_config.py: PRIORITY_ROUTE + resolve_priority_chain()
- Session cache + rate limiting integrated into OpenAI/Claude routes
Batch 4 (P1⚠ pending verification, default off):… Jun 17 16:35 docs: update CHANGELOG, roadmap, architecture + add noke-proxy skill i3t2y
- CHANGELOG.md: add 2026-06-18 P0+P1 fix entry with full details
- roadmap.md: mark completed items, add security hardening section
- architecture.md: reflect verify_tls, retries, /health, dirty flush, sanitized errors
- .agents/skills/noke-proxy/SKILL.md: new skill for noke proxy management 16:05 fix: P0+P1 security and stability fixes i3t2y
P0 安全修复:
- fix: enable TLS verification (was verify=False), configurable via noke.verify_tls
- fix: random initial admin password instead of hardcoded 'admin'
- fix: sanitize error responses, stop leaking upstream body/details to clients
- fix: stop per-request config flush, use dirty flag + 60s periodic flush
P1 稳定性修复:
- fix: add retry with backoff to create_chat_session (2 retries, skip on 401/403)
- fix: bound fallback_clients with LRU+TTL (max 100, 30min expiry)
- feat: add /health endpoint for container probes
- feat: enable dynamic model list via model_config.fetch_models(), fallback to MODEL_MAP
- fix: remove verify=False from model_config.py httpx client 08:08 project rename: tt to noke 3t2y
08:06 Delete doc directory 3t2y
08:04 project rename: tt to noke 3t2y
06:59 project rename: tt to noke i3t2y
May 3 13:54 chore: update CHANGELOG.md with recent fixes and features i3t2y
03:46 feat(openai): 增强 DSML tool prompt(移植 ds2api 三组件) i3t2y
- 添加 OUTPUT_INTEGRITY_GUARD: 防止模型输出乱码/损坏内容
- 添加 THINKING_INJECTION: 追加到末条 user 消息,强制深度推理
- 添加 READ_TOOL_CACHE_GUARD: 防止 read_file 缓存陷阱
- 重写 _build_tool_definitions: 12条规则,WRONG/CORRECT 示例,参数形状说明
- _build_content 注入 guard + thinking + cache_guard(按工具自适应)
- 所有 CDATA 关闭标签用 CC=']++]+ 00:37 chore: move HERMES.md back to root, add to .gitignore (local only) i3t2y
00:27 fix: CHANGELOG.md 修复行号前缀污染问题 i3t2y
根因: execute_code 内 read_file 返回带行号前缀的内容(如 ' 1|text'),
直接拼接时前缀被写入文件, 导致原有日志内容被破坏。
修复: 拼接前用 re.sub(r'^\s*\d+\|', '', content, re.MULTILINE) 剥离前缀。
详见 dsml-upgrade.md 'Read File Line-Number Prefix Pitfall'。 00:36 Delete docs/HERMES.md 3t2y
00:25 Rename HERMES.md to docs/HERMES.md 3t2y
00:14 docs: DSML 升级 CHANGELOG + 技能更新 + 记忆保存 i3t2y
详细记录 DSML XML 工具调用升级 (54d156a) 的完整实现过程:
- 三个补丁 (_build_tool_definitions/_parse_tool_calls/_build_content)
- CDATA 编码陷阱及 CC 拼接解决方案
- 解析器 11/11 单元测试全部通过
- 端到端测试确认上游限制 May 2 22:04 feat: DSML XML tool calling — _build_tool_definitions + parser + rendering i3t2y
Patch 1: _build_tool_definitions() 升级为 DSML XML 模板,含正反例 + 参数说明辅助函数
Patch 2: _parse_tool_calls() 升级为 DSML 解析器(优先 DSML,回退旧 [Calling tool:] 格式)
Patch 3: _build_content() 历史 tool_calls 以 DSML 格式注入 content,帮助模型理解上下文
踩坑: write_file 的 content 参数经过 CDATA 编码,]]> 会截断,必须用 CC 拼接绕过 10:01 docs: tools 支持实现记录 + 测试结果 + 踩坑总结 i3t2y
09:41 fix: 加强 tools system prompt — 强制模型使用工具 i3t2y
09:37 feat: 支持 OpenAI tools 参数 — 代理层工具调用 i3t2y
核心改动:
- ChatCompletionRequest 新增 tools: list[Tool] | None 字段
- _build_content() 把 tools 定义转成自然语言拼进 system prompt
- 新增 _parse_tool_calls(): 用括号计数法解析 [Calling tool: name(args)] 格式
- 新增 _strip_tool_calls_from_text(): 从回复中移除工具调用行
- stream_handler: 有 tools 时缓冲全部内容,解析后返回 OpenAI tool_calls 格式
- 非 stream: 解析 tool_calls 后返回带 tool_calls 字段的响应
设计:
- 上游模型收到的是纯文本(tools 描述 + 指令),不依赖上游原生 tool calling
- 模型输出 [Calling tool: name(json_args)] 格式,代理解析为 OpenAI tool_calls
- 支持多个 tool calls、嵌套 JSON 参数
- 无 tools 时行为不变(逐 chunk 流式转发) 09:08 docs: CHANGELOG - content=null tool_calls fix 详细记录 i3t2y
08:59 fix: allow content=null in assistant messages with tool_calls i3t2y
Hermes (and other OpenAI-compatible clients) send assistant messages
with content=null when the model makes tool calls. The old ChatMessage
model required content to be a string, causing Pydantic 422 errors.
Changes:
- ChatMessage.content: str -> str | None = None
- Add ChatMessage.tool_calls and tool_call_id fields
- _build_content: handle null content, include tool_calls descriptions
and tool results in the flattened content string
- Fix potential None return in single-message shortcut 07:16 docs: noxke HF 账号迁移 + token 获取流程 + 架构文档全面更新 i3t2y
- CHANGELOG.md: 新增 2026-05-02 条目
- architecture.md: 全面重写(tt→noke、模块详解、签名算法、部署指南)
- roadmap.md: 更新状态(已完成项、优先级排序) 05:21 Update README.md 3t2y
05:13 project rename: tt to noke i3t2y