History

Merge pull request #284 from RhysSullivan/worktree-publish-execution-cli

feat(release): publish execution, cli, and kernel packages to npm

Rhys Sullivan committed 6 months ago

Commit 599ae332 parents 96dc18a 905973b35 files · +772 −66Browse files

Showing the changes to apps/cloud/src (2 of 35 files). Show all

Unified · Split

2 files
  1. apps/cloud/src/mcp-session.e2e.node.test.ts +2 −1
  2. apps/cloud/src/services/__test-harness__/api-harness.ts +2 −1
apps/cloud/src/mcp-session.e2e.node.test.ts+2−1
@@ -23,6 +23,7 @@ import type { ClientCapabilities } from "@modelcontextprotocol/sdk/types.js"; · 22 unmodified lines
2323
2424 import { createExecutorMcpServer } from "@executor/host-mcp";
2525 import { createExecutionEngine } from "@executor/execution";
26+import { makeQuickJsExecutor } from "@executor/runtime-quickjs";
2627 import {
2728 ElicitationResponse,
2829 FormElicitation,
@@ -134,7 +135,7 @@ const openSession = ( · 105 unmodified lines
134135 Effect.acquireRelease(
135136 Effect.gen(function* () {
136137 const executor = yield* buildScopedExecutor(orgId, `Org ${orgId}`, options);
137− const engine = createExecutionEngine({ executor });
138+ const engine = createExecutionEngine({ executor, codeExecutor: makeQuickJsExecutor() });
138139 const mcpServer = yield* Effect.promise(() => createExecutorMcpServer({ engine }));
139140 const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
140141 const client = new Client(
apps/cloud/src/services/__test-harness__/api-harness.ts+2−1
@@ -31,6 +31,7 @@ import { · 30 unmodified lines
3131 ExecutorService,
3232 } from "@executor/api/server";
3333 import { createExecutionEngine } from "@executor/execution";
34+import { makeQuickJsExecutor } from "@executor/runtime-quickjs";
3435 import {
3536 Scope,
3637 ScopeId,
@@ -215,7 +216,7 @@ const TestApiLive = HttpApiBuilder.api(ProtectedCloudApi).pipe( · 178 unmodified lines
215216 const buildAppForScope = (scopeId: string, scopeName: string) =>
216217 Effect.gen(function* () {
217218 const executor = yield* createTestScopedExecutor(scopeId, scopeName);
218− const engine = createExecutionEngine({ executor });
219+ const engine = createExecutionEngine({ executor, codeExecutor: makeQuickJsExecutor() });
219220 const services = Layer.mergeAll(
220221 Layer.succeed(ExecutorService, executor),
221222 Layer.succeed(ExecutionEngineService, engine),