@integrity-labs/agt-cli 0.27.42 → 0.27.44

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.
@@ -7120,4 +7120,4 @@ export {
7120
7120
  managerInstallSystemUnitCommand,
7121
7121
  managerUninstallSystemUnitCommand
7122
7122
  };
7123
- //# sourceMappingURL=chunk-ZPBDGI7P.js.map
7123
+ //# sourceMappingURL=chunk-BUJVZFTK.js.map
@@ -15,7 +15,7 @@ import {
15
15
  provisionOrientHook,
16
16
  provisionStopHook,
17
17
  requireHost
18
- } from "../chunk-ZPBDGI7P.js";
18
+ } from "../chunk-BUJVZFTK.js";
19
19
  import {
20
20
  getProjectDir as getProjectDir2,
21
21
  getReadyTasks,
@@ -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.42" : "dev";
3347
+ var agtCliVersion = true ? "0.27.44" : "dev";
3348
3348
  function resolveBrewPath(execFileSync4) {
3349
3349
  try {
3350
3350
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -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");
@@ -6463,7 +6466,7 @@ async function fetchPriorScheduledRuns(agentId, taskId) {
6463
6466
  }
6464
6467
  function isScheduledViaKanbanEnabled() {
6465
6468
  const v = process.env["AGT_SCHEDULED_VIA_KANBAN"];
6466
- return v === "1" || v?.toLowerCase() === "true";
6469
+ return !(v === "0" || v?.toLowerCase() === "false");
6467
6470
  }
6468
6471
  var scheduledRunsByCode = /* @__PURE__ */ new Map();
6469
6472
  var claimedScheduledCards = /* @__PURE__ */ new Set();