Showing the changes to examples/docs-sdk-quickstart (2 of 161 files). Show all
Unified · Split
| @@ -10,6 +10,7 @@ · 9 unmodified lines | ||
| 10 | 10 | }, |
| 11 | 11 | "dependencies": { |
| 12 | 12 | "@executor-js/plugin-openapi": "workspace:*", |
| 13 | + "@executor-js/product-access": "workspace:*", | |
| 13 | 14 | "@executor-js/sdk": "workspace:*", |
| 14 | 15 | "effect": "catalog:" |
| 15 | 16 | }, |
| @@ -8,6 +8,7 @@ import { · 7 unmodified lines | ||
| 8 | 8 | type CredentialProvider, |
| 9 | 9 | } from "@executor-js/sdk/promise"; |
| 10 | 10 | import { openApiPlugin, variable } from "@executor-js/plugin-openapi/promise"; |
| 11 | +import { workspaceServiceAccess } from "@executor-js/product-access"; | |
| 11 | 12 | |
| 12 | 13 | const inventoryApi = { |
| 13 | 14 | openapi: "3.0.0", |
| @@ -92,6 +93,9 @@ const memoryProvider: CredentialProvider = { · 78 unmodified lines | ||
| 92 | 93 | }; |
| 93 | 94 | |
| 94 | 95 | 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(), | |
| 95 | 99 | plugins: [openApiPlugin()], |
| 96 | 100 | providers: [memoryProvider], |
| 97 | 101 | onElicitation: "accept-all", |