@sulala/agent-os 0.1.17 → 0.1.19
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/dashboard-dist/assets/index-CRHWtry2.js +72 -0
- package/dashboard-dist/index.html +1 -1
- package/dist/cli.js +15 -0
- package/dist/index.js +10 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/png" href="/logo_dark.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Sulala Agent Dashboard</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CRHWtry2.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-Cdtyuhuu.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/dist/cli.js
CHANGED
|
@@ -15962,6 +15962,16 @@ function createRoutes() {
|
|
|
15962
15962
|
GET: (req) => handleSettings(req),
|
|
15963
15963
|
PUT: (req) => handleSettings(req)
|
|
15964
15964
|
},
|
|
15965
|
+
"/api/settings/dashboard-token/regenerate": {
|
|
15966
|
+
POST: async () => {
|
|
15967
|
+
const token = generateDashboardSecret();
|
|
15968
|
+
await writeConfig({ dashboard_secret: token });
|
|
15969
|
+
return jsonResponse({
|
|
15970
|
+
token,
|
|
15971
|
+
message: "Restart the server for the new token to take effect."
|
|
15972
|
+
});
|
|
15973
|
+
}
|
|
15974
|
+
},
|
|
15965
15975
|
"/api/channels/telegram/webhook": {
|
|
15966
15976
|
POST: (req) => handleTelegramWebhook(req, memoryStore)
|
|
15967
15977
|
},
|
|
@@ -16387,6 +16397,11 @@ async function cmdOnboard() {
|
|
|
16387
16397
|
await new Promise((r) => setTimeout(r, 1500));
|
|
16388
16398
|
}
|
|
16389
16399
|
openDashboard();
|
|
16400
|
+
const token = await getDashboardSecret();
|
|
16401
|
+
console.log("");
|
|
16402
|
+
console.log("Dashboard login token (copy and paste in the dashboard):");
|
|
16403
|
+
console.log(token);
|
|
16404
|
+
console.log("");
|
|
16390
16405
|
}
|
|
16391
16406
|
var NPM_PACKAGE = "@sulala/agent-os";
|
|
16392
16407
|
async function cmdUpdate() {
|
package/dist/index.js
CHANGED
|
@@ -15888,6 +15888,16 @@ function createRoutes() {
|
|
|
15888
15888
|
GET: (req) => handleSettings(req),
|
|
15889
15889
|
PUT: (req) => handleSettings(req)
|
|
15890
15890
|
},
|
|
15891
|
+
"/api/settings/dashboard-token/regenerate": {
|
|
15892
|
+
POST: async () => {
|
|
15893
|
+
const token = generateDashboardSecret();
|
|
15894
|
+
await writeConfig({ dashboard_secret: token });
|
|
15895
|
+
return jsonResponse({
|
|
15896
|
+
token,
|
|
15897
|
+
message: "Restart the server for the new token to take effect."
|
|
15898
|
+
});
|
|
15899
|
+
}
|
|
15900
|
+
},
|
|
15891
15901
|
"/api/channels/telegram/webhook": {
|
|
15892
15902
|
POST: (req) => handleTelegramWebhook(req, memoryStore)
|
|
15893
15903
|
},
|