fix: forward ONECLI_API_KEY to OneCLI SDK for authenticated container config

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
johnnyfish
2026-04-15 00:20:28 +03:00
parent 934f063aff
commit 8b5b5818e0
2 changed files with 5 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ import {
DATA_DIR,
GROUPS_DIR,
IDLE_TIMEOUT,
ONECLI_API_KEY,
ONECLI_URL,
TIMEZONE,
} from './config.js';
@@ -28,7 +29,7 @@ import { OneCLI } from '@onecli-sh/sdk';
import { validateAdditionalMounts } from './mount-security.js';
import { RegisteredGroup } from './types.js';
const onecli = new OneCLI({ url: ONECLI_URL });
const onecli = new OneCLI({ url: ONECLI_URL, apiKey: ONECLI_API_KEY });
// Sentinel markers for robust output parsing (must match agent-runner)
const OUTPUT_START_MARKER = '---NANOCLAW_OUTPUT_START---';