@ingit/cli-linux-arm64 0.6.4 → 0.6.6

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.
@@ -1,4 +1,4 @@
1
- import{C as e,S as t,T as n,_ as r,a as i,b as a,c as o,d as s,f as c,g as l,h as u,i as d,l as f,m as p,n as m,o as h,p as g,r as _,s as v,t as y,u as b,v as x,w as S,x as C,y as w}from"./index-CfmvOaXi.js";var T=n(e(),1),E=S();function D(){let[e,n]=(0,T.useState)(null),[r,i]=(0,T.useState)(!1),[a,o]=(0,T.useState)(null);(0,T.useEffect)(()=>{let e=!0;return C().then(t=>{e&&n(t.autoUpdate)}).catch(t=>{e&&o(t instanceof Error?t.message:`Could not load update settings`)}),()=>{e=!1}},[]);let s=async e=>{i(!0),o(null);try{let r=await t(e);n(r.autoUpdate)}catch(e){o(e instanceof Error?e.message:`Could not save update settings`)}finally{i(!1)}};return(0,E.jsxs)(`div`,{style:{padding:18},children:[(0,E.jsx)(`h2`,{style:{margin:`0 0 16px`,fontSize:16},children:`Updates`}),(0,E.jsxs)(`label`,{style:{display:`flex`,gap:10,alignItems:`center`,cursor:`pointer`},children:[(0,E.jsx)(`input`,{type:`checkbox`,checked:e??!1,disabled:e===null||r,onChange:e=>{s(e.target.checked)},style:{accentColor:`#89b4fa`}}),`Install updates automatically`]}),(0,E.jsx)(`p`,{style:{color:`#7f849c`,fontSize:12,lineHeight:1.6,maxWidth:540},children:`When ingit starts, check npm for a newer version and install it using the package manager that owns your global installation (npm, pnpm, Yarn Classic, or Bun).`}),(0,E.jsx)(`p`,{style:{color:`#7f849c`,fontSize:12},children:`Turn this off to manage updates yourself. Changes are saved automatically on this machine and take effect the next time you start ingit.`}),(0,E.jsx)(`div`,{role:`status`,style:{color:`#a6adc8`,fontSize:12},children:r?`Saving…`:e===null&&!a?`Loading…`:``}),a&&(0,E.jsx)(`p`,{role:`alert`,style:{color:`#f38ba8`,fontSize:12},children:a})]})}var O={width:`100%`,border:`1px solid #45475a`,borderRadius:6,background:`#11111b`,color:`#cdd6f4`,fontFamily:`inherit`,fontSize:12,outline:`none`},k={height:30,padding:`0 11px`,border:`1px solid #45475a`,borderRadius:6,background:`#181825`,color:`#bac2de`,fontFamily:`inherit`,fontSize:11,fontWeight:700,cursor:`pointer`},A={...k,border:`1px solid #6d9658`,background:`#8dcf78`,color:`#0b1020`,fontWeight:800},j=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1
+ import{C as e,S as t,T as n,_ as r,a as i,b as a,c as o,d as s,f as c,g as l,h as u,i as d,l as f,m as p,n as m,o as h,p as g,r as _,s as v,t as y,u as b,v as x,w as S,x as C,y as w}from"./index-DaIcumRP.js";var T=n(e(),1),E=S();function D(){let[e,n]=(0,T.useState)(null),[r,i]=(0,T.useState)(!1),[a,o]=(0,T.useState)(null);(0,T.useEffect)(()=>{let e=!0;return C().then(t=>{e&&n(t.autoUpdate)}).catch(t=>{e&&o(t instanceof Error?t.message:`Could not load update settings`)}),()=>{e=!1}},[]);let s=async e=>{i(!0),o(null);try{let r=await t(e);n(r.autoUpdate)}catch(e){o(e instanceof Error?e.message:`Could not save update settings`)}finally{i(!1)}};return(0,E.jsxs)(`div`,{style:{padding:18},children:[(0,E.jsx)(`h2`,{style:{margin:`0 0 16px`,fontSize:16},children:`Updates`}),(0,E.jsxs)(`label`,{style:{display:`flex`,gap:10,alignItems:`center`,cursor:`pointer`},children:[(0,E.jsx)(`input`,{type:`checkbox`,checked:e??!1,disabled:e===null||r,onChange:e=>{s(e.target.checked)},style:{accentColor:`#89b4fa`}}),`Install updates automatically`]}),(0,E.jsx)(`p`,{style:{color:`#7f849c`,fontSize:12,lineHeight:1.6,maxWidth:540},children:`When ingit starts, check npm for a newer version and install it using the package manager that owns your global installation (npm, pnpm, Yarn Classic, or Bun).`}),(0,E.jsx)(`p`,{style:{color:`#7f849c`,fontSize:12},children:`Turn this off to manage updates yourself. Changes are saved automatically on this machine and take effect the next time you start ingit.`}),(0,E.jsx)(`div`,{role:`status`,style:{color:`#a6adc8`,fontSize:12},children:r?`Saving…`:e===null&&!a?`Loading…`:``}),a&&(0,E.jsx)(`p`,{role:`alert`,style:{color:`#f38ba8`,fontSize:12},children:a})]})}var O={width:`100%`,border:`1px solid #45475a`,borderRadius:6,background:`#11111b`,color:`#cdd6f4`,fontFamily:`inherit`,fontSize:12,outline:`none`},k={height:30,padding:`0 11px`,border:`1px solid #45475a`,borderRadius:6,background:`#181825`,color:`#bac2de`,fontFamily:`inherit`,fontSize:11,fontWeight:700,cursor:`pointer`},A={...k,border:`1px solid #6d9658`,background:`#8dcf78`,color:`#0b1020`,fontWeight:800},j=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
2
2
  <path d="m12 3 2.5 5.5L20 11l-5.5 2.5L12 19l-2.5-5.5L4 11l5.5-2.5L12 3Z" />
3
3
  </svg>`;function M(e){let t=new Set(e.map(e=>e.id)),n=typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`,r=`custom-${n}`,i=2;for(;t.has(r);)r=`custom-${n}-${i}`,i+=1;return r}function N(e){let t=new Set(e.map(e=>e.id)),n=typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`,r=`custom-${n}`,i=2;for(;t.has(r);)r=`custom-${n}-${i}`,i+=1;return r}function P({icon:e,customSvg:t,size:n=18,muted:r=!1}){let i=n+10;return(0,E.jsxs)(`svg`,{"aria-hidden":`true`,width:i,height:i,viewBox:`-12 -12 24 24`,style:{display:`block`,flex:`0 0 auto`},children:[(0,E.jsx)(`circle`,{r:`10`,fill:`#11111b`,stroke:r?`#45475a`:`#89b4fa`,strokeWidth:`1.5`}),(0,E.jsx)(b,{icon:e,customSvg:t,color:r?`#6c7086`:`#89b4fa`,size:n})]})}function F(e){return e.map(e=>({...e,label:e.label.trim(),types:e.types.map(e=>e.trim()).filter(Boolean),patterns:e.patterns.map(e=>e.trim()).filter(Boolean),...e.customSvg===void 0?{}:{customSvg:e.customSvg.trim()}}))}function I(e){for(let t of e){if(!t.label.trim())return{id:t.id,message:`Every rule needs a name.`};if(t.enabled&&t.types.length===0&&t.patterns.length===0)return{id:t.id,message:`“${t.label}” needs at least one commit type or message pattern.`};for(let e of t.patterns){let n=g(e);if(n)return{id:t.id,message:`Invalid pattern in “${t.label}”: ${n}`}}if(t.customSvg!==void 0){let e=w(t.customSvg);if(e)return{id:t.id,message:`Invalid custom SVG in “${t.label}”: ${e}`}}}return null}function L(e){let t=e.trim(),n=t.split(/\s+/).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(String.raw`\s+`);return`${/^\w/.test(t)?String.raw`\b`:``}${n}${/\w$/.test(t)?String.raw`\b`:``}`}function R({rule:e,index:t,count:n,onChange:r,onMove:i,onDuplicate:a,onDelete:o}){let[s,c]=(0,T.useState)(e.types.join(`, `)),[l,u]=(0,T.useState)(e.patterns.join(`
4
4
  `)),[d,p]=(0,T.useState)(e.customSvg??``),[m,h]=(0,T.useState)(``),_=e.customSvg===void 0?null:w(d),v=l.split(`
@@ -0,0 +1 @@
1
+ .worktree-section-heading{align-items:center;gap:3px;padding-right:9px;display:flex}.worktree-section-toggle,.worktree-cleanup-trigger{color:#a6adc8;cursor:pointer;background:0 0;border:0;align-items:center;display:flex}.worktree-section-toggle{text-align:left;flex:1;gap:6px;min-width:0;padding:6px 0 6px 14px;font-family:inherit;font-size:12px;font-weight:600}.worktree-section-arrow{font-size:10px;line-height:1;transition:transform .15s}.worktree-section-toggle[aria-expanded=false] .worktree-section-arrow{transform:rotate(-90deg)}.worktree-section-count{color:#a6adc8;background:#313244;border-radius:8px;margin-left:auto;padding:1px 6px;font-size:10px;font-weight:500}.worktree-cleanup-trigger{border-radius:5px;justify-content:center;width:26px;height:26px}.worktree-cleanup-trigger:hover,.worktree-cleanup-trigger:focus-visible{color:#94e2d5;background:#313244}.worktree-cleanup-trigger:disabled{opacity:.45;cursor:default}.worktree-cleanup{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#cdd6f4;-webkit-user-select:text;user-select:text;background:#1e1e2e;border:1px solid #45475a;border-radius:12px;width:min(580px,100vw - 24px);max-height:calc(100dvh - 32px);margin:auto;padding:0;font-size:13px;line-height:1.45;position:fixed;inset:0;box-shadow:0 24px 80px #0009}.worktree-cleanup[open]{flex-direction:column;display:flex}.worktree-cleanup::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0a0a12bd}.worktree-cleanup header{padding:20px 22px 14px}.worktree-cleanup h2{color:#f5e0dc;margin-bottom:5px;font-size:19px;line-height:1.25}.worktree-cleanup p{color:#a6adc8}.worktree-cleanup :is(button,select,input){font:inherit}.worktree-cleanup :is(button,select,input[type=number]){color:#cdd6f4;background:#181825;border:1px solid #45475a;border-radius:5px;padding:5px 9px}.worktree-cleanup :is(button,select,input[type=checkbox]):enabled{cursor:pointer}.worktree-cleanup :is(button,input):disabled{opacity:.5}.worktree-cleanup button:enabled:hover{filter:brightness(1.18)}.worktree-cleanup :focus-visible,.worktree-cleanup-trigger:focus-visible{outline-offset:2px;outline:2px solid #89b4fa}.cleanup-filters{flex-wrap:wrap;align-items:center;gap:8px 14px;padding:0 22px 16px;display:flex}.cleanup-filters label,.cleanup-list-heading label{align-items:center;gap:8px;display:inline-flex}.cleanup-filters label{color:#bac2de;font-size:12px}.cleanup-filters input[type=number]{width:64px}.cleanup-filters .cleanup-refresh{color:#89b4fa;background:0 0;border-color:#0000;margin-left:auto}.cleanup-list-heading,.cleanup-summary,.cleanup-actions{justify-content:space-between;align-items:center;gap:10px;display:flex}.cleanup-list-heading{color:#bac2de;background:#181825;border-block:1px solid #313244;padding:8px 22px;font-size:12px}.worktree-cleanup input[type=checkbox]{accent-color:#94e2d5;flex-shrink:0;width:15px;height:15px}.cleanup-rows{overscroll-behavior:contain;min-height:52px;max-height:42dvh;overflow-y:auto}.cleanup-rows>p{padding:18px 22px}.cleanup-row{cursor:pointer;align-items:center;gap:10px;padding:9px 22px;display:flex}.cleanup-row+.cleanup-row{border-top:1px solid #313244}.cleanup-row:has(:checked){background:#94e2d50d}.cleanup-row:not([data-blocked=true]):hover{background:#31324480}.cleanup-row[data-blocked=true]{cursor:default;color:#a6adc8}.cleanup-checkout{flex:1;gap:1px;min-width:0;display:grid}.cleanup-checkout strong,.cleanup-path{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.cleanup-checkout strong{font-size:13px;font-weight:600}.cleanup-path,.cleanup-age{color:#a6adc8;font-size:11px}.cleanup-reason{color:#f9e2af;overflow-wrap:anywhere;font-size:11px}.worktree-cleanup footer{background:#181825;border-top:1px solid #45475a;gap:12px;padding:14px 22px 16px;display:grid}.cleanup-summary{color:#bac2de;flex-wrap:wrap;font-size:12px}.cleanup-summary strong{color:#94e2d5;font-variant-numeric:tabular-nums;margin-left:4px;font-size:15px}.cleanup-actions{justify-content:flex-end}.cleanup-actions button{padding:7px 12px;font-weight:600}.cleanup-actions .cleanup-remove{color:#181825;background:#f38ba8;border-color:#f38ba8}.worktree-cleanup .cleanup-error{color:#f38ba8;overflow-wrap:anywhere}.patch-grep{color:#cdd6f4;flex-direction:column;flex:1;min-height:0;font-size:12px;display:flex;overflow:hidden}.patch-grep-toolbar{background:#181825;border-bottom:1px solid #313244;flex-shrink:0;padding:20px 24px 16px}.patch-grep-heading,.patch-grep-search-row,.patch-grep-options,.patch-grep-file-heading{align-items:center;gap:12px;display:flex}.patch-grep-heading{justify-content:space-between;margin-bottom:18px}.patch-grep h1{margin:0;font-size:18px;font-weight:600}.patch-grep-heading p{color:#a6adc8;margin:6px 0 0}.patch-grep button,.patch-grep select,.patch-grep input[type=search]{color:#cdd6f4;font:inherit;background:#1e1e2e;border:1px solid #45475a;border-radius:5px;padding:7px 10px}.patch-grep button{cursor:pointer}.patch-grep button:disabled{color:#6c7086;cursor:default}.patch-grep button:focus-visible,.patch-grep select:focus-visible,.patch-grep input:focus-visible{outline-offset:2px;outline:2px solid #89b4fa}.patch-grep input[type=search]{flex:1;min-width:160px;font-family:monospace;font-size:14px}.patch-grep input[type=search]::placeholder{color:#6c7086}.patch-grep input[aria-invalid=true]{border-color:#f38ba8}.patch-grep-search-row select{max-width:280px}.patch-grep-options{color:#a6adc8;flex-wrap:wrap;margin-top:12px}.patch-grep-options label{cursor:pointer;align-items:center;gap:5px;display:inline-flex}.patch-grep-options input{accent-color:#89b4fa}.patch-grep-options select{padding:4px 7px}.patch-grep-options [role=status]{color:#a6adc8;margin-left:auto}.patch-grep-error,.patch-grep-load-errors{color:#f38ba8}.patch-grep-note{color:#a6adc8;margin:12px 0 0}.patch-grep-results{flex:1;min-height:0;padding:20px 24px;overflow:auto}.patch-grep-empty{text-align:center;color:#a6adc8;margin:48px 0;font-size:13px}.patch-grep-file{border:1px solid #313244;border-radius:6px;margin-bottom:16px;overflow:hidden}.patch-grep-file-heading{background:#181825;flex-wrap:wrap;gap:8px;padding:10px 12px}.patch-grep-file-heading strong{overflow-wrap:anywhere;font-family:monospace;font-weight:500}.patch-grep-file-heading>span:last-child{color:#a6adc8;margin-left:auto;font-size:11px}.patch-grep-badge{color:#89b4fa;background:#89b4fa15;border-radius:3px;padding:2px 6px;font-size:10px}.patch-grep-code{background:#11111b;font:12px/1.7 monospace;overflow-x:auto}.patch-grep-line{white-space:pre;min-width:max-content;display:flex}.patch-grep-line code{font:inherit;padding:0 12px}.patch-grep-line-number{box-sizing:border-box;text-align:right;color:#6c7086;-webkit-user-select:none;user-select:none;border-right:1px solid #313244;flex-shrink:0;width:46px;padding-right:8px}.patch-grep-added{background:#a6e3a10c}.patch-grep-removed{background:#f38ba80c}.patch-grep-added code{color:#a6e3a1}.patch-grep-removed code{color:#f38ba8}.patch-grep-header code{color:#89b4fa}.patch-grep-match{box-shadow:inset 3px 0 #f9e2af}.patch-grep-line mark{color:#11111b;background:#f9e2af;border-radius:2px}.patch-grep-gap{color:#6c7086;border-top:1px solid #313244;border-bottom:1px solid #313244;padding:3px 12px}@media (width<=640px){.patch-grep-toolbar,.patch-grep-results{padding:16px 12px}.patch-grep-search-row{flex-wrap:wrap}.patch-grep-search-row input,.patch-grep-search-row select{width:100%;max-width:none}.patch-grep-heading{align-items:flex-start}.patch-grep-heading button{flex-shrink:0}.patch-grep-options [role=status]{width:100%;margin-left:0}}.repository-toolbar{container:repository-toolbar/inline-size}.view-switcher{flex-shrink:0}.view-switcher-tabs{border:1px solid #313244;border-radius:4px;display:flex;overflow:hidden}.view-switcher-tabs button{color:#6c7086;font:inherit;cursor:pointer;background:0 0;border:none;padding:4px 10px;font-size:11px}.view-switcher-tabs button+button{border-left:1px solid #313244}.view-switcher-tabs button[aria-pressed=true][data-view=history]{color:#89b4fa;background:#89b4fa20}.view-switcher-tabs button[aria-pressed=true][data-view=reflog]{color:#f9e2af;background:#f9e2af20}.view-switcher-tabs button[aria-pressed=true][data-view=patch-grep]{color:#a6e3a1;background:#a6e3a120}.view-switcher-tabs button:focus-visible{outline-offset:-2px;outline:2px solid #89b4fa}.view-switcher-select{max-width:130px;font:inherit;cursor:pointer;background:#1e1e2e;border:1px solid #313244;border-radius:4px;padding:3px 6px;font-size:11px;display:none}.view-switcher-select[data-view=history]{color:#89b4fa}.view-switcher-select[data-view=reflog]{color:#f9e2af}.view-switcher-select[data-view=patch-grep]{color:#a6e3a1}.view-switcher-select option{color:#cdd6f4;background:#1e1e2e}.view-switcher-select:focus-visible{outline-offset:2px;outline:2px solid #89b4fa}@container repository-toolbar (width<=800px){.view-switcher-tabs{display:none}.view-switcher-select{display:block}}.image-lightbox{color:#cdd6f4;background:#11111bf5;border:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;position:fixed;inset:0;overflow:hidden}.image-lightbox[open]{flex-direction:column;display:flex}.image-lightbox::backdrop{background:#11111b}.image-lightbox-toolbar{border-bottom:1px solid #313244;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 16px;display:flex}.image-lightbox-title{text-overflow:ellipsis;white-space:nowrap;flex:120px;font-size:13px;overflow:hidden}.image-lightbox-toolbar button{color:inherit;cursor:pointer;background:#313244;border:1px solid #45475a;border-radius:6px;padding:6px 10px}.image-lightbox-toolbar button:hover{background:#45475a}.image-lightbox-toolbar button:focus-visible{outline-offset:2px;outline:2px solid #89b4fa}.image-lightbox-toolbar output{text-align:center;font-variant-numeric:tabular-nums;min-width:48px;font-size:12px}.image-lightbox-viewport{overscroll-behavior:contain;overflow-anchor:none;flex:1;min-height:0;overflow:auto}.image-lightbox-canvas{box-sizing:border-box;justify-content:center;align-items:center;width:max-content;min-width:100%;height:max-content;min-height:100%;padding:24px;display:flex}.image-lightbox-canvas img{cursor:zoom-in;flex-shrink:0;max-width:none;display:block}.image-lightbox-hint{color:#a6adc8;text-align:center;padding:8px 16px;font-size:11px}