@gaia-ai/addon-claude 0.11.4 → 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.
- package/dist/src/preset.d.ts +2 -1
- package/dist/src/preset.js +30 -4
- package/package.json +3 -3
package/dist/src/preset.d.ts
CHANGED
package/dist/src/preset.js
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
import claudeAgent from './index.js';
|
|
2
|
-
export const agents = (acc, opts) =>
|
|
3
|
-
|
|
4
|
-
|
|
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.
|
|
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.
|
|
24
|
-
"@gaia-ai/core": "^0.
|
|
23
|
+
"@gaia-ai/conductor": "^0.12.0",
|
|
24
|
+
"@gaia-ai/core": "^0.12.0"
|
|
25
25
|
}
|
|
26
26
|
}
|