@integrity-labs/agt-cli 0.27.150 → 0.27.151
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-EI2FRRGG.js} +2 -2
- package/dist/{chunk-A75AOK6E.js → chunk-K5XUY6PS.js} +127 -1
- package/dist/{chunk-A75AOK6E.js.map → chunk-K5XUY6PS.js.map} +1 -1
- package/dist/{chunk-JLS7NQFE.js → chunk-UF6HY7TN.js} +2 -2
- package/dist/{claude-pair-runtime-3ZIOY3Z5.js → claude-pair-runtime-AYMNAIYY.js} +2 -2
- package/dist/lib/manager-worker.js +322 -138
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-ZLEK4KBF.js → persistent-session-CZQPV267.js} +3 -3
- package/dist/{responsiveness-probe-3EUNCJDU.js → responsiveness-probe-EW2ZLSZL.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-CUHP2SVW.js.map → chunk-EI2FRRGG.js.map} +0 -0
- /package/dist/{chunk-JLS7NQFE.js.map → chunk-UF6HY7TN.js.map} +0 -0
- /package/dist/{claude-pair-runtime-3ZIOY3Z5.js.map → claude-pair-runtime-AYMNAIYY.js.map} +0 -0
- /package/dist/{persistent-session-ZLEK4KBF.js.map → persistent-session-CZQPV267.js.map} +0 -0
- /package/dist/{responsiveness-probe-3EUNCJDU.js.map → responsiveness-probe-EW2ZLSZL.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-EI2FRRGG.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-K5XUY6PS.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.151" : "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.151" : "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-K5XUY6PS.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-EI2FRRGG.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 = {
|
|
@@ -4755,6 +4880,7 @@ export {
|
|
|
4755
4880
|
renderTemplate,
|
|
4756
4881
|
DEPLOYMENT_TEMPLATES,
|
|
4757
4882
|
getTemplate,
|
|
4883
|
+
StreamEncoder,
|
|
4758
4884
|
worseConnectivityOutcome,
|
|
4759
4885
|
resolveConnectivityProbe,
|
|
4760
4886
|
probeComposioAccount,
|
|
@@ -4770,4 +4896,4 @@ export {
|
|
|
4770
4896
|
attributeTranscriptUsageByRun,
|
|
4771
4897
|
KANBAN_CHECK_COMMAND
|
|
4772
4898
|
};
|
|
4773
|
-
//# sourceMappingURL=chunk-
|
|
4899
|
+
//# sourceMappingURL=chunk-K5XUY6PS.js.map
|