@coda-console/grok 1.3.2 → 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 -2
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
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
"id": "grok",
|
|
4
4
|
"displayName": "Grok",
|
|
5
5
|
"description": "Grok Agent:适配运行机上 Grok CLI 的 ACP 与审批模式;资源页的「Grok」面板显示账号与额度,可从 Coda 安装和登录。",
|
|
6
|
-
"version": "1.3.
|
|
7
|
-
"categories": [
|
|
6
|
+
"version": "1.3.3",
|
|
7
|
+
"categories": [
|
|
8
|
+
"Agent"
|
|
9
|
+
],
|
|
8
10
|
"contributes": {
|
|
9
11
|
"agents": [
|
|
10
12
|
{
|