Skip to content

Fix source-linked upgrades and MCP array schema#907

Open
ArshyaAI wants to merge 1 commit into
garrytan:masterfrom
ArshyaAI:fix/source-linked-upgrade-schema
Open

Fix source-linked upgrades and MCP array schema#907
ArshyaAI wants to merge 1 commit into
garrytan:masterfrom
ArshyaAI:fix/source-linked-upgrade-schema

Conversation

@ArshyaAI
Copy link
Copy Markdown

@ArshyaAI ArshyaAI commented May 12, 2026

Summary

  • replace source-linked upgrade git pull --ff-only with explicit clean-worktree fetch/merge handling for tracked, no-tracking, fast-forward, and clean custom-branch merge cases
  • keep git/bun subprocess calls on execFileSync array args and surface the actual auto-upgrade error before manual recovery guidance
  • add the missing items: { type: 'string' } schema for extract_facts.entity_hints so OpenAI-compatible function schema validation accepts the MCP tool definition

Tests

  • bun install --frozen-lockfile
  • bun run typecheck
  • bun test test/mcp-tool-defs.test.ts test/upgrade.test.ts
  • HOME=/private/tmp/gbrain-test-home bun run test (repo tests write to ~/.gbrain, so HOME is redirected to writable temp space)

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

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