@gaia-ai/addon-grok 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/index.d.ts +1 -0
- package/dist/src/index.js +2 -1
- package/dist/src/preset.d.ts +2 -1
- package/dist/src/preset.js +13 -5
- package/package.json +3 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface GrokAgentOptions {
|
|
|
5
5
|
model: string;
|
|
6
6
|
reasoningEffort?: GrokReasoningEffort;
|
|
7
7
|
}
|
|
8
|
+
export declare const DEFAULT_GROK_MODEL = "grok-4.6";
|
|
8
9
|
export declare function encodeGrokSessionCwd(cwd: string): string;
|
|
9
10
|
export declare class GrokAgent implements GaiaAgent {
|
|
10
11
|
private readonly options;
|
package/dist/src/index.js
CHANGED
|
@@ -4,7 +4,8 @@ import { join } from 'node:path';
|
|
|
4
4
|
import { shellQuote } from '@gaia-ai/core';
|
|
5
5
|
import { parseGrokTranscript } from './footprint.js';
|
|
6
6
|
export { parseGrokTranscript } from './footprint.js';
|
|
7
|
-
const
|
|
7
|
+
export const DEFAULT_GROK_MODEL = 'grok-4.6';
|
|
8
|
+
const DEFAULT_OPTIONS = { model: DEFAULT_GROK_MODEL };
|
|
8
9
|
export function encodeGrokSessionCwd(cwd) {
|
|
9
10
|
return encodeURIComponent(cwd);
|
|
10
11
|
}
|
package/dist/src/preset.d.ts
CHANGED
package/dist/src/preset.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import grokAgent from './index.js';
|
|
2
|
-
export const agents = (acc, opts) =>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import grokAgent, { DEFAULT_GROK_MODEL, } from './index.js';
|
|
2
|
+
export const agents = (acc, opts) => {
|
|
3
|
+
const model = opts?.model ?? DEFAULT_GROK_MODEL;
|
|
4
|
+
return [
|
|
5
|
+
...acc,
|
|
6
|
+
{
|
|
7
|
+
alias: 'grok',
|
|
8
|
+
description: 'Reasoning and implementation through Grok Build.',
|
|
9
|
+
model,
|
|
10
|
+
agent: grokAgent({ ...opts, model }),
|
|
11
|
+
},
|
|
12
|
+
];
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaia-ai/addon-grok",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "GAIA agent plugin for xAI Grok Build, with a real session footprint.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"directory": "gaia-cli/addons/grok"
|
|
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
|
}
|