Commit Graph

1751 Commits

Author SHA1 Message Date
Hunter Bown 14d14f56de feat(whaleflow): add teacher candidate artifacts (#2839) 2026-06-05 23:08:10 -07:00
Hunter Bown d784f1e030 feat(compaction): add dormant hard compaction planner (#2838) 2026-06-05 23:03:29 -07:00
Hunter Bown 6bb564e49c fix(whaleflow): reject unknown workflow references (#2837) 2026-06-05 22:58:23 -07:00
Hunter Bown 56fa055863 fix(tui): count workspace MCP servers in status surfaces
fix(tui): count workspace MCP servers in status surfaces
2026-06-05 22:50:12 -07:00
Hunter B 6269cb91f1 fix(cli): include TLS skip flag in runtime option tests 2026-06-05 22:42:48 -07:00
Hunter Bown 190e9f35e4 feat(config): add provider TLS skip verify
Harvests provider-scoped TLS skip-verify from #1893 by @wavezhang. Disabled by default, active-provider-only, doctor-reported, and keeps SSL_CERT_FILE as the preferred custom CA path.
2026-06-05 22:37:14 -07:00
Hunter Bown 85b5ca5560 feat(whaleflow): add memo telemetry counters (#2833) 2026-06-05 22:23:49 -07:00
Hunter Bown 50b773f1de feat(vscode): auto-refresh read-only agent view (#2832) 2026-06-05 22:21:06 -07:00
Hunter Bown e5974aa850 feat(whaleflow): run dogfood workflow with mock executor (#2831) 2026-06-05 22:17:02 -07:00
Hunter Bown 5044a29db8 feat(whaleflow): add model role policy registry (#2830) 2026-06-05 22:13:24 -07:00
Hunter Bown 79c0bd4058 feat(whaleflow): replay recorded workflow outputs (#2829) 2026-06-05 22:08:16 -07:00
Hunter Bown 293643e279 feat(vscode): show runtime restore points (#2828) 2026-06-05 22:03:51 -07:00
Hunter Bown d10634ca34 feat(whaleflow): add usage telemetry to mock results (#2827) 2026-06-05 21:56:25 -07:00
Hunter Bown 787383591a feat(tui): show live background shell output (#2826) 2026-06-05 21:51:40 -07:00
Hunter Bown 1bacaf763e feat(runtime-api): expose thread branch metadata
Add read-only workspace and branch metadata to runtime thread summaries so VS Code Agent View can show when a thread lane is on another branch. Non-git workspaces return null branch metadata instead of failing.

Refs #2580, #2721.
Credits the existing branch-visibility trail from #1217/#2341 in the changelog.
2026-06-05 21:39:46 -07:00
Hunter Bown 38a0d551ca feat(whaleflow): add Starlark compile gate
Add a fail-closed Starlark authoring layer that compiles workflow files into WorkflowSpec without exposing runtime execution. Include ctx.* repair aliases, unsupported-construct rejection, and rlm_cache_change / issue_fix_tournament examples.

Refs #2670.
Preserves WhaleFlow direction credit for @AdityaVG13 in changelogs and PR notes.
2026-06-05 21:35:05 -07:00
Hunter Bown cfbaba722f feat(whaleflow): add mock executor skeleton
Add a crate-local mock executor over WorkflowSpec that records leaf, branch, and control-node results for Sequence, BranchSet, Leaf, Reduce, TeacherReview, LoopUntil, Cond, and Expand. Add reducer scaffolding for BranchTournament and ParetoFrontier, plus #2669 acceptance-style tests, without exposing workflow_run, spawning agents, or applying worktrees.

Refs #2669.
Harvests narrow WhaleFlow executor intent from #2482/#2486.

Co-authored-by: AdityaVG13 <44177453+AdityaVG13@users.noreply.github.com>
2026-06-05 21:24:27 -07:00
Hunter Bown bb88358122 feat(runtime-api): add read-only snapshot listing
Harvest the safe GUI-facing snapshot list slice from PR #2808 without exposing restore, retry, patch-undo, or other runtime mutation endpoints. The endpoint is protected by the existing runtime API token middleware and mirrors the /restore list bound.

Refs #2808, #2580.

Co-authored-by: gaord <9567937+gaord@users.noreply.github.com>
2026-06-05 21:11:33 -07:00
Hunter Bown d1f3c65195 feat(whaleflow): add typed workflow spec IR
Add the explicit WorkflowSpec/WorkflowNode metadata surface requested for the v0.9 WhaleFlow IR, including budget, permission, model, and promotion policy records plus serde roundtrip coverage. Runtime execution, replay, and worktree application remain out of scope.

Refs #2668, #2482, #2486.

Co-authored-by: AdityaVG13 <44177453+AdityaVG13@users.noreply.github.com>
2026-06-05 20:55:24 -07:00
Hunter Bown 5d491bc683 feat(config): harvest provider metadata registry
Add a metadata-only provider registry foundation from #2479. The registry exposes canonical lookup, alias-aware resolution, defaults, config table keys, and API-key env candidates without changing runtime routing or activating fallback providers.

Co-authored-by: sximelon <62371427+sximelon@users.noreply.github.com>
2026-06-05 20:40:28 -07:00
Hunter Bown d868a0b96a feat(prompts): harvest static composer override
Refine the embedder static prompt composer direction from #2786 so it only owns the byte-stable base/personality prompt segment while runtime metadata, Context Management, and the compaction relay stay under CodeWhale prompt assembly.

Co-authored-by: h3c-hexin <13790929+h3c-hexin@users.noreply.github.com>
2026-06-05 20:27:31 -07:00
Hunter Bown a2cc6bd6f6 feat(whaleflow): add trace store schema migration
Adds a state-store v2 schema migration for WhaleFlow workflow, branch, leaf, control-node, and teacher-candidate trace tables. Keeps workflow execution/replay deferred and preserves @AdityaVG13 WhaleFlow draft credit in the changelog.
2026-06-05 19:50:59 -07:00
Hunter Bown f8b26b492e feat(whaleflow): add serializable run result records
Adds serializable WhaleFlow branch, leaf, and control-node result records plus #2668 roundtrip/default-field coverage. Keeps runtime workflow execution deferred and preserves @AdityaVG13 WhaleFlow draft credit in the changelog.
2026-06-05 19:48:19 -07:00
Hunter B ab299865dd feat(vscode): add read-only agent view preview 2026-06-05 19:35:08 -07:00
Hunter B 7d8308a7a2 docs: credit VS Code plugin request trail
Adds #1584 and @nasus9527 to the v0.9 VS Code extension credit trail after the Phase 0 extension scaffold landed.
2026-06-05 19:16:21 -07:00
Hunter B bed43e79b5 feat(vscode): add local runtime extension scaffold
Harvests the safe Phase 0 VS Code lane from PR #1022 and the Agent View request in #2580 while keeping chat webviews, inline edits, Agent View, and retry/undo runtime endpoints out of this slice.

Credits @lbcheng888 for the earlier extension scaffold and @AiurArtanis plus the v0.9 GUI/VS Code reporters for the request trail.
2026-06-05 19:13:37 -07:00
Hunter B 38fd4b1e84 feat(whaleflow): add typed workflow foundation
Harvested from PR #2482 by @AdityaVG13, preserving the typed WhaleFlow config and deterministic planner direction without exposing the runtime workflow_run tool yet.

Co-authored-by: AdityaVG13 <44177453+AdityaVG13@users.noreply.github.com>
2026-06-05 19:06:54 -07:00
Hunter B 19f5c7aa6c fix(tui): keep agent progress visible in sidebar
Prioritize running progress detail before branch and duration metadata so narrow sidebars keep the active step visible while still showing branch context at wider widths.
2026-06-05 10:23:06 -07:00
Hunter B 7fc074cc36 feat(client): harvest deterministic response cache
Harvested from PR #2501 by @HUQIANTAO.

Cache only explicit deterministic non-streaming tool-free requests, key entries by provider, route, account fingerprint, and final wire body, and zero usage on hits so local spend counters are not double-counted.

Co-authored-by: HUQIANTAO <58421104+HUQIANTAO@users.noreply.github.com>
2026-06-05 10:18:12 -07:00
Hunter Bown f0827627a6 Merge pull request #2804 from Hmbown/codex/fix-subagent-branch-status
fix(tui): surface subagent branch status
2026-06-05 10:09:11 -07:00
Hunter B 805d748a78 fix(tui): surface subagent branch status 2026-06-05 10:07:23 -07:00
Hunter B 6b7a05ab1c Harvest pausable custom command MVP
Harvested from PR #2732 by @aboimpinto.

Parse pausable frontmatter for custom slash commands, add a narrow engine pause gate before tool execution, and preserve paused command state across separate messages until explicit resume, cancel, terminal completion, or a new command.

Also centralize strict resume-message detection with negative coverage for deferred or negated phrases, and keep rollback/stash/worktree mutation behavior out of this slice.

Co-authored-by: aboimpinto <1231687+aboimpinto@users.noreply.github.com>
2026-06-05 10:04:31 -07:00
idling11 57e4a7b71a feat(hf): harvest Hugging Face MCP helpers
Add /hf and /huggingface command routing for Hugging Face MCP setup/status plus a concepts explainer for provider, MCP, and Hub workflows.

Document the settings-generated Hugging Face MCP configuration path and keep the slice offline: no Hub search command, no direct Hugging Face HTTP requests, and no custom URL encoding.

Refs #2709

Harvested from PR #2782 by @idling11
2026-06-05 09:35:19 -07:00
LeoAlex0 1f9f860a3e feat(cache): project mode prompts per request
Keep the stable system prompt mode-agnostic and project mode, approval policy, and tool taxonomy as request-time runtime metadata. This avoids mutating stored history while preserving provider chat-template compatibility.

Harvested from PR #2687 with stewardship turn-metadata cache tests preserved. The replan replay guard remains <= 2, and cache inspect now asserts tool-result budget metadata for both deduplicated=false and deduplicated=true.

(cherry picked from commit 77943304e637545b441ac135f06977065c4b350f)
2026-06-05 09:23:48 -07:00
xyuai be37dbd34e feat(config): add Xiaomi MiMo token plan mode
Harvested from PR #2627 by @xyuai.

Refs #2621 reported by @springeye.
2026-06-05 09:04:45 -07:00
hongqitai 5926bf38a6 feat(tui): add Hugging Face env aliases
Harvested from PR #2780 by @hongqitai.
2026-06-05 08:44:29 -07:00
Hunter B f9d7ae7e20 test(tui): satisfy all-targets clippy map_or lint 2026-06-05 08:31:33 -07:00
yusufgurdogan af8ff03618 feat(web_search): add Sofya search provider
Harvested from PR #2790 by @yusufgurdogan.
2026-06-05 08:29:02 -07:00
Hunter B 4a7731f69d docs(changelog): note sidebar command harvest
Refs #2766 and #2788.
2026-06-05 08:22:25 -07:00
aboimpinto abe366dead feat(tui): add sidebar slash command
Harvested from PR #2788 by @aboimpinto.

Refs #2766.
2026-06-05 08:22:21 -07:00
Matt Van Horn 0b0d815fab fix(tui): enrich auth errors with request context
Harvested from PR #2792 by @mvanhorn.

Reported by @Hmbown in #2665.
2026-06-05 08:16:16 -07:00
Hunter B 5d9f93af4d fix(tui): expose external URL opener on unsupported targets
Harvested from PR #2789 by @ci4ic4.

Found while packaging CodeWhale 0.8.53 for pkgsrc on NetBSD.

Co-authored-by: ci4ic4 <6495973+ci4ic4@users.noreply.github.com>
2026-06-05 08:07:01 -07:00
Hunter B 2e49b14655 test(config): isolate provider chain runtime resolution 2026-06-05 08:02:41 -07:00
Hunter B 93d08a8f61 feat(config): add dormant provider fallback chain
Harvested from PR #2777 by @idling11.

Reported by @hsdbeebou in #2574.

Co-authored-by: idling11 <8055620+idling11@users.noreply.github.com>
2026-06-04 21:32:25 -07:00
Hunter B e5fe46db4f feat(tui): expose stream chunk timeout config
Harvested from PR #2507 by @cyq1017.

Reported by @mserrano11 in #2365.

Co-authored-by: cyq1017 <61975706+cyq1017@users.noreply.github.com>
2026-06-04 21:22:15 -07:00
Hunter B cba5537b84 fix(config): keep path suffix out of project overrides 2026-06-04 21:03:41 -07:00
Hunter B 8869f6a722 fix(mcp): #2744 preserve underscored names in displays
Follow up the #2744 MCP routing harvest by reusing the registered-server parser in the runtime API tool listing path and by making approval summaries show the full MCP target route instead of a guessed first underscore segment.

This keeps tool-call routing, runtime metadata, and approval copy aligned for servers such as my_db while avoiding an impossible server-only guess in approval cards that do not have the live MCP registry.

Refs #2744

Verification: cargo fmt --all -- --check; git diff --check; ./scripts/release/check-versions.sh; cargo test -p codewhale-tui --bin codewhale-tui --locked underscored -- --nocapture; cargo test -p codewhale-tui --bin codewhale-tui --locked mcp_pool_call_tool -- --nocapture; cargo clippy -p codewhale-tui --bin codewhale-tui --locked -- -D warnings.

Co-authored-by: cyq1017 <61975706+cyq1017@users.noreply.github.com>

Co-authored-by: puneetdixit200 <236133619+puneetdixit200@users.noreply.github.com>
2026-06-04 20:55:53 -07:00
Hunter B 912d6aed2c fix(tui): #2742 avoid static Ollama model suggestions
Harvested from PR #2742 by @reidliu41

Ollama model IDs are local passthrough tags, so /model static completions should not suggest hosted DeepSeek API models or entrench the stale default local tag. Keep the picker on auto/current/saved local models while the existing /models path fetches installed tags from the configured endpoint.

Verification: cargo fmt --all -- --check; git diff --check; ./scripts/release/check-versions.sh; cargo test -p codewhale-tui --bin codewhale-tui --locked ollama -- --nocapture; cargo clippy -p codewhale-tui --bin codewhale-tui --locked -- -D warnings.

Co-authored-by: reidliu41 <61492567+reidliu41@users.noreply.github.com>
2026-06-04 20:49:54 -07:00
HUQIANTAO b527bd507a feat(init): harvest LLM-guided AGENTS.md init
Replace the static AGENTS.md template with a context-gathering /init flow that delegates customized project-guide generation to the agent. Keep the successor PR polish for credential-safe git remotes, devDependency framework detection, workspace Cargo context, and dead untracked-counter cleanup.

This harvest also finishes the maintainer review items by preserving SSH remotes, handling nested git workspaces, sorting collected context deterministically, and detecting SvelteKit via @sveltejs/kit.

Harvested from PR #2759 by @HUQIANTAO

Includes original /init implementation from PR #2745 by @punkcanyang

Co-authored-by: HUQIANTAO <58421104+HUQIANTAO@users.noreply.github.com>

Co-authored-by: Punkcan Yang <36871858+punkcanyang@users.noreply.github.com>
2026-06-04 20:39:48 -07:00
cyq1017 c36e4d7d20 fix(mcp): harvest trusted workspace MCP config
Merge global MCP config with trusted workspace .codewhale/mcp.json files so project MCP servers appear in TUI, CLI, doctor, and runtime API flows. Project stdio servers default cwd to the workspace, project cwd escapes are rejected, and project MCP is ignored until workspace trust is recorded in user-owned config.

Fixes #2749

Reported by @yekern

Harvested from PR #2751 by @cyq1017
2026-06-04 20:31:26 -07:00