@integrity-labs/agt-cli 0.28.701 → 0.28.702

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-53XUMCTF.js";
43
+ } from "../chunk-324RU37E.js";
44
44
  import {
45
45
  readDirectChatSessionState
46
46
  } from "../chunk-JWFVVQ5R.js";
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
4909
4909
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4910
4910
  import chalk18 from "chalk";
4911
4911
  import ora16 from "ora";
4912
- var cliVersion = true ? "0.28.701" : "dev";
4912
+ var cliVersion = true ? "0.28.702" : "dev";
4913
4913
  async function fetchLatestVersion() {
4914
4914
  const host2 = getHost();
4915
4915
  if (!host2) return null;
@@ -6089,7 +6089,7 @@ function handleError(err) {
6089
6089
  }
6090
6090
 
6091
6091
  // src/bin/agt.ts
6092
- var cliVersion2 = true ? "0.28.701" : "dev";
6092
+ var cliVersion2 = true ? "0.28.702" : "dev";
6093
6093
  var program = new Command();
6094
6094
  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");
6095
6095
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -6383,7 +6383,7 @@ function exchangeFailureKind(err) {
6383
6383
  }
6384
6384
 
6385
6385
  // src/lib/api-client.ts
6386
- var agtCliVersion = true ? "0.28.701" : "dev";
6386
+ var agtCliVersion = true ? "0.28.702" : "dev";
6387
6387
  var lastConfigHash = null;
6388
6388
  function setConfigHash(hash) {
6389
6389
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10124,4 +10124,4 @@ export {
10124
10124
  managerInstallSystemUnitCommand,
10125
10125
  managerUninstallSystemUnitCommand
10126
10126
  };
10127
- //# sourceMappingURL=chunk-53XUMCTF.js.map
10127
+ //# sourceMappingURL=chunk-324RU37E.js.map
@@ -54,7 +54,7 @@ import {
54
54
  safeWriteJsonAtomic,
55
55
  setConfigHash,
56
56
  tripClass
57
- } from "../chunk-53XUMCTF.js";
57
+ } from "../chunk-324RU37E.js";
58
58
  import {
59
59
  getProjectDir as getProjectDir2,
60
60
  getReadyTasks,
@@ -12540,7 +12540,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
12540
12540
  var lastVersionCheckAt = 0;
12541
12541
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
12542
12542
  var lastResponsivenessProbeAt = 0;
12543
- var agtCliVersion = true ? "0.28.701" : "dev";
12543
+ var agtCliVersion = true ? "0.28.702" : "dev";
12544
12544
  function resolveBrewPath(execFileSync3) {
12545
12545
  try {
12546
12546
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
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.702",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {