@integrity-labs/agt-cli 0.27.43 → 0.27.45

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  claudeModelAlias,
3
3
  isClaudeFastMode
4
- } from "./chunk-GVM2KJOA.js";
4
+ } from "./chunk-UOHGOS3O.js";
5
5
  import {
6
6
  reapOrphanChannelMcps
7
7
  } from "./chunk-XWVM4KPK.js";
@@ -1125,4 +1125,4 @@ export {
1125
1125
  stopAllSessionsAndWait,
1126
1126
  getProjectDir
1127
1127
  };
1128
- //# sourceMappingURL=chunk-SG5AM6BO.js.map
1128
+ //# sourceMappingURL=chunk-HBDUXLHC.js.map
@@ -9,7 +9,7 @@ import {
9
9
  parseDeliveryTarget,
10
10
  registerFramework,
11
11
  wrapScheduledTaskPrompt
12
- } from "./chunk-GVM2KJOA.js";
12
+ } from "./chunk-UOHGOS3O.js";
13
13
 
14
14
  // ../../packages/core/dist/integrations/registry.js
15
15
  var INTEGRATION_REGISTRY = [
@@ -7120,4 +7120,4 @@ export {
7120
7120
  managerInstallSystemUnitCommand,
7121
7121
  managerUninstallSystemUnitCommand
7122
7122
  };
7123
- //# sourceMappingURL=chunk-TGA6Y555.js.map
7123
+ //# sourceMappingURL=chunk-OTW3IJCU.js.map
@@ -3967,4 +3967,4 @@ export {
3967
3967
  attributeTranscriptUsageByRun,
3968
3968
  KANBAN_CHECK_COMMAND
3969
3969
  };
3970
- //# sourceMappingURL=chunk-GVM2KJOA.js.map
3970
+ //# sourceMappingURL=chunk-UOHGOS3O.js.map
@@ -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-3NLFD7X7.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-A26KX2DA.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-65NGNJ37.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-76VHV4X5.js.map
@@ -15,7 +15,7 @@ import {
15
15
  provisionOrientHook,
16
16
  provisionStopHook,
17
17
  requireHost
18
- } from "../chunk-TGA6Y555.js";
18
+ } from "../chunk-OTW3IJCU.js";
19
19
  import {
20
20
  getProjectDir as getProjectDir2,
21
21
  getReadyTasks,
@@ -46,7 +46,7 @@ import {
46
46
  stopAllSessionsAndWait,
47
47
  stopPersistentSession,
48
48
  takeZombieDetection
49
- } from "../chunk-SG5AM6BO.js";
49
+ } from "../chunk-HBDUXLHC.js";
50
50
  import {
51
51
  KANBAN_CHECK_COMMAND,
52
52
  appendDmFooter,
@@ -69,7 +69,7 @@ import {
69
69
  resolveConnectivityProbe,
70
70
  resolveDmTarget,
71
71
  wrapScheduledTaskPrompt
72
- } from "../chunk-GVM2KJOA.js";
72
+ } from "../chunk-UOHGOS3O.js";
73
73
  import {
74
74
  parsePsRows,
75
75
  reapOrphanChannelMcps
@@ -3344,7 +3344,7 @@ var cachedFrameworkVersion = null;
3344
3344
  var lastVersionCheckAt = 0;
3345
3345
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
3346
3346
  var lastResponsivenessProbeAt = 0;
3347
- var agtCliVersion = true ? "0.27.43" : "dev";
3347
+ var agtCliVersion = true ? "0.27.45" : "dev";
3348
3348
  function resolveBrewPath(execFileSync4) {
3349
3349
  try {
3350
3350
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -4395,7 +4395,7 @@ async function pollCycle() {
4395
4395
  }
4396
4396
  try {
4397
4397
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
4398
- const { collectDiagnostics } = await import("../persistent-session-3NLFD7X7.js");
4398
+ const { collectDiagnostics } = await import("../persistent-session-A26KX2DA.js");
4399
4399
  const diagCodeNames = [...agentState.persistentSessionAgents];
4400
4400
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
4401
4401
  let tailscaleHostname;
@@ -4463,7 +4463,7 @@ async function pollCycle() {
4463
4463
  const {
4464
4464
  collectResponsivenessProbes,
4465
4465
  getResponsivenessIntervalMs
4466
- } = await import("../responsiveness-probe-ZJACUTGA.js");
4466
+ } = await import("../responsiveness-probe-JI2D5Y24.js");
4467
4467
  const probeIntervalMs = getResponsivenessIntervalMs();
4468
4468
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
4469
4469
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -5346,19 +5346,22 @@ async function processAgent(agent, agentStates) {
5346
5346
  return typeof tz === "string" && tz.trim() !== "" ? tz.trim() : void 0;
5347
5347
  })();
5348
5348
  if (existsSync5(localDirectChatChannel) && !mcpConfig.mcpServers["direct-chat"]) {
5349
- mcpConfig.mcpServers["direct-chat"] = {
5349
+ const directChatEnv = {
5350
+ AGT_HOST: requireHost(),
5351
+ AGT_API_KEY: getApiKey() ?? "",
5352
+ AGT_AGENT_ID: agent.agent_id
5353
+ };
5354
+ if (directChatTz) directChatEnv["TZ"] = directChatTz;
5355
+ if (!frameworkAdapter.writeMcpServer) {
5356
+ throw new Error(
5357
+ `[direct-chat] Framework '${frameworkAdapter.id}' must implement writeMcpServer for direct-chat provisioning (agent=${agent.code_name}, cachedFramework=${agentFrameworkCache.get(agent.code_name) ?? "openclaw"})`
5358
+ );
5359
+ }
5360
+ frameworkAdapter.writeMcpServer(agent.code_name, "direct-chat", {
5350
5361
  command: "node",
5351
5362
  args: [localDirectChatChannel],
5352
- env: {
5353
- AGT_HOST: requireHost(),
5354
- AGT_API_KEY: getApiKey() ?? "",
5355
- AGT_AGENT_ID: agent.agent_id,
5356
- ...directChatTz ? { TZ: directChatTz } : {}
5357
- }
5358
- };
5359
- const serialized = JSON.stringify(mcpConfig, null, 2);
5360
- writeFileSync4(provisionMcpPath, serialized);
5361
- writeFileSync4(projectMcpPath, serialized);
5363
+ env: directChatEnv
5364
+ });
5362
5365
  log(`Channel credentials written for '${agent.code_name}/direct-chat'`);
5363
5366
  }
5364
5367
  const staleChannelsPath = join6(projectDir, ".mcp-channels.json");
@@ -8518,7 +8521,7 @@ async function processClaudePairSessions(agents) {
8518
8521
  killPairSession,
8519
8522
  pairTmuxSession,
8520
8523
  finalizeClaudePairOnboarding
8521
- } = await import("../claude-pair-runtime-65NGNJ37.js");
8524
+ } = await import("../claude-pair-runtime-76VHV4X5.js");
8522
8525
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
8523
8526
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
8524
8527
  const killed = await killPairSession(pairTmuxSession(pairId));