@tensorix/metahub 0.4.1 → 0.5.1
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/cli.js +6151 -15068
- package/dist/cli.js.map +26 -77
- package/dist/core/audit.d.ts +97 -0
- package/dist/core/audit.d.ts.map +1 -0
- package/dist/core/crdt.d.ts +13 -1
- package/dist/core/crdt.d.ts.map +1 -1
- package/dist/core/databases.d.ts.map +1 -1
- package/dist/core/documents.d.ts +6 -0
- package/dist/core/documents.d.ts.map +1 -1
- package/dist/core/grants-core.d.ts.map +1 -1
- package/dist/core/history.d.ts +31 -0
- package/dist/core/history.d.ts.map +1 -1
- package/dist/core/indexing.d.ts +1 -1
- package/dist/core/integrity.d.ts +1 -1
- package/dist/core/integrity.d.ts.map +1 -1
- package/dist/core/properties.d.ts +1 -1
- package/dist/core/properties.d.ts.map +1 -1
- package/dist/core/records.d.ts +5 -0
- package/dist/core/records.d.ts.map +1 -1
- package/dist/core/relation-cells.d.ts +23 -0
- package/dist/core/relation-cells.d.ts.map +1 -0
- package/dist/core/resolve.d.ts +4 -0
- package/dist/core/resolve.d.ts.map +1 -1
- package/dist/core/sync/files.d.ts.map +1 -1
- package/dist/core/sync/server.d.ts.map +1 -1
- package/dist/core/sync/share-serve.d.ts.map +1 -1
- package/dist/db-worker.js +96 -98
- package/dist/edge-worker.js +135 -87
- package/dist/index.js +11712 -20459
- package/dist/index.js.map +18 -71
- package/dist/metahub-sdk.js +7 -7
- package/dist/mh-runtime.js +1 -1
- package/dist/sw.js +7 -7
- package/dist/webui/server/assets.d.ts +3 -1
- package/dist/webui/server/assets.d.ts.map +1 -1
- package/dist/webui/server/changes-route.d.ts +7 -0
- package/dist/webui/server/changes-route.d.ts.map +1 -0
- package/dist/webui/server/routes.d.ts.map +1 -1
- package/dist/webui-fmt-clang.js +1 -1
- package/dist/webui-fmt-gofmt.js +1 -1
- package/dist/webui-fmt-lua.js +2 -2
- package/dist/webui-fmt-ruff.js +2 -2
- package/dist/webui-fmt-sh.js +8 -8
- package/dist/webui-fmt-taplo.js +2 -2
- package/dist/webui-fmt.js +346 -346
- package/dist/webui.js +182 -178
- package/package.json +1 -1
package/dist/webui-fmt-taplo.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
${
|
|
1
|
+
var D=Object.defineProperty;var N=(t)=>t;function P(t,e){this[t]=N.bind(null,e)}var L=(t,e)=>{for(var n in e)D(t,n,{get:e[n],enumerable:!0,configurable:!0,set:P.bind(e,n)})};var R={};L(R,{__wbg_Error_8c4e43fe74559d73:()=>q,__wbg_Number_04624de7d0e8332d:()=>C,__wbg_String_8f0eb39a4a4c2f66:()=>z,__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:()=>H,__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:()=>J,__wbg___wbindgen_debug_string_0bc8482c6e3508ae:()=>K,__wbg___wbindgen_in_47fa6863be6f2f25:()=>X,__wbg___wbindgen_is_bigint_31b12575b56f32fc:()=>Y,__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:()=>G,__wbg___wbindgen_is_undefined_9e4d92534c42d778:()=>Q,__wbg___wbindgen_jsval_eq_11888390b0186270:()=>Z,__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:()=>tt,__wbg___wbindgen_number_get_8ff4255516ccad3e:()=>et,__wbg___wbindgen_string_get_72fb696202c56729:()=>nt,__wbg___wbindgen_throw_be289d5034ed271b:()=>rt,__wbg_get_with_ref_key_1dc361bd10053bfe:()=>ot,__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:()=>it,__wbg_instanceof_Uint8Array_9b9075935c74707c:()=>st,__wbg_isSafeInteger_bfbc7332a9768d2a:()=>ft,__wbg_length_32ed9a279acd054c:()=>ct,__wbg_new_dd2b680c8bf6ae29:()=>_t,__wbg_prototypesetcall_bdcdcc5842e4d77d:()=>ut,__wbg_set_wasm:()=>yt,__wbindgen_cast_0000000000000001:()=>at,__wbindgen_cast_0000000000000002:()=>bt,__wbindgen_object_clone_ref:()=>gt,__wbindgen_object_drop_ref:()=>dt,format:()=>V});function V(t,e){let n,r;try{let l=f.__wbindgen_add_to_stack_pointer(-16),v=S(t,f.__wbindgen_export,f.__wbindgen_export2),B=w;f.format(l,v,B,g(e)?0:d(e));var o=c().getInt32(l+0,!0),_=c().getInt32(l+4,!0),s=c().getInt32(l+8,!0),u=c().getInt32(l+12,!0),a=o,F=_;if(u)throw a=0,F=0,E(s);return n=a,r=F,I(a,F)}finally{f.__wbindgen_add_to_stack_pointer(16),f.__wbindgen_export3(n,r,1)}}function q(t,e){let n=Error(I(t,e));return d(n)}function C(t){return Number(i(t))}function z(t,e){let n=String(i(e)),r=S(n,f.__wbindgen_export,f.__wbindgen_export2),o=w;c().setInt32(t+4,o,!0),c().setInt32(t+0,r,!0)}function H(t,e){let n=i(e),r=typeof n==="bigint"?n:void 0;c().setBigInt64(t+8,g(r)?BigInt(0):r,!0),c().setInt32(t+0,!g(r),!0)}function J(t){let e=i(t),n=typeof e==="boolean"?e:void 0;return g(n)?16777215:n?1:0}function K(t,e){let n=M(i(e)),r=S(n,f.__wbindgen_export,f.__wbindgen_export2),o=w;c().setInt32(t+4,o,!0),c().setInt32(t+0,r,!0)}function X(t,e){return i(t)in i(e)}function Y(t){return typeof i(t)==="bigint"}function G(t){let e=i(t);return typeof e==="object"&&e!==null}function Q(t){return i(t)===void 0}function Z(t,e){return i(t)===i(e)}function tt(t,e){return i(t)==i(e)}function et(t,e){let n=i(e),r=typeof n==="number"?n:void 0;c().setFloat64(t+8,g(r)?0:r,!0),c().setInt32(t+0,!g(r),!0)}function nt(t,e){let n=i(e),r=typeof n==="string"?n:void 0;var o=g(r)?0:S(r,f.__wbindgen_export,f.__wbindgen_export2),_=w;c().setInt32(t+4,_,!0),c().setInt32(t+0,o,!0)}function rt(t,e){throw Error(I(t,e))}function ot(t,e){let n=i(t)[i(e)];return d(n)}function it(t){let e;try{e=i(t)instanceof ArrayBuffer}catch(r){e=!1}return e}function st(t){let e;try{e=i(t)instanceof Uint8Array}catch(r){e=!1}return e}function ft(t){return Number.isSafeInteger(i(t))}function ct(t){return i(t).length}function _t(t){let e=new Uint8Array(i(t));return d(e)}function ut(t,e,n){Uint8Array.prototype.set.call(wt(t,e),i(n))}function at(t,e){let n=I(t,e);return d(n)}function bt(t){let e=BigInt.asUintN(64,t);return d(e)}function gt(t){let e=i(t);return d(e)}function dt(t){E(t)}function d(t){if(y===b.length)b.push(b.length+1);let e=y;return y=b[e],b[e]=t,e}function M(t){let e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){let o=t.description;if(o==null)return"Symbol";else return`Symbol(${o})`}if(e=="function"){let o=t.name;if(typeof o=="string"&&o.length>0)return`Function(${o})`;else return"Function"}if(Array.isArray(t)){let o=t.length,_="[";if(o>0)_+=M(t[0]);for(let s=1;s<o;s++)_+=", "+M(t[s]);return _+="]",_}let n=/\[object ([^\]]+)\]/.exec(toString.call(t)),r;if(n&&n.length>1)r=n[1];else return toString.call(t);if(r=="Object")try{return"Object("+JSON.stringify(t)+")"}catch(o){return"Object"}if(t instanceof Error)return`${t.name}: ${t.message}
|
|
2
|
+
${t.stack}`;return r}function mt(t){if(t<132)return;b[t]=y,y=t}function wt(t,e){return t=t>>>0,p().subarray(t/1,t/1+e)}var m=null;function c(){if(m===null||m.buffer.detached===!0||m.buffer.detached===void 0&&m.buffer!==f.memory.buffer)m=new DataView(f.memory.buffer);return m}function I(t,e){return t=t>>>0,pt(t,e)}var j=null;function p(){if(j===null||j.byteLength===0)j=new Uint8Array(f.memory.buffer);return j}function i(t){return b[t]}var b=Array(128).fill(void 0);b.push(void 0,null,!0,!1);var y=b.length;function g(t){return t===void 0||t===null}function S(t,e,n){if(n===void 0){let u=x.encode(t),a=e(u.length,1)>>>0;return p().subarray(a,a+u.length).set(u),w=u.length,a}let r=t.length,o=e(r,1)>>>0,_=p(),s=0;for(;s<r;s++){let u=t.charCodeAt(s);if(u>127)break;_[o+s]=u}if(s!==r){if(s!==0)t=t.slice(s);o=n(o,r,r=s+t.length*3,1)>>>0;let u=p().subarray(o+s,o+r),a=x.encodeInto(t,u);s+=a.written,o=n(o,r,s,1)>>>0}return w=s,o}function E(t){let e=i(t);return mt(t),e}var A=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});A.decode();var lt=2146435072,k=0;function pt(t,e){if(k+=e,k>=lt)A=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),A.decode(),k=e;return A.decode(p().subarray(t,t+e))}var x=new TextEncoder;if(!("encodeInto"in x))x.encodeInto=function(t,e){let n=x.encode(t);return e.set(n),{read:t.length,written:n.length}};var w=0,f;function yt(t){f=t}var{__wbg_set_wasm:xt,format:O,...ht}=R;function jt(){return{__proto__:null,"./taplo_fmt_bg.js":ht}}var h,At;async function It(t,e){if(typeof Response==="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming==="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(o){if(t.ok&&n(t.type)&&t.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o);else throw o}let r=await t.arrayBuffer();return await WebAssembly.instantiate(r,e)}else{let r=await WebAssembly.instantiate(t,e);if(r instanceof WebAssembly.Instance)return{instance:r,module:t};else return r}function n(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}function St(t,e){return h=t.exports,At=e,xt(h),h}async function W(t){if(h!==void 0)return h;if(t===void 0)t=new URL("taplo_fmt_bg.wasm",import.meta.url);if(typeof t==="string"||typeof Request==="function"&&t instanceof Request||typeof URL==="function"&&t instanceof URL)t=fetch(t);let{instance:e,module:n}=await It(await t,jt());return St(e,n)}var Ft=[{id:"core",js:"/webui-fmt.js",entry:"fmt/fmt-core.ts"},{id:"ruff",js:"/webui-fmt-ruff.js",entry:"fmt/fmt-ruff.ts",wasm:{route:"/webui-fmt-ruff.wasm",pkg:"@wasm-fmt/ruff_fmt",file:"ruff_fmt_bg.wasm"}},{id:"gofmt",js:"/webui-fmt-gofmt.js",entry:"fmt/fmt-gofmt.ts",wasm:{route:"/webui-fmt-gofmt.wasm",pkg:"@wasm-fmt/gofmt",file:"gofmt.wasm"}},{id:"clang",js:"/webui-fmt-clang.js",entry:"fmt/fmt-clang.ts",wasm:{route:"/webui-fmt-clang.wasm",pkg:"@wasm-fmt/clang-format",file:"clang-format.wasm"}},{id:"lua",js:"/webui-fmt-lua.js",entry:"fmt/fmt-lua.ts",wasm:{route:"/webui-fmt-lua.wasm",pkg:"@wasm-fmt/lua_fmt",file:"lua_fmt_bg.wasm"}},{id:"taplo",js:"/webui-fmt-taplo.js",entry:"fmt/fmt-taplo.ts",wasm:{route:"/webui-fmt-taplo.wasm",pkg:"@wasm-fmt/taplo_fmt",file:"taplo_fmt_bg.wasm"}},{id:"sh",js:"/webui-fmt-sh.js",entry:"fmt/fmt-sh.ts"}];function T(t){return Ft.find((e)=>e.id===t)}var Ot="mh-fmt-taplo",U=null;async function Tt(t,e,n){return U??=W(T("taplo").wasm.route),await U,{text:O(t),cursor:n}}export{Ot as MARKER,Tt as format};
|