History

Move product access rules out of the SDK

Rhys Sullivan committed 1 month ago

Commit c676e561 parent a72e51d161 files · +3935 −867Browse files

Showing the changes to examples/all-plugins/src (1 of 161 files). Show all

Unified · Split

examples/all-plugins/src/main.ts+3−0
@@ -31,6 +31,7 @@ import { · 30 unmodified lines
3131 ToolAddress,
3232 type CredentialProvider,
3333 } from "@executor-js/sdk";
34+import { workspaceServiceAccess } from "@executor-js/product-access";
3435
3536 import { fileSecretsPlugin } from "@executor-js/plugin-file-secrets";
3637 import {
@@ -192,6 +193,8 @@ const program = Effect.gen(function* () { · 155 unmodified lines
192193
193194 const executor = yield* createExecutor({
194195 tenant: Tenant.make("example-tenant"),
196+ // Subject-less single-workspace example: org partition, writes allowed.
197+ access: workspaceServiceAccess(),
195198 plugins,
196199 providers: [memoryProvider],
197200 onElicitation: "accept-all" as const,