@usine/server 0.4.1-next.273.g2ca5ae8 → 0.4.1-next.277.g68b5681

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 CHANGED
@@ -16,6 +16,8 @@ At startup, a failed worker preflight excludes that worker from scheduling while
16
16
 
17
17
  ## Manage the instance
18
18
 
19
+ The first parent harness installs Pi's HTTP dispatcher for all server requests, including GitHub, gateway administration, and Boat. It uses five-minute stream timeouts and respects `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY`; Pi's global `httpProxy` setting fills unset proxy variables. Restart the server after changing proxy settings.
20
+
19
21
  ```sh
20
22
  usine up --detach # start in the background, with the output in .usine/usine.log
21
23
  usine status # running or not, pid, address, version, uptime, open runs; exit 3 if stopped
@@ -70,7 +72,7 @@ The reload HTTP endpoint has been removed. Revisions apply automatically; `SIGHU
70
72
 
71
73
  ## Back up and export
72
74
 
73
- While the orchestrator runs, `usine backup` copies `.usine/runtime.sqlite` to the path you give, and `.usine/durable.sqlite` next to it with `.durable` before the extension (`/path/to/runtime-backup.durable.sqlite`):
75
+ While the orchestrator runs, `usine backup` copies `.usine/runtime.sqlite` to the path you give, and `.usine/durable.sqlite` next to it. For destinations ending in `.sqlite` or `.db`, the durable copy has `.durable` before that extension: `backup.sqlite` becomes `backup.durable.sqlite`, and `backup.db` becomes `backup.durable.db`. For all other names, the command appends `.durable.sqlite`: `before-pi-1.4-2026-10-29` becomes `before-pi-1.4-2026-10-29.durable.sqlite`, and `nightly` becomes `nightly.durable.sqlite`.
74
76
 
75
77
  ```sh
76
78
  usine backup /path/to/runtime-backup.sqlite
@@ -1 +1 @@
1
- {"version":3,"file":"backup.d.ts","sourceRoot":"","sources":["../src/backup.ts"],"names":[],"mappings":"AAGA,OAAO,EAAW,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAQ3D;;;GAGG;AACH,eAAO,MAAM,MAAM,6QA+BjB,CAAC"}
1
+ {"version":3,"file":"backup.d.ts","sourceRoot":"","sources":["../src/backup.ts"],"names":[],"mappings":"AAGA,OAAO,EAAW,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAU3D;;;GAGG;AACH,eAAO,MAAM,MAAM,6QA+BjB,CAAC"}
package/dist/backup.js CHANGED
@@ -4,7 +4,9 @@ import { Console, Effect, FileSystem, Path } from "effect";
4
4
  /** Returns the durable storage copy path: `backup.sqlite` becomes `backup.durable.sqlite`. */
5
5
  const durableDestination = (path, destination) => {
6
6
  const { dir, name, ext } = path.parse(destination);
7
- return path.join(dir, `${name}.durable${ext === "" ? ".sqlite" : ext}`);
7
+ return ext === ".sqlite" || ext === ".db"
8
+ ? path.join(dir, `${name}.durable${ext}`)
9
+ : `${destination}.durable.sqlite`;
8
10
  };
9
11
  /**
10
12
  * Copies the instance's runtime database to `output` and its durable storage next to it, durable
@@ -1 +1 @@
1
- {"version":3,"file":"backup.js","sourceRoot":"","sources":["../src/backup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE3D,8FAA8F;AAC9F,MAAM,kBAAkB,GAAG,CAAC,IAAe,EAAE,WAAmB,EAAU,EAAE;IAC1E,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACnD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,WAAW,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEF;;;GAGG;AACH,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MAAM,GAAG,KAAK,CAAC,CAAC,oBAAoB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC/D,KAAK,CAAC,CAAC,cAAc,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,IAAI,CAChD,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,CACnB,MAAM;QACJ,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAC7B,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CACxB,MAAM,CAAC,UAAU,CAAC,sDAAsD,EAAE;YACxE,OAAO;YACP,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC,CACH,EACD,MAAM,CAAC,MAAM,CACd;QACH,CAAC,CAAC,MAAM,CAAC,IAAI,CAChB,CACF,CAAC;IACF,KAAK,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,WAAW,EAAE,CAAC,CAAC;IACpE,KAAK,CAAC,CAAC,OAAO,CAAC,GAAG,CAChB,MAAM;QACJ,CAAC,CAAC,oCAAoC,OAAO,EAAE;QAC/C,CAAC,CAAC,qEAAqE,CAC1E,CAAC;AACJ,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usine/server",
3
- "version": "0.4.1-next.273.g2ca5ae8",
3
+ "version": "0.4.1-next.277.g68b5681",
4
4
  "description": "The usine orchestrator as a headless server: a thin CLI over @usine/orchestrator that serves the web UI.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -23,20 +23,20 @@
23
23
  "@effect/platform-node": "4.0.6",
24
24
  "@effect/platform-node-shared": "4.0.6",
25
25
  "effect": "4.0.6",
26
- "@usine/config": "0.4.1-next.273.g2ca5ae8",
27
- "@usine/core": "0.5.1-next.273.g2ca5ae8",
28
- "@usine/engine": "0.5.1-next.273.g2ca5ae8",
29
- "@usine/durable": "0.2.1-next.273.g2ca5ae8",
30
- "@usine/expression": "0.4.1-next.273.g2ca5ae8",
31
- "@usine/github": "0.3.1-next.273.g2ca5ae8",
32
- "@usine/orchestrator": "0.4.1-next.273.g2ca5ae8"
26
+ "@usine/core": "0.5.1-next.277.g68b5681",
27
+ "@usine/durable": "0.2.1-next.277.g68b5681",
28
+ "@usine/engine": "0.5.1-next.277.g68b5681",
29
+ "@usine/config": "0.4.1-next.277.g68b5681",
30
+ "@usine/expression": "0.4.1-next.277.g68b5681",
31
+ "@usine/github": "0.3.1-next.277.g68b5681",
32
+ "@usine/orchestrator": "0.4.1-next.277.g68b5681"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "7.0.2",
36
36
  "vitest": "5.0.5",
37
37
  "yaml": "2.9.1",
38
- "@usine/executor": "0.4.1-next.273.g2ca5ae8",
39
38
  "@usine/tsconfig": "0.0.0",
39
+ "@usine/executor": "0.4.1-next.277.g68b5681",
40
40
  "@usine/web": "0.0.0"
41
41
  },
42
42
  "engines": {