@coda-console/grok 1.3.1 → 1.3.3
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/agent/entry.mjs +2 -1
- package/package.json +4 -1
package/agent/entry.mjs
CHANGED
|
@@ -5,7 +5,8 @@ import { spawn } from 'node:child_process';
|
|
|
5
5
|
import { grokBinary } from '../scripts/ask.mjs';
|
|
6
6
|
import { SessionInstructions } from './instructions.mjs';
|
|
7
7
|
|
|
8
|
-
const modes = [{ id: 'auto', name: '自动审批'
|
|
8
|
+
const modes = [{ id: 'auto', name: '自动审批', _meta: { coda: { shortName: '自动审批' } } },
|
|
9
|
+
{ id: 'always-approve', name: '全部放行', _meta: { coda: { shortName: '全部放行' } } }];
|
|
9
10
|
const grok = spawn(grokBinary() ?? 'grok', ['agent', '--no-leader', 'stdio'], { stdio: ['pipe', 'pipe', 'inherit'] });
|
|
10
11
|
const send = (stream, message) => stream.write(`${JSON.stringify(message)}\n`);
|
|
11
12
|
const say = message => send(process.stdout, { jsonrpc: '2.0', ...message });
|
package/package.json
CHANGED