mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 15:02:39 +00:00
fix: opencode compat tool call rendering and default to no-token
- Fix tool name lost on ToolResult events (persist via tool_name_by_call) - Fix tool input lost on ToolResult events (persist via tool_args_by_call) - Fix tool output in wrong field (error -> output) - Fix text doubling in streaming (defer emit to ItemCompleted) - Fix missing delta field in text streaming events - Default server mode to no-token when --token not specified - Add install-fast-sa and install-fast-gigacode justfile targets
This commit is contained in:
parent
a02393436c
commit
5744712f06
32 changed files with 9193 additions and 38 deletions
1281
research/opencode-compat/snapshots/native/all-events.json
Normal file
1281
research/opencode-compat/snapshots/native/all-events.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"info": {
|
||||
"id": "msg_c31b8e048001p0fSvme0VWmKR0",
|
||||
"sessionID": "ses_3ce471fc8ffeS9ZUpB7rVDen7k",
|
||||
"role": "assistant",
|
||||
"time": {
|
||||
"created": 1770360725576,
|
||||
"completed": 1770360727252
|
||||
},
|
||||
"parentID": "msg_c31b8e040001pIkL4AzVtzdVRd",
|
||||
"modelID": "claude-haiku-4-5",
|
||||
"providerID": "anthropic",
|
||||
"mode": "build",
|
||||
"agent": "build",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent"
|
||||
},
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 2,
|
||||
"output": 7,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 13540
|
||||
}
|
||||
},
|
||||
"finish": "stop"
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "prt_c31b8e6b10012vw5mZVWX51UQm",
|
||||
"sessionID": "ses_3ce471fc8ffeS9ZUpB7rVDen7k",
|
||||
"messageID": "msg_c31b8e048001p0fSvme0VWmKR0",
|
||||
"type": "step-start",
|
||||
"snapshot": "f93f1b3f790c9b1fe51007d1b4a46bcb2d528a91"
|
||||
},
|
||||
{
|
||||
"id": "prt_c31b8e6b1002OBaD5M55iOVva6",
|
||||
"sessionID": "ses_3ce471fc8ffeS9ZUpB7rVDen7k",
|
||||
"messageID": "msg_c31b8e048001p0fSvme0VWmKR0",
|
||||
"type": "text",
|
||||
"text": "Hello from OpenCode",
|
||||
"time": {
|
||||
"start": 1770360727218,
|
||||
"end": 1770360727218
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "prt_c31b8e6cd0012b1geOngJvrf2q",
|
||||
"sessionID": "ses_3ce471fc8ffeS9ZUpB7rVDen7k",
|
||||
"messageID": "msg_c31b8e048001p0fSvme0VWmKR0",
|
||||
"type": "step-finish",
|
||||
"reason": "stop",
|
||||
"snapshot": "f93f1b3f790c9b1fe51007d1b4a46bcb2d528a91",
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 2,
|
||||
"output": 7,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 13540
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
"info": {
|
||||
"id": "msg_c31b349c3001C3jUz57fj5vRae",
|
||||
"sessionID": "ses_3ce4cbd76ffeHVa3mLvB00FXDV",
|
||||
"role": "assistant",
|
||||
"time": {
|
||||
"created": 1770360359363,
|
||||
"completed": 1770360359565
|
||||
},
|
||||
"error": {
|
||||
"name": "APIError",
|
||||
"data": {
|
||||
"message": "Unauthorized: {\"type\":\"error\",\"error\":{\"type\":\"AuthError\",\"message\":\"Invalid API key.\"}}",
|
||||
"statusCode": 401,
|
||||
"isRetryable": false,
|
||||
"responseHeaders": {
|
||||
"cf-placement": "local-SJC",
|
||||
"cf-ray": "9c98b01658355024-SJC",
|
||||
"connection": "keep-alive",
|
||||
"content-length": "74",
|
||||
"content-type": "text/plain;charset=UTF-8",
|
||||
"date": "Fri, 06 Feb 2026 06:45:59 GMT",
|
||||
"server": "cloudflare"
|
||||
},
|
||||
"responseBody": "{\"type\":\"error\",\"error\":{\"type\":\"AuthError\",\"message\":\"Invalid API key.\"}}",
|
||||
"metadata": {
|
||||
"url": "https://opencode.ai/zen/v1/models/gemini-3-pro:streamGenerateContent?alt=sse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parentID": "msg_c31b349c2001kJD7I7MRSAVo57",
|
||||
"modelID": "gemini-3-pro",
|
||||
"providerID": "opencode",
|
||||
"mode": "build",
|
||||
"agent": "build",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent"
|
||||
},
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"parts": []
|
||||
}
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
[
|
||||
{
|
||||
"info": {
|
||||
"id": "msg_c31bd424c001ICzhibLcSkazYE",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"role": "user",
|
||||
"time": {
|
||||
"created": 1770361012812
|
||||
},
|
||||
"summary": {
|
||||
"title": "Hello from OpenCode",
|
||||
"diffs": []
|
||||
},
|
||||
"agent": "build",
|
||||
"model": {
|
||||
"providerID": "anthropic",
|
||||
"modelID": "claude-haiku-4-5"
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "prt_c31bd424c002I8ASgZXZGMnUf2",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd424c001ICzhibLcSkazYE",
|
||||
"type": "text",
|
||||
"text": "Respond with exactly: 'Hello from OpenCode'. Nothing else."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"id": "msg_c31bd4260001o9JzwTa1Ops17t",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"role": "assistant",
|
||||
"time": {
|
||||
"created": 1770361012832,
|
||||
"completed": 1770361014171
|
||||
},
|
||||
"parentID": "msg_c31bd424c001ICzhibLcSkazYE",
|
||||
"modelID": "claude-haiku-4-5",
|
||||
"providerID": "anthropic",
|
||||
"mode": "build",
|
||||
"agent": "build",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent"
|
||||
},
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 2,
|
||||
"output": 7,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 13540,
|
||||
"write": 0
|
||||
}
|
||||
},
|
||||
"finish": "stop"
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "prt_c31bd4779001QLU4EXzj63WQ4W",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd4260001o9JzwTa1Ops17t",
|
||||
"type": "step-start",
|
||||
"snapshot": "302d31eedbdd77a5b1eb84e2fbc4e99e8b97e549"
|
||||
},
|
||||
{
|
||||
"id": "prt_c31bd477c001Gq3CWQQXR1h7fD",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd4260001o9JzwTa1Ops17t",
|
||||
"type": "text",
|
||||
"text": "Hello from OpenCode",
|
||||
"time": {
|
||||
"start": 1770361014146,
|
||||
"end": 1770361014146
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "prt_c31bd4793001LdK7WQwiUgzctY",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd4260001o9JzwTa1Ops17t",
|
||||
"type": "step-finish",
|
||||
"reason": "stop",
|
||||
"snapshot": "302d31eedbdd77a5b1eb84e2fbc4e99e8b97e549",
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 2,
|
||||
"output": 7,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 13540,
|
||||
"write": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
281
research/opencode-compat/snapshots/native/messages-after-2.json
Normal file
281
research/opencode-compat/snapshots/native/messages-after-2.json
Normal file
|
|
@ -0,0 +1,281 @@
|
|||
[
|
||||
{
|
||||
"info": {
|
||||
"id": "msg_c31bd424c001ICzhibLcSkazYE",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"role": "user",
|
||||
"time": {
|
||||
"created": 1770361012812
|
||||
},
|
||||
"summary": {
|
||||
"title": "Hello from OpenCode",
|
||||
"diffs": []
|
||||
},
|
||||
"agent": "build",
|
||||
"model": {
|
||||
"providerID": "anthropic",
|
||||
"modelID": "claude-haiku-4-5"
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "prt_c31bd424c002I8ASgZXZGMnUf2",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd424c001ICzhibLcSkazYE",
|
||||
"type": "text",
|
||||
"text": "Respond with exactly: 'Hello from OpenCode'. Nothing else."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"id": "msg_c31bd4260001o9JzwTa1Ops17t",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"role": "assistant",
|
||||
"time": {
|
||||
"created": 1770361012832,
|
||||
"completed": 1770361014171
|
||||
},
|
||||
"parentID": "msg_c31bd424c001ICzhibLcSkazYE",
|
||||
"modelID": "claude-haiku-4-5",
|
||||
"providerID": "anthropic",
|
||||
"mode": "build",
|
||||
"agent": "build",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent"
|
||||
},
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 2,
|
||||
"output": 7,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 13540,
|
||||
"write": 0
|
||||
}
|
||||
},
|
||||
"finish": "stop"
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "prt_c31bd4779001QLU4EXzj63WQ4W",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd4260001o9JzwTa1Ops17t",
|
||||
"type": "step-start",
|
||||
"snapshot": "302d31eedbdd77a5b1eb84e2fbc4e99e8b97e549"
|
||||
},
|
||||
{
|
||||
"id": "prt_c31bd477c001Gq3CWQQXR1h7fD",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd4260001o9JzwTa1Ops17t",
|
||||
"type": "text",
|
||||
"text": "Hello from OpenCode",
|
||||
"time": {
|
||||
"start": 1770361014146,
|
||||
"end": 1770361014146
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "prt_c31bd4793001LdK7WQwiUgzctY",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd4260001o9JzwTa1Ops17t",
|
||||
"type": "step-finish",
|
||||
"reason": "stop",
|
||||
"snapshot": "302d31eedbdd77a5b1eb84e2fbc4e99e8b97e549",
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 2,
|
||||
"output": 7,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 13540,
|
||||
"write": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"id": "msg_c31bd4c1b001xWoyoqqLd1Y28L",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"role": "user",
|
||||
"time": {
|
||||
"created": 1770361015323
|
||||
},
|
||||
"summary": {
|
||||
"title": "List directory contents",
|
||||
"diffs": []
|
||||
},
|
||||
"agent": "build",
|
||||
"model": {
|
||||
"providerID": "anthropic",
|
||||
"modelID": "claude-haiku-4-5"
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "prt_c31bd4c1b00250iBBBWSNWnE4G",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd4c1b001xWoyoqqLd1Y28L",
|
||||
"type": "text",
|
||||
"text": "List the files in the current directory. Use the list/ls tool. Only list the top-level contents, do not recurse."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"id": "msg_c31bd4c1c001iWeGOWfwf5UD2Y",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"role": "assistant",
|
||||
"time": {
|
||||
"created": 1770361015324,
|
||||
"completed": 1770361016339
|
||||
},
|
||||
"parentID": "msg_c31bd4c1b001xWoyoqqLd1Y28L",
|
||||
"modelID": "claude-haiku-4-5",
|
||||
"providerID": "anthropic",
|
||||
"mode": "build",
|
||||
"agent": "build",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent"
|
||||
},
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 2,
|
||||
"output": 78,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 13547,
|
||||
"write": 31
|
||||
}
|
||||
},
|
||||
"finish": "tool-calls"
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "prt_c31bd4ef7001AOk3Asd0o7j5fD",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd4c1c001iWeGOWfwf5UD2Y",
|
||||
"type": "step-start",
|
||||
"snapshot": "8793fb311ffba7bff79cd1b25f87942c22349ae3"
|
||||
},
|
||||
{
|
||||
"id": "prt_c31bd4ef8001ovzy76OXAT5Qin",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd4c1c001iWeGOWfwf5UD2Y",
|
||||
"type": "tool",
|
||||
"callID": "toolu_017THj1iZNELroZgmFbqC6Ma",
|
||||
"tool": "bash",
|
||||
"state": {
|
||||
"status": "completed",
|
||||
"input": {
|
||||
"command": "ls -la",
|
||||
"description": "List files in current directory"
|
||||
},
|
||||
"output": "total 24\ndrwxr-xr-x 3 nathan nathan 4096 Feb 5 22:56 .\ndrwxr-xr-x 5 nathan nathan 4096 Feb 5 22:44 ..\n-rw-r--r-- 1 nathan nathan 9120 Feb 5 22:56 capture-native.ts\ndrwxr-xr-x 3 nathan nathan 4096 Feb 5 22:45 snapshots\n",
|
||||
"title": "List files in current directory",
|
||||
"metadata": {
|
||||
"output": "total 24\ndrwxr-xr-x 3 nathan nathan 4096 Feb 5 22:56 .\ndrwxr-xr-x 5 nathan nathan 4096 Feb 5 22:44 ..\n-rw-r--r-- 1 nathan nathan 9120 Feb 5 22:56 capture-native.ts\ndrwxr-xr-x 3 nathan nathan 4096 Feb 5 22:45 snapshots\n",
|
||||
"exit": 0,
|
||||
"description": "List files in current directory",
|
||||
"truncated": false
|
||||
},
|
||||
"time": {
|
||||
"start": 1770361016309,
|
||||
"end": 1770361016330
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "prt_c31bd500e001MnhwCXaWI2pfAw",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd4c1c001iWeGOWfwf5UD2Y",
|
||||
"type": "step-finish",
|
||||
"reason": "tool-calls",
|
||||
"snapshot": "8793fb311ffba7bff79cd1b25f87942c22349ae3",
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 2,
|
||||
"output": 78,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 13547,
|
||||
"write": 31
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"id": "msg_c31bd5014001lZUdLPnaNuUzrb",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"role": "assistant",
|
||||
"time": {
|
||||
"created": 1770361016340,
|
||||
"completed": 1770361017458
|
||||
},
|
||||
"parentID": "msg_c31bd4c1b001xWoyoqqLd1Y28L",
|
||||
"modelID": "claude-haiku-4-5",
|
||||
"providerID": "anthropic",
|
||||
"mode": "build",
|
||||
"agent": "build",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent"
|
||||
},
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 5,
|
||||
"output": 38,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 13578,
|
||||
"write": 207
|
||||
}
|
||||
},
|
||||
"finish": "stop"
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "prt_c31bd53580017z4yaEbtkZX0zx",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd5014001lZUdLPnaNuUzrb",
|
||||
"type": "step-start",
|
||||
"snapshot": "8793fb311ffba7bff79cd1b25f87942c22349ae3"
|
||||
},
|
||||
{
|
||||
"id": "prt_c31bd53580021848cNw3geDcGF",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd5014001lZUdLPnaNuUzrb",
|
||||
"type": "text",
|
||||
"text": "Here are the top-level contents of the current directory:\n\n- **capture-native.ts** - A TypeScript file\n- **snapshots/** - A directory",
|
||||
"time": {
|
||||
"start": 1770361017436,
|
||||
"end": 1770361017436
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "prt_c31bd546d001cppsZFrg2ZJy7S",
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"messageID": "msg_c31bd5014001lZUdLPnaNuUzrb",
|
||||
"type": "step-finish",
|
||||
"reason": "stop",
|
||||
"snapshot": "8793fb311ffba7bff79cd1b25f87942c22349ae3",
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 5,
|
||||
"output": 38,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 13578,
|
||||
"write": 207
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
605
research/opencode-compat/snapshots/native/metadata-agent.json
Normal file
605
research/opencode-compat/snapshots/native/metadata-agent.json
Normal file
|
|
@ -0,0 +1,605 @@
|
|||
[
|
||||
{
|
||||
"name": "build",
|
||||
"description": "The default agent. Executes tools based on configured permissions.",
|
||||
"options": {},
|
||||
"permission": [
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "doom_loop",
|
||||
"action": "ask",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "question",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_enter",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_exit",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.example",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "question",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_enter",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
}
|
||||
],
|
||||
"mode": "primary",
|
||||
"native": true
|
||||
},
|
||||
{
|
||||
"name": "plan",
|
||||
"description": "Plan mode. Disallows all edit tools.",
|
||||
"options": {},
|
||||
"permission": [
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "doom_loop",
|
||||
"action": "ask",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "question",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_enter",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_exit",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.example",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "question",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_exit",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/plans/*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "edit",
|
||||
"pattern": "*",
|
||||
"action": "deny"
|
||||
},
|
||||
{
|
||||
"permission": "edit",
|
||||
"pattern": ".opencode/plans/*.md",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "edit",
|
||||
"pattern": "../.local/share/opencode/plans/*.md",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
}
|
||||
],
|
||||
"mode": "primary",
|
||||
"native": true
|
||||
},
|
||||
{
|
||||
"name": "general",
|
||||
"description": "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.",
|
||||
"permission": [
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "doom_loop",
|
||||
"action": "ask",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "question",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_enter",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_exit",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.example",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "todoread",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "todowrite",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
}
|
||||
],
|
||||
"options": {},
|
||||
"mode": "subagent",
|
||||
"native": true
|
||||
},
|
||||
{
|
||||
"name": "explore",
|
||||
"permission": [
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "doom_loop",
|
||||
"action": "ask",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "question",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_enter",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_exit",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.example",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "grep",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "glob",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "list",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "bash",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "webfetch",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "websearch",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "codesearch",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
}
|
||||
],
|
||||
"description": "Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. \"src/components/**/*.tsx\"), search code for keywords (eg. \"API endpoints\"), or answer questions about the codebase (eg. \"how do API endpoints work?\"). When calling this agent, specify the desired thoroughness level: \"quick\" for basic searches, \"medium\" for moderate exploration, or \"very thorough\" for comprehensive analysis across multiple locations and naming conventions.",
|
||||
"prompt": "You are a file search specialist. You excel at thoroughly navigating and exploring codebases.\n\nYour strengths:\n- Rapidly finding files using glob patterns\n- Searching code and text with powerful regex patterns\n- Reading and analyzing file contents\n\nGuidelines:\n- Use Glob for broad file pattern matching\n- Use Grep for searching file contents with regex\n- Use Read when you know the specific file path you need to read\n- Use Bash for file operations like copying, moving, or listing directory contents\n- Adapt your search approach based on the thoroughness level specified by the caller\n- Return file paths as absolute paths in your final response\n- For clear communication, avoid using emojis\n- Do not create any files, or run bash commands that modify the user's system state in any way\n\nComplete the user's search request efficiently and report your findings clearly.\n",
|
||||
"options": {},
|
||||
"mode": "subagent",
|
||||
"native": true
|
||||
},
|
||||
{
|
||||
"name": "compaction",
|
||||
"mode": "primary",
|
||||
"native": true,
|
||||
"hidden": true,
|
||||
"prompt": "You are a helpful AI assistant tasked with summarizing conversations.\n\nWhen asked to summarize, provide a detailed but concise summary of the conversation. \nFocus on information that would be helpful for continuing the conversation, including:\n- What was done\n- What is currently being worked on\n- Which files are being modified\n- What needs to be done next\n- Key user requests, constraints, or preferences that should persist\n- Important technical decisions and why they were made\n\nYour summary should be comprehensive enough to provide context but concise enough to be quickly understood.\n",
|
||||
"permission": [
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "doom_loop",
|
||||
"action": "ask",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "question",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_enter",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_exit",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.example",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
}
|
||||
],
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"name": "title",
|
||||
"mode": "primary",
|
||||
"options": {},
|
||||
"native": true,
|
||||
"hidden": true,
|
||||
"temperature": 0.5,
|
||||
"permission": [
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "doom_loop",
|
||||
"action": "ask",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "question",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_enter",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_exit",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.example",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
}
|
||||
],
|
||||
"prompt": "You are a title generator. You output ONLY a thread title. Nothing else.\n\n<task>\nGenerate a brief title that would help the user find this conversation later.\n\nFollow all rules in <rules>\nUse the <examples> so you know what a good title looks like.\nYour output must be:\n- A single line\n- ≤50 characters\n- No explanations\n</task>\n\n<rules>\n- you MUST use the same language as the user message you are summarizing\n- Title must be grammatically correct and read naturally - no word salad\n- Never include tool names in the title (e.g. \"read tool\", \"bash tool\", \"edit tool\")\n- Focus on the main topic or question the user needs to retrieve\n- Vary your phrasing - avoid repetitive patterns like always starting with \"Analyzing\"\n- When a file is mentioned, focus on WHAT the user wants to do WITH the file, not just that they shared it\n- Keep exact: technical terms, numbers, filenames, HTTP codes\n- Remove: the, this, my, a, an\n- Never assume tech stack\n- Never use tools\n- NEVER respond to questions, just generate a title for the conversation\n- The title should NEVER include \"summarizing\" or \"generating\" when generating a title\n- DO NOT SAY YOU CANNOT GENERATE A TITLE OR COMPLAIN ABOUT THE INPUT\n- Always output something meaningful, even if the input is minimal.\n- If the user message is short or conversational (e.g. \"hello\", \"lol\", \"what's up\", \"hey\"):\n → create a title that reflects the user's tone or intent (such as Greeting, Quick check-in, Light chat, Intro message, etc.)\n</rules>\n\n<examples>\n\"debug 500 errors in production\" → Debugging production 500 errors\n\"refactor user service\" → Refactoring user service\n\"why is app.js failing\" → app.js failure investigation\n\"implement rate limiting\" → Rate limiting implementation\n\"how do I connect postgres to my API\" → Postgres API connection\n\"best practices for React hooks\" → React hooks best practices\n\"@src/auth.ts can you add refresh token support\" → Auth refresh token support\n\"@utils/parser.ts this is broken\" → Parser bug fix\n\"look at @config.json\" → Config review\n\"@App.tsx add dark mode toggle\" → Dark mode toggle in App\n</examples>\n"
|
||||
},
|
||||
{
|
||||
"name": "summary",
|
||||
"mode": "primary",
|
||||
"options": {},
|
||||
"native": true,
|
||||
"hidden": true,
|
||||
"permission": [
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "allow",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "doom_loop",
|
||||
"action": "ask",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "question",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_enter",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "plan_exit",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.*",
|
||||
"action": "ask"
|
||||
},
|
||||
{
|
||||
"permission": "read",
|
||||
"pattern": "*.env.example",
|
||||
"action": "allow"
|
||||
},
|
||||
{
|
||||
"permission": "*",
|
||||
"action": "deny",
|
||||
"pattern": "*"
|
||||
},
|
||||
{
|
||||
"permission": "external_directory",
|
||||
"pattern": "/home/nathan/.local/share/opencode/tool-output/*",
|
||||
"action": "allow"
|
||||
}
|
||||
],
|
||||
"prompt": "Summarize what was done in this conversation. Write like a pull request description.\n\nRules:\n- 2-3 sentences max\n- Describe the changes made, not the process\n- Do not mention running tests, builds, or other validation steps\n- Do not explain what the user asked for\n- Write in first person (I added..., I fixed...)\n- Never ask questions or add new questions\n- If the conversation ends with an unanswered question to the user, preserve that exact question\n- If the conversation ends with an imperative statement or request to the user (e.g. \"Now please run the command and paste the console output\"), always include that exact request in the summary\n"
|
||||
}
|
||||
]
|
||||
102
research/opencode-compat/snapshots/native/metadata-config.json
Normal file
102
research/opencode-compat/snapshots/native/metadata-config.json
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
{
|
||||
"agent": {},
|
||||
"mode": {},
|
||||
"plugin": [],
|
||||
"command": {},
|
||||
"username": "nathan",
|
||||
"keybinds": {
|
||||
"leader": "ctrl+x",
|
||||
"app_exit": "ctrl+c,ctrl+d,<leader>q",
|
||||
"editor_open": "<leader>e",
|
||||
"theme_list": "<leader>t",
|
||||
"sidebar_toggle": "<leader>b",
|
||||
"scrollbar_toggle": "none",
|
||||
"username_toggle": "none",
|
||||
"status_view": "<leader>s",
|
||||
"session_export": "<leader>x",
|
||||
"session_new": "<leader>n",
|
||||
"session_list": "<leader>l",
|
||||
"session_timeline": "<leader>g",
|
||||
"session_fork": "none",
|
||||
"session_rename": "ctrl+r",
|
||||
"session_delete": "ctrl+d",
|
||||
"stash_delete": "ctrl+d",
|
||||
"model_provider_list": "ctrl+a",
|
||||
"model_favorite_toggle": "ctrl+f",
|
||||
"session_share": "none",
|
||||
"session_unshare": "none",
|
||||
"session_interrupt": "escape",
|
||||
"session_compact": "<leader>c",
|
||||
"messages_page_up": "pageup,ctrl+alt+b",
|
||||
"messages_page_down": "pagedown,ctrl+alt+f",
|
||||
"messages_line_up": "ctrl+alt+y",
|
||||
"messages_line_down": "ctrl+alt+e",
|
||||
"messages_half_page_up": "ctrl+alt+u",
|
||||
"messages_half_page_down": "ctrl+alt+d",
|
||||
"messages_first": "ctrl+g,home",
|
||||
"messages_last": "ctrl+alt+g,end",
|
||||
"messages_next": "none",
|
||||
"messages_previous": "none",
|
||||
"messages_last_user": "none",
|
||||
"messages_copy": "<leader>y",
|
||||
"messages_undo": "<leader>u",
|
||||
"messages_redo": "<leader>r",
|
||||
"messages_toggle_conceal": "<leader>h",
|
||||
"tool_details": "none",
|
||||
"model_list": "<leader>m",
|
||||
"model_cycle_recent": "f2",
|
||||
"model_cycle_recent_reverse": "shift+f2",
|
||||
"model_cycle_favorite": "none",
|
||||
"model_cycle_favorite_reverse": "none",
|
||||
"command_list": "ctrl+p",
|
||||
"agent_list": "<leader>a",
|
||||
"agent_cycle": "tab",
|
||||
"agent_cycle_reverse": "shift+tab",
|
||||
"variant_cycle": "ctrl+t",
|
||||
"input_clear": "ctrl+c",
|
||||
"input_paste": "ctrl+v",
|
||||
"input_submit": "return",
|
||||
"input_newline": "shift+return,ctrl+return,alt+return,ctrl+j",
|
||||
"input_move_left": "left,ctrl+b",
|
||||
"input_move_right": "right,ctrl+f",
|
||||
"input_move_up": "up",
|
||||
"input_move_down": "down",
|
||||
"input_select_left": "shift+left",
|
||||
"input_select_right": "shift+right",
|
||||
"input_select_up": "shift+up",
|
||||
"input_select_down": "shift+down",
|
||||
"input_line_home": "ctrl+a",
|
||||
"input_line_end": "ctrl+e",
|
||||
"input_select_line_home": "ctrl+shift+a",
|
||||
"input_select_line_end": "ctrl+shift+e",
|
||||
"input_visual_line_home": "alt+a",
|
||||
"input_visual_line_end": "alt+e",
|
||||
"input_select_visual_line_home": "alt+shift+a",
|
||||
"input_select_visual_line_end": "alt+shift+e",
|
||||
"input_buffer_home": "home",
|
||||
"input_buffer_end": "end",
|
||||
"input_select_buffer_home": "shift+home",
|
||||
"input_select_buffer_end": "shift+end",
|
||||
"input_delete_line": "ctrl+shift+d",
|
||||
"input_delete_to_line_end": "ctrl+k",
|
||||
"input_delete_to_line_start": "ctrl+u",
|
||||
"input_backspace": "backspace,shift+backspace",
|
||||
"input_delete": "ctrl+d,delete,shift+delete",
|
||||
"input_undo": "ctrl+-,super+z",
|
||||
"input_redo": "ctrl+.,super+shift+z",
|
||||
"input_word_forward": "alt+f,alt+right,ctrl+right",
|
||||
"input_word_backward": "alt+b,alt+left,ctrl+left",
|
||||
"input_select_word_forward": "alt+shift+f,alt+shift+right",
|
||||
"input_select_word_backward": "alt+shift+b,alt+shift+left",
|
||||
"input_delete_word_forward": "alt+d,alt+delete,ctrl+delete",
|
||||
"input_delete_word_backward": "ctrl+w,ctrl+backspace,alt+backspace",
|
||||
"history_previous": "up",
|
||||
"history_next": "down",
|
||||
"session_child_cycle": "<leader>right",
|
||||
"session_child_cycle_reverse": "<leader>left",
|
||||
"session_parent": "<leader>up",
|
||||
"terminal_suspend": "ctrl+z",
|
||||
"terminal_title_toggle": "none",
|
||||
"tips_toggle": "<leader>h"
|
||||
}
|
||||
}
|
||||
3716
research/opencode-compat/snapshots/native/metadata-providers.json
Normal file
3716
research/opencode-compat/snapshots/native/metadata-providers.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"id": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"slug": "witty-eagle",
|
||||
"version": "1.1.49",
|
||||
"projectID": "c4153c5335dc81f0e622888f1f387c4b84dc54d5",
|
||||
"directory": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"title": "New session - 2026-02-06T06:56:52.806Z",
|
||||
"time": {
|
||||
"created": 1770361012806,
|
||||
"updated": 1770361012806
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"id": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"slug": "witty-eagle",
|
||||
"version": "1.1.49",
|
||||
"projectID": "c4153c5335dc81f0e622888f1f387c4b84dc54d5",
|
||||
"directory": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"title": "Hello from OpenCode",
|
||||
"time": {
|
||||
"created": 1770361012806,
|
||||
"updated": 1770361017462
|
||||
},
|
||||
"summary": {
|
||||
"additions": 0,
|
||||
"deletions": 0,
|
||||
"files": 0
|
||||
}
|
||||
}
|
||||
156
research/opencode-compat/snapshots/native/session-events.json
Normal file
156
research/opencode-compat/snapshots/native/session-events.json
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
[
|
||||
{
|
||||
"type": "session.created",
|
||||
"properties": {
|
||||
"info": {
|
||||
"id": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"slug": "witty-eagle",
|
||||
"version": "1.1.49",
|
||||
"projectID": "c4153c5335dc81f0e622888f1f387c4b84dc54d5",
|
||||
"directory": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"title": "New session - 2026-02-06T06:56:52.806Z",
|
||||
"time": {
|
||||
"created": 1770361012806,
|
||||
"updated": 1770361012806
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.status",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.status",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.diff",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"diff": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.status",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.status",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"status": {
|
||||
"type": "idle"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.idle",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.diff",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"diff": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.status",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.status",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.diff",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"diff": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.status",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.status",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.diff",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"diff": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.status",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.status",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"status": {
|
||||
"type": "idle"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.idle",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "session.diff",
|
||||
"properties": {
|
||||
"sessionID": "ses_3ce42bdb9ffeEIUUu08AuKTJms",
|
||||
"diff": []
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
682
research/opencode-compat/snapshots/sandbox-agent/all-events.json
Normal file
682
research/opencode-compat/snapshots/sandbox-agent/all-events.json
Normal file
|
|
@ -0,0 +1,682 @@
|
|||
[
|
||||
{
|
||||
"properties": {},
|
||||
"type": "server.connected"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"branch": "main",
|
||||
"name": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"type": "worktree.ready"
|
||||
},
|
||||
{
|
||||
"properties": {},
|
||||
"type": "server.heartbeat"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"directory": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"id": "ses_1",
|
||||
"projectID": "proj_1",
|
||||
"slug": "session-ses_1",
|
||||
"time": {
|
||||
"created": 1770362164904,
|
||||
"updated": 1770362164904
|
||||
},
|
||||
"title": "Session ses_1",
|
||||
"version": "0"
|
||||
}
|
||||
},
|
||||
"type": "session.created"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sessionID": "ses_1",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
},
|
||||
"type": "session.status"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"id": "msg_1",
|
||||
"model": {
|
||||
"modelID": "mock",
|
||||
"providerID": "sandbox-agent"
|
||||
},
|
||||
"role": "user",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362164907,
|
||||
"created": 1770362164907
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_1",
|
||||
"part": {
|
||||
"id": "part_1",
|
||||
"messageID": "msg_1",
|
||||
"sessionID": "ses_1",
|
||||
"text": "echo Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362165109
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"delta": "echo Hello from sandbox-agent",
|
||||
"messageID": "msg_1_assistant",
|
||||
"part": {
|
||||
"id": "msg_1_assistant_text",
|
||||
"messageID": "msg_1_assistant",
|
||||
"sessionID": "ses_1",
|
||||
"text": "echo Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant_00000000000000000005",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362165309
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant_00000000000000000005",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362165511
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"delta": "Hello from sandbox-agent",
|
||||
"messageID": "msg_1_assistant_00000000000000000005",
|
||||
"part": {
|
||||
"id": "msg_1_assistant_00000000000000000005_text",
|
||||
"messageID": "msg_1_assistant_00000000000000000005",
|
||||
"sessionID": "ses_1",
|
||||
"text": "Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant_00000000000000000005",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362165511,
|
||||
"created": 1770362165511
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_1_assistant_00000000000000000005",
|
||||
"part": {
|
||||
"id": "msg_1_assistant_00000000000000000005_text",
|
||||
"messageID": "msg_1_assistant_00000000000000000005",
|
||||
"sessionID": "ses_1",
|
||||
"text": "Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sessionID": "ses_1",
|
||||
"status": {
|
||||
"type": "idle"
|
||||
}
|
||||
},
|
||||
"type": "session.status"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "session.idle"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sessionID": "ses_1",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
},
|
||||
"type": "session.status"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"id": "msg_2",
|
||||
"model": {
|
||||
"modelID": "mock",
|
||||
"providerID": "sandbox-agent"
|
||||
},
|
||||
"role": "user",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362166412,
|
||||
"created": 1770362166412
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2",
|
||||
"part": {
|
||||
"id": "part_2",
|
||||
"messageID": "msg_2",
|
||||
"sessionID": "ses_1",
|
||||
"text": "tool",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362166614
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"delta": "tool",
|
||||
"messageID": "msg_2_assistant",
|
||||
"part": {
|
||||
"id": "msg_2_assistant_text",
|
||||
"messageID": "msg_2_assistant",
|
||||
"sessionID": "ses_1",
|
||||
"text": "tool",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant_00000000000000000011",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362166815
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"callID": "mock_2_call",
|
||||
"id": "part_3",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"metadata": {},
|
||||
"sessionID": "ses_1",
|
||||
"state": {
|
||||
"input": {
|
||||
"query": "example"
|
||||
},
|
||||
"raw": "{\"query\":\"example\"}",
|
||||
"status": "pending"
|
||||
},
|
||||
"tool": "mock.search",
|
||||
"type": "tool"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant_00000000000000000011",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362167016,
|
||||
"created": 1770362167016
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"callID": "mock_2_call",
|
||||
"id": "part_3",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"metadata": {},
|
||||
"sessionID": "ses_1",
|
||||
"state": {
|
||||
"input": {
|
||||
"query": "example"
|
||||
},
|
||||
"status": "running",
|
||||
"time": {
|
||||
"start": 1770362167016
|
||||
}
|
||||
},
|
||||
"tool": "mock.search",
|
||||
"type": "tool"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant_00000000000000000011",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362167218
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"callID": "mock_2_call",
|
||||
"id": "part_3",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"metadata": {},
|
||||
"sessionID": "ses_1",
|
||||
"state": {
|
||||
"input": {
|
||||
"query": "example"
|
||||
},
|
||||
"status": "running",
|
||||
"time": {
|
||||
"start": 1770362167218
|
||||
}
|
||||
},
|
||||
"tool": "mock.search",
|
||||
"type": "tool"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant_00000000000000000011",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362167418,
|
||||
"created": 1770362167418
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"filename": "mock_2/readme.md",
|
||||
"id": "part_4",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"mime": "text/plain",
|
||||
"sessionID": "ses_1",
|
||||
"type": "file",
|
||||
"url": "file://mock_2/readme.md"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"filename": "mock_2/output.txt",
|
||||
"id": "part_5",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"mime": "text/plain",
|
||||
"sessionID": "ses_1",
|
||||
"source": {
|
||||
"path": "mock_2/output.txt",
|
||||
"text": {
|
||||
"end": 13,
|
||||
"start": 0,
|
||||
"value": "+mock output\n"
|
||||
},
|
||||
"type": "file"
|
||||
},
|
||||
"type": "file",
|
||||
"url": "file://mock_2/output.txt"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"file": "mock_2/output.txt"
|
||||
},
|
||||
"type": "file.edited"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"filename": "mock_2/patch.txt",
|
||||
"id": "part_6",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"mime": "text/x-diff",
|
||||
"sessionID": "ses_1",
|
||||
"source": {
|
||||
"path": "mock_2/patch.txt",
|
||||
"text": {
|
||||
"end": 26,
|
||||
"start": 0,
|
||||
"value": "@@ -1,1 +1,1 @@\n-old\n+new\n"
|
||||
},
|
||||
"type": "file"
|
||||
},
|
||||
"type": "file",
|
||||
"url": "file://mock_2/patch.txt"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"file": "mock_2/patch.txt"
|
||||
},
|
||||
"type": "file.edited"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"callID": "mock_2_call",
|
||||
"id": "part_3",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"metadata": {},
|
||||
"sessionID": "ses_1",
|
||||
"state": {
|
||||
"input": {
|
||||
"query": "example"
|
||||
},
|
||||
"metadata": {},
|
||||
"output": "mock search results",
|
||||
"status": "error",
|
||||
"time": {
|
||||
"end": 1770362167418,
|
||||
"start": 1770362167418
|
||||
}
|
||||
},
|
||||
"tool": "mock.search",
|
||||
"type": "tool"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
[
|
||||
{
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"id": "msg_1",
|
||||
"model": {
|
||||
"modelID": "mock",
|
||||
"providerID": "sandbox-agent"
|
||||
},
|
||||
"role": "user",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362164907,
|
||||
"created": 1770362164907
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "part_1",
|
||||
"messageID": "msg_1",
|
||||
"sessionID": "ses_1",
|
||||
"text": "echo Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362165109
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "msg_1_assistant_text",
|
||||
"messageID": "msg_1_assistant",
|
||||
"sessionID": "ses_1",
|
||||
"text": "echo Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant_00000000000000000005",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362165511,
|
||||
"created": 1770362165511
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "msg_1_assistant_00000000000000000005_text",
|
||||
"messageID": "msg_1_assistant_00000000000000000005",
|
||||
"sessionID": "ses_1",
|
||||
"text": "Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1,269 @@
|
|||
[
|
||||
{
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"id": "msg_1",
|
||||
"model": {
|
||||
"modelID": "mock",
|
||||
"providerID": "sandbox-agent"
|
||||
},
|
||||
"role": "user",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362164907,
|
||||
"created": 1770362164907
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "part_1",
|
||||
"messageID": "msg_1",
|
||||
"sessionID": "ses_1",
|
||||
"text": "echo Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362165109
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "msg_1_assistant_text",
|
||||
"messageID": "msg_1_assistant",
|
||||
"sessionID": "ses_1",
|
||||
"text": "echo Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant_00000000000000000005",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362165511,
|
||||
"created": 1770362165511
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "msg_1_assistant_00000000000000000005_text",
|
||||
"messageID": "msg_1_assistant_00000000000000000005",
|
||||
"sessionID": "ses_1",
|
||||
"text": "Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"id": "msg_2",
|
||||
"model": {
|
||||
"modelID": "mock",
|
||||
"providerID": "sandbox-agent"
|
||||
},
|
||||
"role": "user",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362166412,
|
||||
"created": 1770362166412
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "part_2",
|
||||
"messageID": "msg_2",
|
||||
"sessionID": "ses_1",
|
||||
"text": "tool",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362166614
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"id": "msg_2_assistant_text",
|
||||
"messageID": "msg_2_assistant",
|
||||
"sessionID": "ses_1",
|
||||
"text": "tool",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant_00000000000000000011",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362167418,
|
||||
"created": 1770362167418
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"parts": [
|
||||
{
|
||||
"callID": "mock_2_call",
|
||||
"id": "part_3",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"metadata": {},
|
||||
"sessionID": "ses_1",
|
||||
"state": {
|
||||
"input": {
|
||||
"query": "example"
|
||||
},
|
||||
"metadata": {},
|
||||
"output": "mock search results",
|
||||
"status": "error",
|
||||
"time": {
|
||||
"end": 1770362167418,
|
||||
"start": 1770362167418
|
||||
}
|
||||
},
|
||||
"tool": "mock.search",
|
||||
"type": "tool"
|
||||
},
|
||||
{
|
||||
"filename": "mock_2/readme.md",
|
||||
"id": "part_4",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"mime": "text/plain",
|
||||
"sessionID": "ses_1",
|
||||
"type": "file",
|
||||
"url": "file://mock_2/readme.md"
|
||||
},
|
||||
{
|
||||
"filename": "mock_2/output.txt",
|
||||
"id": "part_5",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"mime": "text/plain",
|
||||
"sessionID": "ses_1",
|
||||
"source": {
|
||||
"path": "mock_2/output.txt",
|
||||
"text": {
|
||||
"end": 13,
|
||||
"start": 0,
|
||||
"value": "+mock output\n"
|
||||
},
|
||||
"type": "file"
|
||||
},
|
||||
"type": "file",
|
||||
"url": "file://mock_2/output.txt"
|
||||
},
|
||||
{
|
||||
"filename": "mock_2/patch.txt",
|
||||
"id": "part_6",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"mime": "text/x-diff",
|
||||
"sessionID": "ses_1",
|
||||
"source": {
|
||||
"path": "mock_2/patch.txt",
|
||||
"text": {
|
||||
"end": 26,
|
||||
"start": 0,
|
||||
"value": "@@ -1,1 +1,1 @@\n-old\n+new\n"
|
||||
},
|
||||
"type": "file"
|
||||
},
|
||||
"type": "file",
|
||||
"url": "file://mock_2/patch.txt"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
[
|
||||
{
|
||||
"description": "Sandbox Agent compatibility layer",
|
||||
"hidden": false,
|
||||
"mode": "all",
|
||||
"name": "Sandbox Agent",
|
||||
"native": false,
|
||||
"options": {},
|
||||
"permission": []
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"directory": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"id": "ses_1",
|
||||
"projectID": "proj_1",
|
||||
"slug": "session-ses_1",
|
||||
"time": {
|
||||
"created": 1770362164904,
|
||||
"updated": 1770362164904
|
||||
},
|
||||
"title": "Session ses_1",
|
||||
"version": "0"
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"directory": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"id": "ses_1",
|
||||
"projectID": "proj_1",
|
||||
"slug": "session-ses_1",
|
||||
"time": {
|
||||
"created": 1770362164904,
|
||||
"updated": 1770362164904
|
||||
},
|
||||
"title": "Session ses_1",
|
||||
"version": "0"
|
||||
}
|
||||
|
|
@ -0,0 +1,655 @@
|
|||
[
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"directory": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"id": "ses_1",
|
||||
"projectID": "proj_1",
|
||||
"slug": "session-ses_1",
|
||||
"time": {
|
||||
"created": 1770362164904,
|
||||
"updated": 1770362164904
|
||||
},
|
||||
"title": "Session ses_1",
|
||||
"version": "0"
|
||||
}
|
||||
},
|
||||
"type": "session.created"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sessionID": "ses_1",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
},
|
||||
"type": "session.status"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"id": "msg_1",
|
||||
"model": {
|
||||
"modelID": "mock",
|
||||
"providerID": "sandbox-agent"
|
||||
},
|
||||
"role": "user",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362164907,
|
||||
"created": 1770362164907
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_1",
|
||||
"part": {
|
||||
"id": "part_1",
|
||||
"messageID": "msg_1",
|
||||
"sessionID": "ses_1",
|
||||
"text": "echo Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362165109
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"delta": "echo Hello from sandbox-agent",
|
||||
"messageID": "msg_1_assistant",
|
||||
"part": {
|
||||
"id": "msg_1_assistant_text",
|
||||
"messageID": "msg_1_assistant",
|
||||
"sessionID": "ses_1",
|
||||
"text": "echo Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant_00000000000000000005",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362165309
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant_00000000000000000005",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362165511
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"delta": "Hello from sandbox-agent",
|
||||
"messageID": "msg_1_assistant_00000000000000000005",
|
||||
"part": {
|
||||
"id": "msg_1_assistant_00000000000000000005_text",
|
||||
"messageID": "msg_1_assistant_00000000000000000005",
|
||||
"sessionID": "ses_1",
|
||||
"text": "Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_1_assistant_00000000000000000005",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_1",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362165511,
|
||||
"created": 1770362165511
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_1_assistant_00000000000000000005",
|
||||
"part": {
|
||||
"id": "msg_1_assistant_00000000000000000005_text",
|
||||
"messageID": "msg_1_assistant_00000000000000000005",
|
||||
"sessionID": "ses_1",
|
||||
"text": "Hello from sandbox-agent",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sessionID": "ses_1",
|
||||
"status": {
|
||||
"type": "idle"
|
||||
}
|
||||
},
|
||||
"type": "session.status"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "session.idle"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sessionID": "ses_1",
|
||||
"status": {
|
||||
"type": "busy"
|
||||
}
|
||||
},
|
||||
"type": "session.status"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"id": "msg_2",
|
||||
"model": {
|
||||
"modelID": "mock",
|
||||
"providerID": "sandbox-agent"
|
||||
},
|
||||
"role": "user",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362166412,
|
||||
"created": 1770362166412
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2",
|
||||
"part": {
|
||||
"id": "part_2",
|
||||
"messageID": "msg_2",
|
||||
"sessionID": "ses_1",
|
||||
"text": "tool",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362166614
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"delta": "tool",
|
||||
"messageID": "msg_2_assistant",
|
||||
"part": {
|
||||
"id": "msg_2_assistant_text",
|
||||
"messageID": "msg_2_assistant",
|
||||
"sessionID": "ses_1",
|
||||
"text": "tool",
|
||||
"type": "text"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant_00000000000000000011",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362166815
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"callID": "mock_2_call",
|
||||
"id": "part_3",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"metadata": {},
|
||||
"sessionID": "ses_1",
|
||||
"state": {
|
||||
"input": {
|
||||
"query": "example"
|
||||
},
|
||||
"raw": "{\"query\":\"example\"}",
|
||||
"status": "pending"
|
||||
},
|
||||
"tool": "mock.search",
|
||||
"type": "tool"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant_00000000000000000011",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362167016,
|
||||
"created": 1770362167016
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"callID": "mock_2_call",
|
||||
"id": "part_3",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"metadata": {},
|
||||
"sessionID": "ses_1",
|
||||
"state": {
|
||||
"input": {
|
||||
"query": "example"
|
||||
},
|
||||
"status": "running",
|
||||
"time": {
|
||||
"start": 1770362167016
|
||||
}
|
||||
},
|
||||
"tool": "mock.search",
|
||||
"type": "tool"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant_00000000000000000011",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"created": 1770362167218
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"callID": "mock_2_call",
|
||||
"id": "part_3",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"metadata": {},
|
||||
"sessionID": "ses_1",
|
||||
"state": {
|
||||
"input": {
|
||||
"query": "example"
|
||||
},
|
||||
"status": "running",
|
||||
"time": {
|
||||
"start": 1770362167218
|
||||
}
|
||||
},
|
||||
"tool": "mock.search",
|
||||
"type": "tool"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"info": {
|
||||
"agent": "build",
|
||||
"cost": 0,
|
||||
"finish": "stop",
|
||||
"id": "msg_2_assistant_00000000000000000011",
|
||||
"mode": "default",
|
||||
"modelID": "mock",
|
||||
"parentID": "msg_2",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent/research/opencode-compat"
|
||||
},
|
||||
"providerID": "sandbox-agent",
|
||||
"role": "assistant",
|
||||
"sessionID": "ses_1",
|
||||
"time": {
|
||||
"completed": 1770362167418,
|
||||
"created": 1770362167418
|
||||
},
|
||||
"tokens": {
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
},
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0
|
||||
}
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"filename": "mock_2/readme.md",
|
||||
"id": "part_4",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"mime": "text/plain",
|
||||
"sessionID": "ses_1",
|
||||
"type": "file",
|
||||
"url": "file://mock_2/readme.md"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"filename": "mock_2/output.txt",
|
||||
"id": "part_5",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"mime": "text/plain",
|
||||
"sessionID": "ses_1",
|
||||
"source": {
|
||||
"path": "mock_2/output.txt",
|
||||
"text": {
|
||||
"end": 13,
|
||||
"start": 0,
|
||||
"value": "+mock output\n"
|
||||
},
|
||||
"type": "file"
|
||||
},
|
||||
"type": "file",
|
||||
"url": "file://mock_2/output.txt"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"filename": "mock_2/patch.txt",
|
||||
"id": "part_6",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"mime": "text/x-diff",
|
||||
"sessionID": "ses_1",
|
||||
"source": {
|
||||
"path": "mock_2/patch.txt",
|
||||
"text": {
|
||||
"end": 26,
|
||||
"start": 0,
|
||||
"value": "@@ -1,1 +1,1 @@\n-old\n+new\n"
|
||||
},
|
||||
"type": "file"
|
||||
},
|
||||
"type": "file",
|
||||
"url": "file://mock_2/patch.txt"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"part": {
|
||||
"callID": "mock_2_call",
|
||||
"id": "part_3",
|
||||
"messageID": "msg_2_assistant_00000000000000000011",
|
||||
"metadata": {},
|
||||
"sessionID": "ses_1",
|
||||
"state": {
|
||||
"input": {
|
||||
"query": "example"
|
||||
},
|
||||
"metadata": {},
|
||||
"output": "mock search results",
|
||||
"status": "error",
|
||||
"time": {
|
||||
"end": 1770362167418,
|
||||
"start": 1770362167418
|
||||
}
|
||||
},
|
||||
"tool": "mock.search",
|
||||
"type": "tool"
|
||||
},
|
||||
"sessionID": "ses_1"
|
||||
},
|
||||
"type": "message.part.updated"
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"ses_1": {
|
||||
"type": "idle"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue