@integrity-labs/agt-cli 0.23.0 → 0.23.2
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 +4 -4
- package/dist/{chunk-2TOCO5D2.js → chunk-HSIESZMZ.js} +23 -1
- package/dist/{chunk-2TOCO5D2.js.map → chunk-HSIESZMZ.js.map} +1 -1
- package/dist/{chunk-CMG5AKXB.js → chunk-WUYKMPYW.js} +263 -158
- package/dist/chunk-WUYKMPYW.js.map +1 -0
- package/dist/{chunk-GAN6DZ72.js → chunk-ZKQGDH3T.js} +27 -2
- package/dist/chunk-ZKQGDH3T.js.map +1 -0
- package/dist/{claude-pair-runtime-XZX4KOI3.js → claude-pair-runtime-XCFWTH6T.js} +2 -2
- package/dist/lib/manager-worker.js +201 -15
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +71 -0
- package/dist/{persistent-session-OZWBRDFQ.js → persistent-session-L4YIJJML.js} +3 -3
- package/dist/{responsiveness-probe-MLBXIDVO.js → responsiveness-probe-YRLESO54.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-CMG5AKXB.js.map +0 -1
- package/dist/chunk-GAN6DZ72.js.map +0 -1
- /package/dist/{claude-pair-runtime-XZX4KOI3.js.map → claude-pair-runtime-XCFWTH6T.js.map} +0 -0
- /package/dist/{persistent-session-OZWBRDFQ.js.map → persistent-session-L4YIJJML.js.map} +0 -0
- /package/dist/{responsiveness-probe-MLBXIDVO.js.map → responsiveness-probe-YRLESO54.js.map} +0 -0
package/dist/mcp/index.js
CHANGED
|
@@ -22293,6 +22293,77 @@ async function registerForwardedApiTools() {
|
|
|
22293
22293
|
}
|
|
22294
22294
|
return { registered, skipped };
|
|
22295
22295
|
}
|
|
22296
|
+
server.tool(
|
|
22297
|
+
"projects.list",
|
|
22298
|
+
"List artefacts (websites, slide decks, mockups) this agent has previously published. Call this BEFORE re-publishing to find and modify existing work instead of creating duplicates.",
|
|
22299
|
+
{
|
|
22300
|
+
publisher: external_exports.string().optional().describe('Filter by publisher (e.g. "here-now")'),
|
|
22301
|
+
kind: external_exports.enum(["mockup", "deck", "site", "app", "other"]).optional().describe("Filter by artefact kind"),
|
|
22302
|
+
limit: external_exports.number().int().min(1).max(100).optional().describe("Maximum projects to return (default 50, max 100)")
|
|
22303
|
+
},
|
|
22304
|
+
async (params) => {
|
|
22305
|
+
const data = await apiPost("/host/my-published-projects", {
|
|
22306
|
+
agent_id: AGT_AGENT_ID,
|
|
22307
|
+
publisher: params.publisher,
|
|
22308
|
+
kind: params.kind,
|
|
22309
|
+
limit: params.limit
|
|
22310
|
+
});
|
|
22311
|
+
if (!data.projects.length) {
|
|
22312
|
+
return { content: [{ type: "text", text: "No published projects yet." }] };
|
|
22313
|
+
}
|
|
22314
|
+
const lines = data.projects.map((p) => {
|
|
22315
|
+
const title = p.title ?? "(untitled)";
|
|
22316
|
+
const expires = p.expires_at ? ` expires ${p.expires_at}` : "";
|
|
22317
|
+
return `- [${p.kind}] ${title} \u2014 ${p.live_url} (id: ${p.id}, ${p.mode}, published ${p.published_at}${expires})`;
|
|
22318
|
+
});
|
|
22319
|
+
return { content: [{ type: "text", text: lines.join("\n") }] };
|
|
22320
|
+
}
|
|
22321
|
+
);
|
|
22322
|
+
server.tool(
|
|
22323
|
+
"projects.get",
|
|
22324
|
+
"Fetch metadata for a single published project. Returns the project record without the source HTML \u2014 call projects.get_source_chunk to retrieve the HTML in chunks when you need to modify it.",
|
|
22325
|
+
{
|
|
22326
|
+
project_id: external_exports.string().uuid().describe("The project id returned by projects.list")
|
|
22327
|
+
},
|
|
22328
|
+
async (params) => {
|
|
22329
|
+
const data = await apiPost(`/host/published-project/${encodeURIComponent(params.project_id)}`, {
|
|
22330
|
+
agent_id: AGT_AGENT_ID
|
|
22331
|
+
});
|
|
22332
|
+
const p = data.project;
|
|
22333
|
+
const header = [
|
|
22334
|
+
`Project: ${p.title ?? "(untitled)"} [${p.kind}]`,
|
|
22335
|
+
`Publisher: ${p.publisher} (${p.mode})`,
|
|
22336
|
+
`Live URL: ${p.live_url}`,
|
|
22337
|
+
p.claim_url ? `Claim URL: ${p.claim_url}` : null,
|
|
22338
|
+
`Published: ${p.published_at}`,
|
|
22339
|
+
p.expires_at ? `Expires: ${p.expires_at}` : null,
|
|
22340
|
+
`Last modified: ${p.last_modified_at}`,
|
|
22341
|
+
p.has_source_html ? `Source HTML: ${p.source_html_length} bytes (call projects.get_source_chunk to fetch)` : "(source HTML not preserved for this project)"
|
|
22342
|
+
].filter((s) => s !== null).join("\n");
|
|
22343
|
+
return { content: [{ type: "text", text: header }] };
|
|
22344
|
+
}
|
|
22345
|
+
);
|
|
22346
|
+
server.tool(
|
|
22347
|
+
"projects.get_source_chunk",
|
|
22348
|
+
"Fetch a chunk of source HTML for a published project. Use this to assemble the HTML for modification when projects.get reports a non-zero source_html_length.",
|
|
22349
|
+
{
|
|
22350
|
+
project_id: external_exports.string().uuid().describe("The project id returned by projects.list"),
|
|
22351
|
+
offset: external_exports.number().int().min(0).describe("Byte offset into the source HTML to start from"),
|
|
22352
|
+
limit: external_exports.number().int().min(1).max(65536).optional().describe("Max bytes to return (default 32KB, max 64KB)")
|
|
22353
|
+
},
|
|
22354
|
+
async (params) => {
|
|
22355
|
+
const data = await apiPost(`/host/published-project/${encodeURIComponent(params.project_id)}/source-chunk`, {
|
|
22356
|
+
agent_id: AGT_AGENT_ID,
|
|
22357
|
+
offset: params.offset,
|
|
22358
|
+
limit: params.limit
|
|
22359
|
+
});
|
|
22360
|
+
const trailer = data.end_of_content ? "\n\n---\n(end of source)" : `
|
|
22361
|
+
|
|
22362
|
+
---
|
|
22363
|
+
(more \u2014 next offset: ${data.offset + data.length}, total: ${data.total_length} bytes)`;
|
|
22364
|
+
return { content: [{ type: "text", text: data.chunk + trailer }] };
|
|
22365
|
+
}
|
|
22366
|
+
);
|
|
22296
22367
|
async function main() {
|
|
22297
22368
|
try {
|
|
22298
22369
|
const result = await registerForwardedApiTools();
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
stopPersistentSession,
|
|
23
23
|
takeZombieDetection,
|
|
24
24
|
writePersistentClaudeWrapper
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-ZKQGDH3T.js";
|
|
26
|
+
import "./chunk-HSIESZMZ.js";
|
|
27
27
|
export {
|
|
28
28
|
_internals,
|
|
29
29
|
collectDiagnostics,
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
takeZombieDetection,
|
|
50
50
|
writePersistentClaudeWrapper
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=persistent-session-
|
|
52
|
+
//# sourceMappingURL=persistent-session-L4YIJJML.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZKQGDH3T.js";
|
|
4
|
+
import "./chunk-HSIESZMZ.js";
|
|
5
5
|
|
|
6
6
|
// src/lib/responsiveness-probe.ts
|
|
7
7
|
import { statSync } from "fs";
|
|
@@ -29,4 +29,4 @@ export {
|
|
|
29
29
|
collectResponsivenessProbes,
|
|
30
30
|
getResponsivenessIntervalMs
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
32
|
+
//# sourceMappingURL=responsiveness-probe-YRLESO54.js.map
|