isorite 0.3.1 → 0.6.0
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/README.md +3 -3
- package/dist/core.js +4 -2
- package/dist/main.js +4290 -3960
- package/docs/setup-for-agents.md +7 -2
- package/docs/setup.md +23 -5
- package/docs/terminal.md +9 -1
- package/package.json +1 -1
- package/plugin/tui.tsx +3 -77
- package/web/_app/immutable/assets/{0.IOi79DXH.css → 0.LEIHnkPh.css} +1 -1
- package/web/_app/immutable/chunks/{8IM6BNk6.js → 2DHY0Dzh.js} +21 -21
- package/web/_app/immutable/chunks/BQRMn_tl.js +1 -0
- package/web/_app/immutable/chunks/C-352d8F.js +1 -0
- package/web/_app/immutable/chunks/{B_AYGp9o.js → CHxNLteG.js} +1 -1
- package/web/_app/immutable/chunks/Cf6h5DpS.js +20 -0
- package/web/_app/immutable/chunks/{CMp5T_-1.js → D4A7-5k0.js} +1 -1
- package/web/_app/immutable/chunks/Dijhflxl.js +1 -0
- package/web/_app/immutable/chunks/Ps0IPbdL.js +1 -0
- package/web/_app/immutable/chunks/{BHPhFydX.js → ZRnI3PpK.js} +1 -1
- package/web/_app/immutable/chunks/nhmVyQdD.js +3 -0
- package/web/_app/immutable/chunks/rTqzqD6j.js +1 -0
- package/web/_app/immutable/chunks/y24aTX4O.js +1 -0
- package/web/_app/immutable/entry/app.BQ0r6jSu.js +2 -0
- package/web/_app/immutable/entry/start.CIQiYrSU.js +1 -0
- package/web/_app/immutable/nodes/0.zPrOkn79.js +26 -0
- package/web/_app/immutable/nodes/1.DfBkOAo2.js +1 -0
- package/web/_app/immutable/nodes/2.fp8Y5joG.js +1 -0
- package/web/_app/immutable/nodes/3.Do9cwxjS.js +1 -0
- package/web/_app/immutable/nodes/4.CGd6gzGJ.js +2 -0
- package/web/_app/immutable/nodes/5.Dtac-HK8.js +5 -0
- package/web/_app/immutable/nodes/6._-kZkWYe.js +1 -0
- package/web/_app/immutable/nodes/7.BdTE6U4H.js +1 -0
- package/web/_app/version.json +1 -1
- package/web/index.html +17 -20
- package/dist/tutorial/barnes_hut.py +0 -46
- package/dist/tutorial/sim.py +0 -29
- package/plugin/tour.ts +0 -74
- package/web/_app/immutable/assets/8.CFA9_nYZ.css +0 -1
- package/web/_app/immutable/assets/Tutorial.DOfsM49T.css +0 -1
- package/web/_app/immutable/chunks/Bze-M_kr.js +0 -3
- package/web/_app/immutable/chunks/CFA70_0c.js +0 -20
- package/web/_app/immutable/chunks/CGgq5NWd.js +0 -1
- package/web/_app/immutable/chunks/CHlFgDNB.js +0 -1
- package/web/_app/immutable/chunks/CRzLMJPS.js +0 -1
- package/web/_app/immutable/chunks/D89YN-Dr.js +0 -1
- package/web/_app/immutable/chunks/DF3lgcLW.js +0 -1
- package/web/_app/immutable/chunks/DGVcYHaJ.js +0 -43
- package/web/_app/immutable/chunks/DHMLhlug.js +0 -1
- package/web/_app/immutable/chunks/DmgpLvxp.js +0 -1
- package/web/_app/immutable/chunks/DrsVvzvg.js +0 -1
- package/web/_app/immutable/entry/app.hlk6OrE8.js +0 -2
- package/web/_app/immutable/entry/start.BE1F0HZV.js +0 -1
- package/web/_app/immutable/nodes/0.DMGdYhkH.js +0 -15
- package/web/_app/immutable/nodes/1.Dn_0fgt7.js +0 -1
- package/web/_app/immutable/nodes/2.Y1Dd5PBI.js +0 -1
- package/web/_app/immutable/nodes/3.BlxuRbLf.js +0 -1
- package/web/_app/immutable/nodes/4.Bt_H0MbN.js +0 -2
- package/web/_app/immutable/nodes/5.BJ-EVWbz.js +0 -5
- package/web/_app/immutable/nodes/6.DDIiJnwi.js +0 -1
- package/web/_app/immutable/nodes/7.DmPPLDvb.js +0 -1
- package/web/_app/immutable/nodes/8.CwMTBog4.js +0 -486
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as e,Q as t,X as n,Z as r}from"./nhmVyQdD.js";import{o as i,t as a}from"./D4A7-5k0.js";import{r as o}from"./Dijhflxl.js";var s=(e,t)=>{try{return localStorage.getItem(e)??t}catch{return t}},c=(e,t)=>{try{localStorage.setItem(e,t)}catch{}},l=(e,t)=>{try{return{...t,...JSON.parse(s(e,`{}`))}}catch{return t}},u=[`note`,`atlas`,`iso`],d=[`cols`,`stack`,`one`],f={note:[`provenance`,`timeline`],atlas:[`questions`,`problems`,`web`,`code`,`context`],iso:[`notes`,`files`,`run`]},p={provenance:!1,timeline:!1,questions:!0,problems:!0,web:!1,code:!1,context:!1,notes:!1,files:!1,run:!1},m={note:1.25,atlas:1,iso:1.05},h={min:.4,max:3},g=new class{#e=t(n(d.includes(s(`isorite.layout`,``))?s(`isorite.layout`,``):`cols`));get layout(){return e(this.#e)}set layout(e){r(this.#e,e,!0)}#t=t(n(l(`isorite.show`,{note:!0,atlas:!0,iso:!0})));get show(){return e(this.#t)}set show(e){r(this.#t,e,!0)}#n=t(n(l(`isorite.widths`,m)));get widths(){return e(this.#n)}set widths(e){r(this.#n,e,!0)}#r=t(n(l(`isorite.switches`,p)));get on(){return e(this.#r)}set on(e){r(this.#r,e,!0)}#i=t(s(`isorite.understanding`,``)===`1`);get understanding(){return e(this.#i)}set understanding(e){r(this.#i,e,!0)}#a=t(`note`);get focus(){return e(this.#a)}set focus(e){r(this.#a,e,!0)}#o=t(!1);get narrow(){return e(this.#o)}set narrow(e){r(this.#o,e,!0)}#s=t(0);get unseen(){return e(this.#s)}set unseen(e){r(this.#s,e,!0)}#c=t(!1);get tree(){return e(this.#c)}set tree(e){r(this.#c,e,!0)}#l=t(``);get fresh(){return e(this.#l)}set fresh(e){r(this.#l,e,!0)}#u=t(null);get settings(){return e(this.#u)}set settings(e){r(this.#u,e,!0)}#d=t(n(s(`isorite.last`,``)));get last(){return e(this.#d)}set last(e){r(this.#d,e,!0)}get standing(){if(this.narrow)return[...u];let e=u.filter(e=>this.show[e]);return this.layout===`one`?[e.includes(this.focus)?this.focus:e[0]??`note`]:e}setLayout(e){this.layout=e,c(`isorite.layout`,e)}nextLayout(){this.setLayout(d[(d.indexOf(this.layout)+1)%d.length])}toggle(e){this.show[e]&&u.filter(e=>this.show[e]).length===1||(this.show[e]=!this.show[e],c(`isorite.show`,JSON.stringify(this.show)),!this.show[e]&&this.focus===e&&(this.focus=u.find(e=>this.show[e])))}setWidth(e,t){this.widths[e]=Math.min(h.max,Math.max(h.min,t)),c(`isorite.widths`,JSON.stringify(this.widths))}to(e){!this.narrow&&!this.show[e]&&this.toggle(e),this.focus=e,e===`iso`&&(this.unseen=0),this.scroll?.(e)}scroll=null;step(e){let t=this.narrow?[...u]:u.filter(e=>this.show[e]),n=t.indexOf(this.focus);this.to(t[(n+e+t.length)%t.length])}flip(e,t=!this.on[e]){this.on[e]=t,c(`isorite.switches`,JSON.stringify(this.on)),(e===`notes`||e===`files`||e===`run`)&&this.onMode?.()}showUnderstanding(e=!this.understanding){this.understanding=e,c(`isorite.understanding`,e?`1`:``),this.onMode?.()}busy(e){let t=typeof document>`u`?null:document.activeElement;return!!t&&!!t.closest(`[data-pane="${e}"]`)&&(t.matches(`input, textarea, [contenteditable=true]`)||!!t.closest(`.cm-editor`))}#f=t(!1);get terminal(){return e(this.#f)}set terminal(e){r(this.#f,e,!0)}setTerminal(e){this.terminal=e}get mode(){return this.terminal&&(this.on.files||this.on.run)?`build`:this.on.notes?`write`:`ask`}onMode=null;setLast(e){e&&!e.startsWith(`@`)&&(this.last=e,c(`isorite.last`,e))}async open(e,t=this.narrow){await a(o(e)),t&&this.to(`note`)}async home(){await a(i(`/notes`))}};export{g as i,u as n,f as r,d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as e,E as t,F as n,I as r,J as i,K as a,N as o,O as s,P as c,Q as l,V as u,Y as d,Z as f,at as p,d as m,et as h,f as g,h as _,i as v,it as y,u as b,ut as x,w as S,x as C}from"./nhmVyQdD.js";import"./xihTtKlq.js";import{t as w}from"./Dijhflxl.js";var T=e(`<li role="option"><button type="button" tabindex="-1" class="svelte-35e6rs"><span class="dir svelte-35e6rs"> </span><span class="detail svelte-35e6rs"> </span></button></li>`),E=e(`<ul class="suggest svelte-35e6rs" role="listbox" aria-label="folders"></ul>`),D=e(`<span class="field-wrap svelte-35e6rs"><input autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list"/> <!></span>`);function O(e,o){p(o,!0);let O=v(o,`value`,15,``),k=v(o,`placeholder`,3,``),A=v(o,`id`,3,`folder`),j=v(o,`quiet`,3,!1),M=l(!1),N=l(0),P=h(()=>O().trim().replace(/^\/+|\/+$/g,``).toLowerCase()),F=e=>w.listing.notes.filter(t=>t.dir===e).length,I=h(()=>{let e=w.listing.dirs.filter(e=>e.toLowerCase().includes(r(P))),t=e=>e.split(`/`).at(-1).toLowerCase().startsWith(r(P))?0:e.toLowerCase().startsWith(r(P))?1:2,n=e.sort((e,n)=>t(e)-t(n)||e.localeCompare(n)).map(e=>({dir:e,made:!1}));return r(P)&&!w.listing.dirs.some(e=>e.toLowerCase()===r(P))&&n.push({dir:O().trim().replace(/^\/+|\/+$/g,``),made:!0}),n.slice(0,8)});function L(e){O(e),f(M,!1),o.onpick?.(e)}function R(e){if(r(M)&&r(I).length){if(e.key===`ArrowDown`){f(N,(r(N)+1)%r(I).length),e.preventDefault();return}if(e.key===`ArrowUp`){f(N,(r(N)-1+r(I).length)%r(I).length),e.preventDefault();return}if((e.key===`Enter`||e.key===`Tab`)&&r(I)[r(N)]&&(e.key===`Enter`||r(P))){e.key===`Enter`&&e.preventDefault(),L(r(I)[r(N)].dir);return}if(e.key===`Escape`){f(M,!1),e.stopPropagation();return}}o.onkeydown?.(e)}var z=D(),B=a(z);m(B);let V;var H=d(B,2),U=e=>{var o=E();C(o,23,()=>r(I),e=>e.dir+e.made,(e,o,l)=>{var p=T();let m;var h=a(p),v=a(h),y=i(v,!0),b=d(v),S=i(b,!0);x(h),x(p),u(e=>{g(p,`id`,`${A()??``}-opt-${r(l)??``}`),g(p,`aria-selected`,r(l)===r(N)),m=_(p,1,`svelte-35e6rs`,null,m,{at:r(l)===r(N)}),t(y,r(o).dir),t(S,e)},[()=>r(o).made?`new folder`:`${F(r(o).dir)} ${F(r(o).dir)===1?`note`:`notes`}`]),c(`mousedown`,h,e=>e.preventDefault()),c(`click`,h,()=>L(r(o).dir)),n(`mouseenter`,h,()=>f(N,r(l),!0)),s(e,p)}),x(o),u(()=>g(o,`id`,`${A()??``}-list`)),s(e,o)};S(H,e=>{r(M)&&r(I).length&&e(U)}),x(z),u(()=>{g(B,`id`,A()),V=_(B,1,`mono svelte-35e6rs`,null,V,{field:!j(),quiet:j()}),g(B,`placeholder`,k()),g(B,`aria-label`,o.label),g(B,`aria-expanded`,r(M)&&r(I).length>0),g(B,`aria-controls`,`${A()??``}-list`),g(B,`aria-activedescendant`,r(M)&&r(I)[r(N)]?`${A()}-opt-${r(N)}`:void 0)}),n(`focus`,B,()=>{f(M,!0),f(N,0)}),c(`input`,B,()=>{f(M,!0),f(N,0)}),n(`blur`,B,()=>setTimeout(()=>f(M,!1),120)),c(`keydown`,B,R),b(B,O),s(e,z),y()}o([`input`,`keydown`,`mousedown`,`click`]);export{O as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{I as e,Q as t,X as n,Z as r}from"./nhmVyQdD.js";var i=new class{#e=t(n(typeof document>`u`?``:document.documentElement.dataset.ground??``));get chosen(){return e(this.#e)}set chosen(e){r(this.#e,e,!0)}choose(e){this.chosen=e,e?document.documentElement.dataset.ground=e:delete document.documentElement.dataset.ground;try{e?localStorage.setItem(`isorite.ground`,e):localStorage.removeItem(`isorite.ground`)}catch{}}},a=[[``,`the system's`],[`lapis`,`lapis`],[`quartz`,`quartz`]];export{i as n,a as t};
|