Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/github/copilot-sdk
/ chat.ts
File
chat.ts
nodejs/samples/chat.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ CopilotClient, approveAll,
type
SessionEvent } from
"@github/copilot-sdk"
;
2
import
* as readline from
"node:readline"
;
3
4
async
function
main() {
Callers
nothing calls this directly
Calls
1
main
Function · 0.70
Tested by
no test coverage detected