@gaia-ai/addon-claude 0.11.5 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,3 @@
1
1
  import type { Preset } from '@gaia-ai/conductor/contract';
2
- export declare const agents: Preset['agents'];
2
+ import { type ClaudeAgentOptions } from './index.js';
3
+ export declare const agents: Preset<ClaudeAgentOptions | undefined>['agents'];
@@ -1,5 +1,31 @@
1
1
  import claudeAgent from './index.js';
2
- export const agents = (acc, opts) => [
3
- ...acc,
4
- { agent: claudeAgent(opts) },
5
- ];
2
+ export const agents = (acc, opts) => {
3
+ if (opts?.model) {
4
+ return [
5
+ ...acc,
6
+ {
7
+ agent: claudeAgent(opts),
8
+ model: opts.model,
9
+ description: 'Custom Claude variant; suitability depends on the configured model.',
10
+ },
11
+ ];
12
+ }
13
+ return [
14
+ ...acc,
15
+ {
16
+ alias: 'opus',
17
+ description: 'Strong reasoning for ambiguous design, diagnosis and demanding implementation.',
18
+ model: 'claude-opus-5',
19
+ },
20
+ {
21
+ alias: 'sonnet',
22
+ description: 'Efficient implementation of well-specified changes and routine maintenance.',
23
+ model: 'claude-sonnet-5',
24
+ },
25
+ ].map((candidate) => 'agent' in candidate
26
+ ? candidate
27
+ : {
28
+ ...candidate,
29
+ agent: claudeAgent({ ...opts, model: candidate.model }),
30
+ });
31
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaia-ai/addon-claude",
3
- "version": "0.11.5",
3
+ "version": "0.12.0",
4
4
  "description": "GAIA agent plugin for the Claude CLI.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  "directory": "gaia-cli/addons/claude"
21
21
  },
22
22
  "peerDependencies": {
23
- "@gaia-ai/conductor": "^0.11.5",
24
- "@gaia-ai/core": "^0.11.5"
23
+ "@gaia-ai/conductor": "^0.12.0",
24
+ "@gaia-ai/core": "^0.12.0"
25
25
  }
26
26
  }