omnius 1.0.394 → 1.0.395
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/index.js +261 -214
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44371,8 +44371,8 @@ var init_interface = __esm({
|
|
|
44371
44371
|
|
|
44372
44372
|
// ../node_modules/multiformats/dist/src/cid.js
|
|
44373
44373
|
function format(link, base3) {
|
|
44374
|
-
const { bytes, version:
|
|
44375
|
-
switch (
|
|
44374
|
+
const { bytes, version: version5 } = link;
|
|
44375
|
+
switch (version5) {
|
|
44376
44376
|
case 0:
|
|
44377
44377
|
return toStringV0(bytes, baseCache(link), base3 ?? base58btc.encoder);
|
|
44378
44378
|
default:
|
|
@@ -44443,11 +44443,11 @@ function toStringV1(bytes, cache8, base3) {
|
|
|
44443
44443
|
return cid;
|
|
44444
44444
|
}
|
|
44445
44445
|
}
|
|
44446
|
-
function encodeCID(
|
|
44447
|
-
const codeOffset = encodingLength(
|
|
44446
|
+
function encodeCID(version5, code8, multihash) {
|
|
44447
|
+
const codeOffset = encodingLength(version5);
|
|
44448
44448
|
const hashOffset = codeOffset + encodingLength(code8);
|
|
44449
44449
|
const bytes = new Uint8Array(hashOffset + multihash.byteLength);
|
|
44450
|
-
encodeTo(
|
|
44450
|
+
encodeTo(version5, bytes, 0);
|
|
44451
44451
|
encodeTo(code8, bytes, codeOffset);
|
|
44452
44452
|
bytes.set(multihash, hashOffset);
|
|
44453
44453
|
return bytes;
|
|
@@ -44474,9 +44474,9 @@ var init_cid = __esm({
|
|
|
44474
44474
|
* @param code - Code of the codec content is encoded in, see https://github.com/multiformats/multicodec/blob/master/table.csv
|
|
44475
44475
|
* @param multihash - (Multi)hash of the of the content.
|
|
44476
44476
|
*/
|
|
44477
|
-
constructor(
|
|
44477
|
+
constructor(version5, code8, multihash, bytes) {
|
|
44478
44478
|
this.code = code8;
|
|
44479
|
-
this.version =
|
|
44479
|
+
this.version = version5;
|
|
44480
44480
|
this.multihash = multihash;
|
|
44481
44481
|
this.bytes = bytes;
|
|
44482
44482
|
this["/"] = bytes;
|
|
@@ -44572,12 +44572,12 @@ var init_cid = __esm({
|
|
|
44572
44572
|
if (value2 instanceof _CID) {
|
|
44573
44573
|
return value2;
|
|
44574
44574
|
} else if (value2["/"] != null && value2["/"] === value2.bytes || value2.asCID === value2) {
|
|
44575
|
-
const { version:
|
|
44576
|
-
return new _CID(
|
|
44575
|
+
const { version: version5, code: code8, multihash, bytes } = value2;
|
|
44576
|
+
return new _CID(version5, code8, multihash, bytes ?? encodeCID(version5, code8, multihash.bytes));
|
|
44577
44577
|
} else if (value2[cidSymbol] === true) {
|
|
44578
|
-
const { version:
|
|
44578
|
+
const { version: version5, multihash, code: code8 } = value2;
|
|
44579
44579
|
const digest3 = decode7(multihash);
|
|
44580
|
-
return _CID.create(
|
|
44580
|
+
return _CID.create(version5, code8, digest3);
|
|
44581
44581
|
} else {
|
|
44582
44582
|
return null;
|
|
44583
44583
|
}
|
|
@@ -44587,24 +44587,24 @@ var init_cid = __esm({
|
|
|
44587
44587
|
* @param code - Code of the codec content is encoded in, see https://github.com/multiformats/multicodec/blob/master/table.csv
|
|
44588
44588
|
* @param digest - (Multi)hash of the of the content.
|
|
44589
44589
|
*/
|
|
44590
|
-
static create(
|
|
44590
|
+
static create(version5, code8, digest3) {
|
|
44591
44591
|
if (typeof code8 !== "number") {
|
|
44592
44592
|
throw new Error("String codecs are no longer supported");
|
|
44593
44593
|
}
|
|
44594
44594
|
if (!(digest3.bytes instanceof Uint8Array)) {
|
|
44595
44595
|
throw new Error("Invalid digest");
|
|
44596
44596
|
}
|
|
44597
|
-
switch (
|
|
44597
|
+
switch (version5) {
|
|
44598
44598
|
case 0: {
|
|
44599
44599
|
if (code8 !== DAG_PB_CODE) {
|
|
44600
44600
|
throw new Error(`Version 0 CID must use dag-pb (code: ${DAG_PB_CODE}) block encoding`);
|
|
44601
44601
|
} else {
|
|
44602
|
-
return new _CID(
|
|
44602
|
+
return new _CID(version5, code8, digest3, digest3.bytes);
|
|
44603
44603
|
}
|
|
44604
44604
|
}
|
|
44605
44605
|
case 1: {
|
|
44606
|
-
const bytes = encodeCID(
|
|
44607
|
-
return new _CID(
|
|
44606
|
+
const bytes = encodeCID(version5, code8, digest3.bytes);
|
|
44607
|
+
return new _CID(version5, code8, digest3, bytes);
|
|
44608
44608
|
}
|
|
44609
44609
|
default: {
|
|
44610
44610
|
throw new Error("Invalid version");
|
|
@@ -44677,23 +44677,23 @@ var init_cid = __esm({
|
|
|
44677
44677
|
offset += length4;
|
|
44678
44678
|
return i2;
|
|
44679
44679
|
};
|
|
44680
|
-
let
|
|
44680
|
+
let version5 = next();
|
|
44681
44681
|
let codec = DAG_PB_CODE;
|
|
44682
|
-
if (
|
|
44683
|
-
|
|
44682
|
+
if (version5 === 18) {
|
|
44683
|
+
version5 = 0;
|
|
44684
44684
|
offset = 0;
|
|
44685
44685
|
} else {
|
|
44686
44686
|
codec = next();
|
|
44687
44687
|
}
|
|
44688
|
-
if (
|
|
44689
|
-
throw new RangeError(`Invalid CID version ${
|
|
44688
|
+
if (version5 !== 0 && version5 !== 1) {
|
|
44689
|
+
throw new RangeError(`Invalid CID version ${version5}`);
|
|
44690
44690
|
}
|
|
44691
44691
|
const prefixSize = offset;
|
|
44692
44692
|
const multihashCode = next();
|
|
44693
44693
|
const digestSize = next();
|
|
44694
44694
|
const size = offset + digestSize;
|
|
44695
44695
|
const multihashSize = size - prefixSize;
|
|
44696
|
-
return { version:
|
|
44696
|
+
return { version: version5, codec, multihashCode, digestSize, multihashSize, size };
|
|
44697
44697
|
}
|
|
44698
44698
|
/**
|
|
44699
44699
|
* Takes cid in a string representation and creates an instance. If `base`
|
|
@@ -58319,10 +58319,10 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
58319
58319
|
return 3;
|
|
58320
58320
|
}
|
|
58321
58321
|
if ("TERM_PROGRAM" in env) {
|
|
58322
|
-
const
|
|
58322
|
+
const version5 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
58323
58323
|
switch (env.TERM_PROGRAM) {
|
|
58324
58324
|
case "iTerm.app": {
|
|
58325
|
-
return
|
|
58325
|
+
return version5 >= 3 ? 3 : 2;
|
|
58326
58326
|
}
|
|
58327
58327
|
case "Apple_Terminal": {
|
|
58328
58328
|
return 2;
|
|
@@ -61593,8 +61593,8 @@ async function assertDatastoreVersionIsCurrent(datastore) {
|
|
|
61593
61593
|
}
|
|
61594
61594
|
const buf = await datastore.get(DS_VERSION_KEY);
|
|
61595
61595
|
const str = toString2(buf);
|
|
61596
|
-
const
|
|
61597
|
-
if (
|
|
61596
|
+
const version5 = parseInt(str, 10);
|
|
61597
|
+
if (version5 !== CURRENT_VERSION) {
|
|
61598
61598
|
throw new InvalidDatastoreVersionError("Invalid datastore version, a datastore migration may be required");
|
|
61599
61599
|
}
|
|
61600
61600
|
}
|
|
@@ -76857,7 +76857,7 @@ var init_version = __esm({
|
|
|
76857
76857
|
|
|
76858
76858
|
// ../node_modules/libp2p/dist/src/user-agent.js
|
|
76859
76859
|
import process3 from "node:process";
|
|
76860
|
-
function userAgent(name10,
|
|
76860
|
+
function userAgent(name10, version5) {
|
|
76861
76861
|
let platform7 = "node";
|
|
76862
76862
|
let platformVersion = process3.versions.node;
|
|
76863
76863
|
if (process3.versions.deno != null) {
|
|
@@ -76872,7 +76872,7 @@ function userAgent(name10, version4) {
|
|
|
76872
76872
|
platform7 = "electron";
|
|
76873
76873
|
platformVersion = process3.versions.electron;
|
|
76874
76874
|
}
|
|
76875
|
-
return `${name10 ?? name7}/${
|
|
76875
|
+
return `${name10 ?? name7}/${version5 ?? version} ${platform7}/${platformVersion.replaceAll("v", "")}`;
|
|
76876
76876
|
}
|
|
76877
76877
|
var init_user_agent = __esm({
|
|
76878
76878
|
"../node_modules/libp2p/dist/src/user-agent.js"() {
|
|
@@ -100509,10 +100509,10 @@ var require_supports_color = __commonJS({
|
|
|
100509
100509
|
return 3;
|
|
100510
100510
|
}
|
|
100511
100511
|
if ("TERM_PROGRAM" in env2) {
|
|
100512
|
-
const
|
|
100512
|
+
const version5 = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
100513
100513
|
switch (env2.TERM_PROGRAM) {
|
|
100514
100514
|
case "iTerm.app":
|
|
100515
|
-
return
|
|
100515
|
+
return version5 >= 3 ? 3 : 2;
|
|
100516
100516
|
case "Apple_Terminal":
|
|
100517
100517
|
return 2;
|
|
100518
100518
|
}
|
|
@@ -114786,23 +114786,23 @@ var require_axios = __commonJS({
|
|
|
114786
114786
|
};
|
|
114787
114787
|
});
|
|
114788
114788
|
var deprecatedWarnings = {};
|
|
114789
|
-
validators$1.transitional = function transitional(validator2,
|
|
114789
|
+
validators$1.transitional = function transitional(validator2, version5, message2) {
|
|
114790
114790
|
function formatMessage(opt, desc) {
|
|
114791
114791
|
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message2 ? ". " + message2 : "");
|
|
114792
114792
|
}
|
|
114793
114793
|
return (value2, opt, opts) => {
|
|
114794
114794
|
if (validator2 === false) {
|
|
114795
114795
|
throw new AxiosError$1(
|
|
114796
|
-
formatMessage(opt, " has been removed" + (
|
|
114796
|
+
formatMessage(opt, " has been removed" + (version5 ? " in " + version5 : "")),
|
|
114797
114797
|
AxiosError$1.ERR_DEPRECATED
|
|
114798
114798
|
);
|
|
114799
114799
|
}
|
|
114800
|
-
if (
|
|
114800
|
+
if (version5 && !deprecatedWarnings[opt]) {
|
|
114801
114801
|
deprecatedWarnings[opt] = true;
|
|
114802
114802
|
console.warn(
|
|
114803
114803
|
formatMessage(
|
|
114804
114804
|
opt,
|
|
114805
|
-
" has been deprecated since v" +
|
|
114805
|
+
" has been deprecated since v" + version5 + " and will be removed in the near future"
|
|
114806
114806
|
)
|
|
114807
114807
|
);
|
|
114808
114808
|
}
|
|
@@ -129782,14 +129782,14 @@ var require_tls = __commonJS({
|
|
|
129782
129782
|
c8.version = c8.session.version = session.version;
|
|
129783
129783
|
c8.session.sp = session.sp;
|
|
129784
129784
|
} else {
|
|
129785
|
-
var
|
|
129785
|
+
var version5;
|
|
129786
129786
|
for (var i2 = 1; i2 < tls2.SupportedVersions.length; ++i2) {
|
|
129787
|
-
|
|
129788
|
-
if (
|
|
129787
|
+
version5 = tls2.SupportedVersions[i2];
|
|
129788
|
+
if (version5.minor <= msg.version.minor) {
|
|
129789
129789
|
break;
|
|
129790
129790
|
}
|
|
129791
129791
|
}
|
|
129792
|
-
c8.version = { major:
|
|
129792
|
+
c8.version = { major: version5.major, minor: version5.minor };
|
|
129793
129793
|
c8.session.version = c8.version;
|
|
129794
129794
|
}
|
|
129795
129795
|
if (session !== null) {
|
|
@@ -129960,8 +129960,8 @@ var require_tls = __commonJS({
|
|
|
129960
129960
|
try {
|
|
129961
129961
|
var sp = c8.session.sp;
|
|
129962
129962
|
sp.pre_master_secret = privateKey.decrypt(msg.enc_pre_master_secret);
|
|
129963
|
-
var
|
|
129964
|
-
if (
|
|
129963
|
+
var version5 = c8.session.clientHelloVersion;
|
|
129964
|
+
if (version5.major !== sp.pre_master_secret.charCodeAt(0) || version5.minor !== sp.pre_master_secret.charCodeAt(1)) {
|
|
129965
129965
|
throw new Error("TLS version rollback attack detected.");
|
|
129966
129966
|
}
|
|
129967
129967
|
} catch (ex) {
|
|
@@ -140814,14 +140814,14 @@ var require_diagnostics = __commonJS({
|
|
|
140814
140814
|
"undici:client:beforeConnect",
|
|
140815
140815
|
(evt) => {
|
|
140816
140816
|
const {
|
|
140817
|
-
connectParams: { version:
|
|
140817
|
+
connectParams: { version: version5, protocol, port, host }
|
|
140818
140818
|
} = evt;
|
|
140819
140819
|
debugLog(
|
|
140820
140820
|
"connecting to %s%s using %s%s",
|
|
140821
140821
|
host,
|
|
140822
140822
|
port ? `:${port}` : "",
|
|
140823
140823
|
protocol,
|
|
140824
|
-
|
|
140824
|
+
version5
|
|
140825
140825
|
);
|
|
140826
140826
|
}
|
|
140827
140827
|
);
|
|
@@ -140829,14 +140829,14 @@ var require_diagnostics = __commonJS({
|
|
|
140829
140829
|
"undici:client:connected",
|
|
140830
140830
|
(evt) => {
|
|
140831
140831
|
const {
|
|
140832
|
-
connectParams: { version:
|
|
140832
|
+
connectParams: { version: version5, protocol, port, host }
|
|
140833
140833
|
} = evt;
|
|
140834
140834
|
debugLog(
|
|
140835
140835
|
"connected to %s%s using %s%s",
|
|
140836
140836
|
host,
|
|
140837
140837
|
port ? `:${port}` : "",
|
|
140838
140838
|
protocol,
|
|
140839
|
-
|
|
140839
|
+
version5
|
|
140840
140840
|
);
|
|
140841
140841
|
}
|
|
140842
140842
|
);
|
|
@@ -140844,7 +140844,7 @@ var require_diagnostics = __commonJS({
|
|
|
140844
140844
|
"undici:client:connectError",
|
|
140845
140845
|
(evt) => {
|
|
140846
140846
|
const {
|
|
140847
|
-
connectParams: { version:
|
|
140847
|
+
connectParams: { version: version5, protocol, port, host },
|
|
140848
140848
|
error
|
|
140849
140849
|
} = evt;
|
|
140850
140850
|
debugLog(
|
|
@@ -140852,7 +140852,7 @@ var require_diagnostics = __commonJS({
|
|
|
140852
140852
|
host,
|
|
140853
140853
|
port ? `:${port}` : "",
|
|
140854
140854
|
protocol,
|
|
140855
|
-
|
|
140855
|
+
version5,
|
|
140856
140856
|
error.message
|
|
140857
140857
|
);
|
|
140858
140858
|
}
|
|
@@ -148851,10 +148851,10 @@ var require_socks5_client = __commonJS({
|
|
|
148851
148851
|
if (this.buffer.length < 2) {
|
|
148852
148852
|
return;
|
|
148853
148853
|
}
|
|
148854
|
-
const
|
|
148854
|
+
const version5 = this.buffer[0];
|
|
148855
148855
|
const method = this.buffer[1];
|
|
148856
|
-
if (
|
|
148857
|
-
throw new Socks5ProxyError(`Invalid SOCKS version: ${
|
|
148856
|
+
if (version5 !== SOCKS_VERSION) {
|
|
148857
|
+
throw new Socks5ProxyError(`Invalid SOCKS version: ${version5}`, "UND_ERR_SOCKS5_VERSION");
|
|
148858
148858
|
}
|
|
148859
148859
|
if (method === AUTH_METHODS.NO_ACCEPTABLE) {
|
|
148860
148860
|
throw new Socks5ProxyError("No acceptable authentication method", "UND_ERR_SOCKS5_AUTH_REJECTED");
|
|
@@ -148899,10 +148899,10 @@ var require_socks5_client = __commonJS({
|
|
|
148899
148899
|
if (this.buffer.length < 2) {
|
|
148900
148900
|
return;
|
|
148901
148901
|
}
|
|
148902
|
-
const
|
|
148902
|
+
const version5 = this.buffer[0];
|
|
148903
148903
|
const status = this.buffer[1];
|
|
148904
|
-
if (
|
|
148905
|
-
throw new Socks5ProxyError(`Invalid auth sub-negotiation version: ${
|
|
148904
|
+
if (version5 !== 1) {
|
|
148905
|
+
throw new Socks5ProxyError(`Invalid auth sub-negotiation version: ${version5}`, "UND_ERR_SOCKS5_AUTH_VERSION");
|
|
148906
148906
|
}
|
|
148907
148907
|
if (status !== 0) {
|
|
148908
148908
|
throw new Socks5ProxyError("Authentication failed", "UND_ERR_SOCKS5_AUTH_FAILED");
|
|
@@ -148946,11 +148946,11 @@ var require_socks5_client = __commonJS({
|
|
|
148946
148946
|
if (this.buffer.length < 4) {
|
|
148947
148947
|
return;
|
|
148948
148948
|
}
|
|
148949
|
-
const
|
|
148949
|
+
const version5 = this.buffer[0];
|
|
148950
148950
|
const reply = this.buffer[1];
|
|
148951
148951
|
const addressType = this.buffer[3];
|
|
148952
|
-
if (
|
|
148953
|
-
throw new Socks5ProxyError(`Invalid SOCKS version in reply: ${
|
|
148952
|
+
if (version5 !== SOCKS_VERSION) {
|
|
148953
|
+
throw new Socks5ProxyError(`Invalid SOCKS version in reply: ${version5}`, "UND_ERR_SOCKS5_REPLY_VERSION");
|
|
148954
148954
|
}
|
|
148955
148955
|
let responseLength = 4;
|
|
148956
148956
|
if (addressType === ADDRESS_TYPES.IPV4) {
|
|
@@ -245098,7 +245098,7 @@ var require_XMLDOMImplementation = __commonJS({
|
|
|
245098
245098
|
module.exports = XMLDOMImplementation = (function() {
|
|
245099
245099
|
function XMLDOMImplementation2() {
|
|
245100
245100
|
}
|
|
245101
|
-
XMLDOMImplementation2.prototype.hasFeature = function(feature,
|
|
245101
|
+
XMLDOMImplementation2.prototype.hasFeature = function(feature, version5) {
|
|
245102
245102
|
return true;
|
|
245103
245103
|
};
|
|
245104
245104
|
XMLDOMImplementation2.prototype.createDocumentType = function(qualifiedName, publicId, systemId) {
|
|
@@ -245110,7 +245110,7 @@ var require_XMLDOMImplementation = __commonJS({
|
|
|
245110
245110
|
XMLDOMImplementation2.prototype.createHTMLDocument = function(title) {
|
|
245111
245111
|
throw new Error("This DOM method is not implemented.");
|
|
245112
245112
|
};
|
|
245113
|
-
XMLDOMImplementation2.prototype.getFeature = function(feature,
|
|
245113
|
+
XMLDOMImplementation2.prototype.getFeature = function(feature, version5) {
|
|
245114
245114
|
throw new Error("This DOM method is not implemented.");
|
|
245115
245115
|
};
|
|
245116
245116
|
return XMLDOMImplementation2;
|
|
@@ -245841,17 +245841,17 @@ var require_XMLDeclaration = __commonJS({
|
|
|
245841
245841
|
NodeType = require_NodeType();
|
|
245842
245842
|
module.exports = XMLDeclaration = (function(superClass) {
|
|
245843
245843
|
extend(XMLDeclaration2, superClass);
|
|
245844
|
-
function XMLDeclaration2(parent,
|
|
245844
|
+
function XMLDeclaration2(parent, version5, encoding, standalone) {
|
|
245845
245845
|
var ref;
|
|
245846
245846
|
XMLDeclaration2.__super__.constructor.call(this, parent);
|
|
245847
|
-
if (isObject(
|
|
245848
|
-
ref =
|
|
245847
|
+
if (isObject(version5)) {
|
|
245848
|
+
ref = version5, version5 = ref.version, encoding = ref.encoding, standalone = ref.standalone;
|
|
245849
245849
|
}
|
|
245850
|
-
if (!
|
|
245851
|
-
|
|
245850
|
+
if (!version5) {
|
|
245851
|
+
version5 = "1.0";
|
|
245852
245852
|
}
|
|
245853
245853
|
this.type = NodeType.Declaration;
|
|
245854
|
-
this.version = this.stringify.xmlVersion(
|
|
245854
|
+
this.version = this.stringify.xmlVersion(version5);
|
|
245855
245855
|
if (encoding != null) {
|
|
245856
245856
|
this.encoding = this.stringify.xmlEncoding(encoding);
|
|
245857
245857
|
}
|
|
@@ -246906,10 +246906,10 @@ var require_XMLNode = __commonJS({
|
|
|
246906
246906
|
Array.prototype.push.apply(this.parent.children, removed);
|
|
246907
246907
|
return this;
|
|
246908
246908
|
};
|
|
246909
|
-
XMLNode2.prototype.declaration = function(
|
|
246909
|
+
XMLNode2.prototype.declaration = function(version5, encoding, standalone) {
|
|
246910
246910
|
var doc, xmldec;
|
|
246911
246911
|
doc = this.document();
|
|
246912
|
-
xmldec = new XMLDeclaration(doc,
|
|
246912
|
+
xmldec = new XMLDeclaration(doc, version5, encoding, standalone);
|
|
246913
246913
|
if (doc.children.length === 0) {
|
|
246914
246914
|
doc.children.unshift(xmldec);
|
|
246915
246915
|
} else if (doc.children[0].type === NodeType.Declaration) {
|
|
@@ -247033,8 +247033,8 @@ var require_XMLNode = __commonJS({
|
|
|
247033
247033
|
XMLNode2.prototype.doc = function() {
|
|
247034
247034
|
return this.document();
|
|
247035
247035
|
};
|
|
247036
|
-
XMLNode2.prototype.dec = function(
|
|
247037
|
-
return this.declaration(
|
|
247036
|
+
XMLNode2.prototype.dec = function(version5, encoding, standalone) {
|
|
247037
|
+
return this.declaration(version5, encoding, standalone);
|
|
247038
247038
|
};
|
|
247039
247039
|
XMLNode2.prototype.e = function(name10, attributes, text2) {
|
|
247040
247040
|
return this.element(name10, attributes, text2);
|
|
@@ -247081,7 +247081,7 @@ var require_XMLNode = __commonJS({
|
|
|
247081
247081
|
XMLNode2.prototype.normalize = function() {
|
|
247082
247082
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
247083
247083
|
};
|
|
247084
|
-
XMLNode2.prototype.isSupported = function(feature,
|
|
247084
|
+
XMLNode2.prototype.isSupported = function(feature, version5) {
|
|
247085
247085
|
return true;
|
|
247086
247086
|
};
|
|
247087
247087
|
XMLNode2.prototype.hasAttributes = function() {
|
|
@@ -247137,7 +247137,7 @@ var require_XMLNode = __commonJS({
|
|
|
247137
247137
|
}
|
|
247138
247138
|
return true;
|
|
247139
247139
|
};
|
|
247140
|
-
XMLNode2.prototype.getFeature = function(feature,
|
|
247140
|
+
XMLNode2.prototype.getFeature = function(feature, version5) {
|
|
247141
247141
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
247142
247142
|
};
|
|
247143
247143
|
XMLNode2.prototype.setUserData = function(key, data, handler) {
|
|
@@ -248334,13 +248334,13 @@ var require_XMLDocumentCB = __commonJS({
|
|
|
248334
248334
|
}
|
|
248335
248335
|
return this;
|
|
248336
248336
|
};
|
|
248337
|
-
XMLDocumentCB2.prototype.declaration = function(
|
|
248337
|
+
XMLDocumentCB2.prototype.declaration = function(version5, encoding, standalone) {
|
|
248338
248338
|
var node;
|
|
248339
248339
|
this.openCurrent();
|
|
248340
248340
|
if (this.documentStarted) {
|
|
248341
248341
|
throw new Error("declaration() must be the first node.");
|
|
248342
248342
|
}
|
|
248343
|
-
node = new XMLDeclaration(this,
|
|
248343
|
+
node = new XMLDeclaration(this, version5, encoding, standalone);
|
|
248344
248344
|
this.onData(this.writer.declaration(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
|
|
248345
248345
|
return this;
|
|
248346
248346
|
};
|
|
@@ -248511,8 +248511,8 @@ var require_XMLDocumentCB = __commonJS({
|
|
|
248511
248511
|
XMLDocumentCB2.prototype.ins = function(target, value2) {
|
|
248512
248512
|
return this.instruction(target, value2);
|
|
248513
248513
|
};
|
|
248514
|
-
XMLDocumentCB2.prototype.dec = function(
|
|
248515
|
-
return this.declaration(
|
|
248514
|
+
XMLDocumentCB2.prototype.dec = function(version5, encoding, standalone) {
|
|
248515
|
+
return this.declaration(version5, encoding, standalone);
|
|
248516
248516
|
};
|
|
248517
248517
|
XMLDocumentCB2.prototype.dtd = function(root, pubID, sysID) {
|
|
248518
248518
|
return this.doctype(root, pubID, sysID);
|
|
@@ -253196,9 +253196,9 @@ var require_detect_browser = __commonJS({
|
|
|
253196
253196
|
var BrowserInfo = (
|
|
253197
253197
|
/** @class */
|
|
253198
253198
|
/* @__PURE__ */ (function() {
|
|
253199
|
-
function BrowserInfo2(name10,
|
|
253199
|
+
function BrowserInfo2(name10, version5, os9) {
|
|
253200
253200
|
this.name = name10;
|
|
253201
|
-
this.version =
|
|
253201
|
+
this.version = version5;
|
|
253202
253202
|
this.os = os9;
|
|
253203
253203
|
this.type = "browser";
|
|
253204
253204
|
}
|
|
@@ -253209,8 +253209,8 @@ var require_detect_browser = __commonJS({
|
|
|
253209
253209
|
var NodeInfo = (
|
|
253210
253210
|
/** @class */
|
|
253211
253211
|
/* @__PURE__ */ (function() {
|
|
253212
|
-
function NodeInfo2(
|
|
253213
|
-
this.version =
|
|
253212
|
+
function NodeInfo2(version5) {
|
|
253213
|
+
this.version = version5;
|
|
253214
253214
|
this.type = "node";
|
|
253215
253215
|
this.name = "node";
|
|
253216
253216
|
this.os = process.platform;
|
|
@@ -253222,9 +253222,9 @@ var require_detect_browser = __commonJS({
|
|
|
253222
253222
|
var SearchBotDeviceInfo = (
|
|
253223
253223
|
/** @class */
|
|
253224
253224
|
/* @__PURE__ */ (function() {
|
|
253225
|
-
function SearchBotDeviceInfo2(name10,
|
|
253225
|
+
function SearchBotDeviceInfo2(name10, version5, os9, bot) {
|
|
253226
253226
|
this.name = name10;
|
|
253227
|
-
this.version =
|
|
253227
|
+
this.version = version5;
|
|
253228
253228
|
this.os = os9;
|
|
253229
253229
|
this.bot = bot;
|
|
253230
253230
|
this.type = "bot-device";
|
|
@@ -253376,13 +253376,13 @@ var require_detect_browser = __commonJS({
|
|
|
253376
253376
|
} else {
|
|
253377
253377
|
versionParts = [];
|
|
253378
253378
|
}
|
|
253379
|
-
var
|
|
253379
|
+
var version5 = versionParts.join(".");
|
|
253380
253380
|
var os9 = detectOS(ua);
|
|
253381
253381
|
var searchBotMatch = SEARCHBOT_OS_REGEX.exec(ua);
|
|
253382
253382
|
if (searchBotMatch && searchBotMatch[1]) {
|
|
253383
|
-
return new SearchBotDeviceInfo(name10,
|
|
253383
|
+
return new SearchBotDeviceInfo(name10, version5, os9, searchBotMatch[1]);
|
|
253384
253384
|
}
|
|
253385
|
-
return new BrowserInfo(name10,
|
|
253385
|
+
return new BrowserInfo(name10, version5, os9);
|
|
253386
253386
|
}
|
|
253387
253387
|
exports.parseUserAgent = parseUserAgent;
|
|
253388
253388
|
function detectOS(ua) {
|
|
@@ -260412,7 +260412,7 @@ var require_websocket_server = __commonJS({
|
|
|
260412
260412
|
socket.on("error", socketOnError);
|
|
260413
260413
|
const key = req3.headers["sec-websocket-key"];
|
|
260414
260414
|
const upgrade = req3.headers.upgrade;
|
|
260415
|
-
const
|
|
260415
|
+
const version5 = +req3.headers["sec-websocket-version"];
|
|
260416
260416
|
if (req3.method !== "GET") {
|
|
260417
260417
|
const message2 = "Invalid HTTP method";
|
|
260418
260418
|
abortHandshakeOrEmitwsClientError(this, req3, socket, 405, message2);
|
|
@@ -260428,7 +260428,7 @@ var require_websocket_server = __commonJS({
|
|
|
260428
260428
|
abortHandshakeOrEmitwsClientError(this, req3, socket, 400, message2);
|
|
260429
260429
|
return;
|
|
260430
260430
|
}
|
|
260431
|
-
if (
|
|
260431
|
+
if (version5 !== 13 && version5 !== 8) {
|
|
260432
260432
|
const message2 = "Missing or invalid Sec-WebSocket-Version header";
|
|
260433
260433
|
abortHandshakeOrEmitwsClientError(this, req3, socket, 400, message2, {
|
|
260434
260434
|
"Sec-WebSocket-Version": "13, 8"
|
|
@@ -260472,7 +260472,7 @@ var require_websocket_server = __commonJS({
|
|
|
260472
260472
|
}
|
|
260473
260473
|
if (this.options.verifyClient) {
|
|
260474
260474
|
const info = {
|
|
260475
|
-
origin: req3.headers[`${
|
|
260475
|
+
origin: req3.headers[`${version5 === 8 ? "sec-websocket-origin" : "origin"}`],
|
|
260476
260476
|
secure: !!(req3.socket.authorized || req3.socket.encrypted),
|
|
260477
260477
|
req: req3
|
|
260478
260478
|
};
|
|
@@ -273328,8 +273328,8 @@ Justification: ${justification || "(none provided)"}`,
|
|
|
273328
273328
|
const { createHash: createHash46 } = await import("node:crypto");
|
|
273329
273329
|
const snapshotDir = join43(this.cwd, ".omnius", "identity", "snapshots");
|
|
273330
273330
|
await mkdir7(snapshotDir, { recursive: true });
|
|
273331
|
-
const
|
|
273332
|
-
const snapshotPath = join43(snapshotDir, `v${
|
|
273331
|
+
const version5 = this.selfState.version;
|
|
273332
|
+
const snapshotPath = join43(snapshotDir, `v${version5}.json`);
|
|
273333
273333
|
await writeFile12(snapshotPath, snapshot, "utf8");
|
|
273334
273334
|
const hash = createHash46("sha256").update(snapshot).digest("hex");
|
|
273335
273335
|
await writeFile12(join43(this.cwd, ".omnius", "identity", "latest-hash.txt"), hash, "utf8");
|
|
@@ -273353,7 +273353,7 @@ Justification: ${justification || "(none provided)"}`,
|
|
|
273353
273353
|
cids = JSON.parse(await readFile11(cidsFile, "utf8"));
|
|
273354
273354
|
} catch {
|
|
273355
273355
|
}
|
|
273356
|
-
cids[`v${
|
|
273356
|
+
cids[`v${version5}`] = ipfsCid;
|
|
273357
273357
|
cids["latest"] = ipfsCid;
|
|
273358
273358
|
await writeFile12(cidsFile, JSON.stringify(cids, null, 2), "utf8");
|
|
273359
273359
|
}
|
|
@@ -273361,7 +273361,7 @@ Justification: ${justification || "(none provided)"}`,
|
|
|
273361
273361
|
}
|
|
273362
273362
|
return {
|
|
273363
273363
|
success: true,
|
|
273364
|
-
output: `Identity kernel v${
|
|
273364
|
+
output: `Identity kernel v${version5} published.
|
|
273365
273365
|
Hash: ${hash.slice(0, 16)}...
|
|
273366
273366
|
` + (ipfsCid ? `CID: ${ipfsCid}
|
|
273367
273367
|
` : "") + `Path: ${snapshotPath}
|
|
@@ -292362,8 +292362,8 @@ async function installOpencode() {
|
|
|
292362
292362
|
}
|
|
292363
292363
|
const binary = await findOpencode();
|
|
292364
292364
|
if (binary) {
|
|
292365
|
-
const
|
|
292366
|
-
return { success: true, message: `opencode installed successfully (${
|
|
292365
|
+
const version5 = await getVersion(binary);
|
|
292366
|
+
return { success: true, message: `opencode installed successfully (${version5}) at ${binary}` };
|
|
292367
292367
|
}
|
|
292368
292368
|
return { success: false, message: "Install script completed but opencode binary not found in PATH" };
|
|
292369
292369
|
} catch (err) {
|
|
@@ -292448,10 +292448,10 @@ var init_opencode = __esm({
|
|
|
292448
292448
|
async doInstall(start2) {
|
|
292449
292449
|
const existing = await findOpencode();
|
|
292450
292450
|
if (existing) {
|
|
292451
|
-
const
|
|
292451
|
+
const version5 = await getVersion(existing);
|
|
292452
292452
|
return {
|
|
292453
292453
|
success: true,
|
|
292454
|
-
output: `opencode is already installed at ${existing} (${
|
|
292454
|
+
output: `opencode is already installed at ${existing} (${version5}). No action needed.`,
|
|
292455
292455
|
durationMs: performance.now() - start2
|
|
292456
292456
|
};
|
|
292457
292457
|
}
|
|
@@ -292559,13 +292559,13 @@ var init_opencode = __esm({
|
|
|
292559
292559
|
async doStatus(start2) {
|
|
292560
292560
|
const binary = await findOpencode();
|
|
292561
292561
|
if (binary) {
|
|
292562
|
-
const
|
|
292562
|
+
const version5 = await getVersion(binary);
|
|
292563
292563
|
return {
|
|
292564
292564
|
success: true,
|
|
292565
292565
|
output: [
|
|
292566
292566
|
`opencode is installed`,
|
|
292567
292567
|
` Binary: ${binary}`,
|
|
292568
|
-
` Version: ${
|
|
292568
|
+
` Version: ${version5}`,
|
|
292569
292569
|
``,
|
|
292570
292570
|
`Usage: opencode(action='run', task='your coding task here')`,
|
|
292571
292571
|
` The task runs fully autonomously (non-interactive).`,
|
|
@@ -292637,8 +292637,8 @@ function installDroid() {
|
|
|
292637
292637
|
}
|
|
292638
292638
|
const binary = findDroid();
|
|
292639
292639
|
if (binary) {
|
|
292640
|
-
const
|
|
292641
|
-
return { success: true, message: `Factory CLI installed successfully (${
|
|
292640
|
+
const version5 = getVersion2(binary);
|
|
292641
|
+
return { success: true, message: `Factory CLI installed successfully (${version5}) at ${binary}` };
|
|
292642
292642
|
}
|
|
292643
292643
|
return { success: false, message: "Install script completed but droid binary not found in PATH" };
|
|
292644
292644
|
} catch (err) {
|
|
@@ -292736,10 +292736,10 @@ var init_factory = __esm({
|
|
|
292736
292736
|
doInstall(start2) {
|
|
292737
292737
|
const existing = findDroid();
|
|
292738
292738
|
if (existing) {
|
|
292739
|
-
const
|
|
292739
|
+
const version5 = getVersion2(existing);
|
|
292740
292740
|
return {
|
|
292741
292741
|
success: true,
|
|
292742
|
-
output: `Factory CLI (droid) is already installed at ${existing} (${
|
|
292742
|
+
output: `Factory CLI (droid) is already installed at ${existing} (${version5}). No action needed.`,
|
|
292743
292743
|
durationMs: performance.now() - start2
|
|
292744
292744
|
};
|
|
292745
292745
|
}
|
|
@@ -292865,11 +292865,11 @@ var init_factory = __esm({
|
|
|
292865
292865
|
const binary = findDroid();
|
|
292866
292866
|
const hasApiKey = !!process.env.FACTORY_API_KEY;
|
|
292867
292867
|
if (binary) {
|
|
292868
|
-
const
|
|
292868
|
+
const version5 = getVersion2(binary);
|
|
292869
292869
|
const lines = [
|
|
292870
292870
|
`Factory CLI (droid) is installed`,
|
|
292871
292871
|
` Binary: ${binary}`,
|
|
292872
|
-
` Version: ${
|
|
292872
|
+
` Version: ${version5}`,
|
|
292873
292873
|
` API Key: ${hasApiKey ? "set" : "NOT SET — export FACTORY_API_KEY=fk-..."}`,
|
|
292874
292874
|
``,
|
|
292875
292875
|
`Usage: factory(action='run', task='your coding task', auto='low')`,
|
|
@@ -298169,15 +298169,15 @@ var require_source_map_consumer = __commonJS({
|
|
|
298169
298169
|
if (typeof aSourceMap === "string") {
|
|
298170
298170
|
sourceMap = util2.parseSourceMapInput(aSourceMap);
|
|
298171
298171
|
}
|
|
298172
|
-
var
|
|
298172
|
+
var version5 = util2.getArg(sourceMap, "version");
|
|
298173
298173
|
var sources = util2.getArg(sourceMap, "sources");
|
|
298174
298174
|
var names = util2.getArg(sourceMap, "names", []);
|
|
298175
298175
|
var sourceRoot = util2.getArg(sourceMap, "sourceRoot", null);
|
|
298176
298176
|
var sourcesContent = util2.getArg(sourceMap, "sourcesContent", null);
|
|
298177
298177
|
var mappings = util2.getArg(sourceMap, "mappings");
|
|
298178
298178
|
var file = util2.getArg(sourceMap, "file", null);
|
|
298179
|
-
if (
|
|
298180
|
-
throw new Error("Unsupported version: " +
|
|
298179
|
+
if (version5 != this._version) {
|
|
298180
|
+
throw new Error("Unsupported version: " + version5);
|
|
298181
298181
|
}
|
|
298182
298182
|
if (sourceRoot) {
|
|
298183
298183
|
sourceRoot = util2.normalize(sourceRoot);
|
|
@@ -298482,10 +298482,10 @@ var require_source_map_consumer = __commonJS({
|
|
|
298482
298482
|
if (typeof aSourceMap === "string") {
|
|
298483
298483
|
sourceMap = util2.parseSourceMapInput(aSourceMap);
|
|
298484
298484
|
}
|
|
298485
|
-
var
|
|
298485
|
+
var version5 = util2.getArg(sourceMap, "version");
|
|
298486
298486
|
var sections = util2.getArg(sourceMap, "sections");
|
|
298487
|
-
if (
|
|
298488
|
-
throw new Error("Unsupported version: " +
|
|
298487
|
+
if (version5 != this._version) {
|
|
298488
|
+
throw new Error("Unsupported version: " + version5);
|
|
298489
298489
|
}
|
|
298490
298490
|
this._sources = new ArraySet();
|
|
298491
298491
|
this._names = new ArraySet();
|
|
@@ -301683,7 +301683,7 @@ var require_typescript = __commonJS({
|
|
|
301683
301683
|
usingSingleLineStringWriter: () => usingSingleLineStringWriter,
|
|
301684
301684
|
utf16EncodeAsString: () => utf16EncodeAsString,
|
|
301685
301685
|
validateLocaleAndSetLanguage: () => validateLocaleAndSetLanguage,
|
|
301686
|
-
version: () =>
|
|
301686
|
+
version: () => version5,
|
|
301687
301687
|
versionMajorMinor: () => versionMajorMinor,
|
|
301688
301688
|
visitArray: () => visitArray,
|
|
301689
301689
|
visitCommaListElements: () => visitCommaListElements,
|
|
@@ -301707,7 +301707,7 @@ var require_typescript = __commonJS({
|
|
|
301707
301707
|
});
|
|
301708
301708
|
module2.exports = __toCommonJS2(typescript_exports);
|
|
301709
301709
|
var versionMajorMinor = "6.0";
|
|
301710
|
-
var
|
|
301710
|
+
var version5 = "6.0.2";
|
|
301711
301711
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
301712
301712
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
301713
301713
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -346953,7 +346953,7 @@ ${lanes.join("\n")}
|
|
|
346953
346953
|
}
|
|
346954
346954
|
var typeScriptVersion;
|
|
346955
346955
|
function getPackageJsonTypesVersionsPaths(typesVersions) {
|
|
346956
|
-
if (!typeScriptVersion) typeScriptVersion = new Version(
|
|
346956
|
+
if (!typeScriptVersion) typeScriptVersion = new Version(version5);
|
|
346957
346957
|
for (const key in typesVersions) {
|
|
346958
346958
|
if (!hasProperty(typesVersions, key)) continue;
|
|
346959
346959
|
const keyRange = VersionRange.tryParse(key);
|
|
@@ -348602,7 +348602,7 @@ ${lanes.join("\n")}
|
|
|
348602
348602
|
false
|
|
348603
348603
|
);
|
|
348604
348604
|
if (state.traceEnabled) {
|
|
348605
|
-
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version,
|
|
348605
|
+
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version5, moduleName);
|
|
348606
348606
|
}
|
|
348607
348607
|
const pathPatterns = tryParsePatterns(versionPaths.paths);
|
|
348608
348608
|
const result = tryLoadModuleUsingPaths(extensions, moduleName, candidate, versionPaths.paths, pathPatterns, loader, onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex, state);
|
|
@@ -349083,7 +349083,7 @@ ${lanes.join("\n")}
|
|
|
349083
349083
|
if (!startsWith(key, "types@")) return false;
|
|
349084
349084
|
const range = VersionRange.tryParse(key.substring("types@".length));
|
|
349085
349085
|
if (!range) return false;
|
|
349086
|
-
return range.test(
|
|
349086
|
+
return range.test(version5);
|
|
349087
349087
|
}
|
|
349088
349088
|
function loadModuleFromNearestNodeModulesDirectory(extensions, moduleName, directory, state, cache8, redirectedReference) {
|
|
349089
349089
|
return loadModuleFromNearestNodeModulesDirectoryWorker(
|
|
@@ -349219,7 +349219,7 @@ ${lanes.join("\n")}
|
|
|
349219
349219
|
const versionPaths = rest !== "" && packageInfo ? getVersionPathsOfPackageJsonInfo(packageInfo, state) : void 0;
|
|
349220
349220
|
if (versionPaths) {
|
|
349221
349221
|
if (state.traceEnabled) {
|
|
349222
|
-
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version,
|
|
349222
|
+
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version5, rest);
|
|
349223
349223
|
}
|
|
349224
349224
|
const packageDirectoryExists = nodeModulesDirectoryExists && directoryProbablyExists(packageDirectory, state.host);
|
|
349225
349225
|
const pathPatterns = tryParsePatterns(versionPaths.paths);
|
|
@@ -429676,7 +429676,7 @@ ${lanes.join("\n")}
|
|
|
429676
429676
|
emitSkipped = true;
|
|
429677
429677
|
return;
|
|
429678
429678
|
}
|
|
429679
|
-
const buildInfo = host.getBuildInfo() || { version:
|
|
429679
|
+
const buildInfo = host.getBuildInfo() || { version: version5 };
|
|
429680
429680
|
writeFile26(
|
|
429681
429681
|
host,
|
|
429682
429682
|
emitterDiagnostics,
|
|
@@ -440483,7 +440483,7 @@ ${lanes.join("\n")}
|
|
|
440483
440483
|
root: arrayFrom(rootFileNames, (r2) => relativeToBuildInfo(r2)),
|
|
440484
440484
|
errors: state.hasErrors ? true : void 0,
|
|
440485
440485
|
checkPending: state.checkPending,
|
|
440486
|
-
version:
|
|
440486
|
+
version: version5
|
|
440487
440487
|
};
|
|
440488
440488
|
return buildInfo2;
|
|
440489
440489
|
}
|
|
@@ -440515,7 +440515,7 @@ ${lanes.join("\n")}
|
|
|
440515
440515
|
// Actual value
|
|
440516
440516
|
errors: state.hasErrors ? true : void 0,
|
|
440517
440517
|
checkPending: state.checkPending,
|
|
440518
|
-
version:
|
|
440518
|
+
version: version5
|
|
440519
440519
|
};
|
|
440520
440520
|
return buildInfo2;
|
|
440521
440521
|
}
|
|
@@ -440612,7 +440612,7 @@ ${lanes.join("\n")}
|
|
|
440612
440612
|
latestChangedDtsFile,
|
|
440613
440613
|
errors: state.hasErrors ? true : void 0,
|
|
440614
440614
|
checkPending: state.checkPending,
|
|
440615
|
-
version:
|
|
440615
|
+
version: version5
|
|
440616
440616
|
};
|
|
440617
440617
|
return buildInfo;
|
|
440618
440618
|
function relativeToBuildInfoEnsuringAbsolutePath(path12) {
|
|
@@ -443301,7 +443301,7 @@ ${lanes.join("\n")}
|
|
|
443301
443301
|
if (!content) return void 0;
|
|
443302
443302
|
buildInfo = getBuildInfo(buildInfoPath, content);
|
|
443303
443303
|
}
|
|
443304
|
-
if (!buildInfo || buildInfo.version !==
|
|
443304
|
+
if (!buildInfo || buildInfo.version !== version5 || !isIncrementalBuildInfo(buildInfo)) return void 0;
|
|
443305
443305
|
return createBuilderProgramUsingIncrementalBuildInfo(buildInfo, buildInfoPath, host);
|
|
443306
443306
|
}
|
|
443307
443307
|
function createIncrementalCompilerHost(options2, system = sys) {
|
|
@@ -445004,7 +445004,7 @@ ${lanes.join("\n")}
|
|
|
445004
445004
|
};
|
|
445005
445005
|
}
|
|
445006
445006
|
const incrementalBuildInfo = isIncremental && isIncrementalBuildInfo(buildInfo) ? buildInfo : void 0;
|
|
445007
|
-
if ((incrementalBuildInfo || !isIncremental) && buildInfo.version !==
|
|
445007
|
+
if ((incrementalBuildInfo || !isIncremental) && buildInfo.version !== version5) {
|
|
445008
445008
|
return {
|
|
445009
445009
|
type: 14,
|
|
445010
445010
|
version: buildInfo.version
|
|
@@ -445823,7 +445823,7 @@ ${lanes.join("\n")}
|
|
|
445823
445823
|
Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,
|
|
445824
445824
|
relName(state, configFileName),
|
|
445825
445825
|
status.version,
|
|
445826
|
-
|
|
445826
|
+
version5
|
|
445827
445827
|
);
|
|
445828
445828
|
case 17:
|
|
445829
445829
|
return reportStatus(
|
|
@@ -445918,7 +445918,7 @@ ${lanes.join("\n")}
|
|
|
445918
445918
|
return !!commandLine.options.all ? toSorted(helpOptions, (a2, b) => compareStringsCaseInsensitive(a2.name, b.name)) : filter2(helpOptions, (v) => !!v.showInSimplifiedHelpView);
|
|
445919
445919
|
}
|
|
445920
445920
|
function printVersion(sys2) {
|
|
445921
|
-
sys2.write(getDiagnosticText(Diagnostics.Version_0,
|
|
445921
|
+
sys2.write(getDiagnosticText(Diagnostics.Version_0, version5) + sys2.newLine);
|
|
445922
445922
|
}
|
|
445923
445923
|
function createColors(sys2) {
|
|
445924
445924
|
const showColors = defaultIsPretty(sys2);
|
|
@@ -446170,7 +446170,7 @@ ${lanes.join("\n")}
|
|
|
446170
446170
|
}
|
|
446171
446171
|
function printEasyHelp(sys2, simpleOptions) {
|
|
446172
446172
|
const colors2 = createColors(sys2);
|
|
446173
|
-
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0,
|
|
446173
|
+
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version5)}`)];
|
|
446174
446174
|
output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
|
|
446175
446175
|
example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
|
|
446176
446176
|
example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
|
|
@@ -446217,7 +446217,7 @@ ${lanes.join("\n")}
|
|
|
446217
446217
|
}
|
|
446218
446218
|
}
|
|
446219
446219
|
function printAllHelp(sys2, compilerOptions, buildOptions, watchOptions) {
|
|
446220
|
-
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0,
|
|
446220
|
+
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version5)}`)];
|
|
446221
446221
|
output = [...output, ...generateSectionOptionsOutput(
|
|
446222
446222
|
sys2,
|
|
446223
446223
|
getDiagnosticText(Diagnostics.ALL_COMPILER_OPTIONS),
|
|
@@ -446249,7 +446249,7 @@ ${lanes.join("\n")}
|
|
|
446249
446249
|
}
|
|
446250
446250
|
}
|
|
446251
446251
|
function printBuildHelp(sys2, buildOptions) {
|
|
446252
|
-
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0,
|
|
446252
|
+
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version5)}`)];
|
|
446253
446253
|
output = [...output, ...generateSectionOptionsOutput(
|
|
446254
446254
|
sys2,
|
|
446255
446255
|
getDiagnosticText(Diagnostics.BUILD_OPTIONS),
|
|
@@ -497934,7 +497934,7 @@ ${options2.prefix}` : "\n" : options2.prefix
|
|
|
497934
497934
|
usingSingleLineStringWriter: () => usingSingleLineStringWriter,
|
|
497935
497935
|
utf16EncodeAsString: () => utf16EncodeAsString,
|
|
497936
497936
|
validateLocaleAndSetLanguage: () => validateLocaleAndSetLanguage,
|
|
497937
|
-
version: () =>
|
|
497937
|
+
version: () => version5,
|
|
497938
497938
|
versionMajorMinor: () => versionMajorMinor,
|
|
497939
497939
|
visitArray: () => visitArray,
|
|
497940
497940
|
visitCommaListElements: () => visitCommaListElements,
|
|
@@ -497959,7 +497959,7 @@ ${options2.prefix}` : "\n" : options2.prefix
|
|
|
497959
497959
|
var enableDeprecationWarnings = true;
|
|
497960
497960
|
var typeScriptVersion2;
|
|
497961
497961
|
function getTypeScriptVersion() {
|
|
497962
|
-
return typeScriptVersion2 ?? (typeScriptVersion2 = new Version(
|
|
497962
|
+
return typeScriptVersion2 ?? (typeScriptVersion2 = new Version(version5));
|
|
497963
497963
|
}
|
|
497964
497964
|
function formatDeprecationMessage(name10, error2, errorAfter, since, message2) {
|
|
497965
497965
|
let deprecationMessage = error2 ? "DeprecationError: " : "DeprecationWarning: ";
|
|
@@ -498468,7 +498468,7 @@ ${options2.prefix}` : "\n" : options2.prefix
|
|
|
498468
498468
|
this.sendResponse({
|
|
498469
498469
|
kind: EventBeginInstallTypes,
|
|
498470
498470
|
eventId: requestId,
|
|
498471
|
-
typingsInstallerVersion:
|
|
498471
|
+
typingsInstallerVersion: version5,
|
|
498472
498472
|
projectName: req3.projectName
|
|
498473
498473
|
});
|
|
498474
498474
|
const scopedTypings = filteredTypings.map(typingsName);
|
|
@@ -498510,7 +498510,7 @@ ${options2.prefix}` : "\n" : options2.prefix
|
|
|
498510
498510
|
projectName: req3.projectName,
|
|
498511
498511
|
packagesToInstall: scopedTypings,
|
|
498512
498512
|
installSuccess: ok3,
|
|
498513
|
-
typingsInstallerVersion:
|
|
498513
|
+
typingsInstallerVersion: version5
|
|
498514
498514
|
};
|
|
498515
498515
|
this.sendResponse(response);
|
|
498516
498516
|
}
|
|
@@ -503566,7 +503566,7 @@ ${options2.prefix}` : "\n" : options2.prefix
|
|
|
503566
503566
|
configFileName: configFileName(),
|
|
503567
503567
|
projectType: project instanceof ExternalProject ? "external" : "configured",
|
|
503568
503568
|
languageServiceEnabled: project.languageServiceEnabled,
|
|
503569
|
-
version:
|
|
503569
|
+
version: version5
|
|
503570
503570
|
};
|
|
503571
503571
|
this.eventHandler({ eventName: ProjectInfoTelemetryEvent, data });
|
|
503572
503572
|
function configFileName() {
|
|
@@ -506534,7 +506534,7 @@ ${json}${newLine}`;
|
|
|
506534
506534
|
"status"
|
|
506535
506535
|
/* Status */
|
|
506536
506536
|
]: () => {
|
|
506537
|
-
const response = { version:
|
|
506537
|
+
const response = { version: version5 };
|
|
506538
506538
|
return this.requiredResponse(response);
|
|
506539
506539
|
},
|
|
506540
506540
|
[
|
|
@@ -516599,8 +516599,8 @@ ${nodeLocation}` : message2;
|
|
|
516599
516599
|
this.#cacheItems.delete(key);
|
|
516600
516600
|
}
|
|
516601
516601
|
};
|
|
516602
|
-
function createCompilerSourceFile(filePath, scriptSnapshot, optionsOrScriptTarget,
|
|
516603
|
-
return ts__namespace.createLanguageServiceSourceFile(filePath, scriptSnapshot, optionsOrScriptTarget ?? ts__namespace.ScriptTarget.Latest,
|
|
516602
|
+
function createCompilerSourceFile(filePath, scriptSnapshot, optionsOrScriptTarget, version5, setParentNodes, scriptKind) {
|
|
516603
|
+
return ts__namespace.createLanguageServiceSourceFile(filePath, scriptSnapshot, optionsOrScriptTarget ?? ts__namespace.ScriptTarget.Latest, version5, setParentNodes, scriptKind);
|
|
516604
516604
|
}
|
|
516605
516605
|
function createDocumentCache(files) {
|
|
516606
516606
|
const cache8 = new InternalDocumentCache();
|
|
@@ -517245,7 +517245,7 @@ ${nodeLocation}` : message2;
|
|
|
517245
517245
|
}
|
|
517246
517246
|
function createHosts(options2) {
|
|
517247
517247
|
const { transactionalFileSystem, sourceFileContainer, compilerOptions, getNewLine, resolutionHost, getProjectVersion, isKnownTypesPackageName } = options2;
|
|
517248
|
-
let
|
|
517248
|
+
let version5 = 0;
|
|
517249
517249
|
const libFolderPath = transactionalFileSystem.getStandardizedAbsolutePath(getLibFolderPath(options2));
|
|
517250
517250
|
const fileExistsSync = (path13) => sourceFileContainer.containsSourceFileAtPath(path13) || transactionalFileSystem.fileExistsSync(path13);
|
|
517251
517251
|
const languageServiceHost = {
|
|
@@ -517257,7 +517257,7 @@ ${nodeLocation}` : message2;
|
|
|
517257
517257
|
const filePath = transactionalFileSystem.getStandardizedAbsolutePath(fileName);
|
|
517258
517258
|
const sourceFile = sourceFileContainer.getSourceFileFromCacheFromFilePath(filePath);
|
|
517259
517259
|
if (sourceFile == null)
|
|
517260
|
-
return (
|
|
517260
|
+
return (version5++).toString();
|
|
517261
517261
|
return sourceFileContainer.getSourceFileVersion(sourceFile);
|
|
517262
517262
|
},
|
|
517263
517263
|
getScriptSnapshot: (fileName) => {
|
|
@@ -518662,21 +518662,21 @@ ${nodeLocation}` : message2;
|
|
|
518662
518662
|
removeSourceFile(fileName) {
|
|
518663
518663
|
this.#sourceFileCacheByFilePath.delete(fileName);
|
|
518664
518664
|
}
|
|
518665
|
-
acquireDocument(fileName, compilationSettings, scriptSnapshot,
|
|
518665
|
+
acquireDocument(fileName, compilationSettings, scriptSnapshot, version5, scriptKind) {
|
|
518666
518666
|
const standardizedFilePath = this.#transactionalFileSystem.getStandardizedAbsolutePath(fileName);
|
|
518667
518667
|
let sourceFile = this.#sourceFileCacheByFilePath.get(standardizedFilePath);
|
|
518668
|
-
if (sourceFile == null || this.getSourceFileVersion(sourceFile) !==
|
|
518669
|
-
sourceFile = this.#updateSourceFile(standardizedFilePath, compilationSettings, scriptSnapshot,
|
|
518668
|
+
if (sourceFile == null || this.getSourceFileVersion(sourceFile) !== version5)
|
|
518669
|
+
sourceFile = this.#updateSourceFile(standardizedFilePath, compilationSettings, scriptSnapshot, version5, scriptKind);
|
|
518670
518670
|
return sourceFile;
|
|
518671
518671
|
}
|
|
518672
|
-
acquireDocumentWithKey(fileName, path13, compilationSettings, key, scriptSnapshot,
|
|
518673
|
-
return this.acquireDocument(fileName, compilationSettings, scriptSnapshot,
|
|
518672
|
+
acquireDocumentWithKey(fileName, path13, compilationSettings, key, scriptSnapshot, version5, scriptKind) {
|
|
518673
|
+
return this.acquireDocument(fileName, compilationSettings, scriptSnapshot, version5, scriptKind);
|
|
518674
518674
|
}
|
|
518675
|
-
updateDocument(fileName, compilationSettings, scriptSnapshot,
|
|
518676
|
-
return this.acquireDocument(fileName, compilationSettings, scriptSnapshot,
|
|
518675
|
+
updateDocument(fileName, compilationSettings, scriptSnapshot, version5, scriptKind) {
|
|
518676
|
+
return this.acquireDocument(fileName, compilationSettings, scriptSnapshot, version5, scriptKind);
|
|
518677
518677
|
}
|
|
518678
|
-
updateDocumentWithKey(fileName, path13, compilationSettings, key, scriptSnapshot,
|
|
518679
|
-
return this.updateDocument(fileName, compilationSettings, scriptSnapshot,
|
|
518678
|
+
updateDocumentWithKey(fileName, path13, compilationSettings, key, scriptSnapshot, version5, scriptKind) {
|
|
518679
|
+
return this.updateDocument(fileName, compilationSettings, scriptSnapshot, version5, scriptKind);
|
|
518680
518680
|
}
|
|
518681
518681
|
getKeyForCompilationSettings(settings) {
|
|
518682
518682
|
return "defaultKey";
|
|
@@ -518695,8 +518695,8 @@ ${nodeLocation}` : message2;
|
|
|
518695
518695
|
const currentVersion = parseInt(this.getSourceFileVersion(sourceFile), 10) || 0;
|
|
518696
518696
|
return (currentVersion + 1).toString();
|
|
518697
518697
|
}
|
|
518698
|
-
#updateSourceFile(fileName, compilationSettings, scriptSnapshot,
|
|
518699
|
-
const newSourceFile = createCompilerSourceFile(fileName, scriptSnapshot, compilationSettings.target,
|
|
518698
|
+
#updateSourceFile(fileName, compilationSettings, scriptSnapshot, version5, scriptKind) {
|
|
518699
|
+
const newSourceFile = createCompilerSourceFile(fileName, scriptSnapshot, compilationSettings.target, version5, true, scriptKind);
|
|
518700
518700
|
this.#sourceFileCacheByFilePath.set(fileName, newSourceFile);
|
|
518701
518701
|
return newSourceFile;
|
|
518702
518702
|
}
|
|
@@ -550975,8 +550975,8 @@ var init_transport5 = __esm({
|
|
|
550975
550975
|
* Called by McpClient after initialize negotiates a protocol version.
|
|
550976
550976
|
* After this point all requests will include MCP-Protocol-Version.
|
|
550977
550977
|
*/
|
|
550978
|
-
setProtocolVersion(
|
|
550979
|
-
this.protocolVersion =
|
|
550978
|
+
setProtocolVersion(version5) {
|
|
550979
|
+
this.protocolVersion = version5;
|
|
550980
550980
|
}
|
|
550981
550981
|
/** Build the headers for every POST request */
|
|
550982
550982
|
buildHeaders(extra) {
|
|
@@ -604477,7 +604477,7 @@ var require_websocket_server2 = __commonJS({
|
|
|
604477
604477
|
socket.on("error", socketOnError);
|
|
604478
604478
|
const key = req3.headers["sec-websocket-key"];
|
|
604479
604479
|
const upgrade = req3.headers.upgrade;
|
|
604480
|
-
const
|
|
604480
|
+
const version5 = +req3.headers["sec-websocket-version"];
|
|
604481
604481
|
if (req3.method !== "GET") {
|
|
604482
604482
|
const message2 = "Invalid HTTP method";
|
|
604483
604483
|
abortHandshakeOrEmitwsClientError(this, req3, socket, 405, message2);
|
|
@@ -604493,7 +604493,7 @@ var require_websocket_server2 = __commonJS({
|
|
|
604493
604493
|
abortHandshakeOrEmitwsClientError(this, req3, socket, 400, message2);
|
|
604494
604494
|
return;
|
|
604495
604495
|
}
|
|
604496
|
-
if (
|
|
604496
|
+
if (version5 !== 13 && version5 !== 8) {
|
|
604497
604497
|
const message2 = "Missing or invalid Sec-WebSocket-Version header";
|
|
604498
604498
|
abortHandshakeOrEmitwsClientError(this, req3, socket, 400, message2, {
|
|
604499
604499
|
"Sec-WebSocket-Version": "13, 8"
|
|
@@ -604537,7 +604537,7 @@ var require_websocket_server2 = __commonJS({
|
|
|
604537
604537
|
}
|
|
604538
604538
|
if (this.options.verifyClient) {
|
|
604539
604539
|
const info = {
|
|
604540
|
-
origin: req3.headers[`${
|
|
604540
|
+
origin: req3.headers[`${version5 === 8 ? "sec-websocket-origin" : "origin"}`],
|
|
604541
604541
|
secure: !!(req3.socket.authorized || req3.socket.encrypted),
|
|
604542
604542
|
req: req3
|
|
604543
604543
|
};
|
|
@@ -607892,6 +607892,9 @@ var init_secret_redactor = __esm({
|
|
|
607892
607892
|
});
|
|
607893
607893
|
|
|
607894
607894
|
// packages/cli/src/tui/tool-collapse-store.ts
|
|
607895
|
+
function collapseStateVersion() {
|
|
607896
|
+
return version4;
|
|
607897
|
+
}
|
|
607895
607898
|
function isCollapsibleBlock(id) {
|
|
607896
607899
|
return states.has(id);
|
|
607897
607900
|
}
|
|
@@ -607907,7 +607910,9 @@ function getCollapseState(id) {
|
|
|
607907
607910
|
return states.get(id) ?? globalDefault;
|
|
607908
607911
|
}
|
|
607909
607912
|
function setCollapseState(id, state) {
|
|
607913
|
+
if (states.get(id) === state) return;
|
|
607910
607914
|
states.set(id, state);
|
|
607915
|
+
version4++;
|
|
607911
607916
|
}
|
|
607912
607917
|
function toggleTitle(id) {
|
|
607913
607918
|
const cur = getCollapseState(id);
|
|
@@ -607928,8 +607933,9 @@ function toggleAll() {
|
|
|
607928
607933
|
const next = anyOpen ? "collapsed" : "preview";
|
|
607929
607934
|
for (const id of states.keys()) states.set(id, next);
|
|
607930
607935
|
globalDefault = next;
|
|
607936
|
+
version4++;
|
|
607931
607937
|
}
|
|
607932
|
-
var PREVIEW_ROWS, READ_MORE_LABEL, READ_LESS_LABEL, globalDefault, states;
|
|
607938
|
+
var PREVIEW_ROWS, READ_MORE_LABEL, READ_LESS_LABEL, globalDefault, states, version4;
|
|
607933
607939
|
var init_tool_collapse_store = __esm({
|
|
607934
607940
|
"packages/cli/src/tui/tool-collapse-store.ts"() {
|
|
607935
607941
|
"use strict";
|
|
@@ -607938,6 +607944,7 @@ var init_tool_collapse_store = __esm({
|
|
|
607938
607944
|
READ_LESS_LABEL = "read less";
|
|
607939
607945
|
globalDefault = "preview";
|
|
607940
607946
|
states = /* @__PURE__ */ new Map();
|
|
607947
|
+
version4 = 0;
|
|
607941
607948
|
}
|
|
607942
607949
|
});
|
|
607943
607950
|
|
|
@@ -619299,9 +619306,9 @@ function sanitizeSponsorHeaderColor(value2) {
|
|
|
619299
619306
|
function setTermTitleWriter(writer) {
|
|
619300
619307
|
_termTitleWriter = writer;
|
|
619301
619308
|
}
|
|
619302
|
-
function setTerminalTitle(task,
|
|
619309
|
+
function setTerminalTitle(task, version5) {
|
|
619303
619310
|
if (!process.stdout.isTTY) return;
|
|
619304
|
-
const ver =
|
|
619311
|
+
const ver = version5 ? `Omnius v${version5}` : "Omnius";
|
|
619305
619312
|
const title = task ? `${task.slice(0, 60)} · ${ver}` : ver;
|
|
619306
619313
|
const data = `\x1B]2;${title}\x07`;
|
|
619307
619314
|
if (_termTitleWriter) {
|
|
@@ -619555,6 +619562,13 @@ var init_status_bar = __esm({
|
|
|
619555
619562
|
// 0 = live (bottom), >0 = scrolled back
|
|
619556
619563
|
_contentMaxLines = 1e4;
|
|
619557
619564
|
_contentRevision = 0;
|
|
619565
|
+
// Trailing blank content lines are DEFERRED, not buffered immediately. A blank
|
|
619566
|
+
// authored between two content blocks is preserved (flushed the moment the
|
|
619567
|
+
// next real line or box arrives); a blank that ends up at the settled bottom
|
|
619568
|
+
// of the buffer is never shown — the input box already reserves exactly one
|
|
619569
|
+
// spacer row above it, so a trailing blank would render a redundant SECOND
|
|
619570
|
+
// gap between the last box and the input. Deferring squashes that.
|
|
619571
|
+
_pendingTrailingBlanks = 0;
|
|
619558
619572
|
_rowCountCache = null;
|
|
619559
619573
|
_dynamicBlockVersion = 0;
|
|
619560
619574
|
_lastPagerScopeActive = null;
|
|
@@ -619764,6 +619778,7 @@ var init_status_bar = __esm({
|
|
|
619764
619778
|
*/
|
|
619765
619779
|
appendDynamicBlock(id) {
|
|
619766
619780
|
if (!this._dynamicBlocks.has(id)) return;
|
|
619781
|
+
this.flushPendingTrailingBlanks();
|
|
619767
619782
|
const sentinel = `${this.DYNAMIC_BLOCK_MARK_PREFIX}${id}${this.DYNAMIC_BLOCK_MARK_SUFFIX}`;
|
|
619768
619783
|
this._contentLines.push(sentinel);
|
|
619769
619784
|
this.markContentMutated();
|
|
@@ -620516,8 +620531,8 @@ var init_status_bar = __esm({
|
|
|
620516
620531
|
this.metrics.contextWindowSize = size;
|
|
620517
620532
|
}
|
|
620518
620533
|
/** Set the current package version for display in the metrics row */
|
|
620519
|
-
setVersion(
|
|
620520
|
-
this._version =
|
|
620534
|
+
setVersion(version5) {
|
|
620535
|
+
this._version = version5;
|
|
620521
620536
|
this.refreshHeaderAndFooter();
|
|
620522
620537
|
}
|
|
620523
620538
|
/** Mark that a newer version is available (renders clickable ↑ next to version) */
|
|
@@ -621077,6 +621092,7 @@ var init_status_bar = __esm({
|
|
|
621077
621092
|
this._contentLines.splice(0, this._contentLines.length);
|
|
621078
621093
|
this.markContentMutated();
|
|
621079
621094
|
this._contentScrollOffset = 0;
|
|
621095
|
+
this._pendingTrailingBlanks = 0;
|
|
621080
621096
|
this._inProgressLine = "";
|
|
621081
621097
|
this.clearStreamingRepaintTimer();
|
|
621082
621098
|
this._lastBufferedFingerprint = "";
|
|
@@ -621617,6 +621633,7 @@ var init_status_bar = __esm({
|
|
|
621617
621633
|
this._activeViewId = id;
|
|
621618
621634
|
this._contentLines = view.contentLines;
|
|
621619
621635
|
this._contentScrollOffset = view.scrollOffset;
|
|
621636
|
+
this._pendingTrailingBlanks = 0;
|
|
621620
621637
|
this.markContentMutated();
|
|
621621
621638
|
this.clampContentScrollOffset();
|
|
621622
621639
|
Promise.resolve().then(() => (init_tui_tasks_renderer(), tui_tasks_renderer_exports)).then((m2) => m2.setTuiTasksScope({ mainViewActive: id === "main" })).catch(() => {
|
|
@@ -622151,13 +622168,41 @@ ${CONTENT_BG_SEQ}`);
|
|
|
622151
622168
|
const visible = stripAnsi(sanitized);
|
|
622152
622169
|
return sanitized.length > 0 && visible.length > 0 ? sanitized : null;
|
|
622153
622170
|
}
|
|
622171
|
+
/**
|
|
622172
|
+
* Materialize any deferred trailing blank lines into the buffer. Called right
|
|
622173
|
+
* before a real content line or a dynamic block is appended, so blank lines
|
|
622174
|
+
* the model authored BETWEEN blocks are preserved in order. Blanks left
|
|
622175
|
+
* pending when the session settles are intentionally dropped.
|
|
622176
|
+
*/
|
|
622177
|
+
flushPendingTrailingBlanks() {
|
|
622178
|
+
const n2 = this._pendingTrailingBlanks;
|
|
622179
|
+
if (n2 <= 0) return;
|
|
622180
|
+
this._pendingTrailingBlanks = 0;
|
|
622181
|
+
for (let i2 = 0; i2 < n2; i2++) this._contentLines.push("");
|
|
622182
|
+
this._lastBufferedFingerprint = "";
|
|
622183
|
+
this.markContentMutated();
|
|
622184
|
+
if (this._contentLines.length > this._contentMaxLines) {
|
|
622185
|
+
this._contentLines.splice(
|
|
622186
|
+
0,
|
|
622187
|
+
this._contentLines.length - this._contentMaxLines
|
|
622188
|
+
);
|
|
622189
|
+
if (this._contentScrollOffset > 0) this.clampContentScrollOffset();
|
|
622190
|
+
}
|
|
622191
|
+
if (this._autoScroll && !this._mouseSelecting)
|
|
622192
|
+
this._contentScrollOffset = 0;
|
|
622193
|
+
}
|
|
622154
622194
|
bufferContentLine(line) {
|
|
622155
622195
|
const sanitized = this.sanitizeBufferedContentLine(line);
|
|
622156
622196
|
const fingerprint = stripAnsi(sanitized).trim();
|
|
622157
622197
|
const now2 = Date.now();
|
|
622158
|
-
if (fingerprint
|
|
622198
|
+
if (fingerprint.length === 0) {
|
|
622199
|
+
this._pendingTrailingBlanks++;
|
|
622200
|
+
return;
|
|
622201
|
+
}
|
|
622202
|
+
if (fingerprint === this._lastBufferedFingerprint && now2 - this._lastBufferedAt < 50) {
|
|
622159
622203
|
return;
|
|
622160
622204
|
}
|
|
622205
|
+
this.flushPendingTrailingBlanks();
|
|
622161
622206
|
this._lastBufferedFingerprint = fingerprint;
|
|
622162
622207
|
this._lastBufferedAt = now2;
|
|
622163
622208
|
this._contentLines.push(sanitized);
|
|
@@ -622271,7 +622316,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
622271
622316
|
}
|
|
622272
622317
|
getRowCountIndex(width) {
|
|
622273
622318
|
const cached = this._rowCountCache;
|
|
622274
|
-
|
|
622319
|
+
const collapseVersion = collapseStateVersion();
|
|
622320
|
+
if (cached && cached.source === this._contentLines && cached.width === width && cached.lineCount === this._contentLines.length && cached.contentRevision === this._contentRevision && cached.dynamicBlockVersion === this._dynamicBlockVersion && cached.collapseVersion === collapseVersion) {
|
|
622275
622321
|
return cached;
|
|
622276
622322
|
}
|
|
622277
622323
|
const counts = new Array(this._contentLines.length);
|
|
@@ -622290,6 +622336,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
622290
622336
|
lineCount: this._contentLines.length,
|
|
622291
622337
|
contentRevision: this._contentRevision,
|
|
622292
622338
|
dynamicBlockVersion: this._dynamicBlockVersion,
|
|
622339
|
+
collapseVersion,
|
|
622293
622340
|
counts,
|
|
622294
622341
|
prefix,
|
|
622295
622342
|
totalRows
|
|
@@ -654618,7 +654665,7 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
654618
654665
|
let _installProgress = 0;
|
|
654619
654666
|
let _installTotal = 10;
|
|
654620
654667
|
let _installPhase = "";
|
|
654621
|
-
function renderInstallFrame(
|
|
654668
|
+
function renderInstallFrame(version5, frame, statusLine) {
|
|
654622
654669
|
const L = layout();
|
|
654623
654670
|
const cols = L.cols;
|
|
654624
654671
|
const {
|
|
@@ -654693,24 +654740,24 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
654693
654740
|
}
|
|
654694
654741
|
const phaseText = _installPhase ? `${_installPhase}` : "";
|
|
654695
654742
|
const combinedStatus = phaseText && statusLine && !statusLine.startsWith(`${phaseText}:`) ? `${phaseText}: ${statusLine}` : statusLine || phaseText;
|
|
654696
|
-
const statusText = isDone ? `v${
|
|
654743
|
+
const statusText = isDone ? `v${version5}` : combinedStatus || `v${version5}`;
|
|
654697
654744
|
const statusTrunc = statusText.slice(0, innerW - 2);
|
|
654698
654745
|
const sCol = centerCol - Math.floor(statusTrunc.length / 2);
|
|
654699
654746
|
buf += `\x1B[${boxTop + 3};${sCol}H\x1B[38;5;${getDimColor()}m${statusTrunc}\x1B[0m`;
|
|
654700
654747
|
buf += `\x1B[0m\x1B8\x1B[?25h\x1B[?2026l`;
|
|
654701
654748
|
overlayWrite(buf);
|
|
654702
654749
|
}
|
|
654703
|
-
function startInstallOverlay(
|
|
654750
|
+
function startInstallOverlay(version5) {
|
|
654704
654751
|
enterOverlay();
|
|
654705
654752
|
lockFooterRedraws();
|
|
654706
654753
|
let frame = 0;
|
|
654707
654754
|
let status = "";
|
|
654708
654755
|
let dismissed = false;
|
|
654709
|
-
renderInstallFrame(
|
|
654756
|
+
renderInstallFrame(version5, frame, status);
|
|
654710
654757
|
const timer = setInterval(() => {
|
|
654711
654758
|
if (dismissed) return;
|
|
654712
654759
|
frame++;
|
|
654713
|
-
renderInstallFrame(
|
|
654760
|
+
renderInstallFrame(version5, frame, status);
|
|
654714
654761
|
}, 80);
|
|
654715
654762
|
return {
|
|
654716
654763
|
setStatus(text2) {
|
|
@@ -654728,11 +654775,11 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
654728
654775
|
clearInterval(timer);
|
|
654729
654776
|
status = "__DONE__";
|
|
654730
654777
|
_installProgress = _installTotal;
|
|
654731
|
-
renderInstallFrame(
|
|
654778
|
+
renderInstallFrame(version5, frame, status);
|
|
654732
654779
|
setTimeout(() => {
|
|
654733
654780
|
if (dismissed) return;
|
|
654734
654781
|
status = finalText;
|
|
654735
|
-
renderInstallFrame(
|
|
654782
|
+
renderInstallFrame(version5, frame + 1, finalText);
|
|
654736
654783
|
}, 300);
|
|
654737
654784
|
},
|
|
654738
654785
|
dismiss() {
|
|
@@ -656207,18 +656254,18 @@ var init_commands = __esm({
|
|
|
656207
656254
|
const { dirname: pathDirname, join: pathJoin } = await import("node:path");
|
|
656208
656255
|
const localRequire = createRequire11(import.meta.url);
|
|
656209
656256
|
const here = pathDirname(fileURLToPath26(import.meta.url));
|
|
656210
|
-
let
|
|
656257
|
+
let version5 = "?";
|
|
656211
656258
|
for (const up of ["..", "../..", "../../.."]) {
|
|
656212
656259
|
try {
|
|
656213
656260
|
const pkg = localRequire(pathJoin(here, up, "package.json"));
|
|
656214
656261
|
if (pkg && typeof pkg.version === "string") {
|
|
656215
|
-
|
|
656262
|
+
version5 = pkg.version;
|
|
656216
656263
|
break;
|
|
656217
656264
|
}
|
|
656218
656265
|
} catch {
|
|
656219
656266
|
}
|
|
656220
656267
|
}
|
|
656221
|
-
renderInfo(`[/access v${
|
|
656268
|
+
renderInfo(`[/access v${version5}] switching to ${val}...`);
|
|
656222
656269
|
} catch {
|
|
656223
656270
|
}
|
|
656224
656271
|
process.env["OMNIUS_ACCESS"] = val;
|
|
@@ -659561,7 +659608,7 @@ function getNodeMnemonic() {
|
|
|
659561
659608
|
return generateMnemonic("unknown-node");
|
|
659562
659609
|
}
|
|
659563
659610
|
}
|
|
659564
|
-
function createDefaultBanner(
|
|
659611
|
+
function createDefaultBanner(version5 = "0.120.0") {
|
|
659565
659612
|
const width = termCols();
|
|
659566
659613
|
const rows = headerHeight();
|
|
659567
659614
|
const accent = tuiAccent() < 0 ? -1 : tuiAccent();
|
|
@@ -659599,7 +659646,7 @@ function createDefaultBanner(version4 = "0.120.0") {
|
|
|
659599
659646
|
flowSpeed: [0, 0, 0],
|
|
659600
659647
|
author: "system",
|
|
659601
659648
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
659602
|
-
version:
|
|
659649
|
+
version: version5
|
|
659603
659650
|
};
|
|
659604
659651
|
}
|
|
659605
659652
|
function createCohereBanner() {
|
|
@@ -659887,9 +659934,9 @@ var init_banner = __esm({
|
|
|
659887
659934
|
* Call after setThemeMode() + refreshThemeVars(). */
|
|
659888
659935
|
refreshDesign() {
|
|
659889
659936
|
if (!this.currentDesign) return;
|
|
659890
|
-
const
|
|
659937
|
+
const version5 = this.currentDesign.version ?? "0.0.0";
|
|
659891
659938
|
if (this.currentDesign.type === "default") {
|
|
659892
|
-
this.currentDesign = createDefaultBanner(
|
|
659939
|
+
this.currentDesign = createDefaultBanner(version5);
|
|
659893
659940
|
} else if (this.currentDesign.type === "cohere") {
|
|
659894
659941
|
this.currentDesign = createCohereBanner();
|
|
659895
659942
|
}
|
|
@@ -659910,8 +659957,8 @@ var init_banner = __esm({
|
|
|
659910
659957
|
this.width = termCols();
|
|
659911
659958
|
if (this.currentDesign) {
|
|
659912
659959
|
if (this.currentDesign.type === "default") {
|
|
659913
|
-
const
|
|
659914
|
-
this.currentDesign = createDefaultBanner(
|
|
659960
|
+
const version5 = this.currentDesign.version ?? "0.0.0";
|
|
659961
|
+
this.currentDesign = createDefaultBanner(version5);
|
|
659915
659962
|
} else if (this.currentDesign.type === "cohere") {
|
|
659916
659963
|
this.currentDesign = createCohereBanner();
|
|
659917
659964
|
}
|
|
@@ -711519,11 +711566,11 @@ function checkAuth(req3, res, requiredScope = "read") {
|
|
|
711519
711566
|
return true;
|
|
711520
711567
|
}
|
|
711521
711568
|
function handleHealth(res) {
|
|
711522
|
-
const
|
|
711569
|
+
const version5 = getVersion3();
|
|
711523
711570
|
jsonResponse(res, 200, {
|
|
711524
711571
|
status: "ok",
|
|
711525
711572
|
uptime_s: Math.floor((Date.now() - startedAt) / 1e3),
|
|
711526
|
-
version:
|
|
711573
|
+
version: version5
|
|
711527
711574
|
});
|
|
711528
711575
|
}
|
|
711529
711576
|
async function handleHealthReady(res, ollamaUrl) {
|
|
@@ -711553,9 +711600,9 @@ function handleHealthStartup(res) {
|
|
|
711553
711600
|
jsonResponse(res, 200, { status: "started" });
|
|
711554
711601
|
}
|
|
711555
711602
|
function handleVersion(res) {
|
|
711556
|
-
const
|
|
711603
|
+
const version5 = getVersion3();
|
|
711557
711604
|
jsonResponse(res, 200, {
|
|
711558
|
-
version:
|
|
711605
|
+
version: version5,
|
|
711559
711606
|
node: process.version,
|
|
711560
711607
|
platform: process.platform
|
|
711561
711608
|
});
|
|
@@ -711569,12 +711616,12 @@ function handleMetrics(res) {
|
|
|
711569
711616
|
);
|
|
711570
711617
|
}
|
|
711571
711618
|
function handleHelp(req3, res) {
|
|
711572
|
-
const
|
|
711619
|
+
const version5 = getVersion3();
|
|
711573
711620
|
const host = req3.headers.host ?? "localhost:11435";
|
|
711574
711621
|
const base3 = `http://${host}`;
|
|
711575
711622
|
const help = {
|
|
711576
711623
|
name: "Omnius",
|
|
711577
|
-
version:
|
|
711624
|
+
version: version5,
|
|
711578
711625
|
description: "AI coding agent powered entirely by open-weight models. OpenAI-compatible API with full agentic tool-calling, text selection, MCP integration, and multi-model orchestration. No API keys required for local use.",
|
|
711579
711626
|
quickstart: {
|
|
711580
711627
|
chat: `curl ${base3}/v1/chat/completions -d '{"model":"auto","messages":[{"role":"user","content":"Hello"}]}'`,
|
|
@@ -711760,11 +711807,11 @@ function handleHelp(req3, res) {
|
|
|
711760
711807
|
}
|
|
711761
711808
|
function renderHelpMarkdown(help) {
|
|
711762
711809
|
const h = help;
|
|
711763
|
-
const
|
|
711810
|
+
const version5 = h.version;
|
|
711764
711811
|
const base3 = h.links?.web_ui ?? "http://localhost:11435";
|
|
711765
711812
|
const qs = h.quickstart;
|
|
711766
711813
|
const agents = h.for_ai_agents;
|
|
711767
|
-
let out = `# Omnius v${
|
|
711814
|
+
let out = `# Omnius v${version5}
|
|
711768
711815
|
|
|
711769
711816
|
`;
|
|
711770
711817
|
out += `${h.description}
|
|
@@ -715014,7 +715061,7 @@ async function handleRequest(req3, res, ollamaUrl, verbose, runtimeDefaults = {}
|
|
|
715014
715061
|
}
|
|
715015
715062
|
if (pathname === "/v1/system" && method === "GET") {
|
|
715016
715063
|
const os9 = require4("node:os");
|
|
715017
|
-
const
|
|
715064
|
+
const version5 = getVersion3();
|
|
715018
715065
|
const { execSync: es } = require4("node:child_process");
|
|
715019
715066
|
let gpus = [];
|
|
715020
715067
|
try {
|
|
@@ -715095,7 +715142,7 @@ async function handleRequest(req3, res, ollamaUrl, verbose, runtimeDefaults = {}
|
|
|
715095
715142
|
timeout: 5e3,
|
|
715096
715143
|
stdio: "pipe"
|
|
715097
715144
|
}).trim();
|
|
715098
|
-
if (ver && ver !==
|
|
715145
|
+
if (ver && ver !== version5) latestVersion = ver;
|
|
715099
715146
|
} catch {
|
|
715100
715147
|
}
|
|
715101
715148
|
jsonResponse(res, 200, {
|
|
@@ -715110,7 +715157,7 @@ async function handleRequest(req3, res, ollamaUrl, verbose, runtimeDefaults = {}
|
|
|
715110
715157
|
cores: os9.cpus().length,
|
|
715111
715158
|
platform: process.platform,
|
|
715112
715159
|
node: process.version,
|
|
715113
|
-
version:
|
|
715160
|
+
version: version5,
|
|
715114
715161
|
latest_version: latestVersion,
|
|
715115
715162
|
update_available: !!latestVersion,
|
|
715116
715163
|
recommended_max_params: totalVram >= 80 ? "120B+" : totalVram >= 48 ? "70B" : totalVram >= 24 ? "27B" : totalVram >= 8 ? "9B" : "4B"
|
|
@@ -719212,9 +719259,9 @@ function startApiServer(options2 = {}) {
|
|
|
719212
719259
|
authKey: config.apiKey
|
|
719213
719260
|
});
|
|
719214
719261
|
server2.listen(port, host, () => {
|
|
719215
|
-
const
|
|
719262
|
+
const version5 = getVersion3();
|
|
719216
719263
|
log22(`
|
|
719217
|
-
omnius API server v${
|
|
719264
|
+
omnius API server v${version5}
|
|
719218
719265
|
`);
|
|
719219
719266
|
if (process.env["OMNIUS_DAEMON"] === "1" && process.env["OMNIUS_NO_VERSION_GUARD"] !== "1") {
|
|
719220
719267
|
const readDiskVersion = () => {
|
|
@@ -719233,7 +719280,7 @@ function startApiServer(options2 = {}) {
|
|
|
719233
719280
|
}
|
|
719234
719281
|
return null;
|
|
719235
719282
|
};
|
|
719236
|
-
const bootVersion = readDiskVersion() ??
|
|
719283
|
+
const bootVersion = readDiskVersion() ?? version5;
|
|
719237
719284
|
const versionWatch = setInterval(() => {
|
|
719238
719285
|
const disk = readDiskVersion();
|
|
719239
719286
|
if (disk && disk !== bootVersion) {
|
|
@@ -719291,7 +719338,7 @@ function startApiServer(options2 = {}) {
|
|
|
719291
719338
|
scheme: proto,
|
|
719292
719339
|
pid: process.pid,
|
|
719293
719340
|
startedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
719294
|
-
version:
|
|
719341
|
+
version: version5
|
|
719295
719342
|
},
|
|
719296
719343
|
null,
|
|
719297
719344
|
2
|
|
@@ -719358,7 +719405,7 @@ function startApiServer(options2 = {}) {
|
|
|
719358
719405
|
scheme: proto,
|
|
719359
719406
|
pid: process.pid,
|
|
719360
719407
|
startedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
719361
|
-
version:
|
|
719408
|
+
version: version5
|
|
719362
719409
|
},
|
|
719363
719410
|
null,
|
|
719364
719411
|
2
|
|
@@ -724551,17 +724598,17 @@ async function startInteractive(config, repoPath2) {
|
|
|
724551
724598
|
const carousel = new Carousel(carouselPhrases ?? void 0);
|
|
724552
724599
|
const banner = new BannerRenderer();
|
|
724553
724600
|
let carouselLines = 0;
|
|
724554
|
-
const
|
|
724601
|
+
const version5 = getVersion4();
|
|
724555
724602
|
if (isResumed) {
|
|
724556
|
-
banner.setDesign(createDefaultBanner(
|
|
724603
|
+
banner.setDesign(createDefaultBanner(version5));
|
|
724557
724604
|
carouselLines = banner.start();
|
|
724558
724605
|
} else {
|
|
724559
724606
|
process.stdout.write("\x1B[H");
|
|
724560
|
-
banner.setDesign(createDefaultBanner(
|
|
724607
|
+
banner.setDesign(createDefaultBanner(version5));
|
|
724561
724608
|
carouselLines = banner.start();
|
|
724562
724609
|
}
|
|
724563
724610
|
const statusBar = new StatusBar();
|
|
724564
|
-
statusBar.setVersion(
|
|
724611
|
+
statusBar.setVersion(version5);
|
|
724565
724612
|
setBannerWriter((data) => statusBar.writeChrome(data));
|
|
724566
724613
|
setCarouselWriter((data) => statusBar.writeChrome(data));
|
|
724567
724614
|
setTasksRendererWriter((data) => statusBar.writeChrome(data));
|
|
@@ -724587,7 +724634,7 @@ async function startInteractive(config, repoPath2) {
|
|
|
724587
724634
|
if (process.stdout.isTTY) {
|
|
724588
724635
|
const scrollTop = carouselLines > 0 ? carouselLines : 1;
|
|
724589
724636
|
statusBar.activate(scrollTop);
|
|
724590
|
-
setTerminalTitle(void 0,
|
|
724637
|
+
setTerminalTitle(void 0, version5);
|
|
724591
724638
|
banner.setDefaultBoxSeparatorProvider(
|
|
724592
724639
|
() => statusBar.getHeaderBorderSeparatorColumns()
|
|
724593
724640
|
);
|
|
@@ -724925,7 +724972,7 @@ ${result.summary}`
|
|
|
724925
724972
|
if (isResumed) {
|
|
724926
724973
|
const { getLastTaskSummary: getLastTaskSummary2 } = (init_omnius_directory(), __toCommonJS(omnius_directory_exports));
|
|
724927
724974
|
const taskSummary = hasTaskToResume ? getLastTaskSummary2(repoRoot) : null;
|
|
724928
|
-
const resumeMsg = taskSummary ? `v${
|
|
724975
|
+
const resumeMsg = taskSummary ? `v${version5} — picking up: ${taskSummary}` : `Updated to v${version5}.`;
|
|
724929
724976
|
writeContent(() => {
|
|
724930
724977
|
renderInfo(resumeMsg);
|
|
724931
724978
|
const resumePrompt = buildContextRestorePrompt(repoRoot);
|
|
@@ -725036,14 +725083,14 @@ ${result.summary}`
|
|
|
725036
725083
|
let setupReady = false;
|
|
725037
725084
|
const setupTasks = [];
|
|
725038
725085
|
let updateNotified = false;
|
|
725039
|
-
checkForUpdate(
|
|
725086
|
+
checkForUpdate(version5).then((updateInfo) => {
|
|
725040
725087
|
if (updateInfo) {
|
|
725041
725088
|
banner.setUpdateAvailable(updateInfo.latestVersion);
|
|
725042
725089
|
try {
|
|
725043
725090
|
statusBar.setUpdateAvailable(updateInfo.latestVersion);
|
|
725044
725091
|
} catch {
|
|
725045
725092
|
}
|
|
725046
|
-
const vTextLen = ` Omnius v${
|
|
725093
|
+
const vTextLen = ` Omnius v${version5}`.length;
|
|
725047
725094
|
const { setUpdateBadgeRegion: setUpdateBadgeRegion2 } = (init_text_selection(), __toCommonJS(text_selection_exports));
|
|
725048
725095
|
setUpdateBadgeRegion2(true, vTextLen + 1, " UPDATE ".length);
|
|
725049
725096
|
const writeMsg = () => {
|
|
@@ -725072,7 +725119,7 @@ ${result.summary}`
|
|
|
725072
725119
|
const autoUpdateTimer = setInterval(() => {
|
|
725073
725120
|
const updateMode = savedSettings.updateMode ?? "auto";
|
|
725074
725121
|
if (updateMode === "manual") return;
|
|
725075
|
-
checkForUpdate(
|
|
725122
|
+
checkForUpdate(version5).then((updateInfo) => {
|
|
725076
725123
|
if (updateInfo) {
|
|
725077
725124
|
try {
|
|
725078
725125
|
statusBar.setUpdateAvailable(updateInfo.latestVersion);
|
|
@@ -725083,7 +725130,7 @@ ${result.summary}`
|
|
|
725083
725130
|
updateNotified = true;
|
|
725084
725131
|
statusBar.beginContentWrite();
|
|
725085
725132
|
renderInfo(
|
|
725086
|
-
`Update available: v${
|
|
725133
|
+
`Update available: v${version5} → v${updateInfo.latestVersion}. Run /update to install.`
|
|
725087
725134
|
);
|
|
725088
725135
|
statusBar.endContentWrite();
|
|
725089
725136
|
}
|
|
@@ -726768,7 +726815,7 @@ Log: ${nexusLogPath}`
|
|
|
726768
726815
|
);
|
|
726769
726816
|
} catch {
|
|
726770
726817
|
}
|
|
726771
|
-
setTerminalTitle(sessionTitle ?? void 0,
|
|
726818
|
+
setTerminalTitle(sessionTitle ?? void 0, version5);
|
|
726772
726819
|
},
|
|
726773
726820
|
listRollbackCheckpoints,
|
|
726774
726821
|
restoreRollbackCheckpoint(id) {
|
|
@@ -729208,7 +729255,7 @@ Execute this skill now. Follow the behavioral guidance above.`;
|
|
|
729208
729255
|
(summary, meta) => {
|
|
729209
729256
|
lastCompletedSummary = summary;
|
|
729210
729257
|
lastTaskMeta = meta ?? null;
|
|
729211
|
-
setTerminalTitle(summary?.slice(0, 60),
|
|
729258
|
+
setTerminalTitle(summary?.slice(0, 60), version5);
|
|
729212
729259
|
},
|
|
729213
729260
|
currentTaskType,
|
|
729214
729261
|
resolvedContextWindowSize,
|
|
@@ -729226,7 +729273,7 @@ Execute this skill now. Follow the behavioral guidance above.`;
|
|
|
729226
729273
|
realtimeEnabled
|
|
729227
729274
|
);
|
|
729228
729275
|
activeTask = task;
|
|
729229
|
-
setTerminalTitle(input.slice(0, 60),
|
|
729276
|
+
setTerminalTitle(input.slice(0, 60), version5);
|
|
729230
729277
|
showPrompt();
|
|
729231
729278
|
if (isNeovimActive() && !isNeovimFocused()) {
|
|
729232
729279
|
refocusNeovim();
|
|
@@ -729238,7 +729285,7 @@ Execute this skill now. Follow the behavioral guidance above.`;
|
|
|
729238
729285
|
}
|
|
729239
729286
|
statusBar.setProcessing(false);
|
|
729240
729287
|
activeTask = null;
|
|
729241
|
-
setTerminalTitle(void 0,
|
|
729288
|
+
setTerminalTitle(void 0, version5);
|
|
729242
729289
|
showPrompt();
|
|
729243
729290
|
return;
|
|
729244
729291
|
}
|
|
@@ -729707,7 +729754,7 @@ ${taskInput}`;
|
|
|
729707
729754
|
(summary, meta) => {
|
|
729708
729755
|
lastCompletedSummary = summary;
|
|
729709
729756
|
lastTaskMeta = meta ?? null;
|
|
729710
|
-
setTerminalTitle(summary?.slice(0, 60),
|
|
729757
|
+
setTerminalTitle(summary?.slice(0, 60), version5);
|
|
729711
729758
|
},
|
|
729712
729759
|
currentTaskType,
|
|
729713
729760
|
resolvedContextWindowSize,
|
|
@@ -729730,7 +729777,7 @@ ${taskInput}`;
|
|
|
729730
729777
|
clearTimeout(_recallTimer);
|
|
729731
729778
|
_recallTimer = null;
|
|
729732
729779
|
}
|
|
729733
|
-
setTerminalTitle(input.slice(0, 60),
|
|
729780
|
+
setTerminalTitle(input.slice(0, 60), version5);
|
|
729734
729781
|
showPrompt();
|
|
729735
729782
|
if (isNeovimActive() && !isNeovimFocused()) {
|
|
729736
729783
|
refocusNeovim();
|
|
@@ -729781,12 +729828,12 @@ ${taskInput}`;
|
|
|
729781
729828
|
sessionToolCallCount = activeTask.toolCallCount;
|
|
729782
729829
|
}
|
|
729783
729830
|
activeTask = null;
|
|
729784
|
-
setTerminalTitle(void 0,
|
|
729831
|
+
setTerminalTitle(void 0, version5);
|
|
729785
729832
|
}
|
|
729786
729833
|
const updateMode = savedSettings.updateMode ?? "auto";
|
|
729787
729834
|
if (updateMode !== "manual" && !_autoUpdatedThisSession) {
|
|
729788
729835
|
try {
|
|
729789
|
-
const updateInfo = await checkForUpdate(
|
|
729836
|
+
const updateInfo = await checkForUpdate(version5);
|
|
729790
729837
|
if (updateInfo) {
|
|
729791
729838
|
_autoUpdatedThisSession = true;
|
|
729792
729839
|
const { exec: exec7 } = await import("node:child_process");
|
|
@@ -731988,9 +732035,9 @@ function parseCliArgs(argv) {
|
|
|
731988
732035
|
}
|
|
731989
732036
|
return result;
|
|
731990
732037
|
}
|
|
731991
|
-
function printHelp2(
|
|
732038
|
+
function printHelp2(version5) {
|
|
731992
732039
|
const text2 = `
|
|
731993
|
-
omnius v${
|
|
732040
|
+
omnius v${version5} — AI coding agent powered by open-source models
|
|
731994
732041
|
|
|
731995
732042
|
Usage:
|
|
731996
732043
|
omnius "fix the login bug" run a task (implicit)
|
|
@@ -732065,16 +732112,16 @@ async function runSelfTest(mode) {
|
|
|
732065
732112
|
process.stdout.write("Self-test complete.\n");
|
|
732066
732113
|
}
|
|
732067
732114
|
async function main() {
|
|
732068
|
-
const
|
|
732115
|
+
const version5 = getVersion5();
|
|
732069
732116
|
const parsed = parseCliArgs(process.argv);
|
|
732070
732117
|
registerCurrentProcessLease(parsed);
|
|
732071
732118
|
if (parsed.version) {
|
|
732072
|
-
process.stdout.write(`omnius v${
|
|
732119
|
+
process.stdout.write(`omnius v${version5}
|
|
732073
732120
|
`);
|
|
732074
732121
|
return;
|
|
732075
732122
|
}
|
|
732076
732123
|
if (parsed.help) {
|
|
732077
|
-
printHelp2(
|
|
732124
|
+
printHelp2(version5);
|
|
732078
732125
|
return;
|
|
732079
732126
|
}
|
|
732080
732127
|
if (parsed.selfTest) {
|
|
@@ -732082,7 +732129,7 @@ async function main() {
|
|
|
732082
732129
|
return;
|
|
732083
732130
|
}
|
|
732084
732131
|
if (!parsed.json) {
|
|
732085
|
-
const updateInfo = await checkForUpdate(
|
|
732132
|
+
const updateInfo = await checkForUpdate(version5);
|
|
732086
732133
|
if (updateInfo) {
|
|
732087
732134
|
process.stderr.write(formatUpdateBanner(updateInfo));
|
|
732088
732135
|
}
|
|
@@ -732189,7 +732236,7 @@ async function main() {
|
|
|
732189
732236
|
default: {
|
|
732190
732237
|
printError(`Unknown command: "${parsed.command}"`);
|
|
732191
732238
|
printBlank();
|
|
732192
|
-
printHelp2(
|
|
732239
|
+
printHelp2(version5);
|
|
732193
732240
|
process.exit(1);
|
|
732194
732241
|
}
|
|
732195
732242
|
}
|