@integrity-labs/agt-cli 0.10.0 → 0.10.1
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 +8 -8
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-UWH2MMKY.js → chunk-N7TRKQMT.js} +54 -9
- package/dist/chunk-N7TRKQMT.js.map +1 -0
- package/dist/{chunk-2TSCVXHE.js → chunk-QU7FBXH3.js} +4 -2
- package/dist/chunk-QU7FBXH3.js.map +1 -0
- package/dist/{claude-scheduler-VFBZFE6U.js → claude-scheduler-7PVWQHWU.js} +2 -2
- package/dist/lib/manager-worker.js +26 -3
- package/dist/lib/manager-worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2TSCVXHE.js.map +0 -1
- package/dist/chunk-UWH2MMKY.js.map +0 -1
- /package/dist/{claude-scheduler-VFBZFE6U.js.map → claude-scheduler-7PVWQHWU.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
AGT_HOST,
|
|
4
3
|
ApiError,
|
|
5
4
|
CHANNEL_REGISTRY,
|
|
6
5
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -21,6 +20,7 @@ import {
|
|
|
21
20
|
getChannel,
|
|
22
21
|
getDefaultSlackScopes,
|
|
23
22
|
getFramework,
|
|
23
|
+
getHost,
|
|
24
24
|
getHostId,
|
|
25
25
|
getScopesByCategory,
|
|
26
26
|
getTemplate,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
resolveChannels,
|
|
33
33
|
serializeManifestForSlackCli,
|
|
34
34
|
setActiveTeam
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-N7TRKQMT.js";
|
|
36
36
|
|
|
37
37
|
// src/bin/agt.ts
|
|
38
38
|
import { join as join11 } from "path";
|
|
@@ -107,7 +107,7 @@ async function whoamiCommand() {
|
|
|
107
107
|
jsonOutput({
|
|
108
108
|
ok: true,
|
|
109
109
|
api_key_prefix: apiKey.slice(0, 8) + "****",
|
|
110
|
-
host:
|
|
110
|
+
host: getHost() ?? null,
|
|
111
111
|
host_id: exchange.hostId,
|
|
112
112
|
team: exchange.teamSlug,
|
|
113
113
|
team_id: exchange.teamId,
|
|
@@ -117,7 +117,7 @@ async function whoamiCommand() {
|
|
|
117
117
|
}
|
|
118
118
|
success("Authenticated via API key");
|
|
119
119
|
info(`API Key: ${chalk3.bold(apiKey.slice(0, 8) + "****")}`);
|
|
120
|
-
info(`Host: ${chalk3.bold(
|
|
120
|
+
info(`Host: ${chalk3.bold(getHost() ?? "not set")}`);
|
|
121
121
|
info(`Host ID: ${exchange.hostId}`);
|
|
122
122
|
info(`Team: ${chalk3.bold(exchange.teamSlug ?? exchange.teamId)}`);
|
|
123
123
|
info(`User: ${chalk3.bold(exchange.userEmail ?? "unknown")}`);
|
|
@@ -2172,7 +2172,7 @@ function getManagerStatus() {
|
|
|
2172
2172
|
// src/commands/manager.ts
|
|
2173
2173
|
function managerStartCommand(opts) {
|
|
2174
2174
|
const json = isJsonMode();
|
|
2175
|
-
if (!
|
|
2175
|
+
if (!getHost()) {
|
|
2176
2176
|
const msg = "AGT_HOST is not set. Export it to point at the Augmented API (e.g. export AGT_HOST=https://your-api.example.com)";
|
|
2177
2177
|
if (json) {
|
|
2178
2178
|
jsonOutput({ ok: false, error: msg });
|
|
@@ -3411,9 +3411,9 @@ async function acpxCloseCommand(agent2, _opts, cmd) {
|
|
|
3411
3411
|
import { execSync } from "child_process";
|
|
3412
3412
|
import chalk19 from "chalk";
|
|
3413
3413
|
import ora15 from "ora";
|
|
3414
|
-
var cliVersion = true ? "0.10.
|
|
3414
|
+
var cliVersion = true ? "0.10.1" : "dev";
|
|
3415
3415
|
async function fetchLatestVersion() {
|
|
3416
|
-
const host2 =
|
|
3416
|
+
const host2 = getHost();
|
|
3417
3417
|
if (!host2) return null;
|
|
3418
3418
|
try {
|
|
3419
3419
|
const controller = new AbortController();
|
|
@@ -3584,7 +3584,7 @@ async function checkForUpdateOnStartup() {
|
|
|
3584
3584
|
}
|
|
3585
3585
|
|
|
3586
3586
|
// src/bin/agt.ts
|
|
3587
|
-
var cliVersion2 = true ? "0.10.
|
|
3587
|
+
var cliVersion2 = true ? "0.10.1" : "dev";
|
|
3588
3588
|
var program = new Command();
|
|
3589
3589
|
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");
|
|
3590
3590
|
program.hook("preAction", (thisCommand) => {
|