interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / om / site / inventory.om

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