@misha_misha/agentwatch 0.1.0 → 0.1.1
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/index.js +19 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1218,7 +1218,7 @@ var init_claude_code = __esm({
|
|
|
1218
1218
|
MAX_PENDING_TOOL_USES = 5e3;
|
|
1219
1219
|
pendingToolUses = /* @__PURE__ */ new Map();
|
|
1220
1220
|
orphanResults = /* @__PURE__ */ new Map();
|
|
1221
|
-
BACKFILL_BYTES =
|
|
1221
|
+
BACKFILL_BYTES = 512 * 1024;
|
|
1222
1222
|
MAX_TOOL_RESULT_BYTES = 256 * 1024;
|
|
1223
1223
|
}
|
|
1224
1224
|
});
|
|
@@ -1747,7 +1747,7 @@ var init_openclaw = __esm({
|
|
|
1747
1747
|
scheduledBySessionId = /* @__PURE__ */ new Map();
|
|
1748
1748
|
sessionsJsonRead = /* @__PURE__ */ new Set();
|
|
1749
1749
|
MAX_TOOL_RESULT_BYTES2 = 256 * 1024;
|
|
1750
|
-
BACKFILL_BYTES2 =
|
|
1750
|
+
BACKFILL_BYTES2 = 512 * 1024;
|
|
1751
1751
|
}
|
|
1752
1752
|
});
|
|
1753
1753
|
|
|
@@ -2516,7 +2516,7 @@ var init_codex = __esm({
|
|
|
2516
2516
|
init_spawn_tracker();
|
|
2517
2517
|
init_jsonl_stream();
|
|
2518
2518
|
init_parse_errors();
|
|
2519
|
-
BACKFILL_BYTES3 =
|
|
2519
|
+
BACKFILL_BYTES3 = 512 * 1024;
|
|
2520
2520
|
MAX_PENDING = 2e3;
|
|
2521
2521
|
}
|
|
2522
2522
|
});
|
|
@@ -3004,7 +3004,7 @@ data: ${JSON.stringify(data)}
|
|
|
3004
3004
|
// src/server/routes/events.ts
|
|
3005
3005
|
function registerEventRoutes(app, events) {
|
|
3006
3006
|
app.get("/api/events", async (req) => {
|
|
3007
|
-
const limit = clamp(parseInt(req.query.limit ?? "100", 10) || 100, 1,
|
|
3007
|
+
const limit = clamp(parseInt(req.query.limit ?? "100", 10) || 100, 1, 2e3);
|
|
3008
3008
|
const beforeMs = req.query.before ? Date.parse(req.query.before) : null;
|
|
3009
3009
|
const out = [];
|
|
3010
3010
|
const needle = req.query.q?.toLowerCase();
|
|
@@ -9838,12 +9838,24 @@ if (arg === "serve") {
|
|
|
9838
9838
|
const classifiedSink = withClassifier2(linkedSink);
|
|
9839
9839
|
const sink = withClaudeHookDedup2(classifiedSink);
|
|
9840
9840
|
server.setHookSink(sink);
|
|
9841
|
-
|
|
9841
|
+
if (store) {
|
|
9842
|
+
try {
|
|
9843
|
+
const seed = store.listRecentEvents({ limit: 5e3, order: "desc" });
|
|
9844
|
+
for (let i = seed.length - 1; i >= 0; i--) addEventToServer2(server, seed[i]);
|
|
9845
|
+
} catch (err) {
|
|
9846
|
+
process.stderr.write(`[agentwatch] ring seed skipped: ${String(err)}
|
|
9847
|
+
`);
|
|
9848
|
+
}
|
|
9849
|
+
}
|
|
9850
|
+
process.stderr.write(`[agentwatch] serving ${server.url}
|
|
9851
|
+
`);
|
|
9852
|
+
let adapters = [];
|
|
9853
|
+
setImmediate(() => {
|
|
9854
|
+
adapters = startAllAdapters2(sink, workspace);
|
|
9855
|
+
});
|
|
9842
9856
|
onShutdown(() => stopAllAdapters2(adapters));
|
|
9843
9857
|
onShutdown(() => server.stop());
|
|
9844
9858
|
if (store) onShutdown(() => store?.close());
|
|
9845
|
-
process.stderr.write(`[agentwatch] serving ${server.url}
|
|
9846
|
-
`);
|
|
9847
9859
|
await new Promise(() => void 0);
|
|
9848
9860
|
}
|
|
9849
9861
|
function parseFlag(name) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@misha_misha/agentwatch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Local-only observability + control plane for every AI coding agent on your machine. TUI live tail + browser dashboard on localhost. Unified timeline across Claude Code, Codex, Gemini CLI, Cursor, Hermes, OpenClaw — token + cost accounting, compaction + anomaly detection, SVG call graphs, diff attribution, agent-aware replay, MCP server mode, OpenTelemetry exporter. No cloud, no telemetry, no sign-in.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Misha Nefedov",
|