@deslop/auth 0.1.1376 → 0.1.1413
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/README.md +1 -5
- package/dist/server.js +6 -14
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/server.js
CHANGED
|
@@ -96146,12 +96146,7 @@ const publicAccess = [
|
|
|
96146
96146
|
callers: ["member"],
|
|
96147
96147
|
surface: `tool ${name}`
|
|
96148
96148
|
})),
|
|
96149
|
-
...map$10([
|
|
96150
|
-
"metrics.watch",
|
|
96151
|
-
"metrics.history",
|
|
96152
|
-
"inventory.watch",
|
|
96153
|
-
"inventory.snapshot"
|
|
96154
|
-
], (name) => ({
|
|
96149
|
+
...map$10(["metrics.watch", "inventory.watch"], (name) => ({
|
|
96155
96150
|
app: "deploy",
|
|
96156
96151
|
callers: ["member"],
|
|
96157
96152
|
surface: `rpc ${name}`
|
|
@@ -96161,11 +96156,6 @@ const publicAccess = [
|
|
|
96161
96156
|
callers: ["member"],
|
|
96162
96157
|
surface: `tool ${name}`
|
|
96163
96158
|
})),
|
|
96164
|
-
{
|
|
96165
|
-
app: "deploy",
|
|
96166
|
-
callers: ["admin"],
|
|
96167
|
-
surface: "rpc exposures.remove"
|
|
96168
|
-
},
|
|
96169
96159
|
...map$10([
|
|
96170
96160
|
"ai-proxy.key",
|
|
96171
96161
|
"ai-proxy.setKey",
|
|
@@ -97916,7 +97906,7 @@ const installAgent = fnUntraced(function* (name, command) {
|
|
|
97916
97906
|
const installUpdateAgent = fnUntraced(function* (name, command) {
|
|
97917
97907
|
const label = `deslop-${name}-update`;
|
|
97918
97908
|
const target = `${domain()}/${label}`;
|
|
97919
|
-
const file = yield* writeAgent(label, name, command, "<key>StartInterval</key><integer>
|
|
97909
|
+
const file = yield* writeAgent(label, name, command, "<key>StartInterval</key><integer>600</integer>");
|
|
97920
97910
|
if (yield* loaded(target)) yield* bootout(file);
|
|
97921
97911
|
yield* executeProcess("launchctl", [
|
|
97922
97912
|
"bootstrap",
|
|
@@ -97946,6 +97936,7 @@ function restartAgent(name) {
|
|
|
97946
97936
|
]), "30 seconds");
|
|
97947
97937
|
}
|
|
97948
97938
|
// ../../packages/runtime/src/server/services.ts
|
|
97939
|
+
const SLICE = "deslop.slice";
|
|
97949
97940
|
function systemdArgument(value) {
|
|
97950
97941
|
return `"${pipe(value, replaceAll("\\", "\\\\"), replaceAll("\"", "\\\""), replaceAll("%", "%%"), replaceAll("$", "$$$$"), replaceAll("\n", "\\n"), replaceAll("\r", "\\r"))}"`;
|
|
97951
97942
|
}
|
|
@@ -97963,7 +97954,8 @@ const installService = fnUntraced(function* (name, command, options) {
|
|
|
97963
97954
|
const directory = yield* unitDirectory;
|
|
97964
97955
|
const unit = `deslop-${name}.service`;
|
|
97965
97956
|
yield* fs.makeDirectory(directory, { recursive: true });
|
|
97966
|
-
yield* fs.writeFileString(path.join(directory,
|
|
97957
|
+
yield* fs.writeFileString(path.join(directory, SLICE), "[Unit]\nDescription=Deslop apps\n\n[Slice]\nCPUWeight=1000\nMemoryLow=1G\n", { mode: 384 });
|
|
97958
|
+
yield* fs.writeFileString(path.join(directory, unit), `[Unit]\nDescription=Deslop ${name}\nAfter=network-online.target\n\n[Service]\nType=simple\nSlice=${SLICE}\nEnvironment=NODE_ENV=production\nEnvironment=${systemdArgument(`PATH=${home}/.vite-plus/bin:/usr/local/bin:/usr/bin:/bin`)}\nEnvironmentFile=-${replaceAll("%", "%%")(`${home}/.deslop/${name}.env`)}\nExecStart=${pipe(command, map$10(systemdArgument), join$3(" "))}\nRestart=on-failure\nRestartSec=3\nUMask=0077\n\n[Install]\nWantedBy=default.target\n`, { mode: 384 });
|
|
97967
97959
|
yield* systemctl("daemon-reload");
|
|
97968
97960
|
yield* systemctl("enable", unit);
|
|
97969
97961
|
yield* systemctl(match(options?.restart === false, {
|
|
@@ -97979,7 +97971,7 @@ const installUpdateService = fnUntraced(function* (name, command) {
|
|
|
97979
97971
|
const directory = yield* unitDirectory;
|
|
97980
97972
|
const unit = `deslop-${name}-update`;
|
|
97981
97973
|
yield* fs.writeFileString(path.join(directory, `${unit}.service`), `[Unit]\nDescription=Update Deslop ${name}\n\n[Service]\nType=oneshot\nExecStart=${pipe(command, map$10(systemdArgument), join$3(" "))}\nUMask=0077\n`, { mode: 384 });
|
|
97982
|
-
yield* fs.writeFileString(path.join(directory, `${unit}.timer`), `[Unit]\nDescription=Update Deslop ${name}\n\n[Timer]\nOnBootSec=5min\nOnUnitInactiveSec=
|
|
97974
|
+
yield* fs.writeFileString(path.join(directory, `${unit}.timer`), `[Unit]\nDescription=Update Deslop ${name}\n\n[Timer]\nOnBootSec=5min\nOnUnitInactiveSec=10min\nRandomizedDelaySec=1min\n\n[Install]\nWantedBy=timers.target\n`, { mode: 384 });
|
|
97983
97975
|
yield* systemctl("daemon-reload");
|
|
97984
97976
|
yield* systemctl("enable", "--now", `${unit}.timer`);
|
|
97985
97977
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1413",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=26"
|
|
35
35
|
},
|
|
36
|
-
"fingerprint": "
|
|
36
|
+
"fingerprint": "cd5f69b7125c8164f917a0e4fb7cd6a5c16582e77053ad9a338898402bcbcf36"
|
|
37
37
|
}
|