cflmy and Cursor
c7c329341b
feat(workbench): live selection smoke, F02 agent e2e, DocumentView CLI
...
Hoist llm.ask prompt binding to avoid elevated `p`; prefer reasoning_content
when content is empty; point live/tests at in-tree MARQDO_EXT; add USTC live
gates and mock agent.step selection+resume evidence; view document --out for
read-only browser embed checks. Design stays Partial (not Verified).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-25 23:05:28 +08:00
cflmy and Cursor
090b026547
test(workbench): harden F-matrix evidence and demote Verified claim
...
Add dual-endpoint LLM isolation, usage revision replace, cancel/F08/F11
asserts, and mark the design status Partial until remaining F gaps close.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-25 11:01:02 +08:00
cflmy and Cursor
03396afd02
feat(workbench): land M00–M06 runtime contracts and read-only view
...
Add capabilities/selection/usage/DocumentView/locator/RunContext with
honest probes, LLM messages+cancel, sse-live cancel bridge, and CI
workbench_contracts gate; record design evidence for verified slices.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-25 10:55:08 +08:00
cflmy
fb135ae2f8
refactor(plugins): 抽出 marqdo-plugin-sdk — ABI 前言从 5 份变 1 份
...
新增工作区成员 crates/marqdo-plugin-sdk:ABI 类型、HOST_* 静态回调、
host_strdup/set_out/set_err/parse_args/reply/host_query_json(_with)/
take_host_string/init_plugin,以及生成四个 #[no_mangle] 导出的
marqdo_plugin! 宏。ABI 常量、符号名、结构体布局一律未变。
5 个插件改为依赖 SDK + 一行宏调用:
agent 1237 → 929 (-308)
quantum 1045 → 835 (-210)
linalg 688 → 524 (-164)
llm 405 → 278 (-127)
demo 170 → 73 (-97)
SDK 新增 232 行 → 净减约 674 行
迁移中发现并修正三次"编译通过但语义已变":
1. 注册项抽取漏 11 项 —— 正则 [a-z_0-9]+ 匹配不到 mcp_server::agent_mcp_serve、
sandbox::* 这类路径限定函数名;改为允许 :: 后重抽。
已用脚本逐项比对 (名称, 参数串, 函数) 三元组:agent 63/63、quantum 41/41、
linalg 31/31、llm 2/2、demo 2/2,全部 0 差异。
2. mcp_client 被误判死模块(删 327 行后才发现 agent_mcp_client 正注册它)→ 恢复。
3. 量子插件两个"未使用"函数删除时连带吃掉 density_from_amps/flat_to_nested
→ 恢复原文件并改为 #[allow(dead_code)]。
验证:cargo build --release(含 5 个插件)零警告;
cargo test --release 609 passed / 0 failed;
量子金样实跑 p00-ok / p11-ok / ping-ok。
文档:doc/design/change-plugin-sdk.md
2026-10-22 15:49:13 +08:00
cflmy and Cursor
1908bf1a53
fix(ai): soft LLM transport errors and strip ext/ai json glue
...
Host/plugin HTTP failures return structured finish|status=error instead of
aborting the VM; agent/llm/openai/智能体 result maps use GFM tables and
table.put. SKILL gains positive copy-paste examples so agents stop mirroring
legacy json.set chains.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-16 14:27:45 +08:00
cflmy and Cursor
f1e82ce4e5
feat(llm): optional plugins/llm Transport ABI for chat completions
...
OpenAI transport prefers llm_chat_completions when the native plugin is
resolvable, and falls back to lib/net HTTP/SSE so CI stays green without the .so.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 20:26:55 +08:00