(plugin: ReturnType<typeof fileSecretsPlugin>)
| 21 | const FILE_PROVIDER = ProviderKey.make("file"); |
| 22 | |
| 23 | const 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 | |
| 35 | const writeAuthFile = (filePath: string, contents: string, mode = 0o600): void => { |
| 36 | mkdirSync(dirname(filePath), { recursive: true }); |
no test coverage detected