@integrity-labs/agt-cli 0.28.169 → 0.28.171

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.
@@ -15,42 +15,8 @@ function resolveAgentTimezone(agentTimezone, teamTimezone, orgTimezone) {
15
15
  return "UTC";
16
16
  }
17
17
 
18
- // ../../packages/core/dist/types/models.js
19
- var DEFAULT_MODELS = {
20
- primary: "openrouter/anthropic/claude-opus-4-6",
21
- secondary: "openrouter/google/gemini-3.1-flash-lite-preview",
22
- tertiary: "openrouter/openai/gpt-5.4-nano"
23
- };
24
- function claudeModelAlias(primaryModel) {
25
- if (!primaryModel)
26
- return null;
27
- const name = (primaryModel.split("/").pop() ?? "").trim().toLowerCase();
28
- if (!name)
29
- return null;
30
- if (name.includes("fable"))
31
- return "fable";
32
- if (name.includes("opus"))
33
- return "opus";
34
- if (name.includes("sonnet"))
35
- return "sonnet";
36
- if (name.includes("haiku"))
37
- return "haiku";
38
- return null;
39
- }
40
- function isClaudeFastMode(primaryModel) {
41
- if (!primaryModel)
42
- return false;
43
- return /\[fast\]/i.test(primaryModel);
44
- }
45
-
46
18
  // ../../packages/core/dist/types/agent.js
47
19
  var DEFAULT_FRAMEWORK = "claude-code";
48
- var FRAMEWORK_DEPRECATION = {
49
- openclaw: true,
50
- nemoclaw: true,
51
- "claude-code": false,
52
- "managed-agents": true
53
- };
54
20
 
55
21
  // ../../packages/core/dist/provisioning/framework-registry.js
56
22
  var adapters = /* @__PURE__ */ new Map();
@@ -92,6 +58,29 @@ function resolveAvatarEnvUrl(raw) {
92
58
  return { url: trimmed };
93
59
  }
94
60
 
61
+ // ../../packages/core/dist/types/models.js
62
+ function claudeModelAlias(primaryModel) {
63
+ if (!primaryModel)
64
+ return null;
65
+ const name = (primaryModel.split("/").pop() ?? "").trim().toLowerCase();
66
+ if (!name)
67
+ return null;
68
+ if (name.includes("fable"))
69
+ return "fable";
70
+ if (name.includes("opus"))
71
+ return "opus";
72
+ if (name.includes("sonnet"))
73
+ return "sonnet";
74
+ if (name.includes("haiku"))
75
+ return "haiku";
76
+ return null;
77
+ }
78
+ function isClaudeFastMode(primaryModel) {
79
+ if (!primaryModel)
80
+ return false;
81
+ return /\[fast\]/i.test(primaryModel);
82
+ }
83
+
95
84
  // ../../packages/core/dist/types/kanban.js
96
85
  function formatActorId(kind, id) {
97
86
  return `${kind}:${id}`;
@@ -4754,6 +4743,41 @@ async function probeMcpHttp(config, fetchImpl = fetch) {
4754
4743
  }
4755
4744
  const result = rpc["result"];
4756
4745
  const toolCount = Array.isArray(result?.tools) ? result.tools.length : void 0;
4746
+ const testTool = config.connectivityTest?.tool;
4747
+ if (testTool) {
4748
+ const rawArgs = config.connectivityTest?.args;
4749
+ const toolArgs = rawArgs && !Array.isArray(rawArgs) ? rawArgs : {};
4750
+ const callRes = await fetchImpl(config.url, {
4751
+ method: "POST",
4752
+ headers: sessionHeaders,
4753
+ body: JSON.stringify({
4754
+ jsonrpc: "2.0",
4755
+ id: 3,
4756
+ method: "tools/call",
4757
+ params: { name: testTool, arguments: toolArgs }
4758
+ }),
4759
+ signal: AbortSignal.timeout(timeoutMs)
4760
+ });
4761
+ if (!callRes.ok)
4762
+ return httpStatusOutcome(callRes.status, `tools/call ${testTool}`);
4763
+ const callRpc = await parseRpc(callRes, 3);
4764
+ if (!callRpc) {
4765
+ return { status: "down", message: `MCP tools/call ${testTool} returned a non-JSON-RPC response \u2014 not an MCP server` };
4766
+ }
4767
+ if ("error" in callRpc) {
4768
+ const err = callRpc["error"];
4769
+ return { status: "down", message: `MCP tools/call ${testTool} error: ${err?.message ?? "unknown"}` };
4770
+ }
4771
+ const callResult = callRpc["result"];
4772
+ if (callResult?.isError === true) {
4773
+ return { status: "down", message: `MCP tool ${testTool} returned an error result` };
4774
+ }
4775
+ return {
4776
+ status: "ok",
4777
+ message: `${testTool} succeeded`,
4778
+ details: { ...toolCount !== void 0 ? { toolCount } : {}, testTool }
4779
+ };
4780
+ }
4757
4781
  return {
4758
4782
  status: "ok",
4759
4783
  message: toolCount !== void 0 ? `${toolCount} tools` : "reachable",
@@ -5586,21 +5610,6 @@ function appendDmFooter(body, teamName, agentDisplayName) {
5586
5610
 
5587
5611
  ${footer}`;
5588
5612
  }
5589
- function formatForOpenClawCli(target) {
5590
- if (target.kind === "channel") {
5591
- if (target.provider === "slack") {
5592
- if (!target.channel_id) {
5593
- throw new Error("INVALID_DELIVERY_TARGET: slack channel target is missing channel_id");
5594
- }
5595
- return `channel:${target.channel_id}`;
5596
- }
5597
- if (!target.chat_id) {
5598
- throw new Error("INVALID_DELIVERY_TARGET: telegram channel target is missing chat_id");
5599
- }
5600
- return `chat:${target.chat_id}`;
5601
- }
5602
- throw new Error(`DM_NOT_SUPPORTED_ON_FRAMEWORK: dm targets can't be passed to openclaw cron add. See ENG-4423 \xA79.1 and the follow-up ENG-4431.`);
5603
- }
5604
5613
 
5605
5614
  // ../../packages/core/dist/delivery/resolve.js
5606
5615
  function resolveDmTarget(target, agent, people) {
@@ -6451,29 +6460,20 @@ export {
6451
6460
  resolveAgentTimezone,
6452
6461
  wrapScheduledTaskPrompt,
6453
6462
  buildScheduledTaskContextBlocks,
6454
- parseDeliveryTarget,
6455
- isParseError,
6456
- appendDmFooter,
6457
- formatForOpenClawCli,
6458
- resolveDmTarget,
6459
- isResolveError,
6460
- deriveConsoleUrl,
6461
- DEFAULT_MODELS,
6462
- claudeModelAlias,
6463
- isClaudeFastMode,
6464
6463
  DEFAULT_FRAMEWORK,
6465
- FRAMEWORK_DEPRECATION,
6466
6464
  registerFramework,
6467
6465
  getFramework,
6468
- CHANNEL_REGISTRY,
6469
- getChannel,
6470
- getAllChannelIds,
6471
6466
  MAX_AVATAR_ENV_URL_BYTES,
6472
6467
  resolveAvatarEnvUrl,
6473
6468
  OAUTH_PROVIDERS,
6469
+ claudeModelAlias,
6470
+ isClaudeFastMode,
6474
6471
  formatActorId,
6475
6472
  isSelfCompletion,
6476
6473
  classifyActor,
6474
+ CHANNEL_REGISTRY,
6475
+ getChannel,
6476
+ getAllChannelIds,
6477
6477
  resolveChannels,
6478
6478
  SLACK_SCOPE_CATEGORY_LABELS,
6479
6479
  getDefaultSlackScopes,
@@ -6508,6 +6508,12 @@ export {
6508
6508
  classifyOutput,
6509
6509
  isVacuousDeliverReason,
6510
6510
  parseDeliverAssertion,
6511
+ parseDeliveryTarget,
6512
+ isParseError,
6513
+ appendDmFooter,
6514
+ resolveDmTarget,
6515
+ isResolveError,
6516
+ deriveConsoleUrl,
6511
6517
  parseUsageBanner,
6512
6518
  formatRunMarker,
6513
6519
  parseTranscriptUsage,
@@ -6529,4 +6535,4 @@ export {
6529
6535
  parseEnvIntegrations,
6530
6536
  probeMcpEnvSubstitution
6531
6537
  };
6532
- //# sourceMappingURL=chunk-UOL4Z6CG.js.map
6538
+ //# sourceMappingURL=chunk-76XB2I4P.js.map