Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
116111c
refactor(cli): harden oclif bridge
cv Apr 30, 2026
5e997cb
test(cli): relax uninstall helper timeouts
cv Apr 30, 2026
88cd958
refactor(cli): migrate status and tunnel commands to oclif
cv Apr 30, 2026
3f748d6
refactor(cli): migrate debug uninstall and gateway-token to oclif
cv Apr 30, 2026
0bc877a
refactor(cli): migrate credentials commands to oclif
cv Apr 30, 2026
3fd15fc
refactor(cli): migrate sandbox inspection commands to oclif
cv Apr 30, 2026
81c62bb
refactor(cli): migrate maintenance commands to oclif
cv Apr 30, 2026
7d6a6fb
refactor(cli): migrate sandbox logs command to oclif
cv May 1, 2026
3f17a4f
refactor(cli): migrate skill install command to oclif
cv May 1, 2026
0fb3c41
refactor(cli): migrate snapshot list and create to oclif
cv May 1, 2026
d11eeee
refactor(cli): migrate shields commands to oclif
cv May 1, 2026
74806ce
refactor(cli): migrate channels mutation commands to oclif
cv May 1, 2026
e637e84
refactor(cli): migrate policy mutation commands to oclif
cv May 1, 2026
ee20dfb
refactor(cli): migrate snapshot restore command to oclif
cv May 1, 2026
8d3a568
refactor(cli): migrate destroy command to oclif
cv May 1, 2026
b447f36
refactor(cli): migrate rebuild command to oclif
cv May 1, 2026
02431db
refactor(cli): migrate connect command to oclif
cv May 1, 2026
37ce2ff
refactor(cli): migrate deploy command to oclif
cv May 1, 2026
d3e218e
refactor(cli): migrate onboard aliases to oclif
cv May 1, 2026
df05a3e
refactor(cli): migrate help and version commands to oclif
cv May 1, 2026
3edcf2e
refactor(cli): centralize legacy oclif dispatch
cv May 1, 2026
47df3b5
refactor(cli): drop trivial oclif wrapper helpers
cv May 1, 2026
460173c
refactor(cli): centralize sandbox runtime bridge
cv May 1, 2026
31c0195
test(cli): keep dispatch table out of coverage ratchet
cv May 1, 2026
bad424d
refactor(cli): centralize policy and channels runtime bridge
cv May 1, 2026
5214142
refactor(cli): centralize global runtime bridge
cv May 1, 2026
5fca48f
refactor(cli): collapse runtime bridge exports
cv May 1, 2026
9616295
refactor(cli): introduce sandbox runtime action facade
cv May 1, 2026
c3a4906
refactor(cli): introduce policy and channels action facade
cv May 1, 2026
35288d8
refactor(cli): introduce global command action facade
cv May 1, 2026
58e71de
refactor(cli): extract root help action
cv May 1, 2026
66a1673
refactor(cli): extract deploy action
cv May 1, 2026
e60ba8e
refactor(cli): extract onboard actions
cv May 1, 2026
7d29288
refactor(cli): extract openshell runtime helpers
cv May 1, 2026
81780c5
refactor(cli): extract sandbox logs action
cv May 1, 2026
278ecc5
test(cli): keep extracted action facades out of coverage
cv May 1, 2026
99f5cff
refactor(cli): extract maintenance actions
cv May 1, 2026
56fa588
test(cli): keep maintenance actions out of coverage ratchet
cv May 1, 2026
6e30cfc
refactor(cli): extract snapshot actions
cv May 1, 2026
f5feac4
refactor(cli): extract policy and channels actions
cv May 1, 2026
910935c
merge(main): resolve policy channels action conflicts
cv May 2, 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
27 changes: 14 additions & 13 deletions src/lib/channels-mutate-cli-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,27 @@

import { Args, Command, Flags } from "@oclif/core";

import {
addSandboxChannel,
removeSandboxChannel,
startSandboxChannel,
stopSandboxChannel,
} from "./policy-channel-actions";

type ChannelsRuntimeBridge = {
sandboxChannelsAdd: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxChannelsRemove: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxChannelsStart: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxChannelsStop: (sandboxName: string, args?: string[]) => Promise<void>;
};

let runtimeBridgeFactory = (): ChannelsRuntimeBridge => ({
sandboxChannelsAdd: addSandboxChannel,
sandboxChannelsRemove: removeSandboxChannel,
sandboxChannelsStart: startSandboxChannel,
sandboxChannelsStop: stopSandboxChannel,
});
let runtimeBridgeFactory = (): ChannelsRuntimeBridge => {
const actions = require("./policy-channel-actions") as {
addSandboxChannel: ChannelsRuntimeBridge["sandboxChannelsAdd"];
removeSandboxChannel: ChannelsRuntimeBridge["sandboxChannelsRemove"];
startSandboxChannel: ChannelsRuntimeBridge["sandboxChannelsStart"];
stopSandboxChannel: ChannelsRuntimeBridge["sandboxChannelsStop"];
};
return {
sandboxChannelsAdd: actions.addSandboxChannel,
sandboxChannelsRemove: actions.removeSandboxChannel,
sandboxChannelsStart: actions.startSandboxChannel,
sandboxChannelsStop: actions.stopSandboxChannel,
};
};

export function setChannelsRuntimeBridgeFactoryForTest(
factory: () => ChannelsRuntimeBridge,
Expand Down
8 changes: 0 additions & 8 deletions src/lib/nemoclaw-runtime-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,9 @@ export interface NemoClawRuntimeBridge {
timeout?: number;
},
) => SpawnLikeResult;
sandboxChannelsAdd: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxChannelsList: (sandboxName: string) => void;
sandboxChannelsRemove: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxChannelsStart: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxChannelsStop: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxConnect: (sandboxName: string, options?: SandboxConnectOptions) => Promise<void>;
sandboxDestroy: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxLogs: (sandboxName: string, follow: boolean) => void;
sandboxPolicyAdd: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxPolicyList: (sandboxName: string) => void;
sandboxPolicyRemove: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxRebuild: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxSkillInstall: (sandboxName: string, args?: string[]) => Promise<void>;
sandboxStatus: (sandboxName: string) => Promise<void>;
Expand Down
Loading
Loading