@integrity-labs/agt-cli 0.27.12 → 0.27.13

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
@@ -27,7 +27,7 @@ import {
27
27
  success,
28
28
  table,
29
29
  warn
30
- } from "../chunk-DFXRKR76.js";
30
+ } from "../chunk-Q4MWFZ5Y.js";
31
31
  import {
32
32
  CHANNEL_REGISTRY,
33
33
  DEPLOYMENT_TEMPLATES,
@@ -53,7 +53,7 @@ import {
53
53
  renderTemplate,
54
54
  resolveChannels,
55
55
  serializeManifestForSlackCli
56
- } from "../chunk-TOMBC7IE.js";
56
+ } from "../chunk-YSBGIXJG.js";
57
57
 
58
58
  // src/bin/agt.ts
59
59
  import { join as join15 } from "path";
@@ -4630,7 +4630,7 @@ import { execFileSync, execSync } from "child_process";
4630
4630
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4631
4631
  import chalk18 from "chalk";
4632
4632
  import ora16 from "ora";
4633
- var cliVersion = true ? "0.27.12" : "dev";
4633
+ var cliVersion = true ? "0.27.13" : "dev";
4634
4634
  async function fetchLatestVersion() {
4635
4635
  const host2 = getHost();
4636
4636
  if (!host2) return null;
@@ -5162,7 +5162,7 @@ function handleError(err) {
5162
5162
  }
5163
5163
 
5164
5164
  // src/bin/agt.ts
5165
- var cliVersion2 = true ? "0.27.12" : "dev";
5165
+ var cliVersion2 = true ? "0.27.13" : "dev";
5166
5166
  var program = new Command();
5167
5167
  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");
5168
5168
  program.hook("preAction", (thisCommand) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  claudeModelAlias,
3
3
  isClaudeFastMode
4
- } from "./chunk-TOMBC7IE.js";
4
+ } from "./chunk-YSBGIXJG.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-GN4XPQWJ.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-YSBGIXJG.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";
@@ -6250,20 +6247,23 @@ async function getHostId() {
6250
6247
  return hostId;
6251
6248
  }
6252
6249
 
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;
6250
+ // ../../packages/core/dist/provisioning/provisioner.js
6251
+ import { createHash } from "crypto";
6252
+ function sha256(content) {
6253
+ return createHash("sha256").update(content, "utf8").digest("hex");
6264
6254
  }
6265
- function jsonOutput(data) {
6266
- console.log(JSON.stringify(data, null, 2));
6255
+ function provision(input, frameworkId = "openclaw") {
6256
+ const adapter = getFramework(frameworkId);
6257
+ const artifacts = adapter.buildArtifacts(input);
6258
+ const charterHash = sha256(input.charterContent);
6259
+ const toolsHash = sha256(input.toolsContent);
6260
+ const teamDir = `.augmented/${input.agent.code_name}`;
6261
+ return {
6262
+ teamDir,
6263
+ artifacts,
6264
+ charterHash,
6265
+ toolsHash
6266
+ };
6267
6267
  }
6268
6268
 
6269
6269
  // src/commands/manager.ts
@@ -6879,15 +6879,17 @@ async function managerUninstallSystemUnitCommand() {
6879
6879
  }
6880
6880
 
6881
6881
  export {
6882
- provision,
6883
- extractCommandNotFound,
6884
6882
  getIntegration,
6883
+ extractCommandNotFound,
6885
6884
  INTEGRATIONS_SECTION_START,
6886
6885
  INTEGRATIONS_SECTION_END,
6887
6886
  estimateActiveTasksTokens,
6888
6887
  provisionStopHook,
6889
6888
  provisionIsolationHook,
6890
6889
  provisionOrientHook,
6890
+ setJsonMode,
6891
+ isJsonMode,
6892
+ jsonOutput,
6891
6893
  getApiKey,
6892
6894
  getActiveTeam,
6893
6895
  setActiveTeam,
@@ -6898,16 +6900,14 @@ export {
6898
6900
  ApiError,
6899
6901
  api,
6900
6902
  getHostId,
6901
- getManagerPaths,
6902
- startWatchdog,
6903
6903
  success,
6904
6904
  error,
6905
6905
  warn,
6906
6906
  info,
6907
6907
  table,
6908
- setJsonMode,
6909
- isJsonMode,
6910
- jsonOutput,
6908
+ provision,
6909
+ getManagerPaths,
6910
+ startWatchdog,
6911
6911
  managerStartCommand,
6912
6912
  SUPERVISOR_RESTART_EXIT_CODE,
6913
6913
  managerStopCommand,
@@ -6917,4 +6917,4 @@ export {
6917
6917
  managerInstallSystemUnitCommand,
6918
6918
  managerUninstallSystemUnitCommand
6919
6919
  };
6920
- //# sourceMappingURL=chunk-DFXRKR76.js.map
6920
+ //# sourceMappingURL=chunk-Q4MWFZ5Y.js.map