@hasna/logs 0.3.18 → 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.
- package/dist/cli/index.js +4 -3
- package/dist/index-9n6bpjxf.js +10787 -0
- package/dist/index-sgg59p1t.js +1241 -0
- package/dist/mcp/index.js +9 -67
- package/dist/server/index.js +11 -3
- package/package.json +1 -1
- package/src/cli/entrypoints.test.ts +63 -0
- package/src/cli/index.ts +2 -1
- package/src/lib/package-meta.ts +62 -0
- package/src/mcp/index.ts +8 -3
- package/src/server/index.ts +9 -1
package/dist/cli/index.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// @bun
|
|
3
3
|
import {
|
|
4
4
|
runJob
|
|
5
|
-
} from "../index-
|
|
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-
|
|
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(
|
|
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);
|