repositories / pi-ext
pi-ext
bugabingas pi extensions
owned by admin
extensions/rtk/demo/scene.json
Raw{
"title": "rtk",
"extensions": ["rtk", "footer", "model-info"],
"cols": 100,
"rows": 24,
"files": {
"src/retry.ts": "export const retry = 1;\n",
"src/upload.ts": "export const upload = 2;\n",
"README.md": "# demo\n"
},
"setup": [
["git", "init", "-q", "-b", "main"],
["git", "config", "user.email", "demo@example.com"],
["git", "config", "user.name", "demo"],
["git", "add", "README.md"],
["git", "commit", "-q", "-m", "docs: add readme"],
["git", "add", "src/retry.ts"],
["git", "commit", "-q", "-m", "feat: retry with backoff"],
["git", "add", "src/upload.ts"],
["git", "commit", "-q", "-m", "feat: route uploads through retry"]
],
"turns": [
{
"text": "Checking recent history and the tree.",
"tool": {
"name": "bash",
"arguments": {
"command": "git log --oneline -5"
}
},
"usage": {
"input": 1800,
"output": 30
}
},
{
"tool": {
"name": "bash",
"arguments": {
"command": "git status"
}
},
"usage": {
"input": 2100,
"output": 20
}
},
{
"text": "Three commits: readme, retry with backoff, uploads routed through retry. The tree is clean.",
"usage": {
"input": 2400,
"output": 26
}
}
],
"steps": [
{
"expect": "demo-model",
"hold": 6
},
{
"key": "ctrl-o",
"hold": 0.5
},
{
"type": "what happened recently in this repo?",
"key": "enter",
"expect": "The tree is clean",
"timeout": 30000,
"hold": 16
},
{
"key": "ctrl-c",
"hold": 0.3
},
{
"key": "ctrl-c"
}
]
}