| @@ -6,7 +6,7 @@ author: |
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-28T10:19:47.000Z | 8 | createdAt: 2026-11-28T10:19:47.000Z |
| 9 | -updatedAt: 2026-11-28T11:01:25.000Z | 9 | +updatedAt: 2026-11-28T11:47:23.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - kind::chore | 11 | - kind::chore |
| 12 | milestone: v2.2.0 | 12 | milestone: v2.2.0 |
| @@ -57,20 +57,24 @@ tasks: |
| 57 | closedAt: 2026-11-28T11:01:25.000Z | 57 | closedAt: 2026-11-28T11:01:25.000Z |
| 58 | - id: 5 | 58 | - id: 5 |
| 59 | title: "internal/tui" | 59 | title: "internal/tui" |
| 60 | - state: open | 60 | + state: closed |
| 61 | priority: medium | 61 | priority: medium |
| 62 | author: | 62 | author: |
| 63 | name: k33g | 63 | name: k33g |
| 64 | email: ph.charriere@gmail.com | 64 | email: ph.charriere@gmail.com |
| 65 | createdAt: 2026-11-28T10:19:47.000Z | 65 | createdAt: 2026-11-28T10:19:47.000Z |
| | 66 | + updatedAt: 2026-11-28T11:11:31.000Z |
| | 67 | + closedAt: 2026-11-28T11:11:31.000Z |
| 66 | - id: 6 | 68 | - id: 6 |
| 67 | title: "internal/acp, internal/agent, internal/tools, internal/mcp and the remaining internal packages" | 69 | title: "internal/acp, internal/agent, internal/tools, internal/mcp and the remaining internal packages" |
| 68 | - state: open | 70 | + state: closed |
| 69 | priority: medium | 71 | priority: medium |
| 70 | author: | 72 | author: |
| 71 | name: k33g | 73 | name: k33g |
| 72 | email: ph.charriere@gmail.com | 74 | email: ph.charriere@gmail.com |
| 73 | createdAt: 2026-11-28T10:19:47.000Z | 75 | createdAt: 2026-11-28T10:19:47.000Z |
| | 76 | + updatedAt: 2026-11-28T11:47:23.000Z |
| | 77 | + closedAt: 2026-11-28T11:47:23.000Z |
| 74 | - id: 7 | 78 | - id: 7 |
| 75 | title: "demo.acp.sdk and the demos (duplicated hook code in decision-dnd / decision-chat-golang, …)" | 79 | title: "demo.acp.sdk and the demos (duplicated hook code in decision-dnd / decision-chat-golang, …)" |
| 76 | state: open | 80 | state: open |
| @@ -108,3 +112,33 @@ comments: |
| 108 | createdAt: 2026-11-28T11:01:25.000Z | 112 | createdAt: 2026-11-28T11:01:25.000Z |
| 109 | body: | | 113 | body: | |
| 110 | internal/agentinit (mm init): 15 → 0 smells (total 157 → 142). Flow.Set / Flow.Step as tables (setters, stepBuilders, one method per question); decideSampling with samplingValues; Render as one writer per section; Main → prepareFlow, answerFlow, reportFailure; WriteFile → saveAgentFile, checkWritten; the line wizard's ask → showDetails, readAnswer; flow, wizard, facts, render and decide split by theme (flow_steps, flow_answers, flow_server, args, linewizard, write, base, models, kronkfacts, render_server, render_header, sampling). Checked: go test ./... green; the old and new binaries write byte-identical files on 13 mm init --yes combinations (11 providers / usages / machines / layouts, 2 errors) against the host's llama-server, and the same files, messages, exit codes and .mm/skills tree on disk (a gpt-oss case first differed by timing — the model was loading on the server — and was identical when run again, twice). | 114 | internal/agentinit (mm init): 15 → 0 smells (total 157 → 142). Flow.Set / Flow.Step as tables (setters, stepBuilders, one method per question); decideSampling with samplingValues; Render as one writer per section; Main → prepareFlow, answerFlow, reportFailure; WriteFile → saveAgentFile, checkWritten; the line wizard's ask → showDetails, readAnswer; flow, wizard, facts, render and decide split by theme (flow_steps, flow_answers, flow_server, args, linewizard, write, base, models, kronkfacts, render_server, render_header, sampling). Checked: go test ./... green; the old and new binaries write byte-identical files on 13 mm init --yes combinations (11 providers / usages / machines / layouts, 2 errors) against the host's llama-server, and the same files, messages, exit codes and .mm/skills tree on disk (a gpt-oss case first differed by timing — the model was loading on the server — and was identical when run again, twice). |
| | 115 | + - id: 5 |
| | 116 | + author: |
| | 117 | + name: k33g |
| | 118 | + email: ph.charriere@gmail.com |
| | 119 | + createdAt: 2026-11-28T11:11:31.000Z |
| | 120 | + body: | |
| | 121 | + internal/tui 17 → 0 smells (commit dddb66d). Markdown renderer split into steps and themed files, init window keys and drawing split, key handlers as an ordered table. Checked by temporary golden tests (Markdown 18 texts × 5 widths byte-identical; init window 37 keys × 3 sizes screen-identical) and live with LFM3-1.7B in the window: Markdown answer, ask_user choice + other + decline, / picker. |
| | 122 | + - id: 6 |
| | 123 | + author: |
| | 124 | + name: k33g |
| | 125 | + email: ph.charriere@gmail.com |
| | 126 | + createdAt: 2026-11-28T11:29:50.000Z |
| | 127 | + body: | |
| | 128 | + Task 6 in progress — done so far, one commit each, behaviour checked old vs new binary or by temporary golden tests: |
| | 129 | + - internal/agent 8 → 0 (7817163): the REPL as a repl type; agent.Setup for Run/RunPrompt |
| | 130 | + - internal/acp 9 → 0 (dcb1fec): Prompt as an acpTurn; acp.Run takes agent.Setup |
| | 131 | + - internal/mcp 7 → 0 (7944710): the wrapped tool as an mcpCall value |
| | 132 | + - internal/tools 7 → 0 (9c248b3) |
| | 133 | + - internal/compact 7 → 0 (6bd1c61), internal/elicit 7 → 0 (8b276c0), internal/fileedit 6 → 0 (5a0f4b1) |
| | 134 | + Remaining in internal/: skillcreate 5, acpcreate 4, decide 3, hooks 3, serverstart 3, structured 3, command 3, sbxinit 2, docsearch 2, and 1 each in agentsmd, ask, detector, dockerinit, lsp, rzbstart, saved, store. |
| | 135 | + Seen on the way, not changed: the order of the MCP tools in the banner varies from run to run (map iteration in mcp.WrapToolsWithNames). |
| | 136 | + - id: 7 |
| | 137 | + author: |
| | 138 | + name: k33g |
| | 139 | + email: ph.charriere@gmail.com |
| | 140 | + createdAt: 2026-11-28T11:47:23.000Z |
| | 141 | + body: | |
| | 142 | + Task 6 done: internal/ has no smell left (was 116 smells in this task's packages at the start of the zone). One commit per package or group: agent 7817163, acp dcb1fec, mcp 7944710, tools 9c248b3, compact 6bd1c61, elicit 8b276c0, fileedit 5a0f4b1, skillcreate 96ba0ec, acpcreate ac0bb79, decide 5a47e54, hooks f0939b6, serverstart 75a8140, structured b315334, command 84d5b8e, agentsmd/ask/detector 3d09337, dockerinit/docsearch f062af9, lsp/rzbstart/saved/sbxinit/store d5a92e9; import groups f5f2d92. |
| | 143 | + Behaviour checked for each: the old and new binaries compared on scripted runs (fake OpenAI server, fake MCP server, A2A, ACP over stdio, real node hooks, the d1-3B decider live, the CLI subcommands), or temporary golden tests old vs new for the pure functions; go test ./... green. |
| | 144 | + API changes, internal only: agent.Run/RunPrompt and acp.Run take an agent.Setup instead of six parameters. |