MCPcopy Index your code
hub / github.com/ByBrawe/opencode-loop / handled

Function handled

src/index.js:1597–1603  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1595
1596async function exportLoop(directory, client, sessionID) {
1597 const state = await readState(directory, sessionID)
1598 await say(client, sessionID, "OpenCode loop state export:\n```json\n" + JSON.stringify(state, null, 2) + "\n```")
1599}
1600
1601async function handleCommand(directory, client, input, fallbackName, fallbackArgs, output) {
1602 const name = commandName(input?.command ?? input?.name ?? fallbackName)
1603 const sessionID = input?.sessionID
1604 const args = commandArgsText(input?.arguments ?? fallbackArgs ?? "")
1605 if (!sessionID || !name) return false
1606 rememberSession(directory, client, sessionID)

Callers 1

handleCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected