@integrity-labs/agt-cli 0.28.701 → 0.28.703

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
@@ -47062,19 +47062,23 @@ async function resolveArtefactText(url) {
47062
47062
  url
47063
47063
  });
47064
47064
  const a = data.artefact;
47065
+ const nextStep = a.owned_by_caller ? "Use this id with artefacts_get, artefacts_download, or artefacts_assign_project." : a.content_url ? "Published by another agent in your organisation, so artefacts_get and artefacts_download will NOT resolve it. Read the page by fetching the content URL above." : "Published by another agent in your organisation AND gated behind a viewer password or email prompt, so its content is not readable from here. Ask the agent that published it.";
47065
47066
  return [
47066
47067
  `Resolved to artefact ${a.id}`,
47067
47068
  `Slug: ${a.publisher_resource_id}`,
47068
47069
  a.title ? `Title: ${a.title}` : null,
47069
- `Kind: ${a.kind} [${a.status}]`,
47070
+ `Kind: ${a.kind} [${a.status}]${a.gated ? " [gated]" : ""}`,
47070
47071
  a.project_id ? `Project: ${a.project_id}` : null,
47071
- a.live_url ? `URL: ${a.live_url}` : null,
47072
- "Use this id with artefacts_get, artefacts_download, or artefacts_assign_project."
47072
+ a.live_url ? `Shell URL: ${a.live_url}` : null,
47073
+ // Named "content" and explained inline, because the entire failure this
47074
+ // fixes was a reader assuming the page URL was the page.
47075
+ a.content_url ? `Content URL: ${a.content_url} <- fetch THIS to read the page. The shell URL above only loads it.` : null,
47076
+ nextStep
47073
47077
  ].filter((s) => s !== null).join("\n");
47074
47078
  }
47075
47079
  server.tool(
47076
47080
  "artefacts_resolve",
47077
- "Resolve an Augmented Live URL (e.g. https://live.augmented.team/<slug>) or a bare slug to the internal artefact id, so you can act on a link someone shared. Returns the id plus title, kind, status, and project. Only resolves your own published artefacts.",
47081
+ "Resolve an Augmented Live URL (e.g. https://live.augmented.team/<slug>) or a bare slug to the internal artefact id, so you can act on a link someone shared. Returns the id plus title, kind, status, project, and the CONTENT url. Resolves any published artefact in your ORGANISATION, not just your own - so a link a teammate or a human shared with you works. Note the shell/content split: the page URL serves a wrapper that loads the body from the content URL, so fetch the content URL to read what is on the page. The content-returning tools (artefacts_get, artefacts_download, artefacts_get_source_chunk) remain limited to artefacts YOU published.",
47078
47082
  {
47079
47083
  url: external_exports.string().min(1).describe("An Augmented Live URL or the bare slug from one (the last path segment)")
47080
47084
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.701",
3
+ "version": "0.28.703",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {