@a-company/sentinel 0.2.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/dist/adapters/express.d.ts +44 -0
- package/dist/adapters/express.js +30 -0
- package/dist/adapters/fastify.d.ts +23 -0
- package/dist/adapters/fastify.js +18 -0
- package/dist/adapters/hono.d.ts +23 -0
- package/dist/adapters/hono.js +26 -0
- package/dist/chunk-KPMG4XED.js +1249 -0
- package/dist/cli.js +32 -0
- package/dist/commands-KIMGFR2I.js +3278 -0
- package/dist/dist-2F7NO4H4.js +6851 -0
- package/dist/dist-BPWLYV4U.js +6853 -0
- package/dist/index.d.ts +434 -0
- package/dist/index.js +2270 -0
- package/dist/mcp.js +2767 -0
- package/dist/sdk-B27_vK1g.d.ts +644 -0
- package/dist/server/index.d.ts +82 -0
- package/dist/server/index.js +854 -0
- package/package.json +98 -0
- package/src/seeds/loader.ts +45 -0
- package/src/seeds/paradigm-patterns.json +195 -0
- package/src/seeds/universal-patterns.json +292 -0
- package/ui/dist/assets/index-BNgsn_C8.js +62 -0
- package/ui/dist/assets/index-BNgsn_C8.js.map +1 -0
- package/ui/dist/assets/index-DPxatSdT.css +1 -0
- package/ui/dist/index.html +17 -0
- package/ui/dist/sentinel.svg +19 -0
package/dist/cli.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/cli.ts
|
|
4
|
+
import { Command } from "commander";
|
|
5
|
+
var program = new Command();
|
|
6
|
+
program.name("sentinel").description("Semantic error monitoring \u2014 errors that speak your language").version("0.2.0");
|
|
7
|
+
program.command("dashboard", { isDefault: true }).description("Launch the Sentinel dashboard").option("-p, --port <port>", "Port number", "3838").option("--no-open", "Don't open browser").action(async (opts) => {
|
|
8
|
+
const { launchDashboard } = await import("./commands-KIMGFR2I.js");
|
|
9
|
+
await launchDashboard(opts);
|
|
10
|
+
});
|
|
11
|
+
program.command("init").description("Initialize Sentinel in current project").option("--detect", "Auto-detect symbols from codebase").action(async (opts) => {
|
|
12
|
+
const { initProject } = await import("./commands-KIMGFR2I.js");
|
|
13
|
+
await initProject(opts);
|
|
14
|
+
});
|
|
15
|
+
var triage = program.command("triage").description("Incident triage");
|
|
16
|
+
triage.command("list").description("List incidents").option("-s, --status <status>", "Filter by status (open, investigating, resolved, wont-fix)").option("-e, --env <env>", "Filter by environment").option("--symbol <symbol>", "Filter by symbol").option("-n, --limit <n>", "Max results", "10").action(async (opts) => {
|
|
17
|
+
const { triageList } = await import("./commands-KIMGFR2I.js");
|
|
18
|
+
await triageList(opts);
|
|
19
|
+
});
|
|
20
|
+
triage.command("show <id>").description("Show incident details").option("--timeline", "Include flow timeline").action(async (id, opts) => {
|
|
21
|
+
const { triageShow } = await import("./commands-KIMGFR2I.js");
|
|
22
|
+
await triageShow(id, opts);
|
|
23
|
+
});
|
|
24
|
+
triage.command("resolve <id>").description("Resolve an incident").option("--pattern <id>", "Pattern that resolved it").option("--commit <hash>", "Fix commit").option("--notes <text>", "Resolution notes").action(async (id, opts) => {
|
|
25
|
+
const { triageResolve } = await import("./commands-KIMGFR2I.js");
|
|
26
|
+
await triageResolve(id, opts);
|
|
27
|
+
});
|
|
28
|
+
triage.command("stats").description("Show incident statistics").option("-p, --period <period>", "Period (7d, 30d, 90d)", "7d").action(async (opts) => {
|
|
29
|
+
const { triageStats } = await import("./commands-KIMGFR2I.js");
|
|
30
|
+
await triageStats(opts);
|
|
31
|
+
});
|
|
32
|
+
program.parse();
|