Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/codemie-opencode.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import { AgentCLI } from '../dist/agents/core/AgentCLI.js';
import { AgentRegistry } from '../dist/agents/registry.js';

const agent = AgentRegistry.getAgent('opencode');
const agent = AgentRegistry.getAgent('codemie-opencode');
if (!agent) {
console.error('OpenCode agent not found. Run: codemie doctor');
console.error('CodeMie OpenCode agent not found. Run: codemie doctor');
process.exit(1);
}
const cli = new AgentCLI(agent);
Expand Down
167 changes: 167 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
"ora": "^7.0.1",
"strip-ansi": "^7.1.2",
"yaml": "^2.3.4",
"@codemieai/codemie-opencode": "0.0.41",
"zod": "^4.1.12"
},
"devDependencies": {
Expand Down
15 changes: 8 additions & 7 deletions src/agents/__tests__/registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('AgentRegistry', () => {
it('should register all default agents', () => {
const agentNames = AgentRegistry.getAgentNames();

// Should have all 5 default agents (codemie-code, claude, claude-acp, gemini, opencode)
expect(agentNames).toHaveLength(5);
// Should have all 6 default agents (codemie-code, claude, claude-acp, gemini, opencode, codemie-opencode)
expect(agentNames).toHaveLength(6);
});

it('should register built-in agent', () => {
Expand Down Expand Up @@ -62,7 +62,7 @@ describe('AgentRegistry', () => {
it('should return all registered agents', () => {
const agents = AgentRegistry.getAllAgents();

expect(agents).toHaveLength(5);
expect(agents).toHaveLength(6);
expect(agents.every((agent) => agent.name)).toBe(true);
});

Expand All @@ -74,6 +74,7 @@ describe('AgentRegistry', () => {
expect(names).toContain('claude-acp');
expect(names).toContain('gemini');
expect(names).toContain('opencode');
expect(names).toContain('codemie-opencode');
});
});

Expand Down Expand Up @@ -114,11 +115,11 @@ describe('AgentRegistry', () => {
}
});

it('should include built-in agent in installed agents', async () => {
const installedAgents = await AgentRegistry.getInstalledAgents();
it('should include built-in agent in all agents', () => {
const allAgents = AgentRegistry.getAllAgents();

// Built-in agent should always be "installed"
const builtInAgent = installedAgents.find(
// Built-in agent should always be registered
const builtInAgent = allAgents.find(
(agent) => agent.name === BUILTIN_AGENT_NAME
);

Expand Down
12 changes: 12 additions & 0 deletions src/agents/codemie-code/skills/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
export { SkillManager } from './core/SkillManager.js';
export { SkillDiscovery } from './core/SkillDiscovery.js';

// Sync exports
export { SkillSync } from './sync/SkillSync.js';
export type { SyncOptions, SyncResult } from './sync/SkillSync.js';

// Type exports
export type {
Skill,
Expand All @@ -29,3 +33,11 @@ export {
FrontmatterParseError,
} from './utils/frontmatter.js';
export type { FrontmatterResult } from './utils/frontmatter.js';


// Pattern matcher exports
export {
extractSkillPatterns,
isValidSkillName,
} from './utils/pattern-matcher.js';
export type { SkillPattern, PatternMatchResult } from './utils/pattern-matcher.js';
Loading