Skip to content

Commit 8329be4

Browse files
authored
refactor: inline runtime & yjs packages (#567)
1 parent 7079322 commit 8329be4

File tree

49 files changed

+17
-1345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+17
-1345
lines changed

apps/api/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,18 @@
1212
"codepod": "./build/bin.js"
1313
},
1414
"dependencies": {
15-
"@codepod/runtime": "workspace:^",
16-
"@codepod/ui": "workspace:^",
17-
"@codepod/yjs": "workspace:^",
1815
"@trpc/server": "^10.43.0",
1916
"commander": "^11.0.0",
2017
"cors": "^2.8.5",
2118
"express": "^4.18.2",
2219
"jest": "^29.0.3",
2320
"lib0": "^0.2.83",
2421
"lodash": "^4.17.21",
22+
"uuid": "^9.0.0",
2523
"ws": "^8.2.3",
2624
"y-protocols": "^1.0.5",
2725
"yjs": "^13.6.7",
26+
"zeromq": "6.0.0-beta.6",
2827
"zod": "^3.22.4"
2928
},
3029
"devDependencies": {
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { WebSocket, WebSocketServer } from "ws";
33
import express from "express";
44
import http from "http";
55

6-
import { ApolloClient, InMemoryCache } from "@apollo/client/core";
7-
86
import {
97
ZmqWire,
108
constructExecuteRequest,
@@ -17,12 +15,6 @@ import {
1715
handleIOPub_display_data,
1816
} from "./zmq-utils";
1917

20-
interface TokenInterface {
21-
id: string;
22-
}
23-
24-
const cache: InMemoryCache = new InMemoryCache({});
25-
2618
function bindZMQ(zmq_wire: ZmqWire, socket: WebSocket) {
2719
zmq_wire.setOnIOPub((topic, msgs) => {
2820
// console.log("-----", topic, msgs);

apps/api/src/spawner_native.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { writeFileSync } from "fs";
33
import net from "net";
44
import http from "http";
55

6-
import { startServer } from "@codepod/runtime";
6+
import { startServer } from "./runtime/server";
77

88
type KernelInfo = {
99
// the kernel

apps/api/src/trpc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import Y from "yjs";
77
import WebSocket from "ws";
88
import { z } from "zod";
99

10-
import { WebsocketProvider } from "@codepod/yjs/src/y-websocket";
10+
// import { WebsocketProvider } from "../../ui/src/lib/y-websocket";
11+
import { WebsocketProvider } from "./y-websocket";
1112

1213
import { killRuntime, spawnRuntime } from "./spawner_native";
1314

apps/runtime/Dockerfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

apps/runtime/README.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)