@ours.network/mcp 0.16.0 → 0.16.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/index.js
CHANGED
|
@@ -56,7 +56,7 @@ data:
|
|
|
56
56
|
`),o}import{basename as tP,extname as rP}from"node:path";var nP={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".svg":"image/svg+xml",".bmp":"image/bmp",".ico":"image/x-icon",".pdf":"application/pdf",".txt":"text/plain",".md":"text/markdown",".json":"application/json",".csv":"text/csv",".html":"text/html",".xml":"application/xml",".zip":"application/zip",".gz":"application/gzip",".tar":"application/x-tar",".mp3":"audio/mpeg",".wav":"audio/wav",".mp4":"video/mp4",".mov":"video/quicktime"};function hv(t){return nP[rP(t).toLowerCase()]??"application/octet-stream"}function gv(t){let e=tP(t).replace(/[^A-Za-z0-9._-]/g,"_");return e.length?e.slice(0,200):"file"}var oP=new Set(["e2e_app_recv","migration_deferred_flush"]);function yv(t){let e=new Set;for(let r of t){if(!r||typeof r!="object")continue;let n=r.event;if(typeof n!="string"||!oP.has(n))continue;let o=r.wire_id;typeof o=="string"&&o.length>0&&e.add(o)}return e}function iP(t,e){return t&&e.has(t)?"e2e":"legacy"}function sP(t,e){let r=iP(t.wire_id,e);return{msg_id:t.msg_id,wire_id:t.wire_id,from:{id:t.sender_id,name:t.sender_name},encryption:r,transport:r==="e2e"?"double_ratchet":"legacy_box",text:t.text,date:t.date,status:t.status,reply_to:t.reply_to}}function _v(t,e){let r=t.map(n=>sP(n,e));return{count:r.length,messages:r}}var aP="x-ours-kind=voice-message",cP="voice-message-";function ya(t,e){let r=(t??"").toLowerCase().split(";").map(n=>n.trim());return r[0].startsWith("audio/")&&r.slice(1).includes(aP)?!0:e.toLowerCase().startsWith(cP)&&r[0].startsWith("audio/")}function $p(t){return(t??"").split(";")[0].trim()||"application/octet-stream"}var wp=["openai-compatible","elevenlabs","deepgram","custom"],uP=5*1024*1024,lP=6e4;function xp(t){let e="configure it in config.json `stt: {}` or via OURS_STT_* env";if(!t?.provider)return{ready:!1,reason:`no STT provider configured (stt.provider: ${wp.join(" | ")}) \u2014 ${e}`};let r=t.provider.trim().toLowerCase();if(!wp.includes(r))return{ready:!1,reason:`unknown STT provider "${t.provider}" (expected: ${wp.join(" | ")})`};if(!t.apiKey?.trim())return{ready:!1,reason:`STT provider "${r}" is set but the API key is missing (stt.apiKey / OURS_STT_API_KEY)`};if(r==="openai-compatible"){if(!t.baseUrl?.trim())return{ready:!1,reason:"openai-compatible STT needs stt.baseUrl / OURS_STT_BASE_URL (e.g. your provider's /v1 root) \u2014 no endpoint is assumed"};if(!t.model?.trim())return{ready:!1,reason:"openai-compatible STT needs stt.model / OURS_STT_MODEL (passed to the provider verbatim) \u2014 no model is assumed"}}if(r==="elevenlabs"&&!t.model?.trim())return{ready:!1,reason:"elevenlabs STT needs stt.model / OURS_STT_MODEL (the model_id, e.g. from your ElevenLabs account) \u2014 no model is assumed"};if(r==="custom"){if(!t.custom?.url?.trim())return{ready:!1,reason:"custom STT needs stt.custom.url (the full endpoint URL of your provider)"};if((t.custom.url.includes("{model}")||t.custom.modelField!==void 0&&t.custom.modelField!=="")&&!t.model?.trim())return{ready:!1,reason:"the custom STT template references a model (url {model} or modelField) but stt.model / OURS_STT_MODEL is not set"}}return{ready:!0,provider:r}}function _a(t,e){let r=t;for(let n of e.split(".")){if(r===null||typeof r!="object")return;r=r[n]}return typeof r=="string"?r:void 0}async function va(t,e,r,n=[]){let o=new AbortController,i=setTimeout(()=>o.abort(),r);try{let s=await fetch(t,{...e,signal:o.signal});if(!s.ok){let a=await s.text().catch(()=>"");for(let c of n)c&&(a=a.split(c).join("[redacted]"));return{ok:!1,error:`STT HTTP ${s.status}${a?`: ${a.slice(0,200)}`:""}`}}return{ok:!0,json:await s.json()}}catch(s){return s?.name==="AbortError"?{ok:!1,error:`STT timeout after ${r}ms`}:{ok:!1,error:s instanceof Error?s.message:String(s)}}finally{clearTimeout(i)}}var Sp=(t,e)=>new Blob([new Uint8Array(t)],{type:$p(e)}),dP=async(t,e,r,n,o)=>{let i=new FormData;i.set("file",Sp(t,r),e),i.set("model",n.model.trim()),i.set("response_format","json"),n.language?.trim()&&i.set("language",n.language.trim());let s=await va(`${n.baseUrl.trim().replace(/\/$/,"")}/audio/transcriptions`,{method:"POST",headers:{Authorization:`Bearer ${n.apiKey.trim()}`},body:i},o,[n.apiKey.trim()]);if(!s.ok)return s;let a=_a(s.json,"text");return a!==void 0?{ok:!0,text:a}:{ok:!1,error:"STT response missing text"}},pP=async(t,e,r,n,o)=>{let i=new FormData;i.set("file",Sp(t,r),e),i.set("model_id",n.model.trim()),n.language?.trim()&&i.set("language_code",n.language.trim());let s=await va(`${(n.baseUrl?.trim()||"https://api.elevenlabs.io").replace(/\/$/,"")}/v1/speech-to-text`,{method:"POST",headers:{"xi-api-key":n.apiKey.trim()},body:i},o,[n.apiKey.trim()]);if(!s.ok)return s;let a=_a(s.json,"text");return a!==void 0?{ok:!0,text:a}:{ok:!1,error:"STT response missing text"}},fP=async(t,e,r,n,o)=>{let i=new URLSearchParams;n.model?.trim()&&i.set("model",n.model.trim()),n.language?.trim()&&i.set("language",n.language.trim());let s=i.toString(),a=await va(`${(n.baseUrl?.trim()||"https://api.deepgram.com").replace(/\/$/,"")}/v1/listen${s?`?${s}`:""}`,{method:"POST",headers:{Authorization:`Token ${n.apiKey.trim()}`,"Content-Type":$p(r)},body:new Uint8Array(t)},o,[n.apiKey.trim()]);if(!a.ok)return a;let c=_a(a.json,"results.channels.0.alternatives.0.transcript");return c!==void 0?{ok:!0,text:c}:{ok:!1,error:"STT response missing transcript"}},mP=async(t,e,r,n,o)=>{let i=n.custom,s=n.model?.trim()??"",a=i.url.replaceAll("{model}",encodeURIComponent(s)),c={},u=i.authHeaderName?.trim()||"Authorization",l=(i.authHeaderTemplate??"Bearer {key}").replaceAll("{key}",n.apiKey.trim());l&&(c[u]=l);let d=i.bodyMode??"multipart",f=i.fileField?.trim()||"file",h=i.modelField===void 0?"model":i.modelField.trim(),p;if(d==="multipart"){let y=new FormData;y.set(f,Sp(t,r),e),h&&s&&y.set(h,s);for(let[_,w]of Object.entries(i.extraFields??{}))y.set(_,w);p=y}else d==="raw"?(c["Content-Type"]=$p(r),p=new Uint8Array(t)):(c["Content-Type"]="application/json",p=JSON.stringify({[f]:t.toString("base64"),...h&&s?{[h]:s}:{},...i.extraFields??{}}));let m=await va(a,{method:i.method?.trim()||"POST",headers:c,body:p},o,[n.apiKey.trim()]);if(!m.ok)return m;let g=_a(m.json,i.responseTextPath?.trim()||"text");return g!==void 0?{ok:!0,text:g}:{ok:!1,error:`STT response has no text at "${i.responseTextPath?.trim()||"text"}"`}},hP={"openai-compatible":dP,elevenlabs:pP,deepgram:fP,custom:mP};async function vv(t,e,r,n){let o=xp(n);if(!o.ready)return{ok:!1,error:o.reason};let i=n.maxBytes??uP;if(t.length>i)return{ok:!1,error:`voice message is ${t.length} B \u2014 over the ${i} B STT limit (stt.maxBytes)`};let s=n.timeoutMs??lP;try{return await hP[o.provider](t,e,r,n,s)}catch(a){return{ok:!1,error:a instanceof Error?a.message:String(a)}}}function gP(t){return/limit|over .* bytes/i.test(t)?"size_limit":/timeout/i.test(t)?"timeout":/HTTP \d+/i.test(t)?"provider_http":/missing|no text|no transcript/i.test(t)?"invalid_response":"provider_error"}function bv(t,e,r){return!t.ready||e.kind==="unconfigured"?{configured:!1,attempted:!1,status:"unavailable",provider:null,text:null,error_category:"not_configured",audio_path:r.audioPath,file_wire_id:r.wireId}:e.kind==="transcript"?{configured:!0,attempted:!0,status:"succeeded",provider:t.provider,text:e.text,error_category:null,audio_path:r.audioPath,file_wire_id:r.wireId}:{configured:!0,attempted:!0,status:"failed",provider:t.provider,text:null,error_category:gP(e.error),audio_path:r.audioPath,file_wire_id:r.wireId}}function wv(t,e){let r=` \u2022 \u{1F3A4} voice message from ${t.sender} (${t.sizeBytes} B)`,n=`audio saved \u2192 ${t.savedPath} {${t.wire}}`;switch(e.kind){case"transcript":return`${r}: "${e.text}" \u2014 transcribed from voice message (STT); ${n}`;case"unconfigured":return`${r}: cannot transcribe \u2014 ${e.reason}. Tell the user you can't listen to voice messages until the operator configures transcription on this ours-mcp server, and ask them to send text meanwhile; ${n}`;case"failed":return`${r}: transcription failed (${e.error}). Tell the user their voice message could not be transcribed right now and ask them to send text or retry; ${n}`}}import*as It from"node:fs";import{join as yP}from"node:path";var _P="startup-progress.json",$v=1;function vP(t){return yP(t,_P)}function xv(t,e={}){let r=e.pid??process.pid,n=e.now??Date.now,o=n(),i=vP(t),s=`${i}.${r}.tmp`,a=Math.max(100,e.heartbeatMs??2e3),c=!1,u=!1,l={version:$v,pid:r,bootId:`${r}-${o}`,phase:"initializing",startedAt:o,updatedAt:o},d=()=>{if(!u)try{It.mkdirSync(t,{recursive:!0,mode:448}),It.writeFileSync(s,`${JSON.stringify(l)}
|
|
57
57
|
`,{mode:384}),It.renameSync(s,i);try{It.chmodSync(i,384)}catch{}}catch{u=!0;try{It.rmSync(s,{force:!0})}catch{}}},f=(m,g)=>{l={version:$v,pid:r,bootId:l.bootId,phase:m,...g?{completed:g.completed,total:g.total}:{},startedAt:o,updatedAt:n()},d()};d();let h=setInterval(()=>{c||(l={...l,updatedAt:n()},d())},a);h.unref?.();let p=m=>{c||(f(m),c=!0,clearInterval(h))};return{update:f,ready:()=>p("ready"),failed:()=>p("failed")}}var bP=`: ka
|
|
58
58
|
|
|
59
|
-
`;function wP(t=process.env){let e=(t.OURS_SSE_KEEPALIVE_MS??"").trim();if(e==="")return 25e3;let r=Number(e);return Number.isFinite(r)&&r>=0?r:25e3}function ba(t,e=wP()){if(!(e>0))return;let r=!1,n=t.writeHead.bind(t);t.writeHead=(...s)=>{let a=typeof s[1]=="object"&&s[1]!==null?s[1]:s[2];if(a&&!Array.isArray(a))for(let[c,u]of Object.entries(a))c.toLowerCase()==="content-type"&&String(u).includes("text/event-stream")&&(r=!0);return n(...s)};let o=setInterval(()=>{if(!(!r||t.writableEnded||t.destroyed))try{t.write(bP)}catch{}},e);o.unref?.();let i=()=>clearInterval(o);t.once("close",i),t.once("finish",i)}function $P(t){let e=new Map;for(let r of t)e.set(r.name,(e.get(r.name)??0)+1);return e}function Sv(t){let e=$P(t);return t.map(r=>`\u2022 ${r.name} \u2014 ${r.container_id}${r.rootTag??""}${r.degradedQueued!==void 0?` \u2014 \u26A0 keys pending restore (${r.degradedQueued} queued)`:""}${(e.get(r.name)??0)>1?" \u2014 \u26A0 DUPLICATE NAME: sends to this name abort; address by container id, repair with rename_contact":""}${r.renamedFrom!==void 0?` \u2014 \u26A0 renamed on import (two contacts were named "${r.renamedFrom}"; do NOT assume the one keeping the bare name is the live one \u2014 verify by container id, settle with rename_contact)`:""}`)}function xP(t){let{selfVersion:e,daemonVersion:r}=t;return!r||r===e?null:`ours: version mismatch \u2014 this plugin/connector is v${e}, the running daemon is v${r}. Everything still works; for the best experience run matching versions. The daemon is a shared singleton and is never restarted automatically, so when no other session is mid-task run \`ours-mcp stop\` (the next session starts the daemon at the new version) \u2014 or update the lagging side to match. No action is required; this is advisory.`}var fi="0.16.
|
|
59
|
+
`;function wP(t=process.env){let e=(t.OURS_SSE_KEEPALIVE_MS??"").trim();if(e==="")return 25e3;let r=Number(e);return Number.isFinite(r)&&r>=0?r:25e3}function ba(t,e=wP()){if(!(e>0))return;let r=!1,n=t.writeHead.bind(t);t.writeHead=(...s)=>{let a=typeof s[1]=="object"&&s[1]!==null?s[1]:s[2];if(a&&!Array.isArray(a))for(let[c,u]of Object.entries(a))c.toLowerCase()==="content-type"&&String(u).includes("text/event-stream")&&(r=!0);return n(...s)};let o=setInterval(()=>{if(!(!r||t.writableEnded||t.destroyed))try{t.write(bP)}catch{}},e);o.unref?.();let i=()=>clearInterval(o);t.once("close",i),t.once("finish",i)}function $P(t){let e=new Map;for(let r of t)e.set(r.name,(e.get(r.name)??0)+1);return e}function Sv(t){let e=$P(t);return t.map(r=>`\u2022 ${r.name} \u2014 ${r.container_id}${r.rootTag??""}${r.degradedQueued!==void 0?` \u2014 \u26A0 keys pending restore (${r.degradedQueued} queued)`:""}${(e.get(r.name)??0)>1?" \u2014 \u26A0 DUPLICATE NAME: sends to this name abort; address by container id, repair with rename_contact":""}${r.renamedFrom!==void 0?` \u2014 \u26A0 renamed on import (two contacts were named "${r.renamedFrom}"; do NOT assume the one keeping the bare name is the live one \u2014 verify by container id, settle with rename_contact)`:""}`)}function xP(t){let{selfVersion:e,daemonVersion:r}=t;return!r||r===e?null:`ours: version mismatch \u2014 this plugin/connector is v${e}, the running daemon is v${r}. Everything still works; for the best experience run matching versions. The daemon is a shared singleton and is never restarted automatically, so when no other session is mid-task run \`ours-mcp stop\` (the next session starts the daemon at the new version) \u2014 or update the lagging side to match. No action is required; this is advisory.`}var fi="0.16.1",Lt=dv(),ze=Lt.stateDir,Sa=Lt.brokerUrl,Fv=process.env.OURS_TRANSPORT??"http",kp=Lt.port,Tv=Lt.gcIntervalMs,Op=Lt.apiVisibility,DP=Number(process.env.OURS_TEST_STARTUP_HEARTBEAT_MS||"")||void 0,Xt=Fv==="http"?xv(ze,{heartbeatMs:DP}):null,$=(...t)=>process.stderr.write(`ours: ${t.join(" ")}
|
|
60
60
|
`);function qP(){if(Op==="open")return null;if(Op==="shared"){let t=pv(Lt);if(!t)throw new Error(`apiVisibility=shared requires an operator-supplied token so it can be distributed to cross-user agents \u2014 set OURS_API_TOKEN or "apiToken" in config (${vp(Lt)} is not used for shared mode). Use apiVisibility=owner for a same-user-only auto-token, or =open to disable auth.`);return t}return fv(Lt,{generate:!0}).token}var zv=qP();function VP(t){let e=t.headers["x-ours-api-token"];if(typeof e=="string"&&e)return e;let r=t.headers.authorization;if(typeof r=="string"){let n=/^Bearer\s+(.+)$/i.exec(r.trim());if(n)return n[1]}}function LP(t){if(zv===null)return!0;let e=VP(t);if(!e)return!1;let r=Buffer.from(e),n=Buffer.from(zv);return r.length===n.length&&zP(r,n)}function li(t,e){return LP(t)?!0:(e.writeHead(401,{"Content-Type":"application/json"}),e.end(JSON.stringify({error:"unauthorized"})),!1)}var UP=/^[A-Za-z0-9 _.@-]{1,64}$/,ka="contact-book";function mi(t){return UP.test(t)?t==="."||t===".."||t.includes("/")||t.includes("\\")?"invalid name":t===ka?`"${ka}" is reserved for the local contact book`:t==="root.json"||t==="bindings.json"?`"${t}" is reserved for daemon bookkeeping`:null:"name must be 1-64 chars of letters, digits, space, _ . @ or -"}function FP(){let t=kP(TP(import.meta.url)),e=process.env.OURS_UNIT_DIR,r=process.env.OURS_ADVERTISE_MIGRATE==="0",n=i=>r?[`${i}-nocap`]:[i],o=e?n(SP(e)):[Re(t,"mufl_code"),Re(t,"..","mufl_code")].flatMap(n);for(let i of o){if(!R.existsSync(i))continue;let s=R.readdirSync(i).find(a=>a.endsWith(".muflo"));if(s){let a=s.slice(0,-6),c=new Uint8Array(R.readFileSync(Re(i,s)));return{dir:i,hash:a,contents:c}}}throw new Error(`no compiled .muflo packet found (looked in: ${o.join(", ")})`+(r?' \u2014 OURS_ADVERTISE_MIGRATE=0 requires a "<dir>-nocap" packet variant (compiled with $advertise = [core.e2e] only); build it or unset the env.':""))}var hi,on,D=new Map,bt=null,Np=null,Pe=new Map,Ia=new Set,qe=new Map,yi=new Set;function Pt(t){if(!Number.isInteger(t)||t<=0)return!1;try{return process.kill(t,0),!0}catch(e){return e.code==="EPERM"}}function Ra(t){for(let e of Pe.values())if(e.token===t)return e}var Ev=()=>Re(ze,"bindings.json");function bi(){try{R.mkdirSync(ze,{recursive:!0});let t=`${Ev()}.tmp`;R.writeFileSync(t,JSON.stringify({pid:process.pid,bound:[...Pe.keys()],holders:[...Pe.values()].map(e=>({identity:e.identity,pid:e.pid}))})),R.renameSync(t,Ev())}catch(t){$("failed to persist bindings snapshot:",String(t))}}var Bv=t=>Re(ze,t),wi=t=>Re(t,"identity.key"),sn=t=>Re(t,"state_data.bin"),Up=t=>Re(t,"notifications.log"),Ap=t=>Re(t,"unread.json"),Hv=t=>Re(t.dir,"files"),Gv=t=>Re(t,"temp.json"),Yn=t=>qv("sha256").update(t).digest("hex");function Jv(t,e){R.writeFileSync(Gv(t),JSON.stringify({v:1,owner:{token_sha256:e.owner.tokenHash,pid:e.owner.pid},created_at:e.createdAt}),{mode:384})}function Kv(t){try{let e=JSON.parse(R.readFileSync(Gv(t),"utf8"));return e.v!==1||typeof e.owner?.token_sha256!="string"||typeof e.owner?.pid!="number"?null:{owner:{tokenHash:e.owner.token_sha256,pid:e.owner.pid},createdAt:typeof e.created_at=="number"?e.created_at:0}}catch{return null}}function BP(){for(let t of Fp()){let e=Re(ze,t);try{R.chmodSync(e,448)}catch(r){$(`[${t}] chmod 0700 failed:`,String(r))}for(let r of[sn(e),wi(e)])if(R.existsSync(r))try{R.chmodSync(r,384)}catch(n){$(`[${t}] chmod 0600 ${r} failed:`,String(n))}}}var HP=t=>/^[A-Za-z0-9]+$/.test(t)&&t.length>0&&t.length<=128,GP=t=>/^[A-Fa-f0-9]{64}$/.test(t),Rp=32;function Wv(t,e){if(!HP(e))return null;let r=Hv(t),n;try{n=R.readdirSync(r)}catch{return null}let o=`${e}-`,i=n.find(s=>s.startsWith(o));return i?Re(r,i):null}function Fp(){return R.existsSync(ze)?R.readdirSync(ze,{withFileTypes:!0}).filter(t=>t.isDirectory()&&R.existsSync(wi(Re(ze,t.name)))).map(t=>t.name):[]}var _i=()=>Re(ze,ka),Iv=()=>Re(_i(),"registrar.key"),Cp=()=>Re(_i(),"book.json");function Pa(){try{let t=JSON.parse(R.readFileSync(Cp(),"utf8"));return t&&typeof t.entries=="object"?t.entries:{}}catch{return{}}}function Yv(t){R.mkdirSync(_i(),{recursive:!0});let e=`${Cp()}.tmp`;R.writeFileSync(e,JSON.stringify({v:1,entries:t},null,2),{mode:384}),R.renameSync(e,Cp())}function eo(t){return Ve(e=>Buffer.from(Se(t,"::actor::export_address_document",e).GetBinary()))}function Qv(t){return Ve(e=>Buffer.from(Se(t,"::actor::export_signing_secret",e).Serialize()).toString("hex"))}async function Xv(t){if(!bt)throw new Error("registrar is not available");let e=eo(t),r=await F(async o=>{let i=await Z(bt,"::actor::sign_book_entry",{name:t.name,ad:bt.pw.packet.NewBinaryFromBuffer(e).Attach(o)},o);return Buffer.from(i.Reduce("sig").GetBinary()).toString("base64url")}),n=Pa();n[t.name]={v:1,name:t.name,container_id:t.cid,address_document:e.toString("base64url"),published_at:new Date().toISOString(),registrar_sig:r},Yv(n),$(`[${t.name}] published to the local contact book`)}function eb(t){let e=Pa(),r=Object.entries(e).find(([,n])=>n.container_id===t.cid);r&&(delete e[r[0]],Yv(e),$(`[${t.name}] removed from the local contact book (entry "${r[0]}")`))}async function tb(t){if(!Np)throw new Error("registrar is not available");await F(async e=>{await Z(t,"::actor::pin_registrar",{registrar_ad:t.pw.packet.NewBinaryFromBuffer(Np).Attach(e)},e)})}var Ta=()=>Re(ze,"root.json"),se=null;function JP(){try{let t=JSON.parse(R.readFileSync(Ta(),"utf8"));return typeof t.name=="string"?t.name:null}catch{return null}}function KP(t){R.mkdirSync(ze,{recursive:!0});let e=`${Ta()}.tmp`;R.writeFileSync(e,JSON.stringify({v:1,name:t})),R.renameSync(e,Ta())}function rb(){R.rmSync(Ta(),{force:!0})}function vt(t){return Ve(e=>{let r=Se(t,"::actor::describe_identity",e);return{bio:r.Reduce("bio").Visualize(),persona:r.Reduce("persona").Visualize(),hasCert:r.Reduce("has_cert").GetBoolean(),roleId:r.Reduce("role_id").Visualize(),rootCid:r.Reduce("root_cid").Visualize(),rootName:r.Reduce("root_name").Visualize(),monitoringEnabled:r.Reduce("monitoring_enabled").GetBoolean()}})}async function Qn(t,e){await F(async r=>{let n=eo(e),o=await Z(t,"::actor::sign_delegation",{role_ad:t.pw.packet.NewBinaryFromBuffer(n).Attach(r),role_id:e.name},r),i=Buffer.from(o.Reduce("cert").GetBinary()),s=await Z(t,"::actor::export_root_profile",{},r),a=Buffer.from(s.Reduce("profile").GetBinary()),c=eo(t),u=Buffer.from((await Z(e,"::actor::export_v1_address_document",{},r)).Reduce("ad").GetBinary()),l=await Z(t,"::actor::sign_delegation",{role_ad:t.pw.packet.NewBinaryFromBuffer(u).Attach(r),role_id:e.name},r),d=Buffer.from(l.Reduce("cert").GetBinary());await Z(e,"::actor::set_delegation",{cert:e.pw.packet.NewBinaryFromBuffer(i).Attach(r),root_ad:e.pw.packet.NewBinaryFromBuffer(c).Attach(r),root_profile:e.pw.packet.NewBinaryFromBuffer(a).Attach(r),cert_v1:e.pw.packet.NewBinaryFromBuffer(d).Attach(r)},r)}),$(`[${e.name}] delegated as a role under root "${t.name}"`)}async function Pv(t){se=t.name,KP(t.name);let e=[],r=[];for(let n of D.values())if(n.name!==t.name&&!n.temp)try{await Qn(t,n),e.push(n.name)}catch(o){$(`failed to adopt "${n.name}" as a role under new root "${t.name}":`,String(o)),r.push(n.name)}return $(`[${t.name}] established as the host root${e.length?` (adopted ${e.length} role(s))`:""}`),{adopted:e,failed:r}}function WP(t,e){if(!se||!D.has(se))return null;let r=D.get(e)??[...D.values()].find(o=>o.cid===e);if(!r||r.name===t.name)return null;let n=o=>o.name===se||vt(o).roleId!=="";return n(t)&&n(r)?r:null}async function YP(t,e,r){let n=eo(e);return await F(async o=>{await Z(t,"::actor::connect_sibling",{name:e.name,target_ad:t.pw.packet.NewBinaryFromBuffer(n).Attach(o),text:r},o)}),an(t),`"${e.name}" was not a contact yet \u2014 connected as an intra-root sibling (delegation-cert auto-accept) and delivered the message.`}async function QP(t,e,r){if(!bt)throw new Error(`"${e}" is not a contact, and the local contact book is unavailable.`);let n=Pa(),o=n[e]??Object.values(n).find(c=>c.container_id===e);if(!o)throw new Error(`"${e}" is not a contact and has no local contact-book entry. Use generate_invite/add_contact for remote peers, or list_local_contact_book to see local ones.`);if(o.container_id===t.cid)throw new Error("that contact-book entry is this identity itself.");let i=Buffer.from(o.address_document,"base64url"),s=Buffer.from(o.registrar_sig,"base64url"),a=eo(t);return await F(async c=>{let u=await Z(bt,"::actor::mint_introduction",{joiner_ad:bt.pw.packet.NewBinaryFromBuffer(a).Attach(c),target_ad:bt.pw.packet.NewBinaryFromBuffer(i).Attach(c)},c),l=Buffer.from(u.Reduce("intro").GetBinary());await Z(t,"::actor::connect_local",{name:o.name,target_ad:t.pw.packet.NewBinaryFromBuffer(i).Attach(c),intro:t.pw.packet.NewBinaryFromBuffer(l).Attach(c),entry_sig:t.pw.packet.NewBinaryFromBuffer(s).Attach(c),text:r},c)}),an(t),`"${o.name}" was not a contact yet \u2014 connected via the local contact book and sent the message with the introduction. If "${o.name}" requires approval for local introductions, delivery completes once they approve.`}function $i(t){return Ve(e=>{let r=Se(t,"::a2a_messaging::get_monitoring_status",e),n=Se(t,"::actor::get_monitoring_status",e);return{enabled:r.Reduce("monitored").GetBoolean(),proxyCid:r.Reduce("proxy_cid").Visualize(),proxyPending:r.Reduce("proxy_pending").GetBoolean(),copiesQueued:parseInt(n.Reduce("copies_queued").Visualize(),10)||0,controlQueued:parseInt(n.Reduce("control_queued").Visualize(),10)||0}})}async function gi(t,e,r){await F(async n=>{await Z(t,"::a2a_control::send_control",{contact:e,payload:JSON.stringify(r)},n)})}function nb(t){try{return Ve(e=>{let r=Se(t,"::a2a_capabilities::get_manifest",e).Reduce("capabilities");return r.IsNil()?[]:[...r.GetKeys()].map(n=>typeof n=="string"?n:n.Visualize())})}catch{return[]}}function XP(t){let e="",r="",n="",o="",i=[];try{Ve(s=>{let a=Se(t,"::a2a_capabilities::get_manifest",s),c=l=>{let d=a.Reduce(l);return d.IsNil()?"":d.Visualize()};e=c("app_id"),r=c("name"),n=c("description"),o=c("version");let u=a.Reduce("capabilities");u.IsNil()||(i=[...u.GetKeys()].map(l=>typeof l=="string"?l:l.Visualize()))})}catch{}return{app_id:e,name:r,description:n,version:o,capabilities:i,monitoring_status:$i(t).proxyCid?"bound":"unbound"}}function eO(t){let e=[];for(let r of D.values()){if(r.name===t.name)continue;let n=vt(r);n.rootCid===t.cid&&e.push({name:r.name,cid:r.cid,role_id:n.roleId,bio:n.bio,monitoring:n.monitoringEnabled,capabilities:nb(r)})}return e}function Bp(t){try{on.remove_packet(t.cid)}catch(e){$(`remove_packet(${t.cid}) failed:`,String(e))}D.delete(t.name);try{eb(t)}catch(e){$(`failed to unpublish "${t.name}" from the contact book:`,String(e))}Pe.has(t.name)&&(Pe.delete(t.name),bi()),t.name===se&&(se=null,rb());try{R.rmSync(t.dir,{recursive:!0,force:!0}),Ot.delete(t.name)}catch(e){return`deleting ${t.dir} failed: ${String(e)}`}return null}function za(t,e){let r=t.temp;return r?(r.closing||(r.closing=(async()=>{$(`[${t.name}] closing temporary identity (${e})`);let n=[];try{n=Ve(a=>db(Se(t,"::a2a_messaging::list_contacts",a)))}catch(a){$(`[${t.name}] contact snapshot failed during close (continuing with local cleanup):`,String(a))}let o=0,i=0;yi.add(t.name);try{for(let a of n)try{await F(async u=>{let d=(await Z(t,"::a2a_messaging::remove_contact",{contact:a.container_id},u)).Reduce("notified");return d.IsNil()?!1:d.GetBoolean()})?o++:i++}catch(c){i++,$(`[${t.name}] remove-me to ${a.container_id} failed (continuing):`,String(c))}}finally{yi.delete(t.name)}let s=Bp(t);return $(s?`[${t.name}] temporary identity close: LOCAL DELETE FAILED \u2014 ${s}`:`[${t.name}] temporary identity closed: ${n.length} contact(s), ${o} remove-me notice(s) queued, ${i} not sent (delivery unverified by design)`),{attempted:n.length,notified:o,failed:i,deleteError:s}})()),r.closing):Promise.reject(new Error(`identity "${t.name}" is not temporary`))}function ob(){for(let t of[...D.values()]){let e=t.temp;if(!e||e.closing||Pt(e.owner.pid))continue;let r=Pe.get(t.name);r&&Pt(r.pid)||za(t,`stale lease \u2014 owner pid ${e.owner.pid} is dead`).catch(n=>$(`[${t.name}] stale-temp reclaim failed:`,String(n)))}}function tO(){if(R.existsSync(ze))for(let t of R.readdirSync(ze,{withFileTypes:!0})){if(!t.isDirectory()||D.has(t.name))continue;let e=Re(ze,t.name),r=Kv(e);if(!(!r||Pt(r.owner.pid)))try{R.rmSync(e,{recursive:!0,force:!0}),Ot.delete(t.name),$(`[${t.name}] removed orphaned temporary-identity dir (owner pid ${r.owner.pid} dead, no live packet)`)}catch(n){$(`[${t.name}] failed to remove orphaned temporary-identity dir:`,String(n))}}}var Hp=!0,ib=Hp?2:1,rO=6e5,jp=new Map,Mp=(t,e)=>`${t}:${e}`;function sb(t,e,r){e&&jp.set(Mp(t,e),{response:r,at:Date.now()})}function nO(t,e){if(!e)return;let r=jp.get(Mp(t,e));if(r){if(Date.now()-r.at>rO){jp.delete(Mp(t,e));return}return r.response}}async function oO(t,e,r){let n=vi(r);if(!n||typeof n!="object")return;let o=n,i=o.result;if(i&&typeof i=="object"&&i.pending===!0)return;let s=String(o.req_id??"");s&&(await gi(t,e,o),sb(e,s,o))}async function iO(t,e,r,n,o,i){let s;try{let d=JSON.parse(o);if(!d||typeof d!="object")throw new Error("not an object");s=d}catch{$(`[${t.name}] dropping unparseable control payload from ${n}`);return}if(s.v===1){s.t==="get_manifest"?await gi(t,r,{v:1,t:"res",id:s.id??null,ok:!0,manifest:{...XP(t),protocol_version:ib}}):await gi(t,r,{v:1,t:"res",id:s.id??null,error:{code:"protocol_upgraded",message:"This host now speaks the ours control-envelope protocol (v2). Refresh / cache-bust the control plane."}});return}let a=String(s.req_id??""),c=nO(r,a);if(c){await gi(t,r,c);return}let u=s.args&&typeof s.args=="object"?s.args:{},l={cap:String(s.cap??""),verb:String(s.verb??""),args:u,req_id:a};await F(async d=>{let f;try{f=await Z(t,"::actor::process_control_envelope",{sender_id:e,sender_name:n,envelope:l,date:i},d)}catch(h){$(`[${t.name}] dispatch of "${l.cap}.${l.verb}" from ${n} failed:`,String(h));return}if(await oO(t,r,f),l.cap==="core.monitoring"&&l.verb==="bind")try{let h=vi(f);h&&(h.ok===!0||h.$ok===!0)&&dO(t,r)}catch{}})}async function sO(t){for(;;)if(await F(async r=>{let o=(await Z(t,"::actor::get_control_requests",{},r)).Reduce("requests"),i=o.GetKeys();if(i.length===0)return!0;for(let s=0;s<i.length;s++){let a=o.Reduce(s),c=a.Reduce("sender_cid");await iO(t,c,c.Visualize(),a.Reduce("sender_name").Visualize(),a.Reduce("payload").Visualize(),a.Reduce("date"))}return!1}))return}function aO(){return String(Vv(0,1e6)).padStart(6,"0")}var cn=new Map;function Oa(t){return[...D.values()].find(e=>e.cid===t)}async function xi(t,e){let r=e.Reduce("target").Visualize(),n=vi(e.Reduce("response"));if(!n||typeof n!="object")return;await gi(t,r,n);let o=String(n.req_id??"");o&&sb(r,o,n)}async function cO(t,e,r,n){try{if(D.has(e)){$(`[${t.name}] host_provision_child("${e}") rejected: name exists (settles via sweep timeout)`);return}let o=await $a(e);await F(async i=>{r&&await Z(o,"::a2a_messaging::set_my_bio",{bio:r},i),await Qn(t,o);let s=vt(o).roleId,a=Se(o,"::actor::export_address_document_native",i),c=await Z(t,"::a2a_cluster::register_provisioned_child",{pending_handle:n,role_id:s,child_ad:a},i);await xi(t,c)})}catch(o){$(`[${t.name}] host_provision_child("${e}") failed (settles via sweep timeout):`,String(o))}}async function uO(t,e,r){try{let n=Oa(e.Visualize());if(n){let o=Bp(n);o&&$(`[${t.name}] host_destroy_child teardown warning:`,o)}cn.delete(e.Visualize()),await F(async o=>{let i=await Z(t,"::a2a_cluster::confirm_child_destroyed",{pending_handle:r,cid:e},o);await xi(t,i)})}catch(n){$(`[${t.name}] host_destroy_child failed (settles via sweep timeout):`,String(n))}}async function lO(t,e,r){try{let n=Oa(e.Visualize());if(!n){$(`[${t.name}] host_mint_child_invite: unknown child ${e.Visualize()} (settles via sweep timeout)`);return}await F(async o=>{let i=await Z(n,"::a2a_messaging::generate_invite",{},o),s=t.pw.packet.NewBinaryFromBuffer(Buffer.from(i.Reduce("invite").GetBinary())).Attach(o),a=await Z(t,"::a2a_cluster::register_child_invite",{pending_handle:r,invite:s},o);await xi(t,a)})}catch(n){$(`[${t.name}] host_mint_child_invite failed (settles via sweep timeout):`,String(n))}}async function Zp(t,e,r,n){await F(async o=>{if(e){n&&await Z(t,"::a2a_messaging::host_register_monitoring_cp",{cp_ad:n},o);let i=aO();await Z(t,"::a2a_messaging::set_proxy_pending",{code:i,proxy:r},o),await Z(t,"::a2a_messaging::verify_proxy_code",{code:i,sender:r},o),cn.set(t.cid,r??"")}else await Z(t,"::a2a_messaging::host_clear_child_monitoring",{},o),cn.delete(t.cid)})}async function Ov(t,e,r,n,o,i){try{let s=Oa(e.Visualize());if(!s){$(`[${t.name}] host_set_child_monitoring: unknown child ${e.Visualize()} (settles via sweep timeout)`);return}r?await Zp(s,!0,o?.Visualize(),i):await Zp(s,!1),await F(async a=>{let c=await Z(t,"::a2a_cluster::confirm_child_monitoring",{pending_handle:n,cid:e,enabled:r},a);await xi(t,c)})}catch(s){$(`[${t.name}] host_set_child_monitoring failed (settles via sweep timeout):`,String(s))}}async function dO(t,e){for(let[r,n]of[...cn.entries()]){if(n===e)continue;let o=Oa(r);if(!o){cn.delete(r);continue}await Zp(o,!1).catch(i=>$(`[${t.name}] CP-rebind clear of child ${r} failed:`,String(i)))}}function pO(t,e){let r=[];for(let n of D.values()){if(n.name===t.name)continue;let o=vt(n);if(o.rootCid!==t.cid)continue;let i=Se(n,"::actor::export_address_document_native",e);r.push({cid:i.Reduce("identity").Reduce("container_id"),role_id:o.roleId,name:n.name,bio:o.bio,persona:o.persona,caps:nb(n),child_ad:i})}return r}var Tp=new Set;async function ab(t){if(!Tp.has(t.name)){Tp.add(t.name);try{await F(async e=>{await Z(t,"::a2a_cluster::reconcile",{pending_handle:"",children:pO(t,e)},e);let n=(await Z(t,"::a2a_cluster::sweep_and_settle",{},e)).Reduce("settled"),o=n.GetKeys();for(let i=0;i<o.length;i++)await xi(t,n.Reduce(i))})}catch(e){$(`[${t.name}] cluster sweep failed:`,String(e))}finally{Tp.delete(t.name)}}}var fO=6e4;function mO(){setInterval(()=>{if(Hp)for(let t of D.values())vt(t).roleId===""&&ab(t)},fO).unref()}function hO(){for(let t of D.values())if(vt(t).roleId!=="")try{let e=$i(t).proxyCid;e&&cn.set(t.cid,e)}catch(e){cn.set(t.cid,""),$(`[${t.name}] monitoredChildren rebuild read failed (added clear-on-repoint):`,String(e))}}var zp=new Set;async function Gp(t){if(!zp.has(t.name)){zp.add(t.name);try{await sO(t)}catch(e){$(`[${t.name}] control dispatch failed:`,String(e))}finally{zp.delete(t.name)}if(D.has(t.name)&&$i(t).controlQueued>0)return Gp(t)}}async function gO(){R.mkdirSync(_i(),{recursive:!0});let t;try{t=R.readFileSync(Iv(),"utf8").trim()}catch{}let e=Vp(24).toString("hex");bt=await Kp(ka,e,_i(),!1,t),t||R.writeFileSync(Iv(),Qv(bt),{mode:384}),Np=eo(bt),$(`contact-book registrar ready (${bt.cid})`)}function yO(t){try{return R.existsSync(sn(t))&&R.statSync(sn(t)).size>0}catch{return!1}}function Dp(t){let e=Ve(i=>Buffer.from(Se(t,"::actor::export_state",i).Serialize()));R.mkdirSync(t.dir,{recursive:!0,mode:448});let r=sn(t.dir),n=`${r}.tmp`,o;try{o=R.openSync(n,"w",384),R.fchmodSync(o,384),R.writeFileSync(o,e),R.fsyncSync(o),R.closeSync(o),o=void 0,R.renameSync(n,r),R.chmodSync(r,384);try{R.chmodSync(wi(t.dir),384)}catch{}let i=R.openSync(t.dir,"r");try{R.fsyncSync(i)}finally{R.closeSync(i)}}catch(i){if(o!==void 0)try{R.closeSync(o)}catch{}try{R.rmSync(n,{force:!0})}catch{}throw i}}function Jp(t){try{Dp(t),t.persistFailed&&(t.persistFailed=!1,$(`[${t.name}] persist recovered \u2014 quarantine lifted`),ce(t,{event:"persist_recovered"}))}catch(e){t.persistFailed=!0,$(`[${t.name}] PERSIST FAILED \u2014 identity quarantined (fail-closed), outbound of this txn withheld:`,String(e));try{ce(t,{event:"persist_failed",error:String(e).slice(0,300)})}catch{}throw process.nextTick(()=>De(t.name,`[${t.name}] PERSIST FAILED \u2014 messaging quarantined until the state file is writable again`)),e}}function _O(t){let e=[],r=t.Reduce("degraded");if(r.IsNil())return e;for(let n=0;;n++){let o=r.Reduce(n);if(o.IsNil())break;e.push({cid:o.Reduce("container_id").Visualize(),name:o.Reduce("name").Visualize(),attempts:Number(o.Reduce("attempts").Visualize()),queued:Number(o.Reduce("queued").Visualize())})}return e}function vO(t){let e=[],r=t.Reduce("queues");if(r.IsNil())return e;for(let n=0;;n++){let o=r.Reduce(n);if(o.IsNil())break;e.push({cid:o.Reduce("container_id").Visualize(),queued:Number(o.Reduce("queued").Visualize()),degraded:o.Reduce("degraded").GetBoolean()})}return e}async function cb(t,e){try{let r=await F(async n=>{let o=await Z(t,"::a2a_messaging::flush_deferred",{contact:e},n);return Number(o.Reduce("flushed").Visualize())});r>0&&$(`[${t.name}] flushed ${r} deferred message(s) to ${e.slice(0,12)}\u2026`)}catch(r){$(`[${t.name}] deferred flush to ${e.slice(0,12)}\u2026 failed:`,String(r))}}async function ub(t){try{let e=await F(async n=>{let o=await Z(t,"::a2a_messaging::restore_degraded_contacts",{},n);return Number(o.Reduce("requested").Visualize())});e>0&&$(`[${t.name}] contact restore requested for ${e} degraded contact(s)`);let r=Ve(n=>vO(Se(t,"::a2a_messaging::list_deferred_queues",n)));for(let n of r)n.degraded||await cb(t,n.cid)}catch(e){$(`[${t.name}] contact-restore sweep failed:`,String(e))}}async function Ea(t){try{let e=await F(async r=>{let n=await Z(t,"::a2a_messaging::reconcile_advertise",{},r),o=i=>n.Reduce(i).IsNil()?0:Number(n.Reduce(i).Visualize());return{changed:/true/i.test(n.Reduce("changed").Visualize()),capabilityAdvertised:o("capability_advertised"),legacyReadvertised:o("legacy_readvertised")}});(e.capabilityAdvertised>0||e.legacyReadvertised>0)&&$(`[${t.name}] capability reconcile: changed=${e.changed} advertised=${e.capabilityAdvertised} legacy_migration_bootstrap=${e.legacyReadvertised}`)}catch(e){$(`[${t.name}] capability reconcile sweep failed:`,String(e))}}var Ep=new Set;function an(t){if(!Ep.has(t.name)){Ep.add(t.name);for(let e of[2e3,15e3])setTimeout(()=>{e===15e3&&Ep.delete(t.name);let r=D.get(t.name);r&&Ea(r)},e)}}async function qp(t){try{let e=await F(async r=>{let n=await Z(t,"::a2a_messaging::readvertise_e2e_recovery",{},r);return Number(n.Reduce("readvertised").Visualize())});e>0&&$(`[${t.name}] re-advertised fresh AD to ${e} e2e contact(s) (session recovery)`)}catch(e){$(`[${t.name}] e2e recovery re-advertise failed:`,String(e))}try{await F(async e=>{await Z(t,"::a2a_messaging::sweep_e2e_migrations",{},e)})}catch(e){$(`[${t.name}] e2e migration sweep failed:`,String(e))}try{let e=await F(async r=>{let n=await Z(t,"::a2a_messaging::redrive_unacked_sweep",{},r),o=i=>n.Reduce(i).IsNil()?0:Number(n.Reduce(i).Visualize());return{redriven:o("redriven_contacts"),purged:o("purged_contacts"),deferred:o("deferred_contacts")}});(e.redriven>0||e.purged>0||e.deferred>0)&&$(`[${t.name}] unacked sweep: redriven=${e.redriven} ttl_purged=${e.purged} deferred=${e.deferred} contact(s)`)}catch(e){$(`[${t.name}] unacked redrive sweep failed:`,String(e))}}var wa=new Map;function bO(t){let e=wa.get(t);if(!(!e||e.size===0))for(let r of[...e])try{r()}catch{}}function wO(t,e){return new Promise(r=>{let n=wa.get(t);n||(n=new Set,wa.set(t,n));let o=!1,i=()=>{o||(o=!0,n.delete(s),n.size===0&&wa.delete(t),clearTimeout(a),r())},s=i,a=setTimeout(i,e);n.add(s)})}function ce(t,e){try{R.mkdirSync(t.dir,{recursive:!0,mode:448}),R.appendFileSync(Up(t.dir),JSON.stringify(e)+`
|
|
61
61
|
`)}catch(r){$(`[${t.name}] failed to append notifications.log:`,String(r))}bO(t.name)}function $O(t){let e=Up(t.dir),r="";try{r=R.readFileSync(e,"utf8")}catch{return new Set}let n=[];for(let o of r.split(`
|
|
62
62
|
`))if(o.trim())try{n.push(JSON.parse(o))}catch{}return yv(n)}function di(t,e){let r=t.Reduce(e);return r.IsNil()?"":Buffer.from(r.GetBinary()).toString("hex")}var xO=Number(process.env.OURS_NOTIFY_LONGPOLL_MS)>0?Number(process.env.OURS_NOTIFY_LONGPOLL_MS):25e3,SO=250;function Ip(t){try{return R.statSync(t).size}catch{return 0}}function kO(t,e,r){if(r<=e)return{events:[],cursor:e};let n=Buffer.alloc(r-e),o=0;try{let c=R.openSync(t,"r");try{o=R.readSync(c,n,0,n.length,e)}finally{R.closeSync(c)}}catch{return{events:[],cursor:e}}let i=n.subarray(0,o),s=i.lastIndexOf(10);if(s===-1)return{events:[],cursor:e};let a=[];for(let c of i.subarray(0,s+1).toString("utf8").split(`
|
package/dist/mufl_code/8ED6356B41CC689C75DA3302AD7856058131661A6ABBAC961E71BA838D8C97A3.muflo
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ours.network/mcp",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "MCP server daemon for ours — one native ADAPT wrapper hosting N self-sovereign identities, exposing secure agent-to-agent messaging tools over HTTP (Streamable HTTP). Run `ours-mcp start`.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "FSL-1.1-Apache-2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"serve": "node dist/cli.js serve",
|
|
49
49
|
"prepublishOnly": "node build.mjs",
|
|
50
50
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
51
|
-
"test": "bash ../../scripts/test-receipts-mufl.sh && bash ../../scripts/test-notifications-mufl.sh && bash ../../scripts/test-contact-uniqueness-mufl.sh && bash ../../scripts/test-temp-remove-me-mufl.sh && node test/contact-lines.test.mjs && node test/loopback-bind.test.mjs && node test/lease-binding.test.mjs && node test/proxy-request-failback.test.mjs && node test/session-restore.test.mjs && node test/daemon-restart-resume.test.mjs && node test/sse-keepalive.test.mjs && node test/version-advisory.test.mjs && node test/files-helpers.test.mjs && node test/inbox-encryption.test.mjs && node test/validate-name.test.mjs && node test/port-visibility.test.mjs && node test/notify-http-api.test.mjs && node test/file-save-stream.test.mjs && node test/unread-http-api.test.mjs && node test/create-root-cli.test.mjs && node test/session-reaper.test.mjs && node test/mig1867-verify.test.mjs && node test/single-root-policy.test.mjs && node test/pre137-blob-import-regression.test.mjs && node test/transcribe-detect.test.mjs && node test/transcribe-stt.test.mjs && node test/voice-status-cli.test.mjs && node test/process-state.test.mjs && node test/voice-setup-config.test.mjs && node test/voice-setup-cli.test.mjs && node test/startup-progress.test.mjs && node test/startup-cli.test.mjs && node test/contact-uniqueness-daemon.test.mjs && node test/contact-uniqueness-import.test.mjs && node test/contact-uniqueness-book.test.mjs && node test/invite-modes.test.mjs && node test/temp-identities.test.mjs"
|
|
51
|
+
"test": "bash ../../scripts/test-receipts-mufl.sh && bash ../../scripts/test-notifications-mufl.sh && bash ../../scripts/test-contact-uniqueness-mufl.sh && bash ../../scripts/test-temp-remove-me-mufl.sh && node test/contact-lines.test.mjs && node test/loopback-bind.test.mjs && node test/lease-binding.test.mjs && node test/proxy-request-failback.test.mjs && node test/proxy-exit-on-stdin-eof.test.mjs && node test/proxy-dead-stderr.test.mjs && node test/session-restore.test.mjs && node test/daemon-restart-resume.test.mjs && node test/sse-keepalive.test.mjs && node test/version-advisory.test.mjs && node test/files-helpers.test.mjs && node test/inbox-encryption.test.mjs && node test/validate-name.test.mjs && node test/port-visibility.test.mjs && node test/notify-http-api.test.mjs && node test/file-save-stream.test.mjs && node test/unread-http-api.test.mjs && node test/create-root-cli.test.mjs && node test/session-reaper.test.mjs && node test/mig1867-verify.test.mjs && node test/single-root-policy.test.mjs && node test/pre137-blob-import-regression.test.mjs && node test/transcribe-detect.test.mjs && node test/transcribe-stt.test.mjs && node test/voice-status-cli.test.mjs && node test/process-state.test.mjs && node test/voice-setup-config.test.mjs && node test/voice-setup-cli.test.mjs && node test/startup-progress.test.mjs && node test/startup-cli.test.mjs && node test/contact-uniqueness-daemon.test.mjs && node test/contact-uniqueness-import.test.mjs && node test/contact-uniqueness-book.test.mjs && node test/invite-modes.test.mjs && node test/temp-identities.test.mjs"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@adapt-toolkit/sdk": "0.10.12",
|