@ours.network/cli 2.0.3 → 2.1.0
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 +6 -2
- package/dist/{boot-BUGOBQGZ.js → boot-QLA3LXVX.js} +2 -2
- package/dist/{chunk-DRQEV4SN.js → chunk-3C5WAQAT.js} +8 -1
- package/dist/{chunk-FXKFSNKS.js → chunk-DTWZF3ZG.js} +28 -1
- package/dist/{chunk-QKDH6CJR.js → chunk-GQHDQR6I.js} +1 -1
- package/dist/{chunk-NNHFXFLS.js → chunk-H7DX6EHZ.js} +2 -1
- package/dist/{chunk-UIWEBE5K.js → chunk-UHYUIHM2.js} +1 -1
- package/dist/{chunk-ZCCCTR27.js → chunk-YPDZQ4XD.js} +1023 -196
- package/dist/commands.d.ts +1 -1
- package/dist/commands.js +1 -1
- package/dist/config-command.js +1 -1
- package/dist/{daemon-3C5SDTHJ.js → daemon-5UZIR37V.js} +3 -3
- package/dist/help.js +2 -2
- package/dist/lifecycle.js +1 -1
- package/dist/main.js +15 -6
- package/dist/mufl_code/351F16D444E6DAA252D4A8D829D17204360D9015FEF670ACE68FB4747BB3B14E.muflo +0 -0
- package/dist/{server-TVV2EZZ6.js → server-3PM3QOPD.js} +337 -158
- package/package.json +1 -1
package/dist/commands.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ export declare const COMMAND_GROUPS: {
|
|
|
96
96
|
readonly handler: "setup";
|
|
97
97
|
readonly summary: "Write one or more safe daemon settings noninteractively.";
|
|
98
98
|
readonly effects: "Writes a mode-0600 JSON config unless --dry-run is used. Unknown and secret fields already present are preserved and never printed.";
|
|
99
|
-
readonly example: "ours config setup --port 3070 --state-dir /srv/ours-a --api-visibility owner";
|
|
99
|
+
readonly example: "ours config setup --port 3070 --state-dir /srv/ours-a --history-max-bytes 104857600 --api-visibility owner";
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
};
|
package/dist/commands.js
CHANGED
package/dist/config-command.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertConfigNotDrifted,
|
|
3
3
|
loadConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DTWZF3ZG.js";
|
|
5
5
|
|
|
6
6
|
// ../../src/internal/daemon.ts
|
|
7
7
|
import * as fs2 from "node:fs";
|
|
@@ -204,7 +204,7 @@ async function releaseHeld(lock) {
|
|
|
204
204
|
async function bootKernel() {
|
|
205
205
|
const { lock, acquired } = await ensureLock();
|
|
206
206
|
try {
|
|
207
|
-
const { bootWrapper } = await import("./boot-
|
|
207
|
+
const { bootWrapper } = await import("./boot-QLA3LXVX.js");
|
|
208
208
|
await bootWrapper();
|
|
209
209
|
} catch (error) {
|
|
210
210
|
if (acquired) await releaseHeld(lock);
|
|
@@ -214,7 +214,7 @@ async function bootKernel() {
|
|
|
214
214
|
async function startDaemon(opts = {}) {
|
|
215
215
|
const { lock, acquired } = await ensureLock();
|
|
216
216
|
try {
|
|
217
|
-
const runtime = await import("./server-
|
|
217
|
+
const runtime = await import("./server-3PM3QOPD.js");
|
|
218
218
|
const { onRuntimeLoaded, ...daemonOptions } = opts;
|
|
219
219
|
onRuntimeLoaded?.();
|
|
220
220
|
const handle = await runtime.startDaemon({
|
package/dist/help.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
helpRequestPath,
|
|
4
4
|
renderHelp,
|
|
5
5
|
renderTopHelp
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-H7DX6EHZ.js";
|
|
7
7
|
import "./chunk-MS4TDUZY.js";
|
|
8
8
|
import "./chunk-6NFATG6P.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-GQHDQR6I.js";
|
|
10
10
|
export {
|
|
11
11
|
helpHint,
|
|
12
12
|
helpRequestPath,
|
package/dist/lifecycle.js
CHANGED
package/dist/main.js
CHANGED
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
setupConfig,
|
|
14
14
|
showConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3C5WAQAT.js";
|
|
16
16
|
import {
|
|
17
17
|
helpHint,
|
|
18
18
|
helpRequestPath,
|
|
19
19
|
renderHelp
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-H7DX6EHZ.js";
|
|
21
21
|
import {
|
|
22
22
|
invokeOperation,
|
|
23
23
|
isOperationName,
|
|
@@ -37,14 +37,14 @@ import {
|
|
|
37
37
|
IDENTITY_PREBIND_EXCEPTIONS,
|
|
38
38
|
commandSpec,
|
|
39
39
|
isCommandGroup
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-GQHDQR6I.js";
|
|
41
41
|
import {
|
|
42
42
|
DEFAULT_DAEMON_READINESS_TIMEOUT_MS,
|
|
43
43
|
inspectDaemon,
|
|
44
44
|
serveDaemon,
|
|
45
45
|
startDaemonManaged,
|
|
46
46
|
stopDaemonManaged
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-UHYUIHM2.js";
|
|
48
48
|
import {
|
|
49
49
|
attachClient,
|
|
50
50
|
defaultConfigPath,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
import { existsSync, readFileSync } from "node:fs";
|
|
56
56
|
import { homedir } from "node:os";
|
|
57
57
|
import { join, resolve } from "node:path";
|
|
58
|
-
var CLI_VERSION = false ? "0.0.0-dev" : "2.0
|
|
58
|
+
var CLI_VERSION = false ? "0.0.0-dev" : "2.1.0";
|
|
59
59
|
var COMMON_VALUES = /* @__PURE__ */ new Set(["--endpoint", "--port", "--state-dir", "--config", "--identity"]);
|
|
60
60
|
var COMMON_BOOLEANS = /* @__PURE__ */ new Set(["--json", "--yes", "--help"]);
|
|
61
61
|
var DAEMON_READINESS_TIMEOUT_ENV = "OURS_DAEMON_READINESS_TIMEOUT_MS";
|
|
@@ -164,7 +164,13 @@ async function runGrouped(group, args, io) {
|
|
|
164
164
|
return 0;
|
|
165
165
|
}
|
|
166
166
|
async function runConfig(args, io) {
|
|
167
|
-
const values = /* @__PURE__ */ new Set([
|
|
167
|
+
const values = /* @__PURE__ */ new Set([
|
|
168
|
+
...COMMON_VALUES,
|
|
169
|
+
"--broker-url",
|
|
170
|
+
"--gc-interval-ms",
|
|
171
|
+
"--history-max-bytes",
|
|
172
|
+
"--api-visibility"
|
|
173
|
+
]);
|
|
168
174
|
const flags = parseFlags(args, values, /* @__PURE__ */ new Set(["--json", "--dry-run", "--help"]));
|
|
169
175
|
const action = flags.positionals[0];
|
|
170
176
|
const spec = action === void 0 ? void 0 : commandSpec("config", action);
|
|
@@ -179,6 +185,9 @@ async function runConfig(args, io) {
|
|
|
179
185
|
if (flags.values["--port"]) patch.port = parseInteger(flags.values["--port"], "--port", 1, 65535);
|
|
180
186
|
if (flags.values["--state-dir"]) patch.stateDir = resolve(flags.values["--state-dir"]);
|
|
181
187
|
if (flags.values["--gc-interval-ms"]) patch.gcIntervalMs = parseInteger(flags.values["--gc-interval-ms"], "--gc-interval-ms", 1);
|
|
188
|
+
if (flags.values["--history-max-bytes"]) {
|
|
189
|
+
patch.historyMaxBytes = parseInteger(flags.values["--history-max-bytes"], "--history-max-bytes", 0);
|
|
190
|
+
}
|
|
182
191
|
if (flags.values["--api-visibility"]) {
|
|
183
192
|
const visibility = flags.values["--api-visibility"];
|
|
184
193
|
if (!["owner", "shared", "open"].includes(visibility)) throw new CliUsageError("--api-visibility must be owner, shared, or open");
|