@integrity-labs/agt-cli 0.28.1233 → 0.28.1234
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 +6 -6
- package/dist/{chunk-HI4JD2K2.js → chunk-74FVXAHG.js} +3 -3
- package/dist/{chunk-4FLMCHQB.js → chunk-AZ2QBMCL.js} +2 -2
- package/dist/{chunk-XXIALNTU.js → chunk-NPW4S55O.js} +83 -3
- package/dist/{chunk-XXIALNTU.js.map → chunk-NPW4S55O.js.map} +1 -1
- package/dist/{chunk-DQEUE2X2.js → chunk-PV2LPKJ2.js} +2 -2
- package/dist/{chunk-VGEMWYW3.js → chunk-UWJTR4AS.js} +5 -5
- package/dist/{claude-code-updater-UTFTOX3B.js → claude-code-updater-6GP4LY3Y.js} +3 -3
- package/dist/{claude-pair-runtime-DI43DJ4P.js → claude-pair-runtime-2QA23TMP.js} +3 -3
- package/dist/lib/manager-worker.js +19 -19
- package/dist/mcp/direct-chat-channel.js +36 -2
- package/dist/mcp/index.js +36 -2
- package/dist/mcp/origami.js +36 -2
- package/dist/mcp/slack-channel.js +36 -2
- package/dist/mcp/telegram-channel.js +36 -2
- package/dist/{persistent-session-S57KHU34.js → persistent-session-YS5LY7YD.js} +4 -4
- package/dist/{responsiveness-probe-TFPKYDPB.js → responsiveness-probe-C3SSBQCL.js} +4 -4
- package/dist/{session-auth-dead-EYJAWW46.js → session-auth-dead-3GT7MM6J.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-HI4JD2K2.js.map → chunk-74FVXAHG.js.map} +0 -0
- /package/dist/{chunk-4FLMCHQB.js.map → chunk-AZ2QBMCL.js.map} +0 -0
- /package/dist/{chunk-DQEUE2X2.js.map → chunk-PV2LPKJ2.js.map} +0 -0
- /package/dist/{chunk-VGEMWYW3.js.map → chunk-UWJTR4AS.js.map} +0 -0
- /package/dist/{claude-code-updater-UTFTOX3B.js.map → claude-code-updater-6GP4LY3Y.js.map} +0 -0
- /package/dist/{claude-pair-runtime-DI43DJ4P.js.map → claude-pair-runtime-2QA23TMP.js.map} +0 -0
- /package/dist/{persistent-session-S57KHU34.js.map → persistent-session-YS5LY7YD.js.map} +0 -0
- /package/dist/{responsiveness-probe-TFPKYDPB.js.map → responsiveness-probe-C3SSBQCL.js.map} +0 -0
- /package/dist/{session-auth-dead-EYJAWW46.js.map → session-auth-dead-3GT7MM6J.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,17 +40,17 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-UWJTR4AS.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-74FVXAHG.js";
|
|
49
49
|
import {
|
|
50
50
|
markDailySessionSpawn,
|
|
51
51
|
sessionFileExists,
|
|
52
52
|
sessionTranscriptDir
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-AZ2QBMCL.js";
|
|
54
54
|
import "../chunk-HYQ7VOC3.js";
|
|
55
55
|
import "../chunk-6HBXEJHO.js";
|
|
56
56
|
import "../chunk-XWVM4KPK.js";
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
requiredMcpWildcard,
|
|
84
84
|
resolveChannels,
|
|
85
85
|
serializeManifestForSlackCli
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-NPW4S55O.js";
|
|
87
87
|
import "../chunk-AIUIMEUS.js";
|
|
88
88
|
import "../chunk-DGUM43GV.js";
|
|
89
89
|
|
|
@@ -5205,7 +5205,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5205
5205
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5206
5206
|
import chalk17 from "chalk";
|
|
5207
5207
|
import ora15 from "ora";
|
|
5208
|
-
var cliVersion = true ? "0.28.
|
|
5208
|
+
var cliVersion = true ? "0.28.1234" : "dev";
|
|
5209
5209
|
async function fetchLatestVersion() {
|
|
5210
5210
|
const host2 = getHost();
|
|
5211
5211
|
if (!host2) return null;
|
|
@@ -6465,7 +6465,7 @@ function handleError(err) {
|
|
|
6465
6465
|
}
|
|
6466
6466
|
|
|
6467
6467
|
// src/bin/agt.ts
|
|
6468
|
-
var cliVersion2 = true ? "0.28.
|
|
6468
|
+
var cliVersion2 = true ? "0.28.1234" : "dev";
|
|
6469
6469
|
var program = new Command();
|
|
6470
6470
|
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");
|
|
6471
6471
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rotateDailySession,
|
|
5
5
|
sessionFileExists,
|
|
6
6
|
todayLocalIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AZ2QBMCL.js";
|
|
8
8
|
import {
|
|
9
9
|
classifyUnanswerablePane,
|
|
10
10
|
customApiKeyDialogKeys,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
remoteMcpConnectionEnvInfix,
|
|
52
52
|
remoteMcpConnectionLabel,
|
|
53
53
|
remoteMcpConnectionScopedEnvVar
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-NPW4S55O.js";
|
|
55
55
|
import {
|
|
56
56
|
CLAUDE_CONFIG_DIR_ENV,
|
|
57
57
|
approveApiKeyInClaudeConfig,
|
|
@@ -6196,4 +6196,4 @@ export {
|
|
|
6196
6196
|
stopAllSessionsAndWait,
|
|
6197
6197
|
getProjectDir
|
|
6198
6198
|
};
|
|
6199
|
-
//# sourceMappingURL=chunk-
|
|
6199
|
+
//# sourceMappingURL=chunk-74FVXAHG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NPW4S55O.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
peekPreviousSession,
|
|
245
245
|
readDailySessionPin
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-AZ2QBMCL.js.map
|
|
@@ -7006,6 +7006,25 @@ var FLAG_REGISTRY = [
|
|
|
7006
7006
|
flagType: "boolean",
|
|
7007
7007
|
defaultValue: false
|
|
7008
7008
|
},
|
|
7009
|
+
{
|
|
7010
|
+
key: "kanban-waiting-person-notify",
|
|
7011
|
+
description: `Notify a human teammate, via their preferred channel (Slack DM, else email fallback), when an agent PARKS a kanban card on them - "I still own this and cannot finish until you act" (ENG-8291 / ENG-11974). This is a DIFFERENT ask from human-task-assignment-notify, which covers "this is yours now", where ownership MOVES to the person. Until ENG-11974 one flag gated both, because the park path composes the assignment path's delivery; an org that silenced assignment pings therefore also lost every blocked-on-you message, which is the failure my-waiting.ts measured at a PR sitting 25.5h on a single merge tap. Off = the card is parked silently (it still appears in the recipient's "Awaiting you" queue on My Tasks). Note kanban-waiting-status is a separate gate and governs whether a park may be EMITTED at all; this one governs whether the human is TOLD.`,
|
|
7012
|
+
flagType: "boolean",
|
|
7013
|
+
// Declared safe value is `false`, matching its assignment sibling: fail-closed
|
|
7014
|
+
// is the right direction for a rail that messages a human.
|
|
7015
|
+
//
|
|
7016
|
+
// This default is NOT the deploy-time behaviour, and reading it as such is the
|
|
7017
|
+
// trap. The accompanying migration MIRRORS human-task-assignment-notify onto
|
|
7018
|
+
// this key - whatever that flag's central value is, plus every one of its
|
|
7019
|
+
// overrides at every grain - so no org's effective behaviour changes when
|
|
7020
|
+
// ENG-11974 ships. It deliberately does NOT seed a literal `true`: on a stage
|
|
7021
|
+
// where the old flag has no row, the old gate resolves to `false` and nobody
|
|
7022
|
+
// is being messaged, so a literal `true` would ARM a rail that DMs and emails
|
|
7023
|
+
// real humans on a fleet that never had one. A registry default
|
|
7024
|
+
// renders identically to a measurement - to learn whether this is on for an
|
|
7025
|
+
// org, read feature_flags.value and feature_flag_overrides, never this line.
|
|
7026
|
+
defaultValue: false
|
|
7027
|
+
},
|
|
7009
7028
|
{
|
|
7010
7029
|
key: "resume-reconciler",
|
|
7011
7030
|
description: "Health-gated safe auto-resume for circuit-breaker pauses (ENG-6383, epic ENG-6333). When on, the manager clears a trip only when the dependency has genuinely recovered (status active + MCP present + connectivity ok \u2265 hysteresis), replacing the blind ENG-6088 quiet-timer; when off, the blind timer still governs. Boolean gate; ships dark.",
|
|
@@ -9616,6 +9635,16 @@ var integration_metadata_v1_default = {
|
|
|
9616
9635
|
enum: ["basic_username", "basic_pair", "raw"],
|
|
9617
9636
|
description: "How the credential is encoded into Authorization (ENG-10524). `basic_username` sends it as the HTTP Basic username with an empty password (`Authorization: Basic base64(<credential>:)`), Sportsyear's API-key form. `basic_pair` splits the credential on its first `:` and sends `Authorization: Basic base64(<username>:<password>)`, Projectworks' API-account form (CS-1980). `raw` sends the credential itself as the header value with no scheme word (`Authorization: <credential>`), AppsFlyer OneLink's form (CS-1918). Omit for `<auth_scheme> <credential>`. Must not be combined with `auth_scheme`."
|
|
9618
9637
|
},
|
|
9638
|
+
token_exchange: {
|
|
9639
|
+
type: "object",
|
|
9640
|
+
description: "OAuth 2.0 client-credentials exchange (CS-1958). The stored credential is `<client id>:<client secret>`, exchanged at token_url for a short-lived bearer that the broker holds and sends as Bearer.",
|
|
9641
|
+
additionalProperties: false,
|
|
9642
|
+
required: ["token_url", "scope"],
|
|
9643
|
+
properties: {
|
|
9644
|
+
token_url: { type: "string", pattern: "^https://[^\\s]+$" },
|
|
9645
|
+
scope: { type: "string", minLength: 1 }
|
|
9646
|
+
}
|
|
9647
|
+
},
|
|
9619
9648
|
runtime_scopes: {
|
|
9620
9649
|
type: "object",
|
|
9621
9650
|
description: "Per-runtime-scope support map. Each slot is either null (the integration does not support installs at this scope) or an object describing how token resolution and auth work for that scope.",
|
|
@@ -9676,8 +9705,13 @@ var integration_metadata_v1_default = {
|
|
|
9676
9705
|
anyOf: [{ required: ["base_url"] }, { required: ["base_url_template"] }]
|
|
9677
9706
|
},
|
|
9678
9707
|
not: {
|
|
9679
|
-
description: "auth_scheme and auth_encoding are mutually exclusive (ENG-10524). The templater refuses the combination on every call, so catalog validation refuses it first.",
|
|
9680
|
-
|
|
9708
|
+
description: "auth_scheme and auth_encoding are mutually exclusive (ENG-10524). The templater refuses the combination on every call, so catalog validation refuses it first. token_exchange excludes both (CS-1958): the exchanged token must go out as Bearer, and either field would send it in a form the vendor rejects. It also excludes config_arg_defaults: those resolve the token before the approval gate, and an exchange there would post the secret for a call that may then be denied.",
|
|
9709
|
+
anyOf: [
|
|
9710
|
+
{ required: ["auth_scheme", "auth_encoding"] },
|
|
9711
|
+
{ required: ["token_exchange", "auth_scheme"] },
|
|
9712
|
+
{ required: ["token_exchange", "auth_encoding"] },
|
|
9713
|
+
{ required: ["token_exchange", "config_arg_defaults"] }
|
|
9714
|
+
]
|
|
9681
9715
|
},
|
|
9682
9716
|
$defs: {
|
|
9683
9717
|
scopeConfig: {
|
|
@@ -13783,6 +13817,50 @@ async function probeProjectworks(creds, fetchImpl) {
|
|
|
13783
13817
|
};
|
|
13784
13818
|
}
|
|
13785
13819
|
}
|
|
13820
|
+
var CULTUREAMP_TOKEN_URL = "https://api.cultureamp.com/v1/oauth2/token";
|
|
13821
|
+
var CULTUREAMP_TOKEN_SCOPE = "target-entity:8ed17dce-9eca-4383-a9e1-54f82c362b6d:employees-read,employee-demographics-read,performance-evaluations-read";
|
|
13822
|
+
async function probeCultureAmp(creds, fetchImpl) {
|
|
13823
|
+
const pair = creds.api_key ?? creds.access_token;
|
|
13824
|
+
if (!pair)
|
|
13825
|
+
return { status: "down", message: "No Culture Amp credential present" };
|
|
13826
|
+
const raw = String(pair);
|
|
13827
|
+
const colon = raw.indexOf(":");
|
|
13828
|
+
if (colon <= 0 || colon === raw.length - 1) {
|
|
13829
|
+
return { status: "down", message: "Culture Amp credential needs both the client ID and the client secret" };
|
|
13830
|
+
}
|
|
13831
|
+
try {
|
|
13832
|
+
const res = await timedFetch(fetchImpl, CULTUREAMP_TOKEN_URL, {
|
|
13833
|
+
method: "POST",
|
|
13834
|
+
headers: { "Content-Type": "application/x-www-form-urlencoded", Accept: "application/json" },
|
|
13835
|
+
body: new URLSearchParams({
|
|
13836
|
+
grant_type: "client_credentials",
|
|
13837
|
+
scope: CULTUREAMP_TOKEN_SCOPE,
|
|
13838
|
+
client_id: raw.slice(0, colon),
|
|
13839
|
+
client_secret: raw.slice(colon + 1)
|
|
13840
|
+
}).toString(),
|
|
13841
|
+
// As in the broker's exchange: a redirect would carry the secret to wherever it points.
|
|
13842
|
+
redirect: "error"
|
|
13843
|
+
});
|
|
13844
|
+
if (!res.ok) {
|
|
13845
|
+
const message = res.status === 400 || res.status === 401 ? `Culture Amp refused the credential (${res.status}) - check the client ID and secret, and that it has the three read permissions` : res.status === 429 ? rateLimitMessage("Culture Amp", res.status) : `Culture Amp token endpoint returned ${res.status}`;
|
|
13846
|
+
return res.status === 400 ? { status: "down", cause: "auth_rejected", message } : { status: statusForHttp(res.status), cause: causeForHttp(res.status), message };
|
|
13847
|
+
}
|
|
13848
|
+
let body = null;
|
|
13849
|
+
try {
|
|
13850
|
+
body = await res.json();
|
|
13851
|
+
} catch {
|
|
13852
|
+
body = null;
|
|
13853
|
+
}
|
|
13854
|
+
const token = body?.access_token;
|
|
13855
|
+
if (typeof token !== "string" || token === "") {
|
|
13856
|
+
return { status: "down", message: "Culture Amp returned 200 without a token - not a Culture Amp API response" };
|
|
13857
|
+
}
|
|
13858
|
+
return { status: "ok", message: "Connected to Culture Amp" };
|
|
13859
|
+
} catch (err) {
|
|
13860
|
+
const outcome = networkOutcome(err, raw);
|
|
13861
|
+
return outcome.message === void 0 ? outcome : { ...outcome, message: redactSecret(outcome.message, raw.slice(colon + 1)) };
|
|
13862
|
+
}
|
|
13863
|
+
}
|
|
13786
13864
|
async function probeStorrito(creds, fetchImpl, config) {
|
|
13787
13865
|
const token = creds.api_key ?? creds.access_token;
|
|
13788
13866
|
if (!token)
|
|
@@ -14006,6 +14084,8 @@ async function probeHttpProvider(definitionId, credentials, fetchImpl = fetch, c
|
|
|
14006
14084
|
return probeMitti(credentials, fetchImpl);
|
|
14007
14085
|
case "projectworks":
|
|
14008
14086
|
return probeProjectworks(credentials, fetchImpl);
|
|
14087
|
+
case "cultureamp":
|
|
14088
|
+
return probeCultureAmp(credentials, fetchImpl);
|
|
14009
14089
|
case "omnisend":
|
|
14010
14090
|
return probeOmnisend(credentials, fetchImpl);
|
|
14011
14091
|
case "flutterflow":
|
|
@@ -18246,4 +18326,4 @@ export {
|
|
|
18246
18326
|
HOST_ROTATE_KEY_CONFLICT,
|
|
18247
18327
|
shouldMintReplacementKey
|
|
18248
18328
|
};
|
|
18249
|
-
//# sourceMappingURL=chunk-
|
|
18329
|
+
//# sourceMappingURL=chunk-NPW4S55O.js.map
|