Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/pipi/demo/scene.json

Raw
{
	"title": "pipi child review",
	"extensions": ["pipi"],
	"cols": 110,
	"rows": 40,
	"persistSession": true,
	"settings": {
		"defaultTools": ["read", "pipi"]
	},
	"files": {
		"src/auth.ts": "export function isAuthenticated(token: string) {\n  return token.length > 0;\n}\n"
	},
	"turns": [
		{
			"tool": {
				"name": "pipi",
				"arguments": {
					"prompt": "Review src/auth.ts. Report concrete issues without changing files.",
					"tools": ["read"]
				}
			}
		},
		{
			"text": "Review complete. The child found that whitespace-only tokens pass authentication; no files changed."
		}
	],
	"childTurns": [
		{
			"tool": {
				"name": "read",
				"arguments": {
					"path": "src/auth.ts"
				}
			}
		},
		{
			"text": "## Finding\n\n**Whitespace-only tokens are accepted.**\n`src/auth.ts:2` checks length without trimming.\n\nReject empty or whitespace-only tokens before authentication.\nNo files changed."
		}
	],
	"steps": [
		{
			"expect": "demo-model",
			"hold": 6
		},
		{
			"type": "Delegate a focused review of src/auth.ts; do not edit files.",
			"key": "enter",
			"expect": "Review complete",
			"hold": 6
		},
		{
			"key": "ctrl-o",
			"expect": "Whitespace-only tokens",
			"hold": 6
		},
		{
			"key": "ctrl-c",
			"hold": 0.2
		},
		{
			"key": "ctrl-c"
		}
	]
}