Skip to content

Commit

Permalink
Merge branch 'main' of github.com:sizzldev/ctrlplane into init-rename…
Browse files Browse the repository at this point in the history
…-target-to-resource
  • Loading branch information
adityachoudhari26 committed Nov 13, 2024
2 parents 972785d + 6e242d8 commit 8051c7f
Show file tree
Hide file tree
Showing 66 changed files with 2,162 additions and 501 deletions.
3 changes: 0 additions & 3 deletions apps/ctrlshell/README.md

This file was deleted.

118 changes: 0 additions & 118 deletions apps/ctrlshell/src/agent-socket.ts

This file was deleted.

24 changes: 0 additions & 24 deletions apps/ctrlshell/src/payloads/index.ts

This file was deleted.

16 changes: 0 additions & 16 deletions apps/ctrlshell/src/payloads/session-create.ts

This file was deleted.

19 changes: 0 additions & 19 deletions apps/ctrlshell/src/payloads/session-input.ts

This file was deleted.

11 changes: 0 additions & 11 deletions apps/ctrlshell/src/payloads/session-output.ts

This file was deleted.

55 changes: 0 additions & 55 deletions apps/ctrlshell/src/routing.ts

This file was deleted.

17 changes: 0 additions & 17 deletions apps/ctrlshell/src/session-auditor.ts

This file was deleted.

27 changes: 0 additions & 27 deletions apps/ctrlshell/src/user-socket.ts

This file was deleted.

22 changes: 0 additions & 22 deletions apps/ctrlshell/src/utils.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/ctrlshell/Dockerfile → apps/target-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ RUN adduser --system --uid 1001 expressjs
USER expressjs

COPY --from=installer /app .
CMD ["node", "apps/webshell-router/dist/index.js"]
CMD ["node", "apps/target-proxy/dist/index.js"]
30 changes: 30 additions & 0 deletions apps/target-proxy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Target Proxy Router

Simple router that redirects web terminal requests to instances and vis-versa.

### Sequence Diagram

```mermaid
sequenceDiagram
autonumber
participant AG as Agebt
participant PR as Proxy
participant CP as Ctrlplane
participant DE as Developer
opt Init Agent
AG->>PR: Connects to Proxy
PR->>CP: Register as target
AG->>PR: Sends heartbeat
end
opt Session
DE->>CP: Opens session
CP->>PR: Forwards commands
PR->>AG: Receives commands
AG->>PR: Sends output
PR->>CP: Sends output
CP->>DE: Displays output
end
```
File renamed without changes.
10 changes: 7 additions & 3 deletions apps/ctrlshell/package.json → apps/target-proxy/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"name": "@ctrlplane/ctrlshell",
"name": "@ctrlplane/target-proxy",
"private": true,
"type": "module",
"scripts": {
"clean": "rm -rf .turbo node_modules",
"dev": "tsx watch --clear-screen=false src/index.ts",
"dev:t": "pnpm with-env tsx watch --clear-screen=false src/index.ts",
"lint": "eslint",
"format": "prettier --check . --ignore-path ../../.gitignore"
"format": "prettier --check . --ignore-path ../../.gitignore",
"with-env": "dotenv -e ../../.env --"
},
"dependencies": {
"@ctrlplane/db": "workspace:*",
"@ctrlplane/job-dispatch": "workspace:*",
"@ctrlplane/logger": "workspace:*",
"@ctrlplane/validators": "workspace:*",
"@t3-oss/env-core": "catalog:",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 8051c7f

Please sign in to comment.