repositories / pi-ext
pi-ext
bugabingas pi extensions
owned by admin
extensions/masks/demo/scene.json
Raw{
"title": "masks",
"extensions": ["masks", "footer", "model-info"],
"cols": 100,
"rows": 24,
"settings": {
"masks": {
"items": [
{
"name": "fast",
"model": "demo/demo-model",
"thinkingLevel": "off",
"shortcut": "alt+1"
},
{
"name": "deep",
"model": "demo/demo-deep",
"thinkingLevel": "high",
"shortcut": "alt+2"
},
{
"name": "plan",
"model": "demo/demo-deep",
"thinkingLevel": "high",
"shortcut": "alt+3",
"tools": ["read", "grep", "find", "ls"],
"instructions": "Plan only. Produce numbered steps with the files each touches. Never edit or write."
}
]
}
},
"files": {
"src/upload.ts": "export const upload = async (f: string) => { /* TODO retry */ };\n"
},
"turns": [
{
"text": "Plan, no edits:\n1. Add withRetry(run) in src/retry.ts with exponential backoff capped at 2 s.\n2. Wrap send() in src/upload.ts with withRetry.\n3. Cover three timeouts then success, and a 400 that never retries, in src/retry.test.ts.",
"usage": {
"input": 2300,
"output": 90
}
}
],
"steps": [
{
"expect": "demo-model",
"hold": 6
},
{
"key": "alt-2",
"expect": "demo-deep",
"hold": 10.0
},
{
"type": "/masks plan",
"key": "enter",
"expect": "plan",
"hold": 8
},
{
"type": "add retries to the upload path",
"key": "enter",
"expect": "never retries",
"hold": 14.0
},
{
"key": "alt-1",
"fresh": true,
"expect": "demo-model",
"hold": 10.0
},
{
"key": "ctrl-c",
"hold": 0.3
},
{
"key": "ctrl-c"
}
]
}