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

Function inspectPlugin

packages/plugins/file-secrets/src/index.test.ts:23–33  ·  view source on GitHub ↗
(plugin: ReturnType<typeof fileSecretsPlugin>)

Source from the content-addressed store, hash-verified

21const FILE_PROVIDER = ProviderKey.make("file");
22
23const inspectPlugin = (plugin: ReturnType<typeof fileSecretsPlugin>) =>
24 Effect.scoped(
25 Effect.gen(function* () {
26 const workspace = yield* makeTestWorkspaceHarness({ plugins: [plugin] as const });
27 const items = yield* workspace.executor.providers.items(FILE_PROVIDER);
28 return {
29 filePath: workspace.executor.fileSecrets.filePath,
30 itemIds: items.map((item) => String(item.id)),
31 };
32 }),
33 );
34
35const writeAuthFile = (filePath: string, contents: string, mode = 0o600): void => {
36 mkdirSync(dirname(filePath), { recursive: true });

Callers 1

index.test.tsFile · 0.85

Calls 1

makeTestWorkspaceHarnessFunction · 0.85

Tested by

no test coverage detected