@integrity-labs/agt-cli 0.28.597 → 0.28.598

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 (26) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-6NVRWZ5W.js → chunk-4E3L4U34.js} +2 -2
  3. package/dist/{chunk-3PNRUCHD.js → chunk-6EBAJFLZ.js} +7 -1
  4. package/dist/chunk-6EBAJFLZ.js.map +1 -0
  5. package/dist/{chunk-WAQM45OE.js → chunk-TJUR7PJ5.js} +51 -8
  6. package/dist/chunk-TJUR7PJ5.js.map +1 -0
  7. package/dist/{claude-pair-runtime-5WB2FMIX.js → claude-pair-runtime-7CNOVI5H.js} +2 -2
  8. package/dist/lib/manager-worker.js +12 -12
  9. package/dist/mcp/augmented-admin.js +1 -1
  10. package/dist/mcp/augmented-help-kb.js +1 -1
  11. package/dist/mcp/augmented-support.js +1 -1
  12. package/dist/mcp/direct-chat-channel.js +6 -0
  13. package/dist/mcp/origami.js +6 -0
  14. package/dist/mcp/slack-channel.js +6 -0
  15. package/dist/mcp/telegram-channel.js +6 -0
  16. package/dist/{persistent-session-BGMQQYW2.js → persistent-session-5VAAQJQA.js} +3 -3
  17. package/dist/{responsiveness-probe-VAGPO5FZ.js → responsiveness-probe-AZKD6KEV.js} +3 -3
  18. package/dist/{session-auth-dead-CWFGB472.js → session-auth-dead-5VN6KL6H.js} +2 -2
  19. package/package.json +2 -2
  20. package/dist/chunk-3PNRUCHD.js.map +0 -1
  21. package/dist/chunk-WAQM45OE.js.map +0 -1
  22. /package/dist/{chunk-6NVRWZ5W.js.map → chunk-4E3L4U34.js.map} +0 -0
  23. /package/dist/{claude-pair-runtime-5WB2FMIX.js.map → claude-pair-runtime-7CNOVI5H.js.map} +0 -0
  24. /package/dist/{persistent-session-BGMQQYW2.js.map → persistent-session-5VAAQJQA.js.map} +0 -0
  25. /package/dist/{responsiveness-probe-VAGPO5FZ.js.map → responsiveness-probe-AZKD6KEV.js.map} +0 -0
  26. /package/dist/{session-auth-dead-CWFGB472.js.map → session-auth-dead-5VN6KL6H.js.map} +0 -0
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
100
100
  return { ok: true };
101
101
  } catch {
102
102
  }
103
- const { resolveClaudeBinary } = await import("./persistent-session-BGMQQYW2.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-5VAAQJQA.js");
104
104
  const claudeBin = resolveClaudeBinary();
105
105
  const pairEnv = {
106
106
  ...process.env,
@@ -373,4 +373,4 @@ export {
373
373
  startClaudePair,
374
374
  submitClaudePairCode
375
375
  };
376
- //# sourceMappingURL=claude-pair-runtime-5WB2FMIX.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-7CNOVI5H.js.map
@@ -53,7 +53,7 @@ import {
53
53
  safeWriteJsonAtomic,
54
54
  setConfigHash,
55
55
  tripClass
56
- } from "../chunk-WAQM45OE.js";
56
+ } from "../chunk-TJUR7PJ5.js";
57
57
  import {
58
58
  getProjectDir as getProjectDir2,
59
59
  getReadyTasks,
@@ -109,7 +109,7 @@ import {
109
109
  takeZombieDetection,
110
110
  toOpencodeModel,
111
111
  writeEgressAllowlist
112
- } from "../chunk-6NVRWZ5W.js";
112
+ } from "../chunk-4E3L4U34.js";
113
113
  import {
114
114
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
115
115
  AnchorSessionClient,
@@ -186,7 +186,7 @@ import {
186
186
  subagentActivityAgeSeconds,
187
187
  sumTranscriptUsageInWindow,
188
188
  transcriptActivityAgeSeconds
189
- } from "../chunk-3PNRUCHD.js";
189
+ } from "../chunk-6EBAJFLZ.js";
190
190
  import {
191
191
  reapOrphanChannelMcps
192
192
  } from "../chunk-XWVM4KPK.js";
@@ -11880,7 +11880,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
11880
11880
  var lastVersionCheckAt = 0;
11881
11881
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
11882
11882
  var lastResponsivenessProbeAt = 0;
11883
- var agtCliVersion = true ? "0.28.597" : "dev";
11883
+ var agtCliVersion = true ? "0.28.598" : "dev";
11884
11884
  function resolveBrewPath(execFileSync3) {
11885
11885
  try {
11886
11886
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -13187,7 +13187,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
13187
13187
  if (codeNames.length === 0) return;
13188
13188
  void (async () => {
13189
13189
  try {
13190
- const { collectDiagnostics } = await import("../persistent-session-BGMQQYW2.js");
13190
+ const { collectDiagnostics } = await import("../persistent-session-5VAAQJQA.js");
13191
13191
  await api.post("/host/heartbeat", {
13192
13192
  host_id: hostId,
13193
13193
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
@@ -13295,7 +13295,7 @@ async function pollCycle() {
13295
13295
  }
13296
13296
  try {
13297
13297
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
13298
- const { collectDiagnostics } = await import("../persistent-session-BGMQQYW2.js");
13298
+ const { collectDiagnostics } = await import("../persistent-session-5VAAQJQA.js");
13299
13299
  const diagCodeNames = [...agentState.persistentSessionAgents];
13300
13300
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor) : void 0;
13301
13301
  let tailscaleHostname;
@@ -13418,7 +13418,7 @@ async function pollCycle() {
13418
13418
  collectPanelessActivityProbes,
13419
13419
  getResponsivenessIntervalMs,
13420
13420
  occupancyQualificationClassifications
13421
- } = await import("../responsiveness-probe-VAGPO5FZ.js");
13421
+ } = await import("../responsiveness-probe-AZKD6KEV.js");
13422
13422
  const probeIntervalMs = getResponsivenessIntervalMs();
13423
13423
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
13424
13424
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -13509,7 +13509,7 @@ async function pollCycle() {
13509
13509
  collectResponsivenessProbes,
13510
13510
  livePendingInboundOldestAgeSeconds,
13511
13511
  parkPendingInbound
13512
- } = await import("../responsiveness-probe-VAGPO5FZ.js");
13512
+ } = await import("../responsiveness-probe-AZKD6KEV.js");
13513
13513
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
13514
13514
  const wedgeNow = /* @__PURE__ */ new Date();
13515
13515
  const liveAgents = agentState.persistentSessionAgents;
@@ -13665,7 +13665,7 @@ async function pollCycle() {
13665
13665
  }
13666
13666
  try {
13667
13667
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
13668
- const { probeSessionAuth } = await import("../session-auth-dead-CWFGB472.js");
13668
+ const { probeSessionAuth } = await import("../session-auth-dead-5VN6KL6H.js");
13669
13669
  const observations = [];
13670
13670
  const pendingCacheCommits = [];
13671
13671
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -17093,7 +17093,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
17093
17093
  void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
17094
17094
  void (async () => {
17095
17095
  try {
17096
- const { collectDiagnostics } = await import("../persistent-session-BGMQQYW2.js");
17096
+ const { collectDiagnostics } = await import("../persistent-session-5VAAQJQA.js");
17097
17097
  await api.post("/host/heartbeat", {
17098
17098
  host_id: hostId,
17099
17099
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
@@ -17144,7 +17144,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
17144
17144
  }
17145
17145
  try {
17146
17146
  const hostId = await getHostId();
17147
- const { collectDiagnostics } = await import("../persistent-session-BGMQQYW2.js");
17147
+ const { collectDiagnostics } = await import("../persistent-session-5VAAQJQA.js");
17148
17148
  await api.post("/host/heartbeat", {
17149
17149
  host_id: hostId,
17150
17150
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
@@ -17740,7 +17740,7 @@ async function processClaudePairSessions(agents) {
17740
17740
  killPairSession,
17741
17741
  pairTmuxSession,
17742
17742
  finalizeClaudePairOnboarding
17743
- } = await import("../claude-pair-runtime-5WB2FMIX.js");
17743
+ } = await import("../claude-pair-runtime-7CNOVI5H.js");
17744
17744
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
17745
17745
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
17746
17746
  const killed = await killPairSession(pairTmuxSession(pairId));
@@ -21527,7 +21527,7 @@ var package_default = {
21527
21527
  scripts: {
21528
21528
  build: "tsup",
21529
21529
  dev: "tsx watch src/index.ts",
21530
- typecheck: "tsc --noEmit",
21530
+ typecheck: "bash ../../scripts/typecheck-guard.sh tsc --noEmit",
21531
21531
  test: "vitest run",
21532
21532
  clean: "rm -rf dist"
21533
21533
  },
@@ -21164,7 +21164,7 @@ var package_default = {
21164
21164
  scripts: {
21165
21165
  build: "tsup",
21166
21166
  dev: "tsx watch src/index.ts",
21167
- typecheck: "tsc --noEmit",
21167
+ typecheck: "bash ../../scripts/typecheck-guard.sh tsc --noEmit",
21168
21168
  test: "vitest run",
21169
21169
  clean: "rm -rf dist"
21170
21170
  },
@@ -21234,7 +21234,7 @@ var package_default = {
21234
21234
  scripts: {
21235
21235
  build: "tsup",
21236
21236
  dev: "tsx watch src/index.ts",
21237
- typecheck: "tsc --noEmit",
21237
+ typecheck: "bash ../../scripts/typecheck-guard.sh tsc --noEmit",
21238
21238
  test: "vitest run",
21239
21239
  clean: "rm -rf dist"
21240
21240
  },
@@ -33961,6 +33961,12 @@ var AREA_SET = new Set(AREA_ORDER);
33961
33961
  var VALID_STEPS = /* @__PURE__ */ new Set(["pending", ...AREA_ORDER, "ready"]);
33962
33962
  var ONBOARDING_REPLY_TIMEOUT_MS = 24 * 60 * 6e4;
33963
33963
 
33964
+ // ../core/dist/auth/oauth-principal.js
33965
+ var NOTES_WRITE_SCOPE = "notes:write";
33966
+ var USER_PRINCIPAL_SCOPE_LABELS = {
33967
+ [NOTES_WRITE_SCOPE]: "Create meeting notes as you, and read the notes you own"
33968
+ };
33969
+
33964
33970
  // ../core/dist/inbound-lanes/index.js
33965
33971
  var DIRECTIVE_KINDS = [
33966
33972
  "scheduled-task",
@@ -40243,6 +40243,12 @@ var AREA_SET = new Set(AREA_ORDER);
40243
40243
  var VALID_STEPS = /* @__PURE__ */ new Set(["pending", ...AREA_ORDER, "ready"]);
40244
40244
  var ONBOARDING_REPLY_TIMEOUT_MS = 24 * 60 * 6e4;
40245
40245
 
40246
+ // ../core/dist/auth/oauth-principal.js
40247
+ var NOTES_WRITE_SCOPE = "notes:write";
40248
+ var USER_PRINCIPAL_SCOPE_LABELS = {
40249
+ [NOTES_WRITE_SCOPE]: "Create meeting notes as you, and read the notes you own"
40250
+ };
40251
+
40246
40252
  // ../core/dist/inbound-lanes/index.js
40247
40253
  var DIRECTIVE_KINDS = [
40248
40254
  "scheduled-task",
@@ -34294,6 +34294,12 @@ var AREA_SET = new Set(AREA_ORDER);
34294
34294
  var VALID_STEPS = /* @__PURE__ */ new Set(["pending", ...AREA_ORDER, "ready"]);
34295
34295
  var ONBOARDING_REPLY_TIMEOUT_MS = 24 * 60 * 6e4;
34296
34296
 
34297
+ // ../core/dist/auth/oauth-principal.js
34298
+ var NOTES_WRITE_SCOPE = "notes:write";
34299
+ var USER_PRINCIPAL_SCOPE_LABELS = {
34300
+ [NOTES_WRITE_SCOPE]: "Create meeting notes as you, and read the notes you own"
34301
+ };
34302
+
34297
34303
  // ../core/dist/inbound-lanes/index.js
34298
34304
  var DIRECTIVE_KINDS = [
34299
34305
  "scheduled-task",
@@ -34453,6 +34453,12 @@ var AREA_SET = new Set(AREA_ORDER);
34453
34453
  var VALID_STEPS = /* @__PURE__ */ new Set(["pending", ...AREA_ORDER, "ready"]);
34454
34454
  var ONBOARDING_REPLY_TIMEOUT_MS = 24 * 60 * 6e4;
34455
34455
 
34456
+ // ../core/dist/auth/oauth-principal.js
34457
+ var NOTES_WRITE_SCOPE = "notes:write";
34458
+ var USER_PRINCIPAL_SCOPE_LABELS = {
34459
+ [NOTES_WRITE_SCOPE]: "Create meeting notes as you, and read the notes you own"
34460
+ };
34461
+
34456
34462
  // ../core/dist/inbound-lanes/index.js
34457
34463
  var DIRECTIVE_KINDS = [
34458
34464
  "scheduled-task",
@@ -43,8 +43,8 @@ import {
43
43
  writeDirectChatSessionState,
44
44
  writeEgressAllowlist,
45
45
  writePersistentClaudeWrapper
46
- } from "./chunk-6NVRWZ5W.js";
47
- import "./chunk-3PNRUCHD.js";
46
+ } from "./chunk-4E3L4U34.js";
47
+ import "./chunk-6EBAJFLZ.js";
48
48
  import "./chunk-XWVM4KPK.js";
49
49
  export {
50
50
  EGRESS_BASELINE_DOMAINS,
@@ -92,4 +92,4 @@ export {
92
92
  writeEgressAllowlist,
93
93
  writePersistentClaudeWrapper
94
94
  };
95
- //# sourceMappingURL=persistent-session-BGMQQYW2.js.map
95
+ //# sourceMappingURL=persistent-session-5VAAQJQA.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-6NVRWZ5W.js";
4
- import "./chunk-3PNRUCHD.js";
3
+ } from "./chunk-4E3L4U34.js";
4
+ import "./chunk-6EBAJFLZ.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
7
7
  // src/lib/responsiveness-probe.ts
@@ -690,4 +690,4 @@ export {
690
690
  readAndResetSlackReplyBindingClassifications,
691
691
  readAndResetSlackReplyTargetClassifications
692
692
  };
693
- //# sourceMappingURL=responsiveness-probe-VAGPO5FZ.js.map
693
+ //# sourceMappingURL=responsiveness-probe-AZKD6KEV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-3PNRUCHD.js";
3
+ } from "./chunk-6EBAJFLZ.js";
4
4
 
5
5
  // src/lib/session-auth-dead.ts
6
6
  import { closeSync, openSync, readSync, readdirSync, statSync } from "fs";
@@ -203,4 +203,4 @@ export {
203
203
  decideSessionAuthState,
204
204
  probeSessionAuth
205
205
  };
206
- //# sourceMappingURL=session-auth-dead-CWFGB472.js.map
206
+ //# sourceMappingURL=session-auth-dead-5VN6KL6H.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.597",
3
+ "version": "0.28.598",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {
@@ -27,7 +27,7 @@
27
27
  "build:cli-assets": "mkdir -p dist/assets && cp assets/impersonate-statusline.sh dist/assets/impersonate-statusline.sh && chmod +x dist/assets/impersonate-statusline.sh",
28
28
  "dev": "tsx watch src/bin/agt.ts",
29
29
  "test": "vitest run",
30
- "typecheck": "tsc --noEmit",
30
+ "typecheck": "bash ../../scripts/typecheck-guard.sh tsc --noEmit",
31
31
  "clean": "rm -rf dist",
32
32
  "release": "npm run build && npm publish --access public"
33
33
  },