Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,18 @@
"codepod": "./build/bin.js"
},
"dependencies": {
"@codepod/runtime": "workspace:^",
"@codepod/ui": "workspace:^",
"@codepod/yjs": "workspace:^",
"@trpc/server": "^10.43.0",
"commander": "^11.0.0",
"cors": "^2.8.5",
"express": "^4.18.2",
"jest": "^29.0.3",
"lib0": "^0.2.83",
"lodash": "^4.17.21",
"uuid": "^9.0.0",
"ws": "^8.2.3",
"y-protocols": "^1.0.5",
"yjs": "^13.6.7",
"zeromq": "6.0.0-beta.6",
"zod": "^3.22.4"
},
"devDependencies": {
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions apps/runtime/src/server.ts → apps/api/src/runtime/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { WebSocket, WebSocketServer } from "ws";
import express from "express";
import http from "http";

import { ApolloClient, InMemoryCache } from "@apollo/client/core";

import {
ZmqWire,
constructExecuteRequest,
Expand All @@ -17,12 +15,6 @@ import {
handleIOPub_display_data,
} from "./zmq-utils";

interface TokenInterface {
id: string;
}

const cache: InMemoryCache = new InMemoryCache({});

function bindZMQ(zmq_wire: ZmqWire, socket: WebSocket) {
zmq_wire.setOnIOPub((topic, msgs) => {
// console.log("-----", topic, msgs);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/api/src/spawner_native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { writeFileSync } from "fs";
import net from "net";
import http from "http";

import { startServer } from "@codepod/runtime";
import { startServer } from "./runtime/server";

type KernelInfo = {
// the kernel
Expand Down
3 changes: 2 additions & 1 deletion apps/api/src/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import Y from "yjs";
import WebSocket from "ws";
import { z } from "zod";

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

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

Expand Down
File renamed without changes.
21 changes: 0 additions & 21 deletions apps/runtime/Dockerfile

This file was deleted.

24 changes: 0 additions & 24 deletions apps/runtime/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions apps/runtime/kernel/Dockerfile

This file was deleted.

45 changes: 0 additions & 45 deletions apps/runtime/kernel/codepod.py

This file was deleted.

12 changes: 0 additions & 12 deletions apps/runtime/kernel/conn.json

This file was deleted.

26 changes: 0 additions & 26 deletions apps/runtime/package.json

This file was deleted.

27 changes: 0 additions & 27 deletions apps/runtime/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion apps/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"dependencies": {
"@apollo/client": "^3.8.1",
"@benrbray/prosemirror-math": "^0.2.2",
"@codepod/yjs": "workspace:*",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.10.9",
Expand All @@ -39,6 +38,7 @@
"immer": "^10.0.2",
"katex": "0.13.0",
"kbar": "^0.1.0-beta.40",
"lib0": "^0.2.83",
"monaco-editor": "^0.34.1",
"nanoid": "^3.0.0",
"nanoid-dictionary": "^4.3.0",
Expand Down
3 changes: 2 additions & 1 deletion apps/ui/src/lib/store/yjsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { produce } from "immer";

import { Doc, Transaction } from "yjs";
import * as Y from "yjs";
import { WebsocketProvider } from "@codepod/yjs/src/y-websocket";
// import { WebsocketProvider } from "../y-websocket";
import { WebsocketProvider } from "../../../../api/src/y-websocket";
import { addAwarenessStyle } from "../utils/utils";
import { MyState, Pod } from ".";

Expand Down
3 changes: 0 additions & 3 deletions packages/prisma/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions packages/prisma/package.json

This file was deleted.

Loading