aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / om / site / inventory.om
| 1 | note Expected inventory is derived from source assets plus the registry, not a Rust build or output scan. |
| 2 | text siexpect "expected-files.txt" |
| 3 | text siredir "allen/index.html" |
| 4 | text sirun "aien/run.html" |
| 5 | text sinow "now.json" |
| 6 | text sinowfd "now/feed.xml" |
| 7 | text sifull "llms-full.txt" |
| 8 | text sicss "assets/site.css" |
| 9 | text sijs "js/site.js" |
| 10 | text sitokens "assets/site-tokens.css" |
| 11 | text sidoor "assets/site-door.css" |
| 12 | |
| 13 | fn si_line path view uchar * to void |
| 14 | sr_raw path |
| 15 | sr_raw ssnl |
| 16 | end |
| 17 | |
| 18 | fn si_generated path view uchar * to bool |
| 19 | if sr_equal path sap0 |
| 20 | ret true |
| 21 | end |
| 22 | if sr_equal path sap1 |
| 23 | ret true |
| 24 | end |
| 25 | if sr_equal path sap2 |
| 26 | ret true |
| 27 | end |
| 28 | if sr_equal path sap3 |
| 29 | ret true |
| 30 | end |
| 31 | if sr_equal path sap4 |
| 32 | ret true |
| 33 | end |
| 34 | if sr_equal path sap5 |
| 35 | ret true |
| 36 | end |
| 37 | if sr_equal path sap6 |
| 38 | ret true |
| 39 | end |
| 40 | if sr_equal path sap7 |
| 41 | ret true |
| 42 | end |
| 43 | if sr_equal path sap8 |
| 44 | ret true |
| 45 | end |
| 46 | if sr_equal path sap9 |
| 47 | ret true |
| 48 | end |
| 49 | if sr_equal path sap10 |
| 50 | ret true |
| 51 | end |
| 52 | if sr_equal path sap11 |
| 53 | ret true |
| 54 | end |
| 55 | if sr_equal path sap12 |
| 56 | ret true |
| 57 | end |
| 58 | if sr_equal path sap13 |
| 59 | ret true |
| 60 | end |
| 61 | if sr_equal path sicss |
| 62 | ret true |
| 63 | end |
| 64 | if sr_equal path sijs |
| 65 | ret true |
| 66 | end |
| 67 | if sr_equal path sitokens |
| 68 | ret true |
| 69 | end |
| 70 | if sr_equal path sidoor |
| 71 | ret true |
| 72 | end |
| 73 | if sr_equal path stfacts |
| 74 | ret true |
| 75 | end |
| 76 | if sr_equal path stagents |
| 77 | ret true |
| 78 | end |
| 79 | if sr_equal path ST0004 |
| 80 | ret true |
| 81 | end |
| 82 | if sr_equal path ST0006 |
| 83 | ret true |
| 84 | end |
| 85 | if sr_equal path ST0008 |
| 86 | ret true |
| 87 | end |
| 88 | if sr_equal path ST0010 |
| 89 | ret true |
| 90 | end |
| 91 | if sr_equal path ST0012 |
| 92 | ret true |
| 93 | end |
| 94 | if sr_equal path ST0014 |
| 95 | ret true |
| 96 | end |
| 97 | if sr_equal path ssmap |
| 98 | ret true |
| 99 | end |
| 100 | if sr_equal path ssmapmd |
| 101 | ret true |
| 102 | end |
| 103 | if sr_equal path ssllms |
| 104 | ret true |
| 105 | end |
| 106 | if sr_equal path ssfull |
| 107 | ret true |
| 108 | end |
| 109 | if sr_equal path ssfeed |
| 110 | ret true |
| 111 | end |
| 112 | if sr_equal path ssnow |
| 113 | ret true |
| 114 | end |
| 115 | if sr_equal path ssnowfd |
| 116 | ret true |
| 117 | end |
| 118 | if sr_equal path ssrobots |
| 119 | ret true |
| 120 | end |
| 121 | if sr_equal path ssdata |
| 122 | ret true |
| 123 | end |
| 124 | if sr_equal path sshumans |
| 125 | ret true |
| 126 | end |
| 127 | if sr_equal path ss404 |
| 128 | ret true |
| 129 | end |
| 130 | if sr_equal path sxinv |
| 131 | ret true |
| 132 | end |
| 133 | if sr_equal path siexpect |
| 134 | ret true |
| 135 | end |
| 136 | ret false |
| 137 | end |
| 138 | |
| 139 | fn si_fixed to void |
| 140 | si_line sap0 |
| 141 | si_line sap1 |
| 142 | si_line sap2 |
| 143 | si_line sap3 |
| 144 | si_line sap4 |
| 145 | si_line sap5 |
| 146 | si_line sap6 |
| 147 | si_line sap7 |
| 148 | si_line sap8 |
| 149 | si_line sap9 |
| 150 | si_line sap10 |
| 151 | si_line sap11 |
| 152 | si_line sap12 |
| 153 | si_line sap13 |
| 154 | si_line sicss |
| 155 | si_line sijs |
| 156 | si_line sitokens |
| 157 | si_line sidoor |
| 158 | si_line stfacts |
| 159 | si_line stagents |
| 160 | si_line ST0004 |
| 161 | si_line ST0006 |
| 162 | si_line ST0008 |
| 163 | si_line ST0010 |
| 164 | si_line ST0012 |
| 165 | si_line ST0014 |
| 166 | si_line ssmap |
| 167 | si_line ssmapmd |
| 168 | si_line ssllms |
| 169 | si_line ssfull |
| 170 | si_line ssfeed |
| 171 | si_line ssnow |
| 172 | si_line ssnowfd |
| 173 | si_line ssrobots |
| 174 | si_line ssdata |
| 175 | si_line sshumans |
| 176 | si_line ss404 |
| 177 | si_line sxinv |
| 178 | si_line siexpect |
| 179 | si_line siredir |
| 180 | si_line sirun |
| 181 | end |
| 182 | |
| 183 | fn si_page row ulong to void |
| 184 | buf = new uchar 1024 0 |
| 185 | aliasbuf = new uchar 1024 0 |
| 186 | n = st_html_path row buf |
| 187 | si_line part buf 1 sub n 1 |
| 188 | n = ss_mdpath row buf |
| 189 | si_line part buf 1 sub n 1 |
| 190 | an = st_field row 0 aliasbuf |
| 191 | an = st_append aliasbuf ssmdidx an |
| 192 | if not sr_equal part buf 0 n part aliasbuf 0 an |
| 193 | si_line part aliasbuf 1 sub an 1 |
| 194 | end |
| 195 | end |
| 196 | |
| 197 | fn si_expected to void |
| 198 | st_open siexpect |
| 199 | si_fixed |
| 200 | for i ulong get stcount 0 |
| 201 | si_page i |
| 202 | end |
| 203 | put sxmode 0 2 |
| 204 | sx_tree stpub 0 |
| 205 | put sxmode 0 0 |
| 206 | sr_close |
| 207 | end |
| 208 | |
| 209 | note si_required_data: every file data/index.json names must be in dist. A file marked "optional": true |
| 210 | note is a reading the Spark publishes beside the site (accounts.tsv, routing.tsv); a build without it, |
| 211 | note such as a fresh clone, writes it empty, which the pages read as "nothing published yet", and says |
| 212 | note so on stderr with a SITE-BUILD ALARM line naming the file, so a deploy whose lay-in broke is seen. |
| 213 | fn si_required_data to void |
| 214 | pathbuf = new uchar 4096 0 |
| 215 | fullbuf = new uchar 8192 0 |
| 216 | root = sj_load ssfields |
| 217 | node = sj_first root |
| 218 | while ne node 0 bound 1024 |
| 219 | n = sj_string sj_find node stk0 pathbuf |
| 220 | sn = st_path part pathbuf 0 n fullbuf |
| 221 | r = faccess fullbuf 0 sn 4 |
| 222 | if ne r 0 |
| 223 | if eq sj_kind sj_find node stkopt 5 |
| 224 | sr_open part fullbuf 0 sn |
| 225 | sr_close |
| 226 | sr_diag stoptw |
| 227 | sr_diag part pathbuf 0 n |
| 228 | sr_diag ssnl |
| 229 | else |
| 230 | sr_diag part pathbuf 0 n |
| 231 | sr_diag ssnl |
| 232 | trap 10 |
| 233 | end |
| 234 | end |
| 235 | node = sj_next node |
| 236 | end |
| 237 | end |