@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/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-GAN6DZ72.js";
26
- import "./chunk-2TOCO5D2.js";
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-OZWBRDFQ.js.map
52
+ //# sourceMappingURL=persistent-session-L4YIJJML.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-GAN6DZ72.js";
4
- import "./chunk-2TOCO5D2.js";
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-MLBXIDVO.js.map
32
+ //# sourceMappingURL=responsiveness-probe-YRLESO54.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {