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

Function seedRunConnection

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

Source from the content-addressed store, hash-verified

903 }))();
904
905const seedRunConnection = <
906 E extends {
907 readonly demo: { readonly seed: () => Effect.Effect<unknown, unknown> };
908 readonly connections: {
909 readonly create: (input: {
910 owner: "org";
911 name: ConnectionName;
912 integration: IntegrationSlug;
913 template: AuthTemplateSlug;
914 from: { provider: ProviderKey; id: ProviderItemId };
915 }) => Effect.Effect<unknown, unknown>;
916 };
917 },
918>(
919 executor: E,
920) =>
921 Effect.gen(function* () {
922 yield* executor.demo.seed();
923 yield* executor.connections.create({
924 owner: "org",
925 name: CONN,
926 integration: INTEG,
927 template: TEMPLATE,
928 from: {
929 provider: ProviderKey.make("memory"),
930 id: ProviderItemId.make("v"),
931 },
932 });
933 });
934
935/** Run the recorded tool-row invoke once and return the recorder. When
936 * `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