@vibefield/puppeteer-imposter 0.2.1 → 0.2.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/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +91 -12
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/prompt-line.d.ts +6 -0
- package/dist/cli/prompt-line.d.ts.map +1 -1
- package/dist/cli/prompt-line.js +2 -0
- package/dist/cli/prompt-line.js.map +1 -1
- package/dist/persona/load.d.ts.map +1 -1
- package/dist/persona/load.js +31 -2
- package/dist/persona/load.js.map +1 -1
- package/dist/persona/types.d.ts +22 -2
- package/dist/persona/types.d.ts.map +1 -1
- package/dist/persona/types.js.map +1 -1
- package/dist/session/channels/jsonrpc.d.ts +10 -1
- package/dist/session/channels/jsonrpc.d.ts.map +1 -1
- package/dist/session/channels/jsonrpc.js +51 -2
- package/dist/session/channels/jsonrpc.js.map +1 -1
- package/dist/session/channels/leader-ipc.d.ts +9 -0
- package/dist/session/channels/leader-ipc.d.ts.map +1 -1
- package/dist/session/channels/leader-ipc.js +59 -6
- package/dist/session/channels/leader-ipc.js.map +1 -1
- package/dist/session/channels/native-store.d.ts +2 -0
- package/dist/session/channels/native-store.d.ts.map +1 -1
- package/dist/session/channels/native-store.js +48 -9
- package/dist/session/channels/native-store.js.map +1 -1
- package/dist/session/serve.d.ts +6 -0
- package/dist/session/serve.d.ts.map +1 -1
- package/dist/session/serve.js.map +1 -1
- package/dist/session/session.d.ts.map +1 -1
- package/dist/session/session.js +63 -28
- package/dist/session/session.js.map +1 -1
- package/dist/session/template.d.ts +3 -0
- package/dist/session/template.d.ts.map +1 -1
- package/dist/session/template.js +6 -1
- package/dist/session/template.js.map +1 -1
- package/package.json +8 -8
- package/personas/claude/ops.json +8 -1
- package/personas/claude/persona.json +18 -0
- package/personas/claude/runflows.json +2 -2
- package/personas/claude/scenarios/api-error-overloaded.json +49 -0
- package/personas/claude/scenarios/compact-lifecycle.json +76 -0
- package/personas/claude/scenarios/incident-investigation.json +90 -29
- package/personas/claude/scenarios/model-switch.json +171 -0
- package/personas/codex/serve.json +5 -0
- package/personas/grok/behavior/approval-turn.json +35 -8
- package/personas/grok/behavior/happy-turn.json +13 -5
- package/personas/grok/ops.json +338 -123
- package/personas/grok/persona.json +10 -2
- package/personas/grok/runflows.json +24 -2
- package/personas/grok/scenarios/agent-team-lifecycle.json +73 -4
- package/personas/grok/scenarios/compact-lifecycle.json +32 -3
- package/personas/grok/scenarios/configured-hooks.json +80 -0
- package/personas/grok/scenarios/remote-ambient.json +51 -0
- package/personas/grok/serve.json +300 -17
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"intent": "session.compaction",
|
|
7
7
|
"scenario": "compact-lifecycle",
|
|
8
8
|
"title": "Automatic compaction lifecycle",
|
|
9
|
-
"summary": "
|
|
9
|
+
"summary": "Manual or automatic compaction: persisted checkpoint and completion across Grok's live and durable rails.",
|
|
10
10
|
"kind": "vendor",
|
|
11
11
|
"tags": ["context", "compaction", "native-store"],
|
|
12
12
|
"defaultSpeed": 4
|
|
@@ -16,10 +16,32 @@
|
|
|
16
16
|
"intent": "subagent.lifecycle",
|
|
17
17
|
"scenario": "agent-team-lifecycle",
|
|
18
18
|
"title": "Agent-team lifecycle",
|
|
19
|
-
"summary": "A child agent is spawned, reports progress, and finishes
|
|
19
|
+
"summary": "A child agent is spawned, reports progress, and finishes; 1.0.70 persists the spawn just before the parent turn ends.",
|
|
20
20
|
"kind": "vendor",
|
|
21
21
|
"tags": ["subagent", "team", "progress"],
|
|
22
22
|
"defaultSpeed": 4
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "configured-hooks",
|
|
26
|
+
"intent": "hooks.lifecycle",
|
|
27
|
+
"scenario": "configured-hooks",
|
|
28
|
+
"title": "Configured hook run",
|
|
29
|
+
"summary": "Only when hooks are configured: hook_run_started, then the hook result on the live and durable rails.",
|
|
30
|
+
"kind": "vendor",
|
|
31
|
+
"danger": "safe",
|
|
32
|
+
"tags": ["hooks", "conditional"],
|
|
33
|
+
"defaultSpeed": 4
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "remote-ambient",
|
|
37
|
+
"intent": "session.ambient",
|
|
38
|
+
"scenario": "remote-ambient",
|
|
39
|
+
"title": "Remote ambient updates",
|
|
40
|
+
"summary": "Only with remote settings, announcements, and MCP init: the four ambient notifications (unverified on 1.0.70).",
|
|
41
|
+
"kind": "vendor",
|
|
42
|
+
"danger": "safe",
|
|
43
|
+
"tags": ["ambient", "conditional", "unverified"],
|
|
44
|
+
"defaultSpeed": 4
|
|
23
45
|
}
|
|
24
46
|
]
|
|
25
47
|
}
|
|
@@ -11,13 +11,19 @@
|
|
|
11
11
|
"update": {
|
|
12
12
|
"sessionUpdate": "subagent_spawned",
|
|
13
13
|
"subagent_id": "$uuid:subagent",
|
|
14
|
+
"attempt_id": "$uuid:attempt",
|
|
14
15
|
"parent_session_id": "$sessionId",
|
|
15
16
|
"parent_prompt_id": "$uuid:prompt",
|
|
16
17
|
"child_session_id": "$uuid:subagent",
|
|
17
|
-
"subagent_type": "
|
|
18
|
+
"subagent_type": "general-purpose",
|
|
18
19
|
"description": "research the requested topic",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
20
|
+
"effective_context_source": "new",
|
|
21
|
+
"model": "grok-imposter",
|
|
22
|
+
"agentAddress": "$uuid:agent-address"
|
|
23
|
+
},
|
|
24
|
+
"_meta": {
|
|
25
|
+
"eventId": "$concat:$sessionId:-:9101",
|
|
26
|
+
"agentTimestampMs": "$nowMs"
|
|
21
27
|
}
|
|
22
28
|
}
|
|
23
29
|
}
|
|
@@ -58,13 +64,76 @@
|
|
|
58
64
|
"update": {
|
|
59
65
|
"sessionUpdate": "subagent_finished",
|
|
60
66
|
"subagent_id": "$uuid:subagent",
|
|
67
|
+
"attempt_id": "$uuid:attempt",
|
|
61
68
|
"child_session_id": "$uuid:subagent",
|
|
62
69
|
"status": "completed",
|
|
63
70
|
"tool_calls": 1,
|
|
64
71
|
"turns": 1,
|
|
65
72
|
"duration_ms": 80,
|
|
66
73
|
"tokens_used": 1200,
|
|
67
|
-
"output": "research complete"
|
|
74
|
+
"output": "research complete",
|
|
75
|
+
"will_wake": true
|
|
76
|
+
},
|
|
77
|
+
"_meta": {
|
|
78
|
+
"eventId": "$concat:$sessionId:-:9103",
|
|
79
|
+
"agentTimestampMs": "$nowMs"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"at": 80,
|
|
87
|
+
"do": {
|
|
88
|
+
"emit": {
|
|
89
|
+
"event": "_x.ai/session/update",
|
|
90
|
+
"channel": "session-log",
|
|
91
|
+
"with": {
|
|
92
|
+
"sessionId": "$sessionId",
|
|
93
|
+
"update": {
|
|
94
|
+
"sessionUpdate": "subagent_spawned",
|
|
95
|
+
"subagent_id": "$uuid:subagent",
|
|
96
|
+
"attempt_id": "$uuid:attempt",
|
|
97
|
+
"parent_session_id": "$sessionId",
|
|
98
|
+
"parent_prompt_id": "$uuid:prompt",
|
|
99
|
+
"child_session_id": "$uuid:subagent",
|
|
100
|
+
"subagent_type": "general-purpose",
|
|
101
|
+
"description": "research the requested topic",
|
|
102
|
+
"effective_context_source": "new",
|
|
103
|
+
"model": "grok-imposter"
|
|
104
|
+
},
|
|
105
|
+
"_meta": {
|
|
106
|
+
"eventId": "$concat:$sessionId:-:9101",
|
|
107
|
+
"agentTimestampMs": "$nowMs"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"at": 80,
|
|
115
|
+
"do": {
|
|
116
|
+
"emit": {
|
|
117
|
+
"event": "_x.ai/session/update",
|
|
118
|
+
"channel": "session-log",
|
|
119
|
+
"with": {
|
|
120
|
+
"sessionId": "$sessionId",
|
|
121
|
+
"update": {
|
|
122
|
+
"sessionUpdate": "subagent_finished",
|
|
123
|
+
"subagent_id": "$uuid:subagent",
|
|
124
|
+
"attempt_id": "$uuid:attempt",
|
|
125
|
+
"child_session_id": "$uuid:subagent",
|
|
126
|
+
"status": "completed",
|
|
127
|
+
"tool_calls": 1,
|
|
128
|
+
"turns": 1,
|
|
129
|
+
"duration_ms": 80,
|
|
130
|
+
"tokens_used": 1200,
|
|
131
|
+
"output": "research complete",
|
|
132
|
+
"will_wake": true
|
|
133
|
+
},
|
|
134
|
+
"_meta": {
|
|
135
|
+
"eventId": "$concat:$sessionId:-:9103",
|
|
136
|
+
"agentTimestampMs": "$nowMs"
|
|
68
137
|
}
|
|
69
138
|
}
|
|
70
139
|
}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"do": {
|
|
25
25
|
"emit": {
|
|
26
26
|
"event": "_x.ai/session/update",
|
|
27
|
+
"channel": "session-log",
|
|
27
28
|
"with": {
|
|
28
29
|
"sessionId": "$sessionId",
|
|
29
30
|
"update": {
|
|
@@ -34,7 +35,10 @@
|
|
|
34
35
|
"schema_version": 1,
|
|
35
36
|
"created_at": "$now"
|
|
36
37
|
},
|
|
37
|
-
"_meta": {
|
|
38
|
+
"_meta": {
|
|
39
|
+
"eventId": "$concat:$sessionId:-:9001",
|
|
40
|
+
"agentTimestampMs": "$nowMs"
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
43
|
}
|
|
40
44
|
}
|
|
@@ -50,8 +54,33 @@
|
|
|
50
54
|
"sessionUpdate": "auto_compact_completed",
|
|
51
55
|
"tokens_before": 110000,
|
|
52
56
|
"tokens_after": 22000,
|
|
53
|
-
"
|
|
54
|
-
|
|
57
|
+
"summary_preview": null
|
|
58
|
+
},
|
|
59
|
+
"_meta": {
|
|
60
|
+
"eventId": "$concat:$sessionId:-:9002",
|
|
61
|
+
"agentTimestampMs": "$nowMs"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"at": 80,
|
|
69
|
+
"do": {
|
|
70
|
+
"emit": {
|
|
71
|
+
"event": "_x.ai/session/update",
|
|
72
|
+
"channel": "session-log",
|
|
73
|
+
"with": {
|
|
74
|
+
"sessionId": "$sessionId",
|
|
75
|
+
"update": {
|
|
76
|
+
"sessionUpdate": "auto_compact_completed",
|
|
77
|
+
"tokens_before": 110000,
|
|
78
|
+
"tokens_after": 22000,
|
|
79
|
+
"summary_preview": null
|
|
80
|
+
},
|
|
81
|
+
"_meta": {
|
|
82
|
+
"eventId": "$concat:$sessionId:-:9002",
|
|
83
|
+
"agentTimestampMs": "$nowMs"
|
|
55
84
|
}
|
|
56
85
|
}
|
|
57
86
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "configured-hooks",
|
|
3
|
+
"then": [
|
|
4
|
+
{
|
|
5
|
+
"at": 0,
|
|
6
|
+
"do": {
|
|
7
|
+
"emit": {
|
|
8
|
+
"event": "_x.ai/session_notification",
|
|
9
|
+
"with": {
|
|
10
|
+
"sessionId": "$sessionId",
|
|
11
|
+
"update": {
|
|
12
|
+
"sessionUpdate": "hook_run_started",
|
|
13
|
+
"event_name": "user_prompt_submit",
|
|
14
|
+
"prompt_id": "$uuid:prompt",
|
|
15
|
+
"count": 1
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"at": 10,
|
|
23
|
+
"do": {
|
|
24
|
+
"emit": {
|
|
25
|
+
"event": "_x.ai/session_notification",
|
|
26
|
+
"with": {
|
|
27
|
+
"sessionId": "$sessionId",
|
|
28
|
+
"update": {
|
|
29
|
+
"sessionUpdate": "hook_execution",
|
|
30
|
+
"event_name": "user_prompt_submit",
|
|
31
|
+
"prompt_id": "$uuid:prompt",
|
|
32
|
+
"runs": [
|
|
33
|
+
{
|
|
34
|
+
"name": "true",
|
|
35
|
+
"status": {
|
|
36
|
+
"status": "success",
|
|
37
|
+
"elapsed_ms": 3
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"_meta": {
|
|
43
|
+
"agentTimestampMs": "$nowMs"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"at": 10,
|
|
51
|
+
"do": {
|
|
52
|
+
"emit": {
|
|
53
|
+
"event": "_x.ai/session/update",
|
|
54
|
+
"channel": "session-log",
|
|
55
|
+
"with": {
|
|
56
|
+
"sessionId": "$sessionId",
|
|
57
|
+
"update": {
|
|
58
|
+
"sessionUpdate": "hook_execution",
|
|
59
|
+
"event_name": "user_prompt_submit",
|
|
60
|
+
"prompt_id": "$uuid:prompt",
|
|
61
|
+
"runs": [
|
|
62
|
+
{
|
|
63
|
+
"name": "true",
|
|
64
|
+
"status": {
|
|
65
|
+
"status": "success",
|
|
66
|
+
"elapsed_ms": 3
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"_meta": {
|
|
72
|
+
"eventId": "$concat:$sessionId:-:9201",
|
|
73
|
+
"agentTimestampMs": "$nowMs"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "remote-ambient",
|
|
3
|
+
"then": [
|
|
4
|
+
{
|
|
5
|
+
"at": 0,
|
|
6
|
+
"do": {
|
|
7
|
+
"emit": {
|
|
8
|
+
"event": "_x.ai/models/update",
|
|
9
|
+
"with": {
|
|
10
|
+
"models": [],
|
|
11
|
+
"currentModelId": "$modelId"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"at": 10,
|
|
18
|
+
"do": {
|
|
19
|
+
"emit": {
|
|
20
|
+
"event": "_x.ai/settings/update",
|
|
21
|
+
"with": {
|
|
22
|
+
"settings": {}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"at": 20,
|
|
29
|
+
"do": {
|
|
30
|
+
"emit": {
|
|
31
|
+
"event": "_x.ai/announcements/update",
|
|
32
|
+
"with": {
|
|
33
|
+
"announcements": []
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"at": 30,
|
|
40
|
+
"do": {
|
|
41
|
+
"emit": {
|
|
42
|
+
"event": "_x.ai/mcp/init_progress",
|
|
43
|
+
"with": {
|
|
44
|
+
"completed": 0,
|
|
45
|
+
"total": 0
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
package/personas/grok/serve.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$server": {
|
|
3
|
-
"match": {
|
|
3
|
+
"match": {
|
|
4
|
+
"all": ["agent", "stdio"]
|
|
5
|
+
},
|
|
4
6
|
"jsonrpc": "2.0",
|
|
5
7
|
"leader": {
|
|
6
8
|
"sequence": ["agent", "leader"],
|
|
@@ -9,21 +11,97 @@
|
|
|
9
11
|
"viewer": {
|
|
10
12
|
"all": ["--leader", "--leader-socket", "--resume"],
|
|
11
13
|
"none": ["agent"],
|
|
12
|
-
"sessionFlag": "--resume"
|
|
14
|
+
"sessionFlag": "--resume",
|
|
15
|
+
"answers": ["session/request_permission"]
|
|
13
16
|
}
|
|
14
17
|
},
|
|
15
18
|
"initialize": {
|
|
16
|
-
"before": [{ "op": "session.initialize" }],
|
|
17
19
|
"result": {
|
|
18
20
|
"protocolVersion": 1,
|
|
19
21
|
"agentCapabilities": {
|
|
20
22
|
"loadSession": true,
|
|
21
|
-
"promptCapabilities": {
|
|
22
|
-
|
|
23
|
+
"promptCapabilities": {
|
|
24
|
+
"image": true,
|
|
25
|
+
"audio": false,
|
|
26
|
+
"embeddedContext": true
|
|
27
|
+
},
|
|
28
|
+
"mcpCapabilities": {
|
|
29
|
+
"http": true,
|
|
30
|
+
"sse": true
|
|
31
|
+
},
|
|
32
|
+
"sessionCapabilities": {
|
|
33
|
+
"list": {},
|
|
34
|
+
"resume": {},
|
|
35
|
+
"close": {}
|
|
36
|
+
},
|
|
37
|
+
"auth": {},
|
|
38
|
+
"_meta": {
|
|
39
|
+
"x.ai/fs_notify": true,
|
|
40
|
+
"x.ai/hooks": {
|
|
41
|
+
"blockingEvents": ["pre_tool_use", "stop", "subagent_stop"],
|
|
42
|
+
"decisions": ["deny", "block"],
|
|
43
|
+
"stopSignals": ["continue", "stopReason", "additionalContext"]
|
|
44
|
+
},
|
|
45
|
+
"x.ai/capabilities": {
|
|
46
|
+
"toolOverrides": {
|
|
47
|
+
"x_keyword_search": true,
|
|
48
|
+
"x_semantic_search": true,
|
|
49
|
+
"x_user_search": false,
|
|
50
|
+
"x_thread_fetch": false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
23
54
|
},
|
|
24
|
-
"authMethods": [
|
|
25
|
-
|
|
26
|
-
|
|
55
|
+
"authMethods": [
|
|
56
|
+
{
|
|
57
|
+
"id": "xai.api_key",
|
|
58
|
+
"name": "xai.api_key",
|
|
59
|
+
"description": "Use an xAI API key"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "grok.com",
|
|
63
|
+
"name": "Grok",
|
|
64
|
+
"description": "Sign in with grok.com"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"_meta": {
|
|
68
|
+
"currentWorkingDirectory": "$cwd",
|
|
69
|
+
"agentVersion": "$vendorVersion",
|
|
70
|
+
"agentId": "$agentId",
|
|
71
|
+
"agentInstanceId": "$uuid:agent-instance",
|
|
72
|
+
"hostname": "imposter",
|
|
73
|
+
"metadata": null,
|
|
74
|
+
"grokShell": true,
|
|
75
|
+
"defaultAuthMethodId": "xai.api_key",
|
|
76
|
+
"x.ai/mcp/sdk": true,
|
|
77
|
+
"x.ai/pluginDirs": true,
|
|
78
|
+
"modelState": {
|
|
79
|
+
"currentModelId": "$modelId",
|
|
80
|
+
"availableModels": [
|
|
81
|
+
{
|
|
82
|
+
"modelId": "$modelId",
|
|
83
|
+
"name": "Grok Imposter",
|
|
84
|
+
"_meta": {
|
|
85
|
+
"totalContextTokens": "$capacityTokens",
|
|
86
|
+
"agentType": "grok-build-plan"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"availableCommands": [],
|
|
92
|
+
"cancelRewind": true,
|
|
93
|
+
"feedbackTraceOffer": false,
|
|
94
|
+
"mcpApps": false,
|
|
95
|
+
"mcpServers": [],
|
|
96
|
+
"sessionRecap": true,
|
|
97
|
+
"voiceMode": true
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"then": [
|
|
101
|
+
{
|
|
102
|
+
"op": "session.initialize"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
27
105
|
},
|
|
28
106
|
"session/new": {
|
|
29
107
|
"bind": {
|
|
@@ -31,14 +109,77 @@
|
|
|
31
109
|
"$threadCwd": "$params.cwd"
|
|
32
110
|
},
|
|
33
111
|
"before": [
|
|
34
|
-
{ "op": "session.start" },
|
|
35
|
-
{ "op": "session.ready" },
|
|
36
112
|
{
|
|
37
|
-
"op": "
|
|
38
|
-
"with": { "usedTokens": 0 }
|
|
113
|
+
"op": "session.start"
|
|
39
114
|
}
|
|
40
115
|
],
|
|
41
|
-
"result": {
|
|
116
|
+
"result": {
|
|
117
|
+
"sessionId": "$sessionId",
|
|
118
|
+
"models": {
|
|
119
|
+
"currentModelId": "$modelId",
|
|
120
|
+
"availableModels": [
|
|
121
|
+
{
|
|
122
|
+
"modelId": "$modelId",
|
|
123
|
+
"name": "Grok Imposter",
|
|
124
|
+
"_meta": {
|
|
125
|
+
"totalContextTokens": "$capacityTokens",
|
|
126
|
+
"agentType": "grok-build-plan"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"configOptions": [
|
|
132
|
+
{
|
|
133
|
+
"id": "model",
|
|
134
|
+
"name": "Model",
|
|
135
|
+
"category": "model",
|
|
136
|
+
"type": "select",
|
|
137
|
+
"currentValue": "$modelId",
|
|
138
|
+
"options": [
|
|
139
|
+
{
|
|
140
|
+
"value": "$modelId",
|
|
141
|
+
"name": "Grok Imposter"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"_meta": {
|
|
147
|
+
"currentWorkingDirectory": "$threadCwd",
|
|
148
|
+
"isGitRepo": false,
|
|
149
|
+
"gitRoot": null,
|
|
150
|
+
"showNonGitWarning": false,
|
|
151
|
+
"feedbackEnabled": false,
|
|
152
|
+
"codebaseIndexed": [],
|
|
153
|
+
"x.ai/sessionConfig": {
|
|
154
|
+
"options": [
|
|
155
|
+
{
|
|
156
|
+
"id": "$modelId",
|
|
157
|
+
"category": "model",
|
|
158
|
+
"label": "Grok Imposter",
|
|
159
|
+
"selected": true
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"x.ai/sessionDetail": {
|
|
164
|
+
"sessionId": "$sessionId",
|
|
165
|
+
"kind": "build",
|
|
166
|
+
"cwd": "$threadCwd",
|
|
167
|
+
"currentModelId": "$modelId"
|
|
168
|
+
},
|
|
169
|
+
"x.ai/memoryNotesWritable": false
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"then": [
|
|
173
|
+
{
|
|
174
|
+
"op": "session.ready"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"op": "usage.refresh",
|
|
178
|
+
"with": {
|
|
179
|
+
"usedTokens": 0
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
]
|
|
42
183
|
},
|
|
43
184
|
"session/load": {
|
|
44
185
|
"bind": {
|
|
@@ -46,12 +187,154 @@
|
|
|
46
187
|
"$threadCwd": "$params.cwd"
|
|
47
188
|
},
|
|
48
189
|
"restore": true,
|
|
49
|
-
"
|
|
50
|
-
|
|
190
|
+
"result": {
|
|
191
|
+
"models": {
|
|
192
|
+
"currentModelId": "$modelId",
|
|
193
|
+
"availableModels": [
|
|
194
|
+
{
|
|
195
|
+
"modelId": "$modelId",
|
|
196
|
+
"name": "Grok Imposter",
|
|
197
|
+
"_meta": {
|
|
198
|
+
"totalContextTokens": "$capacityTokens",
|
|
199
|
+
"agentType": "grok-build-plan"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"configOptions": [
|
|
205
|
+
{
|
|
206
|
+
"id": "model",
|
|
207
|
+
"name": "Model",
|
|
208
|
+
"category": "model",
|
|
209
|
+
"type": "select",
|
|
210
|
+
"currentValue": "$modelId",
|
|
211
|
+
"options": [
|
|
212
|
+
{
|
|
213
|
+
"value": "$modelId",
|
|
214
|
+
"name": "Grok Imposter"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"_meta": {
|
|
220
|
+
"sessionId": "$sessionId",
|
|
221
|
+
"codebaseIndexed": [],
|
|
222
|
+
"x.ai/sessionConfig": {
|
|
223
|
+
"options": [
|
|
224
|
+
{
|
|
225
|
+
"id": "$modelId",
|
|
226
|
+
"category": "model",
|
|
227
|
+
"label": "Grok Imposter",
|
|
228
|
+
"selected": true
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
"x.ai/sessionDetail": {
|
|
233
|
+
"sessionId": "$sessionId",
|
|
234
|
+
"kind": "build",
|
|
235
|
+
"cwd": "$threadCwd",
|
|
236
|
+
"currentModelId": "$modelId",
|
|
237
|
+
"title": "$sessionTitle"
|
|
238
|
+
},
|
|
239
|
+
"x.ai/memoryNotesWritable": false
|
|
240
|
+
}
|
|
241
|
+
}
|
|
51
242
|
},
|
|
52
243
|
"session/prompt": {
|
|
53
|
-
"bind": {
|
|
244
|
+
"bind": {
|
|
245
|
+
"$promptId": "$uuid:prompt"
|
|
246
|
+
},
|
|
54
247
|
"before": "$behavior",
|
|
55
|
-
"result": {
|
|
248
|
+
"result": {
|
|
249
|
+
"stopReason": "end_turn",
|
|
250
|
+
"_meta": {
|
|
251
|
+
"sessionId": "$sessionId",
|
|
252
|
+
"requestId": "$promptId",
|
|
253
|
+
"promptId": "$promptId",
|
|
254
|
+
"totalTokens": 16,
|
|
255
|
+
"modelId": "$modelId",
|
|
256
|
+
"inputTokens": 12,
|
|
257
|
+
"outputTokens": 4,
|
|
258
|
+
"cachedReadTokens": 0,
|
|
259
|
+
"reasoningTokens": 0
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"then": [
|
|
263
|
+
{
|
|
264
|
+
"op": "usage.refresh",
|
|
265
|
+
"with": {
|
|
266
|
+
"addedTokens": 16
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
"session/list": {
|
|
272
|
+
"result": {
|
|
273
|
+
"sessions": [
|
|
274
|
+
{
|
|
275
|
+
"sessionId": "$sessionId",
|
|
276
|
+
"cwd": "$threadCwd",
|
|
277
|
+
"title": "$sessionTitle",
|
|
278
|
+
"updatedAt": "$now",
|
|
279
|
+
"_meta": {
|
|
280
|
+
"x.ai/session": {
|
|
281
|
+
"kind": "build",
|
|
282
|
+
"facets": {
|
|
283
|
+
"cwd": "$threadCwd",
|
|
284
|
+
"kind": "build"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"_meta": {
|
|
291
|
+
"x.ai/facets": {
|
|
292
|
+
"scope": "window",
|
|
293
|
+
"keys": [
|
|
294
|
+
{
|
|
295
|
+
"key": "cwd",
|
|
296
|
+
"values": [
|
|
297
|
+
{
|
|
298
|
+
"value": "$threadCwd",
|
|
299
|
+
"count": 1
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"key": "kind",
|
|
305
|
+
"values": [
|
|
306
|
+
{
|
|
307
|
+
"value": "build",
|
|
308
|
+
"count": 1
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
"x.ai/partial": {
|
|
315
|
+
"conversations": false
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"_x.ai/auth/info": {
|
|
321
|
+
"result": {
|
|
322
|
+
"methodId": "xai.api_key",
|
|
323
|
+
"email": null,
|
|
324
|
+
"firstName": null,
|
|
325
|
+
"lastName": null,
|
|
326
|
+
"profileImageUrl": null,
|
|
327
|
+
"teamId": null,
|
|
328
|
+
"teamName": null,
|
|
329
|
+
"teamRole": null,
|
|
330
|
+
"organizationId": null,
|
|
331
|
+
"organizationName": null,
|
|
332
|
+
"organizationRole": null,
|
|
333
|
+
"principalType": null,
|
|
334
|
+
"principalId": null,
|
|
335
|
+
"userBlockedReason": null,
|
|
336
|
+
"teamBlockedReasons": [],
|
|
337
|
+
"codingDataRetentionOptOut": true
|
|
338
|
+
}
|
|
56
339
|
}
|
|
57
340
|
}
|