Skip to content

Commit 17fa4e8

Browse files
committed
fix: document supported Harness environment in release packages
1 parent 084e46e commit 17fa4e8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎scripts/package-app.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,18 @@ Open the local address printed in the terminal. Your papers and compiler cache a
5555
Create \`.env\` beside \`${executableName}\` (or copy \`.env.example\` when present):
5656
5757
\`\`\`dotenv
58-
OPENAI_API_KEY=...
59-
OPENAI_BASE_URL=https://api.openai.com/v1
60-
FASTWRITE_OPENAI_MODEL=gpt-5.6
58+
FASTWRITE_HARNESS=codex
59+
FASTWRITE_HARNESS_API_KEY=...
60+
FASTWRITE_HARNESS_BASE_URL=https://api.openai.com/v1
61+
FASTWRITE_HARNESS_MODEL=gpt-5.6
62+
FASTWRITE_HARNESS_WIRE_API=chat
6163
\`\`\`
6264
6365
The API base URL and model are optional. The \`skills/\` directory must remain beside the binary. Keep \`paperdata/\` when upgrading FastWrite; it contains your local workspace data.
6466
`);
6567

6668
if (await exists(sourceEnvironment) && !await exists(releaseEnvironment)) await cp(sourceEnvironment, releaseEnvironment);
67-
else if (!await exists(releaseEnvironment)) await Bun.write(join(output, ".env.example"), "# Copy to .env and configure your AI provider.\n# OPENAI_API_KEY=...\n# OPENAI_BASE_URL=https://api.openai.com/v1\n# FASTWRITE_OPENAI_MODEL=gpt-5.6\n");
69+
else if (!await exists(releaseEnvironment)) await Bun.write(join(output, ".env.example"), "# Copy to .env and configure your AI provider.\n# FASTWRITE_HARNESS=codex\n# FASTWRITE_HARNESS_API_KEY=...\n# FASTWRITE_HARNESS_BASE_URL=https://api.openai.com/v1\n# FASTWRITE_HARNESS_MODEL=gpt-5.6\n# FASTWRITE_HARNESS_WIRE_API=chat\n");
6870

6971
if (!windowsTarget && await Bun.spawn(["chmod", "+x", executablePath]).exited !== 0) throw new Error("Failed to mark the packaged binary executable");
7072

0 commit comments

Comments
 (0)