@integrity-labs/agt-cli 0.28.252 → 0.28.253

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
@@ -38,7 +38,7 @@ import {
38
38
  success,
39
39
  table,
40
40
  warn
41
- } from "../chunk-U2VQQ2UK.js";
41
+ } from "../chunk-JLIBPRQM.js";
42
42
  import {
43
43
  CHANNEL_REGISTRY,
44
44
  DEFAULT_FRAMEWORK,
@@ -4826,7 +4826,7 @@ import { execFileSync, execSync } from "child_process";
4826
4826
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4827
4827
  import chalk18 from "chalk";
4828
4828
  import ora16 from "ora";
4829
- var cliVersion = true ? "0.28.252" : "dev";
4829
+ var cliVersion = true ? "0.28.253" : "dev";
4830
4830
  async function fetchLatestVersion() {
4831
4831
  const host2 = getHost();
4832
4832
  if (!host2) return null;
@@ -5840,7 +5840,7 @@ function handleError(err) {
5840
5840
  }
5841
5841
 
5842
5842
  // src/bin/agt.ts
5843
- var cliVersion2 = true ? "0.28.252" : "dev";
5843
+ var cliVersion2 = true ? "0.28.253" : "dev";
5844
5844
  var program = new Command();
5845
5845
  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");
5846
5846
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -5832,7 +5832,7 @@ function requireHost() {
5832
5832
  }
5833
5833
 
5834
5834
  // src/lib/api-client.ts
5835
- var agtCliVersion = true ? "0.28.252" : "dev";
5835
+ var agtCliVersion = true ? "0.28.253" : "dev";
5836
5836
  var lastConfigHash = null;
5837
5837
  function setConfigHash(hash) {
5838
5838
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8102,4 +8102,4 @@ export {
8102
8102
  managerInstallSystemUnitCommand,
8103
8103
  managerUninstallSystemUnitCommand
8104
8104
  };
8105
- //# sourceMappingURL=chunk-U2VQQ2UK.js.map
8105
+ //# sourceMappingURL=chunk-JLIBPRQM.js.map
@@ -37,7 +37,7 @@ import {
37
37
  requireHost,
38
38
  safeWriteJsonAtomic,
39
39
  setConfigHash
40
- } from "../chunk-U2VQQ2UK.js";
40
+ } from "../chunk-JLIBPRQM.js";
41
41
  import {
42
42
  getProjectDir as getProjectDir2,
43
43
  getReadyTasks,
@@ -6669,7 +6669,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
6669
6669
  var lastVersionCheckAt = 0;
6670
6670
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6671
6671
  var lastResponsivenessProbeAt = 0;
6672
- var agtCliVersion = true ? "0.28.252" : "dev";
6672
+ var agtCliVersion = true ? "0.28.253" : "dev";
6673
6673
  function resolveBrewPath(execFileSync2) {
6674
6674
  try {
6675
6675
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -13880,7 +13880,8 @@ function createInboundContextClient(args) {
13880
13880
  const resp = await fetchImpl(`${base}/host/exchange`, {
13881
13881
  method: "POST",
13882
13882
  headers: { "Content-Type": "application/json" },
13883
- body: JSON.stringify({ host_key: apiKey }),
13883
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
13884
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
13884
13885
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
13885
13886
  });
13886
13887
  if (!resp.ok) {
@@ -14698,7 +14699,8 @@ function createKanbanCardActiveClient(args) {
14698
14699
  const resp = await fetchImpl(`${base}/host/exchange`, {
14699
14700
  method: "POST",
14700
14701
  headers: { "Content-Type": "application/json" },
14701
- body: JSON.stringify({ host_key: apiKey }),
14702
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
14703
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
14702
14704
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS2)
14703
14705
  });
14704
14706
  if (!resp.ok) {
@@ -14927,7 +14929,9 @@ async function getAuthToken() {
14927
14929
  const res = await fetchWithTimeout(`${AGT_HOST}/host/exchange`, {
14928
14930
  method: "POST",
14929
14931
  headers: { "Content-Type": "application/json" },
14930
- body: JSON.stringify({ host_key: AGT_API_KEY })
14932
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
14933
+ // AGT_AGENT_ID undefined => JSON drops it => host-wide (backward compatible).
14934
+ body: JSON.stringify({ host_key: AGT_API_KEY, agent_id: AGT_AGENT_ID })
14931
14935
  }, HTTP_TIMEOUT_MS);
14932
14936
  if (!res.ok) {
14933
14937
  const body = await res.text().catch(() => "");
@@ -16066,7 +16066,8 @@ function createKanbanCardActiveClient(args) {
16066
16066
  const resp = await fetchImpl(`${base}/host/exchange`, {
16067
16067
  method: "POST",
16068
16068
  headers: { "Content-Type": "application/json" },
16069
- body: JSON.stringify({ host_key: apiKey }),
16069
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
16070
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
16070
16071
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
16071
16072
  });
16072
16073
  if (!resp.ok) {
@@ -17519,7 +17520,9 @@ function createConversationIngestClient(args) {
17519
17520
  const resp = await fetchImpl(`${base}/host/exchange`, {
17520
17521
  method: "POST",
17521
17522
  headers: { "Content-Type": "application/json" },
17522
- body: JSON.stringify({ host_key: apiKey }),
17523
+ // ENG-7438: scope the exchange to this agent so the API can apply the
17524
+ // per-agent org gate (ADR-0041 P1). Self-scoped caller.
17525
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
17523
17526
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS3)
17524
17527
  });
17525
17528
  if (!resp.ok) {
@@ -17591,7 +17594,8 @@ function createInboundContextClient(args) {
17591
17594
  const resp = await fetchImpl(`${base}/host/exchange`, {
17592
17595
  method: "POST",
17593
17596
  headers: { "Content-Type": "application/json" },
17594
- body: JSON.stringify({ host_key: apiKey }),
17597
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
17598
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
17595
17599
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS4)
17596
17600
  });
17597
17601
  if (!resp.ok) {
@@ -17661,7 +17665,8 @@ function createSlackBotUserIdClient(args) {
17661
17665
  const resp = await fetchImpl(`${base}/host/exchange`, {
17662
17666
  method: "POST",
17663
17667
  headers: { "Content-Type": "application/json" },
17664
- body: JSON.stringify({ host_key: apiKey }),
17668
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
17669
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
17665
17670
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS5)
17666
17671
  });
17667
17672
  if (!resp.ok) {
@@ -14441,7 +14441,8 @@ function startMsteamsInboundPuller(args) {
14441
14441
  const resp = await fetchImpl(`${base}/host/exchange`, {
14442
14442
  method: "POST",
14443
14443
  headers: { "Content-Type": "application/json" },
14444
- body: JSON.stringify({ host_key: apiKey }),
14444
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
14445
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
14445
14446
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
14446
14447
  });
14447
14448
  if (!resp.ok) {
@@ -14577,7 +14578,8 @@ function createInboundContextClient(args) {
14577
14578
  const resp = await fetchImpl(`${base}/host/exchange`, {
14578
14579
  method: "POST",
14579
14580
  headers: { "Content-Type": "application/json" },
14580
- body: JSON.stringify({ host_key: apiKey }),
14581
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
14582
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
14581
14583
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS2)
14582
14584
  });
14583
14585
  if (!resp.ok) {
@@ -15614,7 +15614,8 @@ function createDiagnosticEventClient(args) {
15614
15614
  const resp = await fetchImpl(`${base}/host/exchange`, {
15615
15615
  method: "POST",
15616
15616
  headers: { "Content-Type": "application/json" },
15617
- body: JSON.stringify({ host_key: apiKey }),
15617
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
15618
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
15618
15619
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS2)
15619
15620
  });
15620
15621
  if (!resp.ok) {
@@ -16238,7 +16239,8 @@ function createObservedChatClient(args) {
16238
16239
  const resp = await fetchImpl(`${base}/host/exchange`, {
16239
16240
  method: "POST",
16240
16241
  headers: { "Content-Type": "application/json" },
16241
- body: JSON.stringify({ host_key: apiKey }),
16242
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
16243
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
16242
16244
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS3)
16243
16245
  });
16244
16246
  if (!resp.ok) {
@@ -16319,7 +16321,9 @@ function createConversationIngestClient(args) {
16319
16321
  const resp = await fetchImpl(`${base}/host/exchange`, {
16320
16322
  method: "POST",
16321
16323
  headers: { "Content-Type": "application/json" },
16322
- body: JSON.stringify({ host_key: apiKey }),
16324
+ // ENG-7438: scope the exchange to this agent so the API can apply the
16325
+ // per-agent org gate (ADR-0041 P1). Self-scoped caller.
16326
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
16323
16327
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS4)
16324
16328
  });
16325
16329
  if (!resp.ok) {
@@ -16391,7 +16395,8 @@ function createInboundContextClient(args) {
16391
16395
  const resp = await fetchImpl(`${base}/host/exchange`, {
16392
16396
  method: "POST",
16393
16397
  headers: { "Content-Type": "application/json" },
16394
- body: JSON.stringify({ host_key: apiKey }),
16398
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
16399
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
16395
16400
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS5)
16396
16401
  });
16397
16402
  if (!resp.ok) {
@@ -16942,7 +16947,8 @@ function createKanbanCardActiveClient(args) {
16942
16947
  const resp = await fetchImpl(`${base}/host/exchange`, {
16943
16948
  method: "POST",
16944
16949
  headers: { "Content-Type": "application/json" },
16945
- body: JSON.stringify({ host_key: apiKey }),
16950
+ // ENG-7438: scope the exchange to this agent (per-agent org gate, ADR-0041 P1).
16951
+ body: JSON.stringify({ host_key: apiKey, agent_id: agentId }),
16946
16952
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS6)
16947
16953
  });
16948
16954
  if (!resp.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.252",
3
+ "version": "0.28.253",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {