@integrity-labs/agt-cli 0.28.1200 → 0.28.1202

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 CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-LWF7F4IF.js";
43
+ } from "../chunk-QYYXOM23.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
@@ -5200,7 +5200,7 @@ import { execFileSync, execSync } from "child_process";
5200
5200
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
5201
5201
  import chalk17 from "chalk";
5202
5202
  import ora15 from "ora";
5203
- var cliVersion = true ? "0.28.1200" : "dev";
5203
+ var cliVersion = true ? "0.28.1202" : "dev";
5204
5204
  async function fetchLatestVersion() {
5205
5205
  const host2 = getHost();
5206
5206
  if (!host2) return null;
@@ -6460,7 +6460,7 @@ function handleError(err) {
6460
6460
  }
6461
6461
 
6462
6462
  // src/bin/agt.ts
6463
- var cliVersion2 = true ? "0.28.1200" : "dev";
6463
+ var cliVersion2 = true ? "0.28.1202" : "dev";
6464
6464
  var program = new Command();
6465
6465
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
6466
6466
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -8082,7 +8082,7 @@ function exchangeFailureKind(err) {
8082
8082
  }
8083
8083
 
8084
8084
  // src/lib/api-client.ts
8085
- var agtCliVersion = true ? "0.28.1200" : "dev";
8085
+ var agtCliVersion = true ? "0.28.1202" : "dev";
8086
8086
  var lastConfigHash = null;
8087
8087
  function setConfigHash(hash) {
8088
8088
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -13683,4 +13683,4 @@ export {
13683
13683
  managerInstallSystemUnitCommand,
13684
13684
  managerUninstallSystemUnitCommand
13685
13685
  };
13686
- //# sourceMappingURL=chunk-LWF7F4IF.js.map
13686
+ //# sourceMappingURL=chunk-QYYXOM23.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-LWF7F4IF.js";
88
+ } from "../chunk-QYYXOM23.js";
89
89
  import {
90
90
  CLAUDE_CODE_SECURITY_FLOOR,
91
91
  SELF_UPDATE_TIMEOUTS,
@@ -16359,7 +16359,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16359
16359
  var lastVersionCheckAt = 0;
16360
16360
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16361
16361
  var lastResponsivenessProbeAt = 0;
16362
- var agtCliVersion = true ? "0.28.1200" : "dev";
16362
+ var agtCliVersion = true ? "0.28.1202" : "dev";
16363
16363
  function resolveBrewPath(execFileSync3) {
16364
16364
  try {
16365
16365
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
package/dist/mcp/index.js CHANGED
@@ -22443,6 +22443,34 @@ function kanbanAddResultText(data, submittedTitle, status) {
22443
22443
  ${first.duplicate_hint}` : added;
22444
22444
  }
22445
22445
 
22446
+ // src/knowledge-list-format.ts
22447
+ var KNOWLEDGE_LIST_PAGE_SIZE = 500;
22448
+ function knowledgeListRequest(agentId, offset) {
22449
+ return { agent_id: agentId, offset: offset ?? 0, limit: KNOWLEDGE_LIST_PAGE_SIZE };
22450
+ }
22451
+ function formatKnowledgeList(data, offset = 0) {
22452
+ const total = data.total_count;
22453
+ if (!data.items.length) {
22454
+ if (offset > 0) return `No entries at offset ${offset}${total === void 0 ? "" : `: there are ${total} in total`}.`;
22455
+ return "No knowledge entries yet.";
22456
+ }
22457
+ const lines = data.items.map((k) => {
22458
+ const inactive = k.is_active ? "" : " (inactive)";
22459
+ return `- [${k.scope ?? "team"}] ${k.title}${inactive} [${k.source_type}, id: ${k.id}]`;
22460
+ });
22461
+ if (total === void 0) {
22462
+ lines.push("", "This list may be incomplete: the API did not report a total.");
22463
+ } else if (typeof data.next_offset === "number") {
22464
+ lines.push(
22465
+ "",
22466
+ `PARTIAL LIST: entries ${offset + 1}-${offset + data.items.length} of ${total}. Call knowledge_list with offset ${data.next_offset} for the next page. Finish listing before you add or delete entries: a change while paging shifts later pages, so one can be skipped or repeated.`
22467
+ );
22468
+ } else if (offset > 0) {
22469
+ lines.push("", `End of the list: entries ${offset + 1}-${offset + data.items.length} of ${total}.`);
22470
+ }
22471
+ return lines.join("\n");
22472
+ }
22473
+
22446
22474
  // src/assign-project-text.ts
22447
22475
  var TOOL = {
22448
22476
  artefact: { tool: "artefacts_assign_project", idArg: "artefact_id" },
@@ -36669,6 +36697,12 @@ var HOST_FILE_PATH_TOOLS = /* @__PURE__ */ new Map([
36669
36697
  "skill_update",
36670
36698
  { pathArg: "body_path", targetArg: "body", maxBytes: SKILL_BODY_PATH_MAX_BYTES, label: "a skill body" }
36671
36699
  ],
36700
+ // CS-1627: `proposed_body`, not `body`. The API's required-argument check catches
36701
+ // a miss here, but only if the target name matches the handler's.
36702
+ [
36703
+ "skill_propose_revision",
36704
+ { pathArg: "body_path", targetArg: "proposed_body", maxBytes: SKILL_BODY_PATH_MAX_BYTES, label: "a skill body" }
36705
+ ],
36672
36706
  [
36673
36707
  "agt_live_publish",
36674
36708
  {
@@ -52218,20 +52252,13 @@ server.tool(
52218
52252
  );
52219
52253
  server.tool(
52220
52254
  "knowledge_list",
52221
- "The INDEX of your knowledge base: every entry visible to this agent, team-scoped and organization-scoped, as scope + title + source type + id. Call it when you need to know WHAT you know \u2014 including when a question sounds like it should be covered but you are not sure an entry exists. Returns titles and metadata only, no bodies. To read the CONTENT of an entry, call context_search (semantic; searches content across knowledge + memories + tasks). knowledge_search matches titles and slugs ONLY and never reads entry contents, so it cannot retrieve a body \u2014 reach for it only when you already know a title or slug. Also use it before knowledge_add to avoid duplicates, and before knowledge_update/delete to find the target id AND its scope (you must pass the same scope back).",
52222
- {},
52223
- async () => {
52224
- const data = await apiPost("/host/my-knowledge", {
52225
- agent_id: AGT_AGENT_ID
52226
- });
52227
- if (!data.items.length) {
52228
- return { content: [{ type: "text", text: "No knowledge entries yet." }] };
52229
- }
52230
- const lines = data.items.map((k) => {
52231
- const inactive = k.is_active ? "" : " (inactive)";
52232
- return `- [${k.scope ?? "team"}] ${k.title}${inactive} [${k.source_type}, id: ${k.id}]`;
52233
- });
52234
- return { content: [{ type: "text", text: lines.join("\n") }] };
52255
+ "The INDEX of your knowledge base: every entry visible to this agent, team-scoped and organization-scoped, as scope + title + source type + id. Call it when you need to know WHAT you know \u2014 including when a question sounds like it should be covered but you are not sure an entry exists. Returns titles and metadata only, no bodies, and a long index comes in pages: a partial reply says so and gives the offset for the next page, so keep going if you need all of it, and finish listing before you add or delete entries, which shift later pages. To read the CONTENT of an entry, call context_search (semantic; searches content across knowledge + memories + tasks). knowledge_search matches titles and slugs ONLY and never reads entry contents, so it cannot retrieve a body \u2014 reach for it only when you already know a title or slug. Also use it before knowledge_add to avoid duplicates, and before knowledge_update/delete to find the target id AND its scope (you must pass the same scope back).",
52256
+ {
52257
+ offset: external_exports.number().int().min(0).optional().describe("Where to start. Only pass the offset a previous partial list told you to use.")
52258
+ },
52259
+ async ({ offset }) => {
52260
+ const data = await apiPost("/host/my-knowledge", knowledgeListRequest(AGT_AGENT_ID, offset));
52261
+ return { content: [{ type: "text", text: formatKnowledgeList(data, offset) }] };
52235
52262
  }
52236
52263
  );
52237
52264
  server.tool(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1200",
3
+ "version": "0.28.1202",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {