Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
4b7a4a2
refactor(cli): extract sandbox live state helpers
cv May 2, 2026
2ce87dd
refactor(cli): extract sandbox skill install action
cv May 2, 2026
4cd3cf3
refactor(cli): extract sandbox connect action
cv May 3, 2026
e9dd46e
refactor(cli): extract sandbox status action
cv May 3, 2026
aab6c86
refactor(cli): extract sandbox doctor action
cv May 3, 2026
8908521
refactor(cli): extract sandbox destroy action
cv May 3, 2026
56e4f05
refactor(cli): extract sandbox rebuild action
cv May 3, 2026
8bf1958
refactor(cli): extract upgrade sandboxes action
cv May 3, 2026
38eb84d
refactor(cli): remove runtime bridge
cv May 3, 2026
b2ad5da
refactor(cli): remove legacy dispatch fallbacks
cv May 3, 2026
edd2650
refactor(cli): expose explicit main entrypoint
cv May 3, 2026
a15da95
refactor(cli): add oclif examples for utility commands
cv May 3, 2026
4f57ebb
refactor(cli): validate logs flags with oclif
cv May 3, 2026
8b2d077
refactor(cli): improve sandbox diagnostic command metadata
cv May 3, 2026
a09cc51
refactor(cli): tighten policy and channel parser validation
cv May 3, 2026
75857dc
refactor(cli): improve snapshot command metadata
cv May 3, 2026
11c0676
refactor(cli): require skill install path in oclif
cv May 3, 2026
05f9eca
refactor(cli): add lifecycle confirmation flag aliases
cv May 3, 2026
4ebeae4
refactor(cli): split share into oclif subcommands
cv May 3, 2026
7d72437
Revert "refactor(cli): split share into oclif subcommands"
cv May 3, 2026
0ee5ca5
refactor(cli): split share into oclif subcommands
cv May 3, 2026
928219c
refactor(cli): model debug flags with oclif
cv May 3, 2026
36cce5e
refactor(cli): model onboard flags with oclif
cv May 3, 2026
702afb1
docs: sync oclif UX command reference
cv May 3, 2026
3224350
refactor(cli): extract public argv normalizer
cv May 3, 2026
cd4cdb8
refactor(cli): rename oclif dispatch module
cv May 3, 2026
9499ca6
refactor(cli): normalize policy command ids
cv May 3, 2026
42028ef
test(cli): require oclif command metadata
cv May 3, 2026
a05c6b3
refactor(cli): return typed debug parse results
cv May 3, 2026
1875fe9
refactor(cli): add public command display ids
cv May 3, 2026
36f1dbe
refactor(cli): use oclif summaries in root help
cv May 3, 2026
78bfd5a
refactor(cli): table-drive sandbox dispatch
cv May 3, 2026
96ce61f
refactor(cli): normalize gateway token command id
cv May 3, 2026
266ebc9
refactor(cli): render public oclif help
cv May 3, 2026
dc98994
refactor(cli): add shared oclif command base
cv May 3, 2026
d0d2a70
refactor(cli): use oclif flag relationships
cv May 3, 2026
8396c06
refactor(cli): pass lifecycle typed options
cv May 3, 2026
1532b19
refactor(cli): parse durations with oclif flags
cv May 3, 2026
7c0445a
refactor(cli): project public help through oclif
cv May 3, 2026
3978c32
test(cli): cover oclif metadata routing helpers
cv May 3, 2026
591eabb
test(cli): cover global oclif command adapters
cv May 3, 2026
8a6ecbc
test(cli): cover sandbox oclif command adapters
cv May 3, 2026
e5aa22f
refactor(cli): split share oclif commands
cv May 3, 2026
e179336
test(cli): narrow sandbox logs coverage ignores
cv May 3, 2026
a629813
test(cli): cover remaining global oclif adapters
cv May 3, 2026
c5954e7
test(cli): cover credentials oclif adapter
cv May 3, 2026
3380de9
test(cli): cover runtime utility helpers
cv May 3, 2026
f60a190
test(cli): improve global adapter coverage
cv May 3, 2026
78a16d1
merge: sync simple global adapter coverage
cv May 3, 2026
a58dc90
merge: sync credentials adapter coverage
cv May 3, 2026
034454f
merge: include credentials adapter coverage
cv May 3, 2026
28bc497
merge: sync combined global adapter coverage
cv May 3, 2026
e9ed6ba
test(cli): cover global action facade
cv May 3, 2026
00b288c
merge: sync global action facade coverage
cv May 3, 2026
7bd5f32
test(cli): stabilize coverage dist sourcemaps
cv May 4, 2026
d4b55d9
test(cli): rebaseline clean-dist function coverage
cv May 4, 2026
b872474
refactor(cli): extract maintenance image helpers
cv May 4, 2026
4965762
refactor(cli): extract upgrade sandbox helpers
cv May 4, 2026
9acd660
refactor(cli): extract sandbox destroy helpers
cv May 4, 2026
cc0eaa1
refactor(cli): extract sandbox logs helpers
cv May 4, 2026
847e115
refactor(cli): extract policy channel helpers
cv May 4, 2026
b6c0f5a
test(cli): allow clean coverage variance
cv May 4, 2026
5c98bd1
merge: sync coverage stabilization
cv May 4, 2026
4754f3e
merge: sync maintenance helper extraction
cv May 4, 2026
96f0758
merge: sync upgrade helper extraction
cv May 4, 2026
b6bd105
merge: sync destroy helper extraction
cv May 4, 2026
98fb75d
merge: sync logs helper extraction
cv May 4, 2026
5920d5b
test(cli): keep destroy helpers outside coverage ratchet
cv May 4, 2026
64d1646
merge: sync destroy helper coverage boundary
cv May 4, 2026
717c482
test(cli): keep logs helpers outside coverage ratchet
cv May 4, 2026
688074f
merge: sync logs helper coverage boundary
cv May 4, 2026
1314270
test(cli): keep policy channel helpers outside coverage ratchet
cv May 4, 2026
79d81c2
refactor(cli): group oclif core modules
cv May 4, 2026
5453a89
refactor(cli): split oclif commands by command tree
cv May 4, 2026
bbc297f
test(cli): reset credential command helper cache
cv May 4, 2026
25224c1
test(cli): avoid generic warning assertion in debug output
cv May 4, 2026
1ed9256
refactor(cli): group pure domain helpers
cv May 4, 2026
51799e4
refactor(cli): group openshell adapters
cv May 4, 2026
553b3f4
merge(main): reconcile openshell adapter grouping
cv May 6, 2026
23c5f39
fix(cli): update launcher openshell adapter imports
cv May 6, 2026
f01b32b
Merge branch 'main' into refactor/layer-openshell-adapters
prekshivyas May 6, 2026
83d7c8e
test(cli): update openshell adapter mocks
cv May 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/check-legacy-migrated-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const REMOVED_SHIM_MOVES: Record<string, string> = {
"bin/lib/platform.js": "src/lib/platform.ts",
"bin/lib/preflight.js": "src/lib/preflight.ts",
"bin/lib/registry.js": "src/lib/registry.ts",
"bin/lib/resolve-openshell.js": "src/lib/resolve-openshell.ts",
"bin/lib/resolve-openshell.js": "src/lib/adapters/openshell/resolve.ts",
"bin/lib/runtime-recovery.js": "src/lib/runtime-recovery.ts",
"bin/lib/sandbox-build-context.js": "src/lib/sandbox-build-context.ts",
"bin/lib/services.js": "src/lib/services.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
runOpenshellCommand,
stripAnsi,
versionGte,
} from "./openshell";
} from "./client";

interface SpawnResultSpec {
status: number | null;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { describe, it, expect } from "vitest";
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { resolveOpenshell } from "../../dist/lib/resolve-openshell";
import { resolveOpenshell } from "../../../../dist/lib/adapters/openshell/resolve";

describe("lib/resolve-openshell", () => {
it("returns command -v result when absolute path", () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

import type { StdioOptions } from "node:child_process";

import { ROOT } from "./runner";
import { ROOT } from "../../runner";
import {
captureOpenshellCommand,
captureOpenshellCommandAsync,
getInstalledOpenshellVersion,
runOpenshellCommand,
} from "./openshell";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./openshell-timeouts";
import { resolveOpenshell } from "./resolve-openshell";
} from "./client";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./timeouts";
import { resolveOpenshell } from "./resolve";

type CommandArgs = string[];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
OPENSHELL_HEAVY_TIMEOUT_MS,
OPENSHELL_OPERATION_TIMEOUT_MS,
OPENSHELL_PROBE_TIMEOUT_MS,
} from "./openshell-timeouts";
} from "./timeouts";

describe("openshell-timeouts", () => {
it("exports positive integer constants", () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/commands/credentials/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Command, Flags } from "@oclif/core";

import { CLI_NAME } from "../../branding";
import { runOpenshellProviderCommand } from "../../global-cli-actions";
import { OPENSHELL_OPERATION_TIMEOUT_MS } from "../../openshell-timeouts";
import { OPENSHELL_OPERATION_TIMEOUT_MS } from "../../adapters/openshell/timeouts";
import { isBridgeProviderName, recoverGatewayOrExit } from "./common";

export default class CredentialsListCommand extends Command {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/commands/credentials/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Args, Command, Flags } from "@oclif/core";
import { CLI_NAME } from "../../branding";
import { prompt as askPrompt } from "../../credentials";
import { runOpenshellProviderCommand } from "../../global-cli-actions";
import { OPENSHELL_OPERATION_TIMEOUT_MS } from "../../openshell-timeouts";
import { OPENSHELL_OPERATION_TIMEOUT_MS } from "../../adapters/openshell/timeouts";
import { isBridgeProviderName, recoverGatewayOrExit } from "./common";

export default class CredentialsResetCommand extends Command {
Expand Down
8 changes: 4 additions & 4 deletions src/lib/commands/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { runDebug } from "../debug";
import type { DebugOptions } from "../debug";
import type { RunDebugCommandDeps } from "../debug-command";
import { runDebugCommandWithOptions } from "../debug-command";
import type { CaptureOpenshellResult } from "../openshell";
import { captureOpenshellCommand } from "../openshell";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "../openshell-timeouts";
import type { CaptureOpenshellResult } from "../adapters/openshell/client";
import { captureOpenshellCommand } from "../adapters/openshell/client";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "../adapters/openshell/timeouts";
import * as registry from "../registry";
import { resolveOpenshell } from "../resolve-openshell";
import { resolveOpenshell } from "../adapters/openshell/resolve";
import { parseLiveSandboxNames } from "../runtime-recovery";

const useColor = !process.env.NO_COLOR && !!process.stderr.isTTY;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/commands/simple-global-oclif-adapters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ vi.mock("../global-cli-actions", () => ({
showRootHelp: mocks.showRootHelp,
showVersion: mocks.showVersion,
}));
vi.mock("../openshell", () => ({ captureOpenshellCommand: mocks.captureOpenshellCommand }));
vi.mock("../adapters/openshell/client", () => ({ captureOpenshellCommand: mocks.captureOpenshellCommand }));
vi.mock("../registry", () => ({ listSandboxes: mocks.listSandboxes }));
vi.mock("../resolve-openshell", () => ({ resolveOpenshell: mocks.resolveOpenshell }));
vi.mock("../adapters/openshell/resolve", () => ({ resolveOpenshell: mocks.resolveOpenshell }));
vi.mock("../services", () => ({ startAll: mocks.startAll, stopAll: mocks.stopAll }));
vi.mock("../services-command", () => ({
runStartCommand: mocks.runStartCommand,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/gateway-runtime-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
const { startGatewayForRecovery } = require("./onboard") as {
startGatewayForRecovery: () => Promise<void>;
};
import { OPENSHELL_OPERATION_TIMEOUT_MS, OPENSHELL_PROBE_TIMEOUT_MS } from "./openshell-timeouts";
import { stripAnsi } from "./openshell";
import { captureOpenshell, runOpenshell } from "./openshell-runtime";
import { OPENSHELL_OPERATION_TIMEOUT_MS, OPENSHELL_PROBE_TIMEOUT_MS } from "./adapters/openshell/timeouts";
import { stripAnsi } from "./adapters/openshell/client";
import { captureOpenshell, runOpenshell } from "./adapters/openshell/runtime";

function hasNamedGateway(output = ""): boolean {
return stripAnsi(output).includes("Gateway: nemoclaw");
Expand Down
2 changes: 1 addition & 1 deletion src/lib/global-cli-actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ vi.mock("./onboard-action", () => ({
runSetupAction: mocks.runSetupAction,
runSetupSparkAction: mocks.runSetupSparkAction,
}));
vi.mock("./openshell-runtime", () => ({ runOpenshell: mocks.runOpenshell }));
vi.mock("./adapters/openshell/runtime", () => ({ runOpenshell: mocks.runOpenshell }));
vi.mock("./root-help-action", () => ({ help: mocks.help, version: mocks.version }));

import {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/global-cli-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
runSetupSparkAction as executeSetupSparkAction,
} from "./onboard-action";
import { recoverNamedGatewayRuntime as recoverNamedGatewayRuntimeAction } from "./gateway-runtime-action";
import { runOpenshell } from "./openshell-runtime";
import { runOpenshell } from "./adapters/openshell/runtime";
import { help, version } from "./root-help-action";

type GatewayRecovery = { recovered: boolean };
Expand Down
6 changes: 3 additions & 3 deletions src/lib/list-command-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import * as onboardSession from "./onboard-session";
import type { ListSandboxesCommandDeps } from "./inventory-commands";
import { parseGatewayInference } from "./inference-config";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./openshell-timeouts";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./adapters/openshell/timeouts";
import { parseSshProcesses, createSystemDeps } from "./sandbox-session-state";
import { resolveOpenshell } from "./resolve-openshell";
import { captureOpenshell } from "./openshell-runtime";
import { resolveOpenshell } from "./adapters/openshell/resolve";
import { captureOpenshell } from "./adapters/openshell/runtime";
import { recoverRegistryEntries } from "./registry-recovery-action";

export function buildListCommandDeps(): ListSandboxesCommandDeps {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/maintenance-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "./domain/lifecycle/options";
import { dockerListImagesFormat, dockerRmi } from "./docker";
import { findOrphanedSandboxImages, parseSandboxImageRows } from "./domain/maintenance/images";
import { captureOpenshell } from "./openshell-runtime";
import { captureOpenshell } from "./adapters/openshell/runtime";
import * as registry from "./registry";
import { parseLiveSandboxNames } from "./runtime-recovery";
import * as sandboxState from "./sandbox-state";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const {
const { sleepSeconds } = require("./wait");
const platformUtils: typeof import("./platform") = require("./platform");
const { inferContainerRuntime, isWsl, shouldPatchCoredns } = platformUtils;
const { resolveOpenshell } = require("./resolve-openshell");
const { resolveOpenshell } = require("./adapters/openshell/resolve");
const credentials: typeof import("./credentials") = require("./credentials");
const {
prompt,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/policy-channel-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const onboardProviders = require("./onboard-providers");
import * as policies from "./policies";
import { parsePolicyAddArgs } from "./domain/policy-channel";
import * as registry from "./registry";
import { runOpenshell } from "./openshell-runtime";
import { runOpenshell } from "./adapters/openshell/runtime";
import { rebuildSandbox } from "./sandbox-runtime-actions";
import {
KNOWN_CHANNELS,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/registry-recovery-action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ vi.mock("./registry.js", () => ({
},
}));

vi.mock("./resolve-openshell.js", () => ({
vi.mock("./adapters/openshell/resolve.js", () => ({
resolveOpenshell: vi.fn(() => null),
}));

vi.mock("./gateway-runtime-action.js", () => ({
recoverNamedGatewayRuntime: vi.fn(),
}));

vi.mock("./openshell-runtime.js", () => ({
vi.mock("./adapters/openshell/runtime.js", () => ({
captureOpenshell: vi.fn(),
}));

Expand Down
6 changes: 3 additions & 3 deletions src/lib/registry-recovery-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import { recoverNamedGatewayRuntime } from "./gateway-runtime-action";
import type { RecoveryResult } from "./inventory-commands";
import * as onboardSession from "./onboard-session";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./openshell-timeouts";
import { captureOpenshell } from "./openshell-runtime";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./adapters/openshell/timeouts";
import { captureOpenshell } from "./adapters/openshell/runtime";
import * as registry from "./registry";
import type { SandboxEntry } from "./registry";
import { resolveOpenshell } from "./resolve-openshell";
import { resolveOpenshell } from "./adapters/openshell/resolve";
import { parseLiveSandboxNames } from "./runtime-recovery";
import { validateName } from "./runner";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/sandbox-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const { isPrivateHostname, isPrivateIp } = require("./private-networks");

type ConfigObject = import("./credential-filter").ConfigObject;
type ConfigValue = import("./credential-filter").ConfigValue;
const { runOpenshellCommand, captureOpenshellCommand } = require("./openshell");
const { runOpenshellCommand, captureOpenshellCommand } = require("./adapters/openshell/client");

function parseJson<T>(text: string): T {
return JSON.parse(text);
Expand Down
6 changes: 3 additions & 3 deletions src/lib/sandbox-connect-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
captureOpenshell,
getOpenshellBinary,
runOpenshell,
} from "./openshell-runtime";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./openshell-timeouts";
} from "./adapters/openshell/runtime";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./adapters/openshell/timeouts";
import * as registry from "./registry";
import { ROOT } from "./runner";
import { ensureLiveSandboxOrExit } from "./sandbox-gateway-state-action";
Expand All @@ -25,7 +25,7 @@ import {
import { checkAndRecoverSandboxProcesses } from "./sandbox-process-recovery-action";
import * as sandboxVersion from "./sandbox-version";
import { D, G, R, YW } from "./terminal-style";
import { resolveOpenshell } from "./resolve-openshell";
import { resolveOpenshell } from "./adapters/openshell/resolve";

const agentRuntime = require("../../bin/lib/agent-runtime");

Expand Down
12 changes: 6 additions & 6 deletions src/lib/sandbox-destroy-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import {
} from "./domain/lifecycle/options";
import * as onboardSession from "./onboard-session";
import type { Session } from "./onboard-session";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./openshell-timeouts";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./adapters/openshell/timeouts";
import { DASHBOARD_PORT } from "./ports";
import * as registry from "./registry";
import { resolveOpenshell } from "./resolve-openshell";
import { resolveOpenshell } from "./adapters/openshell/resolve";
import { parseLiveSandboxNames } from "./runtime-recovery";
import {
createSystemDeps as createSessionDeps,
Expand Down Expand Up @@ -45,7 +45,7 @@ const NEMOCLAW_GATEWAY_NAME = "nemoclaw";
const DASHBOARD_FORWARD_PORT = String(DASHBOARD_PORT);

function cleanupGatewayAfterLastSandbox(): void {
const { runOpenshell } = require("./openshell-runtime") as {
const { runOpenshell } = require("./adapters/openshell/runtime") as {
runOpenshell: (args: string[], opts?: Record<string, unknown>) => { status: number | null };
};
const { dockerRemoveVolumesByPrefix } = require("./docker") as {
Expand All @@ -63,7 +63,7 @@ function cleanupGatewayAfterLastSandbox(): void {
}

function hasNoLiveSandboxes(): boolean {
const { captureOpenshell } = require("./openshell-runtime") as {
const { captureOpenshell } = require("./adapters/openshell/runtime") as {
captureOpenshell: (
args: string[],
opts?: { ignoreError?: boolean; timeout?: number },
Expand Down Expand Up @@ -102,7 +102,7 @@ function cleanupSandboxServices(

// Delete messaging providers created during onboard. Suppress stderr so
// "! Provider not found" noise doesn't appear when messaging was never configured.
const { runOpenshell } = require("./openshell-runtime") as {
const { runOpenshell } = require("./adapters/openshell/runtime") as {
runOpenshell: (args: string[], opts?: Record<string, unknown>) => { status: number | null };
};
for (const suffix of ["telegram-bridge", "discord-bridge", "slack-bridge"]) {
Expand Down Expand Up @@ -209,7 +209,7 @@ export async function destroySandbox(
}

console.log(` Deleting sandbox '${sandboxName}'...`);
const { runOpenshell } = require("./openshell-runtime") as {
const { runOpenshell } = require("./adapters/openshell/runtime") as {
runOpenshell: (
args: string[],
opts?: Record<string, unknown>,
Expand Down
8 changes: 4 additions & 4 deletions src/lib/sandbox-doctor-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import { isErrnoException } from "./errno";
import { recoverNamedGatewayRuntime } from "./gateway-runtime-action";
import { probeProviderHealth } from "./inference-health";
import { parseGatewayInference } from "./inference-config";
import { stripAnsi } from "./openshell";
import { captureOpenshell } from "./openshell-runtime";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./openshell-timeouts";
import { stripAnsi } from "./adapters/openshell/client";
import { captureOpenshell } from "./adapters/openshell/runtime";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./adapters/openshell/timeouts";
import { GATEWAY_PORT, OLLAMA_PORT } from "./ports";
import * as registry from "./registry";
import type { SandboxEntry } from "./registry";
import { resolveOpenshell } from "./resolve-openshell";
import { resolveOpenshell } from "./adapters/openshell/resolve";
import { ROOT } from "./runner";
import { parseLiveSandboxNames } from "./runtime-recovery";
import * as sandboxVersion from "./sandbox-version";
Expand Down
6 changes: 3 additions & 3 deletions src/lib/sandbox-gateway-state-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ const { pruneKnownHostsEntries } = require("./onboard") as {
};
import * as onboardSession from "./onboard-session";
import type { Session } from "./onboard-session";
import { stripAnsi } from "./openshell";
import { stripAnsi } from "./adapters/openshell/client";
import {
captureOpenshell,
captureOpenshellForStatus,
getStatusProbeTimeoutMs,
isCommandTimeout,
runOpenshell,
} from "./openshell-runtime";
} from "./adapters/openshell/runtime";
import {
OPENSHELL_OPERATION_TIMEOUT_MS,
OPENSHELL_PROBE_TIMEOUT_MS,
} from "./openshell-timeouts";
} from "./adapters/openshell/timeouts";
import * as registry from "./registry";

type SandboxGatewayState = {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sandbox-logs-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { spawn } from "node:child_process";

import { ROOT } from "./runner";
import { getOpenshellBinary, runOpenshell } from "./openshell-runtime";
import { getOpenshellBinary, runOpenshell } from "./adapters/openshell/runtime";
import {
buildEnableSandboxAuditLogsArgs,
buildSandboxLogsArgs,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/sandbox-process-recovery-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import {
getOpenshellBinary,
isCommandTimeout,
runOpenshell,
} from "./openshell-runtime";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./openshell-timeouts";
} from "./adapters/openshell/runtime";
import { OPENSHELL_PROBE_TIMEOUT_MS } from "./adapters/openshell/timeouts";
import { ROOT, shellQuote } from "./runner";
import { parseForwardList } from "./sandbox-session-state";
import { G, R } from "./terminal-style";
Expand Down
4 changes: 2 additions & 2 deletions src/lib/sandbox-rebuild-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import { getSandboxDeleteOutcome } from "./domain/sandbox/destroy";
import * as nim from "./nim";
import type { Session } from "./onboard-session";
import * as onboardSession from "./onboard-session";
import { captureOpenshell, runOpenshell } from "./openshell-runtime";
import { captureOpenshell, runOpenshell } from "./adapters/openshell/runtime";
import * as policies from "./policies";
import * as registry from "./registry";
import { resolveOpenshell } from "./resolve-openshell";
import { resolveOpenshell } from "./adapters/openshell/resolve";
import { parseLiveSandboxNames } from "./runtime-recovery";
import { removeSandboxRegistryEntry } from "./sandbox-destroy-action";
import { executeSandboxCommand } from "./sandbox-process-recovery-action";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sandbox-skill-install-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import os from "node:os";
import path from "node:path";

import { CLI_NAME } from "./branding";
import { captureOpenshell } from "./openshell-runtime";
import { captureOpenshell } from "./adapters/openshell/runtime";
import { ensureLiveSandboxOrExit } from "./sandbox-gateway-state-action";
import * as skillInstall from "./skill-install";
import { D, G, R, YW } from "./terminal-style";
Expand Down
4 changes: 2 additions & 2 deletions src/lib/sandbox-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import path from "node:path";
import * as registry from "./registry.js";
import { loadAgent } from "./agent-defs.js";
import type { AgentStateFile } from "./agent-defs.js";
import { resolveOpenshell } from "./resolve-openshell.js";
import { captureOpenshellCommand } from "./openshell.js";
import { resolveOpenshell } from "./adapters/openshell/resolve.js";
import { captureOpenshellCommand } from "./adapters/openshell/client.js";
import { sanitizeConfigFile, isSensitiveFile } from "./credential-filter.js";
import { shellQuote } from "./runner.js";

Expand Down
7 changes: 5 additions & 2 deletions src/lib/sandbox-status-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ import { probeProviderHealth } from "./inference-health";
import * as nim from "./nim";
import * as onboardSession from "./onboard-session";
import type { Session } from "./onboard-session";
import { captureOpenshellForStatus, isCommandTimeout } from "./openshell-runtime";
import {
captureOpenshellForStatus,
isCommandTimeout,
} from "./adapters/openshell/runtime";
import * as registry from "./registry";
import { resolveOpenshell } from "./resolve-openshell";
import { resolveOpenshell } from "./adapters/openshell/resolve";
import {
getReconciledSandboxGatewayState,
getSandboxGatewayStateForStatus,
Expand Down
Loading
Loading