@kl-c/matrixos 0.1.23 → 0.1.24

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
@@ -30626,7 +30626,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30626
30626
  }(e3)) in t3 ? Object.defineProperty(t3, e3, { value: r2, enumerable: true, configurable: true, writable: true }) : t3[e3] = r2, t3;
30627
30627
  }
30628
30628
  __name(u, "u");
30629
- var l, f, s, y = r(425), p = y.AggregateError, g = y.AggregateErrorPrototype, v = y.Array, h = y.ArrayBuffer, d = y.ArrayBufferPrototype, b = y.ArrayIsArray, m = y.ArrayPrototype, S = y.ArrayPrototypeFilter, P = y.ArrayPrototypeForEach, x = y.ArrayPrototypeIncludes, w = y.ArrayPrototypeIndexOf, A = y.ArrayPrototypeJoin, O = y.ArrayPrototypeMap, _ = y.ArrayPrototypePop, j = y.ArrayPrototypePush, E = y.ArrayPrototypePushApply, k = y.ArrayPrototypeSlice, I = y.ArrayPrototypeSort, R = y.ArrayPrototypeSplice, L = y.ArrayPrototypeUnshift, T = y.BigIntPrototypeValueOf, B = y.Boolean, z45 = y.BooleanPrototype, M = y.BooleanPrototypeValueOf, C = y.DataView, D = y.DataViewPrototype, N = y.Date, F = y.DatePrototype, W = y.DatePrototypeGetTime, H = y.DatePrototypeToISOString, U = y.DatePrototypeToString, G = y.Error, V = y.ErrorPrototype, Z = y.ErrorPrototypeToString, $ = y.Function, Y = y.FunctionPrototype, q = y.FunctionPrototypeBind, J = y.FunctionPrototypeCall, K = y.FunctionPrototypeSymbolHasInstance, Q = y.FunctionPrototypeToString, X = y.JSONStringify, tt = y.Map, et = y.MapPrototype, rt = y.MapPrototypeEntries, nt = y.MapPrototypeGetSize, ot = y.MathFloor, at = y.MathMax, it = y.MathMin, ct = y.MathRound, ut = y.MathSqrt, lt = y.MathTrunc, ft = y.Number, st = y.NumberIsFinite, yt = y.NumberIsNaN, pt = y.NumberParseFloat, gt = y.NumberParseInt, vt = y.NumberPrototype, ht = y.NumberPrototypeToString, dt = y.NumberPrototypeValueOf, bt = y.Object, mt = y.ObjectAssign, St = y.ObjectDefineProperty, Pt = y.ObjectGetOwnPropertyDescriptor, xt = y.ObjectGetOwnPropertyNames, wt = y.ObjectGetOwnPropertySymbols, At = y.ObjectGetPrototypeOf, Ot = y.ObjectIs, _t = y.ObjectKeys, jt = y.ObjectPrototype, Et = y.ObjectPrototypeHasOwnProperty, kt = y.ObjectPrototypePropertyIsEnumerable, It = y.ObjectSeal, Rt = y.ObjectSetPrototypeOf, Lt = y.Promise, Tt = y.PromisePrototype, Bt = y.RangeError, zt = y.RangeErrorPrototype, Mt = y.ReflectApply, Ct = y.ReflectOwnKeys, Dt = y.RegExp, Nt = y.RegExpPrototype, Ft = y.RegExpPrototypeExec, Wt = y.RegExpPrototypeSymbolReplace, Ht = y.RegExpPrototypeSymbolSplit, Ut = y.RegExpPrototypeToString, Gt = y.SafeMap, Vt = y.SafeSet, Zt = y.SafeStringIterator, $t = y.Set, Yt = y.SetPrototype, qt = y.SetPrototypeGetSize, Jt = y.SetPrototypeValues, Kt = y.String, Qt = y.StringPrototype, Xt = y.StringPrototypeCharCodeAt, te = y.StringPrototypeCodePointAt, ee = y.StringPrototypeEndsWith, re = y.StringPrototypeIncludes, ne = y.StringPrototypeIndexOf, oe = y.StringPrototypeLastIndexOf, ae = y.StringPrototypeNormalize, ie = y.StringPrototypePadEnd, ce = y.StringPrototypePadStart, ue = y.StringPrototypeRepeat, le = y.StringPrototypeReplace, fe = y.StringPrototypeReplaceAll, se = y.StringPrototypeSlice, ye = y.StringPrototypeSplit, pe = y.StringPrototypeStartsWith, ge = y.StringPrototypeToLowerCase, ve = y.StringPrototypeTrim, he = y.StringPrototypeValueOf, de = y.SymbolIterator, be = y.SymbolPrototypeToString, me = y.SymbolPrototypeValueOf, Se = y.SymbolToPrimitive, Pe = y.SymbolToStringTag, xe = y.TypeError, we = y.TypeErrorPrototype, Ae = y.TypedArray, Oe = y.TypedArrayPrototype, _e = y.TypedArrayPrototypeGetLength, je = y.TypedArrayPrototypeGetSymbolToStringTag, Ee = y.Uint8Array, ke = y.WeakMap, Ie = y.WeakMapPrototype, Re = y.WeakSet, Le = y.WeakSetPrototype, Te = y.globalThis, Be = y.internalBinding, ze = y.uncurryThis, Me = r(153), Ce = Me.constants, De = Ce.ALL_PROPERTIES, Ne = Ce.ONLY_ENUMERABLE, Fe = Ce.kPending, We = Ce.kRejected, He = Me.getOwnNonIndexProperties, Ue = Me.getPromiseDetails, Ge = Me.getProxyDetails, Ve = Me.previewEntries, Ze = Me.getConstructorName, $e = Me.getExternalValue, Ye = Me.Proxy, qe = r(923), Je = qe.customInspectSymbol, Ke = qe.isError, Qe = qe.join, Xe = qe.removeColors, tr = r(924).isStackOverflowError, er = r(617), rr = er.isAsyncFunction, nr = er.isGeneratorFunction, or = er.isAnyArrayBuffer, ar = er.isArrayBuffer, ir = er.isArgumentsObject, cr = er.isBoxedPrimitive, ur = er.isDataView, lr = er.isExternal, fr = er.isMap, sr = er.isMapIterator, yr = er.isModuleNamespaceObject, pr = er.isNativeError, gr = er.isPromise, vr = er.isSet, hr = er.isSetIterator, dr = er.isWeakMap, br = er.isWeakSet, mr = er.isRegExp, Sr = er.isDate, Pr = er.isTypedArray, xr = er.isStringObject, wr = er.isNumberObject, Ar = er.isBooleanObject, Or = er.isBigIntObject, _r = r(229), jr = r(705).BuiltinModule, Er = r(116), kr = Er.validateObject, Ir = Er.validateString, Rr = Er.kValidateObjectAllowArray;
30629
+ var l, f, s, y = r(425), p = y.AggregateError, g = y.AggregateErrorPrototype, v = y.Array, h = y.ArrayBuffer, d = y.ArrayBufferPrototype, b = y.ArrayIsArray, m = y.ArrayPrototype, S = y.ArrayPrototypeFilter, P = y.ArrayPrototypeForEach, x = y.ArrayPrototypeIncludes, w = y.ArrayPrototypeIndexOf, A = y.ArrayPrototypeJoin, O = y.ArrayPrototypeMap, _ = y.ArrayPrototypePop, j = y.ArrayPrototypePush, E = y.ArrayPrototypePushApply, k = y.ArrayPrototypeSlice, I = y.ArrayPrototypeSort, R = y.ArrayPrototypeSplice, L = y.ArrayPrototypeUnshift, T = y.BigIntPrototypeValueOf, B = y.Boolean, z46 = y.BooleanPrototype, M = y.BooleanPrototypeValueOf, C = y.DataView, D = y.DataViewPrototype, N = y.Date, F = y.DatePrototype, W = y.DatePrototypeGetTime, H = y.DatePrototypeToISOString, U = y.DatePrototypeToString, G = y.Error, V = y.ErrorPrototype, Z = y.ErrorPrototypeToString, $ = y.Function, Y = y.FunctionPrototype, q = y.FunctionPrototypeBind, J = y.FunctionPrototypeCall, K = y.FunctionPrototypeSymbolHasInstance, Q = y.FunctionPrototypeToString, X = y.JSONStringify, tt = y.Map, et = y.MapPrototype, rt = y.MapPrototypeEntries, nt = y.MapPrototypeGetSize, ot = y.MathFloor, at = y.MathMax, it = y.MathMin, ct = y.MathRound, ut = y.MathSqrt, lt = y.MathTrunc, ft = y.Number, st = y.NumberIsFinite, yt = y.NumberIsNaN, pt = y.NumberParseFloat, gt = y.NumberParseInt, vt = y.NumberPrototype, ht = y.NumberPrototypeToString, dt = y.NumberPrototypeValueOf, bt = y.Object, mt = y.ObjectAssign, St = y.ObjectDefineProperty, Pt = y.ObjectGetOwnPropertyDescriptor, xt = y.ObjectGetOwnPropertyNames, wt = y.ObjectGetOwnPropertySymbols, At = y.ObjectGetPrototypeOf, Ot = y.ObjectIs, _t = y.ObjectKeys, jt = y.ObjectPrototype, Et = y.ObjectPrototypeHasOwnProperty, kt = y.ObjectPrototypePropertyIsEnumerable, It = y.ObjectSeal, Rt = y.ObjectSetPrototypeOf, Lt = y.Promise, Tt = y.PromisePrototype, Bt = y.RangeError, zt = y.RangeErrorPrototype, Mt = y.ReflectApply, Ct = y.ReflectOwnKeys, Dt = y.RegExp, Nt = y.RegExpPrototype, Ft = y.RegExpPrototypeExec, Wt = y.RegExpPrototypeSymbolReplace, Ht = y.RegExpPrototypeSymbolSplit, Ut = y.RegExpPrototypeToString, Gt = y.SafeMap, Vt = y.SafeSet, Zt = y.SafeStringIterator, $t = y.Set, Yt = y.SetPrototype, qt = y.SetPrototypeGetSize, Jt = y.SetPrototypeValues, Kt = y.String, Qt = y.StringPrototype, Xt = y.StringPrototypeCharCodeAt, te = y.StringPrototypeCodePointAt, ee = y.StringPrototypeEndsWith, re = y.StringPrototypeIncludes, ne = y.StringPrototypeIndexOf, oe = y.StringPrototypeLastIndexOf, ae = y.StringPrototypeNormalize, ie = y.StringPrototypePadEnd, ce = y.StringPrototypePadStart, ue = y.StringPrototypeRepeat, le = y.StringPrototypeReplace, fe = y.StringPrototypeReplaceAll, se = y.StringPrototypeSlice, ye = y.StringPrototypeSplit, pe = y.StringPrototypeStartsWith, ge = y.StringPrototypeToLowerCase, ve = y.StringPrototypeTrim, he = y.StringPrototypeValueOf, de = y.SymbolIterator, be = y.SymbolPrototypeToString, me = y.SymbolPrototypeValueOf, Se = y.SymbolToPrimitive, Pe = y.SymbolToStringTag, xe = y.TypeError, we = y.TypeErrorPrototype, Ae = y.TypedArray, Oe = y.TypedArrayPrototype, _e = y.TypedArrayPrototypeGetLength, je = y.TypedArrayPrototypeGetSymbolToStringTag, Ee = y.Uint8Array, ke = y.WeakMap, Ie = y.WeakMapPrototype, Re = y.WeakSet, Le = y.WeakSetPrototype, Te = y.globalThis, Be = y.internalBinding, ze = y.uncurryThis, Me = r(153), Ce = Me.constants, De = Ce.ALL_PROPERTIES, Ne = Ce.ONLY_ENUMERABLE, Fe = Ce.kPending, We = Ce.kRejected, He = Me.getOwnNonIndexProperties, Ue = Me.getPromiseDetails, Ge = Me.getProxyDetails, Ve = Me.previewEntries, Ze = Me.getConstructorName, $e = Me.getExternalValue, Ye = Me.Proxy, qe = r(923), Je = qe.customInspectSymbol, Ke = qe.isError, Qe = qe.join, Xe = qe.removeColors, tr = r(924).isStackOverflowError, er = r(617), rr = er.isAsyncFunction, nr = er.isGeneratorFunction, or = er.isAnyArrayBuffer, ar = er.isArrayBuffer, ir = er.isArgumentsObject, cr = er.isBoxedPrimitive, ur = er.isDataView, lr = er.isExternal, fr = er.isMap, sr = er.isMapIterator, yr = er.isModuleNamespaceObject, pr = er.isNativeError, gr = er.isPromise, vr = er.isSet, hr = er.isSetIterator, dr = er.isWeakMap, br = er.isWeakSet, mr = er.isRegExp, Sr = er.isDate, Pr = er.isTypedArray, xr = er.isStringObject, wr = er.isNumberObject, Ar = er.isBooleanObject, Or = er.isBigIntObject, _r = r(229), jr = r(705).BuiltinModule, Er = r(116), kr = Er.validateObject, Ir = Er.validateString, Rr = Er.kValidateObjectAllowArray;
30630
30630
  function Lr(t3) {
30631
30631
  return (f = f || r(802)).pathToFileURL(t3).href;
30632
30632
  }
@@ -30740,7 +30740,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30740
30740
  }
30741
30741
  __name(cn, "cn");
30742
30742
  Jr.colors = { __proto__: null, reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], blink: [5, 25], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], doubleunderline: [21, 24], black: [30, Kr], red: [31, Kr], green: [32, Kr], yellow: [33, Kr], blue: [34, Kr], magenta: [35, Kr], cyan: [36, Kr], white: [37, Kr], bgBlack: [40, Qr], bgRed: [41, Qr], bgGreen: [42, Qr], bgYellow: [43, Qr], bgBlue: [44, Qr], bgMagenta: [45, Qr], bgCyan: [46, Qr], bgWhite: [47, Qr], framed: [51, 54], overlined: [53, 55], gray: [90, Kr], redBright: [91, Kr], greenBright: [92, Kr], yellowBright: [93, Kr], blueBright: [94, Kr], magentaBright: [95, Kr], cyanBright: [96, Kr], whiteBright: [97, Kr], bgGray: [100, Qr], bgRedBright: [101, Qr], bgGreenBright: [102, Qr], bgYellowBright: [103, Qr], bgBlueBright: [104, Qr], bgMagentaBright: [105, Qr], bgCyanBright: [106, Qr], bgWhiteBright: [107, Qr] }, Xr("gray", "grey"), Xr("gray", "blackBright"), Xr("bgGray", "bgGrey"), Xr("bgGray", "bgBlackBright"), Xr("dim", "faint"), Xr("strikethrough", "crossedout"), Xr("strikethrough", "strikeThrough"), Xr("strikethrough", "crossedOut"), Xr("hidden", "conceal"), Xr("inverse", "swapColors"), Xr("inverse", "swapcolors"), Xr("doubleunderline", "doubleUnderline"), Jr.styles = mt({ __proto__: null }, { special: "cyan", number: "yellow", bigint: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", symbol: "green", date: "magenta", regexp: "red", module: "underline" });
30743
- var un = new Gt().set(m, { name: "Array", constructor: v }).set(d, { name: "ArrayBuffer", constructor: h }).set(Y, { name: "Function", constructor: $ }).set(et, { name: "Map", constructor: tt }).set(Yt, { name: "Set", constructor: $t }).set(jt, { name: "Object", constructor: bt }).set(Oe, { name: "TypedArray", constructor: Ae }).set(Nt, { name: "RegExp", constructor: Dt }).set(F, { name: "Date", constructor: N }).set(D, { name: "DataView", constructor: C }).set(V, { name: "Error", constructor: G }).set(g, { name: "AggregateError", constructor: p }).set(zt, { name: "RangeError", constructor: Bt }).set(we, { name: "TypeError", constructor: xe }).set(z45, { name: "Boolean", constructor: B }).set(vt, { name: "Number", constructor: ft }).set(Qt, { name: "String", constructor: Kt }).set(Tt, { name: "Promise", constructor: Lt }).set(Ie, { name: "WeakMap", constructor: ke }).set(Le, { name: "WeakSet", constructor: Re });
30743
+ var un = new Gt().set(m, { name: "Array", constructor: v }).set(d, { name: "ArrayBuffer", constructor: h }).set(Y, { name: "Function", constructor: $ }).set(et, { name: "Map", constructor: tt }).set(Yt, { name: "Set", constructor: $t }).set(jt, { name: "Object", constructor: bt }).set(Oe, { name: "TypedArray", constructor: Ae }).set(Nt, { name: "RegExp", constructor: Dt }).set(F, { name: "Date", constructor: N }).set(D, { name: "DataView", constructor: C }).set(V, { name: "Error", constructor: G }).set(g, { name: "AggregateError", constructor: p }).set(zt, { name: "RangeError", constructor: Bt }).set(we, { name: "TypeError", constructor: xe }).set(z46, { name: "Boolean", constructor: B }).set(vt, { name: "Number", constructor: ft }).set(Qt, { name: "String", constructor: Kt }).set(Tt, { name: "Promise", constructor: Lt }).set(Ie, { name: "WeakMap", constructor: ke }).set(Le, { name: "WeakSet", constructor: Re });
30744
30744
  function ln(t3, e3, r2, n2) {
30745
30745
  for (var o2, a2 = t3;t3 || Nr(t3); ) {
30746
30746
  var i2 = un.get(t3);
@@ -32255,7 +32255,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
32255
32255
  }
32256
32256
  }
32257
32257
  __name(B, "B");
32258
- function z45(t3, e3, r2) {
32258
+ function z46(t3, e3, r2) {
32259
32259
  var n2, o2 = v(A(t3));
32260
32260
  try {
32261
32261
  for (o2.s();!(n2 = o2.n()).done; ) {
@@ -32275,7 +32275,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
32275
32275
  o2.f();
32276
32276
  }
32277
32277
  }
32278
- __name(z45, "z");
32278
+ __name(z46, "z");
32279
32279
  ["Proxy", "globalThis"].forEach(function(t3) {
32280
32280
  P[t3] = globalThis[t3];
32281
32281
  }), [decodeURI, decodeURIComponent, encodeURI, encodeURIComponent].forEach(function(t3) {
@@ -32286,7 +32286,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
32286
32286
  B(globalThis[t3], P, t3);
32287
32287
  }), ["AggregateError", "Array", "ArrayBuffer", "BigInt", "BigInt64Array", "BigUint64Array", "Boolean", "DataView", "Date", "Error", "EvalError", "FinalizationRegistry", "Float32Array", "Float64Array", "Function", "Int16Array", "Int32Array", "Int8Array", "Map", "Number", "Object", "RangeError", "ReferenceError", "RegExp", "Set", "String", "Symbol", "SyntaxError", "TypeError", "URIError", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray", "WeakMap", "WeakRef", "WeakSet"].forEach(function(t3) {
32288
32288
  var e3 = globalThis[t3];
32289
- e3 && (P[t3] = e3, B(e3, P, t3), z45(e3.prototype, P, "".concat(t3, "Prototype")));
32289
+ e3 && (P[t3] = e3, B(e3, P, t3), z46(e3.prototype, P, "".concat(t3, "Prototype")));
32290
32290
  }), ["Promise"].forEach(function(t3) {
32291
32291
  var e3 = globalThis[t3];
32292
32292
  P[t3] = e3, function(t4, e4, r2) {
@@ -32308,10 +32308,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
32308
32308
  } finally {
32309
32309
  o2.f();
32310
32310
  }
32311
- }(e3, P, t3), z45(e3.prototype, P, "".concat(t3, "Prototype"));
32311
+ }(e3, P, t3), z46(e3.prototype, P, "".concat(t3, "Prototype"));
32312
32312
  }), [{ name: "TypedArray", original: Reflect.getPrototypeOf(Uint8Array) }, { name: "ArrayIterator", original: { prototype: Reflect.getPrototypeOf(Array.prototype[Symbol.iterator]()) } }, { name: "StringIterator", original: { prototype: Reflect.getPrototypeOf(String.prototype[Symbol.iterator]()) } }].forEach(function(t3) {
32313
32313
  var { name: e3, original: r2 } = t3;
32314
- P[e3] = r2, z45(r2, P, e3), z45(r2.prototype, P, "".concat(e3, "Prototype"));
32314
+ P[e3] = r2, z46(r2, P, e3), z46(r2.prototype, P, "".concat(e3, "Prototype"));
32315
32315
  }), P.IteratorPrototype = Reflect.getPrototypeOf(P.ArrayIteratorPrototype);
32316
32316
  var { ArrayPrototypeForEach: M, FinalizationRegistry: C, FunctionPrototypeCall: D, Map: N, ObjectFreeze: F, ObjectSetPrototypeOf: W, RegExp: H, Set: U, SymbolIterator: G, WeakMap: V, WeakRef: Z, WeakSet: $ } = P, Y = /* @__PURE__ */ __name(function(t3, e3) {
32317
32317
  var r2 = function() {
@@ -32691,7 +32691,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
32691
32691
  }, l(t3, e3);
32692
32692
  }
32693
32693
  __name(l, "l");
32694
- var f, s, y = r(425), p = y.ArrayIsArray, g = y.ArrayPrototypeIncludes, v = y.ArrayPrototypeIndexOf, h = y.ArrayPrototypeJoin, d = y.ArrayPrototypePush, b = y.ArrayPrototypeSlice, m = y.ArrayPrototypeSplice, S = y.Error, P = y.ErrorCaptureStackTrace, x = y.JSONStringify, w = y.ObjectDefineProperty, A = y.ReflectApply, O = y.RegExpPrototypeExec, _ = y.SafeMap, j = y.SafeWeakMap, E = y.String, k = y.StringPrototypeEndsWith, I = y.StringPrototypeIncludes, R = y.StringPrototypeIndexOf, L = y.StringPrototypeSlice, T = y.StringPrototypeToLowerCase, B = y.Symbol, z45 = y.TypeError, M = B("kIsNodeError"), C = new _, D = {}, N = /^[A-Z][a-zA-Z0-9]*$/, F = ["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"], W = new j, H = r(229), U = null;
32694
+ var f, s, y = r(425), p = y.ArrayIsArray, g = y.ArrayPrototypeIncludes, v = y.ArrayPrototypeIndexOf, h = y.ArrayPrototypeJoin, d = y.ArrayPrototypePush, b = y.ArrayPrototypeSlice, m = y.ArrayPrototypeSplice, S = y.Error, P = y.ErrorCaptureStackTrace, x = y.JSONStringify, w = y.ObjectDefineProperty, A = y.ReflectApply, O = y.RegExpPrototypeExec, _ = y.SafeMap, j = y.SafeWeakMap, E = y.String, k = y.StringPrototypeEndsWith, I = y.StringPrototypeIncludes, R = y.StringPrototypeIndexOf, L = y.StringPrototypeSlice, T = y.StringPrototypeToLowerCase, B = y.Symbol, z46 = y.TypeError, M = B("kIsNodeError"), C = new _, D = {}, N = /^[A-Z][a-zA-Z0-9]*$/, F = ["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"], W = new j, H = r(229), U = null;
32695
32695
  function G(t3, e3) {
32696
32696
  var r2 = function(t4) {
32697
32697
  function r3() {
@@ -32874,7 +32874,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
32874
32874
  y2 !== -1 && (m(c2, y2, 1), d(u2, "Object"));
32875
32875
  }
32876
32876
  return c2.length > 0 && (o2 += "".concat(c2.length > 1 ? "one of type" : "of type", " ").concat(q(c2, "or")), (u2.length > 0 || l2.length > 0) && (o2 += " or ")), u2.length > 0 && (o2 += "an instance of ".concat(q(u2, "or")), l2.length > 0 && (o2 += " or ")), l2.length > 0 && (l2.length > 1 ? o2 += "one of ".concat(q(l2, "or")) : (T(l2[0]) !== l2[0] && (o2 += "an "), o2 += "".concat(l2[0]))), o2 + ". Received ".concat(Y(r2));
32877
- }, z45);
32877
+ }, z46);
32878
32878
  } }, e = {};
32879
32879
  return (/* @__PURE__ */ __name(function r(n) {
32880
32880
  var o = e[n];
@@ -43121,7 +43121,7 @@ var require_cjs3 = __commonJS((exports) => {
43121
43121
  }
43122
43122
  __name(O, "O");
43123
43123
  function S(e3) {
43124
- return l$1 && y ? b(e3) !== undefined : B(e3) || k(e3) || E(e3) || D(e3) || U(e3) || P(e3) || x(e3) || I(e3) || M(e3) || z45(e3) || F(e3);
43124
+ return l$1 && y ? b(e3) !== undefined : B(e3) || k(e3) || E(e3) || D(e3) || U(e3) || P(e3) || x(e3) || I(e3) || M(e3) || z46(e3) || F(e3);
43125
43125
  }
43126
43126
  __name(S, "S");
43127
43127
  function B(e3) {
@@ -43160,10 +43160,10 @@ var require_cjs3 = __commonJS((exports) => {
43160
43160
  return l$1 && y ? b(e3) === "Float64Array" : m2(e3) === "[object Float64Array]";
43161
43161
  }
43162
43162
  __name(M, "M");
43163
- function z45(e3) {
43163
+ function z46(e3) {
43164
43164
  return l$1 && y ? b(e3) === "BigInt64Array" : m2(e3) === "[object BigInt64Array]";
43165
43165
  }
43166
- __name(z45, "z");
43166
+ __name(z46, "z");
43167
43167
  function F(e3) {
43168
43168
  return l$1 && y ? b(e3) === "BigUint64Array" : m2(e3) === "[object BigUint64Array]";
43169
43169
  }
@@ -43232,7 +43232,7 @@ var require_cjs3 = __commonJS((exports) => {
43232
43232
  return typeof Promise != "undefined" && e3 instanceof Promise || e3 !== null && typeof e3 == "object" && typeof e3.then == "function" && typeof e3.catch == "function";
43233
43233
  }, o$2.isArrayBufferView = function(e3) {
43234
43234
  return d2 && ArrayBuffer.isView ? ArrayBuffer.isView(e3) : S(e3) || R(e3);
43235
- }, o$2.isTypedArray = S, o$2.isUint8Array = B, o$2.isUint8ClampedArray = k, o$2.isUint16Array = E, o$2.isUint32Array = D, o$2.isInt8Array = U, o$2.isInt16Array = P, o$2.isInt32Array = x, o$2.isFloat32Array = I, o$2.isFloat64Array = M, o$2.isBigInt64Array = z45, o$2.isBigUint64Array = F, T2.working = typeof Map != "undefined" && T2(/* @__PURE__ */ new Map), o$2.isMap = function(e3) {
43235
+ }, o$2.isTypedArray = S, o$2.isUint8Array = B, o$2.isUint8ClampedArray = k, o$2.isUint16Array = E, o$2.isUint32Array = D, o$2.isInt8Array = U, o$2.isInt16Array = P, o$2.isInt32Array = x, o$2.isFloat32Array = I, o$2.isFloat64Array = M, o$2.isBigInt64Array = z46, o$2.isBigUint64Array = F, T2.working = typeof Map != "undefined" && T2(/* @__PURE__ */ new Map), o$2.isMap = function(e3) {
43236
43236
  return typeof Map != "undefined" && (T2.working ? T2(e3) : e3 instanceof Map);
43237
43237
  }, N.working = typeof Set != "undefined" && N(/* @__PURE__ */ new Set), o$2.isSet = function(e3) {
43238
43238
  return typeof Set != "undefined" && (N.working ? N(e3) : e3 instanceof Set);
@@ -155116,13 +155116,13 @@ var require_lib = __commonJS((exports) => {
155116
155116
  o[a] = c[a];
155117
155117
  }
155118
155118
  function crypto_scalarmult(q, n, p) {
155119
- var z45 = new Uint8Array(32);
155119
+ var z46 = new Uint8Array(32);
155120
155120
  var x = new Float64Array(80), r, i;
155121
155121
  var a = gf(), b = gf(), c = gf(), d = gf(), e = gf(), f = gf();
155122
155122
  for (i = 0;i < 31; i++)
155123
- z45[i] = n[i];
155124
- z45[31] = n[31] & 127 | 64;
155125
- z45[0] &= 248;
155123
+ z46[i] = n[i];
155124
+ z46[31] = n[31] & 127 | 64;
155125
+ z46[0] &= 248;
155126
155126
  unpack25519(x, p);
155127
155127
  for (i = 0;i < 16; i++) {
155128
155128
  b[i] = x[i];
@@ -155130,7 +155130,7 @@ var require_lib = __commonJS((exports) => {
155130
155130
  }
155131
155131
  a[0] = d[0] = 1;
155132
155132
  for (i = 254;i >= 0; --i) {
155133
- r = z45[i >>> 3] >>> (i & 7) & 1;
155133
+ r = z46[i >>> 3] >>> (i & 7) & 1;
155134
155134
  sel25519(a, b, r);
155135
155135
  sel25519(c, d, r);
155136
155136
  A(e, a, c);
@@ -155929,14 +155929,14 @@ var require_lib = __commonJS((exports) => {
155929
155929
  return mlen;
155930
155930
  }
155931
155931
  function convertPublicKey(pk) {
155932
- var z45 = new Uint8Array(32), x = gf(), a = gf(), b = gf();
155932
+ var z46 = new Uint8Array(32), x = gf(), a = gf(), b = gf();
155933
155933
  unpack25519(x, pk);
155934
155934
  A(a, x, gf1);
155935
155935
  Z(b, x, gf1);
155936
155936
  inv25519(a, a);
155937
155937
  M(a, a, b);
155938
- pack25519(z45, a);
155939
- return z45;
155938
+ pack25519(z46, a);
155939
+ return z46;
155940
155940
  }
155941
155941
  function curve25519_sign_open(m, sm, n, pk) {
155942
155942
  var edpk = convertPublicKey(pk);
@@ -157759,7 +157759,7 @@ var init_index_min = __esm(() => {
157759
157759
  return this.#w;
157760
157760
  }
157761
157761
  constructor(e) {
157762
- let { max: t2 = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: l, allowStale: h, dispose: r, onInsert: c, disposeAfter: m, noDisposeOnSet: _, noUpdateTTL: u, maxSize: g = 0, maxEntrySize: f = 0, sizeCalculation: y, fetchMethod: a, memoMethod: w, noDeleteOnFetchRejection: F, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: A, ignoreFetchAbort: z45, backgroundFetchSize: C = 1, perf: E } = e;
157762
+ let { max: t2 = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: l, allowStale: h, dispose: r, onInsert: c, disposeAfter: m, noDisposeOnSet: _, noUpdateTTL: u, maxSize: g = 0, maxEntrySize: f = 0, sizeCalculation: y, fetchMethod: a, memoMethod: w, noDeleteOnFetchRejection: F, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: A, ignoreFetchAbort: z46, backgroundFetchSize: C = 1, perf: E } = e;
157763
157763
  if (this.backgroundFetchSize = C, E !== undefined && typeof E?.now != "function")
157764
157764
  throw new TypeError("perf option must have a now() method if specified");
157765
157765
  if (this.#m = E ?? L, t2 !== 0 && !T(t2))
@@ -157777,7 +157777,7 @@ var init_index_min = __esm(() => {
157777
157777
  throw new TypeError("memoMethod must be a function if defined");
157778
157778
  if (this.#I = w, a !== undefined && typeof a != "function")
157779
157779
  throw new TypeError("fetchMethod must be a function if specified");
157780
- if (this.#M = a, this.#U = !!a, this.#s = new Map, this.#i = Array.from({ length: t2 }).fill(undefined), this.#t = Array.from({ length: t2 }).fill(undefined), this.#l = new v(t2), this.#u = new v(t2), this.#a = 0, this.#h = 0, this.#y = x.create(t2), this.#n = 0, this.#b = 0, typeof r == "function" && (this.#S = r), typeof c == "function" && (this.#O = c), typeof m == "function" ? (this.#w = m, this.#r = []) : (this.#w = undefined, this.#r = undefined), this.#T = !!this.#S, this.#D = !!this.#O, this.#f = !!this.#w, this.noDisposeOnSet = !!_, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!F, this.allowStaleOnFetchRejection = !!p, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z45, this.maxEntrySize !== 0) {
157780
+ if (this.#M = a, this.#U = !!a, this.#s = new Map, this.#i = Array.from({ length: t2 }).fill(undefined), this.#t = Array.from({ length: t2 }).fill(undefined), this.#l = new v(t2), this.#u = new v(t2), this.#a = 0, this.#h = 0, this.#y = x.create(t2), this.#n = 0, this.#b = 0, typeof r == "function" && (this.#S = r), typeof c == "function" && (this.#O = c), typeof m == "function" ? (this.#w = m, this.#r = []) : (this.#w = undefined, this.#r = undefined), this.#T = !!this.#S, this.#D = !!this.#O, this.#f = !!this.#w, this.noDisposeOnSet = !!_, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!F, this.allowStaleOnFetchRejection = !!p, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z46, this.maxEntrySize !== 0) {
157781
157781
  if (this.#c !== 0 && !T(this.#c))
157782
157782
  throw new TypeError("maxSize must be a positive integer if specified");
157783
157783
  if (!T(this.maxEntrySize))
@@ -158161,8 +158161,8 @@ var init_index_min = __esm(() => {
158161
158161
  let A = this.#p(b);
158162
158162
  if (!y && !A)
158163
158163
  return a && (a.fetch = "hit"), this.#L(b), s && this.#R(b), a && this.#v(a, b), p;
158164
- let z45 = this.#P(e, b, F, f), E = z45.__staleWhileFetching !== undefined && i;
158165
- return a && (a.fetch = A ? "stale" : "refresh", E && A && (a.returnedStale = true)), E ? z45.__staleWhileFetching : z45.__returned = z45;
158164
+ let z46 = this.#P(e, b, F, f), E = z46.__staleWhileFetching !== undefined && i;
158165
+ return a && (a.fetch = A ? "stale" : "refresh", E && A && (a.returnedStale = true)), E ? z46.__staleWhileFetching : z46.__returned = z46;
158166
158166
  }
158167
158167
  }
158168
158168
  forceFetch(e, t2 = {}) {
@@ -171454,14 +171454,14 @@ var require_encoder = __commonJS((exports, module) => {
171454
171454
  tmp12 = tmp6 + tmp7;
171455
171455
  var z52 = (tmp10 - tmp12) * 0.382683433;
171456
171456
  var z210 = 0.5411961 * tmp10 + z52;
171457
- var z45 = 1.306562965 * tmp12 + z52;
171457
+ var z46 = 1.306562965 * tmp12 + z52;
171458
171458
  var z310 = tmp11 * 0.707106781;
171459
171459
  var z112 = tmp7 + z310;
171460
171460
  var z132 = tmp7 - z310;
171461
171461
  data[dataOff + 5] = z132 + z210;
171462
171462
  data[dataOff + 3] = z132 - z210;
171463
- data[dataOff + 1] = z112 + z45;
171464
- data[dataOff + 7] = z112 - z45;
171463
+ data[dataOff + 1] = z112 + z46;
171464
+ data[dataOff + 7] = z112 - z46;
171465
171465
  dataOff += 8;
171466
171466
  }
171467
171467
  dataOff = 0;
@@ -171991,8 +171991,8 @@ var require_decoder = __commonJS((exports, module) => {
171991
171991
  continue;
171992
171992
  }
171993
171993
  k3 += r;
171994
- var z45 = dctZigZag[k3];
171995
- zz[z45] = receiveAndExtend(s);
171994
+ var z46 = dctZigZag[k3];
171995
+ zz[z46] = receiveAndExtend(s);
171996
171996
  k3++;
171997
171997
  }
171998
171998
  }
@@ -172023,8 +172023,8 @@ var require_decoder = __commonJS((exports, module) => {
172023
172023
  continue;
172024
172024
  }
172025
172025
  k3 += r;
172026
- var z45 = dctZigZag[k3];
172027
- zz[z45] = receiveAndExtend(s) * (1 << successive);
172026
+ var z46 = dctZigZag[k3];
172027
+ zz[z46] = receiveAndExtend(s) * (1 << successive);
172028
172028
  k3++;
172029
172029
  }
172030
172030
  }
@@ -172032,8 +172032,8 @@ var require_decoder = __commonJS((exports, module) => {
172032
172032
  function decodeACSuccessive(component2, zz) {
172033
172033
  var k3 = spectralStart, e = spectralEnd, r = 0;
172034
172034
  while (k3 <= e) {
172035
- var z45 = dctZigZag[k3];
172036
- var direction = zz[z45] < 0 ? -1 : 1;
172035
+ var z46 = dctZigZag[k3];
172036
+ var direction = zz[z46] < 0 ? -1 : 1;
172037
172037
  switch (successiveACState) {
172038
172038
  case 0:
172039
172039
  var rs = decodeHuffman(component2.huffmanTableAC);
@@ -172055,8 +172055,8 @@ var require_decoder = __commonJS((exports, module) => {
172055
172055
  continue;
172056
172056
  case 1:
172057
172057
  case 2:
172058
- if (zz[z45])
172059
- zz[z45] += (readBit() << successive) * direction;
172058
+ if (zz[z46])
172059
+ zz[z46] += (readBit() << successive) * direction;
172060
172060
  else {
172061
172061
  r--;
172062
172062
  if (r === 0)
@@ -172064,16 +172064,16 @@ var require_decoder = __commonJS((exports, module) => {
172064
172064
  }
172065
172065
  break;
172066
172066
  case 3:
172067
- if (zz[z45])
172068
- zz[z45] += (readBit() << successive) * direction;
172067
+ if (zz[z46])
172068
+ zz[z46] += (readBit() << successive) * direction;
172069
172069
  else {
172070
- zz[z45] = successiveACNextValue << successive;
172070
+ zz[z46] = successiveACNextValue << successive;
172071
172071
  successiveACState = 0;
172072
172072
  }
172073
172073
  break;
172074
172074
  case 4:
172075
- if (zz[z45])
172076
- zz[z45] += (readBit() << successive) * direction;
172075
+ if (zz[z46])
172076
+ zz[z46] += (readBit() << successive) * direction;
172077
172077
  break;
172078
172078
  }
172079
172079
  k3++;
@@ -172464,13 +172464,13 @@ var require_decoder = __commonJS((exports, module) => {
172464
172464
  var tableData = new Int32Array(64);
172465
172465
  if (quantizationTableSpec >> 4 === 0) {
172466
172466
  for (j2 = 0;j2 < 64; j2++) {
172467
- var z45 = dctZigZag[j2];
172468
- tableData[z45] = data[offset++];
172467
+ var z46 = dctZigZag[j2];
172468
+ tableData[z46] = data[offset++];
172469
172469
  }
172470
172470
  } else if (quantizationTableSpec >> 4 === 1) {
172471
172471
  for (j2 = 0;j2 < 64; j2++) {
172472
- var z45 = dctZigZag[j2];
172473
- tableData[z45] = readUint16();
172472
+ var z46 = dctZigZag[j2];
172473
+ tableData[z46] = readUint16();
172474
172474
  }
172475
172475
  } else
172476
172476
  throw new Error("DQT: invalid table spec");
@@ -179544,7 +179544,7 @@ var require_UTIF = __commonJS((exports, module) => {
179544
179544
  function a7(Q, h, f, G2, n, E, a, C, F, d3) {
179545
179545
  if (d3 == null)
179546
179546
  d3 = false;
179547
- var { m: T2, Z: U2 } = f, z45 = h, J = 0, V = 0, r = 0, D = 0, a8, q = 0, X, O2, _, N, e, K, x2 = 0, k2, g, R2, c2;
179547
+ var { m: T2, Z: U2 } = f, z46 = h, J = 0, V = 0, r = 0, D = 0, a8, q = 0, X, O2, _, N, e, K, x2 = 0, k2, g, R2, c2;
179548
179548
  function Y() {
179549
179549
  if (V > 0) {
179550
179550
  V--;
@@ -179783,10 +179783,10 @@ var require_UTIF = __commonJS((exports, module) => {
179783
179783
  break;
179784
179784
  }
179785
179785
  }
179786
- return h - z45;
179786
+ return h - z46;
179787
179787
  }
179788
179788
  function al(Q, h, f) {
179789
- var { $: G2, D: n } = Q, E, a, C, F, d3, T2, U2, z45, J, V, Y, u, m, j2, v, $, b;
179789
+ var { $: G2, D: n } = Q, E, a, C, F, d3, T2, U2, z46, J, V, Y, u, m, j2, v, $, b;
179790
179790
  if (!G2) {
179791
179791
  throw new W2("missing required Quantization Table.");
179792
179792
  }
@@ -179824,7 +179824,7 @@ var require_UTIF = __commonJS((exports, module) => {
179824
179824
  C = Y;
179825
179825
  F = v;
179826
179826
  d3 = ad * (V - $) + 128 >> 8;
179827
- z45 = ad * (V + $) + 128 >> 8;
179827
+ z46 = ad * (V + $) + 128 >> 8;
179828
179828
  T2 = u << 4;
179829
179829
  U2 = j2 << 4;
179830
179830
  E = E + a + 1 >> 1;
@@ -179834,20 +179834,20 @@ var require_UTIF = __commonJS((exports, module) => {
179834
179834
  F = b;
179835
179835
  d3 = d3 + U2 + 1 >> 1;
179836
179836
  U2 = d3 - U2;
179837
- z45 = z45 + T2 + 1 >> 1;
179838
- T2 = z45 - T2;
179837
+ z46 = z46 + T2 + 1 >> 1;
179838
+ T2 = z46 - T2;
179839
179839
  E = E + F + 1 >> 1;
179840
179840
  F = E - F;
179841
179841
  a = a + C + 1 >> 1;
179842
179842
  C = a - C;
179843
- b = d3 * ao + z45 * ah + 2048 >> 12;
179844
- d3 = d3 * ah - z45 * ao + 2048 >> 12;
179845
- z45 = b;
179843
+ b = d3 * ao + z46 * ah + 2048 >> 12;
179844
+ d3 = d3 * ah - z46 * ao + 2048 >> 12;
179845
+ z46 = b;
179846
179846
  b = T2 * ac + U2 * t2 + 2048 >> 12;
179847
179847
  T2 = T2 * t2 - U2 * ac + 2048 >> 12;
179848
179848
  U2 = b;
179849
- f[r] = E + z45;
179850
- f[r + 7] = E - z45;
179849
+ f[r] = E + z46;
179850
+ f[r + 7] = E - z46;
179851
179851
  f[r + 1] = a + U2;
179852
179852
  f[r + 6] = a - U2;
179853
179853
  f[r + 2] = C + T2;
@@ -179888,7 +179888,7 @@ var require_UTIF = __commonJS((exports, module) => {
179888
179888
  C = Y;
179889
179889
  F = v;
179890
179890
  d3 = ad * (V - $) + 2048 >> 12;
179891
- z45 = ad * (V + $) + 2048 >> 12;
179891
+ z46 = ad * (V + $) + 2048 >> 12;
179892
179892
  T2 = u;
179893
179893
  U2 = j2;
179894
179894
  E = (E + a + 1 >> 1) + 4112;
@@ -179898,20 +179898,20 @@ var require_UTIF = __commonJS((exports, module) => {
179898
179898
  F = b;
179899
179899
  d3 = d3 + U2 + 1 >> 1;
179900
179900
  U2 = d3 - U2;
179901
- z45 = z45 + T2 + 1 >> 1;
179902
- T2 = z45 - T2;
179901
+ z46 = z46 + T2 + 1 >> 1;
179902
+ T2 = z46 - T2;
179903
179903
  E = E + F + 1 >> 1;
179904
179904
  F = E - F;
179905
179905
  a = a + C + 1 >> 1;
179906
179906
  C = a - C;
179907
- b = d3 * ao + z45 * ah + 2048 >> 12;
179908
- d3 = d3 * ah - z45 * ao + 2048 >> 12;
179909
- z45 = b;
179907
+ b = d3 * ao + z46 * ah + 2048 >> 12;
179908
+ d3 = d3 * ah - z46 * ao + 2048 >> 12;
179909
+ z46 = b;
179910
179910
  b = T2 * ac + U2 * t2 + 2048 >> 12;
179911
179911
  T2 = T2 * t2 - U2 * ac + 2048 >> 12;
179912
179912
  U2 = b;
179913
- J = E + z45;
179914
- $ = E - z45;
179913
+ J = E + z46;
179914
+ $ = E - z46;
179915
179915
  V = a + U2;
179916
179916
  v = a - U2;
179917
179917
  Y = C + T2;
@@ -180041,7 +180041,7 @@ var require_UTIF = __commonJS((exports, module) => {
180041
180041
  F2.m = o;
180042
180042
  F2.R = B;
180043
180043
  }
180044
- var U2 = [], z45 = [], J = [], V = Z(Q, E);
180044
+ var U2 = [], z46 = [], J = [], V = Z(Q, E);
180045
180045
  E += 2;
180046
180046
  if (V !== 65496) {
180047
180047
  throw new W2("SOI not found");
@@ -180154,7 +180154,7 @@ var require_UTIF = __commonJS((exports, module) => {
180154
180154
  K[u] = Q[E];
180155
180155
  }
180156
180156
  Y += 17 + e;
180157
- (_ >> 4 === 0 ? J : z45)[_ & 15] = a5(N, K);
180157
+ (_ >> 4 === 0 ? J : z46)[_ & 15] = a5(N, K);
180158
180158
  }
180159
180159
  break;
180160
180160
  case 65501:
@@ -180172,7 +180172,7 @@ var require_UTIF = __commonJS((exports, module) => {
180172
180172
  R2.index = c2;
180173
180173
  var a6 = Q[E++];
180174
180174
  R2.J = J[a6 >> 4];
180175
- R2.i = z45[a6 & 15];
180175
+ R2.i = z46[a6 & 15];
180176
180176
  g.push(R2);
180177
180177
  }
180178
180178
  var I2 = Q[E++], l = Q[E++], M2 = Q[E++];
@@ -180228,7 +180228,7 @@ var require_UTIF = __commonJS((exports, module) => {
180228
180228
  }, Y(Q, h, f) {
180229
180229
  if (f == null)
180230
180230
  f = false;
180231
- var G2 = this.width / Q, n = this.height / h, E, a, C, F, d3, T2, U2, z45, J, V, Y = 0, u, m = this.W.length, j2 = Q * h * m, v = new Uint8ClampedArray(j2), $ = new Uint32Array(Q), b = 4294967288, r;
180231
+ var G2 = this.width / Q, n = this.height / h, E, a, C, F, d3, T2, U2, z46, J, V, Y = 0, u, m = this.W.length, j2 = Q * h * m, v = new Uint8ClampedArray(j2), $ = new Uint32Array(Q), b = 4294967288, r;
180232
180232
  for (U2 = 0;U2 < m; U2++) {
180233
180233
  E = this.W[U2];
180234
180234
  a = E.l * G2;
@@ -180238,14 +180238,14 @@ var require_UTIF = __commonJS((exports, module) => {
180238
180238
  F = E.P + 1 << 3;
180239
180239
  if (a !== r) {
180240
180240
  for (d3 = 0;d3 < Q; d3++) {
180241
- z45 = 0 | d3 * a;
180242
- $[d3] = (z45 & b) << 3 | z45 & 7;
180241
+ z46 = 0 | d3 * a;
180242
+ $[d3] = (z46 & b) << 3 | z46 & 7;
180243
180243
  }
180244
180244
  r = a;
180245
180245
  }
180246
180246
  for (T2 = 0;T2 < h; T2++) {
180247
- z45 = 0 | T2 * C;
180248
- V = F * (z45 & b) | (z45 & 7) << 3;
180247
+ z46 = 0 | T2 * C;
180248
+ V = F * (z46 & b) | (z46 & 7) << 3;
180249
180249
  for (d3 = 0;d3 < Q; d3++) {
180250
180250
  v[Y] = u[V + $[d3]];
180251
180251
  Y += m;
@@ -180258,7 +180258,7 @@ var require_UTIF = __commonJS((exports, module) => {
180258
180258
  }
180259
180259
  if (P2) {
180260
180260
  for (U2 = 0;U2 < j2; ) {
180261
- for (z45 = 0, J = 0;z45 < m; z45++, U2++, J += 2) {
180261
+ for (z46 = 0, J = 0;z46 < m; z46++, U2++, J += 2) {
180262
180262
  v[U2] = (v[U2] * P2[J] >> 8) + P2[J + 1];
180263
180263
  }
180264
180264
  }
@@ -180957,7 +180957,7 @@ var require_UTIF = __commonJS((exports, module) => {
180957
180957
  var a8 = T2[0], ab = T2[1], aq = T2[2], as = T2[3];
180958
180958
  for (var b = 0;b < X; b += 2)
180959
180959
  for (var G2 = 0;G2 < u; G2 += 2) {
180960
- var U2 = b * u + G2, c2 = (b >>> 1) * (u >>> 1) + (G2 >>> 1), z45 = a8[c2], ao = ab[c2] - 2048, ak = aq[c2] - 2048, ad = as[c2] - 2048, aj = (ao << 1) + z45, a0 = (ak << 1) + z45, aH = z45 + ad, am = z45 - ad;
180960
+ var U2 = b * u + G2, c2 = (b >>> 1) * (u >>> 1) + (G2 >>> 1), z46 = a8[c2], ao = ab[c2] - 2048, ak = aq[c2] - 2048, ad = as[c2] - 2048, aj = (ao << 1) + z46, a0 = (ak << 1) + z46, aH = z46 + ad, am = z46 - ad;
180961
180961
  if (a5) {
180962
180962
  L2[U2] = q(aH);
180963
180963
  L2[U2 + 1] = q(a0);
@@ -182705,7 +182705,7 @@ var require_UTIF = __commonJS((exports, module) => {
182705
182705
  f[w] = l();
182706
182706
  for (var w = 0;w < 16; w++) {
182707
182707
  for (var x2 = 0;x2 < f[w]; x2++) {
182708
- var T2 = z45(I2, 0, w + 1, 1);
182708
+ var T2 = z46(I2, 0, w + 1, 1);
182709
182709
  I2[T2 + 3] = l();
182710
182710
  }
182711
182711
  }
@@ -182720,7 +182720,7 @@ var require_UTIF = __commonJS((exports, module) => {
182720
182720
  E[w] = Y;
182721
182721
  }
182722
182722
  }
182723
- function z45(h, V, I2, f) {
182723
+ function z46(h, V, I2, f) {
182724
182724
  if (h[V + 3] != 255)
182725
182725
  return 0;
182726
182726
  if (I2 == 0)
@@ -182730,7 +182730,7 @@ var require_UTIF = __commonJS((exports, module) => {
182730
182730
  h[V + w] = h.length;
182731
182731
  h.push(0, 0, f, 255);
182732
182732
  }
182733
- var x2 = z45(h, h[V + w], I2 - 1, f + 1);
182733
+ var x2 = z46(h, h[V + w], I2 - 1, f + 1);
182734
182734
  if (x2 != 0)
182735
182735
  return x2;
182736
182736
  }
@@ -183123,8 +183123,8 @@ var require_UTIF = __commonJS((exports, module) => {
183123
183123
  R2 = y(l);
183124
183124
  var W2 = a4(u);
183125
183125
  if (W2 < t2.n - Z.v - 1) {
183126
- var z45 = a0(O2[R2][0], O2[R2][1]);
183127
- a = K(u, z45) + (W2 << z45);
183126
+ var z46 = a0(O2[R2][0], O2[R2][1]);
183127
+ a = K(u, z46) + (W2 << z46);
183128
183128
  } else {
183129
183129
  a = K(u, Z.v) + 1;
183130
183130
  }
@@ -184231,16 +184231,16 @@ var require_image_q = __commonJS((exports, module) => {
184231
184231
  function pivot(n) {
184232
184232
  return n > 0.008856 ? n ** (1 / 3) : 7.787 * n + 16 / 116;
184233
184233
  }
184234
- function xyz2lab(x22, y2, z45) {
184234
+ function xyz2lab(x22, y2, z46) {
184235
184235
  x22 = pivot(x22 / refX);
184236
184236
  y2 = pivot(y2 / refY);
184237
- z45 = pivot(z45 / refZ);
184237
+ z46 = pivot(z46 / refZ);
184238
184238
  if (116 * y2 - 16 < 0)
184239
184239
  throw new Error("xxx");
184240
184240
  return {
184241
184241
  L: Math.max(0, 116 * y2 - 16),
184242
184242
  a: 500 * (x22 - y2),
184243
- b: 200 * (y2 - z45)
184243
+ b: 200 * (y2 - z46)
184244
184244
  };
184245
184245
  }
184246
184246
  function rgb2lab(r, g, b) {
@@ -184256,20 +184256,20 @@ var require_image_q = __commonJS((exports, module) => {
184256
184256
  function lab2xyz(L2, a, b) {
184257
184257
  const y2 = (L2 + 16) / 116;
184258
184258
  const x22 = a / 500 + y2;
184259
- const z45 = y2 - b / 200;
184259
+ const z46 = y2 - b / 200;
184260
184260
  return {
184261
184261
  x: refX2 * pivot2(x22),
184262
184262
  y: refY2 * pivot2(y2),
184263
- z: refZ2 * pivot2(z45)
184263
+ z: refZ2 * pivot2(z46)
184264
184264
  };
184265
184265
  }
184266
184266
  function correctGamma2(n) {
184267
184267
  return n > 0.0031308 ? 1.055 * n ** (1 / 2.4) - 0.055 : 12.92 * n;
184268
184268
  }
184269
- function xyz2rgb(x22, y2, z45) {
184270
- const r = correctGamma2(x22 * 3.2406 + y2 * -1.5372 + z45 * -0.4986);
184271
- const g = correctGamma2(x22 * -0.9689 + y2 * 1.8758 + z45 * 0.0415);
184272
- const b = correctGamma2(x22 * 0.0557 + y2 * -0.204 + z45 * 1.057);
184269
+ function xyz2rgb(x22, y2, z46) {
184270
+ const r = correctGamma2(x22 * 3.2406 + y2 * -1.5372 + z46 * -0.4986);
184271
+ const g = correctGamma2(x22 * -0.9689 + y2 * 1.8758 + z46 * 0.0415);
184272
+ const b = correctGamma2(x22 * 0.0557 + y2 * -0.204 + z46 * 1.057);
184273
184273
  return {
184274
184274
  r: inRange0to255Rounded(r * 255),
184275
184275
  g: inRange0to255Rounded(g * 255),
@@ -198035,16 +198035,16 @@ var require_range = __commonJS((exports, module) => {
198035
198035
  };
198036
198036
  var replaceTilde = (comp, options) => {
198037
198037
  const r = options.loose ? re[t2.TILDELOOSE] : re[t2.TILDE];
198038
- const z45 = options.includePrerelease ? "-0" : "";
198038
+ const z46 = options.includePrerelease ? "-0" : "";
198039
198039
  return comp.replace(r, (_, M2, m, p, pr) => {
198040
198040
  debug("tilde", comp, _, M2, m, p, pr);
198041
198041
  let ret;
198042
198042
  if (isX(M2)) {
198043
198043
  ret = "";
198044
198044
  } else if (isX(m)) {
198045
- ret = `>=${M2}.0.0${z45} <${+M2 + 1}.0.0-0`;
198045
+ ret = `>=${M2}.0.0${z46} <${+M2 + 1}.0.0-0`;
198046
198046
  } else if (isX(p)) {
198047
- ret = `>=${M2}.${m}.0${z45} <${M2}.${+m + 1}.0-0`;
198047
+ ret = `>=${M2}.${m}.0${z46} <${M2}.${+m + 1}.0-0`;
198048
198048
  } else if (pr) {
198049
198049
  debug("replaceTilde pr", pr);
198050
198050
  ret = `>=${M2}.${m}.${p}-${pr} <${M2}.${+m + 1}.0-0`;
@@ -198061,19 +198061,19 @@ var require_range = __commonJS((exports, module) => {
198061
198061
  var replaceCaret = (comp, options) => {
198062
198062
  debug("caret", comp, options);
198063
198063
  const r = options.loose ? re[t2.CARETLOOSE] : re[t2.CARET];
198064
- const z45 = options.includePrerelease ? "-0" : "";
198064
+ const z46 = options.includePrerelease ? "-0" : "";
198065
198065
  return comp.replace(r, (_, M2, m, p, pr) => {
198066
198066
  debug("caret", comp, _, M2, m, p, pr);
198067
198067
  let ret;
198068
198068
  if (isX(M2)) {
198069
198069
  ret = "";
198070
198070
  } else if (isX(m)) {
198071
- ret = `>=${M2}.0.0${z45} <${+M2 + 1}.0.0-0`;
198071
+ ret = `>=${M2}.0.0${z46} <${+M2 + 1}.0.0-0`;
198072
198072
  } else if (isX(p)) {
198073
198073
  if (M2 === "0") {
198074
- ret = `>=${M2}.${m}.0${z45} <${M2}.${+m + 1}.0-0`;
198074
+ ret = `>=${M2}.${m}.0${z46} <${M2}.${+m + 1}.0-0`;
198075
198075
  } else {
198076
- ret = `>=${M2}.${m}.0${z45} <${+M2 + 1}.0.0-0`;
198076
+ ret = `>=${M2}.${m}.0${z46} <${+M2 + 1}.0.0-0`;
198077
198077
  }
198078
198078
  } else if (pr) {
198079
198079
  debug("replaceCaret pr", pr);
@@ -199449,23 +199449,23 @@ var require_conversions = __commonJS((exports, module) => {
199449
199449
  b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
199450
199450
  const x2 = r * 0.4124 + g * 0.3576 + b * 0.1805;
199451
199451
  const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
199452
- const z45 = r * 0.0193 + g * 0.1192 + b * 0.9505;
199453
- return [x2 * 100, y * 100, z45 * 100];
199452
+ const z46 = r * 0.0193 + g * 0.1192 + b * 0.9505;
199453
+ return [x2 * 100, y * 100, z46 * 100];
199454
199454
  };
199455
199455
  convert.rgb.lab = function(rgb) {
199456
199456
  const xyz = convert.rgb.xyz(rgb);
199457
199457
  let x2 = xyz[0];
199458
199458
  let y = xyz[1];
199459
- let z45 = xyz[2];
199459
+ let z46 = xyz[2];
199460
199460
  x2 /= 95.047;
199461
199461
  y /= 100;
199462
- z45 /= 108.883;
199462
+ z46 /= 108.883;
199463
199463
  x2 = x2 > 0.008856 ? x2 ** (1 / 3) : 7.787 * x2 + 16 / 116;
199464
199464
  y = y > 0.008856 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
199465
- z45 = z45 > 0.008856 ? z45 ** (1 / 3) : 7.787 * z45 + 16 / 116;
199465
+ z46 = z46 > 0.008856 ? z46 ** (1 / 3) : 7.787 * z46 + 16 / 116;
199466
199466
  const l = 116 * y - 16;
199467
199467
  const a = 500 * (x2 - y);
199468
- const b = 200 * (y - z45);
199468
+ const b = 200 * (y - z46);
199469
199469
  return [l, a, b];
199470
199470
  };
199471
199471
  convert.hsl.rgb = function(hsl) {
@@ -199629,13 +199629,13 @@ var require_conversions = __commonJS((exports, module) => {
199629
199629
  convert.xyz.rgb = function(xyz) {
199630
199630
  const x2 = xyz[0] / 100;
199631
199631
  const y = xyz[1] / 100;
199632
- const z45 = xyz[2] / 100;
199632
+ const z46 = xyz[2] / 100;
199633
199633
  let r;
199634
199634
  let g;
199635
199635
  let b;
199636
- r = x2 * 3.2406 + y * -1.5372 + z45 * -0.4986;
199637
- g = x2 * -0.9689 + y * 1.8758 + z45 * 0.0415;
199638
- b = x2 * 0.0557 + y * -0.204 + z45 * 1.057;
199636
+ r = x2 * 3.2406 + y * -1.5372 + z46 * -0.4986;
199637
+ g = x2 * -0.9689 + y * 1.8758 + z46 * 0.0415;
199638
+ b = x2 * 0.0557 + y * -0.204 + z46 * 1.057;
199639
199639
  r = r > 0.0031308 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
199640
199640
  g = g > 0.0031308 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
199641
199641
  b = b > 0.0031308 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
@@ -199647,16 +199647,16 @@ var require_conversions = __commonJS((exports, module) => {
199647
199647
  convert.xyz.lab = function(xyz) {
199648
199648
  let x2 = xyz[0];
199649
199649
  let y = xyz[1];
199650
- let z45 = xyz[2];
199650
+ let z46 = xyz[2];
199651
199651
  x2 /= 95.047;
199652
199652
  y /= 100;
199653
- z45 /= 108.883;
199653
+ z46 /= 108.883;
199654
199654
  x2 = x2 > 0.008856 ? x2 ** (1 / 3) : 7.787 * x2 + 16 / 116;
199655
199655
  y = y > 0.008856 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
199656
- z45 = z45 > 0.008856 ? z45 ** (1 / 3) : 7.787 * z45 + 16 / 116;
199656
+ z46 = z46 > 0.008856 ? z46 ** (1 / 3) : 7.787 * z46 + 16 / 116;
199657
199657
  const l = 116 * y - 16;
199658
199658
  const a = 500 * (x2 - y);
199659
- const b = 200 * (y - z45);
199659
+ const b = 200 * (y - z46);
199660
199660
  return [l, a, b];
199661
199661
  };
199662
199662
  convert.lab.xyz = function(lab) {
@@ -199665,20 +199665,20 @@ var require_conversions = __commonJS((exports, module) => {
199665
199665
  const b = lab[2];
199666
199666
  let x2;
199667
199667
  let y;
199668
- let z45;
199668
+ let z46;
199669
199669
  y = (l + 16) / 116;
199670
199670
  x2 = a / 500 + y;
199671
- z45 = y - b / 200;
199671
+ z46 = y - b / 200;
199672
199672
  const y2 = y ** 3;
199673
199673
  const x22 = x2 ** 3;
199674
- const z210 = z45 ** 3;
199674
+ const z210 = z46 ** 3;
199675
199675
  y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
199676
199676
  x2 = x22 > 0.008856 ? x22 : (x2 - 16 / 116) / 7.787;
199677
- z45 = z210 > 0.008856 ? z210 : (z45 - 16 / 116) / 7.787;
199677
+ z46 = z210 > 0.008856 ? z210 : (z46 - 16 / 116) / 7.787;
199678
199678
  x2 *= 95.047;
199679
199679
  y *= 100;
199680
- z45 *= 108.883;
199681
- return [x2, y, z45];
199680
+ z46 *= 108.883;
199681
+ return [x2, y, z46];
199682
199682
  };
199683
199683
  convert.lab.lch = function(lab) {
199684
199684
  const l = lab[0];
@@ -216297,7 +216297,7 @@ var init_constants5 = __esm(() => {
216297
216297
  [left, center, right],
216298
216298
  [center, left, right],
216299
216299
  [center]
216300
- ].flatMap((y) => y.map((z45) => x2 + z45).join(mappingJoin)));
216300
+ ].flatMap((y) => y.map((z46) => x2 + z46).join(mappingJoin)));
216301
216301
  })();
216302
216302
  vorbisOpusChannelMapping = [
216303
216303
  monophonic,
@@ -296933,127 +296933,127 @@ var init_lib6 = __esm(() => {
296933
296933
  });
296934
296934
 
296935
296935
  // packages/omo-config-core/src/schema/agent.ts
296936
- import * as z56 from "zod";
296936
+ import * as z57 from "zod";
296937
296937
  var OmoAgentDefSchema, MatrixosAgentsConfigSchema;
296938
296938
  var init_agent = __esm(() => {
296939
- OmoAgentDefSchema = z56.object({
296940
- description: z56.string().optional(),
296941
- prompt: z56.string().optional(),
296942
- model: z56.string().optional(),
296943
- models: z56.array(z56.string()).optional(),
296944
- tools: z56.record(z56.string(), z56.boolean()).optional(),
296945
- execution_mode: z56.enum(["in-process", "process"]).optional(),
296946
- background: z56.boolean().optional(),
296947
- max_depth: z56.number().int().nonnegative().optional(),
296948
- allowed_subagents: z56.array(z56.string()).optional(),
296949
- temperature: z56.number().min(0).max(2).optional(),
296950
- disable: z56.boolean().optional()
296939
+ OmoAgentDefSchema = z57.object({
296940
+ description: z57.string().optional(),
296941
+ prompt: z57.string().optional(),
296942
+ model: z57.string().optional(),
296943
+ models: z57.array(z57.string()).optional(),
296944
+ tools: z57.record(z57.string(), z57.boolean()).optional(),
296945
+ execution_mode: z57.enum(["in-process", "process"]).optional(),
296946
+ background: z57.boolean().optional(),
296947
+ max_depth: z57.number().int().nonnegative().optional(),
296948
+ allowed_subagents: z57.array(z57.string()).optional(),
296949
+ temperature: z57.number().min(0).max(2).optional(),
296950
+ disable: z57.boolean().optional()
296951
296951
  }).strict();
296952
- MatrixosAgentsConfigSchema = z56.record(z56.string(), OmoAgentDefSchema);
296952
+ MatrixosAgentsConfigSchema = z57.record(z57.string(), OmoAgentDefSchema);
296953
296953
  });
296954
296954
 
296955
296955
  // packages/omo-config-core/src/schema/fallback-models.ts
296956
- import * as z57 from "zod";
296956
+ import * as z58 from "zod";
296957
296957
  var OmoThinkingConfigSchema, OmoFallbackModelObjectSchema, OmoFallbackModelsSchema;
296958
296958
  var init_fallback_models = __esm(() => {
296959
- OmoThinkingConfigSchema = z57.object({
296960
- type: z57.enum(["enabled", "disabled"]),
296961
- budgetTokens: z57.number().optional()
296959
+ OmoThinkingConfigSchema = z58.object({
296960
+ type: z58.enum(["enabled", "disabled"]),
296961
+ budgetTokens: z58.number().optional()
296962
296962
  }).strict();
296963
- OmoFallbackModelObjectSchema = z57.object({
296964
- model: z57.string(),
296965
- variant: z57.string().optional(),
296966
- reasoningEffort: z57.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
296967
- temperature: z57.number().min(0).max(2).optional(),
296968
- top_p: z57.number().min(0).max(1).optional(),
296969
- maxTokens: z57.number().optional(),
296963
+ OmoFallbackModelObjectSchema = z58.object({
296964
+ model: z58.string(),
296965
+ variant: z58.string().optional(),
296966
+ reasoningEffort: z58.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
296967
+ temperature: z58.number().min(0).max(2).optional(),
296968
+ top_p: z58.number().min(0).max(1).optional(),
296969
+ maxTokens: z58.number().optional(),
296970
296970
  thinking: OmoThinkingConfigSchema.optional()
296971
296971
  }).strict();
296972
- OmoFallbackModelsSchema = z57.union([
296973
- z57.string(),
296974
- z57.array(z57.string()),
296975
- z57.array(OmoFallbackModelObjectSchema),
296976
- z57.array(z57.union([z57.string(), OmoFallbackModelObjectSchema]))
296972
+ OmoFallbackModelsSchema = z58.union([
296973
+ z58.string(),
296974
+ z58.array(z58.string()),
296975
+ z58.array(OmoFallbackModelObjectSchema),
296976
+ z58.array(z58.union([z58.string(), OmoFallbackModelObjectSchema]))
296977
296977
  ]);
296978
296978
  });
296979
296979
 
296980
296980
  // packages/omo-config-core/src/schema/category.ts
296981
- import * as z58 from "zod";
296981
+ import * as z59 from "zod";
296982
296982
  var OmoCategoryConfigSchema, MatrixosCategoriesConfigSchema;
296983
296983
  var init_category = __esm(() => {
296984
296984
  init_fallback_models();
296985
- OmoCategoryConfigSchema = z58.object({
296986
- description: z58.string().optional(),
296987
- model: z58.string().optional(),
296985
+ OmoCategoryConfigSchema = z59.object({
296986
+ description: z59.string().optional(),
296987
+ model: z59.string().optional(),
296988
296988
  fallback_models: OmoFallbackModelsSchema.optional(),
296989
- variant: z58.string().optional(),
296990
- temperature: z58.number().min(0).max(2).optional(),
296991
- top_p: z58.number().min(0).max(1).optional(),
296992
- maxTokens: z58.number().optional(),
296989
+ variant: z59.string().optional(),
296990
+ temperature: z59.number().min(0).max(2).optional(),
296991
+ top_p: z59.number().min(0).max(1).optional(),
296992
+ maxTokens: z59.number().optional(),
296993
296993
  thinking: OmoThinkingConfigSchema.optional(),
296994
- reasoningEffort: z58.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
296995
- textVerbosity: z58.enum(["low", "medium", "high"]).optional(),
296996
- tools: z58.record(z58.string(), z58.boolean()).optional(),
296997
- prompt_append: z58.string().optional(),
296998
- max_prompt_tokens: z58.number().int().positive().optional(),
296999
- is_unstable_agent: z58.boolean().optional(),
297000
- disable: z58.boolean().optional()
296994
+ reasoningEffort: z59.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
296995
+ textVerbosity: z59.enum(["low", "medium", "high"]).optional(),
296996
+ tools: z59.record(z59.string(), z59.boolean()).optional(),
296997
+ prompt_append: z59.string().optional(),
296998
+ max_prompt_tokens: z59.number().int().positive().optional(),
296999
+ is_unstable_agent: z59.boolean().optional(),
297000
+ disable: z59.boolean().optional()
297001
297001
  }).strict();
297002
- MatrixosCategoriesConfigSchema = z58.record(z58.string(), OmoCategoryConfigSchema);
297002
+ MatrixosCategoriesConfigSchema = z59.record(z59.string(), OmoCategoryConfigSchema);
297003
297003
  });
297004
297004
 
297005
297005
  // packages/omo-config-core/src/schema/profile.ts
297006
- import * as z59 from "zod";
297006
+ import * as z60 from "zod";
297007
297007
  var ProfileSchema, ProfileRegistrySchema, ProfileReferenceSchema, ProfileReferencesSchema;
297008
297008
  var init_profile = __esm(() => {
297009
297009
  init_agent();
297010
- ProfileSchema = z59.object({
297011
- name: z59.string().regex(/^[a-z][a-z0-9-]*$/, "name must be kebab-case (lowercase, digits, hyphens)"),
297012
- displayName: z59.string().min(1),
297013
- description: z59.string().min(1),
297014
- version: z59.string().regex(/^\d+\.\d+\.\d+$/, "version must be semver (e.g. 1.0.0)").default("0.1.0"),
297015
- baseAgent: z59.string().default("morpheus"),
297016
- extends: z59.array(z59.string()).default([]),
297017
- agents: z59.record(z59.string(), OmoAgentDefSchema).default({}),
297018
- skills: z59.array(z59.string()).default([]),
297019
- hooks: z59.array(z59.string()).default([]),
297020
- tools: z59.array(z59.string()).default([]),
297021
- mcp: z59.array(z59.string()).default([]),
297022
- modelPreferences: z59.record(z59.string(), z59.string()).default({}),
297023
- systemPrompt: z59.string().optional()
297010
+ ProfileSchema = z60.object({
297011
+ name: z60.string().regex(/^[a-z][a-z0-9-]*$/, "name must be kebab-case (lowercase, digits, hyphens)"),
297012
+ displayName: z60.string().min(1),
297013
+ description: z60.string().min(1),
297014
+ version: z60.string().regex(/^\d+\.\d+\.\d+$/, "version must be semver (e.g. 1.0.0)").default("0.1.0"),
297015
+ baseAgent: z60.string().default("morpheus"),
297016
+ extends: z60.array(z60.string()).default([]),
297017
+ agents: z60.record(z60.string(), OmoAgentDefSchema).default({}),
297018
+ skills: z60.array(z60.string()).default([]),
297019
+ hooks: z60.array(z60.string()).default([]),
297020
+ tools: z60.array(z60.string()).default([]),
297021
+ mcp: z60.array(z60.string()).default([]),
297022
+ modelPreferences: z60.record(z60.string(), z60.string()).default({}),
297023
+ systemPrompt: z60.string().optional()
297024
297024
  }).strict();
297025
- ProfileRegistrySchema = z59.object({
297026
- $schema: z59.string().optional(),
297027
- profiles: z59.record(z59.string(), ProfileSchema)
297025
+ ProfileRegistrySchema = z60.object({
297026
+ $schema: z60.string().optional(),
297027
+ profiles: z60.record(z60.string(), ProfileSchema)
297028
297028
  }).strict();
297029
- ProfileReferenceSchema = z59.string().regex(/^[a-z][a-z0-9-]*$/, "profile ref must be kebab-case");
297030
- ProfileReferencesSchema = z59.array(ProfileReferenceSchema).default([]);
297029
+ ProfileReferenceSchema = z60.string().regex(/^[a-z][a-z0-9-]*$/, "profile ref must be kebab-case");
297030
+ ProfileReferencesSchema = z60.array(ProfileReferenceSchema).default([]);
297031
297031
  });
297032
297032
 
297033
297033
  // packages/omo-config-core/src/schema/task.ts
297034
- import * as z60 from "zod";
297034
+ import * as z61 from "zod";
297035
297035
  var OmoTaskWaitSchema, OmoTaskTeamSettingsSchema, MatrixosTaskSettingsSchema;
297036
297036
  var init_task = __esm(() => {
297037
- OmoTaskWaitSchema = z60.object({
297038
- min_ms: z60.number().int().positive().default(5000),
297039
- default_ms: z60.number().int().positive().default(60000),
297040
- max_ms: z60.number().int().positive().default(600000)
297037
+ OmoTaskWaitSchema = z61.object({
297038
+ min_ms: z61.number().int().positive().default(5000),
297039
+ default_ms: z61.number().int().positive().default(60000),
297040
+ max_ms: z61.number().int().positive().default(600000)
297041
297041
  }).strict();
297042
- OmoTaskTeamSettingsSchema = z60.object({
297043
- max_members: z60.number().int().min(1).max(8).default(8),
297044
- max_parallel_members: z60.number().int().min(1).max(8).default(4),
297045
- max_wall_clock_minutes: z60.number().int().positive().default(120)
297042
+ OmoTaskTeamSettingsSchema = z61.object({
297043
+ max_members: z61.number().int().min(1).max(8).default(8),
297044
+ max_parallel_members: z61.number().int().min(1).max(8).default(4),
297045
+ max_wall_clock_minutes: z61.number().int().positive().default(120)
297046
297046
  }).strict();
297047
- MatrixosTaskSettingsSchema = z60.object({
297048
- default_execution_mode: z60.enum(["in-process", "process"]).default("in-process"),
297049
- default_concurrency: z60.number().int().positive().default(5),
297050
- provider_concurrency: z60.record(z60.string(), z60.number().int().positive()).optional(),
297051
- model_concurrency: z60.record(z60.string(), z60.number().int().positive()).optional(),
297052
- max_depth: z60.number().int().nonnegative().default(1),
297053
- residency_max_children: z60.number().int().positive().default(8),
297054
- ttl_ms: z60.number().int().positive().default(86400000),
297055
- state_dir: z60.string().optional(),
297056
- reattach_on_reconcile: z60.boolean().optional(),
297047
+ MatrixosTaskSettingsSchema = z61.object({
297048
+ default_execution_mode: z61.enum(["in-process", "process"]).default("in-process"),
297049
+ default_concurrency: z61.number().int().positive().default(5),
297050
+ provider_concurrency: z61.record(z61.string(), z61.number().int().positive()).optional(),
297051
+ model_concurrency: z61.record(z61.string(), z61.number().int().positive()).optional(),
297052
+ max_depth: z61.number().int().nonnegative().default(1),
297053
+ residency_max_children: z61.number().int().positive().default(8),
297054
+ ttl_ms: z61.number().int().positive().default(86400000),
297055
+ state_dir: z61.string().optional(),
297056
+ reattach_on_reconcile: z61.boolean().optional(),
297057
297057
  wait: OmoTaskWaitSchema.default({ min_ms: 5000, default_ms: 60000, max_ms: 600000 }),
297058
297058
  team: OmoTaskTeamSettingsSchema.default({
297059
297059
  max_members: 8,
@@ -297064,41 +297064,41 @@ var init_task = __esm(() => {
297064
297064
  });
297065
297065
 
297066
297066
  // packages/omo-config-core/src/schema/team.ts
297067
- import * as z61 from "zod";
297067
+ import * as z62 from "zod";
297068
297068
  var OmoTeamMemberBaseSchema, OmoTeamCategoryMemberSchema, OmoTeamSubagentMemberSchema, OmoTeamMemberSchema, OmoTeamSpecBaseSchema, OmoTeamSpecSchema, OmoTeamSpecLayerSchema, MatrixosTeamsConfigSchema, MatrixosTeamsConfigLayerSchema;
297069
297069
  var init_team = __esm(() => {
297070
- OmoTeamMemberBaseSchema = z61.object({
297071
- name: z61.string().min(1).regex(/^[a-z0-9-]+$/),
297072
- cwd: z61.string().optional(),
297073
- worktreePath: z61.string().optional(),
297074
- subscriptions: z61.array(z61.string()).optional(),
297075
- backendType: z61.enum(["in-process", "tmux"]).default("in-process"),
297076
- color: z61.string().optional(),
297077
- isActive: z61.boolean().default(true)
297070
+ OmoTeamMemberBaseSchema = z62.object({
297071
+ name: z62.string().min(1).regex(/^[a-z0-9-]+$/),
297072
+ cwd: z62.string().optional(),
297073
+ worktreePath: z62.string().optional(),
297074
+ subscriptions: z62.array(z62.string()).optional(),
297075
+ backendType: z62.enum(["in-process", "tmux"]).default("in-process"),
297076
+ color: z62.string().optional(),
297077
+ isActive: z62.boolean().default(true)
297078
297078
  }).strict();
297079
297079
  OmoTeamCategoryMemberSchema = OmoTeamMemberBaseSchema.extend({
297080
- kind: z61.literal("category"),
297081
- category: z61.string().min(1),
297082
- prompt: z61.string().min(1)
297080
+ kind: z62.literal("category"),
297081
+ category: z62.string().min(1),
297082
+ prompt: z62.string().min(1)
297083
297083
  });
297084
297084
  OmoTeamSubagentMemberSchema = OmoTeamMemberBaseSchema.extend({
297085
- kind: z61.literal("subagent_type"),
297086
- subagent_type: z61.string().min(1),
297087
- prompt: z61.string().optional()
297085
+ kind: z62.literal("subagent_type"),
297086
+ subagent_type: z62.string().min(1),
297087
+ prompt: z62.string().optional()
297088
297088
  });
297089
- OmoTeamMemberSchema = z61.discriminatedUnion("kind", [
297089
+ OmoTeamMemberSchema = z62.discriminatedUnion("kind", [
297090
297090
  OmoTeamCategoryMemberSchema,
297091
297091
  OmoTeamSubagentMemberSchema
297092
297092
  ]);
297093
- OmoTeamSpecBaseSchema = z61.object({
297094
- version: z61.literal(1).default(1),
297095
- name: z61.string().min(1).regex(/^[a-z0-9-]+$/).optional(),
297096
- description: z61.string().optional(),
297097
- createdAt: z61.number().int().positive().optional(),
297098
- leadAgentId: z61.string().optional(),
297099
- teamAllowedPaths: z61.array(z61.string()).optional(),
297100
- sessionPermission: z61.string().optional(),
297101
- members: z61.array(OmoTeamMemberSchema).min(1).max(8)
297093
+ OmoTeamSpecBaseSchema = z62.object({
297094
+ version: z62.literal(1).default(1),
297095
+ name: z62.string().min(1).regex(/^[a-z0-9-]+$/).optional(),
297096
+ description: z62.string().optional(),
297097
+ createdAt: z62.number().int().positive().optional(),
297098
+ leadAgentId: z62.string().optional(),
297099
+ teamAllowedPaths: z62.array(z62.string()).optional(),
297100
+ sessionPermission: z62.string().optional(),
297101
+ members: z62.array(OmoTeamMemberSchema).min(1).max(8)
297102
297102
  }).strict();
297103
297103
  OmoTeamSpecSchema = OmoTeamSpecBaseSchema.superRefine((teamSpec, ctx) => {
297104
297104
  if (teamSpec.leadAgentId === undefined && teamSpec.members.length > 1) {
@@ -297110,12 +297110,12 @@ var init_team = __esm(() => {
297110
297110
  }
297111
297111
  });
297112
297112
  OmoTeamSpecLayerSchema = OmoTeamSpecBaseSchema.partial();
297113
- MatrixosTeamsConfigSchema = z61.record(z61.string(), OmoTeamSpecSchema);
297114
- MatrixosTeamsConfigLayerSchema = z61.record(z61.string(), OmoTeamSpecLayerSchema);
297113
+ MatrixosTeamsConfigSchema = z62.record(z62.string(), OmoTeamSpecSchema);
297114
+ MatrixosTeamsConfigLayerSchema = z62.record(z62.string(), OmoTeamSpecLayerSchema);
297115
297115
  });
297116
297116
 
297117
297117
  // packages/omo-config-core/src/schema/config.ts
297118
- import * as z62 from "zod";
297118
+ import * as z63 from "zod";
297119
297119
  var MatrixosConfigSchema, MatrixosConfigLayerSchema;
297120
297120
  var init_config = __esm(() => {
297121
297121
  init_agent();
@@ -297123,8 +297123,8 @@ var init_config = __esm(() => {
297123
297123
  init_profile();
297124
297124
  init_task();
297125
297125
  init_team();
297126
- MatrixosConfigSchema = z62.object({
297127
- $schema: z62.string().optional(),
297126
+ MatrixosConfigSchema = z63.object({
297127
+ $schema: z63.string().optional(),
297128
297128
  categories: MatrixosCategoriesConfigSchema.optional(),
297129
297129
  agents: MatrixosAgentsConfigSchema.optional(),
297130
297130
  task: MatrixosTaskSettingsSchema.optional(),
@@ -297132,8 +297132,8 @@ var init_config = __esm(() => {
297132
297132
  profiles: ProfileReferencesSchema.optional(),
297133
297133
  profileRegistry: ProfileRegistrySchema.optional()
297134
297134
  }).strict();
297135
- MatrixosConfigLayerSchema = z62.object({
297136
- $schema: z62.string().optional(),
297135
+ MatrixosConfigLayerSchema = z63.object({
297136
+ $schema: z63.string().optional(),
297137
297137
  categories: MatrixosCategoriesConfigSchema.optional(),
297138
297138
  agents: MatrixosAgentsConfigSchema.optional(),
297139
297139
  task: MatrixosTaskSettingsSchema.optional(),
@@ -358528,15 +358528,13 @@ function ensureTuiPluginEntry(opts = {}) {
358528
358528
  return { changed: true, reason: "added" };
358529
358529
  }
358530
358530
 
358531
- // packages/omo-opencode/src/cli/config-manager/load-gateway-env.ts
358532
- import { existsSync as existsSync37, readFileSync as readFileSync25 } from "fs";
358533
- import { join as join43 } from "path";
358534
-
358535
358531
  // packages/omo-opencode/src/cli/config-manager/write-gateway-env.ts
358536
358532
  var GATEWAY_ENV_FILENAME = ".klc-gateway.env";
358537
358533
 
358538
358534
  // packages/omo-opencode/src/cli/config-manager/load-gateway-env.ts
358539
- function loadGatewayEnvFile(configDir) {
358535
+ import { existsSync as existsSync37, readFileSync as readFileSync25 } from "fs";
358536
+ import { join as join43 } from "path";
358537
+ function loadGatewayEnvFile(configDir, force = false) {
358540
358538
  const dir = configDir ?? getConfigDir();
358541
358539
  const envPath = join43(dir, GATEWAY_ENV_FILENAME);
358542
358540
  if (!existsSync37(envPath)) {
@@ -358567,12 +358565,24 @@ function loadGatewayEnvFile(configDir) {
358567
358565
  if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) {
358568
358566
  value = value.slice(1, -1);
358569
358567
  }
358570
- if (process.env[key] === undefined) {
358568
+ if (force || process.env[key] === undefined) {
358571
358569
  process.env[key] = value;
358572
358570
  }
358573
358571
  }
358574
358572
  }
358575
358573
 
358574
+ // packages/omo-opencode/src/shared/gateway-token-resolver.ts
358575
+ function resolveGatewayToken(botToken) {
358576
+ if (!botToken.startsWith("env:"))
358577
+ return botToken;
358578
+ const name = botToken.slice(4);
358579
+ const value = process.env[name];
358580
+ if (!value) {
358581
+ throw new Error(`Gateway bot token env variable "${name}" is not set or empty`);
358582
+ }
358583
+ return value;
358584
+ }
358585
+
358576
358586
  // packages/omo-opencode/src/hooks/todo-continuation-enforcer/index.ts
358577
358587
  init_logger2();
358578
358588
 
@@ -367987,7 +367997,7 @@ function getCachedVersion(options = {}) {
367987
367997
  // package.json
367988
367998
  var package_default = {
367989
367999
  name: "@kl-c/matrixos",
367990
- version: "0.1.23",
368000
+ version: "0.1.24",
367991
368001
  description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
367992
368002
  main: "./dist/index.js",
367993
368003
  types: "dist/index.d.ts",
@@ -442336,22 +442346,29 @@ import { z as z30 } from "zod";
442336
442346
  var CronConfigSchema = z30.object({
442337
442347
  enabled: z30.boolean().default(true)
442338
442348
  }).strict();
442339
- // packages/omo-opencode/src/config/schema/default-mode.ts
442349
+ // packages/omo-opencode/src/config/schema/dashboard.ts
442340
442350
  import { z as z31 } from "zod";
442341
- var DefaultModeConfigSchema = z31.object({
442342
- ultrawork: z31.boolean().default(false),
442343
- ralph_loop: z31.boolean().default(false)
442351
+ var DashboardConfigSchema = z31.object({
442352
+ enabled: z31.boolean().optional(),
442353
+ port: z31.number().int().min(1).max(65535).optional(),
442354
+ gateway_passphrase: z31.string().optional()
442344
442355
  });
442345
- // packages/omo-opencode/src/config/schema/dynamic-context-pruning.ts
442356
+ // packages/omo-opencode/src/config/schema/default-mode.ts
442346
442357
  import { z as z32 } from "zod";
442347
- var DynamicContextPruningConfigSchema = z32.object({
442348
- enabled: z32.boolean().default(false),
442349
- notification: z32.enum(["off", "minimal", "detailed"]).default("detailed"),
442350
- turn_protection: z32.object({
442351
- enabled: z32.boolean().default(true),
442352
- turns: z32.number().min(1).max(10).default(3)
442358
+ var DefaultModeConfigSchema = z32.object({
442359
+ ultrawork: z32.boolean().default(false),
442360
+ ralph_loop: z32.boolean().default(false)
442361
+ });
442362
+ // packages/omo-opencode/src/config/schema/dynamic-context-pruning.ts
442363
+ import { z as z33 } from "zod";
442364
+ var DynamicContextPruningConfigSchema = z33.object({
442365
+ enabled: z33.boolean().default(false),
442366
+ notification: z33.enum(["off", "minimal", "detailed"]).default("detailed"),
442367
+ turn_protection: z33.object({
442368
+ enabled: z33.boolean().default(true),
442369
+ turns: z33.number().min(1).max(10).default(3)
442353
442370
  }).optional(),
442354
- protected_tools: z32.array(z32.string()).default([
442371
+ protected_tools: z33.array(z33.string()).default([
442355
442372
  "task",
442356
442373
  "todowrite",
442357
442374
  "todoread",
@@ -442360,31 +442377,31 @@ var DynamicContextPruningConfigSchema = z32.object({
442360
442377
  "session_write",
442361
442378
  "session_search"
442362
442379
  ]),
442363
- strategies: z32.object({
442364
- deduplication: z32.object({
442365
- enabled: z32.boolean().default(true)
442380
+ strategies: z33.object({
442381
+ deduplication: z33.object({
442382
+ enabled: z33.boolean().default(true)
442366
442383
  }).optional(),
442367
- supersede_writes: z32.object({
442368
- enabled: z32.boolean().default(true),
442369
- aggressive: z32.boolean().default(false)
442384
+ supersede_writes: z33.object({
442385
+ enabled: z33.boolean().default(true),
442386
+ aggressive: z33.boolean().default(false)
442370
442387
  }).optional(),
442371
- purge_errors: z32.object({
442372
- enabled: z32.boolean().default(true),
442373
- turns: z32.number().min(1).max(20).default(5)
442388
+ purge_errors: z33.object({
442389
+ enabled: z33.boolean().default(true),
442390
+ turns: z33.number().min(1).max(20).default(5)
442374
442391
  }).optional()
442375
442392
  }).optional()
442376
442393
  });
442377
442394
  // packages/egress-core/src/schema.ts
442378
- import * as z33 from "zod";
442379
- var AgentEgressSchema = z33.object({
442380
- webfetch_domains: z33.array(z33.string()).optional(),
442381
- fetch_domains: z33.array(z33.string()).optional(),
442382
- bash_denylist: z33.array(z33.string()).optional(),
442383
- edit_paths: z33.array(z33.string()).optional()
442395
+ import * as z34 from "zod";
442396
+ var AgentEgressSchema = z34.object({
442397
+ webfetch_domains: z34.array(z34.string()).optional(),
442398
+ fetch_domains: z34.array(z34.string()).optional(),
442399
+ bash_denylist: z34.array(z34.string()).optional(),
442400
+ edit_paths: z34.array(z34.string()).optional()
442384
442401
  }).strict();
442385
- var EgressConfigSchema = z33.object({
442386
- enabled: z33.boolean().default(true),
442387
- agents: z33.record(z33.string(), AgentEgressSchema).optional(),
442402
+ var EgressConfigSchema = z34.object({
442403
+ enabled: z34.boolean().default(true),
442404
+ agents: z34.record(z34.string(), AgentEgressSchema).optional(),
442388
442405
  defaults: AgentEgressSchema.optional()
442389
442406
  }).strict();
442390
442407
 
@@ -442633,31 +442650,31 @@ function checkTool(enforcer, agentName, tool3, args, cwd) {
442633
442650
  // packages/omo-opencode/src/config/schema/egress.ts
442634
442651
  var EgressConfigSectionSchema = EgressConfigSchema.optional();
442635
442652
  // packages/omo-opencode/src/config/schema/experimental.ts
442636
- import { z as z34 } from "zod";
442637
- var ExperimentalConfigSchema = z34.object({
442638
- aggressive_truncation: z34.boolean().optional(),
442639
- preemptive_compaction: z34.boolean().optional(),
442640
- truncate_all_tool_outputs: z34.boolean().optional(),
442653
+ import { z as z35 } from "zod";
442654
+ var ExperimentalConfigSchema = z35.object({
442655
+ aggressive_truncation: z35.boolean().optional(),
442656
+ preemptive_compaction: z35.boolean().optional(),
442657
+ truncate_all_tool_outputs: z35.boolean().optional(),
442641
442658
  dynamic_context_pruning: DynamicContextPruningConfigSchema.optional(),
442642
- task_system: z34.boolean().optional(),
442643
- plugin_load_timeout_ms: z34.number().min(1000).optional(),
442644
- safe_hook_creation: z34.boolean().optional(),
442645
- disable_omo_env: z34.boolean().optional(),
442646
- hashline_edit: z34.boolean().optional(),
442647
- model_fallback_title: z34.boolean().optional(),
442648
- max_tools: z34.number().int().min(1).optional(),
442649
- disable_live_parent_wake_routing: z34.boolean().optional()
442659
+ task_system: z35.boolean().optional(),
442660
+ plugin_load_timeout_ms: z35.number().min(1000).optional(),
442661
+ safe_hook_creation: z35.boolean().optional(),
442662
+ disable_omo_env: z35.boolean().optional(),
442663
+ hashline_edit: z35.boolean().optional(),
442664
+ model_fallback_title: z35.boolean().optional(),
442665
+ max_tools: z35.number().int().min(1).optional(),
442666
+ disable_live_parent_wake_routing: z35.boolean().optional()
442650
442667
  });
442651
442668
  // packages/omo-opencode/src/config/schema/git-master.ts
442652
- import { z as z35 } from "zod";
442653
- var GitMasterConfigSchema = z35.object({
442654
- commit_footer: z35.union([z35.boolean(), z35.string()]).default(true),
442655
- include_co_authored_by: z35.boolean().default(true),
442669
+ import { z as z36 } from "zod";
442670
+ var GitMasterConfigSchema = z36.object({
442671
+ commit_footer: z36.union([z36.boolean(), z36.string()]).default(true),
442672
+ include_co_authored_by: z36.boolean().default(true),
442656
442673
  git_env_prefix: GitEnvPrefixSchema
442657
442674
  });
442658
442675
  // packages/omo-opencode/src/config/schema/hooks.ts
442659
- import { z as z36 } from "zod";
442660
- var HookNameSchema = z36.enum([
442676
+ import { z as z37 } from "zod";
442677
+ var HookNameSchema = z37.enum([
442661
442678
  "todo-continuation-enforcer",
442662
442679
  "session-notification",
442663
442680
  "comment-checker",
@@ -442717,51 +442734,51 @@ var HookNameSchema = z36.enum([
442717
442734
  "egress-filter"
442718
442735
  ]);
442719
442736
  // packages/omo-opencode/src/config/schema/i18n.ts
442720
- import { z as z37 } from "zod";
442721
- var I18nConfigSchema = z37.object({
442722
- locale: z37.string().optional()
442737
+ import { z as z38 } from "zod";
442738
+ var I18nConfigSchema = z38.object({
442739
+ locale: z38.string().optional()
442723
442740
  });
442724
442741
  // packages/omo-opencode/src/config/schema/keyword-detector.ts
442725
- import { z as z38 } from "zod";
442726
- var KeywordTypeSchema = z38.enum(["ultrawork", "team", "hyperplan", "hyperplan-ultrawork"]);
442727
- var KeywordDetectorConfigSchema = z38.object({
442728
- enabled_expansions: z38.array(KeywordTypeSchema).optional(),
442729
- disabled_keywords: z38.array(KeywordTypeSchema).optional()
442742
+ import { z as z39 } from "zod";
442743
+ var KeywordTypeSchema = z39.enum(["ultrawork", "team", "hyperplan", "hyperplan-ultrawork"]);
442744
+ var KeywordDetectorConfigSchema = z39.object({
442745
+ enabled_expansions: z39.array(KeywordTypeSchema).optional(),
442746
+ disabled_keywords: z39.array(KeywordTypeSchema).optional()
442730
442747
  });
442731
442748
  // packages/omo-opencode/src/config/schema/model-capabilities.ts
442732
- import { z as z39 } from "zod";
442733
- var ModelCapabilitiesConfigSchema = z39.object({
442734
- enabled: z39.boolean().optional(),
442735
- auto_refresh_on_start: z39.boolean().optional(),
442736
- refresh_timeout_ms: z39.number().int().positive().optional(),
442737
- source_url: z39.string().url().optional()
442749
+ import { z as z40 } from "zod";
442750
+ var ModelCapabilitiesConfigSchema = z40.object({
442751
+ enabled: z40.boolean().optional(),
442752
+ auto_refresh_on_start: z40.boolean().optional(),
442753
+ refresh_timeout_ms: z40.number().int().positive().optional(),
442754
+ source_url: z40.string().url().optional()
442738
442755
  });
442739
442756
  // packages/omo-opencode/src/config/schema/notification.ts
442740
- import { z as z40 } from "zod";
442741
- var NotificationConfigSchema = z40.object({
442742
- force_enable: z40.boolean().optional()
442757
+ import { z as z41 } from "zod";
442758
+ var NotificationConfigSchema = z41.object({
442759
+ force_enable: z41.boolean().optional()
442743
442760
  });
442744
442761
  // packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
442745
- import { z as z63 } from "zod";
442762
+ import { z as z64 } from "zod";
442746
442763
 
442747
442764
  // packages/omo-opencode/src/config/schema/agent-definitions.ts
442748
- import { z as z41 } from "zod";
442749
- var AgentDefinitionPathSchema = z41.string().min(1);
442750
- var AgentDefinitionsConfigSchema = z41.array(AgentDefinitionPathSchema).optional();
442765
+ import { z as z42 } from "zod";
442766
+ var AgentDefinitionPathSchema = z42.string().min(1);
442767
+ var AgentDefinitionsConfigSchema = z42.array(AgentDefinitionPathSchema).optional();
442751
442768
 
442752
442769
  // packages/omo-opencode/src/config/schema/computer-use.ts
442753
- import { z as z42 } from "zod";
442754
- var ComputerUseConfigSchema = z42.object({
442755
- enabled: z42.boolean().default(false),
442756
- takeover: z42.boolean().default(true)
442770
+ import { z as z43 } from "zod";
442771
+ var ComputerUseConfigSchema = z43.object({
442772
+ enabled: z43.boolean().default(false),
442773
+ takeover: z43.boolean().default(true)
442757
442774
  });
442758
442775
 
442759
442776
  // packages/omo-opencode/src/config/schema/dreamer.ts
442760
- import { z as z43 } from "zod";
442761
- var DreamerConfigSchema = z43.object({
442762
- enabled: z43.boolean().default(false),
442763
- idle_delay_ms: z43.number().int().positive().max(60000).default(5000),
442764
- max_episodes_per_run: z43.number().int().positive().max(500).default(100)
442777
+ import { z as z44 } from "zod";
442778
+ var DreamerConfigSchema = z44.object({
442779
+ enabled: z44.boolean().default(false),
442780
+ idle_delay_ms: z44.number().int().positive().max(60000).default(5000),
442781
+ max_episodes_per_run: z44.number().int().positive().max(500).default(100)
442765
442782
  }).strict();
442766
442783
 
442767
442784
  // packages/matrix-gateway-core/src/envelope.ts
@@ -442770,65 +442787,65 @@ function makeEnvelopeId(channel, providerMessageId) {
442770
442787
  }
442771
442788
 
442772
442789
  // packages/matrix-gateway-core/src/config.ts
442773
- import * as z44 from "zod";
442774
- var TelegramVoiceSttConfigSchema = z44.object({
442775
- enabled: z44.boolean().default(false),
442776
- apiKey: z44.string().optional(),
442777
- model: z44.string().default("whisper-large-v3"),
442778
- language: z44.string().optional(),
442779
- maxAudioSizeMb: z44.number().int().positive().max(50).default(20)
442790
+ import * as z45 from "zod";
442791
+ var TelegramVoiceSttConfigSchema = z45.object({
442792
+ enabled: z45.boolean().default(false),
442793
+ apiKey: z45.string().optional(),
442794
+ model: z45.string().default("whisper-large-v3"),
442795
+ language: z45.string().optional(),
442796
+ maxAudioSizeMb: z45.number().int().positive().max(50).default(20)
442780
442797
  }).strict();
442781
- var TelegramVoiceOutConfigSchema = z44.object({
442782
- enabled: z44.boolean().default(false),
442783
- engine: z44.enum(["espeak-ng", "piper"]).default("espeak-ng"),
442784
- voice: z44.string().default("en-us"),
442785
- modelPath: z44.string().optional()
442798
+ var TelegramVoiceOutConfigSchema = z45.object({
442799
+ enabled: z45.boolean().default(false),
442800
+ engine: z45.enum(["espeak-ng", "piper"]).default("espeak-ng"),
442801
+ voice: z45.string().default("en-us"),
442802
+ modelPath: z45.string().optional()
442786
442803
  }).strict();
442787
- var TelegramVoiceConfigSchema = z44.object({
442804
+ var TelegramVoiceConfigSchema = z45.object({
442788
442805
  stt: TelegramVoiceSttConfigSchema,
442789
442806
  out: TelegramVoiceOutConfigSchema
442790
442807
  }).strict();
442791
- var TelegramChannelConfigSchema = z44.object({
442792
- type: z44.literal("telegram"),
442793
- botToken: z44.string().min(1),
442794
- allowedChatId: z44.string().optional(),
442795
- polling: z44.boolean().default(true),
442808
+ var TelegramChannelConfigSchema = z45.object({
442809
+ type: z45.literal("telegram"),
442810
+ botToken: z45.string().min(1),
442811
+ allowedChatId: z45.string().optional(),
442812
+ polling: z45.boolean().default(true),
442796
442813
  voice: TelegramVoiceConfigSchema.optional()
442797
442814
  }).strict();
442798
- var DiscordChannelConfigSchema = z44.object({
442799
- type: z44.literal("discord"),
442800
- botToken: z44.string().min(1),
442801
- allowedGuildIds: z44.array(z44.string()).default([]),
442802
- requireMention: z44.boolean().default(true)
442815
+ var DiscordChannelConfigSchema = z45.object({
442816
+ type: z45.literal("discord"),
442817
+ botToken: z45.string().min(1),
442818
+ allowedGuildIds: z45.array(z45.string()).default([]),
442819
+ requireMention: z45.boolean().default(true)
442803
442820
  }).strict();
442804
- var WhatsAppChannelConfigSchema = z44.object({
442805
- type: z44.literal("whatsapp"),
442806
- phoneNumber: z44.string().regex(/^\+?[0-9]{6,15}$/, "phoneNumber must be E.164"),
442807
- authDir: z44.string().default("./.matrix-gateway/whatsapp-auth")
442821
+ var WhatsAppChannelConfigSchema = z45.object({
442822
+ type: z45.literal("whatsapp"),
442823
+ phoneNumber: z45.string().regex(/^\+?[0-9]{6,15}$/, "phoneNumber must be E.164"),
442824
+ authDir: z45.string().default("./.matrix-gateway/whatsapp-auth")
442808
442825
  }).strict();
442809
- var ChannelConfigSchema = z44.discriminatedUnion("type", [
442826
+ var ChannelConfigSchema = z45.discriminatedUnion("type", [
442810
442827
  TelegramChannelConfigSchema,
442811
442828
  DiscordChannelConfigSchema,
442812
442829
  WhatsAppChannelConfigSchema
442813
442830
  ]);
442814
- var GatewaySecuritySchema = z44.object({
442815
- dmPolicy: z44.enum(["open", "pairing", "allowlist", "disabled"]).default("allowlist"),
442816
- groupPolicy: z44.enum(["open", "allowlist", "mention-only", "disabled"]).default("mention-only"),
442817
- allowFrom: z44.array(z44.string()).default([]),
442818
- groupAllowFrom: z44.array(z44.string()).default([]),
442819
- channelAllowFrom: z44.record(z44.string(), z44.array(z44.string())).default({})
442820
- });
442821
- var GatewayRateLimitSchema = z44.object({
442822
- messagesPerMinute: z44.number().int().positive().max(120).default(30),
442823
- messagesPerConversation: z44.number().int().positive().max(50).default(5),
442824
- responseTimeoutMs: z44.number().int().positive().max(300000).default(30000),
442825
- debounceMs: z44.number().int().nonnegative().max(5000).default(500),
442826
- maxMessageLength: z44.number().int().positive().max(8000).default(2000),
442827
- loopThreshold: z44.number().int().positive().max(50).default(3),
442828
- loopWindowMs: z44.number().int().positive().max(60000).default(1e4)
442829
- });
442830
- var GatewayConfigSchema = z44.object({
442831
- channels: z44.array(ChannelConfigSchema).min(1).default([]),
442831
+ var GatewaySecuritySchema = z45.object({
442832
+ dmPolicy: z45.enum(["open", "pairing", "allowlist", "disabled"]).default("allowlist"),
442833
+ groupPolicy: z45.enum(["open", "allowlist", "mention-only", "disabled"]).default("mention-only"),
442834
+ allowFrom: z45.array(z45.string()).default([]),
442835
+ groupAllowFrom: z45.array(z45.string()).default([]),
442836
+ channelAllowFrom: z45.record(z45.string(), z45.array(z45.string())).default({})
442837
+ });
442838
+ var GatewayRateLimitSchema = z45.object({
442839
+ messagesPerMinute: z45.number().int().positive().max(120).default(30),
442840
+ messagesPerConversation: z45.number().int().positive().max(50).default(5),
442841
+ responseTimeoutMs: z45.number().int().positive().max(300000).default(30000),
442842
+ debounceMs: z45.number().int().nonnegative().max(5000).default(500),
442843
+ maxMessageLength: z45.number().int().positive().max(8000).default(2000),
442844
+ loopThreshold: z45.number().int().positive().max(50).default(3),
442845
+ loopWindowMs: z45.number().int().positive().max(60000).default(1e4)
442846
+ });
442847
+ var GatewayConfigSchema = z45.object({
442848
+ channels: z45.array(ChannelConfigSchema).min(1).default([]),
442832
442849
  security: GatewaySecuritySchema.default({
442833
442850
  dmPolicy: "allowlist",
442834
442851
  groupPolicy: "mention-only",
@@ -442845,8 +442862,8 @@ var GatewayConfigSchema = z44.object({
442845
442862
  loopThreshold: 3,
442846
442863
  loopWindowMs: 1e4
442847
442864
  }),
442848
- auditLogPath: z44.string().optional(),
442849
- enabled: z44.boolean().default(false)
442865
+ auditLogPath: z45.string().optional(),
442866
+ enabled: z45.boolean().default(false)
442850
442867
  }).strict();
442851
442868
  function findChannel(config, type2) {
442852
442869
  return config.channels.find((c) => c.type === type2);
@@ -443550,191 +443567,191 @@ class WhatsAppAdapter {
443550
443567
  var GatewayConfigSectionSchema = GatewayConfigSchema.optional();
443551
443568
 
443552
443569
  // packages/omo-opencode/src/config/schema/monitor.ts
443553
- import { z as z45 } from "zod";
443554
- var MonitorConfigSchema = z45.object({
443555
- enabled: z45.boolean().default(false),
443556
- live_mode_enabled: z45.boolean().default(false),
443557
- allowed_commands: z45.array(z45.string()).optional(),
443558
- max_monitors_per_session: z45.number().int().min(1).max(16).default(3),
443559
- max_runtime_ms: z45.number().int().min(1000).default(1800000),
443560
- batch_max_lines: z45.number().int().min(1).default(50),
443561
- batch_max_bytes: z45.number().int().min(1024).default(16384),
443562
- flush_interval_ms: z45.number().int().min(250).default(1000),
443563
- ring_max_lines: z45.number().int().min(1).default(1000),
443564
- line_max_bytes: z45.number().int().min(256).default(8192),
443565
- pattern_max_length: z45.number().int().min(1).default(512)
443570
+ import { z as z46 } from "zod";
443571
+ var MonitorConfigSchema = z46.object({
443572
+ enabled: z46.boolean().default(false),
443573
+ live_mode_enabled: z46.boolean().default(false),
443574
+ allowed_commands: z46.array(z46.string()).optional(),
443575
+ max_monitors_per_session: z46.number().int().min(1).max(16).default(3),
443576
+ max_runtime_ms: z46.number().int().min(1000).default(1800000),
443577
+ batch_max_lines: z46.number().int().min(1).default(50),
443578
+ batch_max_bytes: z46.number().int().min(1024).default(16384),
443579
+ flush_interval_ms: z46.number().int().min(250).default(1000),
443580
+ ring_max_lines: z46.number().int().min(1).default(1000),
443581
+ line_max_bytes: z46.number().int().min(256).default(8192),
443582
+ pattern_max_length: z46.number().int().min(1).default(512)
443566
443583
  });
443567
443584
 
443568
443585
  // packages/omo-opencode/src/config/schema/ralph-loop.ts
443569
- import { z as z46 } from "zod";
443570
- var RalphLoopConfigSchema = z46.object({
443571
- enabled: z46.boolean().default(false),
443572
- default_max_iterations: z46.number().min(1).max(1000).default(100),
443573
- state_dir: z46.string().optional(),
443574
- default_strategy: z46.enum(["reset", "continue"]).default("continue")
443586
+ import { z as z47 } from "zod";
443587
+ var RalphLoopConfigSchema = z47.object({
443588
+ enabled: z47.boolean().default(false),
443589
+ default_max_iterations: z47.number().min(1).max(1000).default(100),
443590
+ state_dir: z47.string().optional(),
443591
+ default_strategy: z47.enum(["reset", "continue"]).default("continue")
443575
443592
  });
443576
443593
 
443577
443594
  // packages/omo-opencode/src/config/schema/runtime-fallback.ts
443578
- import { z as z47 } from "zod";
443579
- var RuntimeFallbackConfigSchema = z47.object({
443580
- enabled: z47.boolean().optional(),
443581
- retry_on_errors: z47.array(z47.number()).optional(),
443582
- max_fallback_attempts: z47.number().min(1).max(20).optional(),
443583
- cooldown_seconds: z47.number().min(0).optional(),
443584
- timeout_seconds: z47.number().min(0).optional(),
443585
- notify_on_fallback: z47.boolean().optional(),
443586
- restore_primary_after_cooldown: z47.boolean().optional()
443595
+ import { z as z48 } from "zod";
443596
+ var RuntimeFallbackConfigSchema = z48.object({
443597
+ enabled: z48.boolean().optional(),
443598
+ retry_on_errors: z48.array(z48.number()).optional(),
443599
+ max_fallback_attempts: z48.number().min(1).max(20).optional(),
443600
+ cooldown_seconds: z48.number().min(0).optional(),
443601
+ timeout_seconds: z48.number().min(0).optional(),
443602
+ notify_on_fallback: z48.boolean().optional(),
443603
+ restore_primary_after_cooldown: z48.boolean().optional()
443587
443604
  });
443588
443605
 
443589
443606
  // packages/team-core/src/config.ts
443590
- import * as z48 from "zod";
443591
- var TeamModeConfigSchema = z48.object({
443592
- enabled: z48.boolean().default(false),
443593
- tmux_visualization: z48.boolean().default(false),
443594
- max_parallel_members: z48.number().int().min(1).max(8).default(4),
443595
- max_members: z48.number().int().min(1).max(8).default(8),
443596
- max_messages_per_run: z48.number().int().min(1).default(1e4),
443597
- max_wall_clock_minutes: z48.number().int().min(1).default(120),
443598
- max_member_turns: z48.number().int().min(1).default(500),
443599
- base_dir: z48.string().optional(),
443600
- message_payload_max_bytes: z48.number().int().min(1024).default(32768),
443601
- recipient_unread_max_bytes: z48.number().int().min(1024).default(262144),
443602
- mailbox_poll_interval_ms: z48.number().int().min(500).default(3000)
443607
+ import * as z49 from "zod";
443608
+ var TeamModeConfigSchema = z49.object({
443609
+ enabled: z49.boolean().default(false),
443610
+ tmux_visualization: z49.boolean().default(false),
443611
+ max_parallel_members: z49.number().int().min(1).max(8).default(4),
443612
+ max_members: z49.number().int().min(1).max(8).default(8),
443613
+ max_messages_per_run: z49.number().int().min(1).default(1e4),
443614
+ max_wall_clock_minutes: z49.number().int().min(1).default(120),
443615
+ max_member_turns: z49.number().int().min(1).default(500),
443616
+ base_dir: z49.string().optional(),
443617
+ message_payload_max_bytes: z49.number().int().min(1024).default(32768),
443618
+ recipient_unread_max_bytes: z49.number().int().min(1024).default(262144),
443619
+ mailbox_poll_interval_ms: z49.number().int().min(500).default(3000)
443603
443620
  });
443604
443621
  // packages/omo-opencode/src/config/schema/skills.ts
443605
- import { z as z49 } from "zod";
443606
- var SkillSourceSchema = z49.union([
443607
- z49.string(),
443608
- z49.object({
443609
- path: z49.string(),
443610
- recursive: z49.boolean().optional(),
443611
- glob: z49.string().optional()
443622
+ import { z as z50 } from "zod";
443623
+ var SkillSourceSchema = z50.union([
443624
+ z50.string(),
443625
+ z50.object({
443626
+ path: z50.string(),
443627
+ recursive: z50.boolean().optional(),
443628
+ glob: z50.string().optional()
443612
443629
  })
443613
443630
  ]);
443614
- var SkillDefinitionSchema = z49.object({
443615
- description: z49.string().optional(),
443616
- template: z49.string().optional(),
443617
- from: z49.string().optional(),
443618
- model: z49.string().optional(),
443619
- agent: z49.string().optional(),
443620
- subtask: z49.boolean().optional(),
443621
- "argument-hint": z49.string().optional(),
443622
- license: z49.string().optional(),
443623
- compatibility: z49.string().optional(),
443624
- metadata: z49.record(z49.string(), z49.unknown()).optional(),
443625
- "allowed-tools": z49.array(z49.string()).optional(),
443626
- disable: z49.boolean().optional()
443627
- });
443628
- var SkillEntrySchema = z49.union([z49.boolean(), SkillDefinitionSchema]);
443629
- var SkillsConfigSchema = z49.union([
443630
- z49.array(z49.string()),
443631
- z49.object({
443632
- sources: z49.array(SkillSourceSchema).optional(),
443633
- enable: z49.array(z49.string()).optional(),
443634
- disable: z49.array(z49.string()).optional()
443631
+ var SkillDefinitionSchema = z50.object({
443632
+ description: z50.string().optional(),
443633
+ template: z50.string().optional(),
443634
+ from: z50.string().optional(),
443635
+ model: z50.string().optional(),
443636
+ agent: z50.string().optional(),
443637
+ subtask: z50.boolean().optional(),
443638
+ "argument-hint": z50.string().optional(),
443639
+ license: z50.string().optional(),
443640
+ compatibility: z50.string().optional(),
443641
+ metadata: z50.record(z50.string(), z50.unknown()).optional(),
443642
+ "allowed-tools": z50.array(z50.string()).optional(),
443643
+ disable: z50.boolean().optional()
443644
+ });
443645
+ var SkillEntrySchema = z50.union([z50.boolean(), SkillDefinitionSchema]);
443646
+ var SkillsConfigSchema = z50.union([
443647
+ z50.array(z50.string()),
443648
+ z50.object({
443649
+ sources: z50.array(SkillSourceSchema).optional(),
443650
+ enable: z50.array(z50.string()).optional(),
443651
+ disable: z50.array(z50.string()).optional()
443635
443652
  }).catchall(SkillEntrySchema)
443636
443653
  ]);
443637
443654
 
443638
443655
  // packages/omo-opencode/src/config/schema/morpheus.ts
443639
- import { z as z50 } from "zod";
443640
- var MorpheusTasksConfigSchema = z50.object({
443641
- storage_path: z50.string().optional(),
443642
- task_list_id: z50.string().optional(),
443643
- claude_code_compat: z50.boolean().default(false)
443656
+ import { z as z51 } from "zod";
443657
+ var MorpheusTasksConfigSchema = z51.object({
443658
+ storage_path: z51.string().optional(),
443659
+ task_list_id: z51.string().optional(),
443660
+ claude_code_compat: z51.boolean().default(false)
443644
443661
  });
443645
- var MorpheusConfigSchema = z50.object({
443662
+ var MorpheusConfigSchema = z51.object({
443646
443663
  tasks: MorpheusTasksConfigSchema.optional()
443647
443664
  });
443648
443665
 
443649
443666
  // packages/omo-opencode/src/config/schema/morpheus-agent.ts
443650
- import { z as z51 } from "zod";
443651
- var MorpheusAgentConfigSchema = z51.object({
443652
- disabled: z51.boolean().optional(),
443653
- default_builder_enabled: z51.boolean().optional(),
443654
- planner_enabled: z51.boolean().optional(),
443655
- replace_plan: z51.boolean().optional(),
443656
- tdd: z51.boolean().default(true).optional()
443667
+ import { z as z52 } from "zod";
443668
+ var MorpheusAgentConfigSchema = z52.object({
443669
+ disabled: z52.boolean().optional(),
443670
+ default_builder_enabled: z52.boolean().optional(),
443671
+ planner_enabled: z52.boolean().optional(),
443672
+ replace_plan: z52.boolean().optional(),
443673
+ tdd: z52.boolean().default(true).optional()
443657
443674
  });
443658
443675
 
443659
443676
  // packages/omo-opencode/src/config/schema/tui.ts
443660
- import { z as z52 } from "zod";
443661
- var TuiSidebarConfigSchema = z52.object({
443662
- enabled: z52.boolean().default(true)
443677
+ import { z as z53 } from "zod";
443678
+ var TuiSidebarConfigSchema = z53.object({
443679
+ enabled: z53.boolean().default(true)
443663
443680
  });
443664
- var TuiConfigSchema = z52.object({
443681
+ var TuiConfigSchema = z53.object({
443665
443682
  sidebar: TuiSidebarConfigSchema.default({ enabled: true })
443666
443683
  });
443667
443684
 
443668
443685
  // packages/omo-opencode/src/config/schema/start-work.ts
443669
- import { z as z53 } from "zod";
443670
- var StartWorkConfigSchema = z53.object({
443671
- auto_commit: z53.boolean().default(true)
443686
+ import { z as z54 } from "zod";
443687
+ var StartWorkConfigSchema = z54.object({
443688
+ auto_commit: z54.boolean().default(true)
443672
443689
  });
443673
443690
 
443674
443691
  // packages/omo-opencode/src/config/schema/watchdog.ts
443675
- import * as z54 from "zod";
443676
- var WatchdogConfigSchema = z54.object({
443677
- enabled: z54.boolean().default(true),
443678
- doomLoopThreshold: z54.number().int().positive().max(20).default(3),
443679
- softDoomLoopThreshold: z54.number().int().positive().max(20).default(5),
443680
- stuckTimeoutSec: z54.number().int().positive().max(600).default(90),
443681
- auditLogPath: z54.string().optional(),
443682
- recoveryStrategy: z54.enum(["nudge", "fallback", "restart", "notify", "safe"]).default("nudge"),
443683
- hookRecursionWindowMs: z54.number().int().positive().max(60000).default(5000),
443684
- hookRecursionThreshold: z54.number().int().positive().max(100).default(10),
443685
- contextBloatMaxTokens: z54.number().int().positive().default(200000),
443686
- contextBloatStuckSec: z54.number().int().positive().max(600).default(120),
443687
- zombieSessionIdleSec: z54.number().int().positive().max(600).default(90),
443688
- runawayTaskTimeoutSec: z54.number().int().positive().max(86400).default(600),
443689
- heartbeatIntervalSec: z54.number().positive().max(300).default(30),
443690
- heartbeatFilePath: z54.string().default(".matrixos/tmp/heartbeat"),
443691
- fatalMarkerPath: z54.string().default(".matrixos/tmp/watchdog-fatal.json"),
443692
- lossThreshold: z54.number().int().positive().max(20).default(3),
443693
- checkIntervalMs: z54.number().int().positive().default(1e4),
443694
- maxMemoryPercent: z54.number().min(1).max(100).default(80),
443695
- maxCpuPercent: z54.number().min(1).max(100).default(90),
443696
- samplingWindowSec: z54.number().positive().max(600).default(30),
443697
- cooldownSec: z54.number().positive().max(3600).default(60),
443698
- maxConsecutiveRestarts: z54.number().int().positive().max(20).default(3),
443699
- restartCircuitSec: z54.number().positive().max(3600).default(300)
443692
+ import * as z55 from "zod";
443693
+ var WatchdogConfigSchema = z55.object({
443694
+ enabled: z55.boolean().default(true),
443695
+ doomLoopThreshold: z55.number().int().positive().max(20).default(3),
443696
+ softDoomLoopThreshold: z55.number().int().positive().max(20).default(5),
443697
+ stuckTimeoutSec: z55.number().int().positive().max(600).default(90),
443698
+ auditLogPath: z55.string().optional(),
443699
+ recoveryStrategy: z55.enum(["nudge", "fallback", "restart", "notify", "safe"]).default("nudge"),
443700
+ hookRecursionWindowMs: z55.number().int().positive().max(60000).default(5000),
443701
+ hookRecursionThreshold: z55.number().int().positive().max(100).default(10),
443702
+ contextBloatMaxTokens: z55.number().int().positive().default(200000),
443703
+ contextBloatStuckSec: z55.number().int().positive().max(600).default(120),
443704
+ zombieSessionIdleSec: z55.number().int().positive().max(600).default(90),
443705
+ runawayTaskTimeoutSec: z55.number().int().positive().max(86400).default(600),
443706
+ heartbeatIntervalSec: z55.number().positive().max(300).default(30),
443707
+ heartbeatFilePath: z55.string().default(".matrixos/tmp/heartbeat"),
443708
+ fatalMarkerPath: z55.string().default(".matrixos/tmp/watchdog-fatal.json"),
443709
+ lossThreshold: z55.number().int().positive().max(20).default(3),
443710
+ checkIntervalMs: z55.number().int().positive().default(1e4),
443711
+ maxMemoryPercent: z55.number().min(1).max(100).default(80),
443712
+ maxCpuPercent: z55.number().min(1).max(100).default(90),
443713
+ samplingWindowSec: z55.number().positive().max(600).default(30),
443714
+ cooldownSec: z55.number().positive().max(3600).default(60),
443715
+ maxConsecutiveRestarts: z55.number().int().positive().max(20).default(3),
443716
+ restartCircuitSec: z55.number().positive().max(3600).default(300)
443700
443717
  }).strict();
443701
443718
 
443702
443719
  // packages/omo-opencode/src/config/schema/websearch.ts
443703
- import { z as z55 } from "zod";
443704
- var WebsearchProviderSchema = z55.enum(["exa", "tavily"]);
443705
- var WebsearchConfigSchema = z55.object({
443720
+ import { z as z56 } from "zod";
443721
+ var WebsearchProviderSchema = z56.enum(["exa", "tavily"]);
443722
+ var WebsearchConfigSchema = z56.object({
443706
443723
  provider: WebsearchProviderSchema.optional()
443707
443724
  });
443708
443725
 
443709
443726
  // packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
443710
443727
  init_src3();
443711
- var OhMyOpenCodeConfigSchema = z63.object({
443712
- $schema: z63.string().optional(),
443713
- new_task_system_enabled: z63.boolean().optional(),
443714
- default_run_agent: z63.string().optional(),
443715
- agent_order: z63.array(z63.string().max(128)).max(64).optional(),
443728
+ var OhMyOpenCodeConfigSchema = z64.object({
443729
+ $schema: z64.string().optional(),
443730
+ new_task_system_enabled: z64.boolean().optional(),
443731
+ default_run_agent: z64.string().optional(),
443732
+ agent_order: z64.array(z64.string().max(128)).max(64).optional(),
443716
443733
  agent_definitions: AgentDefinitionsConfigSchema,
443717
- disabled_mcps: z63.array(AnyMcpNameSchema).optional(),
443718
- disabled_agents: z63.array(z63.string()).optional(),
443719
- disabled_skills: z63.array(z63.string()).optional(),
443720
- disabled_hooks: z63.array(z63.string()).optional(),
443721
- disabled_commands: z63.array(BuiltinCommandNameSchema).optional(),
443722
- disabled_tools: z63.array(z63.string()).optional(),
443723
- disabled_providers: z63.array(z63.string()).optional(),
443724
- mcp_env_allowlist: z63.array(z63.string()).optional(),
443725
- hashline_edit: z63.boolean().optional(),
443726
- telemetry: z63.boolean().optional().describe("Enable or disable anonymous telemetry. Default: enabled when omitted. Set to false to disable. Independent of codegraph.telemetry."),
443727
- model_fallback: z63.boolean().optional(),
443734
+ disabled_mcps: z64.array(AnyMcpNameSchema).optional(),
443735
+ disabled_agents: z64.array(z64.string()).optional(),
443736
+ disabled_skills: z64.array(z64.string()).optional(),
443737
+ disabled_hooks: z64.array(z64.string()).optional(),
443738
+ disabled_commands: z64.array(BuiltinCommandNameSchema).optional(),
443739
+ disabled_tools: z64.array(z64.string()).optional(),
443740
+ disabled_providers: z64.array(z64.string()).optional(),
443741
+ mcp_env_allowlist: z64.array(z64.string()).optional(),
443742
+ hashline_edit: z64.boolean().optional(),
443743
+ telemetry: z64.boolean().optional().describe("Enable or disable anonymous telemetry. Default: enabled when omitted. Set to false to disable. Independent of codegraph.telemetry."),
443744
+ model_fallback: z64.boolean().optional(),
443728
443745
  agents: AgentOverridesSchema.optional(),
443729
443746
  categories: CategoriesConfigSchema.optional(),
443730
443747
  claude_code: ClaudeCodeConfigSchema.optional(),
443731
443748
  morpheus_agent: MorpheusAgentConfigSchema.optional(),
443732
443749
  comment_checker: CommentCheckerConfigSchema.optional(),
443733
443750
  experimental: ExperimentalConfigSchema.optional(),
443734
- auto_update: z63.boolean().optional(),
443751
+ auto_update: z64.boolean().optional(),
443735
443752
  skills: SkillsConfigSchema.optional(),
443736
443753
  ralph_loop: RalphLoopConfigSchema.optional(),
443737
- runtime_fallback: z63.union([z63.boolean(), RuntimeFallbackConfigSchema]).optional(),
443754
+ runtime_fallback: z64.union([z64.boolean(), RuntimeFallbackConfigSchema]).optional(),
443738
443755
  background_task: BackgroundTaskConfigSchema.optional(),
443739
443756
  notification: NotificationConfigSchema.optional(),
443740
443757
  model_capabilities: ModelCapabilitiesConfigSchema.optional(),
@@ -443757,6 +443774,7 @@ var OhMyOpenCodeConfigSchema = z63.object({
443757
443774
  morpheus: MorpheusConfigSchema.optional(),
443758
443775
  start_work: StartWorkConfigSchema.optional(),
443759
443776
  gateway: GatewayConfigSectionSchema,
443777
+ dashboard: DashboardConfigSchema.optional(),
443760
443778
  watchdog: WatchdogConfigSchema.optional(),
443761
443779
  egress: EgressConfigSectionSchema,
443762
443780
  cron: CronConfigSchema.optional(),
@@ -443764,15 +443782,15 @@ var OhMyOpenCodeConfigSchema = z63.object({
443764
443782
  dreamer: DreamerConfigSchema.optional(),
443765
443783
  profiles: ProfileReferencesSchema.optional(),
443766
443784
  profileRegistry: ProfileRegistrySchema.optional(),
443767
- profile_agent_defs: z63.record(z63.string(), z63.any()).optional(),
443768
- _migrations: z63.array(z63.string()).optional(),
443769
- cost_management: z63.object({
443770
- enabled: z63.boolean().default(true),
443771
- session_budget_usd: z63.number().nonnegative().default(5),
443772
- daily_budget_usd: z63.number().nonnegative().default(20),
443773
- monthly_budget_usd: z63.number().nonnegative().default(500),
443774
- alert_threshold_pct: z63.array(z63.number().min(0).max(1)).default([0.5, 0.8, 1]),
443775
- auto_downgrade_at_pct: z63.number().min(0).max(100).default(80)
443785
+ profile_agent_defs: z64.record(z64.string(), z64.any()).optional(),
443786
+ _migrations: z64.array(z64.string()).optional(),
443787
+ cost_management: z64.object({
443788
+ enabled: z64.boolean().default(true),
443789
+ session_budget_usd: z64.number().nonnegative().default(5),
443790
+ daily_budget_usd: z64.number().nonnegative().default(20),
443791
+ monthly_budget_usd: z64.number().nonnegative().default(500),
443792
+ alert_threshold_pct: z64.array(z64.number().min(0).max(1)).default([0.5, 0.8, 1]),
443793
+ auto_downgrade_at_pct: z64.number().min(0).max(100).default(80)
443776
443794
  }).optional()
443777
443795
  });
443778
443796
  // packages/omo-opencode/src/shared/disabled-providers.ts
@@ -451332,13 +451350,13 @@ function createGatewayRelayHandler(deps) {
451332
451350
  }
451333
451351
 
451334
451352
  // packages/daily-brief-core/src/schema.ts
451335
- import * as z64 from "zod";
451336
- var DailyBriefConfigSchema = z64.object({
451337
- hour: z64.number().int().min(0).max(23).default(7),
451338
- minute: z64.number().int().min(0).max(59).default(0),
451339
- channel: z64.enum(["telegram", "discord", "whatsapp"]).default("telegram"),
451340
- recipient_id: z64.string().min(1),
451341
- max_tasks: z64.number().int().positive().default(20)
451353
+ import * as z65 from "zod";
451354
+ var DailyBriefConfigSchema = z65.object({
451355
+ hour: z65.number().int().min(0).max(23).default(7),
451356
+ minute: z65.number().int().min(0).max(59).default(0),
451357
+ channel: z65.enum(["telegram", "discord", "whatsapp"]).default("telegram"),
451358
+ recipient_id: z65.string().min(1),
451359
+ max_tasks: z65.number().int().positive().default(20)
451342
451360
  }).strict();
451343
451361
 
451344
451362
  // packages/daily-brief-core/src/formatter.ts
@@ -451467,61 +451485,61 @@ function createTelegramBriefSender(config3, bot) {
451467
451485
  }
451468
451486
 
451469
451487
  // packages/task-ledger-core/src/schema.ts
451470
- import * as z65 from "zod";
451471
- var TaskSourceSchema = z65.enum(["webhook", "cron", "user", "kanban"]);
451472
- var TaskStatusSchema3 = z65.enum([
451488
+ import * as z66 from "zod";
451489
+ var TaskSourceSchema = z66.enum(["webhook", "cron", "user", "kanban"]);
451490
+ var TaskStatusSchema3 = z66.enum([
451473
451491
  "pending",
451474
451492
  "running",
451475
451493
  "done",
451476
451494
  "failed",
451477
451495
  "cancelled"
451478
451496
  ]);
451479
- var TaskPrioritySchema = z65.enum(["high", "medium", "low"]);
451480
- var TaskSchema3 = z65.object({
451481
- id: z65.string().min(1),
451497
+ var TaskPrioritySchema = z66.enum(["high", "medium", "low"]);
451498
+ var TaskSchema3 = z66.object({
451499
+ id: z66.string().min(1),
451482
451500
  source: TaskSourceSchema,
451483
- context: z65.string().nullable(),
451501
+ context: z66.string().nullable(),
451484
451502
  status: TaskStatusSchema3,
451485
451503
  priority: TaskPrioritySchema.nullable(),
451486
- payload: z65.string(),
451487
- agent_assigned: z65.string().nullable(),
451488
- session_id: z65.string().nullable(),
451489
- result: z65.string().nullable(),
451490
- cost_tokens: z65.number().int().nonnegative().default(0),
451491
- cost_usd: z65.number().nonnegative().default(0),
451492
- created_at: z65.number().int(),
451493
- started_at: z65.number().int().nullable(),
451494
- completed_at: z65.number().int().nullable()
451504
+ payload: z66.string(),
451505
+ agent_assigned: z66.string().nullable(),
451506
+ session_id: z66.string().nullable(),
451507
+ result: z66.string().nullable(),
451508
+ cost_tokens: z66.number().int().nonnegative().default(0),
451509
+ cost_usd: z66.number().nonnegative().default(0),
451510
+ created_at: z66.number().int(),
451511
+ started_at: z66.number().int().nullable(),
451512
+ completed_at: z66.number().int().nullable()
451495
451513
  }).strict();
451496
- var TaskInsertSchema = z65.object({
451497
- id: z65.string().min(1).optional(),
451514
+ var TaskInsertSchema = z66.object({
451515
+ id: z66.string().min(1).optional(),
451498
451516
  source: TaskSourceSchema,
451499
- context: z65.string().nullable().optional(),
451517
+ context: z66.string().nullable().optional(),
451500
451518
  status: TaskStatusSchema3.optional(),
451501
451519
  priority: TaskPrioritySchema.nullable().optional(),
451502
- payload: z65.string(),
451503
- agent_assigned: z65.string().nullable().optional(),
451504
- session_id: z65.string().nullable().optional(),
451505
- cost_tokens: z65.number().int().nonnegative().optional(),
451506
- cost_usd: z65.number().nonnegative().optional()
451520
+ payload: z66.string(),
451521
+ agent_assigned: z66.string().nullable().optional(),
451522
+ session_id: z66.string().nullable().optional(),
451523
+ cost_tokens: z66.number().int().nonnegative().optional(),
451524
+ cost_usd: z66.number().nonnegative().optional()
451507
451525
  }).strict();
451508
- var TaskPatchSchema = z65.object({
451526
+ var TaskPatchSchema = z66.object({
451509
451527
  status: TaskStatusSchema3.optional(),
451510
451528
  priority: TaskPrioritySchema.nullable().optional(),
451511
- agent_assigned: z65.string().nullable().optional(),
451512
- session_id: z65.string().nullable().optional(),
451513
- result: z65.string().nullable().optional(),
451514
- cost_tokens: z65.number().int().nonnegative().optional(),
451515
- cost_usd: z65.number().nonnegative().optional(),
451516
- started_at: z65.number().int().nullable().optional(),
451517
- completed_at: z65.number().int().nullable().optional()
451529
+ agent_assigned: z66.string().nullable().optional(),
451530
+ session_id: z66.string().nullable().optional(),
451531
+ result: z66.string().nullable().optional(),
451532
+ cost_tokens: z66.number().int().nonnegative().optional(),
451533
+ cost_usd: z66.number().nonnegative().optional(),
451534
+ started_at: z66.number().int().nullable().optional(),
451535
+ completed_at: z66.number().int().nullable().optional()
451518
451536
  }).strict();
451519
- var TaskFilterSchema = z65.object({
451537
+ var TaskFilterSchema = z66.object({
451520
451538
  source: TaskSourceSchema.optional(),
451521
- context: z65.string().optional(),
451539
+ context: z66.string().optional(),
451522
451540
  status: TaskStatusSchema3.optional(),
451523
- agent_assigned: z65.string().optional(),
451524
- session_id: z65.string().optional(),
451541
+ agent_assigned: z66.string().optional(),
451542
+ session_id: z66.string().optional(),
451525
451543
  priority: TaskPrioritySchema.optional()
451526
451544
  }).strict();
451527
451545
 
@@ -451775,17 +451793,17 @@ class CronRunner {
451775
451793
  }
451776
451794
 
451777
451795
  // packages/omo-opencode/src/features/cron/store.ts
451778
- import * as z66 from "zod";
451779
- var CronJobSchema = z66.object({
451780
- id: z66.string().min(1),
451781
- name: z66.string().min(1).max(100),
451782
- schedule: z66.string().min(1).max(100),
451783
- command: z66.string().min(1),
451784
- channel: z66.enum(["telegram", "discord", "whatsapp"]).optional(),
451785
- recipient: z66.string().optional(),
451786
- enabled: z66.boolean().default(true),
451787
- createdAt: z66.string(),
451788
- updatedAt: z66.string()
451796
+ import * as z67 from "zod";
451797
+ var CronJobSchema = z67.object({
451798
+ id: z67.string().min(1),
451799
+ name: z67.string().min(1).max(100),
451800
+ schedule: z67.string().min(1).max(100),
451801
+ command: z67.string().min(1),
451802
+ channel: z67.enum(["telegram", "discord", "whatsapp"]).optional(),
451803
+ recipient: z67.string().optional(),
451804
+ enabled: z67.boolean().default(true),
451805
+ createdAt: z67.string(),
451806
+ updatedAt: z67.string()
451789
451807
  }).strict();
451790
451808
  function createCronStore() {
451791
451809
  const jobs = new Map;
@@ -451832,6 +451850,8 @@ function createCronStore() {
451832
451850
  }
451833
451851
 
451834
451852
  // packages/omo-opencode/src/testing/create-plugin-module.ts
451853
+ import * as fs31 from "fs";
451854
+ import * as path29 from "path";
451835
451855
  var defaultPluginModuleDeps = {
451836
451856
  initConfigContext,
451837
451857
  installAgentSortShim,
@@ -452149,9 +452169,26 @@ function createPluginModule(overrides2 = {}) {
452149
452169
  mergedSkills: toolsResult.mergedSkills,
452150
452170
  availableSkills: toolsResult.availableSkills
452151
452171
  });
452152
- if (pluginConfig.gateway?.enabled) {
452172
+ let gatewayWatcher;
452173
+ let gatewayReloadInFlight = false;
452174
+ function buildGwConfig() {
452175
+ const source = pluginConfig.gateway;
452176
+ if (!source) {
452177
+ throw new Error("[gateway] buildGwConfig called without gateway config");
452178
+ }
452179
+ const channels3 = source.channels?.map((ch) => {
452180
+ if ("botToken" in ch && typeof ch.botToken === "string" && ch.botToken.length > 0) {
452181
+ return { ...ch, botToken: resolveGatewayToken(ch.botToken) };
452182
+ }
452183
+ return ch;
452184
+ });
452185
+ return { ...source, channels: channels3 ?? [] };
452186
+ }
452187
+ async function createAndStartGateway() {
452188
+ if (!pluginConfig.gateway?.enabled)
452189
+ return;
452153
452190
  try {
452154
- const gwConfig = pluginConfig.gateway;
452191
+ const gwConfig = buildGwConfig();
452155
452192
  let gwInstance;
452156
452193
  gwInstance = new MatrixGateway(gwConfig, {
452157
452194
  handler: createGatewayRelayHandler({
@@ -452172,7 +452209,6 @@ function createPluginModule(overrides2 = {}) {
452172
452209
  }
452173
452210
  }
452174
452211
  await gateway.start();
452175
- const gw = gateway;
452176
452212
  deps.log("[gateway] started \u2014 Telegram/Discord/WhatsApp relay active", {
452177
452213
  channels: gwConfig.channels.map((c2) => c2.type)
452178
452214
  });
@@ -452182,6 +452218,37 @@ function createPluginModule(overrides2 = {}) {
452182
452218
  gateway = undefined;
452183
452219
  }
452184
452220
  }
452221
+ async function reloadGateway() {
452222
+ if (gatewayReloadInFlight)
452223
+ return;
452224
+ gatewayReloadInFlight = true;
452225
+ try {
452226
+ deps.log("[gateway] reloading due to env file change");
452227
+ loadGatewayEnvFile(undefined, true);
452228
+ if (gateway) {
452229
+ await gateway.stop();
452230
+ }
452231
+ await createAndStartGateway();
452232
+ } catch (error) {
452233
+ const detail = error instanceof Error ? error.message : String(error);
452234
+ console.warn(`[gateway] reload failed: ${detail}`);
452235
+ } finally {
452236
+ gatewayReloadInFlight = false;
452237
+ }
452238
+ }
452239
+ if (pluginConfig.gateway?.enabled) {
452240
+ await createAndStartGateway();
452241
+ const envPath = path29.join(getConfigDir(), GATEWAY_ENV_FILENAME);
452242
+ try {
452243
+ gatewayWatcher = fs31.watch(envPath, { persistent: false }, async (_eventType) => {
452244
+ await new Promise((resolve43) => setTimeout(resolve43, 300));
452245
+ await reloadGateway();
452246
+ });
452247
+ } catch (error) {
452248
+ const detail = error instanceof Error ? error.message : String(error);
452249
+ console.warn(`[gateway] failed to watch env file ${envPath}: ${detail}`);
452250
+ }
452251
+ }
452185
452252
  let dreamerTrigger;
452186
452253
  const dreamerConfig = pluginConfig.dreamer;
452187
452254
  if (dreamerConfig?.enabled) {
@@ -452230,6 +452297,12 @@ function createPluginModule(overrides2 = {}) {
452230
452297
  "experimental.session.compacting": createSessionCompactingHandler(hooks2),
452231
452298
  "experimental.compaction.autocontinue": createCompactionAutocontinueHandler(hooks2),
452232
452299
  dispose: async () => {
452300
+ if (gatewayWatcher) {
452301
+ try {
452302
+ gatewayWatcher.close();
452303
+ } catch {}
452304
+ gatewayWatcher = undefined;
452305
+ }
452233
452306
  if (cronRunner) {
452234
452307
  try {
452235
452308
  cronRunner.stop();