@integrity-labs/agt-cli 0.28.616 → 0.28.618
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 +5 -5
- package/dist/{chunk-BGZOJTLR.js → chunk-CKCXOIN3.js} +22 -4
- package/dist/{chunk-BGZOJTLR.js.map → chunk-CKCXOIN3.js.map} +1 -1
- package/dist/{chunk-TYVQNCBU.js → chunk-P6KFZVKA.js} +36 -1
- package/dist/chunk-P6KFZVKA.js.map +1 -0
- package/dist/{chunk-6SJJM4FT.js → chunk-RXC3MTSN.js} +5 -2
- package/dist/chunk-RXC3MTSN.js.map +1 -0
- package/dist/{claude-pair-runtime-QCL2TB6N.js → claude-pair-runtime-3356FFTC.js} +2 -2
- package/dist/lib/manager-worker.js +59 -13
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +35 -0
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/origami.js +35 -0
- package/dist/mcp/slack-channel.js +35 -0
- package/dist/mcp/telegram-channel.js +35 -0
- package/dist/{persistent-session-GM3EH2ZU.js → persistent-session-AGPLISL3.js} +3 -3
- package/dist/{responsiveness-probe-VSSJC3MN.js → responsiveness-probe-ITYPPSHM.js} +3 -3
- package/dist/{session-auth-dead-KOKVXPPQ.js → session-auth-dead-Y6ABNWNM.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-6SJJM4FT.js.map +0 -1
- package/dist/chunk-TYVQNCBU.js.map +0 -1
- /package/dist/{claude-pair-runtime-QCL2TB6N.js.map → claude-pair-runtime-3356FFTC.js.map} +0 -0
- /package/dist/{persistent-session-GM3EH2ZU.js.map → persistent-session-AGPLISL3.js.map} +0 -0
- /package/dist/{responsiveness-probe-VSSJC3MN.js.map → responsiveness-probe-ITYPPSHM.js.map} +0 -0
- /package/dist/{session-auth-dead-KOKVXPPQ.js.map → session-auth-dead-Y6ABNWNM.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-CKCXOIN3.js";
|
|
44
44
|
import {
|
|
45
45
|
readDirectChatSessionState
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-RXC3MTSN.js";
|
|
47
47
|
import {
|
|
48
48
|
AnchorSessionClient,
|
|
49
49
|
CHANNEL_REGISTRY,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
requiredMcpWildcard,
|
|
74
74
|
resolveChannels,
|
|
75
75
|
serializeManifestForSlackCli
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-P6KFZVKA.js";
|
|
77
77
|
import "../chunk-XWVM4KPK.js";
|
|
78
78
|
|
|
79
79
|
// src/bin/agt.ts
|
|
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4909
4909
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4910
4910
|
import chalk18 from "chalk";
|
|
4911
4911
|
import ora16 from "ora";
|
|
4912
|
-
var cliVersion = true ? "0.28.
|
|
4912
|
+
var cliVersion = true ? "0.28.618" : "dev";
|
|
4913
4913
|
async function fetchLatestVersion() {
|
|
4914
4914
|
const host2 = getHost();
|
|
4915
4915
|
if (!host2) return null;
|
|
@@ -6089,7 +6089,7 @@ function handleError(err) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
|
|
6091
6091
|
// src/bin/agt.ts
|
|
6092
|
-
var cliVersion2 = true ? "0.28.
|
|
6092
|
+
var cliVersion2 = true ? "0.28.618" : "dev";
|
|
6093
6093
|
var program = new Command();
|
|
6094
6094
|
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");
|
|
6095
6095
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
expandTemplateVars,
|
|
8
8
|
isolationMode,
|
|
9
9
|
parseEnvIntegrations
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RXC3MTSN.js";
|
|
11
11
|
import {
|
|
12
12
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
13
13
|
INTEGRATIONS_SECTION_END,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
resolveConnectivityProbe,
|
|
49
49
|
worseConnectivityOutcome,
|
|
50
50
|
wrapScheduledTaskPrompt
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-P6KFZVKA.js";
|
|
52
52
|
import {
|
|
53
53
|
parsePsRows
|
|
54
54
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -6030,7 +6030,7 @@ function exchangeFailureKind(err) {
|
|
|
6030
6030
|
}
|
|
6031
6031
|
|
|
6032
6032
|
// src/lib/api-client.ts
|
|
6033
|
-
var agtCliVersion = true ? "0.28.
|
|
6033
|
+
var agtCliVersion = true ? "0.28.618" : "dev";
|
|
6034
6034
|
var lastConfigHash = null;
|
|
6035
6035
|
function setConfigHash(hash) {
|
|
6036
6036
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -6172,6 +6172,23 @@ async function attemptExchange(rawKey, retried) {
|
|
|
6172
6172
|
supabaseAnonKey: data.supabase_anon_key
|
|
6173
6173
|
};
|
|
6174
6174
|
}
|
|
6175
|
+
async function mintAgentKey(rawHostKey, agentId) {
|
|
6176
|
+
const res = await fetch(`${requireHost()}/host/agent-key`, {
|
|
6177
|
+
method: "POST",
|
|
6178
|
+
headers: { "Content-Type": "application/json" },
|
|
6179
|
+
body: JSON.stringify({ host_key: rawHostKey, agent_id: agentId })
|
|
6180
|
+
});
|
|
6181
|
+
if (!res.ok) {
|
|
6182
|
+
const body = await res.json().catch(() => ({}));
|
|
6183
|
+
const errorMsg = String(body["error"] ?? res.statusText);
|
|
6184
|
+
throw new Error(`Per-agent key mint failed (${res.status}) for agent=${agentId}: ${errorMsg}`);
|
|
6185
|
+
}
|
|
6186
|
+
const data = await res.json();
|
|
6187
|
+
if (!data.agent_key) {
|
|
6188
|
+
throw new Error(`Per-agent key mint returned no key for agent=${agentId}`);
|
|
6189
|
+
}
|
|
6190
|
+
return data.agent_key;
|
|
6191
|
+
}
|
|
6175
6192
|
async function resolveAuth() {
|
|
6176
6193
|
const apiKey = getApiKey();
|
|
6177
6194
|
if (!apiKey) {
|
|
@@ -9449,6 +9466,7 @@ export {
|
|
|
9449
9466
|
setConfigHash,
|
|
9450
9467
|
getCachedClaudeAuthMode,
|
|
9451
9468
|
exchangeApiKey,
|
|
9469
|
+
mintAgentKey,
|
|
9452
9470
|
ApiError,
|
|
9453
9471
|
api,
|
|
9454
9472
|
getHostId,
|
|
@@ -9505,4 +9523,4 @@ export {
|
|
|
9505
9523
|
managerInstallSystemUnitCommand,
|
|
9506
9524
|
managerUninstallSystemUnitCommand
|
|
9507
9525
|
};
|
|
9508
|
-
//# sourceMappingURL=chunk-
|
|
9526
|
+
//# sourceMappingURL=chunk-CKCXOIN3.js.map
|