@integrity-labs/agt-cli 0.28.863 → 0.28.864
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-N76CID2I.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5467
5467
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5468
5468
|
import chalk18 from "chalk";
|
|
5469
5469
|
import ora16 from "ora";
|
|
5470
|
-
var cliVersion = true ? "0.28.
|
|
5470
|
+
var cliVersion = true ? "0.28.864" : "dev";
|
|
5471
5471
|
async function fetchLatestVersion() {
|
|
5472
5472
|
const host2 = getHost();
|
|
5473
5473
|
if (!host2) return null;
|
|
@@ -6658,7 +6658,7 @@ function handleError(err) {
|
|
|
6658
6658
|
}
|
|
6659
6659
|
|
|
6660
6660
|
// src/bin/agt.ts
|
|
6661
|
-
var cliVersion2 = true ? "0.28.
|
|
6661
|
+
var cliVersion2 = true ? "0.28.864" : "dev";
|
|
6662
6662
|
var program = new Command();
|
|
6663
6663
|
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");
|
|
6664
6664
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6728,7 +6728,7 @@ function exchangeFailureKind(err) {
|
|
|
6728
6728
|
}
|
|
6729
6729
|
|
|
6730
6730
|
// src/lib/api-client.ts
|
|
6731
|
-
var agtCliVersion = true ? "0.28.
|
|
6731
|
+
var agtCliVersion = true ? "0.28.864" : "dev";
|
|
6732
6732
|
var lastConfigHash = null;
|
|
6733
6733
|
function setConfigHash(hash) {
|
|
6734
6734
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11338,4 +11338,4 @@ export {
|
|
|
11338
11338
|
managerInstallSystemUnitCommand,
|
|
11339
11339
|
managerUninstallSystemUnitCommand
|
|
11340
11340
|
};
|
|
11341
|
-
//# sourceMappingURL=chunk-
|
|
11341
|
+
//# sourceMappingURL=chunk-N76CID2I.js.map
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
safeWriteJsonAtomic,
|
|
64
64
|
setConfigHash,
|
|
65
65
|
tripClass
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-N76CID2I.js";
|
|
67
67
|
import {
|
|
68
68
|
getProjectDir as getProjectDir2,
|
|
69
69
|
getReadyTasks,
|
|
@@ -13673,7 +13673,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13673
13673
|
var lastVersionCheckAt = 0;
|
|
13674
13674
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13675
13675
|
var lastResponsivenessProbeAt = 0;
|
|
13676
|
-
var agtCliVersion = true ? "0.28.
|
|
13676
|
+
var agtCliVersion = true ? "0.28.864" : "dev";
|
|
13677
13677
|
function resolveBrewPath(execFileSync2) {
|
|
13678
13678
|
try {
|
|
13679
13679
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
package/dist/mcp/index.js
CHANGED
|
@@ -48247,6 +48247,37 @@ server.tool(
|
|
|
48247
48247
|
return { content: [{ type: "text", text: lines.join("\n") }] };
|
|
48248
48248
|
}
|
|
48249
48249
|
);
|
|
48250
|
+
server.tool(
|
|
48251
|
+
"knowledge_get",
|
|
48252
|
+
'Read ONE knowledge entry IN FULL by id, with no truncation. Use it whenever an entry matters enough to read completely, and ALWAYS before knowledge_update on a long entry. Why it exists (ENG-10276): search results do not serve the entry, they serve a stored SUMMARY column, and when LLM compression is unavailable that column is a hard 4,000-character cut of the original. So context_search and knowledge_search can hand you a fraction of a long entry with no reliable sign that they did. Since knowledge_update REPLACES the whole body, editing from a search result silently destroys everything past that cut. This is the one surface where "read the whole entry" always means the whole entry. It also reports full_length, delivered_length and truncated, so you can see exactly how much search was withholding.',
|
|
48253
|
+
{
|
|
48254
|
+
id: external_exports.string().describe("Knowledge entry id (uuid) \u2014 from knowledge_list, knowledge_add, or the `cite:` field on a context_search result")
|
|
48255
|
+
},
|
|
48256
|
+
async ({ id }) => {
|
|
48257
|
+
const data = await apiPost("/host/knowledge/get", {
|
|
48258
|
+
agent_id: AGT_AGENT_ID,
|
|
48259
|
+
id
|
|
48260
|
+
});
|
|
48261
|
+
const k = data.item;
|
|
48262
|
+
const header = [
|
|
48263
|
+
`# ${k.title}`,
|
|
48264
|
+
`id: ${k.id} \xB7 slug: ${k.slug} \xB7 scope: ${k.scope} \xB7 ${k.is_active ? "active" : "INACTIVE"}`,
|
|
48265
|
+
`length: ${k.full_length} chars \xB7 source: ${k.source_type}${k.source_url ? ` (${k.source_url})` : ""} \xB7 updated: ${k.updated_at}`
|
|
48266
|
+
];
|
|
48267
|
+
if (k.truncated) {
|
|
48268
|
+
header.push(
|
|
48269
|
+
`NOTE: search would have shown you only ${k.delivered_length} of these ${k.full_length} chars (compression_status: ${k.compression_status ?? "unknown"}). The full text is below. If you are about to knowledge_update this entry, edit THIS text \u2014 updating from a search result would discard the other ${k.full_length - k.delivered_length} chars permanently.`
|
|
48270
|
+
);
|
|
48271
|
+
}
|
|
48272
|
+
return {
|
|
48273
|
+
content: [
|
|
48274
|
+
{ type: "text", text: `${header.join("\n")}
|
|
48275
|
+
|
|
48276
|
+
${k.content ?? "(empty)"}` }
|
|
48277
|
+
]
|
|
48278
|
+
};
|
|
48279
|
+
}
|
|
48280
|
+
);
|
|
48250
48281
|
server.tool(
|
|
48251
48282
|
"rule_list",
|
|
48252
48283
|
"List the standing rules currently in force for you \u2014 the short instructions your people have asked you to follow on EVERY turn, rendered into your instructions verbatim. Use this before adding a rule (so you know whether you are at the limit and what you would be replacing), and whenever someone asks what rules you are operating under. Rules are not task-specific and are not skills: a skill loads only when its description matches the task, a rule applies always.",
|
|
@@ -48874,7 +48905,11 @@ var LOCAL_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
|
48874
48905
|
"routine_revise",
|
|
48875
48906
|
// ENG-9431: the discovery primitive both of the above depend on.
|
|
48876
48907
|
"routine_list",
|
|
48908
|
+
// ENG-10276: knowledge_get is the untruncated single-entry read. The list and
|
|
48909
|
+
// search tools serve a stored SUMMARY column, not the entry, so this is the
|
|
48910
|
+
// only one that can be trusted before a knowledge_update.
|
|
48877
48911
|
"knowledge_list",
|
|
48912
|
+
"knowledge_get",
|
|
48878
48913
|
"knowledge_add",
|
|
48879
48914
|
"knowledge_update",
|
|
48880
48915
|
"knowledge_delete",
|
package/package.json
CHANGED
|
File without changes
|