@integrity-labs/agt-cli 0.27.150 → 0.27.152
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 +4 -4
- package/dist/{chunk-CUHP2SVW.js → chunk-CPXNNR4W.js} +2 -2
- package/dist/{chunk-JLS7NQFE.js → chunk-FF37P4BH.js} +2 -2
- package/dist/{chunk-A75AOK6E.js → chunk-FZTGR2AQ.js} +153 -20
- package/dist/{chunk-A75AOK6E.js.map → chunk-FZTGR2AQ.js.map} +1 -1
- package/dist/{claude-pair-runtime-3ZIOY3Z5.js → claude-pair-runtime-VSUJJO67.js} +2 -2
- package/dist/lib/manager-worker.js +323 -139
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/augmented-admin.js +42 -4
- package/dist/{persistent-session-ZLEK4KBF.js → persistent-session-THI6WSPJ.js} +3 -3
- package/dist/{responsiveness-probe-3EUNCJDU.js → responsiveness-probe-UFF2EBGZ.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-CUHP2SVW.js.map → chunk-CPXNNR4W.js.map} +0 -0
- /package/dist/{chunk-JLS7NQFE.js.map → chunk-FF37P4BH.js.map} +0 -0
- /package/dist/{claude-pair-runtime-3ZIOY3Z5.js.map → claude-pair-runtime-VSUJJO67.js.map} +0 -0
- /package/dist/{persistent-session-ZLEK4KBF.js.map → persistent-session-THI6WSPJ.js.map} +0 -0
- /package/dist/{responsiveness-probe-3EUNCJDU.js.map → responsiveness-probe-UFF2EBGZ.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
success,
|
|
29
29
|
table,
|
|
30
30
|
warn
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-CPXNNR4W.js";
|
|
32
32
|
import {
|
|
33
33
|
CHANNEL_REGISTRY,
|
|
34
34
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
renderTemplate,
|
|
55
55
|
resolveChannels,
|
|
56
56
|
serializeManifestForSlackCli
|
|
57
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-FZTGR2AQ.js";
|
|
58
58
|
|
|
59
59
|
// src/bin/agt.ts
|
|
60
60
|
import { join as join20 } from "path";
|
|
@@ -4941,7 +4941,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4941
4941
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4942
4942
|
import chalk18 from "chalk";
|
|
4943
4943
|
import ora16 from "ora";
|
|
4944
|
-
var cliVersion = true ? "0.27.
|
|
4944
|
+
var cliVersion = true ? "0.27.152" : "dev";
|
|
4945
4945
|
async function fetchLatestVersion() {
|
|
4946
4946
|
const host2 = getHost();
|
|
4947
4947
|
if (!host2) return null;
|
|
@@ -5864,7 +5864,7 @@ function handleError(err) {
|
|
|
5864
5864
|
}
|
|
5865
5865
|
|
|
5866
5866
|
// src/bin/agt.ts
|
|
5867
|
-
var cliVersion2 = true ? "0.27.
|
|
5867
|
+
var cliVersion2 = true ? "0.27.152" : "dev";
|
|
5868
5868
|
var program = new Command();
|
|
5869
5869
|
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");
|
|
5870
5870
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
registerFramework,
|
|
11
11
|
resolveAvatarEnvUrl,
|
|
12
12
|
wrapScheduledTaskPrompt
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FZTGR2AQ.js";
|
|
14
14
|
|
|
15
15
|
// ../../packages/core/dist/integrations/registry.js
|
|
16
16
|
var INTEGRATION_REGISTRY = [
|
|
@@ -7972,4 +7972,4 @@ export {
|
|
|
7972
7972
|
managerInstallSystemUnitCommand,
|
|
7973
7973
|
managerUninstallSystemUnitCommand
|
|
7974
7974
|
};
|
|
7975
|
-
//# sourceMappingURL=chunk-
|
|
7975
|
+
//# sourceMappingURL=chunk-CPXNNR4W.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeModelAlias,
|
|
3
3
|
isClaudeFastMode
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FZTGR2AQ.js";
|
|
5
5
|
import {
|
|
6
6
|
reapOrphanChannelMcps
|
|
7
7
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -1621,4 +1621,4 @@ export {
|
|
|
1621
1621
|
stopAllSessionsAndWait,
|
|
1622
1622
|
getProjectDir
|
|
1623
1623
|
};
|
|
1624
|
-
//# sourceMappingURL=chunk-
|
|
1624
|
+
//# sourceMappingURL=chunk-FF37P4BH.js.map
|
|
@@ -1786,8 +1786,133 @@ addFormats(ajv);
|
|
|
1786
1786
|
var compiledMetaSchema = ajv.compile(context_meta_schema_default);
|
|
1787
1787
|
|
|
1788
1788
|
// ../../packages/core/dist/integrations/augmented-live/codec.js
|
|
1789
|
+
var CODEC_VERSION = 1;
|
|
1790
|
+
var DEFAULT_KEYFRAME_INTERVAL = 10;
|
|
1791
|
+
var DEFAULT_KEYFRAME_INTERVAL_MS = 5e3;
|
|
1789
1792
|
var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
|
|
1790
1793
|
var textEncoder = new TextEncoder();
|
|
1794
|
+
function byteLength(value) {
|
|
1795
|
+
return textEncoder.encode(value).length;
|
|
1796
|
+
}
|
|
1797
|
+
function frameByteLength(frame) {
|
|
1798
|
+
return byteLength(JSON.stringify(frame));
|
|
1799
|
+
}
|
|
1800
|
+
function diffStrings(base, next) {
|
|
1801
|
+
const baseLen = base.length;
|
|
1802
|
+
const nextLen = next.length;
|
|
1803
|
+
let prefix = 0;
|
|
1804
|
+
const maxPrefix = Math.min(baseLen, nextLen);
|
|
1805
|
+
while (prefix < maxPrefix && base.charCodeAt(prefix) === next.charCodeAt(prefix)) {
|
|
1806
|
+
prefix++;
|
|
1807
|
+
}
|
|
1808
|
+
let suffix = 0;
|
|
1809
|
+
const maxSuffix = Math.min(baseLen, nextLen) - prefix;
|
|
1810
|
+
while (suffix < maxSuffix && base.charCodeAt(baseLen - 1 - suffix) === next.charCodeAt(nextLen - 1 - suffix)) {
|
|
1811
|
+
suffix++;
|
|
1812
|
+
}
|
|
1813
|
+
const deleteCount = baseLen - prefix - suffix;
|
|
1814
|
+
const inserted = next.slice(prefix, nextLen - suffix);
|
|
1815
|
+
const ops = [];
|
|
1816
|
+
if (prefix > 0)
|
|
1817
|
+
ops.push({ retain: prefix });
|
|
1818
|
+
if (deleteCount > 0)
|
|
1819
|
+
ops.push({ delete: deleteCount });
|
|
1820
|
+
if (inserted.length > 0)
|
|
1821
|
+
ops.push({ insert: inserted });
|
|
1822
|
+
if (suffix > 0)
|
|
1823
|
+
ops.push({ retain: suffix });
|
|
1824
|
+
if (ops.length === 0)
|
|
1825
|
+
ops.push({ retain: baseLen });
|
|
1826
|
+
return ops;
|
|
1827
|
+
}
|
|
1828
|
+
function splitByBytes(payload, budgetBytes) {
|
|
1829
|
+
const parts = [];
|
|
1830
|
+
let current = "";
|
|
1831
|
+
let currentBytes = 0;
|
|
1832
|
+
for (const cp of payload) {
|
|
1833
|
+
const cpBytes = byteLength(cp);
|
|
1834
|
+
if (currentBytes + cpBytes > budgetBytes && current.length > 0) {
|
|
1835
|
+
parts.push(current);
|
|
1836
|
+
current = "";
|
|
1837
|
+
currentBytes = 0;
|
|
1838
|
+
}
|
|
1839
|
+
current += cp;
|
|
1840
|
+
currentBytes += cpBytes;
|
|
1841
|
+
}
|
|
1842
|
+
if (current.length > 0 || parts.length === 0)
|
|
1843
|
+
parts.push(current);
|
|
1844
|
+
return parts;
|
|
1845
|
+
}
|
|
1846
|
+
function chunkFrame(frame, budgetBytes = DEFAULT_CHUNK_BUDGET_BYTES) {
|
|
1847
|
+
if (frameByteLength(frame) <= budgetBytes)
|
|
1848
|
+
return [frame];
|
|
1849
|
+
const payload = frame.type === "key" ? frame.content : JSON.stringify(frame.ops);
|
|
1850
|
+
const dataBudget = Math.max(1, budgetBytes - 512);
|
|
1851
|
+
const pieces = splitByBytes(payload, dataBudget);
|
|
1852
|
+
return pieces.map((data, index) => {
|
|
1853
|
+
const chunk = {
|
|
1854
|
+
v: CODEC_VERSION,
|
|
1855
|
+
type: "chunk",
|
|
1856
|
+
seq: frame.seq,
|
|
1857
|
+
kind: frame.type,
|
|
1858
|
+
part: index,
|
|
1859
|
+
parts: pieces.length,
|
|
1860
|
+
data
|
|
1861
|
+
};
|
|
1862
|
+
if (frame.type === "patch")
|
|
1863
|
+
chunk.baseSeq = frame.baseSeq;
|
|
1864
|
+
return chunk;
|
|
1865
|
+
});
|
|
1866
|
+
}
|
|
1867
|
+
var StreamEncoder = class {
|
|
1868
|
+
keyframeInterval;
|
|
1869
|
+
keyframeIntervalMs;
|
|
1870
|
+
chunkBudgetBytes;
|
|
1871
|
+
now;
|
|
1872
|
+
seq = 0;
|
|
1873
|
+
prevContent = null;
|
|
1874
|
+
prevSeq = 0;
|
|
1875
|
+
framesSinceKey = 0;
|
|
1876
|
+
lastKeyAt = 0;
|
|
1877
|
+
constructor(options = {}) {
|
|
1878
|
+
this.keyframeInterval = options.keyframeInterval ?? DEFAULT_KEYFRAME_INTERVAL;
|
|
1879
|
+
this.keyframeIntervalMs = options.keyframeIntervalMs ?? DEFAULT_KEYFRAME_INTERVAL_MS;
|
|
1880
|
+
this.chunkBudgetBytes = options.chunkBudgetBytes ?? DEFAULT_CHUNK_BUDGET_BYTES;
|
|
1881
|
+
this.now = options.now ?? (() => Date.now());
|
|
1882
|
+
}
|
|
1883
|
+
/** Encode one snapshot of the artifact into wire frames. */
|
|
1884
|
+
encode(content) {
|
|
1885
|
+
const seq = ++this.seq;
|
|
1886
|
+
const now = this.now();
|
|
1887
|
+
const mustKeyframe = this.prevContent === null || this.framesSinceKey >= this.keyframeInterval || now - this.lastKeyAt >= this.keyframeIntervalMs;
|
|
1888
|
+
let frame;
|
|
1889
|
+
if (mustKeyframe) {
|
|
1890
|
+
frame = { v: CODEC_VERSION, type: "key", seq, content };
|
|
1891
|
+
this.framesSinceKey = 0;
|
|
1892
|
+
this.lastKeyAt = now;
|
|
1893
|
+
} else {
|
|
1894
|
+
frame = {
|
|
1895
|
+
v: CODEC_VERSION,
|
|
1896
|
+
type: "patch",
|
|
1897
|
+
seq,
|
|
1898
|
+
baseSeq: this.prevSeq,
|
|
1899
|
+
ops: diffStrings(this.prevContent, content)
|
|
1900
|
+
};
|
|
1901
|
+
this.framesSinceKey++;
|
|
1902
|
+
}
|
|
1903
|
+
this.prevContent = content;
|
|
1904
|
+
this.prevSeq = seq;
|
|
1905
|
+
return chunkFrame(frame, this.chunkBudgetBytes);
|
|
1906
|
+
}
|
|
1907
|
+
/** Reset to the initial state (e.g. a new draft on the same encoder). */
|
|
1908
|
+
reset() {
|
|
1909
|
+
this.seq = 0;
|
|
1910
|
+
this.prevContent = null;
|
|
1911
|
+
this.prevSeq = 0;
|
|
1912
|
+
this.framesSinceKey = 0;
|
|
1913
|
+
this.lastKeyAt = 0;
|
|
1914
|
+
}
|
|
1915
|
+
};
|
|
1791
1916
|
|
|
1792
1917
|
// ../../packages/core/dist/integrations/oauth-providers.js
|
|
1793
1918
|
var OAUTH_PROVIDERS = {
|
|
@@ -4230,28 +4355,35 @@ var BANNER_PATTERNS = [
|
|
|
4230
4355
|
new RegExp(`${SUBJECT}hit\\s+your\\s+limit${SEP}resets\\s+(${RESET_DATE})`, "i")
|
|
4231
4356
|
];
|
|
4232
4357
|
function parseUsageBanner(text, now = /* @__PURE__ */ new Date()) {
|
|
4358
|
+
let bestIndex = -1;
|
|
4359
|
+
let best = null;
|
|
4233
4360
|
for (let i = 0; i < BANNER_PATTERNS.length; i++) {
|
|
4234
|
-
const pattern = BANNER_PATTERNS[i];
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4361
|
+
const pattern = new RegExp(BANNER_PATTERNS[i].source, "gi");
|
|
4362
|
+
let match;
|
|
4363
|
+
while ((match = pattern.exec(text)) !== null) {
|
|
4364
|
+
if (match.index === pattern.lastIndex)
|
|
4365
|
+
pattern.lastIndex++;
|
|
4366
|
+
let pct;
|
|
4367
|
+
let resetStr;
|
|
4368
|
+
if (i === 0) {
|
|
4369
|
+
pct = Number.parseInt(match[1], 10);
|
|
4370
|
+
resetStr = match[2];
|
|
4371
|
+
} else {
|
|
4372
|
+
pct = 100;
|
|
4373
|
+
resetStr = match[1];
|
|
4374
|
+
}
|
|
4375
|
+
if (!Number.isFinite(pct) || pct < 0 || pct > 100)
|
|
4376
|
+
continue;
|
|
4377
|
+
const weekResetsAt = parseResetDateTime(resetStr, now);
|
|
4378
|
+
if (!weekResetsAt)
|
|
4379
|
+
continue;
|
|
4380
|
+
if (match.index >= bestIndex) {
|
|
4381
|
+
bestIndex = match.index;
|
|
4382
|
+
best = { pct, weekResetsAt };
|
|
4383
|
+
}
|
|
4246
4384
|
}
|
|
4247
|
-
if (!Number.isFinite(pct) || pct < 0 || pct > 100)
|
|
4248
|
-
continue;
|
|
4249
|
-
const weekResetsAt = parseResetDateTime(resetStr, now);
|
|
4250
|
-
if (!weekResetsAt)
|
|
4251
|
-
continue;
|
|
4252
|
-
return { pct, weekResetsAt };
|
|
4253
4385
|
}
|
|
4254
|
-
return
|
|
4386
|
+
return best;
|
|
4255
4387
|
}
|
|
4256
4388
|
var MONTHS = [
|
|
4257
4389
|
"jan",
|
|
@@ -4755,6 +4887,7 @@ export {
|
|
|
4755
4887
|
renderTemplate,
|
|
4756
4888
|
DEPLOYMENT_TEMPLATES,
|
|
4757
4889
|
getTemplate,
|
|
4890
|
+
StreamEncoder,
|
|
4758
4891
|
worseConnectivityOutcome,
|
|
4759
4892
|
resolveConnectivityProbe,
|
|
4760
4893
|
probeComposioAccount,
|
|
@@ -4770,4 +4903,4 @@ export {
|
|
|
4770
4903
|
attributeTranscriptUsageByRun,
|
|
4771
4904
|
KANBAN_CHECK_COMMAND
|
|
4772
4905
|
};
|
|
4773
|
-
//# sourceMappingURL=chunk-
|
|
4906
|
+
//# sourceMappingURL=chunk-FZTGR2AQ.js.map
|