geneseed 3.6.0 → 3.7.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/CHANGELOG.md +49 -0
- package/DESIGN.md +6 -6
- package/QUICKSTART.md +1 -1
- package/README.md +32 -30
- package/SETUP.md +34 -8
- package/SHIPPED.md +3 -3
- package/adapters/claude-code/skills/geneseed/SKILL.md +1 -1
- package/adapters/openclaude/README.md +64 -0
- package/adapters/opencode/plugins/geneseed-workflow.js +1 -1
- package/adapters/opencode/workflows/_runtime.js +1 -1
- package/docs/extending.md +18 -6
- package/docs/web/exclusions.md +1 -0
- package/docs/web/footprint.md +1 -1
- package/docs/web/harnesses.md +14 -14
- package/docs/web/install-quick.md +1 -1
- package/docs/web/rules.md +1 -1
- package/docs/web/themes-author.md +1 -1
- package/docs/web-ui.md +1 -1
- package/harness.config.json +1 -1
- package/js/README.md +3 -3
- package/js/build/driver.mjs +50 -9
- package/js/build/emit-claude.mjs +1 -1
- package/js/build/generate.mjs +2 -1
- package/js/build/source.mjs +5 -4
- package/js/hosts/hooks.mjs +11 -4
- package/js/hosts/hosts.mjs +17 -2
- package/js/hosts/installs.mjs +32 -2
- package/js/hosts/mcp.mjs +8 -1
- package/js/hosts/settings.mjs +4 -1
- package/js/inspect/diff.mjs +1 -1
- package/js/inspect/doctor.mjs +3 -3
- package/js/inspect/excludes.mjs +7 -5
- package/js/inspect/status.mjs +4 -4
- package/js/maintain/migrate.mjs +1 -1
- package/js/maintain/setup.mjs +7 -2
- package/js/maintain/uninstall.mjs +3 -3
- package/js/web/actions.mjs +7 -5
- package/js/web/api.mjs +2 -2
- package/js/web/docs.mjs +1 -1
- package/package.json +2 -1
- package/src/doctrines/README.md +3 -2
- package/src/doctrines/comms.md +53 -0
- package/src/doctrines/process.md +0 -26
- package/src/skills/parallel-agents.md +1 -1
- package/src/skills/pipeline.md +1 -1
- package/src/skills/token-report/SKILL.md +2 -1
- package/src/skills/token-report/VENDOR.md +3 -3
- package/src/skills/token-report/scripts/token_report.mjs +14 -7
- package/src/skills/workflow.md +2 -2
- package/themes/_TEMPLATE.json +4 -2
- package/themes/biker.json +4 -2
- package/themes/commentator.json +4 -2
- package/themes/cyberpunk.json +4 -2
- package/themes/gamer.json +4 -2
- package/themes/imperial.json +4 -2
- package/themes/joker.json +4 -2
- package/themes/marvin.json +4 -2
- package/themes/mean.json +4 -2
- package/themes/military.json +4 -2
- package/themes/neutral.json +4 -2
- package/themes/pirate.json +4 -2
- package/themes/sports.json +4 -2
- package/themes/verstappen.json +4 -2
- package/themes/wizard.json +4 -2
- package/web/dist/assets/{Activity-Flgf4kHy.js → Activity-CH-7cPIM.js} +1 -1
- package/web/dist/assets/{ActivityDetail-DIpr85nh.js → ActivityDetail-DZvz0xS5.js} +1 -1
- package/web/dist/assets/{CatalogRow-CjyLjaLb.js → CatalogRow-DftXpZHY.js} +1 -1
- package/web/dist/assets/{Diff-Deisdha8.js → Diff-DvwdG0L9.js} +1 -1
- package/web/dist/assets/{Docs-DGUdY4l4.js → Docs-DrJNDPwI.js} +1 -1
- package/web/dist/assets/{Doctor-F74lJ69P.js → Doctor-OTmwmYZg.js} +1 -1
- package/web/dist/assets/{GreenhouseView-D072lBiD.js → GreenhouseView-XxrAdriX.js} +1 -1
- package/web/dist/assets/Harness-C_LYNk5c.js +1 -0
- package/web/dist/assets/{JournalView-DWFqZ0Iw.js → JournalView-BcuyeEaR.js} +1 -1
- package/web/dist/assets/{Laws-BN6g3HU7.js → Laws-CWHrTKY4.js} +1 -1
- package/web/dist/assets/{Library-CDOv4emM.js → Library-CA9IHghn.js} +1 -1
- package/web/dist/assets/{OperatorHudView-CwNIUVX8.js → OperatorHudView-BMRY1Tt4.js} +1 -1
- package/web/dist/assets/{Profile-CpP9BTne.js → Profile-wceET1JY.js} +1 -1
- package/web/dist/assets/{Rules-DFXsUCB7.js → Rules-BEXvY4Tx.js} +1 -1
- package/web/dist/assets/{Settings-BqZVUtJ5.js → Settings-DS2zF0Ez.js} +1 -1
- package/web/dist/assets/{Skills-Cu6kBgfF.js → Skills-DahlOJuI.js} +1 -1
- package/web/dist/assets/{drawable-BgfrEBer.js → drawable-BTHjTzF7.js} +1 -1
- package/web/dist/assets/{index-CAqrWhKl.js → index-AN5Emnrg.js} +2 -2
- package/web/dist/assets/{lawCats-BLgxl151.js → lawCats-Btjp3Hk_.js} +1 -1
- package/web/dist/index.html +1 -1
- package/web/src/pages/Laws.jsx +6 -2
- package/web/dist/assets/Harness-DNRP2Va7.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{i as t,t as n}from"./react-DbkvxWG5.js";import{f as r,i,n as a,rt as o,t as s}from"./index-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{i as t,t as n}from"./react-DbkvxWG5.js";import{f as r,i,n as a,rt as o,t as s}from"./index-AN5Emnrg.js";import{t as c}from"./Markdown-BQAvN8xx.js";var l=e(t(),1),u=n();function d(){let{data:e,error:t,loading:n,reload:d}=r(()=>o.profile(),[]),[f,p]=(0,l.useState)(``),[m,h]=(0,l.useState)(``),[g,_]=(0,l.useState)(!1),[v,y]=(0,l.useState)(``),[b,x]=(0,l.useState)(null),[S,C]=(0,l.useState)(!1),[w,T]=(0,l.useState)(null);e&&e!==w&&(T(e),h(e.fingerprint||``),S?C(!1):p(e.text||``),x(t=>t||((e.text||``).trim()?`view`:`edit`)));let E=!!e&&f!==(e.text||``);return(0,l.useEffect)(()=>{if(!E)return;let e=e=>{e.preventDefault(),e.returnValue=``};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[E]),n&&!e?(0,u.jsx)(i,{}):t?(0,u.jsx)(a,{error:t}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`head-row mb-16`,children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`div`,{className:`eyebrow`,children:`identity · yours`}),(0,u.jsx)(`h1`,{className:`h`,children:`Profile`}),(0,u.jsxs)(`p`,{className:`sub`,children:[`Who you are and how you like to work, from `,(0,u.jsx)(`code`,{className:`mono`,children:`PROFILE.md`}),` `,`beside the deployed AGENT.md. Unlike `,(0,u.jsx)(`code`,{className:`mono`,children:`user-rules.md`}),`, it is identity, not rules — it colours how the agent works but never binds (precedence is Laws, then rules, then this). Seeded once, never overwritten by an update. Prefer not to write it by hand? Ask the agent to run the `,(0,u.jsx)(`code`,{className:`mono`,children:`profile`}),` skill — it interviews you and drafts this file with your consent.`]})]}),(0,u.jsxs)(`div`,{className:`row`,style:{display:`flex`,alignItems:`center`,gap:12},children:[(0,u.jsx)(s,{"aria-label":`Profile mode`,children:[[`view`,`View`],[`edit`,`Edit`]].map(([e,t])=>(0,u.jsx)(`button`,{className:b===e?`on`:``,onClick:()=>x(e),children:t},e))}),b===`edit`&&(0,u.jsx)(`button`,{className:`btn`,disabled:!E||g,onClick:async()=>{_(!0),y(``);try{let e=await o.profileSave({text:f,fingerprint:m});e.ok?(h(e.fingerprint||``),y(`Saved.`),x(`view`),d()):(C(!0),y(`${e.detail||`PROFILE.md changed on disk since you opened it.`} Your edit is kept — Save again to replace the newer version with it.`),d())}catch(e){y(e.message)}finally{_(!1)}},children:g?`Saving…`:`Save`})]})]}),v?(0,u.jsx)(`p`,{className:`sub rule-notice`,children:v}):null,b===`edit`?(0,u.jsx)(`textarea`,{className:`rule-body-input`,style:{width:`100%`,minHeight:`60vh`,fontFamily:`var(--mono, monospace)`},value:f,onChange:e=>p(e.target.value),spellCheck:!1,"aria-label":`Profile markdown`}):f.trim()?(0,u.jsx)(`div`,{className:`card pad-lg`,children:(0,u.jsx)(c,{body:f})}):(0,u.jsx)(`div`,{className:`card pad-lg`,children:(0,u.jsxs)(`p`,{className:`sub`,style:{margin:0},children:[`No profile yet — switch to Edit to write one, or ask the agent to run the`,` `,(0,u.jsx)(`code`,{className:`mono`,children:`profile`}),` skill.`]})})]})}export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{i as t,t as n}from"./react-DbkvxWG5.js";import{f as r,i,n as a,rt as o}from"./index-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{i as t,t as n}from"./react-DbkvxWG5.js";import{f as r,i,n as a,rt as o}from"./index-AN5Emnrg.js";var s=e(t(),1),c=n(),l={title:``,body:``,scope:`project`,trial_until:``};function u({initial:e,onCancel:t,onSave:n,busy:r}){let[i,a]=(0,s.useState)(e),o=e=>t=>a({...i,[e]:t.target.value}),l=i.title.trim()&&i.body.trim();return(0,c.jsxs)(`div`,{className:`rule-form`,children:[(0,c.jsx)(`input`,{className:`lib-filter`,type:`text`,value:i.title,onChange:o(`title`),placeholder:`Title — short and imperative (e.g. No emoji in commit subjects)`,"aria-label":`Rule title`}),(0,c.jsx)(`textarea`,{className:`rule-body-input`,value:i.body,onChange:o(`body`),rows:4,placeholder:`The rule, stated plainly and testably, in one short paragraph.`,"aria-label":`Rule body`}),(0,c.jsxs)(`div`,{className:`row`,style:{flexWrap:`wrap`},children:[(0,c.jsxs)(`select`,{className:`sel`,value:i.scope,onChange:o(`scope`),"aria-label":`Rule scope`,children:[(0,c.jsx)(`option`,{value:`project`,children:`scope: project (this repo, committable)`}),(0,c.jsx)(`option`,{value:`user`,children:`scope: user (personal)`})]}),(0,c.jsxs)(`label`,{className:`rule-trial-label`,children:[`trial until`,(0,c.jsx)(`input`,{className:`lib-filter rule-date`,type:`date`,value:i.trial_until,onChange:o(`trial_until`),"aria-label":`Trial until date (optional)`})]}),(0,c.jsxs)(`div`,{style:{marginLeft:`auto`,display:`flex`,gap:8},children:[(0,c.jsx)(`button`,{className:`btn sm`,disabled:!l||r,onClick:()=>n(i),children:r?`Saving…`:`Save rule`}),(0,c.jsx)(`button`,{className:`btn ghost sm`,disabled:r,onClick:t,children:`Cancel`})]})]})]})}function d({rule:e,isOpen:t,onToggle:n,onEdit:r,onDelete:i,onGraduate:a}){return(0,c.jsxs)(`div`,{className:`rule-row ${t?`on`:``}`,children:[(0,c.jsxs)(`button`,{className:`rule-head`,onClick:n,"aria-expanded":t,children:[(0,c.jsxs)(`span`,{className:`rule-no`,children:[`R`,e.id]}),(0,c.jsx)(`span`,{className:`rule-title`,children:e.title}),(0,c.jsx)(`span`,{className:`rule-chip ${e.scope===`user`?`user`:``}`,children:e.scope}),e.status===`trial`&&(0,c.jsx)(`span`,{className:`rule-chip trial ${e.overdue?`overdue`:``}`,children:e.overdue?`review due`:`trial · ${e.trial_until}`})]}),t&&(0,c.jsxs)(`div`,{className:`rule-expand`,children:[(0,c.jsx)(`p`,{children:e.body}),e.source?(0,c.jsxs)(`div`,{className:`rule-src`,children:[`source: `,e.source]}):null,(0,c.jsxs)(`div`,{className:`row`,style:{marginTop:10,gap:8},children:[e.status===`trial`&&(0,c.jsx)(`button`,{className:`btn sm`,onClick:a,title:`Adopt for good — drop the trial marker`,children:`Graduate`}),(0,c.jsx)(`button`,{className:`btn ghost sm`,onClick:r,children:`Edit`}),(0,c.jsx)(`button`,{className:`btn ghost sm`,onClick:i,children:`Retire`})]})]})]})}function f(){let[e,t]=(0,s.useState)(0),{data:n,error:f}=r(()=>o.rules(),[e]),[p,m]=(0,s.useState)(null),[h,g]=(0,s.useState)(null),[_,v]=(0,s.useState)(!1),[y,b]=(0,s.useState)(``),x=()=>t(e=>e+1);if(f)return(0,c.jsx)(a,{error:f});if(!n)return(0,c.jsx)(i,{});let S=n.rules||[],{stats:C}=n,w=Math.round(Math.max(C.rules/C.max_rules,C.tokens/C.max_tokens)*100),T=w>=100?`over`:w>=70?`warn`:``,E=async e=>{v(!0),b(``);try{await o.rulesMutate({...e,fingerprint:n.fingerprint}),g(null)}catch(e){b(e.status===409?`user-rules.md changed on disk (an agent session?) — reloaded the fresh copy; re-apply your edit.`:e.message)}finally{v(!1),x()}},D=e=>{window.confirm(`Retire rule R${e.id} — “${e.title}”? It is removed from user-rules.md.`)&&E({op:`delete`,id:e.id})},O=e=>E({op:`update`,id:e.id,title:e.title,body:e.body,scope:e.scope,source:e.source,trial_until:``});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(`div`,{className:`head-row mb-16`,children:[(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`div`,{className:`eyebrow`,children:`governance · yours`}),(0,c.jsx)(`h1`,{className:`h`,children:`Rules`}),(0,c.jsxs)(`p`,{className:`sub`,children:[`Your own standing rules, from `,(0,c.jsx)(`code`,{className:`mono`,children:`user-rules.md`}),` beside the deployed AGENT.md. The agent obeys them with the same force as the Laws — they may tighten a Law, never repeal one — and no update ever touches the file. Keep the set small: every rule is loaded every session.`]})]}),n.exists&&h===null&&(0,c.jsx)(`button`,{className:`btn`,onClick:()=>g(`new`),children:`Add rule`})]}),n.exists&&(0,c.jsxs)(`div`,{className:`rules-meter ${T}`,children:[(0,c.jsx)(`div`,{className:`rules-meter-bar`,children:(0,c.jsx)(`div`,{className:`rules-meter-fill`,style:{width:`${Math.min(w,100)}%`}})}),(0,c.jsxs)(`span`,{className:`rules-meter-label`,children:[C.rules,`/`,C.max_rules,` rules · ~`,C.tokens,` tokens`,w>=100?` — over budget: a bloated rule set dilutes the rules that matter`:w>=70?` — getting heavy; consider merging or pruning`:``]})]}),y?(0,c.jsx)(`p`,{className:`sub rule-notice`,children:y}):null,(n.warnings||[]).map(e=>(0,c.jsxs)(`p`,{className:`sub rule-notice`,children:[`format warning: `,e]},e)),h===`new`&&(0,c.jsxs)(`div`,{className:`card pad-lg mb-16`,children:[(0,c.jsx)(`div`,{className:`eyebrow`,style:{marginBottom:10},children:`new rule`}),(0,c.jsx)(u,{initial:l,busy:_,onCancel:()=>g(null),onSave:e=>E({op:`add`,...e})})]}),n.exists?S.length===0&&h!==`new`?(0,c.jsxs)(`div`,{className:`empty`,style:{padding:48},children:[(0,c.jsx)(`div`,{className:`big`,children:`No rules yet`}),`The file is seeded and loaded every session — it is just empty. Add your first standing rule here, ask the agent for one in-session (the rule skill), or promote a recurring memory fact from the Library.`]}):(0,c.jsx)(`div`,{className:`card rules-list`,children:S.map(e=>h===e.id?(0,c.jsx)(`div`,{className:`rule-row on`,children:(0,c.jsx)(`div`,{className:`rule-expand`,style:{paddingTop:14},children:(0,c.jsx)(u,{initial:{title:e.title,body:e.body,scope:e.scope,trial_until:e.trial_until},busy:_,onCancel:()=>g(null),onSave:t=>E({op:`update`,id:e.id,source:e.source,...t})})})},e.id):(0,c.jsx)(d,{rule:e,isOpen:p===e.id,onToggle:()=>m(p===e.id?null:e.id),onEdit:()=>{m(e.id),g(e.id)},onDelete:()=>D(e),onGraduate:()=>O(e)},e.id))}):(0,c.jsxs)(`div`,{className:`empty`,style:{padding:48},children:[(0,c.jsx)(`div`,{className:`big`,children:`No user-rules.md here yet`}),`The build seeds it beside AGENT.md — run a build/update from the Dashboard (or`,` `,(0,c.jsx)(`code`,{className:`mono`,children:`geneseed update`}),`) and it appears, ready for your rules.`]})]})}export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{i as t,t as n}from"./react-DbkvxWG5.js";import{_ as r,c as i,g as a,h as o,m as s,p as c,rt as l,t as u,v as d}from"./index-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{i as t,t as n}from"./react-DbkvxWG5.js";import{_ as r,c as i,g as a,h as o,m as s,p as c,rt as l,t as u,v as d}from"./index-AN5Emnrg.js";var f=e(t(),1),p=n();function m(){let[e,t]=(0,f.useState)(!1),[n,r]=(0,f.useState)(!1);return e?(0,p.jsxs)(`p`,{className:`sub`,children:[`Server stopped. You can close this tab and reopen any time with `,(0,p.jsx)(`code`,{children:`geneseed web`}),`.`]}):(0,p.jsxs)(`div`,{className:`row`,children:[(0,p.jsxs)(`button`,{className:`btn ghost`,onClick:async()=>{if(window.confirm(`Restart the local Geneseed server? The console reconnects in a moment.`)){r(!0);try{await l.restart()}catch{}s(c)}},disabled:n,children:[(0,p.jsx)(i,{name:`refresh`}),n?`Restarting…`:`Restart server`]}),(0,p.jsxs)(`button`,{className:`btn ghost`,onClick:async()=>{if(window.confirm(`Stop the local Geneseed server? The console goes offline until you start it again.`)){try{await l.shutdown()}catch{}t(!0)}},disabled:n,children:[(0,p.jsx)(i,{name:`x`}),`Stop server`]})]})}var h=`https://github.com/Arylmera/Geneseed`,g=`https://github.com/Arylmera`;function _(){let[e,t]=(0,f.useState)(h),[n,r]=(0,f.useState)(!0);return(0,f.useEffect)(()=>{Promise.resolve(l.docsPage?.(`about`)).then(e=>{e?.repo&&(t(e.repo),r(!!e.repo_is_github))}).catch(()=>{})},[]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`div`,{className:`card pad-lg mb-16`,children:[(0,p.jsx)(`div`,{className:`card-head`,children:(0,p.jsx)(`h3`,{children:`About`})}),(0,p.jsx)(`p`,{className:`sub mb-16`,children:`Geneseed is a portable, theme-able harness you implant once and use everywhere to grow a disciplined AI coding agent. One canonical source, many voices, MIT-licensed.`}),(0,p.jsxs)(`div`,{className:`row wrap gap-10`,children:[(0,p.jsxs)(`a`,{className:`btn ghost`,href:e,target:`_blank`,rel:`noreferrer`,children:[(0,p.jsx)(i,{name:`github`}),n?`Source on GitHub`:`Source repo`]}),n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`a`,{className:`btn ghost`,href:e+`/issues`,target:`_blank`,rel:`noreferrer`,children:[(0,p.jsx)(i,{name:`external`}),`Issues`]}),(0,p.jsxs)(`a`,{className:`btn ghost`,href:e+`/blob/main/LICENSE`,target:`_blank`,rel:`noreferrer`,children:[(0,p.jsx)(i,{name:`external`}),`MIT License`]})]})]})]}),(0,p.jsxs)(`div`,{className:`card pad-lg`,children:[(0,p.jsx)(`div`,{className:`card-head`,children:(0,p.jsx)(`h3`,{children:`Creator`})}),(0,p.jsxs)(`p`,{className:`sub mb-16`,children:[`Geneseed is built by `,(0,p.jsx)(`strong`,{children:`Guillaume Lemer`}),`. It started as a personal, Obsidian-vault-grown agent operating system and was distilled into the repo you are running. Implant it once, and a disciplined agent grows around the same inherited rules, skills, and memory in every repo it follows you into.`]}),(0,p.jsx)(`p`,{className:`sub mb-16`,children:`If you find this useful, a star on the repo or an issue with feedback is the best way to help shape what comes next.`}),(0,p.jsx)(`div`,{className:`row wrap gap-10`,children:(0,p.jsxs)(`a`,{className:`btn ghost`,href:g,target:`_blank`,rel:`noreferrer`,children:[(0,p.jsx)(i,{name:`github`}),`@Arylmera on GitHub`]})})]})]})}function v({overview:e,onAction:t,flavour:n,onFlavour:s,accentMode:c,onAccentMode:l,layout:f,onLayout:h}){let g=e?.install,v=e?.footprint,y=e=>{g&&e!==v&&window.confirm(`Rebuild ${g.host} · ${g.scope} with the “${e}” footprint? It rebuilds in place, non-destructive.`)&&t?.(`install`,{...g,footprint:e})};return(0,p.jsxs)(`div`,{className:`narrow-lg`,children:[(0,p.jsx)(`div`,{className:`head-row mb-18`,children:(0,p.jsxs)(`div`,{children:[(0,p.jsx)(`h1`,{className:`h`,children:`Settings`}),(0,p.jsx)(`p`,{className:`sub`,children:`Console direction, harness footprint, machine maintenance (incl. git-pull update), server control, and about. See per-install detail in the Harness tab; build from there and the Dashboard.`})]})}),n&&s&&(0,p.jsxs)(`div`,{className:`card pad-lg mb-16`,children:[(0,p.jsx)(`div`,{className:`card-head`,children:(0,p.jsx)(`h3`,{children:`Console direction`})}),(0,p.jsxs)(`p`,{className:`sub mb-16`,children:[d.length,` takes on the same data. Pick a direction; it applies instantly and persists across reloads.`]}),c&&l&&(0,p.jsxs)(`div`,{className:`dir-layout`,children:[(0,p.jsx)(`span`,{className:`tick`,id:`dir-accent-label`,children:`Accent`}),(0,p.jsx)(u,{"aria-labelledby":`dir-accent-label`,children:r.map(e=>(0,p.jsx)(`button`,{className:c===e.id?`on`:``,onClick:()=>l(e.id),"aria-pressed":c===e.id,title:e.tagline,children:e.short},e.id))}),(0,p.jsx)(`span`,{className:`dir-layout-note sub`,role:`status`,"aria-live":`polite`,children:r.find(e=>e.id===c)?.tagline??``})]}),f&&h&&(0,p.jsxs)(`div`,{className:`dir-layout`,children:[(0,p.jsx)(`span`,{className:`tick`,id:`dir-layout-label`,children:`Dashboard layout`}),(0,p.jsx)(u,{"aria-labelledby":`dir-layout-label`,children:o.map(e=>(0,p.jsx)(`button`,{className:f===e.id?`on`:``,onClick:()=>h(e.id),"aria-pressed":f===e.id,title:e.tagline,children:e.short},e.id))}),(0,p.jsx)(`span`,{className:`dir-layout-note sub`,role:`status`,"aria-live":`polite`,children:f===`auto`?`Following the theme: ${o.find(e=>e.id===a(n))?.short??``}.`:o.find(e=>e.id===f)?.tagline??``})]}),(0,p.jsx)(`div`,{className:`dir-grid`,children:d.map(e=>(0,p.jsxs)(`button`,{className:`dir-tile dir-${e.id} ${n===e.id?`on`:``}`,onClick:()=>s(e.id),"aria-pressed":n===e.id,children:[(0,p.jsxs)(`span`,{className:`dir-thumb`,"aria-hidden":`true`,children:[(0,p.jsx)(`span`,{className:`dir-thumb-rail`}),(0,p.jsx)(`span`,{className:`dir-thumb-bar`}),(0,p.jsx)(`span`,{className:`dir-thumb-bar`,style:{width:`70%`}}),(0,p.jsx)(`span`,{className:`dir-thumb-bar`,style:{width:`52%`}}),(0,p.jsx)(`span`,{className:`dir-thumb-dot`})]}),(0,p.jsxs)(`span`,{className:`dir-meta`,children:[(0,p.jsxs)(`span`,{className:`dir-name`,children:[e.short,n===e.id&&(0,p.jsx)(`span`,{className:`dir-check`,children:`● active`})]}),(0,p.jsx)(`span`,{className:`dir-tag`,children:e.tagline})]})]},e.id))})]}),g&&v&&(0,p.jsxs)(`div`,{className:`card pad-lg mb-16`,children:[(0,p.jsx)(`div`,{className:`card-head`,children:(0,p.jsx)(`h3`,{children:`Harness footprint`})}),(0,p.jsxs)(`p`,{className:`sub mb-16`,children:[`How much of the Rules `,(0,p.jsx)(`code`,{children:`AGENT.md`}),` carries inline each turn, for the current install (`,(0,p.jsxs)(`code`,{children:[g.host,` · `,g.scope]}),`). A token-cost dial; every Rule stays in force either way. Changing it rebuilds the install in place. `,(0,p.jsx)(`a`,{href:`#/docs/footprint`,children:`Learn more →`})]}),(0,p.jsxs)(`div`,{className:`dir-layout`,children:[(0,p.jsx)(`span`,{className:`tick`,id:`footprint-label`,children:`Footprint`}),(0,p.jsx)(u,{"aria-labelledby":`footprint-label`,children:[`full`,`lean`].map(e=>(0,p.jsx)(`button`,{className:v===e?`on`:``,onClick:()=>y(e),"aria-pressed":v===e,children:e},e))}),(0,p.jsx)(`span`,{className:`dir-layout-note sub`,role:`status`,"aria-live":`polite`,children:v===`lean`?`Lean: terse rule lines + a pointer to the full law file (~40% smaller, lighter context per turn).`:`Full: every Rule’s complete text and rationale inlined (maximum guidance, largest context).`})]})]}),(0,p.jsxs)(`div`,{className:`card pad-lg mb-16`,children:[(0,p.jsx)(`div`,{className:`card-head`,children:(0,p.jsx)(`h3`,{children:`Maintenance`})}),(0,p.jsxs)(`p`,{className:`sub mb-16`,children:[`Put `,(0,p.jsx)(`code`,{children:`geneseed`}),` on your PATH so it runs from any directory, or remove a global install. Your memory store is always kept. Each runs live in the console.`]}),(0,p.jsxs)(`div`,{className:`row wrap gap-10`,children:[(0,p.jsxs)(`button`,{className:`btn ghost`,onClick:()=>t(`update`),children:[(0,p.jsx)(i,{name:`download`}),`Update (git pull + rebuild)`]}),(0,p.jsxs)(`button`,{className:`btn ghost`,onClick:()=>t(`link`),children:[(0,p.jsx)(i,{name:`external`}),`Add to PATH`]}),(0,p.jsx)(`button`,{className:`btn ghost`,onClick:()=>t(`unlink`),children:`Remove from PATH`}),(0,p.jsxs)(`button`,{className:`btn ghost`,onClick:()=>{window.confirm(`Uninstall the global Geneseed harness? Your memory store is kept; everything else this install added is removed.`)&&t(`uninstall`)},children:[(0,p.jsx)(i,{name:`clear`}),`Uninstall`]})]})]}),(0,p.jsxs)(`div`,{className:`card pad-lg mb-16`,children:[(0,p.jsx)(`div`,{className:`card-head`,children:(0,p.jsx)(`h3`,{children:`Server`})}),(0,p.jsx)(`p`,{className:`sub mb-16`,children:`The console runs a small local server. Leave it running in the background and reopen any time, or stop it when you are done.`}),(0,p.jsx)(m,{})]}),(0,p.jsx)(_,{})]})}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{i as t,t as n}from"./react-DbkvxWG5.js";import{C as r,f as i,i as a,n as o,rt as s}from"./index-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{i as t,t as n}from"./react-DbkvxWG5.js";import{C as r,f as i,i as a,n as o,rt as s}from"./index-AN5Emnrg.js";import{t as c}from"./lawCats-Btjp3Hk_.js";import{t as l}from"./Markdown-BQAvN8xx.js";import{t as u}from"./CatalogRow-DftXpZHY.js";import{t as d}from"./FilterInput-BakJLvaV.js";import{t as f}from"./StatusBadge-Cg6j-NJL.js";var p=e(t(),1),m=n(),h={design:{label:`Design`,c:c.context},build:{label:`Build`,c:c.craft},review:{label:`Review`,c:c.security},ship:{label:`Ship`,c:c.process},understand:{label:`Understand`,c:c.verify},learn:{label:`Learn`,c:c.comms},harness:{label:`Harness`,c:`oklch(0.76 0.07 250)`},personal:{label:`Personal`,c:`oklch(0.72 0.025 250)`}},g=[`design`,`build`,`review`,`ship`,`understand`,`learn`,`harness`,`personal`];function _({skill:e,isOpen:t,onToggle:n}){let r=h[e.cat]||h.build,i=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`span`,{className:`skill-name`,children:[(0,m.jsx)(`span`,{className:`x`,children:`›`}),e.name,(0,m.jsx)(f,{status:e.status})]}),(0,m.jsx)(`span`,{className:`skill-desc`,children:e.desc}),(0,m.jsxs)(`span`,{className:`law-class`,children:[(0,m.jsx)(`span`,{className:`cdot`}),r.label]})]});return(0,m.jsx)(u,{kind:`skill`,addr:e.name,isOpen:t,onToggle:n,className:`skill-row ${t?`on`:``}`,style:{"--cc":r.c},head:i,expandClassName:`law-expand skill-expand`,renderBody:e=>(0,m.jsx)(`div`,{className:`skill-doc`,children:(0,m.jsx)(l,{body:e.body,links:e.links||[]})}),srcLine:`$ geneseed skill ${e.name} · skills/${e.name}.md`})}function v({selected:e,dataRev:t}){let{data:n,error:c}=i(()=>s.catalog(`skills`),[t],`catalog:skills`),[l,u]=(0,p.useState)(`all`),[f,v]=(0,p.useState)(``),y=e||null,b=e=>r(y===e?`#/skills`:`#/item/skill/${e}`);if(c)return(0,m.jsx)(o,{error:c});if(!n)return(0,m.jsx)(a,{});let x=(n.items||[]).map(e=>({name:e.name,desc:e.desc,status:e.status,cat:e.klass&&h[e.klass]?e.klass:`build`})),S={};x.forEach(e=>{S[e.cat]=(S[e.cat]||0)+1});let C=x.filter(e=>e.status===`experimental`).length,w=g.filter(e=>e!==`personal`||S.personal>0),T=f.trim().toLowerCase(),E=(l===`all`?x:x.filter(e=>e.cat===l)).filter(e=>!T||`${e.name} ${e.desc}`.toLowerCase().includes(T));return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{className:`head-row mb-16`,children:(0,m.jsxs)(`div`,{children:[(0,m.jsx)(`div`,{className:`eyebrow`,children:`capabilities`}),(0,m.jsx)(`h1`,{className:`h`,children:`Skills`}),(0,m.jsx)(`p`,{className:`sub`,children:`The repeatable workflows the agent runs on demand. Pick a class to filter, or open any skill to read its full procedure.`})]})}),(0,m.jsxs)(`div`,{className:`law-toolbar`,children:[(0,m.jsxs)(`div`,{className:`law-cats`,children:[(0,m.jsxs)(`button`,{className:`law-cat ${l===`all`?`on`:``}`,onClick:()=>u(`all`),children:[(0,m.jsx)(`span`,{children:`All`}),(0,m.jsx)(`span`,{className:`cn`,children:x.length})]}),w.map(e=>(0,m.jsxs)(`button`,{className:`law-cat ${l===e?`on`:``}`,style:{"--cc":h[e].c},onClick:()=>u(e),children:[(0,m.jsx)(`span`,{className:`cdot`}),(0,m.jsx)(`span`,{children:h[e].label}),(0,m.jsx)(`span`,{className:`cn`,children:S[e]||0})]},e))]}),(0,m.jsx)(d,{className:`lib-filter law-filter`,value:f,onChange:v,placeholder:`Filter skills…`,label:`Filter skills`}),(0,m.jsxs)(`span`,{className:`law-readout`,children:[(0,m.jsx)(`b`,{children:E.length}),` skills · `,(0,m.jsx)(`b`,{children:w.length}),` classes ·`,` `,C>0?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`b`,{children:C}),` experimental ·`,` `]}):null,`source `,(0,m.jsx)(`b`,{children:`src/skills/`})]})]}),(0,m.jsxs)(`div`,{className:`card law-wrap`,children:[(0,m.jsxs)(`div`,{className:`skill-rowhead`,children:[(0,m.jsx)(`span`,{children:`Skill`}),(0,m.jsx)(`span`,{children:`Purpose`}),(0,m.jsx)(`span`,{children:`Class`})]}),E.map(e=>(0,m.jsx)(_,{skill:e,isOpen:y===e.name,onToggle:()=>b(e.name)},e.name)),E.length===0&&(0,m.jsx)(`div`,{className:`empty`,style:{padding:32},children:x.length===0?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{className:`big`,children:`Nothing here yet`}),`No skills are deployed; build and install a theme to seed them.`]}):T?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{className:`big`,children:`No matching skills`}),`Nothing matches “`,f.trim(),`”.`]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{className:`big`,children:`No skills in this class`}),`Try another class, or pick All.`]})})]})]})}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as e,Q as t,U as n,X as r,tt as i}from"./index-
|
|
1
|
+
import{P as e,Q as t,U as n,X as r,tt as i}from"./index-AN5Emnrg.js";var a=e=>{let t=1;if(e&&e.getCTM){let n=e.getCTM();n&&(t=(r(n.a*n.a+n.b*n.b)+r(n.c*n.c+n.d*n.d))/2)}return t},o=(e,r,o)=>{let s=t,c=getComputedStyle(e),l=c.strokeLinecap,u=c.vectorEffect===`non-scaling-stroke`?e:null,d=l,f=new Proxy(e,{get(e,t){let r=e[t];return t===i?e:t===`setAttribute`?(...t)=>{if(t[0]===`draw`){let n=t[1].split(` `),r=+n[0],i=+n[1],o=a(u),c=r*-s*o,f=i*s*o+c,p=s*o+(r===0&&i===1||r===1&&i===0?0:10*o)-f;if(l!==`butt`){let t=r===i?`butt`:l;d!==t&&(e.style.strokeLinecap=`${t}`,d=t)}e.setAttribute(`stroke-dashoffset`,`${c}`),e.setAttribute(`stroke-dasharray`,`${f} ${p}`)}return Reflect.apply(r,e,t)}:n(r)?(...t)=>Reflect.apply(r,e,t):r}});return e.getAttribute(`pathLength`)!==`${s}`&&(e.setAttribute(`pathLength`,`${s}`),f.setAttribute(`draw`,`${r} ${o}`)),f},s=(t,n=0,r=0)=>e(t).map(e=>o(e,n,r));export{s as t};
|