@ingit/cli-darwin-x64 0.3.3 → 0.3.4

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.
Files changed (42) hide show
  1. package/client/assets/{SettingsDialog-BMLopMX4.js → SettingsDialog-CaMorEla.js} +1 -1
  2. package/client/assets/asm-Cn6kfRg8.js +1 -0
  3. package/client/assets/bash-CptvmnJ_.js +1 -0
  4. package/client/assets/bf-DEJ4lRL0.js +1 -0
  5. package/client/assets/c-Cct9r9Td.js +1 -0
  6. package/client/assets/css-CccPCtcE.js +1 -0
  7. package/client/assets/csv-CFmeyRa-.js +1 -0
  8. package/client/assets/diff-HjZ63woV.js +1 -0
  9. package/client/assets/docker-DkKN8cWa.js +1 -0
  10. package/client/assets/git-BAbMmzbU.js +1 -0
  11. package/client/assets/go-BijrNcPh.js +1 -0
  12. package/client/assets/html-CA8WawHi.js +1 -0
  13. package/client/assets/http-C4KktKS_.js +1 -0
  14. package/client/assets/index-Ct9jgAhg.js +677 -0
  15. package/client/assets/ini-C8KFcdOG.js +1 -0
  16. package/client/assets/java-B2tygPvv.js +1 -0
  17. package/client/assets/js-Brnoocvr.js +1 -0
  18. package/client/assets/jsdoc-Dalx2yOp.js +1 -0
  19. package/client/assets/json-BDzjkGhh.js +1 -0
  20. package/client/assets/languages-YvcwcNAo.js +1 -0
  21. package/client/assets/leanpub-md-DaBiWoVw.js +2 -0
  22. package/client/assets/log-bauMLv7S.js +1 -0
  23. package/client/assets/lua-C6NMZR_Q.js +1 -0
  24. package/client/assets/make-BUMR9kX3.js +1 -0
  25. package/client/assets/md-ueNMRzJS.js +2 -0
  26. package/client/assets/pl-R_hP-AdI.js +1 -0
  27. package/client/assets/plain-jYHz9int.js +1 -0
  28. package/client/assets/py-DFv_lSPZ.js +1 -0
  29. package/client/assets/regex-JBXmLE2I.js +1 -0
  30. package/client/assets/rs-C6-_90Ze.js +1 -0
  31. package/client/assets/sql-BXbkiBJ0.js +1 -0
  32. package/client/assets/todo-DP7rq1XD.js +1 -0
  33. package/client/assets/toml-9XbwREvu.js +1 -0
  34. package/client/assets/ts-C7Zq0x-b.js +1 -0
  35. package/client/assets/uri-TvvAqCeR.js +1 -0
  36. package/client/assets/xml-CIS15X3I.js +1 -0
  37. package/client/assets/yaml-BYsgzStX.js +1 -0
  38. package/client/index.html +1 -1
  39. package/ingit +0 -0
  40. package/libziggit.dylib +0 -0
  41. package/package.json +1 -1
  42. package/client/assets/index-kpTLGrHo.js +0 -677
@@ -1,4 +1,4 @@
1
- import{S as e,_ as t,a as n,b as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,x as b,y as x}from"./index-kpTLGrHo.js";var S=e(r(),1),C=b(),w={width:`100%`,border:`1px solid #45475a`,borderRadius:6,background:`#11111b`,color:`#cdd6f4`,fontFamily:`inherit`,fontSize:12,outline:`none`},T={height:30,padding:`0 11px`,border:`1px solid #45475a`,borderRadius:6,background:`#181825`,color:`#bac2de`,fontFamily:`inherit`,fontSize:11,fontWeight:700,cursor:`pointer`},E={...T,border:`1px solid #6d9658`,background:`#8dcf78`,color:`#0b1020`,fontWeight:800},D=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1
+ import{S as e,_ as t,a as n,b as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,x as b,y as x}from"./index-Ct9jgAhg.js";var S=e(r(),1),C=b(),w={width:`100%`,border:`1px solid #45475a`,borderRadius:6,background:`#11111b`,color:`#cdd6f4`,fontFamily:`inherit`,fontSize:12,outline:`none`},T={height:30,padding:`0 11px`,border:`1px solid #45475a`,borderRadius:6,background:`#181825`,color:`#bac2de`,fontFamily:`inherit`,fontSize:11,fontWeight:700,cursor:`pointer`},E={...T,border:`1px solid #6d9658`,background:`#8dcf78`,color:`#0b1020`,fontWeight:800},D=`<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 O(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 k(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 A({icon:e,customSvg:t,size:n=18,muted:r=!1}){let i=n+10;return(0,C.jsxs)(`svg`,{"aria-hidden":`true`,width:i,height:i,viewBox:`-12 -12 24 24`,style:{display:`block`,flex:`0 0 auto`},children:[(0,C.jsx)(`circle`,{r:`10`,fill:`#11111b`,stroke:r?`#45475a`:`#89b4fa`,strokeWidth:`1.5`}),(0,C.jsx)(u,{icon:e,customSvg:t,color:r?`#6c7086`:`#89b4fa`,size:n})]})}function j(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 M(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=o(e);if(n)return{id:t.id,message:`Invalid pattern in “${t.label}”: ${n}`}}if(t.customSvg!==void 0){let e=y(t.customSvg);if(e)return{id:t.id,message:`Invalid custom SVG in “${t.label}”: ${e}`}}}return null}function N(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 P({rule:e,index:t,count:n,onChange:r,onMove:a,onDuplicate:s,onDelete:c}){let[l,u]=(0,S.useState)(e.types.join(`, `)),[d,f]=(0,S.useState)(e.patterns.join(`
4
4
  `)),[p,m]=(0,S.useState)(e.customSvg??``),[h,g]=(0,S.useState)(``),_=e.customSvg===void 0?null:y(p),v=d.split(`
@@ -0,0 +1 @@
1
+ var e=[{type:`cmnt`,match:/(;|#).*/gm},{expand:`str`},{expand:`num`},{type:`num`,match:/\$[\da-fA-F]*\b/g},{type:`kwd`,match:/^[a-z]+\s+[a-z.]+\b/gm,sub:[{type:`func`,match:/^[a-z]+/g}]},{type:`kwd`,match:/^[ \t]*[a-z][a-z\d]*\b/gm},{match:/%|\$/g,type:`oper`}];export{e as default};
@@ -0,0 +1 @@
1
+ var e={type:`var`,match:/\$\w+|\${[^}]*}|\$\([^)]*\)/g},t=[{type:`cmnt`,sub:`todo`,match:/#.*/g},{type:`str`,match:/(["'])((?!\1)[^\r\n\\]|\\[^])*\1?/g,sub:[e]},{type:`oper`,match:/(?<=\s|^)\.*\/[a-z/_.-]+/gi},{type:`kwd`,match:/\s-[a-zA-Z]+|[&|;]+|\b(unset|readonly|shift|export|if|fi|else|elif|while|do|done|for|until|case|esac|break|continue|exit|return|trap|wait|eval|exec|then|declare|enable|local|select|typeset|time|add|remove|install|update|delete)(?=\s|$)/g},{expand:`num`},{type:`func`,match:/(?<=(^|\||\&\&|\;)\s*)[a-z_.-]+(?=\s|$)/gim},{type:`bool`,match:/(?<=\s|^)(true|false)(?=\s|$)/g},{type:`oper`,match:/[=(){}<>!]+/g},{type:`var`,match:/(?<=\s|^)[\w_]+(?=\s*=)/g},e];export{t as default};
@@ -0,0 +1 @@
1
+ var e=[{match:/[^,\[\->+.<\]\s].*/g,type:`cmnt`,sub:`todo`},{type:`func`,match:/\.+/g},{type:`kwd`,match:/[<>]+/g},{type:`oper`,match:/[+-]+/g}];export{e as default};
@@ -0,0 +1 @@
1
+ var e=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,type:`cmnt`,sub:`todo`},{expand:`str`},{expand:`num`},{type:`kwd`,match:/#\s*include (<.*>|".*")/g,sub:[{type:`str`,match:/(<|").*/g}]},{match:/asm\s*{[^}]*}/g,sub:[{type:`kwd`,match:/^asm/g},{match:/[^{}]*(?=}$)/g,sub:`asm`}]},{type:`kwd`,match:/\*|&|#[a-z]+\b|\b(asm|auto|double|int|struct|break|else|long|switch|case|enum|register|typedef|char|extern|return|union|const|float|short|unsigned|continue|for|signed|void|default|goto|sizeof|volatile|do|if|static|while)\b/g},{type:`oper`,match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:`func`,match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:`class`,match:/\b[A-Z][\w_]*\b/g}];export{e as default};
@@ -0,0 +1 @@
1
+ var e=[{match:/\/\*((?!\*\/)[^])*(\*\/)?/g,type:`cmnt`,sub:`todo`},{expand:`str`},{type:`kwd`,match:/@\w+\b|\b(and|not|only|or)\b|\b(?=([a-z-]+))\2(?=[^{}]*{)/g},{type:`var`,match:/\b[\w-]+(?=\s*:)|(::?|\.)[\w-]+(?=[^{}]*{)/g},{type:`func`,match:/#[\w-]+(?=[^{}]*{)/g},{type:`num`,match:/#[\da-f]{3,8}/g},{type:`num`,match:/\d+(\.\d+)?(cm|mm|in|px|pt|pc|em|ex|ch|rem|vm|vh|vmin|vmax|%)?/g,sub:[{type:`var`,match:/[a-z]+|%/g}]},{match:/url\([^)]*\)/g,sub:[{type:`func`,match:/url(?=\()/g},{type:`str`,match:/[^()]+/g}]},{type:`func`,match:/\b[a-zA-Z]\w*(?=\s*\()/g},{type:`num`,match:/\b[a-z-]+\b/g}];export{e as default};
@@ -0,0 +1 @@
1
+ var e=[{expand:`strDouble`},{type:`oper`,match:/,/g}];export{e as default};
@@ -0,0 +1 @@
1
+ var e=[{type:`deleted`,match:/^[-<].*/gm},{type:`insert`,match:/^[+>].*/gm},{type:`kwd`,match:/!.*/gm},{type:`section`,match:/^@@.*@@$|^\d.*|^([*+-])\1\1.*/gm}];export{e as default};
@@ -0,0 +1 @@
1
+ var e={type:`var`,match:/\$\w+|\${[^}]*}|\$\([^)]*\)/g},t=[{type:`kwd`,match:/^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)\b/gim},{type:`cmnt`,sub:`todo`,match:/#.*/g},{type:`str`,match:/(["'])((?!\1)[^\r\n\\]|\\[^])*\1?/g,sub:[e]},{type:`oper`,match:/(?<=\s|^)\.*\/[a-z/_.-]+/gi},{type:`kwd`,match:/\s-[a-zA-Z]+|[&|;]+|\b(unset|readonly|shift|export|if|fi|else|elif|while|do|done|for|until|case|esac|break|continue|exit|return|trap|wait|eval|exec|then|declare|enable|local|select|typeset|time|add|remove|install|update|delete)(?=\s|$)/g},{expand:`num`},{type:`func`,match:/(?<=(^|\||\&\&|\;)\s*)[a-z_.-]+(?=\s|$)/gim},{type:`bool`,match:/(?<=\s|^)(true|false)(?=\s|$)/g},{type:`oper`,match:/[=(){}<>!]+/g},{type:`var`,match:/(?<=\s|^)[\w_]+(?=\s*=)/g},e];export{t as default};
@@ -0,0 +1 @@
1
+ var e=[{match:/^#.*/gm,type:`cmnt`,sub:`todo`},{expand:`str`},{type:`deleted`,match:/^[-<].*/gm},{type:`insert`,match:/^[+>].*/gm},{type:`kwd`,match:/!.*/gm},{type:`section`,match:/^@@.*@@$|^\d.*|^([*+-])\1\1.*/gm},{type:`func`,match:/^(\$ )?git(\s.*)?$/gm},{type:`kwd`,match:/^commit \w+$/gm}];export{e as default};
@@ -0,0 +1 @@
1
+ var e=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,type:`cmnt`,sub:`todo`},{type:`str`,match:/`[^`]*`?/g},{expand:`str`},{expand:`num`},{type:`kwd`,match:/\*|&|\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go|goto|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/g},{type:`func`,match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:`class`,match:/\b[A-Z][\w_]*\b/g},{type:`oper`,match:/:=|[+\-*\/%&|^~=!<>.^-]+/g}];export{e as default};
@@ -0,0 +1 @@
1
+ var e=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`,t=`[${e}][${e+`\\-\\.0-9·̀-ͯ‿-⁀`}]*`,n=`(\\s+${t}\\s*(=\\s*([^"'>\\s][^>\\s]*|("|')(\\\\[^]|(?!\\4)[^])*\\4?)?)?)*\\s*`,r={match:RegExp(`<[/!?]?${t}${n}[/!?]?>`,`g`),sub:[{type:`var`,match:RegExp(`^<[/!?]?${t}`,`g`),sub:[{type:`oper`,match:/^<[\/!?]?/g}]},{type:`str`,match:/=\s*([^"'>\s][^>\s]*|("|')(\\[^]|(?!\2)[^])*\2?)/g,sub:[{type:`oper`,match:/^=/g}]},{type:`oper`,match:/[\/!?]?>/g},{type:`class`,match:RegExp(t,`g`)}]},i=[{match:/<!--[^]*?-->/g,type:`cmnt`,sub:`todo`},{type:`class`,match:/<!\[CDATA\[[\s\S]*?\]\]>/gi},r,{type:`str`,match:RegExp(`<\\?${t}([^?]|\\?[^?>])*\\?+>`,`g`),sub:[{type:`var`,match:RegExp(`^<\\?${t}`,`g`),sub:[{type:`oper`,match:/^<\?/g}]},{type:`oper`,match:/\?+>$/g}]},{type:`var`,match:/&(#x?)?[\da-z]{1,8};/gi}],a=[{type:`class`,match:/<!DOCTYPE("[^"]*"|'[^']*'|[^"'>])*>/gi,sub:[{type:`str`,match:/"[^"]*"|'[^']*'/g},{type:`oper`,match:/^<!|>$/g},{type:`var`,match:/DOCTYPE/gi}]},{match:RegExp(`<style${n}>[^]*?</style\\s*>`,`g`),sub:[{match:RegExp(`^<style${n}>`,`g`),sub:r.sub},{match:/[^]*(?=<\/style\s*>$)/g,sub:`css`},r]},{match:RegExp(`<script${n}>[^]*?<\/script\\s*>`,`g`),sub:[{match:RegExp(`^<script${n}>`,`g`),sub:r.sub},{match:/[^]*(?=<\/script\s*>$)/g,sub:`js`},r]},...i];export{a as default};
@@ -0,0 +1 @@
1
+ var e={bash:[[/#!(\/usr)?\/bin\/bash/g,500],[/\b(if|elif|then|fi|echo)\b|\$/g,10]],html:[[/<\/?[a-z-]+[^\n>]*>/g,10],[/^\s+<!DOCTYPE\s+html/g,500]],http:[[/^(GET|HEAD|POST|PUT|DELETE|PATCH|HTTP)\b/g,500]],ts:[[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require|document|window|implements|interface|namespace|true|false|null)\b/g,10]],py:[[/\b(def|print|await|async|class|and|or|lambda|import|from|self|asyncio|pass|True|False|None|__init__)\b/g,10]],sql:[[/\b(SELECT|INSERT|FROM)\b/g,50]],pl:[[/#!(\/usr)?\/bin\/perl/g,500],[/\b(use|print)\b|\$/g,10]],lua:[[/#!(\/usr)?\/bin\/lua/g,500]],make:[[/\b(ifneq|endif|if|elif|then|fi|echo|.PHONY|^[a-z]+ ?:$)\b|\$/gm,10]],uri:[[/https?:|mailto:|tel:|ftp:/g,30]],css:[[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],diff:[[/^[+><-]/gm,10],[/^@@ ?[-+,0-9 ]+ ?@@/gm,25]],md:[[/^(>|\t\*|\t\d+.)/gm,10],[/\[.*\](.*)/g,10]],docker:[[/^(FROM|ENTRYPOINT|RUN)/gm,500]],xml:[[/<\/?[a-z-]+[^\n>]*>/g,10],[/^<\?xml/g,500]],c:[[/#include\b|\bprintf\s+\(/g,100]],rs:[[/^\s+(use|fn|mut|match)\b/gm,100]],go:[[/\b(func|fmt|package)\b/g,100]],java:[[/^import\s+java/gm,500]],asm:[[/^(section|global main|extern|\t(call|mov|ret))/gm,100]],yaml:[[/^(\s+)?[a-z][a-z0-9]*:/gim,10]]};function t(t){return Object.entries(e).map(([e,n])=>[e,n.reduce((e,[n,r])=>e+[...t.matchAll(n)].length*r,0)]).filter(([e,t])=>t>20).sort((e,t)=>t[1]-e[1])[0]?.[0]||`plain`}var n=[{type:`kwd`,match:/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI|SEARCH)\b/gm},{expand:`str`},{type:`section`,match:/\bHTTP\/[\d.]+\b/g},{expand:`num`},{type:`oper`,match:/[,;:=]/g},{type:`var`,match:/[a-zA-Z][\w-]*(?=:)/g},{match:/\n\n[^]*/g,sub:t}];export{n as default};