astrocms 0.1.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/backend/auth.ts +54 -0
- package/backend/config.ts +50 -0
- package/backend/parsers/collections.ts +279 -0
- package/backend/parsers/components.ts +184 -0
- package/backend/parsers/frontmatter.ts +67 -0
- package/backend/parsers/glob.ts +57 -0
- package/backend/root.ts +7 -0
- package/backend/routes/auth.ts +42 -0
- package/backend/routes/claude.ts +401 -0
- package/backend/routes/collections.ts +9 -0
- package/backend/routes/components.ts +9 -0
- package/backend/routes/config.ts +7 -0
- package/backend/routes/file.ts +179 -0
- package/backend/routes/git.ts +458 -0
- package/backend/routes/tree.ts +100 -0
- package/backend/routes/upload.ts +33 -0
- package/backend/server.ts +173 -0
- package/backend/stubs/astro-content.ts +14 -0
- package/backend/stubs/astro-loaders.ts +17 -0
- package/bin/astrocms.js +66 -0
- package/dist/_cms/apl-B4CMkyY2.js +1 -0
- package/dist/_cms/asciiarmor-Df11BRmG.js +1 -0
- package/dist/_cms/asn1-EdZsLKOL.js +1 -0
- package/dist/_cms/asterisk-B-8jnY81.js +1 -0
- package/dist/_cms/brainfuck-C4LP7Hcl.js +1 -0
- package/dist/_cms/clike-B9uivgTg.js +1 -0
- package/dist/_cms/clojure-BMjYHr_A.js +1 -0
- package/dist/_cms/cmake-BQqOBYOt.js +1 -0
- package/dist/_cms/cobol-CWcv1MsR.js +1 -0
- package/dist/_cms/coffeescript-S37ZYGWr.js +1 -0
- package/dist/_cms/commonlisp-DBKNyK5s.js +1 -0
- package/dist/_cms/crystal-SjHAIU92.js +1 -0
- package/dist/_cms/css-BnMrqG3P.js +1 -0
- package/dist/_cms/cypher-C_CwsFkJ.js +1 -0
- package/dist/_cms/d-pRatUO7H.js +1 -0
- package/dist/_cms/diff-DbItnlRl.js +1 -0
- package/dist/_cms/dockerfile-BKs6k2Af.js +1 -0
- package/dist/_cms/dtd-DF_7sFjM.js +1 -0
- package/dist/_cms/dylan-DwRh75JA.js +1 -0
- package/dist/_cms/ebnf-CDyGwa7X.js +1 -0
- package/dist/_cms/ecl-Cabwm37j.js +1 -0
- package/dist/_cms/eiffel-CnydiIhH.js +1 -0
- package/dist/_cms/elm-vLlmbW-K.js +1 -0
- package/dist/_cms/erlang-BNw1qcRV.js +1 -0
- package/dist/_cms/factor-kuTfRLto.js +1 -0
- package/dist/_cms/fcl-Kvtd6kyn.js +1 -0
- package/dist/_cms/forth-Ffai-XNe.js +1 -0
- package/dist/_cms/fortran-DYz_wnZ1.js +1 -0
- package/dist/_cms/gas-Bneqetm1.js +1 -0
- package/dist/_cms/gherkin-heZmZLOM.js +1 -0
- package/dist/_cms/groovy-D9Dt4D0W.js +1 -0
- package/dist/_cms/haskell-Cw1EW3IL.js +1 -0
- package/dist/_cms/haxe-H-WmDvRZ.js +1 -0
- package/dist/_cms/http-DBlCnlav.js +1 -0
- package/dist/_cms/idl-BEugSyMb.js +1 -0
- package/dist/_cms/index-7Pc6H4sv.js +1 -0
- package/dist/_cms/index-893Rzaov.js +1 -0
- package/dist/_cms/index-9o-llXDY.js +508 -0
- package/dist/_cms/index-BdC39RoS.js +1 -0
- package/dist/_cms/index-BdChuKfE.js +7 -0
- package/dist/_cms/index-Bpfn86Of.js +1 -0
- package/dist/_cms/index-Bvz8WTJL.js +1 -0
- package/dist/_cms/index-C2vDuCBy.js +1 -0
- package/dist/_cms/index-C9zUJLja.css +1 -0
- package/dist/_cms/index-Cdwq3Ev5.js +1 -0
- package/dist/_cms/index-Ce64khPN.js +3 -0
- package/dist/_cms/index-CoIA6zkf.js +1 -0
- package/dist/_cms/index-DAAZmIPw.js +1 -0
- package/dist/_cms/index-DM5GktYD.js +1 -0
- package/dist/_cms/index-DQf5bTbe.js +1 -0
- package/dist/_cms/index-M4bKZFGh.js +1 -0
- package/dist/_cms/index-NwHME3i3.js +1 -0
- package/dist/_cms/index-enNvjuOI.js +2 -0
- package/dist/_cms/index-wHleENT0.js +1 -0
- package/dist/_cms/javascript-iXu5QeM3.js +1 -0
- package/dist/_cms/julia-DuME0IfC.js +1 -0
- package/dist/_cms/livescript-BwQOo05w.js +1 -0
- package/dist/_cms/lua-BgMRiT3U.js +1 -0
- package/dist/_cms/mathematica-DTrFuWx2.js +1 -0
- package/dist/_cms/mbox-CNhZ1qSd.js +1 -0
- package/dist/_cms/mirc-CjQqDB4T.js +1 -0
- package/dist/_cms/mllike-CXdrOF99.js +1 -0
- package/dist/_cms/modelica-Dc1JOy9r.js +1 -0
- package/dist/_cms/mscgen-BA5vi2Kp.js +1 -0
- package/dist/_cms/mumps-BT43cFF4.js +1 -0
- package/dist/_cms/nginx-DdIZxoE0.js +1 -0
- package/dist/_cms/nsis-LdVXkNf5.js +1 -0
- package/dist/_cms/ntriples-BfvgReVJ.js +1 -0
- package/dist/_cms/octave-Ck1zUtKM.js +1 -0
- package/dist/_cms/oz-BzwKVEFT.js +1 -0
- package/dist/_cms/pascal--L3eBynH.js +1 -0
- package/dist/_cms/perl-CdXCOZ3F.js +1 -0
- package/dist/_cms/pig-CevX1Tat.js +1 -0
- package/dist/_cms/powershell-CFHJl5sT.js +1 -0
- package/dist/_cms/properties-C78fOPTZ.js +1 -0
- package/dist/_cms/protobuf-ChK-085T.js +1 -0
- package/dist/_cms/pug-DeIclll2.js +1 -0
- package/dist/_cms/puppet-DMA9R1ak.js +1 -0
- package/dist/_cms/python-BuPzkPfP.js +1 -0
- package/dist/_cms/q-pXgVlZs6.js +1 -0
- package/dist/_cms/r-B6wPVr8A.js +1 -0
- package/dist/_cms/rpm-CTu-6PCP.js +1 -0
- package/dist/_cms/ruby-B2Rjki9n.js +1 -0
- package/dist/_cms/sas-B4kiWyti.js +1 -0
- package/dist/_cms/scheme-C41bIUwD.js +1 -0
- package/dist/_cms/shell-CjFT_Tl9.js +1 -0
- package/dist/_cms/sieve-C3Gn_uJK.js +1 -0
- package/dist/_cms/simple-mode-GW_nhZxv.js +1 -0
- package/dist/_cms/smalltalk-CnHTOXQT.js +1 -0
- package/dist/_cms/solr-DehyRSwq.js +1 -0
- package/dist/_cms/sparql-DkYu6x3z.js +1 -0
- package/dist/_cms/spreadsheet-BCZA_wO0.js +1 -0
- package/dist/_cms/sql-D0XecflT.js +1 -0
- package/dist/_cms/stex-C3f8Ysf7.js +1 -0
- package/dist/_cms/stylus-B533Al4x.js +1 -0
- package/dist/_cms/swift-BzpIVaGY.js +1 -0
- package/dist/_cms/tcl-DVfN8rqt.js +1 -0
- package/dist/_cms/textile-CnDTJFAw.js +1 -0
- package/dist/_cms/tiddlywiki-DO-Gjzrf.js +1 -0
- package/dist/_cms/tiki-DGYXhP31.js +1 -0
- package/dist/_cms/toml-Bm5Em-hy.js +1 -0
- package/dist/_cms/troff-wAsdV37c.js +1 -0
- package/dist/_cms/ttcn-CfJYG6tj.js +1 -0
- package/dist/_cms/ttcn-cfg-B9xdYoR4.js +1 -0
- package/dist/_cms/turtle-B1tBg_DP.js +1 -0
- package/dist/_cms/vb-CmGdzxic.js +1 -0
- package/dist/_cms/vbscript-BuJXcnF6.js +1 -0
- package/dist/_cms/velocity-D8B20fx6.js +1 -0
- package/dist/_cms/verilog-C6RDOZhf.js +1 -0
- package/dist/_cms/vhdl-lSbBsy5d.js +1 -0
- package/dist/_cms/webidl-ZXfAyPTL.js +1 -0
- package/dist/_cms/xquery-DzFWVndE.js +1 -0
- package/dist/_cms/yacas-BJ4BC0dw.js +1 -0
- package/dist/_cms/z80-Hz9HOZM7.js +1 -0
- package/dist/index.html +13 -0
- package/package.json +77 -0
- package/patches/hast-util-to-estree+3.1.3.patch +14 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var l=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],u=a(l),o=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],m=a(o),c=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],s=a(c),f=["true","false","Infinity","NaN","null"],y=a(f),d=["callback","dictionary","enum","interface"],p=a(d),b=["typedef"],v=a(b),A=/^[:<=>?]/,g=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,h=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,i=/^_?[A-Za-z][0-9A-Z_a-z-]*/,D=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,k=/^"[^"]*"/,E=/^\/\*.*?\*\//,C=/^\/\*.*/,w=/^.*?\*\//;function N(e,r){if(e.eatSpace())return null;if(r.inComment)return e.match(w)?(r.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(E))return"comment";if(e.match(C))return r.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(g)||e.match(h)))return"number";if(e.match(k))return"string";if(r.startDef&&e.match(i))return"def";if(r.endDef&&e.match(D))return r.endDef=!1,"def";if(e.match(s))return"keyword";if(e.match(m)){var t=r.lastToken,n=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return t===":"||t==="implements"||n==="implements"||n==="="?"builtin":"type"}return e.match(u)?"builtin":e.match(y)?"atom":e.match(i)?"variable":e.match(A)?"operator":(e.next(),null)}const S={name:"webidl",startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,r){var t=N(e,r);if(t){var n=e.current();r.lastToken=n,t==="keyword"?(r.startDef=p.test(n),r.endDef=r.endDef||v.test(n)):r.startDef=!1}return t},languageData:{autocomplete:l.concat(o).concat(c).concat(f)}};export{S as webIDL};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=(function(){function e(w){return{type:w,style:"keyword"}}for(var n=e("operator"),t={type:"atom",style:"atom"},i={type:"punctuation",style:null},o={type:"axis_specifier",style:"qualifier"},l={",":i},p=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],r=0,a=p.length;r<a;r++)l[p[r]]=e(p[r]);for(var g=["xs:anyAtomicType","xs:anySimpleType","xs:anyType","xs:anyURI","xs:base64Binary","xs:boolean","xs:byte","xs:date","xs:dateTime","xs:dateTimeStamp","xs:dayTimeDuration","xs:decimal","xs:double","xs:duration","xs:ENTITIES","xs:ENTITY","xs:float","xs:gDay","xs:gMonth","xs:gMonthDay","xs:gYear","xs:gYearMonth","xs:hexBinary","xs:ID","xs:IDREF","xs:IDREFS","xs:int","xs:integer","xs:item","xs:java","xs:language","xs:long","xs:Name","xs:NCName","xs:negativeInteger","xs:NMTOKEN","xs:NMTOKENS","xs:nonNegativeInteger","xs:nonPositiveInteger","xs:normalizedString","xs:NOTATION","xs:numeric","xs:positiveInteger","xs:precisionDecimal","xs:QName","xs:short","xs:string","xs:time","xs:token","xs:unsignedByte","xs:unsignedInt","xs:unsignedLong","xs:unsignedShort","xs:untyped","xs:untypedAtomic","xs:yearMonthDuration"],r=0,a=g.length;r<a;r++)l[g[r]]=t;for(var f=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"],r=0,a=f.length;r<a;r++)l[f[r]]=n;for(var v=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"],r=0,a=v.length;r<a;r++)l[v[r]]=o;return l})();function x(e,n,t){return n.tokenize=t,t(e,n)}function u(e,n){var t=e.next(),i=!1,o=_(e);if(t=="<"){if(e.match("!--",!0))return x(e,n,N);if(e.match("![CDATA",!1))return n.tokenize=E,"tag";if(e.match("?",!1))return x(e,n,A);var l=e.eat("/");e.eatSpace();for(var p="",r;r=e.eat(/[^\s\u00a0=<>\"\'\/?]/);)p+=r;return x(e,n,S(p,l))}else{if(t=="{")return s(n,{type:"codeblock"}),null;if(t=="}")return c(n),null;if(b(n))return t==">"?"tag":t=="/"&&e.eat(">")?(c(n),"tag"):"variable";if(/\d/.test(t))return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if(t==="("&&e.eat(":"))return s(n,{type:"comment"}),x(e,n,z);if(!o&&(t==='"'||t==="'"))return m(e,n,t);if(t==="$")return x(e,n,T);if(t===":"&&e.eat("="))return"keyword";if(t==="(")return s(n,{type:"paren"}),null;if(t===")")return c(n),null;if(t==="[")return s(n,{type:"bracket"}),null;if(t==="]")return c(n),null;var a=d.propertyIsEnumerable(t)&&d[t];if(o&&t==='"')for(;e.next()!=='"';);if(o&&t==="'")for(;e.next()!=="'";);a||e.eatWhile(/[\w\$_-]/);var g=e.eat(":");!e.eat(":")&&g&&e.eatWhile(/[\w\$_-]/),e.match(/^[ \t]*\(/,!1)&&(i=!0);var f=e.current();return a=d.propertyIsEnumerable(f)&&d[f],i&&!a&&(a={type:"function_call",style:"def"}),D(n)?(c(n),"variable"):((f=="element"||f=="attribute"||a.type=="axis_specifier")&&s(n,{type:"xmlconstructor"}),a?a.style:"variable")}}function z(e,n){for(var t=!1,i=!1,o=0,l;l=e.next();){if(l==")"&&t)if(o>0)o--;else{c(n);break}else l==":"&&i&&o++;t=l==":",i=l=="("}return"comment"}function I(e,n){return function(t,i){for(var o;o=t.next();)if(o==e){c(i),n&&(i.tokenize=n);break}else if(t.match("{",!1)&&h(i))return s(i,{type:"codeblock"}),i.tokenize=u,"string";return"string"}}function m(e,n,t,i){let o=I(t,i);return s(n,{type:"string",name:t,tokenize:o}),x(e,n,o)}function T(e,n){var t=/[\w\$_-]/;if(e.eat('"')){for(;e.next()!=='"';);e.eat(":")}else e.eatWhile(t),e.match(":=",!1)||e.eat(":");return e.eatWhile(t),n.tokenize=u,"variable"}function S(e,n){return function(t,i){if(t.eatSpace(),n&&t.eat(">"))return c(i),i.tokenize=u,"tag";if(t.eat("/")||s(i,{type:"tag",name:e,tokenize:u}),t.eat(">"))i.tokenize=u;else return i.tokenize=y,"tag";return"tag"}}function y(e,n){var t=e.next();return t=="/"&&e.eat(">")?(h(n)&&c(n),b(n)&&c(n),"tag"):t==">"?(h(n)&&c(n),"tag"):t=="="?null:t=='"'||t=="'"?m(e,n,t,y):(h(n)||s(n,{type:"attribute",tokenize:y}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(c(n),n.tokenize=u),"attribute")}function N(e,n){for(var t;t=e.next();)if(t=="-"&&e.match("->",!0))return n.tokenize=u,"comment"}function E(e,n){for(var t;t=e.next();)if(t=="]"&&e.match("]",!0))return n.tokenize=u,"comment"}function A(e,n){for(var t;t=e.next();)if(t=="?"&&e.match(">",!0))return n.tokenize=u,"processingInstruction"}function b(e){return k(e,"tag")}function h(e){return k(e,"attribute")}function D(e){return k(e,"xmlconstructor")}function _(e){return e.current()==='"'?e.match(/^[^\"]+\"\:/,!1):e.current()==="'"?e.match(/^[^\"]+\'\:/,!1):!1}function k(e,n){return e.stack.length&&e.stack[e.stack.length-1].type==n}function s(e,n){e.stack.push(n)}function c(e){e.stack.pop();var n=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=n||u}const C={name:"xquery",startState:function(){return{tokenize:u,cc:[],stack:[]}},token:function(e,n){if(e.eatSpace())return null;var t=n.tokenize(e,n);return t},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}};export{C as xQuery};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(e){for(var n={},r=e.split(" "),o=0;o<r.length;++o)n[r[o]]=!0;return n}var a=t("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),f="(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)",u="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",p=new RegExp(f),d=new RegExp(u),k=new RegExp(u+"?_"+u),s=new RegExp(u+"\\s*\\(");function l(e,n){var r;if(r=e.next(),r==='"')return n.tokenize=v,n.tokenize(e,n);if(r==="/"){if(e.eat("*"))return n.tokenize=h,n.tokenize(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}e.backUp(1);var o=e.match(/^(\w+)\s*\(/,!1);o!==null&&a.hasOwnProperty(o[1])&&n.scopes.push("bodied");var i=c(n);if(i==="bodied"&&r==="["&&n.scopes.pop(),(r==="["||r==="{"||r==="(")&&n.scopes.push(r),i=c(n),(i==="["&&r==="]"||i==="{"&&r==="}"||i==="("&&r===")")&&n.scopes.pop(),r===";")for(;i==="bodied";)n.scopes.pop(),i=c(n);return e.match(/\d+ *#/,!0,!1)?"qualifier":e.match(p,!0,!1)?"number":e.match(k,!0,!1)?"variableName.special":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(s,!0,!1)?(e.backUp(1),"variableName.function"):e.match(d,!0,!1)?"variable":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function v(e,n){for(var r,o=!1,i=!1;(r=e.next())!=null;){if(r==='"'&&!i){o=!0;break}i=!i&&r==="\\"}return o&&!i&&(n.tokenize=l),"string"}function h(e,n){for(var r,o;(o=e.next())!=null;){if(r==="*"&&o==="/"){n.tokenize=l;break}r=o}return"comment"}function c(e){var n=null;return e.scopes.length>0&&(n=e.scopes[e.scopes.length-1]),n}const b={name:"yacas",startState:function(){return{tokenize:l,scopes:[]}},token:function(e,n){return e.eatSpace()?null:n.tokenize(e,n)},indent:function(e,n,r){if(e.tokenize!==l&&e.tokenize!==null)return null;var o=0;return(n==="]"||n==="];"||n==="}"||n==="};"||n===");")&&(o=-1),(e.scopes.length+o)*r.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};export{b as yacas};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(t){var n,l;t?(n=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,l=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(n=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,l=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var u=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,d=/^(n?[zc]|p[oe]?|m)\b/i,f=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,c=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(e,i){if(e.column()||(i.context=0),e.eatSpace())return null;var r;if(e.eatWhile(/\w/))if(t&&e.eat(".")&&e.eatWhile(/\w/),r=e.current(),e.indentation()){if((i.context==1||i.context==4)&&u.test(r))return i.context=4,"variable";if(i.context==2&&d.test(r))return i.context=4,"variableName.special";if(n.test(r))return i.context=1,"keyword";if(l.test(r))return i.context=2,"keyword";if(i.context==4&&c.test(r))return"number";if(f.test(r))return"error"}else return e.match(c)?"number":null;else{if(e.eat(";"))return e.skipToEnd(),"comment";if(e.eat('"')){for(;(r=e.next())&&r!='"';)r=="\\"&&e.next();return"string"}else if(e.eat("'")){if(e.match(/\\?.'/))return"number"}else if(e.eat(".")||e.sol()&&e.eat("#")){if(i.context=5,e.eatWhile(/\w/))return"def"}else if(e.eat("$")){if(e.eatWhile(/[\da-f]/i))return"number"}else if(e.eat("%")){if(e.eatWhile(/[01]/))return"number"}else e.next()}return null}}}const a=o(!1),s=o(!0);export{s as ez80,a as z80};
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>AstroCMS</title>
|
|
7
|
+
<script type="module" crossorigin src="/astrocms/_cms/index-9o-llXDY.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/astrocms/_cms/index-C9zUJLja.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body class="font-sans text-text bg-bg h-screen overflow-hidden">
|
|
11
|
+
<div id="root" class="h-screen flex flex-col"></div>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "astrocms",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A headless CMS for Astro with a built-in AI agent for editing content.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Godefroy de Compreignac",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/lonestone/astrocms.git"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/lonestone/astrocms#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/lonestone/astrocms/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"astro",
|
|
18
|
+
"cms",
|
|
19
|
+
"headless-cms",
|
|
20
|
+
"content-management",
|
|
21
|
+
"ai",
|
|
22
|
+
"agent",
|
|
23
|
+
"markdown",
|
|
24
|
+
"mdx"
|
|
25
|
+
],
|
|
26
|
+
"bin": {
|
|
27
|
+
"astrocms": "bin/astrocms.js"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"backend",
|
|
31
|
+
"dist",
|
|
32
|
+
"bin",
|
|
33
|
+
"patches"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"dev": "tsx watch backend/server.ts & vite dev --config frontend/vite.config.ts",
|
|
37
|
+
"dev:server": "tsx watch backend/server.ts",
|
|
38
|
+
"dev:frontend": "vite dev --config frontend/vite.config.ts",
|
|
39
|
+
"build": "vite build --config frontend/vite.config.ts"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@assistant-ui/react": "^0.12.20",
|
|
43
|
+
"@assistant-ui/react-ai-sdk": "^1.3.15",
|
|
44
|
+
"@hono/node-server": "^1.19.11",
|
|
45
|
+
"@mdxeditor/editor": "^3.55.0",
|
|
46
|
+
"@tanstack/react-query": "^5.91.2",
|
|
47
|
+
"@types/diff": "^7.0.2",
|
|
48
|
+
"ai": "^6.0.138",
|
|
49
|
+
"ai-sdk-provider-claude-code": "^3.4.4",
|
|
50
|
+
"cm6-graphql": "^0.2.1",
|
|
51
|
+
"country-flag-icons": "^1.6.15",
|
|
52
|
+
"diff": "^8.0.4",
|
|
53
|
+
"dotenv": "^16.6.1",
|
|
54
|
+
"hono": "^4.12.8",
|
|
55
|
+
"jiti": "^2.4.2",
|
|
56
|
+
"marked": "^17.0.5",
|
|
57
|
+
"react": "^19.2.4",
|
|
58
|
+
"react-dom": "^19.2.4",
|
|
59
|
+
"react-icons": "^5.6.0",
|
|
60
|
+
"react-router": "^7.13.1",
|
|
61
|
+
"smol-toml": "^1.6.1",
|
|
62
|
+
"tsx": "^4.21.0",
|
|
63
|
+
"typescript": "^5.8.3",
|
|
64
|
+
"yaml": "^2.8.2",
|
|
65
|
+
"zod": "^4.1.8"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
69
|
+
"@types/node": "^25.6.0",
|
|
70
|
+
"@types/prismjs": "^1.26.6",
|
|
71
|
+
"@types/react": "^19.2.14",
|
|
72
|
+
"@types/react-dom": "^19.2.3",
|
|
73
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
74
|
+
"tailwindcss": "^4.2.2",
|
|
75
|
+
"vite": "^7.3.1"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
diff --git a/node_modules/hast-util-to-estree/lib/handlers/element.js b/node_modules/hast-util-to-estree/lib/handlers/element.js
|
|
2
|
+
index 0567b6e..c294628 100644
|
|
3
|
+
--- a/node_modules/hast-util-to-estree/lib/handlers/element.js
|
|
4
|
+
+++ b/node_modules/hast-util-to-estree/lib/handlers/element.js
|
|
5
|
+
@@ -13,7 +13,8 @@ import {stringify as commas} from 'comma-separated-tokens'
|
|
6
|
+
import {name as identifierName} from 'estree-util-is-identifier-name'
|
|
7
|
+
import {find, hastToReact, svg} from 'property-information'
|
|
8
|
+
import {stringify as spaces} from 'space-separated-tokens'
|
|
9
|
+
-import styleToJs from 'style-to-js'
|
|
10
|
+
+import styleToJsModule from 'style-to-js'
|
|
11
|
+
+const styleToJs = typeof styleToJsModule === 'function' ? styleToJsModule : styleToJsModule.default
|
|
12
|
+
|
|
13
|
+
const own = {}.hasOwnProperty
|
|
14
|
+
const cap = /[A-Z]/g
|