mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 19:34:29 +00:00
Boot-twice (image/boot-twice/): provisions the golden image in a container with the real provision-golden.sh, then boots the same disk twice through the control plane's own boot steps (entry-point probe, startOrcad with the workspace prelude, ensureEntryPoints). Each start is a new kernel boot id. The second boot runs offline behind a DNS sink, and must install, fetch and redo nothing (docker diff allowlist, logged lookups, sampled command lines). It must come up, carry this tree's entry points and stamp, and match every manifest version pin. ~15 s cached, ~5 min cold. It catches the pre-#781 OpenCode first run that repeated on every wake. Workflow: cloud-vm-boot-twice.yml (PRs touching image/**, GHA layer cache). Egress probe (scripts/egress-probe.ts): against dev, with bogus tokens and an echo sandbox. Firewall layer: egressPolicy()'s real policy forwards placeholders for chatgpt.com, api.anthropic.com, api.github.com and github.com with other auth headers untouched. Credential hosts fail closed, and anonymous git works without an App token (#758). Swap layer: the dev egress proxy swaps a bogus ANTHROPIC_API_KEY in for its placeholder on a custom base URL, and leaks no Vercel hop headers. Workflow: cloud-egress-probe.yml (dispatch + nightly; skips without secrets). Fix found by the harness: provision-golden.sh linked a release bundle's runtimes dir, and every VM script's `find .../runtimes -type f` skips a symlinked start point, so --release goldens had no node. Move the tree instead. No entry-point change (stamp unchanged).
30 lines
488 B
JSON
30 lines
488 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2022",
|
|
"module": "es2022",
|
|
"moduleResolution": "bundler",
|
|
"lib": [
|
|
"es2024"
|
|
],
|
|
"types": [
|
|
"@cloudflare/workers-types",
|
|
"@types/node"
|
|
],
|
|
"strict": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"noEmit": true,
|
|
"skipLibCheck": true,
|
|
"paths": {
|
|
"@xterm/xterm": [
|
|
"./types/xterm-theme.d.ts"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"src",
|
|
"test",
|
|
"image",
|
|
"scripts"
|
|
]
|
|
}
|