@integrity-labs/agt-cli 0.28.1200 → 0.28.1201
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-
|
|
43
|
+
} from "../chunk-JUOHZZNN.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.
|
|
5203
|
+
var cliVersion = true ? "0.28.1201" : "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.
|
|
6463
|
+
var cliVersion2 = true ? "0.28.1201" : "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.
|
|
8085
|
+
var agtCliVersion = true ? "0.28.1201" : "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-
|
|
13686
|
+
//# sourceMappingURL=chunk-JUOHZZNN.js.map
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-JUOHZZNN.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.
|
|
16362
|
+
var agtCliVersion = true ? "0.28.1201" : "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" },
|
|
@@ -52218,20 +52246,13 @@ server.tool(
|
|
|
52218
52246
|
);
|
|
52219
52247
|
server.tool(
|
|
52220
52248
|
"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
|
-
|
|
52224
|
-
|
|
52225
|
-
|
|
52226
|
-
|
|
52227
|
-
|
|
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") }] };
|
|
52249
|
+
"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).",
|
|
52250
|
+
{
|
|
52251
|
+
offset: external_exports.number().int().min(0).optional().describe("Where to start. Only pass the offset a previous partial list told you to use.")
|
|
52252
|
+
},
|
|
52253
|
+
async ({ offset }) => {
|
|
52254
|
+
const data = await apiPost("/host/my-knowledge", knowledgeListRequest(AGT_AGENT_ID, offset));
|
|
52255
|
+
return { content: [{ type: "text", text: formatKnowledgeList(data, offset) }] };
|
|
52235
52256
|
}
|
|
52236
52257
|
);
|
|
52237
52258
|
server.tool(
|
package/package.json
CHANGED
|
File without changes
|