Skip to content

Commit f8eec8f

Browse files
committedSep 4, 2024
style: prettier
1 parent 286afa4 commit f8eec8f

7 files changed

+310
-248
lines changed
 

‎README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const payloadIsVerified = await verifyRequestByKeyId(
3131
keyId,
3232
{
3333
token: process.env.GITHUB_TOKEN,
34-
}
34+
},
3535
);
3636
// true or false
3737
```
@@ -86,7 +86,7 @@ import { verifyRequestByKeyId } from "@copilot-extensions/preview-sdk";
8686
const payloadIsVerified = await verifyRequestByKeyId(
8787
request.body,
8888
signature,
89-
key
89+
key,
9090
);
9191

9292
// with token
@@ -124,7 +124,7 @@ import { verify } from "@copilot-extensions/preview-sdk";
124124
const payloadIsVerified = await verifyRequestPayload(
125125
request.body,
126126
signature,
127-
key
127+
key,
128128
);
129129
// true or false
130130
```
@@ -171,7 +171,7 @@ response.write(
171171
id: "123",
172172
title: "Are you sure?",
173173
message: "This will do something.",
174-
}).toString()
174+
}).toString(),
175175
);
176176
```
177177

@@ -279,7 +279,7 @@ import { verifyAndParseRequest } from "@copilot-extensions/preview-sdk";
279279
const { isValidRequest, payload } = await verifyAndParseRequest(
280280
request,
281281
signature,
282-
key
282+
key,
283283
);
284284

285285
if (!isValidRequest) {

‎dreamcode.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,16 @@ agent.on(
5454
}
5555

5656
await respond.text(
57-
prompt.stream("Please tell me a joke about Mona Lisa, Github's mascot.")
57+
prompt.stream(
58+
"Please tell me a joke about Mona Lisa, Github's mascot.",
59+
),
5860
);
5961
return;
6062
}
6163

6264
log.warn("Received an unknown confirmation:", confirmation.id);
6365
await respond.text("Hmm, something went wrong. Please try again later.");
64-
}
66+
},
6567
);
6668

6769
createServer(createNodeMiddleware(agent)).listen(3000);
@@ -172,7 +174,7 @@ copilotAgent.on("function_call", async ({ log, name, parameters }) => {
172174
log.info(
173175
"Received a function call for %s with parameters %o",
174176
name,
175-
parameters
177+
parameters,
176178
);
177179
});
178180

@@ -192,7 +194,7 @@ await copilotAgent.receive({ payload });
192194
const { isValidRequest, payload } = await copilotAgent.verifyAndParse(
193195
payload,
194196
signature,
195-
keyId
197+
keyId,
196198
);
197199
```
198200

0 commit comments

Comments
 (0)
Failed to load comments.