MCPcopy Create free account
hub / github.com/ByBrawe/opencode-loop / executeTuiCommand

Function executeTuiCommand

src/index.js:389–396  ·  view source on GitHub ↗
(client, command)

Source from the content-addressed store, hash-verified

387var STATE_BASELINE = Symbol("opencode-loop-state-baseline");
388var stateWriteLocks = new Map;
389function stateDir(directory) {
390 return path.join(directory, STATE_DIR);
391}
392function statePath(directory, sessionID) {
393 return path.join(stateDir(directory), `${safeID(sessionID)}.json`);
394}
395async function ensureDir(directory) {
396 await fs.mkdir(directory, { recursive: true });
397}
398async function pathExists(filePath) {
399 try {

Callers 1

compactSessionFunction · 0.85

Calls 1

sdkCallFunction · 0.85

Tested by

no test coverage detected