@hasna/logs 0.3.18 → 0.3.20

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/dist/cli/index.js CHANGED
@@ -2,8 +2,9 @@
2
2
  // @bun
3
3
  import {
4
4
  runJob
5
- } from "../index-8pwbytc6.js";
5
+ } from "../index-2tg9psrh.js";
6
6
  import {
7
+ PACKAGE_VERSION,
7
8
  createPage,
8
9
  createProject,
9
10
  getDb,
@@ -12,7 +13,7 @@ import {
12
13
  listProjects,
13
14
  resolveProjectId,
14
15
  summarizeLogs
15
- } from "../index-hwabsrfh.js";
16
+ } from "../index-5cj74qka.js";
16
17
  import {
17
18
  createJob,
18
19
  listJobs
@@ -2174,7 +2175,7 @@ function resolveProject(nameOrId) {
2174
2175
  return;
2175
2176
  return resolveProjectId(getDb(), nameOrId) ?? nameOrId;
2176
2177
  }
2177
- var program2 = new Command().name("logs").description("@hasna/logs \u2014 log aggregation and monitoring").version("0.0.1");
2178
+ var program2 = new Command().name("logs").description("@hasna/logs \u2014 log aggregation and monitoring").version(PACKAGE_VERSION);
2178
2179
  program2.command("list").description("Search and list logs").option("--project <name|id>", "Filter by project name or ID").option("--page <id>", "Filter by page ID").option("--level <levels>", "Comma-separated levels (error,warn,info,debug,fatal)").option("--service <name>", "Filter by service").option("--since <iso>", "Since timestamp or relative (1h, 24h, 7d)").option("--until <iso>", "Until timestamp or relative (e.g. logs list --since 2h --until 1h)").option("--text <query>", "Full-text search").option("--limit <n>", "Max results", "100").option("--format <fmt>", "Output format: table|json|compact", "table").action((opts) => {
2179
2180
  const db = getDb();
2180
2181
  const since = parseRelativeTime(opts.since);