@integrity-labs/agt-cli 0.28.65 → 0.28.66

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
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-PZ3TJOW4.js";
40
+ } from "../chunk-MYAMDJGD.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
4777
4777
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4778
4778
  import chalk18 from "chalk";
4779
4779
  import ora16 from "ora";
4780
- var cliVersion = true ? "0.28.65" : "dev";
4780
+ var cliVersion = true ? "0.28.66" : "dev";
4781
4781
  async function fetchLatestVersion() {
4782
4782
  const host2 = getHost();
4783
4783
  if (!host2) return null;
@@ -5791,7 +5791,7 @@ function handleError(err) {
5791
5791
  }
5792
5792
 
5793
5793
  // src/bin/agt.ts
5794
- var cliVersion2 = true ? "0.28.65" : "dev";
5794
+ var cliVersion2 = true ? "0.28.66" : "dev";
5795
5795
  var program = new Command();
5796
5796
  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");
5797
5797
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -7347,7 +7347,7 @@ function requireHost() {
7347
7347
  }
7348
7348
 
7349
7349
  // src/lib/api-client.ts
7350
- var agtCliVersion = true ? "0.28.65" : "dev";
7350
+ var agtCliVersion = true ? "0.28.66" : "dev";
7351
7351
  var lastConfigHash = null;
7352
7352
  function setConfigHash(hash) {
7353
7353
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8643,4 +8643,4 @@ export {
8643
8643
  managerInstallSystemUnitCommand,
8644
8644
  managerUninstallSystemUnitCommand
8645
8645
  };
8646
- //# sourceMappingURL=chunk-PZ3TJOW4.js.map
8646
+ //# sourceMappingURL=chunk-MYAMDJGD.js.map
@@ -27,7 +27,7 @@ import {
27
27
  requireHost,
28
28
  safeWriteJsonAtomic,
29
29
  setConfigHash
30
- } from "../chunk-PZ3TJOW4.js";
30
+ } from "../chunk-MYAMDJGD.js";
31
31
  import {
32
32
  getProjectDir as getProjectDir2,
33
33
  getReadyTasks,
@@ -6734,7 +6734,7 @@ var cachedMaintenanceWindow = null;
6734
6734
  var lastVersionCheckAt = 0;
6735
6735
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6736
6736
  var lastResponsivenessProbeAt = 0;
6737
- var agtCliVersion = true ? "0.28.65" : "dev";
6737
+ var agtCliVersion = true ? "0.28.66" : "dev";
6738
6738
  function resolveBrewPath(execFileSync4) {
6739
6739
  try {
6740
6740
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -17853,15 +17853,13 @@ async function forwardOnboardingSlashCommand(opts) {
17853
17853
  return;
17854
17854
  }
17855
17855
  try {
17856
- const res = await fetch(`${AGT_HOST}/host${path}`, {
17857
- method: "POST",
17858
- headers: {
17859
- "Content-Type": "application/json; charset=utf-8",
17860
- Authorization: `Bearer ${AGT_API_KEY}`
17861
- },
17862
- body: JSON.stringify({ agent_id: AGT_AGENT_ID }),
17863
- signal: AbortSignal.timeout(SLACK_DOWNLOAD_TIMEOUT_MS)
17864
- });
17856
+ const { apiCall: apiCall2 } = await Promise.resolve().then(() => (init_ask_user_runtime(), ask_user_runtime_exports));
17857
+ const cfg = {
17858
+ apiHost: AGT_HOST,
17859
+ apiKey: AGT_API_KEY,
17860
+ agentId: AGT_AGENT_ID
17861
+ };
17862
+ const res = await apiCall2(cfg, "POST", `/host${path}`, { agent_id: AGT_AGENT_ID });
17865
17863
  const data = await res.json();
17866
17864
  const text = data.ok ? `\u{1F504} ${data.message ?? "Onboarding updated."}` : `:x: \`${verb}\` failed${data.error ? `: ${data.error}` : "."}`;
17867
17865
  await postEphemeralViaResponseUrl(responseUrl, text, codeName);
@@ -17123,14 +17123,14 @@ async function handleOnboardingCommand(opts) {
17123
17123
  return;
17124
17124
  }
17125
17125
  try {
17126
- const res = await fetch(`${AGT_HOST}/host/onboarding/${opts.mode}`, {
17127
- method: "POST",
17128
- headers: {
17129
- "Content-Type": "application/json; charset=utf-8",
17130
- Authorization: `Bearer ${AGT_API_KEY}`
17131
- },
17132
- body: JSON.stringify({ agent_id: AGT_AGENT_ID }),
17133
- signal: AbortSignal.timeout(1e4)
17126
+ const { apiCall: apiCall2 } = await Promise.resolve().then(() => (init_ask_user_runtime(), ask_user_runtime_exports));
17127
+ const cfg = {
17128
+ apiHost: AGT_HOST,
17129
+ apiKey: AGT_API_KEY,
17130
+ agentId: AGT_AGENT_ID
17131
+ };
17132
+ const res = await apiCall2(cfg, "POST", `/host/onboarding/${opts.mode}`, {
17133
+ agent_id: AGT_AGENT_ID
17134
17134
  });
17135
17135
  const data = await res.json();
17136
17136
  process.stderr.write(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.65",
3
+ "version": "0.28.66",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {