@yeaft/webchat-agent 1.0.525 → 1.0.527
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/local-runtime/server/index.js +2 -0
- package/local-runtime/server/routes/installer-routes.js +19 -0
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +174 -175
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +2 -2
- package/local-runtime/web/installers/install.ps1 +264 -0
- package/local-runtime/web/installers/install.sh +150 -0
- package/local-runtime/web/style.bundle.css +1 -1
- package/local-runtime/web/style.bundle.css.gz +0 -0
- package/package.json +1 -1
- package/repo-workflow-cli.js +34 -26
- package/repo-workflow.js +0 -779
- package/service/linux.js +24 -11
- package/service/macos.js +23 -19
- package/service/windows.js +8 -7
- package/yeaft/routing/router.js +0 -135
- package/yeaft/tools/activation.js +0 -3
- package/yeaft/tools/index.js +0 -2
- package/yeaft/tools/route-forward.js +1 -19
- package/yeaft/web-bridge.js +2 -54
- package/skills/review-merge-tag/SKILL.md +0 -78
- package/yeaft/tools/repo-workflow.js +0 -80
|
@@ -11,6 +11,7 @@ import { CONFIG, isEmailConfigured, validateProductionConfig } from './config.js
|
|
|
11
11
|
import { agents, webClients, userFileTabs, userStatsDeltas } from './context.js';
|
|
12
12
|
import { invitationDb, userDb, userStatsDb, closeDb } from './database.js';
|
|
13
13
|
import { registerApiRoutes } from './api.js';
|
|
14
|
+
import { registerInstallerRoutes } from './routes/installer-routes.js';
|
|
14
15
|
import { registerProxyRoutes, handleProxyWebSocketUpgrade } from './proxy.js';
|
|
15
16
|
import { handleAgentConnection } from './ws-agent.js';
|
|
16
17
|
import { handleWebConnection } from './ws-client.js';
|
|
@@ -139,6 +140,7 @@ app.use(compression({
|
|
|
139
140
|
const webDir = process.env.WEB_DIR || (process.env.SERVE_DIST === 'true'
|
|
140
141
|
? join(__dirname, '../web/dist')
|
|
141
142
|
: join(__dirname, '../web'));
|
|
143
|
+
registerInstallerRoutes(app, webDir);
|
|
142
144
|
app.use(express.static(webDir, {
|
|
143
145
|
maxAge: process.env.SERVE_DIST === 'true' ? '1y' : 0,
|
|
144
146
|
etag: true,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Public, static bootstraps for a machine that has no Agent or browser session yet.
|
|
5
|
+
* No user, Host header or query data is interpolated; credentials stay in CLI arguments.
|
|
6
|
+
* webDir is the same trusted source/dist root used by the Server's static middleware.
|
|
7
|
+
*/
|
|
8
|
+
export function registerInstallerRoutes(app, webDir) {
|
|
9
|
+
for (const file of ['install.sh', 'install.ps1']) {
|
|
10
|
+
app.get(`/installers/${file}`, (_req, res) => {
|
|
11
|
+
res.set({
|
|
12
|
+
'Content-Type': 'text/plain; charset=utf-8',
|
|
13
|
+
'Cache-Control': 'no-store',
|
|
14
|
+
'X-Content-Type-Options': 'nosniff',
|
|
15
|
+
});
|
|
16
|
+
res.sendFile(join(webDir, 'installers', file), { cacheControl: false });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.527"}
|