MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / startConnectionCode

Function startConnectionCode

e2e/scenarios/oauth-client-handoff.test.ts:281–296  ·  view source on GitHub ↗
(input: {
  readonly slug: string;
  readonly integration: string;
  readonly connection: string;
  readonly template: string;
})

Source from the content-addressed store, hash-verified

279`;
280
281const startConnectionCode = (input: {
282 readonly slug: string;
283 readonly integration: string;
284 readonly connection: string;
285 readonly template: string;
286}) => `
287const started = await tools.executor.coreTools.oauth.start({
288 client: ${JSON.stringify(input.slug)},
289 clientOwner: "org",
290 owner: "org",
291 name: ${JSON.stringify(input.connection)},
292 integration: ${JSON.stringify(input.integration)},
293 template: ${JSON.stringify(input.template)},
294});
295return started.ok ? { ok: true, status: started.data.status } : { ok: false, error: started.error };
296`;
297
298const requireOAuthClientCredential = (credential: IssuedCredential) =>
299 Effect.gen(function* () {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected