feat(release): publish execution, cli, and kernel packages to npm
Showing the changes to apps/cloud/src (2 of 35 files). Show all
Unified · Split
| @@ -23,6 +23,7 @@ import type { ClientCapabilities } from "@modelcontextprotocol/sdk/types.js"; · 22 unmodified lines | |||
| 23 | 23 | ||
| 24 | import { createExecutorMcpServer } from "@executor/host-mcp"; | 24 | import { createExecutorMcpServer } from "@executor/host-mcp"; |
| 25 | import { createExecutionEngine } from "@executor/execution"; | 25 | import { createExecutionEngine } from "@executor/execution"; |
| 26 | import { makeQuickJsExecutor } from "@executor/runtime-quickjs"; | ||
| 26 | import { | 27 | import { |
| 27 | ElicitationResponse, | 28 | ElicitationResponse, |
| 28 | FormElicitation, | 29 | FormElicitation, |
| @@ -134,7 +135,7 @@ const openSession = ( · 105 unmodified lines | |||
| 134 | Effect.acquireRelease( | 135 | Effect.acquireRelease( |
| 135 | Effect.gen(function* () { | 136 | Effect.gen(function* () { |
| 136 | const executor = yield* buildScopedExecutor(orgId, `Org ${orgId}`, options); | 137 | const executor = yield* buildScopedExecutor(orgId, `Org ${orgId}`, options); |
| 137 | const engine = createExecutionEngine({ executor }); | 138 | const engine = createExecutionEngine({ executor, codeExecutor: makeQuickJsExecutor() }); |
| 138 | const mcpServer = yield* Effect.promise(() => createExecutorMcpServer({ engine })); | 139 | const mcpServer = yield* Effect.promise(() => createExecutorMcpServer({ engine })); |
| 139 | const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair(); | 140 | const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair(); |
| 140 | const client = new Client( | 141 | const client = new Client( |
| @@ -31,6 +31,7 @@ import { · 30 unmodified lines | |||
| 31 | ExecutorService, | 31 | ExecutorService, |
| 32 | } from "@executor/api/server"; | 32 | } from "@executor/api/server"; |
| 33 | import { createExecutionEngine } from "@executor/execution"; | 33 | import { createExecutionEngine } from "@executor/execution"; |
| 34 | import { makeQuickJsExecutor } from "@executor/runtime-quickjs"; | ||
| 34 | import { | 35 | import { |
| 35 | Scope, | 36 | Scope, |
| 36 | ScopeId, | 37 | ScopeId, |
| @@ -215,7 +216,7 @@ const TestApiLive = HttpApiBuilder.api(ProtectedCloudApi).pipe( · 178 unmodified lines | |||
| 215 | const buildAppForScope = (scopeId: string, scopeName: string) => | 216 | const buildAppForScope = (scopeId: string, scopeName: string) => |
| 216 | Effect.gen(function* () { | 217 | Effect.gen(function* () { |
| 217 | const executor = yield* createTestScopedExecutor(scopeId, scopeName); | 218 | const executor = yield* createTestScopedExecutor(scopeId, scopeName); |
| 218 | const engine = createExecutionEngine({ executor }); | 219 | const engine = createExecutionEngine({ executor, codeExecutor: makeQuickJsExecutor() }); |
| 219 | const services = Layer.mergeAll( | 220 | const services = Layer.mergeAll( |
| 220 | Layer.succeed(ExecutorService, executor), | 221 | Layer.succeed(ExecutorService, executor), |
| 221 | Layer.succeed(ExecutionEngineService, engine), | 222 | Layer.succeed(ExecutionEngineService, engine), |