@integrity-labs/agt-cli 0.26.1 → 0.26.2-eng5706.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/bin/agt.js +4 -4
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-QJJAGFJJ.js → chunk-QSDDP7JN.js} +17 -106
- package/dist/chunk-QSDDP7JN.js.map +1 -0
- package/dist/{chunk-7NDNTSHD.js → chunk-U3HCB23E.js} +154 -3
- package/dist/chunk-U3HCB23E.js.map +1 -0
- package/dist/{chunk-UTPOHAX7.js → chunk-WERKUMWY.js} +97 -5
- package/dist/chunk-WERKUMWY.js.map +1 -0
- package/dist/chunk-XWVM4KPK.js +96 -0
- package/dist/chunk-XWVM4KPK.js.map +1 -0
- package/dist/claude-code-updater-7BGQ6JCV.js +101 -0
- package/dist/claude-code-updater-7BGQ6JCV.js.map +1 -0
- package/dist/{claude-pair-runtime-A35NZYDN.js → claude-pair-runtime-2NNAUBP3.js} +2 -2
- package/dist/lib/manager-worker.js +174 -137
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +5 -3
- package/dist/{persistent-session-E5EZ32CI.js → persistent-session-K4X76LLB.js} +4 -3
- package/dist/{responsiveness-probe-MLUVAXJH.js → responsiveness-probe-QBV43SJ7.js} +4 -3
- package/dist/{responsiveness-probe-MLUVAXJH.js.map → responsiveness-probe-QBV43SJ7.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-7NDNTSHD.js.map +0 -1
- package/dist/chunk-QJJAGFJJ.js.map +0 -1
- package/dist/chunk-UTPOHAX7.js.map +0 -1
- /package/dist/{claude-pair-runtime-A35NZYDN.js.map → claude-pair-runtime-2NNAUBP3.js.map} +0 -0
- /package/dist/{persistent-session-E5EZ32CI.js.map → persistent-session-K4X76LLB.js.map} +0 -0
package/dist/mcp/index.js
CHANGED
|
@@ -21057,10 +21057,12 @@ import { spawn } from "child_process";
|
|
|
21057
21057
|
var DeliveryTargetSchema = external_exports.union([
|
|
21058
21058
|
external_exports.object({
|
|
21059
21059
|
kind: external_exports.literal("channel"),
|
|
21060
|
-
provider: external_exports.enum(["slack", "telegram"]),
|
|
21060
|
+
provider: external_exports.enum(["slack", "telegram", "msteams"]),
|
|
21061
21061
|
channel_id: external_exports.string().optional(),
|
|
21062
|
-
chat_id: external_exports.string().optional()
|
|
21063
|
-
|
|
21062
|
+
chat_id: external_exports.string().optional(),
|
|
21063
|
+
conversation_id: external_exports.string().optional(),
|
|
21064
|
+
service_url: external_exports.string().optional()
|
|
21065
|
+
}).describe("Post to a Slack channel, Telegram chat, or Microsoft Teams conversation. Provide channel_id for Slack, chat_id for Telegram, or conversation_id + service_url for Teams."),
|
|
21064
21066
|
external_exports.object({
|
|
21065
21067
|
kind: external_exports.literal("dm"),
|
|
21066
21068
|
person_id: external_exports.string().uuid(),
|
|
@@ -20,8 +20,9 @@ import {
|
|
|
20
20
|
stopPersistentSession,
|
|
21
21
|
takeZombieDetection,
|
|
22
22
|
writePersistentClaudeWrapper
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-QSDDP7JN.js";
|
|
24
|
+
import "./chunk-U3HCB23E.js";
|
|
25
|
+
import "./chunk-XWVM4KPK.js";
|
|
25
26
|
export {
|
|
26
27
|
_internals,
|
|
27
28
|
collectDiagnostics,
|
|
@@ -45,4 +46,4 @@ export {
|
|
|
45
46
|
takeZombieDetection,
|
|
46
47
|
writePersistentClaudeWrapper
|
|
47
48
|
};
|
|
48
|
-
//# sourceMappingURL=persistent-session-
|
|
49
|
+
//# sourceMappingURL=persistent-session-K4X76LLB.js.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-QSDDP7JN.js";
|
|
4
|
+
import "./chunk-U3HCB23E.js";
|
|
5
|
+
import "./chunk-XWVM4KPK.js";
|
|
5
6
|
|
|
6
7
|
// src/lib/responsiveness-probe.ts
|
|
7
8
|
import { statSync } from "fs";
|
|
@@ -29,4 +30,4 @@ export {
|
|
|
29
30
|
collectResponsivenessProbes,
|
|
30
31
|
getResponsivenessIntervalMs
|
|
31
32
|
};
|
|
32
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
33
|
+
//# sourceMappingURL=responsiveness-probe-QBV43SJ7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/responsiveness-probe.ts"],"sourcesContent":["/**\n * ENG-5399 — Tier 1 responsiveness probe (manager-side).\n *\n * Cheap, fast-cadence canary that catches \"agent went silent\" inside\n * minutes, well before the existing synthetic-probe cron's ~35 min\n * staleness window (`SyntheticReplyAgeSeconds`, ENG-5122).\n *\n * Mechanism: for each managed agent, read the mtime of the agent's\n * `pane.log` and report `now - mtime` as `PaneActivityAgeSeconds` via\n * a new `/host/responsiveness-probe` endpoint. `pane.log` is the\n * tmux pipe-pane sink set up by `setupPaneLog()` — any visible\n * activity (assistant turns, tool calls, in-place progress\n * heartbeats) bumps its mtime. A silent agent has a steadily\n * climbing age that lands in CloudWatch and trips a per-agent alarm.\n *\n * Run from `pollCycle()` in `manager-worker.ts` on a configurable\n * interval (default 5 min via `AUGMENTED_RESPONSIVENESS_INTERVAL_MS`).\n */\n\nimport { statSync } from 'node:fs';\nimport { paneLogPath } from './persistent-session.js';\n\nexport interface ResponsivenessProbeResult {\n code_name: string;\n pane_activity_age_seconds: number;\n}\n\nconst DEFAULT_INTERVAL_MS = 5 * 60 * 1000;\n\nexport function getResponsivenessIntervalMs(): number {\n const raw = process.env.AUGMENTED_RESPONSIVENESS_INTERVAL_MS;\n if (!raw) return DEFAULT_INTERVAL_MS;\n const parsed = Number.parseInt(raw, 10);\n return Number.isFinite(parsed) && parsed > 0 ? parsed : DEFAULT_INTERVAL_MS;\n}\n\n/**\n * Compute the pane.log age for each agent. Missing or unreadable\n * pane.log returns null — the caller should drop those entries\n * rather than fabricate a \"fresh\" or \"ancient\" value. A missing\n * file means the agent has never spawned in this manager generation,\n * which is a separate problem covered by SessionAliveAgeSeconds.\n */\nexport function collectResponsivenessProbes(\n codeNames: string[],\n now: Date = new Date(),\n): ResponsivenessProbeResult[] {\n const nowMs = now.getTime();\n const results: ResponsivenessProbeResult[] = [];\n for (const codeName of codeNames) {\n try {\n const mtimeMs = statSync(paneLogPath(codeName)).mtimeMs;\n const ageSeconds = Math.max(0, Math.floor((nowMs - mtimeMs) / 1000));\n results.push({ code_name: codeName, pane_activity_age_seconds: ageSeconds });\n } catch {\n // No pane.log yet (fresh agent, never spawned) — skip. The\n // session-alive monitor already covers the \"should be running\n // but isn't\" case.\n }\n }\n return results;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/lib/responsiveness-probe.ts"],"sourcesContent":["/**\n * ENG-5399 — Tier 1 responsiveness probe (manager-side).\n *\n * Cheap, fast-cadence canary that catches \"agent went silent\" inside\n * minutes, well before the existing synthetic-probe cron's ~35 min\n * staleness window (`SyntheticReplyAgeSeconds`, ENG-5122).\n *\n * Mechanism: for each managed agent, read the mtime of the agent's\n * `pane.log` and report `now - mtime` as `PaneActivityAgeSeconds` via\n * a new `/host/responsiveness-probe` endpoint. `pane.log` is the\n * tmux pipe-pane sink set up by `setupPaneLog()` — any visible\n * activity (assistant turns, tool calls, in-place progress\n * heartbeats) bumps its mtime. A silent agent has a steadily\n * climbing age that lands in CloudWatch and trips a per-agent alarm.\n *\n * Run from `pollCycle()` in `manager-worker.ts` on a configurable\n * interval (default 5 min via `AUGMENTED_RESPONSIVENESS_INTERVAL_MS`).\n */\n\nimport { statSync } from 'node:fs';\nimport { paneLogPath } from './persistent-session.js';\n\nexport interface ResponsivenessProbeResult {\n code_name: string;\n pane_activity_age_seconds: number;\n}\n\nconst DEFAULT_INTERVAL_MS = 5 * 60 * 1000;\n\nexport function getResponsivenessIntervalMs(): number {\n const raw = process.env.AUGMENTED_RESPONSIVENESS_INTERVAL_MS;\n if (!raw) return DEFAULT_INTERVAL_MS;\n const parsed = Number.parseInt(raw, 10);\n return Number.isFinite(parsed) && parsed > 0 ? parsed : DEFAULT_INTERVAL_MS;\n}\n\n/**\n * Compute the pane.log age for each agent. Missing or unreadable\n * pane.log returns null — the caller should drop those entries\n * rather than fabricate a \"fresh\" or \"ancient\" value. A missing\n * file means the agent has never spawned in this manager generation,\n * which is a separate problem covered by SessionAliveAgeSeconds.\n */\nexport function collectResponsivenessProbes(\n codeNames: string[],\n now: Date = new Date(),\n): ResponsivenessProbeResult[] {\n const nowMs = now.getTime();\n const results: ResponsivenessProbeResult[] = [];\n for (const codeName of codeNames) {\n try {\n const mtimeMs = statSync(paneLogPath(codeName)).mtimeMs;\n const ageSeconds = Math.max(0, Math.floor((nowMs - mtimeMs) / 1000));\n results.push({ code_name: codeName, pane_activity_age_seconds: ageSeconds });\n } catch {\n // No pane.log yet (fresh agent, never spawned) — skip. The\n // session-alive monitor already covers the \"should be running\n // but isn't\" case.\n }\n }\n return results;\n}\n"],"mappings":";;;;;;;AAmBA,SAAS,gBAAgB;AAQzB,IAAM,sBAAsB,IAAI,KAAK;AAE9B,SAAS,8BAAsC;AACpD,QAAM,MAAM,QAAQ,IAAI;AACxB,MAAI,CAAC,IAAK,QAAO;AACjB,QAAM,SAAS,OAAO,SAAS,KAAK,EAAE;AACtC,SAAO,OAAO,SAAS,MAAM,KAAK,SAAS,IAAI,SAAS;AAC1D;AASO,SAAS,4BACd,WACA,MAAY,oBAAI,KAAK,GACQ;AAC7B,QAAM,QAAQ,IAAI,QAAQ;AAC1B,QAAM,UAAuC,CAAC;AAC9C,aAAW,YAAY,WAAW;AAChC,QAAI;AACF,YAAM,UAAU,SAAS,YAAY,QAAQ,CAAC,EAAE;AAChD,YAAM,aAAa,KAAK,IAAI,GAAG,KAAK,OAAO,QAAQ,WAAW,GAAI,CAAC;AACnE,cAAQ,KAAK,EAAE,WAAW,UAAU,2BAA2B,WAAW,CAAC;AAAA,IAC7E,QAAQ;AAAA,IAIR;AAAA,EACF;AACA,SAAO;AACT;","names":[]}
|