MCPcopy Index your code
hub / github.com/github/copilot-sdk / isOpenCanvasInstance

Function isOpenCanvasInstance

nodejs/src/session.ts:81–94  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

79}
80
81function isOpenCanvasInstance(value: unknown): value is OpenCanvasInstance {
82 if (!value || typeof value !== "object") {
83 return false;
84 }
85 const instance = value as Partial<OpenCanvasInstance>;
86 return (
87 typeof instance.instanceId === "string" &&
88 instance.instanceId.length > 0 &&
89 typeof instance.extensionId === "string" &&
90 instance.extensionId.length > 0 &&
91 typeof instance.canvasId === "string" &&
92 instance.canvasId.length > 0
93 );
94}
95
96/** Assistant message event - the final response from the assistant. */
97export type AssistantMessageEvent = Extract<SessionEvent, { type: "assistant.message" }>;

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…