@ibgib/space-gib 0.0.14 → 0.0.16
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/client/bootstrap.mjs +2 -2
- package/dist/client/bootstrap.mjs.map +1 -1
- package/dist/client/chunk-6BYQ5JSY.mjs +19 -0
- package/dist/client/chunk-6BYQ5JSY.mjs.map +7 -0
- package/dist/client/chunk-QPR6ILY2.mjs +2507 -0
- package/dist/client/{chunk-SXMTWH6R.mjs.map → chunk-QPR6ILY2.mjs.map} +4 -4
- package/dist/client/index.mjs +14 -13
- package/dist/client/index.mjs.map +4 -4
- package/dist/client/script.mjs +1 -1
- package/dist/server/server.mjs +2905 -1917
- package/dist/server/server.mjs.map +4 -4
- package/package.json +6 -6
- package/src/client/AUTO-GENERATED-version.mts +1 -1
- package/dist/client/chunk-AOGR25NW.mjs +0 -19
- package/dist/client/chunk-AOGR25NW.mjs.map +0 -7
- package/dist/client/chunk-SXMTWH6R.mjs +0 -2357
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as kr,b as Fr,c as ca,d as Ve,e as jr,f as qr,g as It,h as Hr,i as Xr,j as Ne,k as Ye,l as Wr,m as Vr,n as Jr,o as Yr,p as Qr}from"./chunk-
|
|
1
|
+
import{a as kr,b as Fr,c as ca,d as Ve,e as jr,f as qr,g as It,h as Hr,i as Xr,j as Ne,k as Ye,l as Wr,m as Vr,n as Jr,o as Yr,p as Qr}from"./chunk-QPR6ILY2.mjs";import{$ as Za,$b as Ur,A as J,Aa as pr,B as q,Ba as Te,C as H,Ca as Zt,Da as ur,Ea as mr,F as X,Fa as gr,Fb as Dr,G as ot,Ga as wr,Gb as W,Ha as Er,Ia as ft,Ib as oa,J as le,Ja as bt,Jb as mt,K as Wt,Ka as yr,Kb as Xe,L as Re,La as $r,Lb as Or,M as Me,Ma as je,Mb as ia,N as ve,Na as ze,O as Ue,Oa as ea,P as it,Pa as ht,Q as Ie,Qa as Ir,R as Ja,Ra as _r,Rb as oe,S as Ya,Sa as Sr,T as Vt,Ta as Ar,Tb as sa,U as Be,Ua as pt,Ub as Rr,V as _e,Vb as gt,W as Qa,Wa as qe,Wb as wt,X as Ka,Xa as He,Xb as Mr,Ya as Tr,Yb as vr,Z as Se,Za as Gr,_ as ke,_a as ta,a as b,aa as Ae,ab as Pr,b as kt,ba as er,bb as aa,bc as Et,ca as tr,cb as Nr,d as O,da as Jt,db as fe,e as re,ea as Yt,ec as na,f as Ft,fa as ar,fb as Cr,g as R,ga as rr,gb as xr,gc as We,h as $,ha as or,i as ne,ia as ir,ib as ut,j as m,ja as st,k as Va,ka as nt,l as rt,la as de,m as jt,ma as sr,mb as G,n as zt,na as nr,nb as ra,nc as Br,o as qt,oa as cr,pa as lr,pc as yt,q as ce,qa as ct,qc as la,r as ye,ra as Qt,rc as Pe,s as Ht,sa as dr,sc as $t,t as $e,ta as fr,tb as Ge,tc as zr,ua as br,ub as Lr,va as lt,vc as Je,w as y,wa as Fe,x as C,xa as hr,y as Xt,ya as dt,za as Kt}from"./chunk-6BYQ5JSY.mjs";var Kr={src:["source","from","in","input"],dest:["destination","to","out","output"]};function Vo({paramName:c,noBare:e,argTypeName:a,description:t}){let r={name:`src-${c}`,argTypeName:a??"string",synonyms:[...Kr.src.map(o=>`${o}-${c}`)],description:t};return e||r.synonyms.push(c),r}b(Vo,"getParam_src");function Jo({paramName:c,argTypeName:e="string",description:a}){return{name:`dest-${c}`,argTypeName:e??"string",synonyms:[...Kr.dest.map(r=>`${r}-${c}`)],description:a}}b(Jo,"getParam_dest");var Zr={name:"bare",description:`special param that is used as the only param allowed that doesn't have a "double-dash-specifier=" form. one "bare" arg is allowed atow. if a bare arg is found, it will be mapped to this param info.`,synonyms:["bare-arg","bare-param","no-name","manco","arg-with-no-name","param-with-no-name"],argTypeName:"string"};var Vi=Vo({paramName:"path",description:"for referencing/ingesting file(s)/folder(s) in a fs"}),Ji=Jo({paramName:"path",description:"for indicating where to put generated file(s)/folder(s)"});var Y=!1;function _t({paramInfo:c,valueString:e}){let a=`[${_t.name}]`;try{switch(c.argTypeName){case"string":let t=e;return(t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'"))&&(t=t.slice(1),t=t.slice(0,t.length-1)),t;case"integer":if(e===void 0)throw new Error("integer arg value is undefined. integers must be a valid integer string (E: ce17acde3b863ec5e2fdcc594f0f1423)");let r=Number.parseInt(e);if(typeof r!="number")throw new Error(`arg value string (${e})did not parse to an integer. parse result: ${r} (E: 43cde93160458610ffb49fd16a02d123)`);return r;case"boolean":if(e===void 0||e===""){if(!c.isFlag)throw new Error("valueString is undefined or empty string but paramInfo.argTypeName === 'boolean' and paramInfo.isFlag is falsy. (E: 482e595c0ec7344b04def76c1441d623)");return!0}else{if(e===null)throw new Error("(UNEXPECTED) valueString === null? (E: 78f548b93026407968356d9c4f106223)");if(!["true","false"].includes(e))throw new Error(`invalid boolean valueString ("${e}"). must be either "true" or "false" (E: ba7a0d0804131acc2bd9ab37c0382523)`);return e==="true"}default:throw new Error("(UNEXPECTED) invalid paramInfo.argTypeName (E: c8b03ccb71394d22a29858b98753a123)")}}catch(t){throw console.error(`${a} ${m(t)}`),t}}b(_t,"getValueFromRawString");function St({argIdentifier:c,paramInfos:e,throwIfNotFound:a}){let t=`[${St.name}]`;try{let r=e.filter(o=>o.name===c||(o.synonyms??[]).includes(c));if(r.length===1)return O(r[0]);if(r.length>1)throw new Error(`(UNEXPECTED) multiple param infos found with argIdentifier. do you have overlapping arg names/synonyms? (${c} found in (${r.length} param infos)) (E: d599a6647c5ead6d9fbac4e4c96e6d23)`);if(a)throw new Error(`(UNEXPECTED) param info not found for argIdentifier (${c}) (E: 47e704068f2eb5a0551cf45d0e72c823)`);return}catch(r){throw console.error(`${t} ${m(r)}`),r}}b(St,"getParamInfo");function eo({rawArg:c}){let e=`[${eo.name}]`;try{Y&&console.log(`${e} starting... (I: 5d51b75b7a025e2e3fa498da7c08ac24)`);let a=b(o=>o.startsWith('"')&&o.endsWith('"')?"double":o.startsWith("'")&&o.endsWith("'")?"single":void 0,"fnGetQuoteType"),t=b(o=>a(o)?o.slice(0,o.length-1).slice(1):o,"fnStripQuotes"),r=a(c);if(r)return{prefix:void 0,identifier:void 0,isNameValuePair:!1,valueInfo:{rawValueString:c.concat(),resolvedValueString:t(c),singleQuoted:r==="single",doubleQuoted:r==="double"}};if(c.match(/^(--\w|-\w|:\w)/))if(c.includes("=")){let o=/^(--|-|:)([\w\-]+)=(['"]?.+['"]?)$/,i=c.match(o);if(!i)throw new Error(`invalid rawArg (${c}). expected an arg matching regexp ${o}. (E: 05ca56163e184faeb66456a0e9190b28)`);let[s,n,l,d]=i,f=a(d);return{prefix:n,identifier:l,isNameValuePair:!0,valueInfo:{rawValueString:d,resolvedValueString:f?t(d):d,singleQuoted:f==="single",doubleQuoted:f==="double"}}}else{let o=/^(--|-|:)([\w\-]+)$/,i=c.match(o);if(!i)throw new Error(`invalid rawArg (${c}). expected an arg matching regexp ${o}. at this point, it should have a prefix (e.g. "--"), and a single identifier (should be a flag since there is no equal sign). (E: 93305923465d9449bdce3f81373fae24)`);let[s,n,l]=i;return{prefix:n,identifier:l,isNameValuePair:!1,valueInfo:{rawValueString:void 0,resolvedValueString:"true",singleQuoted:!1,doubleQuoted:!1}}}else{if(c.includes("="))throw new Error(`invalid rawArg (${c}). isn't quoted, doesn't start with prefix, but it does have an equal sign? that's bad. (E: e8ad15211ce6fd56a4a214c2778c4724)`);return{prefix:void 0,identifier:void 0,isNameValuePair:!1,valueInfo:{rawValueString:c,resolvedValueString:c,doubleQuoted:!1,singleQuoted:!1}}}}catch(a){throw console.error(`${e} ${a.message}`),a}finally{Y&&console.log(`${e} complete.`)}}b(eo,"parseRawArg");function At({args:c,paramInfos:e,bareArgParamInfo:a=O(Zr),logalot:t}){let r=`[${At.name}]`;try{(Y||t)&&console.log(`${r} starting... (I: f389aaa490796dfd823bc7b9d4e58b23)`);let o=!1;return c.map((s,n)=>{let l,d,f,{prefix:h,identifier:u,isNameValuePair:g,valueInfo:E}=eo({rawArg:s});if(h){if((Y||t)&&console.log(`identifier: ${u} (I: 519ce129a1e34753a9070d3a205c9a8b)`),!u)throw new Error("(UNEXPECTED) prefix truthy but identifier falsy? (E: f33ab3a2b623acc0d1bc36685edfaf24)");if(l=u,!E)throw new Error("(UNEXPECTED) !valueInfo? (E: 05249a361a59008cd313d2dfa8f08b24)");if(g){Y&&console.log(`${r} identifier with equals: ${u}. (I: 5f8ae91d1ddd4a7f94c0f4fb7e688502)`);let w=St({argIdentifier:l,paramInfos:e,throwIfNotFound:!0});f={...w,value:_t({paramInfo:w,valueString:E.rawValueString}),identifier:l}}else{Y&&console.log(`${r} identifier without equals: ${u}`),l=u;let w=St({argIdentifier:l,paramInfos:e,throwIfNotFound:!0});f={...w,value:_t({paramInfo:w,valueString:void 0}),identifier:l,isFlag:!0}}}else if(n===0){if(!E)throw new Error("(UNEXPECTED) argIndex === 0 but valueInfo falsy? (E: 4642b42c855593b7ffdacb85f27dab24)");if(!E.rawValueString)throw new Error("(UNEXPECTED) !valueInfo.rawValueString? (E: 0b35f71eb8227cdd67ccfc32f2e45824)");if(E.singleQuoted)throw new Error("first arg is quoted? (single). a bare arg in first position must be a command/flag. (E: 28cce820417fd3b4f95ba6c7e94b4624)");if(E.doubleQuoted)throw new Error("first arg is quoted? (double). a bare arg in first position must be a command/flag. (E: 0b948c87081043fdb168f08ba05ebbce)");l=E.rawValueString,f={...St({argIdentifier:l,paramInfos:e,throwIfNotFound:!0}),value:!0,identifier:l,isFlag:!0}}else{if((Y||t)&&console.log("bare arg found. (I: d6f67074c7e44a63864948d4bf04bee8)"),!a)throw new Error(`bare arg found (one without prefix like "--" or ":") but there is no param info expected for bare args. You must provide which param info a bare arg maps to in this ${At.name} call. (E: 650dd3695d62f0f87dd0cbafbf068c23)`);if(o)throw new Error('You can have the first arg - a special arg like a command - be bare (without prefix like "--" or ":") and one additional non-positional arg be bare. But more than one non-positional bare arg found. Also remember if the arg has spaces then you have to enclose it with single or double quotes. (E: 74dea8f13f0c14e3b7a2f125c7faca23)');o=!0;let w=O(a);f={...w,isBare:!0,identifier:w.name,value:_t({paramInfo:w,valueString:s})}}return Y&&console.log(`${r} argInfo: ${$(f)}`),f})}catch(o){throw console.error(`${r} ${m(o)}`),o}finally{(Y||t)&&console.log(`${r} complete.`)}}b(At,"buildArgInfos");var z={undefined:"undefined",preparing:"preparing",started:"started",inserted:"inserted",updated:"updated",merged_dna:"merged_dna",merged_state:"merged_state",already_synced:"already_synced",completed:"completed"},Yo={...sr},ss={...Yo,sync:"sync"};var da={encrypt_gib:"encrypt-gib"},cs=Object.values(da);var Qo={characters:"characters",spell_out:"spell-out",cardinal:"cardinal",number:"number",ordinal:"ordinal",digits:"digits",fraction:"fraction",unit:"unit",date:"date",time:"time",telephone:"telephone",address:"address",interjection:"interjection",expletive:"expletive"};var be=class c{static{b(this,"Ssml")}static lc=`[${c.name}]`;static wrapSsmlSpeak(e,a=!0){return"<speak>"+e.reduce((r,o)=>a?r+"<p>"+o+"</p>":r+o,"")+"</speak>"}static unwrapSsmlSpeak(e){return e.replace(/\<speak\>/g,"").replace(/\<\/speak\>/g,"")}static p(e){return"<p>"+e+"</p>"}static s(e){return"<s>"+e+"</s>"}static stripSsml(e){return e.replace(/\<\/p\>[ ]*\<p\>/g,"<p>").replace(/\<p\>(?=[ ])/g,"<p>").replace(/\<\/p\>(?=[ ])/g,"</p>").replace(/\<[\/]*p\>/g,`
|
|
2
2
|
|
|
3
3
|
`).replace(/(<([^>]*)>)/ig,"").replace(/ +/g," ").replace(/\\n\\n\\n/g,`
|
|
4
4
|
|
|
@@ -54,7 +54,7 @@ ${Ti}`,parameters:{type:"object",properties:{...k,agentId:It,agentType:Hr},requi
|
|
|
54
54
|
|
|
55
55
|
${vi}`;function ko(c){let e=`[${ko.name}]`;try{Oe&&console.log(`${e} starting... (I: 39ce6d58e154b8463170463f20d44925)`),Oe&&console.log(`${e} tellUserViaCmd raw incoming opts: ${$(c)} (I: 2ff6e7fc49b12e335affa1cb3af11125)`);let a=F(),t={...c,cmd:"agent",cmdModifiers:["tellUser"],repromptWithResult:!1};return Oe&&console.log(`${e} tellUserViaCmd command: ${$(t)} (I: d7c86c41cf2578e1ccdd30f4dbc62625)`),new Promise((r,o)=>{a.enqueueCommand({command:t,resolve:r,reject:o})})}catch(a){throw console.error(`${e} ${m(a)}`),a}finally{Oe&&console.log(`${e} complete.`)}}b(ko,"tellUserViaCmd");async function Fo(c){let e=`[${Fo.name}]`;try{Oe&&console.log(`${e} starting... (I: badce195ed1817dd686c7098511e1f25)`),console.log(`${e} agent tell user opts: ${$(c)}`);let a=await W(),t=c.contextIbGibAddr;if(!t)throw new Error("contextIbGibAddr is falsy (was not provided by model if this was a function call request). This should be required in the gemini schema. (E: 2585778dc7f6fc74322f40745d7f4d25)");let r=ot({addr:t})??[];if(r.length>0){console.log(`${e} returning early because agent has provided a non-ibgib addr for contextAddr: ${t}. addrErrors: ${r}. opts: ${$(c)} (I: 66c39c5031723254de46c254b096dc25)`);return}if(J({gib:C({ibGibAddr:t}).gib})){console.log(`${e} agent has acked by calling this with a primitive context address. This will not propagate to the user's current context. opts: ${$(c)} (I: a0687328201af74ed9d9e24ad4a5b825)`);return}let o=await a.getLocalUserSpace({lock:!1});if(!o)throw new Error("(UNEXPECTED) couldn't get default local user space? (E: 2fdac9f814d620ce6341cfc10942f525)");let{newIbGib:i}=await ca({text:c.text,addlMetadataText:Jr({textSrc:Xr.AI,other:`${c.agentName}_${c.agentId}`}),saveInSpace:!0,space:o}),s,n=await a.getLatestAddr({addr:t,space:o});if(n){let l=await a.get({addrs:[n],space:o});if(l.errorMsg||(l.ibGibs??[]).length!==1)throw new Error(`couldn't get latest context ibgib (${n}) from super space (${o.ib}). errorMsg: ${l.errorMsg??"[unknown error]"} (E: 450727cc12e226f8b741dd7b0efbfe25)`);s=l.ibGibs.at(0)}if(!s)throw new Error(`(UNEXPECTED) couldn't get latest context ibgib? (${n}) (E: cb50a6cb984a60c139a4f16a26290d25)`);await na({timeline:s,metaspace:a,rel8nInfos:[{rel8nName:"comment",ibGibs:[i]}],space:o})}catch(a){throw console.error(`${e} ${m(a)}`),a}finally{Oe&&console.log(`${e} complete.`)}}b(Fo,"tellUserImpl");var Bi={type:"string",description:"The text content to display to the user in the chat log. This is how you, as the agent, communicate with the user."},ki={type:"string",description:"This is the address of the ibgib in which you wish to communicate with the user (and/or other agents when implemented). If you don't know this, you should call the getContextInfo function (the actual name may vary slightly as we are in active development right now, but this should be included in your available functions)."},jo={nameOrId:ja,fnViaCmd:ko,functionImpl:Fo,cmd:Oi,cmdModifiers:Ri,schema:{name:ja,description:Ui,parameters:{type:"object",properties:{...k,text:Bi,contextIbGibAddr:ki,agentName:Ne},required:["text","contextIbGibAddr","agentName"]}}};var zo=[jo,Bo,Oo];var za=G,qa="editText",Ha="ibgib",Xa=[qa],Fi={ibGibAddr:"comment HelloThereImBob 1748386170000^A2D75E05B14E264619D2ACCCCABF234128E183B4524CC26029E54B84BF7BFD73.61985691826359867236266716461787826378AFFF23984723987FDA2013C8CB",newText:"This is the newly edited text",notesToSelf:"Example of an ibgib's data.text property.",repromptWithResult:!1},ji=[j,$(Fi)].join(`
|
|
56
56
|
`),zi=["Edits an ibGib's data.text property and performs additional business logic on other fields within the ibGib record, like timestamps, updating the ib, etc.","",ji].join(`
|
|
57
|
-
`),qi={name:qa,description:zi,parameters:{type:"object",properties:{...k,spaceId:{type:"string",description:"The id of the local user space. If not provided, will use the default local space. Only provide this if you don't want to use the default space. Agents should either leave this unset, or if they are trying to mut8 an ibGib that is inside *their* subspace, then they should provide this. Otherwise, it will look in the default space which will be incorrect. In the future, agents will have a different API for interacting with their subspaces, but for now this may be used (if the agent even has access to their subspace id. it's so early in dev, I'm not sure if this is true.)"},ibGibAddr:{type:"string",description:"The content address of the ibGib to edit."},newText:{type:"string",description:"The new text to set for the ibGib's data.text property."}},required:["ibGibAddr"]}};function Hi(c){let e=F(),a={...c,cmd:Ha,cmdModifiers:Xa};return new Promise((t,r)=>{e.enqueueCommand({command:a,resolve:t,reject:r})})}b(Hi,"viaCmd");async function qo(c){let e=`[${qo.name}]`;try{za&&console.log(`${e} starting... (I: genuuid)`),console.log(`${e} ${Ha} ${Xa} opts: ${$(c)}`);let{spaceId:a,ibGibAddr:t,newText:r}=c,o=await W();if(!o)throw new Error(`${e} metaspace falsy (E: 1a3f5e6c8d9a7b01f2e3d4c5b6a708d9)`);let i=await o.getLocalUserSpace({localSpaceId:a});if(!i)throw a?new Error(`could not get local user space for spaceId (${a}) (E: 61fc28fbdf3fd69ae7c9214fe74c2825)`):new Error("(UNEXPECTED) couldn't get default local user space? (E: 593028fc4038c1cb713a8b1d757da825)");if(r??="",!t)throw new Error(`${e} ibGibAddr is required. (E: genuuid)`);let s=Fr({commentText:r,addlMetadataText:rt()});za&&console.log(`${e} Mutating timeline ibGib... (I: genuuid)`);let n=await We({timelineAddr:t,mut8Opts:{dataToAddOrPatch:{text:r,textTimestamp:re()},mut8Ib:s},metaspace:o,space:i});if(!n)throw new Error(`${e} Mutate timeline transform failed: No new timeline ibGib returned. (E: genuuid)`);return console.log(`${e} Mutated timeline ibGib processed.`),n}catch(a){throw console.error(`${e} ${m(a)}`),a}finally{za&&console.log(`${e} complete.`)}}b(qo,"fnImpl");var Ho={nameOrId:qa,fnViaCmd:Hi,functionImpl:qo,cmd:Ha,cmdModifiers:Xa,schema:qi};var Xo=[Ho];var Wo=Ge,Xi=new Map([...zo,...Xo,...xo].map(c=>[c.nameOrId,c]));function Wa(){let c=`[${Wa.name}]`;try{Wo&&console.log(`${c} starting... (I: e6bad47eedd044beadadbd63361128ea)`),Vr({functionInfos:Xi})}catch(e){throw console.error(`${c} ${m(e)}`),e}finally{Wo&&console.log(`${c} complete.`)}}b(Wa,"registerDeprecatedFunctionNamesAndFunctionInfos_Web");var Bt=new URLSearchParams(window.location.search);if(Bt.has("code")&&Bt.has("state")&&window.opener){let c=Bt.get("code"),e=Bt.get("state");window.opener.postMessage({type:"sso-oauth-callback",code:c,state:e},window.location.origin),window.close()}console.log(`[space-gib bootstrap] version: ${vr}`);"
|
|
57
|
+
`),qi={name:qa,description:zi,parameters:{type:"object",properties:{...k,spaceId:{type:"string",description:"The id of the local user space. If not provided, will use the default local space. Only provide this if you don't want to use the default space. Agents should either leave this unset, or if they are trying to mut8 an ibGib that is inside *their* subspace, then they should provide this. Otherwise, it will look in the default space which will be incorrect. In the future, agents will have a different API for interacting with their subspaces, but for now this may be used (if the agent even has access to their subspace id. it's so early in dev, I'm not sure if this is true.)"},ibGibAddr:{type:"string",description:"The content address of the ibGib to edit."},newText:{type:"string",description:"The new text to set for the ibGib's data.text property."}},required:["ibGibAddr"]}};function Hi(c){let e=F(),a={...c,cmd:Ha,cmdModifiers:Xa};return new Promise((t,r)=>{e.enqueueCommand({command:a,resolve:t,reject:r})})}b(Hi,"viaCmd");async function qo(c){let e=`[${qo.name}]`;try{za&&console.log(`${e} starting... (I: genuuid)`),console.log(`${e} ${Ha} ${Xa} opts: ${$(c)}`);let{spaceId:a,ibGibAddr:t,newText:r}=c,o=await W();if(!o)throw new Error(`${e} metaspace falsy (E: 1a3f5e6c8d9a7b01f2e3d4c5b6a708d9)`);let i=await o.getLocalUserSpace({localSpaceId:a});if(!i)throw a?new Error(`could not get local user space for spaceId (${a}) (E: 61fc28fbdf3fd69ae7c9214fe74c2825)`):new Error("(UNEXPECTED) couldn't get default local user space? (E: 593028fc4038c1cb713a8b1d757da825)");if(r??="",!t)throw new Error(`${e} ibGibAddr is required. (E: genuuid)`);let s=Fr({commentText:r,addlMetadataText:rt()});za&&console.log(`${e} Mutating timeline ibGib... (I: genuuid)`);let n=await We({timelineAddr:t,mut8Opts:{dataToAddOrPatch:{text:r,textTimestamp:re()},mut8Ib:s},metaspace:o,space:i});if(!n)throw new Error(`${e} Mutate timeline transform failed: No new timeline ibGib returned. (E: genuuid)`);return console.log(`${e} Mutated timeline ibGib processed.`),n}catch(a){throw console.error(`${e} ${m(a)}`),a}finally{za&&console.log(`${e} complete.`)}}b(qo,"fnImpl");var Ho={nameOrId:qa,fnViaCmd:Hi,functionImpl:qo,cmd:Ha,cmdModifiers:Xa,schema:qi};var Xo=[Ho];var Wo=Ge,Xi=new Map([...zo,...Xo,...xo].map(c=>[c.nameOrId,c]));function Wa(){let c=`[${Wa.name}]`;try{Wo&&console.log(`${c} starting... (I: e6bad47eedd044beadadbd63361128ea)`),Vr({functionInfos:Xi})}catch(e){throw console.error(`${c} ${m(e)}`),e}finally{Wo&&console.log(`${c} complete.`)}}b(Wa,"registerDeprecatedFunctionNamesAndFunctionInfos_Web");var Bt=new URLSearchParams(window.location.search);if(Bt.has("code")&&Bt.has("state")&&window.opener){let c=Bt.get("code"),e=Bt.get("state");window.opener.postMessage({type:"sso-oauth-callback",code:c,state:e},window.location.origin),window.close()}console.log(`[space-gib bootstrap] version: ${vr}`);"domain".toLowerCase()==="test"&&console.warn(`%c\u26A0\uFE0F WARNING: KEYSTONE_PROFILE IS SET TO 'test'!
|
|
58
58
|
ALL GENERATED KEYSTONES USE LOW-SECURITY TEST PARAMETERS (12 CHALLENGES).
|
|
59
59
|
FOR LOCAL TESTING ONLY \u2014 DO NOT USE FOR REAL SECRETS OR PRODUCTION DATA!`,"background: #990000; color: #ffffff; font-size: 14px; font-weight: bold; padding: 8px; border-radius: 4px;");async function Kb(){await _a({config:Lr,getGlobalThis:Ur,AppClass:Ut,defaultAppData:Ao,paramInfos:So,registerAgentFunctionInfos:Wa,localSpaceNamePrefix:"space_gib_",onReady:b(async c=>{Ge&&console.log(`[bootstrapSpaceGibApp] Engine ready. app: ${c?.ib}`),await Qr().onEngineReady()},"onReady")})}b(Kb,"bootstrapSpaceGibApp");export{Kb as bootstrapSpaceGibApp};
|
|
60
60
|
//# sourceMappingURL=bootstrap.mjs.map
|