Showing the changes to examples (6 of 161 files). Show all
Unified · Split
| @@ -16,6 +16,7 @@ · 15 unmodified lines | ||
| 16 | 16 | "@executor-js/plugin-onepassword": "workspace:*", |
| 17 | 17 | "@executor-js/plugin-openapi": "workspace:*", |
| 18 | 18 | "@executor-js/plugin-workos-vault": "workspace:*", |
| 19 | + "@executor-js/product-access": "workspace:*", | |
| 19 | 20 | "@executor-js/sdk": "workspace:*", |
| 20 | 21 | "effect": "catalog:" |
| 21 | 22 | }, |
| @@ -31,6 +31,7 @@ import { · 30 unmodified lines | ||
| 31 | 31 | ToolAddress, |
| 32 | 32 | type CredentialProvider, |
| 33 | 33 | } from "@executor-js/sdk"; |
| 34 | +import { workspaceServiceAccess } from "@executor-js/product-access"; | |
| 34 | 35 | |
| 35 | 36 | import { fileSecretsPlugin } from "@executor-js/plugin-file-secrets"; |
| 36 | 37 | import { |
| @@ -192,6 +193,8 @@ const program = Effect.gen(function* () { · 155 unmodified lines | ||
| 192 | 193 | |
| 193 | 194 | const executor = yield* createExecutor({ |
| 194 | 195 | tenant: Tenant.make("example-tenant"), |
| 196 | + // Subject-less single-workspace example: org partition, writes allowed. | |
| 197 | + access: workspaceServiceAccess(), | |
| 195 | 198 | plugins, |
| 196 | 199 | providers: [memoryProvider], |
| 197 | 200 | onElicitation: "accept-all" as const, |
| @@ -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", |
| @@ -12,6 +12,7 @@ · 11 unmodified lines | ||
| 12 | 12 | "@executor-js/plugin-graphql": "workspace:*", |
| 13 | 13 | "@executor-js/plugin-mcp": "workspace:*", |
| 14 | 14 | "@executor-js/plugin-openapi": "workspace:*", |
| 15 | + "@executor-js/product-access": "workspace:*", | |
| 15 | 16 | "@executor-js/sdk": "workspace:*" |
| 16 | 17 | }, |
| 17 | 18 | "devDependencies": { |
| @@ -20,6 +20,7 @@ import { Effect } from "effect"; · 19 unmodified lines | ||
| 20 | 20 | import { mcpPlugin } from "@executor-js/plugin-mcp/promise"; |
| 21 | 21 | import { openApiPlugin, variable } from "@executor-js/plugin-openapi/promise"; |
| 22 | 22 | import { graphqlPlugin } from "@executor-js/plugin-graphql/promise"; |
| 23 | +import { workspaceServiceAccess } from "@executor-js/product-access"; | |
| 23 | 24 | |
| 24 | 25 | // --------------------------------------------------------------------------- |
| 25 | 26 | // 1. Create the executor with all plugins |
| @@ -44,6 +45,9 @@ const memoryProvider: CredentialProvider = { · 18 unmodified lines | ||
| 44 | 45 | }; |
| 45 | 46 | |
| 46 | 47 | const executor = await createExecutor({ |
| 48 | + // Subject-less single-workspace embedder: the product posture is stated | |
| 49 | + // explicitly — the SDK ships no default. | |
| 50 | + access: workspaceServiceAccess(), | |
| 47 | 51 | plugins, |
| 48 | 52 | providers: [memoryProvider], |
| 49 | 53 | onElicitation: "accept-all", |