omnius 1.0.393 → 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 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: version4 } = link;
44375
- switch (version4) {
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(version4, code8, multihash) {
44447
- const codeOffset = encodingLength(version4);
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(version4, bytes, 0);
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(version4, code8, multihash, bytes) {
44477
+ constructor(version5, code8, multihash, bytes) {
44478
44478
  this.code = code8;
44479
- this.version = version4;
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: version4, code: code8, multihash, bytes } = value2;
44576
- return new _CID(version4, code8, multihash, bytes ?? encodeCID(version4, code8, multihash.bytes));
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: version4, multihash, code: code8 } = value2;
44578
+ const { version: version5, multihash, code: code8 } = value2;
44579
44579
  const digest3 = decode7(multihash);
44580
- return _CID.create(version4, code8, digest3);
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(version4, code8, digest3) {
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 (version4) {
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(version4, code8, digest3, digest3.bytes);
44602
+ return new _CID(version5, code8, digest3, digest3.bytes);
44603
44603
  }
44604
44604
  }
44605
44605
  case 1: {
44606
- const bytes = encodeCID(version4, code8, digest3.bytes);
44607
- return new _CID(version4, code8, digest3, bytes);
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 version4 = next();
44680
+ let version5 = next();
44681
44681
  let codec = DAG_PB_CODE;
44682
- if (version4 === 18) {
44683
- version4 = 0;
44682
+ if (version5 === 18) {
44683
+ version5 = 0;
44684
44684
  offset = 0;
44685
44685
  } else {
44686
44686
  codec = next();
44687
44687
  }
44688
- if (version4 !== 0 && version4 !== 1) {
44689
- throw new RangeError(`Invalid CID version ${version4}`);
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: version4, codec, multihashCode, digestSize, multihashSize, size };
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 version4 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
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 version4 >= 3 ? 3 : 2;
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 version4 = parseInt(str, 10);
61597
- if (version4 !== CURRENT_VERSION) {
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, version4) {
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}/${version4 ?? version} ${platform7}/${platformVersion.replaceAll("v", "")}`;
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 version4 = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
100512
+ const version5 = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
100513
100513
  switch (env2.TERM_PROGRAM) {
100514
100514
  case "iTerm.app":
100515
- return version4 >= 3 ? 3 : 2;
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, version4, message2) {
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" + (version4 ? " in " + version4 : "")),
114796
+ formatMessage(opt, " has been removed" + (version5 ? " in " + version5 : "")),
114797
114797
  AxiosError$1.ERR_DEPRECATED
114798
114798
  );
114799
114799
  }
114800
- if (version4 && !deprecatedWarnings[opt]) {
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" + version4 + " and will be removed in the near future"
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 version4;
129785
+ var version5;
129786
129786
  for (var i2 = 1; i2 < tls2.SupportedVersions.length; ++i2) {
129787
- version4 = tls2.SupportedVersions[i2];
129788
- if (version4.minor <= msg.version.minor) {
129787
+ version5 = tls2.SupportedVersions[i2];
129788
+ if (version5.minor <= msg.version.minor) {
129789
129789
  break;
129790
129790
  }
129791
129791
  }
129792
- c8.version = { major: version4.major, minor: version4.minor };
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 version4 = c8.session.clientHelloVersion;
129964
- if (version4.major !== sp.pre_master_secret.charCodeAt(0) || version4.minor !== sp.pre_master_secret.charCodeAt(1)) {
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: version4, protocol, port, host }
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
- version4
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: version4, protocol, port, host }
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
- version4
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: version4, protocol, port, host },
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
- version4,
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 version4 = this.buffer[0];
148854
+ const version5 = this.buffer[0];
148855
148855
  const method = this.buffer[1];
148856
- if (version4 !== SOCKS_VERSION) {
148857
- throw new Socks5ProxyError(`Invalid SOCKS version: ${version4}`, "UND_ERR_SOCKS5_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 version4 = this.buffer[0];
148902
+ const version5 = this.buffer[0];
148903
148903
  const status = this.buffer[1];
148904
- if (version4 !== 1) {
148905
- throw new Socks5ProxyError(`Invalid auth sub-negotiation version: ${version4}`, "UND_ERR_SOCKS5_AUTH_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 version4 = this.buffer[0];
148949
+ const version5 = this.buffer[0];
148950
148950
  const reply = this.buffer[1];
148951
148951
  const addressType = this.buffer[3];
148952
- if (version4 !== SOCKS_VERSION) {
148953
- throw new Socks5ProxyError(`Invalid SOCKS version in reply: ${version4}`, "UND_ERR_SOCKS5_REPLY_VERSION");
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, version4) {
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, version4) {
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, version4, encoding, standalone) {
245844
+ function XMLDeclaration2(parent, version5, encoding, standalone) {
245845
245845
  var ref;
245846
245846
  XMLDeclaration2.__super__.constructor.call(this, parent);
245847
- if (isObject(version4)) {
245848
- ref = version4, version4 = ref.version, encoding = ref.encoding, standalone = ref.standalone;
245847
+ if (isObject(version5)) {
245848
+ ref = version5, version5 = ref.version, encoding = ref.encoding, standalone = ref.standalone;
245849
245849
  }
245850
- if (!version4) {
245851
- version4 = "1.0";
245850
+ if (!version5) {
245851
+ version5 = "1.0";
245852
245852
  }
245853
245853
  this.type = NodeType.Declaration;
245854
- this.version = this.stringify.xmlVersion(version4);
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(version4, encoding, standalone) {
246909
+ XMLNode2.prototype.declaration = function(version5, encoding, standalone) {
246910
246910
  var doc, xmldec;
246911
246911
  doc = this.document();
246912
- xmldec = new XMLDeclaration(doc, version4, encoding, standalone);
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(version4, encoding, standalone) {
247037
- return this.declaration(version4, encoding, standalone);
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, version4) {
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, version4) {
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(version4, encoding, standalone) {
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, version4, encoding, standalone);
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(version4, encoding, standalone) {
248515
- return this.declaration(version4, encoding, standalone);
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, version4, os9) {
253199
+ function BrowserInfo2(name10, version5, os9) {
253200
253200
  this.name = name10;
253201
- this.version = version4;
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(version4) {
253213
- this.version = version4;
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, version4, os9, bot) {
253225
+ function SearchBotDeviceInfo2(name10, version5, os9, bot) {
253226
253226
  this.name = name10;
253227
- this.version = version4;
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 version4 = versionParts.join(".");
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, version4, os9, searchBotMatch[1]);
253383
+ return new SearchBotDeviceInfo(name10, version5, os9, searchBotMatch[1]);
253384
253384
  }
253385
- return new BrowserInfo(name10, version4, os9);
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 version4 = +req3.headers["sec-websocket-version"];
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 (version4 !== 13 && version4 !== 8) {
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[`${version4 === 8 ? "sec-websocket-origin" : "origin"}`],
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 version4 = this.selfState.version;
273332
- const snapshotPath = join43(snapshotDir, `v${version4}.json`);
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${version4}`] = ipfsCid;
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${version4} published.
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 version4 = await getVersion(binary);
292366
- return { success: true, message: `opencode installed successfully (${version4}) at ${binary}` };
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 version4 = await getVersion(existing);
292451
+ const version5 = await getVersion(existing);
292452
292452
  return {
292453
292453
  success: true,
292454
- output: `opencode is already installed at ${existing} (${version4}). No action needed.`,
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 version4 = await getVersion(binary);
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: ${version4}`,
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 version4 = getVersion2(binary);
292641
- return { success: true, message: `Factory CLI installed successfully (${version4}) at ${binary}` };
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 version4 = getVersion2(existing);
292739
+ const version5 = getVersion2(existing);
292740
292740
  return {
292741
292741
  success: true,
292742
- output: `Factory CLI (droid) is already installed at ${existing} (${version4}). No action needed.`,
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 version4 = getVersion2(binary);
292868
+ const version5 = getVersion2(binary);
292869
292869
  const lines = [
292870
292870
  `Factory CLI (droid) is installed`,
292871
292871
  ` Binary: ${binary}`,
292872
- ` Version: ${version4}`,
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 version4 = util2.getArg(sourceMap, "version");
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 (version4 != this._version) {
298180
- throw new Error("Unsupported version: " + version4);
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 version4 = util2.getArg(sourceMap, "version");
298485
+ var version5 = util2.getArg(sourceMap, "version");
298486
298486
  var sections = util2.getArg(sourceMap, "sections");
298487
- if (version4 != this._version) {
298488
- throw new Error("Unsupported version: " + version4);
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: () => version4,
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 version4 = "6.0.2";
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(version4);
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, version4, moduleName);
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(version4);
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, version4, rest);
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: version4 };
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: version4
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: version4
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: version4
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 !== version4 || !isIncrementalBuildInfo(buildInfo)) return void 0;
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 !== version4) {
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
- version4
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, version4) + sys2.newLine);
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, version4)}`)];
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, version4)}`)];
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, version4)}`)];
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: () => version4,
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(version4));
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: version4,
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: version4
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: version4
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: version4 };
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, version4, setParentNodes, scriptKind) {
516603
- return ts__namespace.createLanguageServiceSourceFile(filePath, scriptSnapshot, optionsOrScriptTarget ?? ts__namespace.ScriptTarget.Latest, version4, setParentNodes, scriptKind);
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 version4 = 0;
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 (version4++).toString();
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, version4, scriptKind) {
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) !== version4)
518669
- sourceFile = this.#updateSourceFile(standardizedFilePath, compilationSettings, scriptSnapshot, version4, scriptKind);
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, version4, scriptKind) {
518673
- return this.acquireDocument(fileName, compilationSettings, scriptSnapshot, version4, scriptKind);
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, version4, scriptKind) {
518676
- return this.acquireDocument(fileName, compilationSettings, scriptSnapshot, version4, scriptKind);
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, version4, scriptKind) {
518679
- return this.updateDocument(fileName, compilationSettings, scriptSnapshot, version4, scriptKind);
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, version4, scriptKind) {
518699
- const newSourceFile = createCompilerSourceFile(fileName, scriptSnapshot, compilationSettings.target, version4, true, scriptKind);
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(version4) {
550979
- this.protocolVersion = version4;
550978
+ setProtocolVersion(version5) {
550979
+ this.protocolVersion = version5;
550980
550980
  }
550981
550981
  /** Build the headers for every POST request */
550982
550982
  buildHeaders(extra) {
@@ -570526,13 +570526,15 @@ function violatesDirective(directive, input) {
570526
570526
  if (input.toolName === "ask_user")
570527
570527
  return false;
570528
570528
  const family = actionFamily(input.toolName, input.args);
570529
- if (directive.forbiddenActionFamilies.includes(family))
570530
- return true;
570531
- if (directive.forbiddenActionFamilies.includes(input.toolName))
570532
- return true;
570529
+ if (directive.requiredNextAction !== "update_todos") {
570530
+ if (directive.forbiddenActionFamilies.includes(family))
570531
+ return true;
570532
+ if (directive.forbiddenActionFamilies.includes(input.toolName))
570533
+ return true;
570534
+ }
570533
570535
  switch (directive.requiredNextAction) {
570534
570536
  case "update_todos":
570535
- return input.toolName !== "todo_write";
570537
+ return !(input.toolName === "todo_write" || isEditTool(input.toolName));
570536
570538
  case "read_authoritative_target":
570537
570539
  return !isEvidenceGatheringTool(input.toolName);
570538
570540
  case "run_verification":
@@ -570819,7 +570821,7 @@ var init_focusSupervisor = __esm({
570819
570821
  }
570820
570822
  return this.inject(directive, `[FOCUS SUPERVISOR] ${directive.reason}. Required next action: ${directive.requiredNextAction}.`);
570821
570823
  }
570822
- if (this.hasLowSignalContext(input.context) && input.isReadLike) {
570824
+ if (this.hasLowSignalContext(input.context) && input.isReadLike && !(this.directive?.requiredNextAction === "read_authoritative_target" || this.directive?.requiredNextAction === "use_cached_evidence")) {
570823
570825
  const directive = this.setDirective({
570824
570826
  turn: input.turn,
570825
570827
  state: "forced_replan",
@@ -604475,7 +604477,7 @@ var require_websocket_server2 = __commonJS({
604475
604477
  socket.on("error", socketOnError);
604476
604478
  const key = req3.headers["sec-websocket-key"];
604477
604479
  const upgrade = req3.headers.upgrade;
604478
- const version4 = +req3.headers["sec-websocket-version"];
604480
+ const version5 = +req3.headers["sec-websocket-version"];
604479
604481
  if (req3.method !== "GET") {
604480
604482
  const message2 = "Invalid HTTP method";
604481
604483
  abortHandshakeOrEmitwsClientError(this, req3, socket, 405, message2);
@@ -604491,7 +604493,7 @@ var require_websocket_server2 = __commonJS({
604491
604493
  abortHandshakeOrEmitwsClientError(this, req3, socket, 400, message2);
604492
604494
  return;
604493
604495
  }
604494
- if (version4 !== 13 && version4 !== 8) {
604496
+ if (version5 !== 13 && version5 !== 8) {
604495
604497
  const message2 = "Missing or invalid Sec-WebSocket-Version header";
604496
604498
  abortHandshakeOrEmitwsClientError(this, req3, socket, 400, message2, {
604497
604499
  "Sec-WebSocket-Version": "13, 8"
@@ -604535,7 +604537,7 @@ var require_websocket_server2 = __commonJS({
604535
604537
  }
604536
604538
  if (this.options.verifyClient) {
604537
604539
  const info = {
604538
- origin: req3.headers[`${version4 === 8 ? "sec-websocket-origin" : "origin"}`],
604540
+ origin: req3.headers[`${version5 === 8 ? "sec-websocket-origin" : "origin"}`],
604539
604541
  secure: !!(req3.socket.authorized || req3.socket.encrypted),
604540
604542
  req: req3
604541
604543
  };
@@ -607890,6 +607892,9 @@ var init_secret_redactor = __esm({
607890
607892
  });
607891
607893
 
607892
607894
  // packages/cli/src/tui/tool-collapse-store.ts
607895
+ function collapseStateVersion() {
607896
+ return version4;
607897
+ }
607893
607898
  function isCollapsibleBlock(id) {
607894
607899
  return states.has(id);
607895
607900
  }
@@ -607905,7 +607910,9 @@ function getCollapseState(id) {
607905
607910
  return states.get(id) ?? globalDefault;
607906
607911
  }
607907
607912
  function setCollapseState(id, state) {
607913
+ if (states.get(id) === state) return;
607908
607914
  states.set(id, state);
607915
+ version4++;
607909
607916
  }
607910
607917
  function toggleTitle(id) {
607911
607918
  const cur = getCollapseState(id);
@@ -607926,8 +607933,9 @@ function toggleAll() {
607926
607933
  const next = anyOpen ? "collapsed" : "preview";
607927
607934
  for (const id of states.keys()) states.set(id, next);
607928
607935
  globalDefault = next;
607936
+ version4++;
607929
607937
  }
607930
- var PREVIEW_ROWS, READ_MORE_LABEL, READ_LESS_LABEL, globalDefault, states;
607938
+ var PREVIEW_ROWS, READ_MORE_LABEL, READ_LESS_LABEL, globalDefault, states, version4;
607931
607939
  var init_tool_collapse_store = __esm({
607932
607940
  "packages/cli/src/tui/tool-collapse-store.ts"() {
607933
607941
  "use strict";
@@ -607936,6 +607944,7 @@ var init_tool_collapse_store = __esm({
607936
607944
  READ_LESS_LABEL = "read less";
607937
607945
  globalDefault = "preview";
607938
607946
  states = /* @__PURE__ */ new Map();
607947
+ version4 = 0;
607939
607948
  }
607940
607949
  });
607941
607950
 
@@ -619297,9 +619306,9 @@ function sanitizeSponsorHeaderColor(value2) {
619297
619306
  function setTermTitleWriter(writer) {
619298
619307
  _termTitleWriter = writer;
619299
619308
  }
619300
- function setTerminalTitle(task, version4) {
619309
+ function setTerminalTitle(task, version5) {
619301
619310
  if (!process.stdout.isTTY) return;
619302
- const ver = version4 ? `Omnius v${version4}` : "Omnius";
619311
+ const ver = version5 ? `Omnius v${version5}` : "Omnius";
619303
619312
  const title = task ? `${task.slice(0, 60)} · ${ver}` : ver;
619304
619313
  const data = `\x1B]2;${title}\x07`;
619305
619314
  if (_termTitleWriter) {
@@ -619553,6 +619562,13 @@ var init_status_bar = __esm({
619553
619562
  // 0 = live (bottom), >0 = scrolled back
619554
619563
  _contentMaxLines = 1e4;
619555
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;
619556
619572
  _rowCountCache = null;
619557
619573
  _dynamicBlockVersion = 0;
619558
619574
  _lastPagerScopeActive = null;
@@ -619762,6 +619778,7 @@ var init_status_bar = __esm({
619762
619778
  */
619763
619779
  appendDynamicBlock(id) {
619764
619780
  if (!this._dynamicBlocks.has(id)) return;
619781
+ this.flushPendingTrailingBlanks();
619765
619782
  const sentinel = `${this.DYNAMIC_BLOCK_MARK_PREFIX}${id}${this.DYNAMIC_BLOCK_MARK_SUFFIX}`;
619766
619783
  this._contentLines.push(sentinel);
619767
619784
  this.markContentMutated();
@@ -620514,8 +620531,8 @@ var init_status_bar = __esm({
620514
620531
  this.metrics.contextWindowSize = size;
620515
620532
  }
620516
620533
  /** Set the current package version for display in the metrics row */
620517
- setVersion(version4) {
620518
- this._version = version4;
620534
+ setVersion(version5) {
620535
+ this._version = version5;
620519
620536
  this.refreshHeaderAndFooter();
620520
620537
  }
620521
620538
  /** Mark that a newer version is available (renders clickable ↑ next to version) */
@@ -621075,6 +621092,7 @@ var init_status_bar = __esm({
621075
621092
  this._contentLines.splice(0, this._contentLines.length);
621076
621093
  this.markContentMutated();
621077
621094
  this._contentScrollOffset = 0;
621095
+ this._pendingTrailingBlanks = 0;
621078
621096
  this._inProgressLine = "";
621079
621097
  this.clearStreamingRepaintTimer();
621080
621098
  this._lastBufferedFingerprint = "";
@@ -621615,6 +621633,7 @@ var init_status_bar = __esm({
621615
621633
  this._activeViewId = id;
621616
621634
  this._contentLines = view.contentLines;
621617
621635
  this._contentScrollOffset = view.scrollOffset;
621636
+ this._pendingTrailingBlanks = 0;
621618
621637
  this.markContentMutated();
621619
621638
  this.clampContentScrollOffset();
621620
621639
  Promise.resolve().then(() => (init_tui_tasks_renderer(), tui_tasks_renderer_exports)).then((m2) => m2.setTuiTasksScope({ mainViewActive: id === "main" })).catch(() => {
@@ -622149,13 +622168,41 @@ ${CONTENT_BG_SEQ}`);
622149
622168
  const visible = stripAnsi(sanitized);
622150
622169
  return sanitized.length > 0 && visible.length > 0 ? sanitized : null;
622151
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
+ }
622152
622194
  bufferContentLine(line) {
622153
622195
  const sanitized = this.sanitizeBufferedContentLine(line);
622154
622196
  const fingerprint = stripAnsi(sanitized).trim();
622155
622197
  const now2 = Date.now();
622156
- if (fingerprint && fingerprint === this._lastBufferedFingerprint && now2 - this._lastBufferedAt < 50) {
622198
+ if (fingerprint.length === 0) {
622199
+ this._pendingTrailingBlanks++;
622200
+ return;
622201
+ }
622202
+ if (fingerprint === this._lastBufferedFingerprint && now2 - this._lastBufferedAt < 50) {
622157
622203
  return;
622158
622204
  }
622205
+ this.flushPendingTrailingBlanks();
622159
622206
  this._lastBufferedFingerprint = fingerprint;
622160
622207
  this._lastBufferedAt = now2;
622161
622208
  this._contentLines.push(sanitized);
@@ -622269,7 +622316,8 @@ ${CONTENT_BG_SEQ}`);
622269
622316
  }
622270
622317
  getRowCountIndex(width) {
622271
622318
  const cached = this._rowCountCache;
622272
- if (cached && cached.source === this._contentLines && cached.width === width && cached.lineCount === this._contentLines.length && cached.contentRevision === this._contentRevision && cached.dynamicBlockVersion === this._dynamicBlockVersion) {
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) {
622273
622321
  return cached;
622274
622322
  }
622275
622323
  const counts = new Array(this._contentLines.length);
@@ -622288,6 +622336,7 @@ ${CONTENT_BG_SEQ}`);
622288
622336
  lineCount: this._contentLines.length,
622289
622337
  contentRevision: this._contentRevision,
622290
622338
  dynamicBlockVersion: this._dynamicBlockVersion,
622339
+ collapseVersion,
622291
622340
  counts,
622292
622341
  prefix,
622293
622342
  totalRows
@@ -654616,7 +654665,7 @@ async function handleUpdate(subcommand, ctx3) {
654616
654665
  let _installProgress = 0;
654617
654666
  let _installTotal = 10;
654618
654667
  let _installPhase = "";
654619
- function renderInstallFrame(version4, frame, statusLine) {
654668
+ function renderInstallFrame(version5, frame, statusLine) {
654620
654669
  const L = layout();
654621
654670
  const cols = L.cols;
654622
654671
  const {
@@ -654691,24 +654740,24 @@ async function handleUpdate(subcommand, ctx3) {
654691
654740
  }
654692
654741
  const phaseText = _installPhase ? `${_installPhase}` : "";
654693
654742
  const combinedStatus = phaseText && statusLine && !statusLine.startsWith(`${phaseText}:`) ? `${phaseText}: ${statusLine}` : statusLine || phaseText;
654694
- const statusText = isDone ? `v${version4}` : combinedStatus || `v${version4}`;
654743
+ const statusText = isDone ? `v${version5}` : combinedStatus || `v${version5}`;
654695
654744
  const statusTrunc = statusText.slice(0, innerW - 2);
654696
654745
  const sCol = centerCol - Math.floor(statusTrunc.length / 2);
654697
654746
  buf += `\x1B[${boxTop + 3};${sCol}H\x1B[38;5;${getDimColor()}m${statusTrunc}\x1B[0m`;
654698
654747
  buf += `\x1B[0m\x1B8\x1B[?25h\x1B[?2026l`;
654699
654748
  overlayWrite(buf);
654700
654749
  }
654701
- function startInstallOverlay(version4) {
654750
+ function startInstallOverlay(version5) {
654702
654751
  enterOverlay();
654703
654752
  lockFooterRedraws();
654704
654753
  let frame = 0;
654705
654754
  let status = "";
654706
654755
  let dismissed = false;
654707
- renderInstallFrame(version4, frame, status);
654756
+ renderInstallFrame(version5, frame, status);
654708
654757
  const timer = setInterval(() => {
654709
654758
  if (dismissed) return;
654710
654759
  frame++;
654711
- renderInstallFrame(version4, frame, status);
654760
+ renderInstallFrame(version5, frame, status);
654712
654761
  }, 80);
654713
654762
  return {
654714
654763
  setStatus(text2) {
@@ -654726,11 +654775,11 @@ async function handleUpdate(subcommand, ctx3) {
654726
654775
  clearInterval(timer);
654727
654776
  status = "__DONE__";
654728
654777
  _installProgress = _installTotal;
654729
- renderInstallFrame(version4, frame, status);
654778
+ renderInstallFrame(version5, frame, status);
654730
654779
  setTimeout(() => {
654731
654780
  if (dismissed) return;
654732
654781
  status = finalText;
654733
- renderInstallFrame(version4, frame + 1, finalText);
654782
+ renderInstallFrame(version5, frame + 1, finalText);
654734
654783
  }, 300);
654735
654784
  },
654736
654785
  dismiss() {
@@ -656205,18 +656254,18 @@ var init_commands = __esm({
656205
656254
  const { dirname: pathDirname, join: pathJoin } = await import("node:path");
656206
656255
  const localRequire = createRequire11(import.meta.url);
656207
656256
  const here = pathDirname(fileURLToPath26(import.meta.url));
656208
- let version4 = "?";
656257
+ let version5 = "?";
656209
656258
  for (const up of ["..", "../..", "../../.."]) {
656210
656259
  try {
656211
656260
  const pkg = localRequire(pathJoin(here, up, "package.json"));
656212
656261
  if (pkg && typeof pkg.version === "string") {
656213
- version4 = pkg.version;
656262
+ version5 = pkg.version;
656214
656263
  break;
656215
656264
  }
656216
656265
  } catch {
656217
656266
  }
656218
656267
  }
656219
- renderInfo(`[/access v${version4}] switching to ${val}...`);
656268
+ renderInfo(`[/access v${version5}] switching to ${val}...`);
656220
656269
  } catch {
656221
656270
  }
656222
656271
  process.env["OMNIUS_ACCESS"] = val;
@@ -659559,7 +659608,7 @@ function getNodeMnemonic() {
659559
659608
  return generateMnemonic("unknown-node");
659560
659609
  }
659561
659610
  }
659562
- function createDefaultBanner(version4 = "0.120.0") {
659611
+ function createDefaultBanner(version5 = "0.120.0") {
659563
659612
  const width = termCols();
659564
659613
  const rows = headerHeight();
659565
659614
  const accent = tuiAccent() < 0 ? -1 : tuiAccent();
@@ -659597,7 +659646,7 @@ function createDefaultBanner(version4 = "0.120.0") {
659597
659646
  flowSpeed: [0, 0, 0],
659598
659647
  author: "system",
659599
659648
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
659600
- version: version4
659649
+ version: version5
659601
659650
  };
659602
659651
  }
659603
659652
  function createCohereBanner() {
@@ -659885,9 +659934,9 @@ var init_banner = __esm({
659885
659934
  * Call after setThemeMode() + refreshThemeVars(). */
659886
659935
  refreshDesign() {
659887
659936
  if (!this.currentDesign) return;
659888
- const version4 = this.currentDesign.version ?? "0.0.0";
659937
+ const version5 = this.currentDesign.version ?? "0.0.0";
659889
659938
  if (this.currentDesign.type === "default") {
659890
- this.currentDesign = createDefaultBanner(version4);
659939
+ this.currentDesign = createDefaultBanner(version5);
659891
659940
  } else if (this.currentDesign.type === "cohere") {
659892
659941
  this.currentDesign = createCohereBanner();
659893
659942
  }
@@ -659908,8 +659957,8 @@ var init_banner = __esm({
659908
659957
  this.width = termCols();
659909
659958
  if (this.currentDesign) {
659910
659959
  if (this.currentDesign.type === "default") {
659911
- const version4 = this.currentDesign.version ?? "0.0.0";
659912
- this.currentDesign = createDefaultBanner(version4);
659960
+ const version5 = this.currentDesign.version ?? "0.0.0";
659961
+ this.currentDesign = createDefaultBanner(version5);
659913
659962
  } else if (this.currentDesign.type === "cohere") {
659914
659963
  this.currentDesign = createCohereBanner();
659915
659964
  }
@@ -711517,11 +711566,11 @@ function checkAuth(req3, res, requiredScope = "read") {
711517
711566
  return true;
711518
711567
  }
711519
711568
  function handleHealth(res) {
711520
- const version4 = getVersion3();
711569
+ const version5 = getVersion3();
711521
711570
  jsonResponse(res, 200, {
711522
711571
  status: "ok",
711523
711572
  uptime_s: Math.floor((Date.now() - startedAt) / 1e3),
711524
- version: version4
711573
+ version: version5
711525
711574
  });
711526
711575
  }
711527
711576
  async function handleHealthReady(res, ollamaUrl) {
@@ -711551,9 +711600,9 @@ function handleHealthStartup(res) {
711551
711600
  jsonResponse(res, 200, { status: "started" });
711552
711601
  }
711553
711602
  function handleVersion(res) {
711554
- const version4 = getVersion3();
711603
+ const version5 = getVersion3();
711555
711604
  jsonResponse(res, 200, {
711556
- version: version4,
711605
+ version: version5,
711557
711606
  node: process.version,
711558
711607
  platform: process.platform
711559
711608
  });
@@ -711567,12 +711616,12 @@ function handleMetrics(res) {
711567
711616
  );
711568
711617
  }
711569
711618
  function handleHelp(req3, res) {
711570
- const version4 = getVersion3();
711619
+ const version5 = getVersion3();
711571
711620
  const host = req3.headers.host ?? "localhost:11435";
711572
711621
  const base3 = `http://${host}`;
711573
711622
  const help = {
711574
711623
  name: "Omnius",
711575
- version: version4,
711624
+ version: version5,
711576
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.",
711577
711626
  quickstart: {
711578
711627
  chat: `curl ${base3}/v1/chat/completions -d '{"model":"auto","messages":[{"role":"user","content":"Hello"}]}'`,
@@ -711758,11 +711807,11 @@ function handleHelp(req3, res) {
711758
711807
  }
711759
711808
  function renderHelpMarkdown(help) {
711760
711809
  const h = help;
711761
- const version4 = h.version;
711810
+ const version5 = h.version;
711762
711811
  const base3 = h.links?.web_ui ?? "http://localhost:11435";
711763
711812
  const qs = h.quickstart;
711764
711813
  const agents = h.for_ai_agents;
711765
- let out = `# Omnius v${version4}
711814
+ let out = `# Omnius v${version5}
711766
711815
 
711767
711816
  `;
711768
711817
  out += `${h.description}
@@ -715012,7 +715061,7 @@ async function handleRequest(req3, res, ollamaUrl, verbose, runtimeDefaults = {}
715012
715061
  }
715013
715062
  if (pathname === "/v1/system" && method === "GET") {
715014
715063
  const os9 = require4("node:os");
715015
- const version4 = getVersion3();
715064
+ const version5 = getVersion3();
715016
715065
  const { execSync: es } = require4("node:child_process");
715017
715066
  let gpus = [];
715018
715067
  try {
@@ -715093,7 +715142,7 @@ async function handleRequest(req3, res, ollamaUrl, verbose, runtimeDefaults = {}
715093
715142
  timeout: 5e3,
715094
715143
  stdio: "pipe"
715095
715144
  }).trim();
715096
- if (ver && ver !== version4) latestVersion = ver;
715145
+ if (ver && ver !== version5) latestVersion = ver;
715097
715146
  } catch {
715098
715147
  }
715099
715148
  jsonResponse(res, 200, {
@@ -715108,7 +715157,7 @@ async function handleRequest(req3, res, ollamaUrl, verbose, runtimeDefaults = {}
715108
715157
  cores: os9.cpus().length,
715109
715158
  platform: process.platform,
715110
715159
  node: process.version,
715111
- version: version4,
715160
+ version: version5,
715112
715161
  latest_version: latestVersion,
715113
715162
  update_available: !!latestVersion,
715114
715163
  recommended_max_params: totalVram >= 80 ? "120B+" : totalVram >= 48 ? "70B" : totalVram >= 24 ? "27B" : totalVram >= 8 ? "9B" : "4B"
@@ -719210,9 +719259,9 @@ function startApiServer(options2 = {}) {
719210
719259
  authKey: config.apiKey
719211
719260
  });
719212
719261
  server2.listen(port, host, () => {
719213
- const version4 = getVersion3();
719262
+ const version5 = getVersion3();
719214
719263
  log22(`
719215
- omnius API server v${version4}
719264
+ omnius API server v${version5}
719216
719265
  `);
719217
719266
  if (process.env["OMNIUS_DAEMON"] === "1" && process.env["OMNIUS_NO_VERSION_GUARD"] !== "1") {
719218
719267
  const readDiskVersion = () => {
@@ -719231,7 +719280,7 @@ function startApiServer(options2 = {}) {
719231
719280
  }
719232
719281
  return null;
719233
719282
  };
719234
- const bootVersion = readDiskVersion() ?? version4;
719283
+ const bootVersion = readDiskVersion() ?? version5;
719235
719284
  const versionWatch = setInterval(() => {
719236
719285
  const disk = readDiskVersion();
719237
719286
  if (disk && disk !== bootVersion) {
@@ -719289,7 +719338,7 @@ function startApiServer(options2 = {}) {
719289
719338
  scheme: proto,
719290
719339
  pid: process.pid,
719291
719340
  startedAt: (/* @__PURE__ */ new Date()).toISOString(),
719292
- version: version4
719341
+ version: version5
719293
719342
  },
719294
719343
  null,
719295
719344
  2
@@ -719356,7 +719405,7 @@ function startApiServer(options2 = {}) {
719356
719405
  scheme: proto,
719357
719406
  pid: process.pid,
719358
719407
  startedAt: (/* @__PURE__ */ new Date()).toISOString(),
719359
- version: version4
719408
+ version: version5
719360
719409
  },
719361
719410
  null,
719362
719411
  2
@@ -724549,17 +724598,17 @@ async function startInteractive(config, repoPath2) {
724549
724598
  const carousel = new Carousel(carouselPhrases ?? void 0);
724550
724599
  const banner = new BannerRenderer();
724551
724600
  let carouselLines = 0;
724552
- const version4 = getVersion4();
724601
+ const version5 = getVersion4();
724553
724602
  if (isResumed) {
724554
- banner.setDesign(createDefaultBanner(version4));
724603
+ banner.setDesign(createDefaultBanner(version5));
724555
724604
  carouselLines = banner.start();
724556
724605
  } else {
724557
724606
  process.stdout.write("\x1B[H");
724558
- banner.setDesign(createDefaultBanner(version4));
724607
+ banner.setDesign(createDefaultBanner(version5));
724559
724608
  carouselLines = banner.start();
724560
724609
  }
724561
724610
  const statusBar = new StatusBar();
724562
- statusBar.setVersion(version4);
724611
+ statusBar.setVersion(version5);
724563
724612
  setBannerWriter((data) => statusBar.writeChrome(data));
724564
724613
  setCarouselWriter((data) => statusBar.writeChrome(data));
724565
724614
  setTasksRendererWriter((data) => statusBar.writeChrome(data));
@@ -724585,7 +724634,7 @@ async function startInteractive(config, repoPath2) {
724585
724634
  if (process.stdout.isTTY) {
724586
724635
  const scrollTop = carouselLines > 0 ? carouselLines : 1;
724587
724636
  statusBar.activate(scrollTop);
724588
- setTerminalTitle(void 0, version4);
724637
+ setTerminalTitle(void 0, version5);
724589
724638
  banner.setDefaultBoxSeparatorProvider(
724590
724639
  () => statusBar.getHeaderBorderSeparatorColumns()
724591
724640
  );
@@ -724923,7 +724972,7 @@ ${result.summary}`
724923
724972
  if (isResumed) {
724924
724973
  const { getLastTaskSummary: getLastTaskSummary2 } = (init_omnius_directory(), __toCommonJS(omnius_directory_exports));
724925
724974
  const taskSummary = hasTaskToResume ? getLastTaskSummary2(repoRoot) : null;
724926
- const resumeMsg = taskSummary ? `v${version4} — picking up: ${taskSummary}` : `Updated to v${version4}.`;
724975
+ const resumeMsg = taskSummary ? `v${version5} — picking up: ${taskSummary}` : `Updated to v${version5}.`;
724927
724976
  writeContent(() => {
724928
724977
  renderInfo(resumeMsg);
724929
724978
  const resumePrompt = buildContextRestorePrompt(repoRoot);
@@ -725034,14 +725083,14 @@ ${result.summary}`
725034
725083
  let setupReady = false;
725035
725084
  const setupTasks = [];
725036
725085
  let updateNotified = false;
725037
- checkForUpdate(version4).then((updateInfo) => {
725086
+ checkForUpdate(version5).then((updateInfo) => {
725038
725087
  if (updateInfo) {
725039
725088
  banner.setUpdateAvailable(updateInfo.latestVersion);
725040
725089
  try {
725041
725090
  statusBar.setUpdateAvailable(updateInfo.latestVersion);
725042
725091
  } catch {
725043
725092
  }
725044
- const vTextLen = ` Omnius v${version4}`.length;
725093
+ const vTextLen = ` Omnius v${version5}`.length;
725045
725094
  const { setUpdateBadgeRegion: setUpdateBadgeRegion2 } = (init_text_selection(), __toCommonJS(text_selection_exports));
725046
725095
  setUpdateBadgeRegion2(true, vTextLen + 1, " UPDATE ".length);
725047
725096
  const writeMsg = () => {
@@ -725070,7 +725119,7 @@ ${result.summary}`
725070
725119
  const autoUpdateTimer = setInterval(() => {
725071
725120
  const updateMode = savedSettings.updateMode ?? "auto";
725072
725121
  if (updateMode === "manual") return;
725073
- checkForUpdate(version4).then((updateInfo) => {
725122
+ checkForUpdate(version5).then((updateInfo) => {
725074
725123
  if (updateInfo) {
725075
725124
  try {
725076
725125
  statusBar.setUpdateAvailable(updateInfo.latestVersion);
@@ -725081,7 +725130,7 @@ ${result.summary}`
725081
725130
  updateNotified = true;
725082
725131
  statusBar.beginContentWrite();
725083
725132
  renderInfo(
725084
- `Update available: v${version4} → v${updateInfo.latestVersion}. Run /update to install.`
725133
+ `Update available: v${version5} → v${updateInfo.latestVersion}. Run /update to install.`
725085
725134
  );
725086
725135
  statusBar.endContentWrite();
725087
725136
  }
@@ -726766,7 +726815,7 @@ Log: ${nexusLogPath}`
726766
726815
  );
726767
726816
  } catch {
726768
726817
  }
726769
- setTerminalTitle(sessionTitle ?? void 0, version4);
726818
+ setTerminalTitle(sessionTitle ?? void 0, version5);
726770
726819
  },
726771
726820
  listRollbackCheckpoints,
726772
726821
  restoreRollbackCheckpoint(id) {
@@ -729206,7 +729255,7 @@ Execute this skill now. Follow the behavioral guidance above.`;
729206
729255
  (summary, meta) => {
729207
729256
  lastCompletedSummary = summary;
729208
729257
  lastTaskMeta = meta ?? null;
729209
- setTerminalTitle(summary?.slice(0, 60), version4);
729258
+ setTerminalTitle(summary?.slice(0, 60), version5);
729210
729259
  },
729211
729260
  currentTaskType,
729212
729261
  resolvedContextWindowSize,
@@ -729224,7 +729273,7 @@ Execute this skill now. Follow the behavioral guidance above.`;
729224
729273
  realtimeEnabled
729225
729274
  );
729226
729275
  activeTask = task;
729227
- setTerminalTitle(input.slice(0, 60), version4);
729276
+ setTerminalTitle(input.slice(0, 60), version5);
729228
729277
  showPrompt();
729229
729278
  if (isNeovimActive() && !isNeovimFocused()) {
729230
729279
  refocusNeovim();
@@ -729236,7 +729285,7 @@ Execute this skill now. Follow the behavioral guidance above.`;
729236
729285
  }
729237
729286
  statusBar.setProcessing(false);
729238
729287
  activeTask = null;
729239
- setTerminalTitle(void 0, version4);
729288
+ setTerminalTitle(void 0, version5);
729240
729289
  showPrompt();
729241
729290
  return;
729242
729291
  }
@@ -729705,7 +729754,7 @@ ${taskInput}`;
729705
729754
  (summary, meta) => {
729706
729755
  lastCompletedSummary = summary;
729707
729756
  lastTaskMeta = meta ?? null;
729708
- setTerminalTitle(summary?.slice(0, 60), version4);
729757
+ setTerminalTitle(summary?.slice(0, 60), version5);
729709
729758
  },
729710
729759
  currentTaskType,
729711
729760
  resolvedContextWindowSize,
@@ -729728,7 +729777,7 @@ ${taskInput}`;
729728
729777
  clearTimeout(_recallTimer);
729729
729778
  _recallTimer = null;
729730
729779
  }
729731
- setTerminalTitle(input.slice(0, 60), version4);
729780
+ setTerminalTitle(input.slice(0, 60), version5);
729732
729781
  showPrompt();
729733
729782
  if (isNeovimActive() && !isNeovimFocused()) {
729734
729783
  refocusNeovim();
@@ -729779,12 +729828,12 @@ ${taskInput}`;
729779
729828
  sessionToolCallCount = activeTask.toolCallCount;
729780
729829
  }
729781
729830
  activeTask = null;
729782
- setTerminalTitle(void 0, version4);
729831
+ setTerminalTitle(void 0, version5);
729783
729832
  }
729784
729833
  const updateMode = savedSettings.updateMode ?? "auto";
729785
729834
  if (updateMode !== "manual" && !_autoUpdatedThisSession) {
729786
729835
  try {
729787
- const updateInfo = await checkForUpdate(version4);
729836
+ const updateInfo = await checkForUpdate(version5);
729788
729837
  if (updateInfo) {
729789
729838
  _autoUpdatedThisSession = true;
729790
729839
  const { exec: exec7 } = await import("node:child_process");
@@ -731986,9 +732035,9 @@ function parseCliArgs(argv) {
731986
732035
  }
731987
732036
  return result;
731988
732037
  }
731989
- function printHelp2(version4) {
732038
+ function printHelp2(version5) {
731990
732039
  const text2 = `
731991
- omnius v${version4} — AI coding agent powered by open-source models
732040
+ omnius v${version5} — AI coding agent powered by open-source models
731992
732041
 
731993
732042
  Usage:
731994
732043
  omnius "fix the login bug" run a task (implicit)
@@ -732063,16 +732112,16 @@ async function runSelfTest(mode) {
732063
732112
  process.stdout.write("Self-test complete.\n");
732064
732113
  }
732065
732114
  async function main() {
732066
- const version4 = getVersion5();
732115
+ const version5 = getVersion5();
732067
732116
  const parsed = parseCliArgs(process.argv);
732068
732117
  registerCurrentProcessLease(parsed);
732069
732118
  if (parsed.version) {
732070
- process.stdout.write(`omnius v${version4}
732119
+ process.stdout.write(`omnius v${version5}
732071
732120
  `);
732072
732121
  return;
732073
732122
  }
732074
732123
  if (parsed.help) {
732075
- printHelp2(version4);
732124
+ printHelp2(version5);
732076
732125
  return;
732077
732126
  }
732078
732127
  if (parsed.selfTest) {
@@ -732080,7 +732129,7 @@ async function main() {
732080
732129
  return;
732081
732130
  }
732082
732131
  if (!parsed.json) {
732083
- const updateInfo = await checkForUpdate(version4);
732132
+ const updateInfo = await checkForUpdate(version5);
732084
732133
  if (updateInfo) {
732085
732134
  process.stderr.write(formatUpdateBanner(updateInfo));
732086
732135
  }
@@ -732187,7 +732236,7 @@ async function main() {
732187
732236
  default: {
732188
732237
  printError(`Unknown command: "${parsed.command}"`);
732189
732238
  printBlank();
732190
- printHelp2(version4);
732239
+ printHelp2(version5);
732191
732240
  process.exit(1);
732192
732241
  }
732193
732242
  }