repoburg 1.3.219 → 1.3.221
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/agent-pane/backend/dist/index.js +373 -18
- package/agent-pane/backend/dist/server.js +373 -18
- package/agent-pane/frontend/dist/assets/index-lc9eQnqi.css +1 -0
- package/agent-pane/frontend/dist/assets/index-vR3SdkR-.js +418 -0
- package/agent-pane/frontend/dist/index.html +2 -2
- package/daemon/dist/remote/cloudflared.js +16 -10
- package/package.json +3 -2
- package/agent-pane/frontend/dist/assets/index-BUkOj2Cb.js +0 -392
- package/agent-pane/frontend/dist/assets/index-gAFaOmjN.css +0 -1
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;450;510;590;600&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
11
11
|
rel="stylesheet"
|
|
12
12
|
/>
|
|
13
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/assets/index-vR3SdkR-.js"></script>
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/assets/index-lc9eQnqi.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
|
@@ -133,16 +133,27 @@ const SERVICE_NAME_LINUX = 'repoburg-cloudflared';
|
|
|
133
133
|
const SERVICE_ID_DARWIN = 'com.repoburg.cloudflared';
|
|
134
134
|
/** Loopback metrics endpoint (tunnel connectivity is probed from here). */
|
|
135
135
|
exports.CLOUDFLARED_METRICS_PORT = 20241;
|
|
136
|
+
/** Tunnel-level args, mirroring the `--metrics` placement (before `run`). */
|
|
137
|
+
function tunnelArgs(protocol) {
|
|
138
|
+
return [
|
|
139
|
+
'tunnel',
|
|
140
|
+
'--metrics',
|
|
141
|
+
`127.0.0.1:${exports.CLOUDFLARED_METRICS_PORT}`,
|
|
142
|
+
...(protocol ? ['--protocol', protocol] : []),
|
|
143
|
+
'run',
|
|
144
|
+
];
|
|
145
|
+
}
|
|
136
146
|
function cloudflaredMetricsUrl() {
|
|
137
147
|
return `http://127.0.0.1:${exports.CLOUDFLARED_METRICS_PORT}/metrics`;
|
|
138
148
|
}
|
|
139
|
-
function systemdUnitContent(binaryPath, tunnelToken) {
|
|
149
|
+
function systemdUnitContent(binaryPath, tunnelToken, protocol) {
|
|
150
|
+
const args = [...tunnelArgs(protocol), '--token', tunnelToken].join(' ');
|
|
140
151
|
return ` [Unit]
|
|
141
152
|
Description=Repoburg remote access tunnel (cloudflared)
|
|
142
153
|
After=network-online.target
|
|
143
154
|
|
|
144
155
|
[Service]
|
|
145
|
-
ExecStart=${binaryPath}
|
|
156
|
+
ExecStart=${binaryPath} ${args}
|
|
146
157
|
Restart=always
|
|
147
158
|
RestartSec=5
|
|
148
159
|
|
|
@@ -150,7 +161,8 @@ RestartSec=5
|
|
|
150
161
|
WantedBy=default.target
|
|
151
162
|
`.trimStart();
|
|
152
163
|
}
|
|
153
|
-
function launchdPlistContent(binaryPath, tunnelToken) {
|
|
164
|
+
function launchdPlistContent(binaryPath, tunnelToken, protocol) {
|
|
165
|
+
const args = [binaryPath, ...tunnelArgs(protocol), '--token', tunnelToken];
|
|
154
166
|
return `<?xml version="1.0" encoding="UTF-8"?>
|
|
155
167
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
156
168
|
<plist version="1.0">
|
|
@@ -158,13 +170,7 @@ function launchdPlistContent(binaryPath, tunnelToken) {
|
|
|
158
170
|
<key>Label</key><string>${SERVICE_ID_DARWIN}</string>
|
|
159
171
|
<key>ProgramArguments</key>
|
|
160
172
|
<array>
|
|
161
|
-
<string>${
|
|
162
|
-
<string>tunnel</string>
|
|
163
|
-
<string>--metrics</string>
|
|
164
|
-
<string>127.0.0.1:${exports.CLOUDFLARED_METRICS_PORT}</string>
|
|
165
|
-
<string>run</string>
|
|
166
|
-
<string>--token</string>
|
|
167
|
-
<string>${tunnelToken}</string>
|
|
173
|
+
${args.map((arg) => ` <string>${arg}</string>`).join('\n')}
|
|
168
174
|
</array>
|
|
169
175
|
<key>RunAtLoad</key><true/>
|
|
170
176
|
<key>KeepAlive</key><true/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repoburg",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.221",
|
|
4
4
|
"description": "A local AI-powered software developer assistant that runs on your own machine.",
|
|
5
5
|
"author": "Celal Ertug",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -36,10 +36,11 @@
|
|
|
36
36
|
"dev:website": "npm run dev -w website",
|
|
37
37
|
"start:daemon": "npm run start -w daemon",
|
|
38
38
|
"dev:daemon": "npm run dev -w daemon",
|
|
39
|
+
"daemon:pane": "(cd agent-pane/backend && npm run build) && (cd agent-pane/frontend && npm run build) && npm run dev:daemon",
|
|
39
40
|
"dev:agent-pane": "concurrently -n backend,frontend -c blue,green \"cd agent-pane/backend && npm run dev\" \"cd agent-pane/frontend && npm run dev\"",
|
|
40
41
|
"jaeger:start": "docker run -d --rm --name jaeger -e COLLECTOR_OTLP_ENABLED=true -p 16686:16686 -p 4318:4318 jaegertracing/all-in-one:latest",
|
|
41
42
|
"jaeger:stop": "docker stop jaeger",
|
|
42
|
-
"lo:build": "npm run build -w backend && npm run build -w website2 && (cd agent-pane/backend && npm run build) && (cd agent-pane/frontend && npm run build) && npm run build -w daemon &&
|
|
43
|
+
"lo:build": "npm run build -w backend && npm run build -w website2 && (cd agent-pane/backend && npm run build) && (cd agent-pane/frontend && npm run build) && npm run build -w daemon && cd frontend && npm run build",
|
|
43
44
|
"lo:publish": "npm publish"
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|