@integrity-labs/agt-cli 0.28.1286 → 0.28.1287
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/{api-client-XQRYQJKJ.js → api-client-GHNWOERY.js} +2 -2
- package/dist/bin/agt.js +4 -4
- package/dist/{chunk-3R7OXS5I.js → chunk-3EUTIUAI.js} +2 -2
- package/dist/{chunk-TTEBS4AE.js → chunk-QMHI734Y.js} +2 -2
- package/dist/lib/manager-worker.js +4 -4
- package/dist/mcp/direct-chat-channel.js +1 -0
- package/dist/mcp/index.js +80 -25
- package/dist/mcp/slack-channel.js +1 -0
- package/dist/mcp/telegram-channel.js +1 -0
- package/package.json +1 -1
- /package/dist/{api-client-XQRYQJKJ.js.map → api-client-GHNWOERY.js.map} +0 -0
- /package/dist/{chunk-3R7OXS5I.js.map → chunk-3EUTIUAI.js.map} +0 -0
- /package/dist/{chunk-TTEBS4AE.js.map → chunk-QMHI734Y.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
mintRotatedHostKey,
|
|
16
16
|
probeHostKey,
|
|
17
17
|
setConfigHash
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3EUTIUAI.js";
|
|
19
19
|
import "./chunk-DITI25ZO.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
probeHostKey,
|
|
37
37
|
setConfigHash
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=api-client-
|
|
39
|
+
//# sourceMappingURL=api-client-GHNWOERY.js.map
|
package/dist/bin/agt.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
success,
|
|
32
32
|
table,
|
|
33
33
|
warn
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-QMHI734Y.js";
|
|
35
35
|
import {
|
|
36
36
|
ApiError,
|
|
37
37
|
PROD_AGT_HOST,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
getHost,
|
|
43
43
|
getHostId,
|
|
44
44
|
setActiveTeam
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-3EUTIUAI.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir,
|
|
48
48
|
isSessionResumeDisabled,
|
|
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5207
5207
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5208
5208
|
import chalk17 from "chalk";
|
|
5209
5209
|
import ora15 from "ora";
|
|
5210
|
-
var cliVersion = true ? "0.28.
|
|
5210
|
+
var cliVersion = true ? "0.28.1287" : "dev";
|
|
5211
5211
|
async function fetchLatestVersion() {
|
|
5212
5212
|
const host2 = getHost();
|
|
5213
5213
|
if (!host2) return null;
|
|
@@ -6467,7 +6467,7 @@ function handleError(err) {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
|
|
6469
6469
|
// src/bin/agt.ts
|
|
6470
|
-
var cliVersion2 = true ? "0.28.
|
|
6470
|
+
var cliVersion2 = true ? "0.28.1287" : "dev";
|
|
6471
6471
|
var program = new Command();
|
|
6472
6472
|
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");
|
|
6473
6473
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/lib/api-client.ts
|
|
106
|
-
var agtCliVersion = true ? "0.28.
|
|
106
|
+
var agtCliVersion = true ? "0.28.1287" : "dev";
|
|
107
107
|
var lastConfigHash = null;
|
|
108
108
|
function setConfigHash(hash) {
|
|
109
109
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
api,
|
|
469
469
|
getHostId
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-3EUTIUAI.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3EUTIUAI.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -13853,4 +13853,4 @@ export {
|
|
|
13853
13853
|
managerInstallSystemUnitCommand,
|
|
13854
13854
|
managerUninstallSystemUnitCommand
|
|
13855
13855
|
};
|
|
13856
|
-
//# sourceMappingURL=chunk-
|
|
13856
|
+
//# sourceMappingURL=chunk-QMHI734Y.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tripClass,
|
|
71
71
|
writeEtcEnvironment,
|
|
72
72
|
writeProfileDScript
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-QMHI734Y.js";
|
|
74
74
|
import {
|
|
75
75
|
ApiError,
|
|
76
76
|
adoptHostKeyInProcess,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
probeHostKey,
|
|
89
89
|
requireHost,
|
|
90
90
|
setConfigHash
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-3EUTIUAI.js";
|
|
92
92
|
import {
|
|
93
93
|
BLOCKED_ON_PROMPT_DECISION,
|
|
94
94
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -15444,7 +15444,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
15444
15444
|
};
|
|
15445
15445
|
}
|
|
15446
15446
|
var managerHostPost = async (path, body) => {
|
|
15447
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
15447
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-GHNWOERY.js");
|
|
15448
15448
|
try {
|
|
15449
15449
|
const json = await api2.post(path, body);
|
|
15450
15450
|
return { status: 200, json };
|
|
@@ -18380,7 +18380,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
18380
18380
|
var lastVersionCheckAt = 0;
|
|
18381
18381
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
18382
18382
|
var lastResponsivenessProbeAt = 0;
|
|
18383
|
-
var agtCliVersion = true ? "0.28.
|
|
18383
|
+
var agtCliVersion = true ? "0.28.1287" : "dev";
|
|
18384
18384
|
function resolveBrewPath(execFileSync5) {
|
|
18385
18385
|
try {
|
|
18386
18386
|
const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -55698,6 +55698,7 @@ var MAINTENANCE_GATED_TOOLS = /* @__PURE__ */ new Set([
|
|
|
55698
55698
|
"request_form",
|
|
55699
55699
|
"request_reconnect",
|
|
55700
55700
|
"request_feature",
|
|
55701
|
+
"request_support",
|
|
55701
55702
|
"request_feature_withdraw",
|
|
55702
55703
|
// ADR-0025 approval tools, registered by `approval-tools.ts` against the same
|
|
55703
55704
|
// server object, so the wrapper in index.ts covers them too.
|
package/dist/mcp/index.js
CHANGED
|
@@ -48660,6 +48660,7 @@ var MAINTENANCE_GATED_TOOLS = /* @__PURE__ */ new Set([
|
|
|
48660
48660
|
"request_form",
|
|
48661
48661
|
"request_reconnect",
|
|
48662
48662
|
"request_feature",
|
|
48663
|
+
"request_support",
|
|
48663
48664
|
"request_feature_withdraw",
|
|
48664
48665
|
// ADR-0025 approval tools, registered by `approval-tools.ts` against the same
|
|
48665
48666
|
// server object, so the wrapper in index.ts covers them too.
|
|
@@ -49983,14 +49984,25 @@ function isInContainer(env2 = process.env) {
|
|
|
49983
49984
|
}
|
|
49984
49985
|
|
|
49985
49986
|
// src/feature-request.ts
|
|
49986
|
-
var
|
|
49987
|
-
|
|
49988
|
-
|
|
49989
|
-
|
|
49990
|
-
|
|
49991
|
-
|
|
49992
|
-
|
|
49993
|
-
|
|
49987
|
+
var NEW_CAPABILITY_TYPES = ["integration", "tool", "channel", "capability", "other"];
|
|
49988
|
+
var SUPPORT_REQUEST_FEATURE_TYPE = "bug";
|
|
49989
|
+
var SUPPORT_CHANNEL_LINE = "This is how you reach Ninjafy support: never email Ninjafy staff or ask the customer for a support address.";
|
|
49990
|
+
var REQUESTER_LINE = "Say who it is for: pass requester_email of the person who asked (only with their consent) or their requester_user_id, so Ninjafy can reply to them; if there is no one to reply to, pass no_requester_reason instead. One of the two is required.";
|
|
49991
|
+
var REQUEST_FEATURE_DESCRIPTION = 'Ask Ninjafy (formerly Augmented Team, the same platform) for a NEW capability you do not have and cannot set up yourself: most often a new third-party integration (feature_type="integration", service name in provider), or a new tool, channel or product capability. If something you already have is broken or erroring, use request_support instead. ' + SUPPORT_CHANNEL_LINE + " " + REQUESTER_LINE;
|
|
49992
|
+
var REQUEST_SUPPORT_DESCRIPTION = "Tell Ninjafy (formerly Augmented Team) support that something you already have is not working: an integration or tool that keeps erroring (e.g. a 403 scope error after a reconnect), a platform fault, or behaviour that is plainly wrong. For a NEW capability use request_feature instead; for expired credentials call request_reconnect first. " + SUPPORT_CHANNEL_LINE + " Check request_feature_list first: support requests show there too. " + REQUESTER_LINE;
|
|
49993
|
+
function intakeRequestBody(agentCodeName, featureType, params) {
|
|
49994
|
+
return {
|
|
49995
|
+
agent_code_name: agentCodeName,
|
|
49996
|
+
feature_type: featureType,
|
|
49997
|
+
title: params.title,
|
|
49998
|
+
description: params.description,
|
|
49999
|
+
...params.provider ? { provider: params.provider } : {},
|
|
50000
|
+
...params.requester_email ? { requester_email: params.requester_email } : {},
|
|
50001
|
+
...params.requester_user_id ? { requester_user_id: params.requester_user_id } : {},
|
|
50002
|
+
...params.no_requester_reason ? { no_requester_reason: params.no_requester_reason } : {},
|
|
50003
|
+
...params.acknowledged_catalogue_alternative ? { acknowledged_catalogue_alternative: true } : {}
|
|
50004
|
+
};
|
|
50005
|
+
}
|
|
49994
50006
|
var NO_REQUESTER_REASONS = [
|
|
49995
50007
|
"agent_initiated",
|
|
49996
50008
|
"requester_declined_contact",
|
|
@@ -50008,10 +50020,11 @@ function requesterChoiceError(args) {
|
|
|
50008
50020
|
}
|
|
50009
50021
|
return null;
|
|
50010
50022
|
}
|
|
50011
|
-
function describeFeatureRequestResult(resp) {
|
|
50023
|
+
function describeFeatureRequestResult(resp, kind = "feature") {
|
|
50024
|
+
const noun = kind === "support" ? "support request" : "feature request";
|
|
50012
50025
|
if (resp.status === "created") {
|
|
50013
50026
|
return {
|
|
50014
|
-
text:
|
|
50027
|
+
text: `${noun.charAt(0).toUpperCase()}${noun.slice(1)} submitted to Ninjafy support.`,
|
|
50015
50028
|
isError: false
|
|
50016
50029
|
};
|
|
50017
50030
|
}
|
|
@@ -50022,7 +50035,7 @@ function describeFeatureRequestResult(resp) {
|
|
|
50022
50035
|
};
|
|
50023
50036
|
}
|
|
50024
50037
|
return {
|
|
50025
|
-
text: `Could not submit the
|
|
50038
|
+
text: `Could not submit the ${noun}${resp.message ? `: ${resp.message}` : ""}. Tell your operator what you need and don't keep retrying.`,
|
|
50026
50039
|
isError: true
|
|
50027
50040
|
};
|
|
50028
50041
|
}
|
|
@@ -52249,10 +52262,10 @@ server.tool(
|
|
|
52249
52262
|
);
|
|
52250
52263
|
server.tool(
|
|
52251
52264
|
"request_feature",
|
|
52252
|
-
|
|
52265
|
+
REQUEST_FEATURE_DESCRIPTION,
|
|
52253
52266
|
{
|
|
52254
|
-
feature_type: external_exports.enum(
|
|
52255
|
-
'What kind of request this is. Use "integration" to ask for a new third-party integration/toolkit; otherwise: tool, channel, capability,
|
|
52267
|
+
feature_type: external_exports.enum(NEW_CAPABILITY_TYPES).describe(
|
|
52268
|
+
'What kind of request this is. Use "integration" to ask for a new third-party integration/toolkit; otherwise: tool, channel, capability, or other. Something broken is not a feature: use request_support.'
|
|
52256
52269
|
),
|
|
52257
52270
|
title: external_exports.string().min(1).max(200).describe('Short, specific summary of the request (e.g. "Add Notion integration").'),
|
|
52258
52271
|
description: external_exports.string().min(1).max(4e3).describe(
|
|
@@ -52285,17 +52298,10 @@ server.tool(
|
|
|
52285
52298
|
}
|
|
52286
52299
|
let resp;
|
|
52287
52300
|
try {
|
|
52288
|
-
resp = await apiPost(
|
|
52289
|
-
|
|
52290
|
-
|
|
52291
|
-
|
|
52292
|
-
description: params.description,
|
|
52293
|
-
...params.provider ? { provider: params.provider } : {},
|
|
52294
|
-
...params.requester_email ? { requester_email: params.requester_email } : {},
|
|
52295
|
-
...params.requester_user_id ? { requester_user_id: params.requester_user_id } : {},
|
|
52296
|
-
...params.no_requester_reason ? { no_requester_reason: params.no_requester_reason } : {},
|
|
52297
|
-
...params.acknowledged_catalogue_alternative ? { acknowledged_catalogue_alternative: true } : {}
|
|
52298
|
-
});
|
|
52301
|
+
resp = await apiPost(
|
|
52302
|
+
"/host/request-feature",
|
|
52303
|
+
intakeRequestBody(AGT_AGENT_CODE_NAME, params.feature_type, params)
|
|
52304
|
+
);
|
|
52299
52305
|
} catch (err) {
|
|
52300
52306
|
return {
|
|
52301
52307
|
content: [
|
|
@@ -52311,6 +52317,52 @@ server.tool(
|
|
|
52311
52317
|
return { content: [{ type: "text", text }], ...isError ? { isError: true } : {} };
|
|
52312
52318
|
}
|
|
52313
52319
|
);
|
|
52320
|
+
server.tool(
|
|
52321
|
+
"request_support",
|
|
52322
|
+
REQUEST_SUPPORT_DESCRIPTION,
|
|
52323
|
+
{
|
|
52324
|
+
title: external_exports.string().min(1).max(200).describe('Short, specific summary of what is broken (e.g. "Zoho Desk KB calls return 403 SCOPE_MISMATCH").'),
|
|
52325
|
+
description: external_exports.string().min(1).max(4e3).describe(
|
|
52326
|
+
"What is failing and since when: the tool or integration, the exact error, what you were trying to do, and what you or your operator already tried."
|
|
52327
|
+
),
|
|
52328
|
+
requester_email: external_exports.string().email().max(320).optional().describe(
|
|
52329
|
+
"The email address of the person affected, so Ninjafy can email them when it is resolved. Only an address they gave you and agreed to be contacted at; never guess one."
|
|
52330
|
+
),
|
|
52331
|
+
requester_user_id: external_exports.string().uuid().optional().describe("Ninjafy user id (UUID) of the person affected, when you have an id but not an address."),
|
|
52332
|
+
no_requester_reason: external_exports.enum(NO_REQUESTER_REASONS).optional().describe(NO_REQUESTER_REASON_DESCRIPTION)
|
|
52333
|
+
},
|
|
52334
|
+
async (params) => {
|
|
52335
|
+
const choiceError = requesterChoiceError(params);
|
|
52336
|
+
if (choiceError) {
|
|
52337
|
+
return { content: [{ type: "text", text: choiceError }], isError: true };
|
|
52338
|
+
}
|
|
52339
|
+
if (!AGT_AGENT_CODE_NAME) {
|
|
52340
|
+
return {
|
|
52341
|
+
content: [{ type: "text", text: "Error: AGT_AGENT_CODE_NAME not configured." }],
|
|
52342
|
+
isError: true
|
|
52343
|
+
};
|
|
52344
|
+
}
|
|
52345
|
+
let resp;
|
|
52346
|
+
try {
|
|
52347
|
+
resp = await apiPost(
|
|
52348
|
+
"/host/request-feature",
|
|
52349
|
+
intakeRequestBody(AGT_AGENT_CODE_NAME, SUPPORT_REQUEST_FEATURE_TYPE, params)
|
|
52350
|
+
);
|
|
52351
|
+
} catch (err) {
|
|
52352
|
+
return {
|
|
52353
|
+
content: [
|
|
52354
|
+
{
|
|
52355
|
+
type: "text",
|
|
52356
|
+
text: `Could not reach Ninjafy support (${err instanceof Error ? err.message : String(err)}). Tell your operator what is broken; do not email Ninjafy staff.`
|
|
52357
|
+
}
|
|
52358
|
+
],
|
|
52359
|
+
isError: true
|
|
52360
|
+
};
|
|
52361
|
+
}
|
|
52362
|
+
const { text, isError } = describeFeatureRequestResult(resp, "support");
|
|
52363
|
+
return { content: [{ type: "text", text }], ...isError ? { isError: true } : {} };
|
|
52364
|
+
}
|
|
52365
|
+
);
|
|
52314
52366
|
server.tool(
|
|
52315
52367
|
"request_feature_list",
|
|
52316
52368
|
'List the feature requests your TEAM has already sent to Ninjafy support with request_feature, newest first. Call this BEFORE request_feature so you do not file a duplicate: each entry shows the full request body as it was submitted (never a preview), its current state (open, in_progress, resolved, closed, or unknown), and whether you or a teammate filed it. "closed" means it was declined or merged into another request; "unknown" means the status could not be read, not that it is open. Requests filed before this tool existed show their title but no body. Support ticket numbers and links are internal and are never shown. A request whose record failed to save when it was filed cannot appear here, so an empty list is strong evidence, not proof, that nothing was asked.',
|
|
@@ -54459,6 +54511,9 @@ var LOCAL_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
|
54459
54511
|
// this name, so the forwarding-skip is a no-op; listed here to keep the
|
|
54460
54512
|
// lockstep guard green.
|
|
54461
54513
|
"request_feature",
|
|
54514
|
+
// ENG-12299: the problem-report sibling of request_feature (always
|
|
54515
|
+
// registered). No API tool shares this name; listed for the lockstep guard.
|
|
54516
|
+
"request_support",
|
|
54462
54517
|
// ENG-10427: the read half of request_feature (always registered). No API tool
|
|
54463
54518
|
// shares this name; listed here to keep the lockstep guard green.
|
|
54464
54519
|
"request_feature_list",
|
|
@@ -31086,6 +31086,7 @@ var MAINTENANCE_GATED_TOOLS = /* @__PURE__ */ new Set([
|
|
|
31086
31086
|
"request_form",
|
|
31087
31087
|
"request_reconnect",
|
|
31088
31088
|
"request_feature",
|
|
31089
|
+
"request_support",
|
|
31089
31090
|
"request_feature_withdraw",
|
|
31090
31091
|
// ADR-0025 approval tools, registered by `approval-tools.ts` against the same
|
|
31091
31092
|
// server object, so the wrapper in index.ts covers them too.
|
|
@@ -31563,6 +31563,7 @@ var MAINTENANCE_GATED_TOOLS = /* @__PURE__ */ new Set([
|
|
|
31563
31563
|
"request_form",
|
|
31564
31564
|
"request_reconnect",
|
|
31565
31565
|
"request_feature",
|
|
31566
|
+
"request_support",
|
|
31566
31567
|
"request_feature_withdraw",
|
|
31567
31568
|
// ADR-0025 approval tools, registered by `approval-tools.ts` against the same
|
|
31568
31569
|
// server object, so the wrapper in index.ts covers them too.
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|