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

Function seedRunConnection

packages/core/sdk/src/executor.test.ts:1015–1043  ·  view source on GitHub ↗
(
  executor: E,
)

Source from the content-addressed store, hash-verified

1013 }))();
1014
1015const seedRunConnection = <
1016 E extends {
1017 readonly demo: { readonly seed: () => Effect.Effect<unknown, unknown> };
1018 readonly connections: {
1019 readonly create: (input: {
1020 owner: "org";
1021 name: ConnectionName;
1022 integration: IntegrationSlug;
1023 template: AuthTemplateSlug;
1024 from: { provider: ProviderKey; id: ProviderItemId };
1025 }) => Effect.Effect<unknown, unknown>;
1026 };
1027 },
1028>(
1029 executor: E,
1030) =>
1031 Effect.gen(function* () {
1032 yield* executor.demo.seed();
1033 yield* executor.connections.create({
1034 owner: "org",
1035 name: CONN,
1036 integration: INTEG,
1037 template: TEMPLATE,
1038 from: {
1039 provider: ProviderKey.make("memory"),
1040 id: ProviderItemId.make("v"),
1041 },
1042 });
1043 });
1044
1045/** Run the recorded tool-row invoke once and return the recorder. When
1046 * `maxOps` is set, the execute call runs under that `MaxOpsBeforeYield`

Callers 3

recordToolRowLaunchFunction · 0.85
recordCredentialLaunchFunction · 0.85
executor.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected