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/docs-sdk-quickstart/src (1 of 161 files). Show all

Unified · Split

examples/docs-sdk-quickstart/src/main.ts+4−0
@@ -8,6 +8,7 @@ import { · 7 unmodified lines
88 type CredentialProvider,
99 } from "@executor-js/sdk/promise";
1010 import { openApiPlugin, variable } from "@executor-js/plugin-openapi/promise";
11+import { workspaceServiceAccess } from "@executor-js/product-access";
1112
1213 const inventoryApi = {
1314 openapi: "3.0.0",
@@ -92,6 +93,9 @@ const memoryProvider: CredentialProvider = { · 78 unmodified lines
9293 };
9394
9495 const executor = await createExecutor({
96+ // Subject-less single-workspace embedder: the product posture is stated
97+ // explicitly — the SDK ships no default.
98+ access: workspaceServiceAccess(),
9599 plugins: [openApiPlugin()],
96100 providers: [memoryProvider],
97101 onElicitation: "accept-all",