@deslop/trips 0.1.1222 → 0.1.1227
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 +13 -0
- package/dist/server.js +7 -4
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Trips
|
|
2
|
+
|
|
3
|
+
Your flights, trains and stays, with live gates, delays and platforms, for the Trips iOS app.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install --global @deslop/trips
|
|
7
|
+
trips service install --url https://trips.mp281x.xyz --auth https://auth.mp281x.xyz --apns-key-id <id> --apns-team-id <team>
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
- **Secrets** in `~/.deslop/trips.env`: `AEROAPI_KEY`, `ANTHROPIC_API_KEY`, `APNS_KEY`.
|
|
11
|
+
- **MCP** at `/mcp`: `list_bookings`, `save_booking`.
|
|
12
|
+
|
|
13
|
+
Common flags and service commands: [Deslop app runtime](https://github.com/MP281X/deslop/blob/main/packages/runtime/README.md).
|
package/dist/server.js
CHANGED
|
@@ -92936,7 +92936,7 @@ function listEvents(lists) {
|
|
|
92936
92936
|
}
|
|
92937
92937
|
const layerProtocol = mergeAll$2(layerSchemaBinary(), succeed$6(MaxBodySize)(mebibytes(10)));
|
|
92938
92938
|
const layerTelemetry = unwrap$7(gen(function* () {
|
|
92939
|
-
const name = yield*
|
|
92939
|
+
const name = (yield* packageMetadata).name;
|
|
92940
92940
|
return match$8(yield* option(String$5("OTEL_URL")), {
|
|
92941
92941
|
onNone: () => empty$12,
|
|
92942
92942
|
onSome: (url) => layerOtlp(`${name}-server`, url, "server")
|
|
@@ -93082,17 +93082,20 @@ function systemctl(...args) {
|
|
|
93082
93082
|
const unitDirectory = gen(function* () {
|
|
93083
93083
|
return (yield* Path$1).join(yield* String$5("HOME"), ".config", "systemd", "user");
|
|
93084
93084
|
});
|
|
93085
|
-
const install = fnUntraced(function* (name, command) {
|
|
93085
|
+
const install = fnUntraced(function* (name, command, options) {
|
|
93086
93086
|
const fs = yield* FileSystem;
|
|
93087
93087
|
const path = yield* Path$1;
|
|
93088
93088
|
const home = yield* String$5("HOME");
|
|
93089
93089
|
const directory = yield* unitDirectory;
|
|
93090
93090
|
const unit = `deslop-${name}.service`;
|
|
93091
93091
|
yield* fs.makeDirectory(directory, { recursive: true });
|
|
93092
|
-
yield* fs.writeFileString(path.join(directory, unit), `[Unit]\nDescription=Deslop ${name}\nAfter=network-online.target\n\n[Service]\nType=simple\nEnvironment=NODE_ENV=production\nEnvironment=${systemdArgument(`PATH=${home}/.vite-plus/bin:/usr/local/bin:/usr/bin:/bin`)}\nEnvironmentFile=-${
|
|
93092
|
+
yield* fs.writeFileString(path.join(directory, unit), `[Unit]\nDescription=Deslop ${name}\nAfter=network-online.target\n\n[Service]\nType=simple\nEnvironment=NODE_ENV=production\nEnvironment=${systemdArgument(`PATH=${home}/.vite-plus/bin:/usr/local/bin:/usr/bin:/bin`)}\nEnvironmentFile=-${replaceAll("%", "%%")(`${home}/.deslop/${name}.env`)}\nExecStart=${join$3(map$8(command, systemdArgument), " ")}\nRestart=on-failure\nRestartSec=3\nUMask=0077\n\n[Install]\nWantedBy=default.target\n`, { mode: 384 });
|
|
93093
93093
|
yield* systemctl("daemon-reload");
|
|
93094
93094
|
yield* systemctl("enable", unit);
|
|
93095
|
-
yield* systemctl(
|
|
93095
|
+
yield* systemctl(match$1(options?.restart === false, {
|
|
93096
|
+
onFalse: () => "restart",
|
|
93097
|
+
onTrue: () => "start"
|
|
93098
|
+
}), unit);
|
|
93096
93099
|
return `${unit} installed\n`;
|
|
93097
93100
|
});
|
|
93098
93101
|
const installUpdates = fnUntraced(function* (name, command) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/trips",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1227",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/MP281X/deslop",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=26"
|
|
33
33
|
},
|
|
34
|
-
"fingerprint": "
|
|
34
|
+
"fingerprint": "0adb9520caa690a69c96633d6c703afdb5e4463e161a7e57985a46f20d17be17"
|
|
35
35
|
}
|