23 lines
800 B
PHP
23 lines
800 B
PHP
<?php
|
|
header('Content-Type: application/json');
|
|
header('Access-Control-Allow-Origin: *');
|
|
$action = $_GET['action'] ?? 'status';
|
|
|
|
switch ($action) {
|
|
case 'status':
|
|
echo json_encode(['ok' => true, 'engine' => 'Goose', 'capabilities' => [
|
|
'autonomous_coding' => true,
|
|
'local_execution' => true,
|
|
'task_planning' => true,
|
|
'multi_file_edit' => true,
|
|
'test_generation' => true
|
|
], 'status' => 'ready']);
|
|
break;
|
|
case 'execute':
|
|
$data = json_decode(file_get_contents('php://input'), true);
|
|
echo json_encode(['ok' => true, 'task' => $data['task'] ?? '', 'status' => 'queued', 'engine' => 'Goose agentic']);
|
|
break;
|
|
default:
|
|
echo json_encode(['error' => 'action: status|execute']);
|
|
}
|