openmates 0.16.0-alpha.12 → 0.16.0-alpha.13

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.
@@ -25684,6 +25684,26 @@ function resolveServiceSelection(roleValue, filter = {}) {
25684
25684
  function appendSelectedServices(args, selectedServices, filterRequested) {
25685
25685
  return filterRequested ? [...args, ...selectedServices] : args;
25686
25686
  }
25687
+ function planServerLogRangeArgs(flags) {
25688
+ const args = [];
25689
+ const since = flags.since;
25690
+ const tail = flags.tail;
25691
+ if (since === true) throw new Error("Provide a since value: --since <duration|timestamp>.");
25692
+ if (tail === true) throw new Error("Provide a tail value: --tail <n>.");
25693
+ if (typeof since === "string") {
25694
+ const trimmedSince = since.trim();
25695
+ if (!trimmedSince) throw new Error("--since cannot be empty.");
25696
+ args.push("--since", trimmedSince);
25697
+ }
25698
+ if (typeof tail === "string") {
25699
+ const trimmedTail = tail.trim();
25700
+ if (!trimmedTail) throw new Error("--tail cannot be empty.");
25701
+ args.push("--tail", trimmedTail);
25702
+ } else if (typeof since !== "string") {
25703
+ args.push("--tail", "100");
25704
+ }
25705
+ return args;
25706
+ }
25687
25707
  function shouldCheckWebHealth(input) {
25688
25708
  const role = parseServerRole(input.role);
25689
25709
  if (role !== "core") return false;
@@ -28009,12 +28029,7 @@ async function serverLogs(flags) {
28009
28029
  if (flags.follow === true || flags.f === true) {
28010
28030
  args.push("--follow");
28011
28031
  }
28012
- const tail = flags.tail;
28013
- if (typeof tail === "string") {
28014
- args.push("--tail", tail);
28015
- } else {
28016
- args.push("--tail", "100");
28017
- }
28032
+ args.push(...planServerLogRangeArgs(flags));
28018
28033
  const container = flags.container;
28019
28034
  if (typeof container === "string" && !hasServiceFilter(flags)) {
28020
28035
  args.push(container);
@@ -29723,6 +29738,7 @@ Command Options:
29723
29738
  --exclude <csv> Filter logs to all role services except selected services
29724
29739
  --follow, -f Stream logs in real time
29725
29740
  --tail <n> Number of lines to show (default: 100)
29741
+ --since <value> Show logs since a duration or timestamp (e.g. 10m, 2026-08-22T10:00:00Z)
29726
29742
 
29727
29743
  update:
29728
29744
  --dry-run Show update plan without changing files or containers
package/dist/cli.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  requireExactConfirmation,
9
9
  resolveProjectContext,
10
10
  serializeToYaml
11
- } from "./chunk-XLMAZN76.js";
11
+ } from "./chunk-2MDZ44M5.js";
12
12
  import "./chunk-IWKP55ZB.js";
13
13
  import "./chunk-WBBDQZZI.js";
14
14
  export {
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  renderPlanList,
40
40
  renderSupportInfo,
41
41
  serializeToYaml
42
- } from "./chunk-XLMAZN76.js";
42
+ } from "./chunk-2MDZ44M5.js";
43
43
  import "./chunk-IWKP55ZB.js";
44
44
  import "./chunk-WBBDQZZI.js";
45
45
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.16.0-alpha.12",
3
+ "version": "0.16.0-alpha.13",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",