Skip to content

feat: recover text-emitted tool calls + changeset-driven auto-release - #2

Merged
wangcansunking merged 2 commits into
masterfrom
worktree-release-automation
Jun 23, 2026
Merged

wangcansunking merged 2 commits into
masterfrom
worktree-release-automation

Conversation

@wangcansunking

Copy link
Copy Markdown
Owner

Overview

This branch lands three related changes.

1. Text-emitted tool-call recovery (ToolCallExtractor)

Some models emit a tool call as inline <function_calls>/<invoke> XML text instead of native tool_calls. The Copilot adapter now parses that text and recovers it into structured tool chunks.

  • Only enabled when the request actually carries tools.
  • Falls back to plain text on incomplete/ambiguous input to avoid false positives.
  • New parser: src/core/tool-xml.ts; wired into src/providers/copilot/adapter.ts stream().
  • Tests: tests/core/tool-xml.test.ts, tests/providers/copilot/adapter.test.ts.

2. Changeset-driven auto-release

  • Changeset-driven auto-version + npm publish on merge to master (.github/workflows/release.yml, scripts/changesets.mjs, .changes/README.md).
  • Build-time version injection: src/version.ts is generated from package.json via scripts/gen-version.mjs (prebuild), removing version drift across package.json + the CLI (src/cli/index.ts now uses APP_VERSION).
  • ci.yml gains a version drift-check; old publish.yml downgraded to a manual workflow_dispatch break-glass.

3. Project conventions doc

  • Adds CLAUDE.md (worktree+PR workflow, commit hygiene).

Testing

Full suite green locally: npm test → 236 passed (47 files), e2e all green, tsc build clean.

🤖 Generated with Claude Code

wangcansunking and others added 2 commits June 23, 2026 15:59
- ToolCallExtractor: some models emit a tool call as inline
  <function_calls>/<invoke> XML text instead of native tool_calls; the
  adapter now recovers those into structured tool chunks (only when the
  request carries tools; falls back to plain text on incomplete/ambiguous
  input to avoid false positives).
- Release automation: changeset-driven auto-version + npm publish on merge
  to master; build-time version injection (src/version.ts from
  package.json) removes version drift across package.json + CLI; old
  publish.yml downgraded to a manual break-glass.
- Adds CLAUDE.md (worktree+PR workflow, commit hygiene).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wangcansunking
wangcansunking merged commit 76b08f6 into master Jun 23, 2026
3 checks passed
@wangcansunking
wangcansunking deleted the worktree-release-automation branch June 23, 2026 08:07
wangcansunking added a commit that referenced this pull request Jun 29, 2026
…plate, config, banner (#15)

* feat(tui): scope+model status, chat-setup confirmation, parity, report template, config, banner

- #6 /status + HUD show each client's scope AND pinned model, not a bare check
- #5 chat setup_claude/codex require scope+model (ask first, never assume)
- #7 add recent_errors + metrics chat tools to match slash commands
- #4 /report body follows the #5 template (Summary/Environment/Repro)
- #3 GitHub heartbeat interval/delay now configurable via AppConfig
- #1 versioned "what's new" banner, shown ~3 launches then suppressed
- #2 README reflects guards, runaway reporting, scope+model, config knobs

Co-Authored-By: Claude <noreply@anthropic.com>

* feat(report): add #5-style issue template; banner = major changes only

- .github/ISSUE_TEMPLATE/bug.yml (Summary/Environment/Repro/Diagnostics/fixes) so manual
  issues match the rich #5 shape; /report still auto-fills the same sections.
- what's-new banner trimmed to major changes only (the freeze fix); minor polish dropped.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant