mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 19:27:38 +01:00
"Builder" meant three things on Loki's screens: the machine that runs
agent work ("Cloud builder", "Waiting for a builder"), the role on a
project, and the approved builder a customer books through Bitbaum. The
person keeps the word; the machine becomes a runner, the word the code
and the desktop app already use (box-runner, Fleet Runner, "Hosted
runner"). Not "engine": on screen that is already the model and
subscription a change is built with.
- every user-facing string where "builder" meant the machine, with
EXECUTOR_COPY as the source, plus docs, quickstart, pricing and voice
- unchanged: the Builder role, "a builder or owner can start work",
people who build ("App builders", "for one builder running Loki"),
the site widget's "Send to builder" (the site's maker), stored
transcript parsing, and internal codes and paths (needs-builder,
cloud-builder-private, /api/builder/presence)
- tests that pin the wording follow it
Claude-Session: https://claude.ai/code/session_019MDtmw5m9WhdN77N2YeqDm
Co-authored-by: Claude <noreply@anthropic.com>
27 lines
1.2 KiB
TypeScript
27 lines
1.2 KiB
TypeScript
/**
|
|
* A builder refuses to launch an agent CLI it does not have, in words
|
|
* (src/lib/agents/launch-check.ts). Before, a Codex project sent to the cloud
|
|
* builder opened a terminal on "codex: command not found" and the run read as
|
|
* an agent that never answered.
|
|
*
|
|
* Run: npx tsx scripts/test/agent-launch-check.ts
|
|
*/
|
|
import assert from "node:assert/strict";
|
|
import { agentNotInstalledMessage, missingAgentReason } from "@/lib/agents/launch-check";
|
|
|
|
const cloud = agentNotInstalledMessage("Codex", "cloud");
|
|
assert.match(cloud, /^Codex is not installed on the cloud runner, so nothing was started\./);
|
|
assert.match(cloud, /Switch this project to an agent installed there/);
|
|
assert.match(cloud, /or install Codex on the cloud runner/);
|
|
assert.match(agentNotInstalledMessage("Grok", "local"), /not installed on this computer/);
|
|
assert.match(agentNotInstalledMessage("Grok", null), /not installed on this runner/);
|
|
|
|
assert.equal(missingAgentReason("claude", "cloud"), null, "Claude is never refused here");
|
|
assert.equal(
|
|
missingAgentReason("no-such-agent", "cloud"),
|
|
null,
|
|
"unknown ids are refused elsewhere",
|
|
);
|
|
|
|
console.log("✓ agent-launch-check: 7 checks passed");
|