Commit Graph
71 Commits
Author SHA1 Message Date
lukaszraczylo 9f0a7b776e test(e2e): init-apply-diff cycle + show + detect through real binary 2026-05-23 03:36:11 +01:00
lukaszraczylo 6e7f2a98fd docs: rewrite README with install + commands + canonical layout + conflict resolution 2026-05-23 03:35:13 +01:00
lukaszraczylo 75d72f26ac feat(cli): wire all subcommands (apply, diff, show, init, profile, rollback, adapter) 2026-05-23 03:33:42 +01:00
lukaszraczylo 498cdb061d feat: add internal/ui prompts + init subcommand
- internal/ui/prompts.go: MultiSelect with huh TUI + WithNonInteractive for tests
- internal/cli/init.go: NewInit cobra command with --from/--no-prompt flags
- internal/cli/init_test.go: TestInitImportWritesCanonical
- internal/cli/root.go: add resolveRoot helper (shared by profile/rollback/show/init)
- go.mod: add github.com/charmbracelet/huh v1.0.0 as direct dep
2026-05-23 03:32:40 +01:00
lukaszraczylo 68035b378c feat(cli): add apply subcommand 2026-05-23 03:32:21 +01:00
lukaszraczylo 85fbbafb71 feat(cli): wire adapters into registry and add detect subcommand 2026-05-23 03:25:50 +01:00
lukaszraczylo 63bd976f4b fix(adapters): ground native schemas, merge-not-replace, add goose/cagent/zed
- common/mcp.go: MCPStyle enum + BuildMCPMapStyled for claude/crush/opencode/zed dialects
- common/jsonmerge.go: MergeJSONKeys (JSON-first, JSONC fallback) preserves user keys;
  fix: try plain json.Unmarshal before StripJSONComments to avoid mangling URLs with //
- common/yamlmerge.go: MergeYAMLKeys for YAML configs (goose)
- common/blocks.go: add ProvidersAsMap for opencode map-shaped provider key
- claudecode: merge settings.json (preserves hooks/permissions/env); MCPClaudeStyle (no type field)
- crush: fix mcp key (was mcpServers); MCPCrushStyle entries include type field; merge crush.json; fix import key mcp
- kilo: drop providers key (kilo has none); MCPOpencodeStyle (local/remote); merge kilo.json
- opencode: fix provider (singular map) + model (not default_model); MCPOpencodeStyle; merge jsonc; fix import key mcp
- goose: new adapter — YAML merge, extensions map, splitProviderModel, import reconstructs MCP from extensions
- cagent: new adapter — renders starter default.yaml, import returns empty
- zed: new adapter — merge settings.json, context_servers (MCPZedStyle) + agent.default_model
- docs: append Grounded harness schemas section to design spec
2026-05-23 03:23:02 +01:00
lukaszraczylo a18cb1a4b7 refactor(adapters): extract common helpers + fix kilo native schema 2026-05-23 03:06:35 +01:00
lukaszraczylo 6dafb43c43 feat(opencode): adapter with opencode.jsonc render + AGENTS.md 2026-05-23 02:59:53 +01:00
lukaszraczylo 7013bada1c feat(kilo): adapter with kilo.json render + agent symlink 2026-05-23 02:59:50 +01:00
lukaszraczylo fe9206716e feat(claudecode): adapter with skills+agents symlinks, CLAUDE.md, settings.json + Import 2026-05-23 02:55:34 +01:00
lukaszraczylo 59575792be feat(apply): render+merge+write pipeline with state snapshots and .rej conflicts 2026-05-23 02:52:08 +01:00
lukaszraczylo 0e77393400 feat(merge): three-way merge via git merge-file with conflict detection 2026-05-23 02:48:36 +01:00
lukaszraczylo 95962bdf9a feat(adapter): registry with detect filtering and duplicate guard 2026-05-23 02:48:31 +01:00
lukaszraczylo 6ab8d149e1 feat(adapter): define Adapter interface and FileSet 2026-05-23 02:45:50 +01:00
lukaszraczylo e4719b78a0 feat(canonical): load YAML/markdown into Bundle 2026-05-23 02:43:56 +01:00
lukaszraczylo eefff1baac chore: go mod tidy 2026-05-23 02:41:24 +01:00
lukaszraczylo 45c994136f feat(canonical): introduce core domain types 2026-05-23 02:41:06 +01:00
lukaszraczylo 2977f8e679 feat: bootstrap module and cobra root command 2026-05-23 02:39:04 +01:00
lukaszraczylo 265263e0a9 plan: harness-sync implementation plan
26 bite-sized tasks across 7 phases (bootstrap, adapter framework,
render/git/merge, apply pipeline, per-harness adapters, CLI commands,
integration test + polish). TDD throughout, frequent commits, exact
code in every step. Adapter-specific schema steps include inspection
commands and reference actual harness configs on this machine.
2026-05-23 02:36:40 +01:00
lukaszraczylo 1b4b4b2005 spec: harness-sync v1 design
Canonical config at ~/.config/harness-sync/ (git repo) propagates skills,
agents, MCP, LLM endpoints (via profiles), and global instructions into
each detected harness. Hybrid sync: symlinks where shapes match, rendered
files where they differ. Plugin-style adapters; conflict resolution via
git merge-file three-way merge tracked in state/.
2026-05-23 02:28:14 +01:00