orc-server 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/auth.test.js +49 -0
- package/dist/__tests__/watcher.test.js +58 -0
- package/dist/claude/chatService.js +175 -0
- package/dist/claude/sessionBrowser.js +743 -0
- package/dist/claude/watcher.js +242 -0
- package/dist/config.js +44 -0
- package/dist/files/browser.js +227 -0
- package/dist/files/reader.js +159 -0
- package/dist/files/search.js +124 -0
- package/dist/git/gitHandler.js +177 -0
- package/dist/git/gitService.js +299 -0
- package/dist/git/index.js +8 -0
- package/dist/http/server.js +96 -0
- package/dist/index.js +77 -0
- package/dist/ssh/index.js +9 -0
- package/dist/ssh/sshHandler.js +205 -0
- package/dist/ssh/sshManager.js +329 -0
- package/dist/terminal/index.js +11 -0
- package/dist/terminal/localTerminalHandler.js +176 -0
- package/dist/terminal/localTerminalManager.js +497 -0
- package/dist/terminal/terminalWebSocket.js +136 -0
- package/dist/types.js +2 -0
- package/dist/utils/logger.js +42 -0
- package/dist/websocket/auth.js +18 -0
- package/dist/websocket/server.js +631 -0
- package/package.json +66 -0
- package/web-dist/assets/highlight-l0sNRNKZ.js +1 -0
- package/web-dist/assets/index-C8TJGN-T.css +41 -0
- package/web-dist/assets/index-DjLLxjMD.js +39 -0
- package/web-dist/assets/markdown-C_j0ZeeY.js +51 -0
- package/web-dist/assets/react-vendor-CqP5oCk4.js +9 -0
- package/web-dist/assets/xterm-BCk906R6.js +9 -0
- package/web-dist/icon-192.png +0 -0
- package/web-dist/icon-512.png +0 -0
- package/web-dist/index.html +23 -0
- package/web-dist/manifest.json +24 -0
- package/web-dist/sw.js +35 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" class="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
|
6
|
+
<meta name="theme-color" content="#030712" />
|
|
7
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
8
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
9
|
+
<meta name="apple-mobile-web-app-title" content="ORC" />
|
|
10
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
11
|
+
<link rel="manifest" href="/manifest.json" />
|
|
12
|
+
<link rel="apple-touch-icon" href="/icon-192.png" />
|
|
13
|
+
<title>OpenRemoteControl</title>
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-DjLLxjMD.js"></script>
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/markdown-C_j0ZeeY.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/assets/react-vendor-CqP5oCk4.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/xterm-BCk906R6.js">
|
|
18
|
+
<link rel="stylesheet" crossorigin href="/assets/index-C8TJGN-T.css">
|
|
19
|
+
</head>
|
|
20
|
+
<body class="bg-gray-950 text-gray-100">
|
|
21
|
+
<div id="root"></div>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "OpenRemoteControl",
|
|
3
|
+
"short_name": "ORC",
|
|
4
|
+
"description": "Remote development client for Claude Code",
|
|
5
|
+
"start_url": "/",
|
|
6
|
+
"display": "standalone",
|
|
7
|
+
"orientation": "any",
|
|
8
|
+
"background_color": "#030712",
|
|
9
|
+
"theme_color": "#030712",
|
|
10
|
+
"icons": [
|
|
11
|
+
{
|
|
12
|
+
"src": "/icon-192.png",
|
|
13
|
+
"sizes": "192x192",
|
|
14
|
+
"type": "image/png",
|
|
15
|
+
"purpose": "any maskable"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"src": "/icon-512.png",
|
|
19
|
+
"sizes": "512x512",
|
|
20
|
+
"type": "image/png",
|
|
21
|
+
"purpose": "any maskable"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
package/web-dist/sw.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const CACHE_NAME = 'orc-v1';
|
|
2
|
+
|
|
3
|
+
self.addEventListener('install', () => {
|
|
4
|
+
self.skipWaiting();
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
self.addEventListener('activate', (event) => {
|
|
8
|
+
event.waitUntil(
|
|
9
|
+
caches.keys().then((names) =>
|
|
10
|
+
Promise.all(names.filter((n) => n !== CACHE_NAME).map((n) => caches.delete(n)))
|
|
11
|
+
)
|
|
12
|
+
);
|
|
13
|
+
self.clients.claim();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
self.addEventListener('fetch', (event) => {
|
|
17
|
+
// Network-first for all requests (real-time app, caching would be stale)
|
|
18
|
+
if (event.request.method !== 'GET') return;
|
|
19
|
+
// Skip WebSocket and API requests
|
|
20
|
+
const url = new URL(event.request.url);
|
|
21
|
+
if (url.pathname.startsWith('/terminal') || url.pathname === '/health') return;
|
|
22
|
+
|
|
23
|
+
event.respondWith(
|
|
24
|
+
fetch(event.request)
|
|
25
|
+
.then((response) => {
|
|
26
|
+
// Cache static assets
|
|
27
|
+
if (response.ok && (url.pathname.match(/\.(js|css|png|woff2?)$/) || url.pathname === '/')) {
|
|
28
|
+
const clone = response.clone();
|
|
29
|
+
caches.open(CACHE_NAME).then((cache) => cache.put(event.request, clone));
|
|
30
|
+
}
|
|
31
|
+
return response;
|
|
32
|
+
})
|
|
33
|
+
.catch(() => caches.match(event.request))
|
|
34
|
+
);
|
|
35
|
+
});
|