isorite 0.8.0 → 0.9.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/main.js +411 -94
- package/docs/setup-for-agents.md +9 -5
- package/docs/setup.md +31 -4
- package/docs/terminal.md +9 -3
- package/package.json +1 -1
- package/plugin/tui.tsx +6 -0
- package/web/_app/immutable/chunks/{BtUtjfIh.js → B3aPQAYq.js} +1 -1
- package/web/_app/immutable/chunks/{D_JZ0swv.js → BXF2XoRC.js} +1 -1
- package/web/_app/immutable/chunks/{hOAYc4Tf.js → CBWiKnLz.js} +1 -1
- package/web/_app/immutable/chunks/{Di_ac7WN.js → CJ1dhP0p.js} +1 -1
- package/web/_app/immutable/chunks/{BrXPCJaM.js → CLkY0zVi.js} +1 -1
- package/web/_app/immutable/chunks/{CnP_Si9g.js → D-aFnd2T.js} +1 -1
- package/web/_app/immutable/chunks/{DgZW3JtG.js → DDuWClBR.js} +1 -1
- package/web/_app/immutable/chunks/{BjPiibIz.js → DII7jNnq.js} +1 -1
- package/web/_app/immutable/chunks/{CGzfi9Nl.js → DRQEUdad.js} +1 -1
- package/web/_app/immutable/chunks/{NmqB5ax3.js → DacMdKjW.js} +1 -1
- package/web/_app/immutable/chunks/{B91efLFT.js → DcgxJ8bF.js} +3 -3
- package/web/_app/immutable/chunks/{CCiHXe5d.js → Ddgejj-u.js} +1 -1
- package/web/_app/immutable/chunks/{dvrIP-Hm.js → GRrQoDGJ.js} +1 -1
- package/web/_app/immutable/chunks/{B-65IYX-.js → vUsuwDSf.js} +1 -1
- package/web/_app/immutable/entry/{app.DO9lj7h3.js → app.CswuY3sh.js} +2 -2
- package/web/_app/immutable/entry/start.D8ZvSyBD.js +1 -0
- package/web/_app/immutable/nodes/0.DBoa3NAQ.js +26 -0
- package/web/_app/immutable/nodes/{1.BRTPLKyU.js → 1.DrwFerb8.js} +1 -1
- package/web/_app/immutable/nodes/2.DPmbppXV.js +1 -0
- package/web/_app/immutable/nodes/3.BW7AbIrS.js +1 -0
- package/web/_app/immutable/nodes/{4.DYW7Fxdy.js → 4.B5HAyMKs.js} +1 -1
- package/web/_app/immutable/nodes/{5.Dkvkif0E.js → 5.BvScSoCM.js} +1 -1
- package/web/_app/immutable/nodes/6.Bna6qY2G.js +1 -0
- package/web/_app/version.json +1 -1
- package/web/index.html +14 -14
- package/web/_app/immutable/entry/start.Bg5TZs6n.js +0 -1
- package/web/_app/immutable/nodes/0.N1e1uAFq.js +0 -26
- package/web/_app/immutable/nodes/2.BWh1AYEd.js +0 -1
- package/web/_app/immutable/nodes/3.Cgqgn7Zv.js +0 -1
- package/web/_app/immutable/nodes/6.BinB0fuq.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,A as t,D as n,F as r,H as i,I as a,J as o,K as s,L as c,M as l,N as u,P as d,Q as f,S as p,T as m,U as h,X as g,Y as _,Z as v,_ as y,at as b,d as x,dt as S,f as C,h as w,j as T,k as E,m as ee,n as te,ot as D,p as O,pt as k,q as A,rt as j,s as M,tt as N,ut as P,w as F,x as I,z as L}from"../chunks/nMarIA7J.js";import{o as ne,t as R}from"../chunks/
|
|
1
|
+
import{$ as e,A as t,D as n,F as r,H as i,I as a,J as o,K as s,L as c,M as l,N as u,P as d,Q as f,S as p,T as m,U as h,X as g,Y as _,Z as v,_ as y,at as b,d as x,dt as S,f as C,h as w,j as T,k as E,m as ee,n as te,ot as D,p as O,pt as k,q as A,rt as j,s as M,tt as N,ut as P,w as F,x as I,z as L}from"../chunks/nMarIA7J.js";import{o as ne,t as R}from"../chunks/CLkY0zVi.js";import"../chunks/xihTtKlq.js";import{A as z,E as B,M as re,N as V,P as ie,T as H,h as ae,i as U,j as oe,m as se,t as W,w as ce,x as le}from"../chunks/DcgxJ8bF.js";import{i as ue,n as de,r as fe,t as pe}from"../chunks/CJ1dhP0p.js";import{i as G,r as me,t as K}from"../chunks/D-aFnd2T.js";import{i as q}from"../chunks/CBWiKnLz.js";import{t as he}from"../chunks/DacMdKjW.js";import{t as ge}from"../chunks/DRQEUdad.js";import{a as _e,i as J,n as Y,o as ve,r as ye,t as be}from"../chunks/vUsuwDSf.js";var xe=T(`<button class="link svelte-1khbtcu" type="button">delete</button>`),Se=T(`<label class="wide svelte-1khbtcu" for="note-folder"><span>folder</span></label> <span class="wide svelte-1khbtcu"><!></span> <label class="svelte-1khbtcu"><span>name</span><input class="mono svelte-1khbtcu" spellcheck="false" autocomplete="off" aria-label="name: change it to rename the file"/></label> <!>`,1),X=T(`<div class="full ask svelte-1khbtcu" role="alertdialog" aria-label="delete this note"><span class="svelte-1khbtcu">Delete this note? <!> Its history stays.</span> <button class="btn danger svelte-1khbtcu" type="button">delete</button> <button class="btn quiet svelte-1khbtcu" type="button">keep it</button></div>`),Ce=T(`<p class="full problem svelte-1khbtcu" role="alert"> </p>`),we=T(`<option></option>`),Te=T(`<div class="details svelte-1khbtcu"><label class="svelte-1khbtcu"><span>type</span><input list="types" autocomplete="off" class="svelte-1khbtcu"/></label> <label class="wide svelte-1khbtcu"><span>tags</span><input placeholder="none" autocomplete="off" class="svelte-1khbtcu"/></label> <label class="full svelte-1khbtcu"><span>description</span><input placeholder="one line on what this note says" autocomplete="off" class="svelte-1khbtcu"/></label> <!> <!> <!> <datalist id="types"></datalist></div>`);function Ee(t,a){D(a,!0);let s=N(()=>[...new Set(K.listing.notes.map(e=>e.type).filter(Boolean))].sort()),l=N(()=>!a.note.id.startsWith(`@`)),d=e(``),h=e(null),v=e=>e.split(`/`).slice(0,-1).join(`/`),y=e=>e.split(`/`).at(-1),w=N(()=>v(a.note.id));async function T(e,t){let n=e=>e.trim().replace(/^\/+|\/+$/g,``).replace(/\.md$/,``),r=[n(e),n(t)].filter(Boolean).join(`/`);if(!n(t)||r===a.note.id)f(w,v(a.note.id));else{f(d,``);try{let e=await a.note.move(r);await K.refresh(),await R(me(e),{replaceState:!0})}catch(e){f(d,e.message,!0),f(w,v(a.note.id))}}}async function ee(){f(d,``);try{let e=await K.api.map();f(h,[...new Set(e.model.edges.filter(([e,t])=>t===a.note.id&&e!==a.note.id&&!e.startsWith(`@`)).map(([t])=>e.notes[t]?.title||t))],!0)}catch(e){f(d,e.message,!0)}}async function te(){try{await a.note.remove(),await K.refresh(),await R(ne(`/notes`),{replaceState:!0})}catch(e){f(d,e.message,!0),f(h,null)}}var k=Te(),j=A(k),M=g(A(j));x(M),S(j);var F=g(j,2),I=g(A(F));x(I),S(F);var L=g(F,2),z=g(A(L));x(z),S(L);var B=g(L,2),re=e=>{var t=Se(),n=g(o(t),2),s=A(n);ge(s,{id:`note-folder`,quiet:!0,label:`folder: change it to move the note`,placeholder:`the top of the base`,onpick:e=>void T(e,y(a.note.id)),onkeydown:e=>{e.key===`Escape`&&(f(w,v(a.note.id)),e.currentTarget.blur())},get value(){return c(w)},set value(e){f(w,e)}}),S(n);var l=g(n,2),u=g(A(l));x(u),S(l);var d=g(l,2),p=e=>{var t=xe();r(`click`,t,()=>void ee()),E(e,t)};m(d,e=>{c(h)===null&&e(p)}),i((e,t)=>{O(u,e),C(u,`size`,t)},[()=>y(a.note.id),()=>Math.max(8,y(a.note.id).length)]),r(`change`,u,e=>void T(c(w),e.currentTarget.value)),r(`keydown`,u,e=>{e.key===`Enter`?e.currentTarget.blur():e.key===`Escape`&&(e.currentTarget.value=y(a.note.id),e.currentTarget.blur())}),E(e,t)};m(B,e=>{c(l)&&e(re)});var V=g(B,2),ie=e=>{var t=X(),a=A(t),o=g(A(a)),s=e=>{var t=u();i(e=>n(t,`${c(h).length===1?`One note links`:`${c(h).length} notes link`} to it (${e??``}); ${c(h).length===1?`its link is`:`their links are`} left broken.`),[()=>c(h).join(`, `)]),E(e,t)},l=e=>{var t=u(`No note links to it.`);E(e,t)};m(o,e=>{c(h).length?e(s):e(l,-1)}),P(),S(a);var d=g(a,2),p=g(d,2);S(t),r(`click`,d,()=>void te()),r(`click`,p,()=>{f(h,null)}),E(e,t)};m(V,e=>{c(h)!==null&&e(ie)});var H=g(V,2),ae=e=>{var t=Ce(),r=_(t,!0);i(()=>n(r,c(d))),E(e,t)};m(H,e=>{c(d)&&e(ae)});var U=g(H,2);p(U,20,()=>c(s),e=>e,(e,t)=>{var n=we(),r={};i(()=>{r!==(r=t)&&(n.value=(n.__value=r)??``)}),E(e,n)}),S(U),S(k),i(e=>{O(M,a.note.fields.type),C(M,`size`,e),O(I,a.note.fields.tags),O(z,a.note.fields.description)},[()=>Math.max(7,a.note.fields.type.length)]),r(`input`,M,e=>a.note.setFields({type:e.currentTarget.value})),r(`change`,I,e=>a.note.setFields({tags:e.currentTarget.value})),r(`input`,z,e=>a.note.setFields({description:e.currentTarget.value})),E(t,k),b()}d([`input`,`change`,`keydown`,`click`]);var De=T(`<h1 class="serif title svelte-130pv1o"> </h1>`),Oe=T(`<p class="asked svelte-130pv1o"><i class="dia svelte-130pv1o" aria-hidden="true"></i><span> </span></p>`),ke=T(`<div class="offered svelte-130pv1o" aria-label="What Iso offered"><p class="serif svelte-130pv1o"> </p></div>`),Ae=T(`<div class="version svelte-130pv1o"><!> <!> <div class="text svelte-130pv1o"></div> <!></div>`);function je(t,r){D(r,!0);let a=N(()=>{try{let[e,t,n]=z(r.text);return{title:/^title:\s*(.*)$/m.exec(t??``)?.[1]?.trim().replace(/^["']|["']$/g,``)??``,body:n,lines:e.split(`
|
|
2
2
|
`).length-1}}catch{return{title:``,body:r.text,lines:0}}}),o,s=e(void 0);te(()=>(f(s,Y(o,{doc:c(a).body,onChange:()=>void 0,onSave:()=>void 0,label:`The note as it was`,notes:()=>[],readOnly:!0})),()=>c(s)?.destroy())),h(()=>{let e=r.touched,t=c(a).lines;c(s)?.dispatch({effects:J.of(e?{who:e.who,lines:e.lines.map(e=>e-t)}:null)})});var l=Ae(),u=A(l),d=e=>{var t=De(),r=_(t,!0);i(()=>n(r,c(a).title)),E(e,t)};m(u,e=>{c(a).title&&c(a).title!==r.title&&e(d)});var p=g(u,2),v=e=>{var t=Oe(),a=g(A(t)),o=_(a,!0);S(t),i(()=>n(o,r.asked)),E(e,t)};m(p,e=>{r.asked!==void 0&&e(v)});var y=g(p,2);M(y,e=>o=e,()=>o);var x=g(y,2),C=e=>{var t=ke(),a=A(t),o=_(a,!0);S(t),i(()=>n(o,r.offered)),E(e,t)};m(x,e=>{r.offered!==void 0&&e(C)}),S(l),E(t,l),b()}var Me=(e,t=k,n=k)=>{var r=Fe();let a;var o=A(r),s=e=>{var t=Ne();P(),E(e,t)},c=e=>{var t=Pe();i(()=>C(t,`fill`,n()?`currentColor`:`none`)),E(e,t)};m(o,e=>{t()===`question`?e(s):e(c,-1)}),S(r),i(()=>a=w(r,0,`glyph ${t()??``}`,`svelte-18ltlst`,a,{solved:n()})),E(e,r)},Ne=l(`<path d="M5.6 5.6a2.4 2.4 0 1 1 3.4 2.2c-.6.3-1 .8-1 1.5v.9"></path><path d="M8 12v1.2"></path>`,1),Pe=l(`<path d="M8 2.5l5.8 10.5H2.2z"></path>`),Fe=l(`<svg viewBox="0 0 16 16" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.4"><!></svg>`),Ie=T(`<p class="faint">opening…</p>`),Le=T(`<p class="soft">There is no note at <span class="faint"> </span>.</p> <p><a>all notes</a></p>`,1),Re=T(`<p class="bad svelte-18ltlst"> </p>`),ze=T(`<button class="btn" type="button">take theirs</button>`),Be=T(`<div class="frame choice svelte-18ltlst" role="alert"><span class="frame-title">changed elsewhere</span> <p> </p> <div class="row svelte-18ltlst"><button class="btn primary" type="button">keep mine</button> <!></div> <p class="faint">Whichever you keep, the other stays in the note's journal.</p></div>`),Ve=T(`<button class="done-tg svelte-18ltlst" type="button"><svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M3 8.5l3 3 7-7"></path></svg></button>`),He=T(`<div class="titlerow svelte-18ltlst"><!> <label class="hidden-label" for="title">Title</label> <textarea id="title" class="serif title svelte-18ltlst" rows="1" autocomplete="off"></textarea> <!></div>`),Ue=T(`<span class="grow faint"> </span>`),We=T(`<button class="btn quiet svelte-18ltlst" type="button">details</button>`),Ge=T(` <a class="svelte-18ltlst"> </a>`,1),Ke=T(`<p class="about svelte-18ltlst"></p>`),qe=T(`<div class="tl-col svelte-18ltlst"><!></div>`),Je=T(`<span class="bad svelte-18ltlst" role="alert"> </span>`),Ye=T(`<div class="atbar svelte-18ltlst" role="status"><span class="label"> </span> <span class="grow"></span> <!> <button class="icon svelte-18ltlst" type="button" aria-label="restore to here" title="restore to here"><svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3.2 9.5A5 5 0 1 0 4.6 4.3" stroke="currentColor" stroke-width="1.3" fill="none"></path><path d="M3 1.8v3.4h3.4" stroke="currentColor" stroke-width="1.3" fill="none"></path></svg></button> <button class="icon svelte-18ltlst" type="button" aria-label="back to now" title="back to now"><svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M2 8h9M8 4.8 11.2 8 8 11.2" stroke="currentColor" stroke-width="1.3" fill="none"></path><path d="M13.5 3v10" stroke="currentColor" stroke-width="1.3"></path></svg></button></div> <!>`,1),Xe=T(`<button class="toiso svelte-18ltlst" type="button"><i class="dia svelte-18ltlst" aria-hidden="true">◆</i>send to Iso</button>`),Ze=l(`<svg class="ok svelte-18ltlst" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M3 8.5l3 3 7-7"></path></svg>`),Qe=T(`<li><a><!><span class="svelte-18ltlst"> </span><!></a></li>`),$e=T(`<ul class="attached svelte-18ltlst"></ul>`),et=T(`<div class="changes svelte-18ltlst" role="status"><i class="dia svelte-18ltlst" aria-hidden="true"></i> <span class="soft"> </span> <span class="grow"></span> <button class="link svelte-18ltlst" type="button">keep all</button> <button class="link svelte-18ltlst" type="button">remove all</button></div>`),tt=T(`<!> <div class="head svelte-18ltlst"><!> <div class="side svelte-18ltlst"><div class="tools svelte-18ltlst"><!> <button class="btn quiet svelte-18ltlst" type="button">source</button></div></div></div> <!> <!> <!> <!> <!> <div class="live"><!></div> <!> <!>`,1),nt=T(`<article><!></article>`);function rt(t,l){D(l,!0);let u=new _e(l.id),d=new ve(u),y=e=>{try{return localStorage.getItem(e)===`1`}catch{return!1}},x=(e,t)=>{try{localStorage.setItem(e,t?`1`:`0`)}catch{}},T=e(v(y(`isorite.details`))),k=e(!1),I=N(()=>c(k)||u.meta===null),z=N(()=>q.on.timeline),U=e(null),W=e(null),ge=e(!1),J=e(``),Y=N(()=>le(d.entries)),ye=e=>e.who.startsWith(`iso:`)||e.who.startsWith(`agent:`),xe=e=>e.flatMap(e=>Array.from({length:e.to-e.from},(t,n)=>e.from+n)),Se=N(()=>{if(!c(z)||c(W)||c(I))return null;let e=c(U)??(c(Te)?void 0:c(Y).findLast(e=>ye(e)&&(e.what===`kept`||e.what===`edited`)));if(!e)return null;let t=xe(H(d.entries,e.ids).runs);return t.length?{who:ye(e)?`iso`:`you`,lines:t}:null}),X=N(()=>{if(!c(W))return null;let e=ue(c(W)),t=ce(d.entries,e);if(t===null)return null;let n=d.entries.filter(t=>t.id<=e),r=d.entries.find(e=>e.id===c(W).ids[0]),i=(c(W).what===`offered`||c(W).what===`discarded`)&&r?.kind===`proposal`?r.form===`insert`?r.text:r.regions.map(e=>e.new).join(`
|
|
3
3
|
|
|
4
4
|
`):void 0;return{text:t,touched:{who:ye(c(W))?`iso`:`you`,lines:xe(H(n,c(W).ids).runs)},asked:c(W).asked,offered:i}}),Ce=()=>he.url.searchParams.get(`at`)??new URLSearchParams(location.hash.split(`?`)[1]??``).get(`at`),we=e(v(Ce()));h(()=>{let e=Ce();e&&f(we,e,!0)}),h(()=>{if(!c(we))return;let e=c(Y).find(e=>e.ids.includes(c(we)));e&&(f(we,null),q.flip(`timeline`,!0),f(W,e))});let Te=N(()=>q.on.provenance);h(()=>{c(z)||(f(W,null),f(U,null))});let De=N(()=>{if(!c(Te)||u.loaded!==`ready`)return[];let e=[],t=B(d.entries),n=u.text.split(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/nMarIA7J.js";import"../chunks/xihTtKlq.js";import{t as e}from"../chunks/Ddgejj-u.js";import"../chunks/D_19S_Iu.js";function t(t){e(t,{})}export{t as component};
|
package/web/_app/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1793071519394"}
|
package/web/index.html
CHANGED
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
history.replaceState(history.state, "", location.pathname.slice(0, -1) + location.search + location.hash);
|
|
37
37
|
}
|
|
38
38
|
</script>
|
|
39
|
-
<link href="/_app/immutable/entry/start.
|
|
40
|
-
<link href="/_app/immutable/chunks/
|
|
39
|
+
<link href="/_app/immutable/entry/start.D8ZvSyBD.js" rel="modulepreload">
|
|
40
|
+
<link href="/_app/immutable/chunks/CLkY0zVi.js" rel="modulepreload">
|
|
41
41
|
<link href="/_app/immutable/chunks/nMarIA7J.js" rel="modulepreload">
|
|
42
|
-
<link href="/_app/immutable/entry/app.
|
|
42
|
+
<link href="/_app/immutable/entry/app.CswuY3sh.js" rel="modulepreload">
|
|
43
43
|
<link href="/_app/immutable/chunks/CRzLMJPS.js" rel="modulepreload">
|
|
44
44
|
<link href="/_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
|
|
45
|
-
<link href="/_app/immutable/nodes/0.
|
|
46
|
-
<link href="/_app/immutable/chunks/
|
|
47
|
-
<link href="/_app/immutable/chunks/
|
|
48
|
-
<link href="/_app/immutable/chunks/
|
|
45
|
+
<link href="/_app/immutable/nodes/0.DBoa3NAQ.js" rel="modulepreload">
|
|
46
|
+
<link href="/_app/immutable/chunks/DcgxJ8bF.js" rel="modulepreload">
|
|
47
|
+
<link href="/_app/immutable/chunks/D-aFnd2T.js" rel="modulepreload">
|
|
48
|
+
<link href="/_app/immutable/chunks/CBWiKnLz.js" rel="modulepreload">
|
|
49
49
|
<link href="/_app/immutable/chunks/BxTFtVqu.js" rel="modulepreload">
|
|
50
50
|
<link href="/_app/immutable/chunks/yxd8jSz3.js" rel="modulepreload">
|
|
51
|
-
<link href="/_app/immutable/chunks/
|
|
52
|
-
<link href="/_app/immutable/chunks/
|
|
53
|
-
<link href="/_app/immutable/chunks/
|
|
54
|
-
<link href="/_app/immutable/chunks/
|
|
51
|
+
<link href="/_app/immutable/chunks/CJ1dhP0p.js" rel="modulepreload">
|
|
52
|
+
<link href="/_app/immutable/chunks/DacMdKjW.js" rel="modulepreload">
|
|
53
|
+
<link href="/_app/immutable/chunks/Ddgejj-u.js" rel="modulepreload">
|
|
54
|
+
<link href="/_app/immutable/chunks/DRQEUdad.js" rel="modulepreload">
|
|
55
55
|
<link href="/_app/immutable/chunks/DZYaqCwi.js" rel="modulepreload">
|
|
56
56
|
|
|
57
57
|
<link href="/_app/immutable/assets/Timeline.KTc3LKuK.css" rel="stylesheet">
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
<div style="display: contents">
|
|
64
64
|
<script>
|
|
65
65
|
{
|
|
66
|
-
|
|
66
|
+
__sveltekit_10zafto = {
|
|
67
67
|
base: new URL('.', location).pathname.slice(0, -1)
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
const element = document.currentScript.parentElement;
|
|
71
71
|
|
|
72
72
|
Promise.all([
|
|
73
|
-
import("/_app/immutable/entry/start.
|
|
74
|
-
import("/_app/immutable/entry/app.
|
|
73
|
+
import("/_app/immutable/entry/start.D8ZvSyBD.js"),
|
|
74
|
+
import("/_app/immutable/entry/app.CswuY3sh.js")
|
|
75
75
|
]).then(([kit, app]) => {
|
|
76
76
|
kit.start(app, element);
|
|
77
77
|
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as load_css,n as start}from"../chunks/BrXPCJaM.js";
|