MCPcopy Create free account
hub / github.com/github/copilot-sdk / isPendingCommand

Function isPendingCommand

nodejs/test/e2e/rpc_queue.e2e.test.ts:20–28  ·  view source on GitHub ↗
(
        item: { kind: string; displayText: string },
        command: string
    )

Source from the content-addressed store, hash-verified

18 }
19
20 function isPendingCommand(
21 item: { kind: string; displayText: string },
22 command: string
23 ): boolean {
24 return (
25 item.kind === "command" &&
26 (item.displayText === command || item.displayText.includes(command.replace(/^\//, "")))
27 );
28 }
29
30 it("fresh queue is empty and empty mutations are no-ops", async () => {
31 const session = await client.createSession({ onPermissionRequest: approveAll });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…