Skip to content

Support configurable adapter names#101

Merged
dbpolito merged 1 commit into
mainfrom
feature/configurable-adapter-names
May 21, 2026
Merged

Support configurable adapter names#101
dbpolito merged 1 commit into
mainfrom
feature/configurable-adapter-names

Conversation

@dbpolito
Copy link
Copy Markdown
Contributor

@dbpolito dbpolito commented May 21, 2026

Ticket

SKIPPED

Description

Allows Kompass consumers to expose bundled tools, commands, and agents under configured adapter-facing names while keeping the adapter configuration surface clear and consistent.

Checklist

Adapter naming

  • Confirm that configured tool aliases are used in rendered command templates
  • Confirm that configured command aliases are registered and referenced by navigator flows
  • Confirm that configured agent aliases are registered in OpenCode

Configuration surface

  • Check that schema and docs describe command, agent, and tool name overrides
  • Verify that compiled OpenCode config preserves configured tool names

Validation

  • Verify that bun run compile succeeds
  • Verify that bun run typecheck succeeds
  • Verify that bun run test succeeds

- add command, agent, and tool name resolution to core config rendering
- propagate resolved names through command expansion and agent prompts
- update OpenCode adapter compilation to register configured aliases
- document configurable names and cover aliases with adapter tests
@dbpolito dbpolito self-assigned this May 21, 2026
Copy link
Copy Markdown

@kompassdev kompassdev Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

★★★★☆

This PR cleanly extends the tool alias feature to commands and agents, replacing the fragile prefixKompassToolReferences regex approach with proper template-time name resolution. The implementation is consistent across config types, schema, templates, adapter, compile script, and docs. Tests cover the alias behavior end-to-end.

One gap: no collision detection when two entries resolve to the same configured name, causing silent data loss.

Comment thread packages/core/commands/index.ts
@dbpolito dbpolito merged commit 61f2c4e into main May 21, 2026
1 check passed
@dbpolito dbpolito deleted the feature/configurable-adapter-names branch May 21, 2026 16:44
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