MCPcopy Create free account
hub / github.com/Noumena-Network/code / shouldUseRemoteSubmit

Function shouldUseRemoteSubmit

src/session/remoteSubmitPolicy.ts:7–17  ·  view source on GitHub ↗
({
  isRemoteMode,
  isSlashCommand,
  matchedCommandType,
}: ResolveRemoteSubmitPolicyInput)

Source from the content-addressed store, hash-verified

5}
6
7export function shouldUseRemoteSubmit({
8 isRemoteMode,
9 isSlashCommand,
10 matchedCommandType,
11}: ResolveRemoteSubmitPolicyInput): boolean {
12 if (!isRemoteMode) {
13 return false
14 }
15
16 return !(isSlashCommand && matchedCommandType === 'local-jsx')
17}

Calls

no outgoing calls

Tested by

no test coverage detected