@integrity-labs/agt-cli 0.27.12 → 0.27.14

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  claudeModelAlias,
3
3
  isClaudeFastMode
4
- } from "./chunk-TOMBC7IE.js";
4
+ } from "./chunk-HT6EETEL.js";
5
5
  import {
6
6
  reapOrphanChannelMcps
7
7
  } from "./chunk-XWVM4KPK.js";
@@ -1116,4 +1116,4 @@ export {
1116
1116
  stopAllSessionsAndWait,
1117
1117
  getProjectDir
1118
1118
  };
1119
- //# sourceMappingURL=chunk-7JFYAP7Y.js.map
1119
+ //# sourceMappingURL=chunk-5ZUNHYKV.js.map
@@ -9,65 +9,7 @@ import {
9
9
  parseDeliveryTarget,
10
10
  registerFramework,
11
11
  wrapScheduledTaskPrompt
12
- } from "./chunk-TOMBC7IE.js";
13
-
14
- // ../../packages/core/dist/provisioning/provisioner.js
15
- import { createHash } from "crypto";
16
- function sha256(content) {
17
- return createHash("sha256").update(content, "utf8").digest("hex");
18
- }
19
- function provision(input, frameworkId = "openclaw") {
20
- const adapter = getFramework(frameworkId);
21
- const artifacts = adapter.buildArtifacts(input);
22
- const charterHash = sha256(input.charterContent);
23
- const toolsHash = sha256(input.toolsContent);
24
- const teamDir = `.augmented/${input.agent.code_name}`;
25
- return {
26
- teamDir,
27
- artifacts,
28
- charterHash,
29
- toolsHash
30
- };
31
- }
32
-
33
- // ../../packages/core/dist/provisioning/hook-env.js
34
- function augmentedHookPath(currentPath) {
35
- const extras = [
36
- "/home/linuxbrew/.linuxbrew/bin",
37
- "/opt/homebrew/bin",
38
- "/usr/local/bin",
39
- "/usr/bin",
40
- "/bin"
41
- ];
42
- const seen = /* @__PURE__ */ new Set();
43
- const parts = [];
44
- const push = (p) => {
45
- if (!p || seen.has(p))
46
- return;
47
- seen.add(p);
48
- parts.push(p);
49
- };
50
- for (const p of (currentPath ?? "").split(":"))
51
- push(p);
52
- for (const p of extras)
53
- push(p);
54
- return parts.join(":");
55
- }
56
- function extractCommandNotFound(stderr) {
57
- if (!stderr)
58
- return null;
59
- const SAFE_CMD = /^[A-Za-z][A-Za-z0-9._-]{0,63}$/;
60
- for (const line of stderr.split(/\r?\n/)) {
61
- const m = line.match(/^(?:bash|sh): (?:line \d+: )?([^:\s]+): command not found$/);
62
- if (m?.[1]) {
63
- const rawCmd = m[1].trim();
64
- const cmd = rawCmd.split("/").pop() ?? rawCmd;
65
- if (SAFE_CMD.test(cmd))
66
- return cmd;
67
- }
68
- }
69
- return null;
70
- }
12
+ } from "./chunk-HT6EETEL.js";
71
13
 
72
14
  // ../../packages/core/dist/integrations/registry.js
73
15
  var INTEGRATION_REGISTRY = [
@@ -421,6 +363,45 @@ function getIntegration(id) {
421
363
  return integrationMap.get(id);
422
364
  }
423
365
 
366
+ // ../../packages/core/dist/provisioning/hook-env.js
367
+ function augmentedHookPath(currentPath) {
368
+ const extras = [
369
+ "/home/linuxbrew/.linuxbrew/bin",
370
+ "/opt/homebrew/bin",
371
+ "/usr/local/bin",
372
+ "/usr/bin",
373
+ "/bin"
374
+ ];
375
+ const seen = /* @__PURE__ */ new Set();
376
+ const parts = [];
377
+ const push = (p) => {
378
+ if (!p || seen.has(p))
379
+ return;
380
+ seen.add(p);
381
+ parts.push(p);
382
+ };
383
+ for (const p of (currentPath ?? "").split(":"))
384
+ push(p);
385
+ for (const p of extras)
386
+ push(p);
387
+ return parts.join(":");
388
+ }
389
+ function extractCommandNotFound(stderr) {
390
+ if (!stderr)
391
+ return null;
392
+ const SAFE_CMD = /^[A-Za-z][A-Za-z0-9._-]{0,63}$/;
393
+ for (const line of stderr.split(/\r?\n/)) {
394
+ const m = line.match(/^(?:bash|sh): (?:line \d+: )?([^:\s]+): command not found$/);
395
+ if (m?.[1]) {
396
+ const rawCmd = m[1].trim();
397
+ const cmd = rawCmd.split("/").pop() ?? rawCmd;
398
+ if (SAFE_CMD.test(cmd))
399
+ return cmd;
400
+ }
401
+ }
402
+ return null;
403
+ }
404
+
424
405
  // ../../packages/core/dist/provisioning/frameworks/openclaw/index.js
425
406
  import { execFile, spawn } from "child_process";
426
407
  import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2, existsSync as existsSync2, unlinkSync as unlinkSync2, chmodSync as chmodSync2, renameSync as renameSync2, symlinkSync } from "fs";
@@ -6002,6 +5983,22 @@ var ManagedAgentsAdapter = {
6002
5983
  };
6003
5984
  registerFramework(ManagedAgentsAdapter);
6004
5985
 
5986
+ // src/lib/globals.ts
5987
+ import chalk from "chalk";
5988
+ var _jsonMode = false;
5989
+ function setJsonMode(enabled) {
5990
+ _jsonMode = enabled;
5991
+ if (enabled) {
5992
+ chalk.level = 0;
5993
+ }
5994
+ }
5995
+ function isJsonMode() {
5996
+ return _jsonMode;
5997
+ }
5998
+ function jsonOutput(data) {
5999
+ console.log(JSON.stringify(data, null, 2));
6000
+ }
6001
+
6005
6002
  // src/lib/config.ts
6006
6003
  import { readFileSync as readFileSync6, writeFileSync as writeFileSync6, mkdirSync as mkdirSync5, existsSync as existsSync6 } from "fs";
6007
6004
  import { join as join6 } from "path";
@@ -6068,12 +6065,15 @@ function setActiveTeam(slug) {
6068
6065
  config.active_team = slug;
6069
6066
  saveConfig(config);
6070
6067
  }
6071
- var DEFAULT_AGT_HOST = "https://api.augmented.team";
6068
+ var PROD_AGT_HOST = "https://api.augmented.team";
6069
+ var AGT_HOST_UNSET_MESSAGE = "AGT_HOST is not set. Set it to the API URL for your stage before running this command:\n Production: export AGT_HOST=https://api.augmented.team\n Non-prod stage: export AGT_HOST=https://<stage>.api.staging.augmented.team\n Local development: export AGT_HOST=http://api.agt.localhost:1355\n\nFor first-time host setup, pass --api-host <url> to `agt setup` instead \u2014 the setup command does NOT silently default to prod (ENG-5831).";
6072
6070
  function getHost() {
6073
6071
  const envHost = process.env["AGT_HOST"]?.trim();
6074
- return envHost ? envHost : DEFAULT_AGT_HOST;
6072
+ if (!envHost) {
6073
+ throw new Error(AGT_HOST_UNSET_MESSAGE);
6074
+ }
6075
+ return envHost;
6075
6076
  }
6076
- var AGT_HOST = getHost();
6077
6077
  function requireHost() {
6078
6078
  return getHost();
6079
6079
  }
@@ -6250,20 +6250,23 @@ async function getHostId() {
6250
6250
  return hostId;
6251
6251
  }
6252
6252
 
6253
- // src/lib/globals.ts
6254
- import chalk from "chalk";
6255
- var _jsonMode = false;
6256
- function setJsonMode(enabled) {
6257
- _jsonMode = enabled;
6258
- if (enabled) {
6259
- chalk.level = 0;
6260
- }
6261
- }
6262
- function isJsonMode() {
6263
- return _jsonMode;
6253
+ // ../../packages/core/dist/provisioning/provisioner.js
6254
+ import { createHash } from "crypto";
6255
+ function sha256(content) {
6256
+ return createHash("sha256").update(content, "utf8").digest("hex");
6264
6257
  }
6265
- function jsonOutput(data) {
6266
- console.log(JSON.stringify(data, null, 2));
6258
+ function provision(input, frameworkId = "openclaw") {
6259
+ const adapter = getFramework(frameworkId);
6260
+ const artifacts = adapter.buildArtifacts(input);
6261
+ const charterHash = sha256(input.charterContent);
6262
+ const toolsHash = sha256(input.toolsContent);
6263
+ const teamDir = `.augmented/${input.agent.code_name}`;
6264
+ return {
6265
+ teamDir,
6266
+ artifacts,
6267
+ charterHash,
6268
+ toolsHash
6269
+ };
6267
6270
  }
6268
6271
 
6269
6272
  // src/commands/manager.ts
@@ -6879,35 +6882,35 @@ async function managerUninstallSystemUnitCommand() {
6879
6882
  }
6880
6883
 
6881
6884
  export {
6882
- provision,
6883
- extractCommandNotFound,
6884
6885
  getIntegration,
6886
+ extractCommandNotFound,
6885
6887
  INTEGRATIONS_SECTION_START,
6886
6888
  INTEGRATIONS_SECTION_END,
6887
6889
  estimateActiveTasksTokens,
6888
6890
  provisionStopHook,
6889
6891
  provisionIsolationHook,
6890
6892
  provisionOrientHook,
6893
+ setJsonMode,
6894
+ isJsonMode,
6895
+ jsonOutput,
6891
6896
  getApiKey,
6892
6897
  getActiveTeam,
6893
6898
  setActiveTeam,
6894
- DEFAULT_AGT_HOST,
6899
+ PROD_AGT_HOST,
6895
6900
  getHost,
6896
6901
  requireHost,
6897
6902
  exchangeApiKey,
6898
6903
  ApiError,
6899
6904
  api,
6900
6905
  getHostId,
6901
- getManagerPaths,
6902
- startWatchdog,
6903
6906
  success,
6904
6907
  error,
6905
6908
  warn,
6906
6909
  info,
6907
6910
  table,
6908
- setJsonMode,
6909
- isJsonMode,
6910
- jsonOutput,
6911
+ provision,
6912
+ getManagerPaths,
6913
+ startWatchdog,
6911
6914
  managerStartCommand,
6912
6915
  SUPERVISOR_RESTART_EXIT_CODE,
6913
6916
  managerStopCommand,
@@ -6917,4 +6920,4 @@ export {
6917
6920
  managerInstallSystemUnitCommand,
6918
6921
  managerUninstallSystemUnitCommand
6919
6922
  };
6920
- //# sourceMappingURL=chunk-DFXRKR76.js.map
6923
+ //# sourceMappingURL=chunk-HKZFMGYE.js.map