@integrity-labs/agt-cli 0.27.159 → 0.27.161
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 +194 -112
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-GJVY7WKU.js → chunk-7RCGHACC.js} +2 -2
- package/dist/{chunk-5E5B4T7K.js → chunk-BC26YO7P.js} +95 -29
- package/dist/chunk-BC26YO7P.js.map +1 -0
- package/dist/{chunk-F5ZAIJHI.js → chunk-V5RAWFRT.js} +231 -26
- package/dist/{chunk-F5ZAIJHI.js.map → chunk-V5RAWFRT.js.map} +1 -1
- package/dist/{claude-pair-runtime-FTU6NTBF.js → claude-pair-runtime-G4MYOINJ.js} +2 -2
- package/dist/lib/manager-worker.js +59 -71
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-EWHFMQRC.js → persistent-session-W6V2DO3R.js} +3 -3
- package/dist/{responsiveness-probe-SWHB27QI.js → responsiveness-probe-LY2H2XR5.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-5E5B4T7K.js.map +0 -1
- /package/dist/{chunk-GJVY7WKU.js.map → chunk-7RCGHACC.js.map} +0 -0
- /package/dist/{claude-pair-runtime-FTU6NTBF.js.map → claude-pair-runtime-G4MYOINJ.js.map} +0 -0
- /package/dist/{persistent-session-EWHFMQRC.js.map → persistent-session-W6V2DO3R.js.map} +0 -0
- /package/dist/{responsiveness-probe-SWHB27QI.js.map → responsiveness-probe-LY2H2XR5.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeModelAlias,
|
|
3
3
|
isClaudeFastMode
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BC26YO7P.js";
|
|
5
5
|
import {
|
|
6
6
|
reapOrphanChannelMcps
|
|
7
7
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -1641,4 +1641,4 @@ export {
|
|
|
1641
1641
|
stopAllSessionsAndWait,
|
|
1642
1642
|
getProjectDir
|
|
1643
1643
|
};
|
|
1644
|
-
//# sourceMappingURL=chunk-
|
|
1644
|
+
//# sourceMappingURL=chunk-7RCGHACC.js.map
|
|
@@ -2336,6 +2336,94 @@ var RUN_MARKER_RE = /<!--\s*agt-run:([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4
|
|
|
2336
2336
|
// ../../packages/core/dist/loops/kanban-check.js
|
|
2337
2337
|
var KANBAN_CHECK_COMMAND = "kanban_list \u2014 pick up any actionable items if you are free.";
|
|
2338
2338
|
|
|
2339
|
+
// ../../packages/core/dist/feature-flags/registry.js
|
|
2340
|
+
var FLAG_REGISTRY = [
|
|
2341
|
+
{
|
|
2342
|
+
key: "auto-pause",
|
|
2343
|
+
description: "Auto-pause agents on sustained hourly-cost breach (ENG-5561). Boolean gate; ships dark.",
|
|
2344
|
+
flagType: "boolean",
|
|
2345
|
+
defaultValue: false,
|
|
2346
|
+
envVar: "AUGMENTED_AUTO_PAUSE_ENABLED",
|
|
2347
|
+
// Cost-enforcement gate: relaxing it (turning auto-pause off) removes a
|
|
2348
|
+
// spend control, so mutations require explicit confirmation.
|
|
2349
|
+
sensitive: true
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
key: "channel-busy-ack",
|
|
2353
|
+
description: "Busy-but-alive ack notices when an agent is mid-task (ENG-6180). Boolean gate; ships dark.",
|
|
2354
|
+
flagType: "boolean",
|
|
2355
|
+
defaultValue: false,
|
|
2356
|
+
envVar: "AGT_CHANNEL_BUSY_ACK_ENABLED"
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
key: "channel-quarantine-mode",
|
|
2360
|
+
description: "Optional-channel quarantine (ENG-5932): off = disabled, shadow = log matches only, enforce = quarantine.",
|
|
2361
|
+
flagType: "enum",
|
|
2362
|
+
allowedValues: ["off", "shadow", "enforce"],
|
|
2363
|
+
defaultValue: "off",
|
|
2364
|
+
envVar: "AGT_CHANNEL_QUARANTINE_MODE",
|
|
2365
|
+
// Enforcement gate: weakening it (enforce → shadow/off) drops a channel
|
|
2366
|
+
// safety control, so mutations require explicit confirmation.
|
|
2367
|
+
sensitive: true
|
|
2368
|
+
}
|
|
2369
|
+
];
|
|
2370
|
+
var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
|
|
2371
|
+
function getFlagDefinition(key) {
|
|
2372
|
+
return REGISTRY_BY_KEY.get(key);
|
|
2373
|
+
}
|
|
2374
|
+
function listFlagDefinitions() {
|
|
2375
|
+
return FLAG_REGISTRY;
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
// ../../packages/core/dist/feature-flags/schema-version.js
|
|
2379
|
+
function projectDefinition(definition) {
|
|
2380
|
+
const parts = [
|
|
2381
|
+
`k=${definition.key}`,
|
|
2382
|
+
`t=${definition.flagType}`,
|
|
2383
|
+
`d=${String(definition.defaultValue)}`,
|
|
2384
|
+
`p=${definition.public === true ? 1 : 0}`,
|
|
2385
|
+
`s=${definition.sensitive === true ? 1 : 0}`
|
|
2386
|
+
];
|
|
2387
|
+
if (definition.flagType === "enum") {
|
|
2388
|
+
parts.push(`a=${[...definition.allowedValues].sort().join(",")}`);
|
|
2389
|
+
}
|
|
2390
|
+
return parts.join("|");
|
|
2391
|
+
}
|
|
2392
|
+
function fnv1aHex(input) {
|
|
2393
|
+
let hash = 2166136261;
|
|
2394
|
+
for (let i = 0; i < input.length; i += 1) {
|
|
2395
|
+
hash ^= input.charCodeAt(i);
|
|
2396
|
+
hash = Math.imul(hash, 16777619) >>> 0;
|
|
2397
|
+
}
|
|
2398
|
+
return hash.toString(16).padStart(8, "0");
|
|
2399
|
+
}
|
|
2400
|
+
function computeFlagsSchemaVersion() {
|
|
2401
|
+
const canonical = [...FLAG_REGISTRY].map(projectDefinition).sort().join("\n");
|
|
2402
|
+
return `v1:${fnv1aHex(canonical)}`;
|
|
2403
|
+
}
|
|
2404
|
+
var FLAGS_SCHEMA_VERSION = computeFlagsSchemaVersion();
|
|
2405
|
+
|
|
2406
|
+
// ../../packages/core/dist/feature-flags/evaluate.js
|
|
2407
|
+
function normalizeFlagValue(definition, raw) {
|
|
2408
|
+
if (definition.flagType === "boolean") {
|
|
2409
|
+
return typeof raw === "boolean" ? raw : void 0;
|
|
2410
|
+
}
|
|
2411
|
+
return typeof raw === "string" && definition.allowedValues.includes(raw) ? raw : void 0;
|
|
2412
|
+
}
|
|
2413
|
+
function coerceEnvValue(definition, raw) {
|
|
2414
|
+
if (raw === void 0 || raw === "")
|
|
2415
|
+
return void 0;
|
|
2416
|
+
if (definition.flagType === "boolean") {
|
|
2417
|
+
const lowered = raw.trim().toLowerCase();
|
|
2418
|
+
if (lowered === "true" || lowered === "1")
|
|
2419
|
+
return true;
|
|
2420
|
+
if (lowered === "false" || lowered === "0")
|
|
2421
|
+
return false;
|
|
2422
|
+
return void 0;
|
|
2423
|
+
}
|
|
2424
|
+
return normalizeFlagValue(definition, raw.trim());
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2339
2427
|
// ../../packages/core/dist/schemas/validators.js
|
|
2340
2428
|
import Ajv20202 from "ajv/dist/2020.js";
|
|
2341
2429
|
import addFormats2 from "ajv-formats";
|
|
@@ -4853,33 +4941,6 @@ var gdriveCommentsTriggerAdapter = {
|
|
|
4853
4941
|
};
|
|
4854
4942
|
registerTriggerSource(gdriveCommentsTriggerAdapter);
|
|
4855
4943
|
|
|
4856
|
-
// ../../packages/core/dist/feature-flags/registry.js
|
|
4857
|
-
var FLAG_REGISTRY = [
|
|
4858
|
-
{
|
|
4859
|
-
key: "auto-pause",
|
|
4860
|
-
description: "Auto-pause agents on sustained hourly-cost breach (ENG-5561). Boolean gate; ships dark.",
|
|
4861
|
-
flagType: "boolean",
|
|
4862
|
-
defaultValue: false,
|
|
4863
|
-
envVar: "AUGMENTED_AUTO_PAUSE_ENABLED"
|
|
4864
|
-
},
|
|
4865
|
-
{
|
|
4866
|
-
key: "channel-busy-ack",
|
|
4867
|
-
description: "Busy-but-alive ack notices when an agent is mid-task (ENG-6180). Boolean gate; ships dark.",
|
|
4868
|
-
flagType: "boolean",
|
|
4869
|
-
defaultValue: false,
|
|
4870
|
-
envVar: "AGT_CHANNEL_BUSY_ACK_ENABLED"
|
|
4871
|
-
},
|
|
4872
|
-
{
|
|
4873
|
-
key: "channel-quarantine-mode",
|
|
4874
|
-
description: "Optional-channel quarantine (ENG-5932): off = disabled, shadow = log matches only, enforce = quarantine.",
|
|
4875
|
-
flagType: "enum",
|
|
4876
|
-
allowedValues: ["off", "shadow", "enforce"],
|
|
4877
|
-
defaultValue: "off",
|
|
4878
|
-
envVar: "AGT_CHANNEL_QUARANTINE_MODE"
|
|
4879
|
-
}
|
|
4880
|
-
];
|
|
4881
|
-
var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
|
|
4882
|
-
|
|
4883
4944
|
export {
|
|
4884
4945
|
wrapScheduledTaskPrompt,
|
|
4885
4946
|
parseDeliveryTarget,
|
|
@@ -4935,6 +4996,11 @@ export {
|
|
|
4935
4996
|
parseTranscriptUsage,
|
|
4936
4997
|
isEmptyTotals,
|
|
4937
4998
|
attributeTranscriptUsageByRun,
|
|
4938
|
-
KANBAN_CHECK_COMMAND
|
|
4999
|
+
KANBAN_CHECK_COMMAND,
|
|
5000
|
+
getFlagDefinition,
|
|
5001
|
+
listFlagDefinitions,
|
|
5002
|
+
normalizeFlagValue,
|
|
5003
|
+
coerceEnvValue,
|
|
5004
|
+
FLAGS_SCHEMA_VERSION
|
|
4939
5005
|
};
|
|
4940
|
-
//# sourceMappingURL=chunk-
|
|
5006
|
+
//# sourceMappingURL=chunk-BC26YO7P.js.map
|