@hasna/logs 0.3.17 → 0.3.19

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.
Files changed (38) hide show
  1. package/bun.lock +2 -2
  2. package/dist/cli/index.js +4 -3
  3. package/dist/{index-5qwba140.js → index-8pwbytc6.js} +2 -2
  4. package/dist/{index-6zrkek5y.js → index-9n6bpjxf.js} +4448 -3115
  5. package/dist/{index-vmr85wa1.js → index-hwabsrfh.js} +4303 -3140
  6. package/dist/{index-2sbhn1ye.js → index-sgg59p1t.js} +2 -2
  7. package/dist/mcp/index.js +11 -67
  8. package/dist/server/index.js +11 -3
  9. package/package.json +3 -3
  10. package/src/cli/entrypoints.test.ts +63 -0
  11. package/src/cli/index.ts +2 -1
  12. package/src/lib/ingest.ts +6 -6
  13. package/src/lib/package-meta.ts +62 -0
  14. package/src/mcp/index.ts +10 -3
  15. package/src/server/index.ts +9 -1
  16. package/dist/export-yjaar93b.js +0 -10
  17. package/dist/health-9792c1rc.js +0 -8
  18. package/dist/health-egdb00st.js +0 -8
  19. package/dist/index-14dvwcf1.js +0 -45
  20. package/dist/index-1f2ghyhm.js +0 -540
  21. package/dist/index-4ba0sabv.js +0 -1241
  22. package/dist/index-4hj4sakk.js +0 -1241
  23. package/dist/index-5tvnhvgr.js +0 -536
  24. package/dist/index-6y8pmes4.js +0 -45
  25. package/dist/index-7qhh666n.js +0 -1241
  26. package/dist/index-86j0hn03.js +0 -540
  27. package/dist/index-exeq2gs6.js +0 -79
  28. package/dist/index-fzmz9aqs.js +0 -1241
  29. package/dist/index-g8dczzvv.js +0 -30
  30. package/dist/index-rbrsvsyh.js +0 -88
  31. package/dist/index-t97ttm0a.js +0 -543
  32. package/dist/index-wbsq8qjd.js +0 -1241
  33. package/dist/index-xjn8gam3.js +0 -39
  34. package/dist/index-yb8yd4j6.js +0 -39
  35. package/dist/jobs-02z4fzsn.js +0 -22
  36. package/dist/query-6s5gqkck.js +0 -15
  37. package/dist/query-shjjj67k.js +0 -14
  38. package/dist/query-tcg3bm9s.js +0 -14
package/bun.lock CHANGED
@@ -5,7 +5,7 @@
5
5
  "": {
6
6
  "name": "open-logs",
7
7
  "dependencies": {
8
- "@hasna/cloud": "0.1.5",
8
+ "@hasna/cloud": "^0.1.24",
9
9
  "@modelcontextprotocol/sdk": "^1.12.1",
10
10
  "commander": "^14.0.0",
11
11
  "hono": "^4.7.11",
@@ -44,7 +44,7 @@
44
44
 
45
45
  "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@1.9.4", "", { "os": "win32", "cpu": "x64" }, "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA=="],
46
46
 
47
- "@hasna/cloud": ["@hasna/cloud@0.1.5", "", { "dependencies": { "@modelcontextprotocol/sdk": "^1.12.1", "commander": "^13.1.0", "pg": "^8.13.3", "zod": "^3.24.2" }, "bin": { "cloud": "dist/cli/index.js", "cloud-mcp": "dist/mcp/index.js" } }, "sha512-B82jy53QC7xphchffDVZc7gw9OLkcX2rMnmytTQ6FZEeHgG/ySgfM3Om07OOl72dc8ZUkqOpcK+2OYBUYkFR/A=="],
47
+ "@hasna/cloud": ["@hasna/cloud@0.1.30", "", { "dependencies": { "@modelcontextprotocol/sdk": "^1.12.1", "commander": "^13.1.0", "pg": "^8.13.3", "zod": "^3.24.2" }, "bin": { "cloud": "dist/cli/index.js", "cloud-mcp": "dist/mcp/index.js" } }, "sha512-qpDiJNsU/K1cFDk1l+xUA1xEEq8+Q37OdAz/ec0LwrQiA1HyWukzR8Lh7igkOqBT2foa46cxhB7yGnfiT2cWrA=="],
48
48
 
49
49
  "@hono/node-server": ["@hono/node-server@1.19.11", "", { "peerDependencies": { "hono": "^4" } }, "sha512-dr8/3zEaB+p0D2n/IUrlPF1HZm586qgJNXK1a9fhg/PzdtkK7Ksd5l312tJX2yBuALqDYBlG20QEbayqPyxn+g=="],
50
50
 
package/dist/cli/index.js CHANGED
@@ -2,8 +2,9 @@
2
2
  // @bun
3
3
  import {
4
4
  runJob
5
- } from "../index-4ba0sabv.js";
5
+ } from "../index-sgg59p1t.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-vmr85wa1.js";
16
+ } from "../index-9n6bpjxf.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);
@@ -5,7 +5,7 @@ import {
5
5
  listPages,
6
6
  saveSnapshot,
7
7
  touchPage
8
- } from "./index-6zrkek5y.js";
8
+ } from "./index-hwabsrfh.js";
9
9
  import {
10
10
  createScanRun,
11
11
  finishScanRun,
@@ -894,7 +894,7 @@ var require_scheduled_task = __commonJS((exports, module) => {
894
894
 
895
895
  // node_modules/node-cron/src/background-scheduled-task/index.js
896
896
  var require_background_scheduled_task = __commonJS((exports, module) => {
897
- var __dirname = "/Users/hasna/Workspace/hasna/opensource/opensourcedev/open-logs/node_modules/node-cron/src/background-scheduled-task";
897
+ var __dirname = "/home/hasna/workspace/hasna/opensource/opensourcedev/open-logs/node_modules/node-cron/src/background-scheduled-task";
898
898
  var EventEmitter = __require("events");
899
899
  var path = __require("path");
900
900
  var { fork } = __require("child_process");