@rizom/brain 0.2.0-alpha.158 → 0.2.0-alpha.159
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/brain.js +34 -34
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/site.js +4 -4
- package/dist/site.js.map +1 -1
- package/dist/ui/cms-app.js +5 -4
- package/dist/ui/cms-app.js.map +3 -3
- package/package.json +1 -1
package/dist/ui/cms-app.js
CHANGED
|
@@ -1456,6 +1456,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1456
1456
|
gap: 7px;
|
|
1457
1457
|
color: var(--console-err);
|
|
1458
1458
|
}
|
|
1459
|
+
.pipeline > .status {
|
|
1460
|
+
margin-left: 14px;
|
|
1461
|
+
}
|
|
1459
1462
|
.status-error::before {
|
|
1460
1463
|
content: "×";
|
|
1461
1464
|
font-family: var(--console-mono);
|
|
@@ -1600,7 +1603,7 @@ ${kK}`},void 0,!1,void 0,this),o.jsxDEV("p",{className:"status boot-status",chil
|
|
|
1600
1603
|
${mK}
|
|
1601
1604
|
${kK}`},void 0,!1,void 0,this),o.jsxDEV("p",{className:"status boot-status",children:"No editable entity types are registered."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);let j0=L.kind!=="browse",N0=L.kind==="edit"?Df(L.entity):L.kind==="create"?`New ${C?.label??q}`:C?.label??q,G5=C?.label??q,y1=If(G5),M5=v?.git?.hasChanges===!0;return o.jsxDEV("div",{className:"studio","data-view":j0?"editor":"listing",children:[o.jsxDEV("style",{children:`${yz}
|
|
1602
1605
|
${mK}
|
|
1603
|
-
${kK}`},void 0,!1,void 0,this),o.jsxDEV("header",{className:"crumbbar",children:[o.jsxDEV("span",{className:"crumb-mark",children:["content ",o.jsxDEV("b",{children:"studio"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o.jsxDEV("span",{className:"crumb",children:[j0&&!H.isSingleton?o.jsxDEV("button",{type:"button",onClick:x,children:G5},void 0,!1,void 0,this):G5,j0&&o.jsxDEV(o.Fragment,{children:[" / ",o.jsxDEV("strong",{children:N0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),o.jsxDEV("span",{className:"spacer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o.jsxDEV("div",{className:"studio-body",children:[o.jsxDEV("aside",{className:"rail",children:o.jsxDEV(j81,{types:Z,active:q,onSelect:W},void 0,!1,void 0,this)},void 0,!1,void 0,this),!j0?o.jsxDEV("main",{className:"listing",children:[o.jsxDEV("div",{className:"listing-head",children:[o.jsxDEV("h3",{children:C?.label??q},void 0,!1,void 0,this),o.jsxDEV("span",{className:"meta",children:[V?.length??0," ",V?.length===1?"entity":"entities"," · sorted by updated"]},void 0,!0,void 0,this),o.jsxDEV("button",{type:"button",className:"btn",onClick:b1,children:["New ",y1.toLowerCase()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),(V??[]).map((m1,$0)=>o.jsxDEV("button",{type:"button",className:"row",onClick:()=>R1(m1.id),children:[o.jsxDEV("span",{className:"idx",children:String($0+1).padStart(2,"0")},void 0,!1,void 0,this),o.jsxDEV("span",{className:"title",children:[Df(m1),o.jsxDEV("small",{children:[If(m1.entityType),"/",m1.id]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z81(H.fields)&&o.jsxDEV("span",{className:`chip ${pN(m1)}`,children:pN(m1)},void 0,!1,void 0,this),o.jsxDEV("span",{className:"updated",children:a71(m1.updated)},void 0,!1,void 0,this),o.jsxDEV("span",{className:"sync",children:[o.jsxDEV("span",{className:M5?"sync-dot pending":"sync-dot"},void 0,!1,void 0,this),M5?"exporting":"committed"]},void 0,!0,void 0,this)]},m1.id,!0,void 0,this)),V?.length===0&&o.jsxDEV("p",{className:"status listing-empty",children:"Nothing here yet — start the first entry."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):o.jsxDEV("form",{className:"editor","data-mobile-pane":K1,onSubmit:(m1)=>{m1.preventDefault(),u1()},children:[o.jsxDEV("nav",{className:"cms-mobile-modes","aria-label":"Editor view",children:["details","write","preview"].map((m1)=>o.jsxDEV("button",{type:"button",className:m1===K1?"cms-mobile-mode is-active":"cms-mobile-mode",disabled:m1!=="details"&&!H.hasBody,onClick:()=>{if(X1(m1),m1==="write")r("source");if(m1==="preview")r("preview")},children:m1},m1,!1,void 0,this))},void 0,!1,void 0,this),o.jsxDEV("aside",{className:"colophon",children:[o.jsxDEV("div",{className:"form-title",children:[o.jsxDEV("h2",{children:[o.jsxDEV("span",{className:"cms-form-desktop-label",children:"Frontmatter"},void 0,!1,void 0,this),o.jsxDEV("span",{className:"cms-form-mobile-label",children:"Colophon"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o.jsxDEV("span",{children:[y1.toLowerCase()," ·"," ",L.kind==="create"?"new":pN(L.entity)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.fields.map((m1)=>o.jsxDEV("div",{className:"field-with-assist",children:[o.jsxDEV(N81,{descriptor:m1,value:$[m1.name],onChange:($0)=>M((n1)=>r71(n1,m1,$0))},void 0,!1,void 0,this),H.hasBody&&_.trim().length>0&&o.jsxDEV($81,{descriptor:m1,state:y,onRun:r1,onApply:t1,onDiscard:()=>T({kind:"idle"})},void 0,!1,void 0,this)]},m1.name,!0,void 0,this)),H.fields.length===0&&o.jsxDEV("p",{className:"status",children:"This type is raw markdown — the whole document is the body."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o.jsxDEV("section",{className:"manuscript",children:H.hasBody?o.jsxDEV(K81,{value:_,mode:f,onChange:E,onModeChange:r,assist:{entityType:q,frontmatter:$,agents:J}},void 0,!1,void 0,this):o.jsxDEV("p",{className:"status manuscript-empty",children:"This type has no body — its fields are the whole record."},void 0,!1,void 0,this)},void 0,!1,void 0,this),o.jsxDEV("footer",{className:"pipeline",children:[o.jsxDEV("button",{type:"submit",className:"save-btn",disabled:c.kind==="saving",children:c.kind==="saving"?"Saving…":"Save"},void 0,!1,void 0,this),v?.directorySync&&o.jsxDEV(F81,{view:Af({save:c,git:v.git,baselineCommit:F1}),gitConfigured:v.git!==null},void 0,!1,void 0,this),o.jsxDEV(V81,{state:v?.directorySync&&c.kind==="saved"&&!c.noop?{kind:"idle"}:c,onReload:()=>{if(L.kind==="edit")R1(L.entity.id)}},void 0,!1,void 0,this),o.jsxDEV("span",{className:"cms-mobile-save-status",children:[o.jsxDEV("b",{children:c.kind==="saving"?"Saving changes":c.kind==="saved"?"All changes saved":"Entity pipeline"},void 0,!1,void 0,this),v?.git?.lastCommit?`db → file → ${v.git.lastCommit.slice(0,7)}`:"entity db"]},void 0,!0,void 0,this),o.jsxDEV("span",{className:"spacer"},void 0,!1,void 0,this),L.kind==="edit"&&!H.isSingleton&&o.jsxDEV(o.Fragment,{children:[o.jsxDEV("button",{type:"button",className:"btn danger",onClick:()=>Y1(!0),children:"Delete"},void 0,!1,void 0,this),o.jsxDEV("details",{className:"cms-mobile-more",children:[o.jsxDEV("summary",{"aria-label":"More document actions",children:"•••"},void 0,!1,void 0,this),o.jsxDEV("button",{type:"button",onClick:()=>Y1(!0),children:"Delete entry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$1&&L.kind==="edit"&&o.jsxDEV(G81,{entityId:L.entity.id,deleting:z1,onCancel:()=>Y1(!1),onConfirm:v0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function S4(Z){if(Z instanceof gK&&Z.issues.length>0)return Z.issues.map((X)=>`${X.path.join(".")}: ${X.message}`).join("; ");return Z instanceof Error?Z.message:String(Z)}var yz=`
|
|
1606
|
+
${kK}`},void 0,!1,void 0,this),o.jsxDEV("header",{className:"crumbbar",children:[o.jsxDEV("span",{className:"crumb-mark",children:["content ",o.jsxDEV("b",{children:"studio"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o.jsxDEV("span",{className:"crumb",children:[j0&&!H.isSingleton?o.jsxDEV("button",{type:"button",onClick:x,children:G5},void 0,!1,void 0,this):G5,j0&&o.jsxDEV(o.Fragment,{children:[" / ",o.jsxDEV("strong",{children:N0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),o.jsxDEV("span",{className:"spacer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o.jsxDEV("div",{className:"studio-body",children:[o.jsxDEV("aside",{className:"rail",children:o.jsxDEV(j81,{types:Z,active:q,onSelect:W},void 0,!1,void 0,this)},void 0,!1,void 0,this),!j0?o.jsxDEV("main",{className:"listing",children:[o.jsxDEV("div",{className:"listing-head",children:[o.jsxDEV("h3",{children:C?.label??q},void 0,!1,void 0,this),o.jsxDEV("span",{className:"meta",children:[V?.length??0," ",V?.length===1?"entity":"entities"," · sorted by updated"]},void 0,!0,void 0,this),o.jsxDEV("button",{type:"button",className:"btn",onClick:b1,children:["New ",y1.toLowerCase()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),(V??[]).map((m1,$0)=>o.jsxDEV("button",{type:"button",className:"row",onClick:()=>R1(m1.id),children:[o.jsxDEV("span",{className:"idx",children:String($0+1).padStart(2,"0")},void 0,!1,void 0,this),o.jsxDEV("span",{className:"title",children:[Df(m1),o.jsxDEV("small",{children:[If(m1.entityType),"/",m1.id]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z81(H.fields)&&o.jsxDEV("span",{className:`chip ${pN(m1)}`,children:pN(m1)},void 0,!1,void 0,this),o.jsxDEV("span",{className:"updated",children:a71(m1.updated)},void 0,!1,void 0,this),o.jsxDEV("span",{className:"sync",children:[o.jsxDEV("span",{className:M5?"sync-dot pending":"sync-dot"},void 0,!1,void 0,this),M5?"exporting":"committed"]},void 0,!0,void 0,this)]},m1.id,!0,void 0,this)),V?.length===0&&o.jsxDEV("p",{className:"status listing-empty",children:"Nothing here yet — start the first entry."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):o.jsxDEV("form",{className:"editor","data-mobile-pane":K1,onSubmit:(m1)=>{m1.preventDefault(),u1()},children:[o.jsxDEV("nav",{className:"cms-mobile-modes","aria-label":"Editor view",children:["details","write","preview"].map((m1)=>o.jsxDEV("button",{type:"button",className:m1===K1?"cms-mobile-mode is-active":"cms-mobile-mode",disabled:m1!=="details"&&!H.hasBody,onClick:()=>{if(X1(m1),m1==="write")r("source");if(m1==="preview")r("preview")},children:m1},m1,!1,void 0,this))},void 0,!1,void 0,this),o.jsxDEV("aside",{className:"colophon",children:[o.jsxDEV("div",{className:"form-title",children:[o.jsxDEV("h2",{children:[o.jsxDEV("span",{className:"cms-form-desktop-label",children:"Frontmatter"},void 0,!1,void 0,this),o.jsxDEV("span",{className:"cms-form-mobile-label",children:"Colophon"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o.jsxDEV("span",{children:[y1.toLowerCase()," ·"," ",L.kind==="create"?"new":pN(L.entity)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.fields.map((m1)=>o.jsxDEV("div",{className:"field-with-assist",children:[o.jsxDEV(N81,{descriptor:m1,value:$[m1.name],onChange:($0)=>M((n1)=>r71(n1,m1,$0))},void 0,!1,void 0,this),H.hasBody&&_.trim().length>0&&o.jsxDEV($81,{descriptor:m1,state:y,onRun:r1,onApply:t1,onDiscard:()=>T({kind:"idle"})},void 0,!1,void 0,this)]},m1.name,!0,void 0,this)),H.fields.length===0&&o.jsxDEV("p",{className:"status",children:"This type is raw markdown — the whole document is the body."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o.jsxDEV("section",{className:"manuscript",children:H.hasBody?o.jsxDEV(K81,{value:_,mode:f,onChange:E,onModeChange:r,assist:{entityType:q,frontmatter:$,agents:J}},void 0,!1,void 0,this):o.jsxDEV("p",{className:"status manuscript-empty",children:"This type has no body — its fields are the whole record."},void 0,!1,void 0,this)},void 0,!1,void 0,this),o.jsxDEV("footer",{className:"pipeline",children:[o.jsxDEV("button",{type:"submit",className:"save-btn",disabled:c.kind==="saving",children:c.kind==="saving"?"Saving…":"Save"},void 0,!1,void 0,this),v?.directorySync&&o.jsxDEV(F81,{view:Af({save:c,git:v.git,baselineCommit:F1}),gitConfigured:v.git!==null},void 0,!1,void 0,this),o.jsxDEV(V81,{state:v?.directorySync&&c.kind==="saved"&&!c.noop?{kind:"idle"}:c,onReload:()=>{if(L.kind==="edit")R1(L.entity.id)}},void 0,!1,void 0,this),o.jsxDEV("span",{className:"cms-mobile-save-status",children:[o.jsxDEV("b",{children:c.kind==="saving"?"Saving changes":c.kind==="saved"?"All changes saved":"Entity pipeline"},void 0,!1,void 0,this),v?.git?.lastCommit?`db → file → ${v.git.lastCommit.slice(0,7)}`:"entity db"]},void 0,!0,void 0,this),o.jsxDEV("span",{className:"spacer"},void 0,!1,void 0,this),L.kind==="edit"&&!H.isSingleton&&o.jsxDEV(o.Fragment,{children:[o.jsxDEV("button",{type:"button",className:"btn danger",onClick:()=>Y1(!0),children:"Delete"},void 0,!1,void 0,this),o.jsxDEV("details",{className:"cms-mobile-more",children:[o.jsxDEV("summary",{"aria-label":"More document actions",children:"•••"},void 0,!1,void 0,this),o.jsxDEV("button",{type:"button",onClick:(m1)=>{m1.currentTarget.closest("details")?.removeAttribute("open"),Y1(!0)},children:"Delete entry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$1&&L.kind==="edit"&&o.jsxDEV(G81,{entityId:L.entity.id,deleting:z1,onCancel:()=>Y1(!1),onConfirm:v0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function S4(Z){if(Z instanceof gK&&Z.issues.length>0)return Z.issues.map((X)=>`${X.path.join(".")}: ${X.message}`).join("; ");return Z instanceof Error?Z.message:String(Z)}var yz=`
|
|
1604
1607
|
.studio { display: flex; flex-direction: column; flex: 1; min-height: 0; }
|
|
1605
1608
|
.boot-status { padding: 48px; }
|
|
1606
1609
|
.spacer { flex: 1; }
|
|
@@ -1745,8 +1748,6 @@ ${kK}`},void 0,!1,void 0,this),o.jsxDEV("header",{className:"crumbbar",children:
|
|
|
1745
1748
|
.pipeline .status { font-family: var(--console-mono); font-size: 11.5px; }
|
|
1746
1749
|
.pipeline .status-ok { color: color-mix(in srgb, var(--console-ok) 75%, var(--console-frame)); }
|
|
1747
1750
|
.pipeline .status-error { color: color-mix(in srgb, var(--console-err) 70%, var(--console-frame)); }
|
|
1748
|
-
.pipeline .reload { font-family: var(--console-ui); font-size: 12px; border: 1px solid color-mix(in srgb, var(--console-bg) 40%, transparent); background: none; color: var(--console-frame); border-radius: 5px; padding: 3px 10px; cursor: pointer; margin-left: 6px; }
|
|
1749
|
-
.pipeline .reload:hover { border-color: var(--console-frame); }
|
|
1750
1751
|
|
|
1751
1752
|
/* ── instrument strip: entity db → exported to file → committed ── */
|
|
1752
1753
|
.stations-wrap { display: flex; align-items: center; min-width: 0; }
|
|
@@ -1771,4 +1772,4 @@ ${kK}`},void 0,!1,void 0,this),o.jsxDEV("header",{className:"crumbbar",children:
|
|
|
1771
1772
|
.status-ok { color: var(--console-ok); }
|
|
1772
1773
|
`;var Sf=T5(uK(),1),cN=document.querySelector("[data-cms-root]");if(cN)cN.textContent="",Tf.createRoot(cN).render(Sf.jsxDEV(yf,{},void 0,!1,void 0,this));
|
|
1773
1774
|
|
|
1774
|
-
//# debugId=
|
|
1775
|
+
//# debugId=DBFB663A65C6AC6464756E2164756E21
|