@aglyn/plugins-ai 1.14.0 → 1.15.1
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/package.json +17 -17
- package/src/lib/components/ai-site-build-page.component.js +5 -3
- package/src/lib/components/ai-site-build-page.component.js.map +1 -1
- package/src/lib/components/ai-site-import-finish.component.d.ts +3 -1
- package/src/lib/components/ai-site-import-finish.component.js +3 -3
- package/src/lib/components/ai-site-import-finish.component.js.map +1 -1
- package/src/lib/components/ai-site-import-job.component.d.ts +4 -3
- package/src/lib/components/ai-site-import-job.component.js +141 -43
- package/src/lib/components/ai-site-import-job.component.js.map +1 -1
- package/src/lib/components/ai-site-import-plan.component.d.ts +42 -0
- package/src/lib/components/ai-site-import-plan.component.js +246 -0
- package/src/lib/components/ai-site-import-plan.component.js.map +1 -0
- package/src/lib/components/ai-site-import-start.component.d.ts +3 -1
- package/src/lib/components/ai-site-import-start.component.js +6 -3
- package/src/lib/components/ai-site-import-start.component.js.map +1 -1
- package/src/lib/components/ai-site-start-card.component.js +6 -2
- package/src/lib/components/ai-site-start-card.component.js.map +1 -1
- package/src/lib/components/ai-site-start-steps.component.d.ts +3 -2
- package/src/lib/components/ai-site-start-steps.component.js +12 -5
- package/src/lib/components/ai-site-start-steps.component.js.map +1 -1
- package/src/lib/jobs/ai-job-import-step.d.ts +63 -2
- package/src/lib/jobs/ai-job-import-step.js +372 -22
- package/src/lib/jobs/ai-job-import-step.js.map +1 -1
- package/src/lib/jobs/ai-job-layout-language.js +4 -1
- package/src/lib/jobs/ai-job-layout-language.js.map +1 -1
- package/src/lib/jobs/ai-job-page-language.d.ts +23 -2
- package/src/lib/jobs/ai-job-page-language.js +252 -5
- package/src/lib/jobs/ai-job-page-language.js.map +1 -1
- package/src/lib/jobs/ai-job-page-step.d.ts +7 -0
- package/src/lib/jobs/ai-job-page-step.js +75 -12
- package/src/lib/jobs/ai-job-page-step.js.map +1 -1
- package/src/lib/jobs/ai-job-plan-step.js +4 -2
- package/src/lib/jobs/ai-job-plan-step.js.map +1 -1
- package/src/lib/jobs/ai-job-site-look.js +14 -5
- package/src/lib/jobs/ai-job-site-look.js.map +1 -1
- package/src/lib/jobs/ai-job-text-step.d.ts +11 -2
- package/src/lib/jobs/ai-job-text-step.js.map +1 -1
- package/src/lib/jobs/ai-jobs.js +2 -1
- package/src/lib/jobs/ai-jobs.js.map +1 -1
- package/src/lib/jobs/ai-site-import-compile.d.ts +43 -2
- package/src/lib/jobs/ai-site-import-compile.js +131 -63
- package/src/lib/jobs/ai-site-import-compile.js.map +1 -1
- package/src/lib/jobs/ai-site-import-document.d.ts +25 -1
- package/src/lib/jobs/ai-site-import-document.js +26 -7
- package/src/lib/jobs/ai-site-import-document.js.map +1 -1
- package/src/lib/jobs/ai-site-import-honesty.d.ts +65 -0
- package/src/lib/jobs/ai-site-import-honesty.js +271 -0
- package/src/lib/jobs/ai-site-import-honesty.js.map +1 -0
- package/src/lib/jobs/ai-site-import-improve.d.ts +286 -0
- package/src/lib/jobs/ai-site-import-improve.js +1281 -0
- package/src/lib/jobs/ai-site-import-improve.js.map +1 -0
- package/src/lib/jobs/ai-site-import-look.d.ts +4 -0
- package/src/lib/jobs/ai-site-import-look.js +16 -6
- package/src/lib/jobs/ai-site-import-look.js.map +1 -1
- package/src/lib/jobs/ai-site-import-pictures.d.ts +83 -0
- package/src/lib/jobs/ai-site-import-pictures.js +261 -0
- package/src/lib/jobs/ai-site-import-pictures.js.map +1 -0
- package/src/lib/jobs/ai-site-import-plan.d.ts +78 -0
- package/src/lib/jobs/ai-site-import-plan.js +627 -0
- package/src/lib/jobs/ai-site-import-plan.js.map +1 -0
- package/src/lib/jobs/ai-site-import-wording.js +2 -5
- package/src/lib/jobs/ai-site-import-wording.js.map +1 -1
- package/src/lib/layout-language/ai-layout-compiler.d.ts +6 -0
- package/src/lib/layout-language/ai-layout-compiler.js +10 -6
- package/src/lib/layout-language/ai-layout-compiler.js.map +1 -1
- package/src/lib/layout-language/ai-layout-design.d.ts +9 -0
- package/src/lib/layout-language/ai-layout-design.js +29 -3
- package/src/lib/layout-language/ai-layout-design.js.map +1 -1
- package/src/lib/layout-language/ai-layout-frame-source.d.ts +5 -0
- package/src/lib/layout-language/ai-layout-frame-source.js +4 -2
- package/src/lib/layout-language/ai-layout-frame-source.js.map +1 -1
- package/src/lib/layout-language/ai-layout-frame.d.ts +2 -0
- package/src/lib/layout-language/ai-layout-frame.js +20 -12
- package/src/lib/layout-language/ai-layout-frame.js.map +1 -1
- package/src/lib/layout-language/ai-layout-language.d.ts +8 -0
- package/src/lib/layout-language/ai-layout-language.js +7 -3
- package/src/lib/layout-language/ai-layout-language.js.map +1 -1
- package/src/lib/model/ai-credit-estimate.d.ts +16 -0
- package/src/lib/model/ai-credit-estimate.js +14 -0
- package/src/lib/model/ai-credit-estimate.js.map +1 -1
- package/src/lib/model/ai-site-import-fidelity.d.ts +64 -0
- package/src/lib/model/ai-site-import-fidelity.js +380 -0
- package/src/lib/model/ai-site-import-fidelity.js.map +1 -1
- package/src/lib/model/ai-site-import-ledger.d.ts +82 -0
- package/src/lib/model/ai-site-import-ledger.js +254 -0
- package/src/lib/model/ai-site-import-ledger.js.map +1 -0
- package/src/lib/model/ai-site-import-view.d.ts +113 -7
- package/src/lib/model/ai-site-import-view.js +174 -16
- package/src/lib/model/ai-site-import-view.js.map +1 -1
- package/src/lib/model/ai-site-import.d.ts +253 -3
- package/src/lib/model/ai-site-import.js +371 -25
- package/src/lib/model/ai-site-import.js.map +1 -1
- package/src/lib/model/ai-site-job.js +4 -0
- package/src/lib/model/ai-site-job.js.map +1 -1
- package/src/lib/model/ai-site-kinds.d.ts +2 -0
- package/src/lib/model/ai-site-kinds.js +7 -0
- package/src/lib/model/ai-site-kinds.js.map +1 -1
- package/src/lib/model/ai-site-look.d.ts +14 -5
- package/src/lib/model/ai-site-look.js +22 -16
- package/src/lib/model/ai-site-look.js.map +1 -1
- package/src/lib/model/ai-site-start.d.ts +37 -7
- package/src/lib/model/ai-site-start.js +54 -10
- package/src/lib/model/ai-site-start.js.map +1 -1
- package/src/lib/model/ai-site-starter-look.d.ts +69 -0
- package/src/lib/model/ai-site-starter-look.js +90 -0
- package/src/lib/model/ai-site-starter-look.js.map +1 -0
- package/src/lib/runtime/ai-doctrine-validators.d.ts +7 -0
- package/src/lib/runtime/ai-doctrine-validators.js +3 -2
- package/src/lib/runtime/ai-doctrine-validators.js.map +1 -1
- package/src/lib/runtime/ai-doctrine.d.ts +10 -0
- package/src/lib/runtime/ai-doctrine.js +16 -2
- package/src/lib/runtime/ai-doctrine.js.map +1 -1
- package/src/lib/server/ai-jobs-resume.js +12 -3
- package/src/lib/server/ai-jobs-resume.js.map +1 -1
- package/src/lib/server/ai-jobs-route.js +5 -1
- package/src/lib/server/ai-jobs-route.js.map +1 -1
- package/src/lib/server/ai-site-import-route.d.ts +6 -0
- package/src/lib/server/ai-site-import-route.js +8 -1
- package/src/lib/server/ai-site-import-route.js.map +1 -1
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.d.ts +46 -7
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.js +260 -14
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.js.map +1 -1
- package/src/lib/site-import/fixtures/site-import-improve-answers.d.ts +33 -0
- package/src/lib/site-import/fixtures/site-import-improve-answers.js +457 -0
- package/src/lib/site-import/fixtures/site-import-improve-answers.js.map +1 -0
- package/src/lib/site-import/fixtures/site-layout-recordings.d.ts +29 -0
- package/src/lib/site-import/fixtures/site-layout-recordings.js +26 -0
- package/src/lib/site-import/fixtures/site-layout-recordings.js.map +1 -1
- package/src/lib/site-import/site-import-flag.d.ts +17 -0
- package/src/lib/site-import/site-import-flag.js +15 -0
- package/src/lib/site-import/site-import-flag.js.map +1 -1
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ /**
|
|
17
|
+
* Answers to `submit_improved_page` for the four basic sites (AGL-4152),
|
|
18
|
+
* WRITTEN BY HAND, in the shape the tool answers. No model wrote these and none
|
|
19
|
+
* was called: they say what a good redesign of each page looks like in structure,
|
|
20
|
+
* so the code that draws and scores one can be held offline. The paid eval
|
|
21
|
+
* records real answers; these are not a measure of what a model will do.
|
|
22
|
+
*
|
|
23
|
+
* Each is a designer's page, as the redesign is asked for one: a hero beside
|
|
24
|
+
* its picture, like things as a group, and the two new sections a home page
|
|
25
|
+
* needs, written from what the page says and inventing nothing.
|
|
26
|
+
*/ const block = (kind, rest = {})=>{
|
|
27
|
+
var _rest_col, _rest_text, _rest_to, _rest_style, _rest_icon, _rest_items, _rest_ref;
|
|
28
|
+
return {
|
|
29
|
+
kind,
|
|
30
|
+
col: (_rest_col = rest.col) != null ? _rest_col : -1,
|
|
31
|
+
text: (_rest_text = rest.text) != null ? _rest_text : '',
|
|
32
|
+
to: (_rest_to = rest.to) != null ? _rest_to : '',
|
|
33
|
+
style: (_rest_style = rest.style) != null ? _rest_style : 'none',
|
|
34
|
+
icon: (_rest_icon = rest.icon) != null ? _rest_icon : '',
|
|
35
|
+
items: (_rest_items = rest.items) != null ? _rest_items : [],
|
|
36
|
+
ref: (_rest_ref = rest.ref) != null ? _rest_ref : ''
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
const item = (title, text, rest = {})=>{
|
|
40
|
+
var _rest_to, _rest_icon, _rest_ref;
|
|
41
|
+
return {
|
|
42
|
+
title,
|
|
43
|
+
text,
|
|
44
|
+
to: (_rest_to = rest.to) != null ? _rest_to : '',
|
|
45
|
+
icon: (_rest_icon = rest.icon) != null ? _rest_icon : '',
|
|
46
|
+
ref: (_rest_ref = rest.ref) != null ? _rest_ref : ''
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
const section = (band, blocks, rest = {})=>{
|
|
50
|
+
var _rest_cols, _rest_align;
|
|
51
|
+
return {
|
|
52
|
+
band,
|
|
53
|
+
cols: (_rest_cols = rest.cols) != null ? _rest_cols : [],
|
|
54
|
+
align: (_rest_align = rest.align) != null ? _rest_align : 'start',
|
|
55
|
+
blocks
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
const keep = (ref, col = -1)=>block('keep', {
|
|
59
|
+
ref,
|
|
60
|
+
col
|
|
61
|
+
});
|
|
62
|
+
export const SITE_IMPORT_IMPROVE_ANSWERS = {
|
|
63
|
+
'tax-firm': {
|
|
64
|
+
sections: [
|
|
65
|
+
section('plain', [
|
|
66
|
+
block('eyebrow', {
|
|
67
|
+
text: 'Tax preparation, planning and bookkeeping'
|
|
68
|
+
}),
|
|
69
|
+
block('heading', {
|
|
70
|
+
text: 'Keep your taxes calm and keep more of what you earn'
|
|
71
|
+
}),
|
|
72
|
+
block('lede', {
|
|
73
|
+
text: 'We find every deduction and meet every deadline, for you and for your business.'
|
|
74
|
+
}),
|
|
75
|
+
block('button', {
|
|
76
|
+
text: 'Start now',
|
|
77
|
+
to: 'link:1',
|
|
78
|
+
style: 'primary'
|
|
79
|
+
}),
|
|
80
|
+
block('button', {
|
|
81
|
+
text: 'How we work',
|
|
82
|
+
to: 'link:2',
|
|
83
|
+
style: 'secondary'
|
|
84
|
+
}),
|
|
85
|
+
keep('picture:1')
|
|
86
|
+
]),
|
|
87
|
+
section('soft', [
|
|
88
|
+
block('heading', {
|
|
89
|
+
text: 'What we do'
|
|
90
|
+
}),
|
|
91
|
+
block('lede', {
|
|
92
|
+
text: 'Three ways we take the hassle of your taxes and your books off your plate.'
|
|
93
|
+
}),
|
|
94
|
+
block('cards', {
|
|
95
|
+
items: [
|
|
96
|
+
item('Tax preparation', 'Accurate and timely filings, for a personal return or your business.', {
|
|
97
|
+
ref: 'picture:2'
|
|
98
|
+
}),
|
|
99
|
+
item('Strategic planning', 'A customized plan so you receive every deduction you are entitled to.', {
|
|
100
|
+
ref: 'picture:3'
|
|
101
|
+
}),
|
|
102
|
+
item('Bookkeeping', 'We handle the balancing of your books, so you can manage your business better.', {
|
|
103
|
+
ref: 'picture:4'
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
})
|
|
107
|
+
]),
|
|
108
|
+
section('plain', [
|
|
109
|
+
block('heading', {
|
|
110
|
+
text: 'How working with us goes'
|
|
111
|
+
}),
|
|
112
|
+
block('steps', {
|
|
113
|
+
items: [
|
|
114
|
+
item('Tell us where you stand', 'Share your return, your business and what is worrying you.'),
|
|
115
|
+
item('Get a plan', 'We look for every deduction and tell you what to expect.'),
|
|
116
|
+
item('Stay on top of it', 'We file on time and keep your books in order.')
|
|
117
|
+
]
|
|
118
|
+
})
|
|
119
|
+
]),
|
|
120
|
+
section('soft', [
|
|
121
|
+
block('heading', {
|
|
122
|
+
text: 'Why people bring us their taxes'
|
|
123
|
+
}),
|
|
124
|
+
block('cards', {
|
|
125
|
+
items: [
|
|
126
|
+
item('Every deduction', 'We look for every deduction you are entitled to.', {
|
|
127
|
+
icon: 'money'
|
|
128
|
+
}),
|
|
129
|
+
item('Every deadline', 'Your filings go in accurate and on time.', {
|
|
130
|
+
icon: 'calendar'
|
|
131
|
+
}),
|
|
132
|
+
item('A plan of your own', 'A customized plan, for you or for your business.', {
|
|
133
|
+
icon: 'chart'
|
|
134
|
+
})
|
|
135
|
+
]
|
|
136
|
+
})
|
|
137
|
+
]),
|
|
138
|
+
section('dark', [
|
|
139
|
+
block('heading', {
|
|
140
|
+
col: 0,
|
|
141
|
+
text: 'Talk to us'
|
|
142
|
+
}),
|
|
143
|
+
block('lede', {
|
|
144
|
+
col: 0,
|
|
145
|
+
text: 'Tell us what you need and we will take it from there.'
|
|
146
|
+
}),
|
|
147
|
+
keep('contact:1', 0),
|
|
148
|
+
keep('form:1', 1)
|
|
149
|
+
], {
|
|
150
|
+
cols: [
|
|
151
|
+
5,
|
|
152
|
+
7
|
|
153
|
+
]
|
|
154
|
+
})
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
contractor: {
|
|
158
|
+
sections: [
|
|
159
|
+
section('plain', [
|
|
160
|
+
block('heading', {
|
|
161
|
+
col: 0,
|
|
162
|
+
text: 'Roofs and remodels done right'
|
|
163
|
+
}),
|
|
164
|
+
block('lede', {
|
|
165
|
+
col: 0,
|
|
166
|
+
text: 'Roofing, siding and kitchens from a family business you can call by name.'
|
|
167
|
+
}),
|
|
168
|
+
block('button', {
|
|
169
|
+
col: 0,
|
|
170
|
+
text: 'Ask for an estimate',
|
|
171
|
+
to: 'link:1',
|
|
172
|
+
style: 'primary'
|
|
173
|
+
}),
|
|
174
|
+
block('button', {
|
|
175
|
+
col: 0,
|
|
176
|
+
text: 'See our projects',
|
|
177
|
+
to: 'link:2',
|
|
178
|
+
style: 'secondary'
|
|
179
|
+
}),
|
|
180
|
+
keep('picture:1', 1)
|
|
181
|
+
], {
|
|
182
|
+
cols: [
|
|
183
|
+
7,
|
|
184
|
+
5
|
|
185
|
+
]
|
|
186
|
+
}),
|
|
187
|
+
section('soft', [
|
|
188
|
+
block('heading', {
|
|
189
|
+
text: 'What we do for your home'
|
|
190
|
+
}),
|
|
191
|
+
block('cards', {
|
|
192
|
+
items: [
|
|
193
|
+
item('Roof repair', 'After storms, leaks and age.', {
|
|
194
|
+
icon: 'home'
|
|
195
|
+
}),
|
|
196
|
+
item('New roofs', 'In asphalt, metal and cedar.', {
|
|
197
|
+
icon: 'home'
|
|
198
|
+
}),
|
|
199
|
+
item('Siding and gutters', 'Fitted and sealed.', {
|
|
200
|
+
icon: 'home'
|
|
201
|
+
}),
|
|
202
|
+
item('Kitchen remodels', 'From cabinets to counters.', {
|
|
203
|
+
icon: 'home'
|
|
204
|
+
})
|
|
205
|
+
]
|
|
206
|
+
})
|
|
207
|
+
]),
|
|
208
|
+
section('plain', [
|
|
209
|
+
block('heading', {
|
|
210
|
+
text: 'Why homeowners call us'
|
|
211
|
+
}),
|
|
212
|
+
block('cards', {
|
|
213
|
+
items: [
|
|
214
|
+
item('Family owned', 'Family owned since 1994.', {
|
|
215
|
+
icon: 'people'
|
|
216
|
+
}),
|
|
217
|
+
item('Licensed and insured', 'Licensed and insured, license 88213.', {
|
|
218
|
+
icon: 'shield'
|
|
219
|
+
}),
|
|
220
|
+
item('One crew, start to finish', 'Roofs, siding and kitchens from the same people.', {
|
|
221
|
+
icon: 'tools'
|
|
222
|
+
})
|
|
223
|
+
]
|
|
224
|
+
})
|
|
225
|
+
]),
|
|
226
|
+
section('soft', [
|
|
227
|
+
block('heading', {
|
|
228
|
+
text: 'How a job goes'
|
|
229
|
+
}),
|
|
230
|
+
block('steps', {
|
|
231
|
+
items: [
|
|
232
|
+
item('Ask for an estimate', 'Tell us about the roof or the room.'),
|
|
233
|
+
item('We look at the job', 'We come out, measure and talk it through with you.'),
|
|
234
|
+
item('We do the work', 'Then we clean up before we leave.')
|
|
235
|
+
]
|
|
236
|
+
})
|
|
237
|
+
]),
|
|
238
|
+
section('plain', [
|
|
239
|
+
block('heading', {
|
|
240
|
+
text: 'Recent work'
|
|
241
|
+
}),
|
|
242
|
+
block('cards', {
|
|
243
|
+
items: [
|
|
244
|
+
item('A standing seam roof', 'On a lake house.', {
|
|
245
|
+
ref: 'picture:2'
|
|
246
|
+
}),
|
|
247
|
+
item('A kitchen opened up', 'Connected to the dining room.', {
|
|
248
|
+
ref: 'picture:3'
|
|
249
|
+
})
|
|
250
|
+
]
|
|
251
|
+
})
|
|
252
|
+
]),
|
|
253
|
+
section('soft', [
|
|
254
|
+
block('heading', {
|
|
255
|
+
text: 'What neighbors say'
|
|
256
|
+
}),
|
|
257
|
+
keep('quote:1')
|
|
258
|
+
]),
|
|
259
|
+
section('dark', [
|
|
260
|
+
block('heading', {
|
|
261
|
+
text: 'Tell us about your roof or your kitchen'
|
|
262
|
+
}),
|
|
263
|
+
keep('contact:1'),
|
|
264
|
+
block('button', {
|
|
265
|
+
text: 'Ask for an estimate',
|
|
266
|
+
to: 'link:1',
|
|
267
|
+
style: 'primary'
|
|
268
|
+
})
|
|
269
|
+
], {
|
|
270
|
+
align: 'center'
|
|
271
|
+
})
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
salon: {
|
|
275
|
+
sections: [
|
|
276
|
+
section('plain', [
|
|
277
|
+
block('heading', {
|
|
278
|
+
text: 'Hair that feels like yours'
|
|
279
|
+
}),
|
|
280
|
+
block('lede', {
|
|
281
|
+
text: 'Cuts, color and care in a small salon on Juniper Row.'
|
|
282
|
+
}),
|
|
283
|
+
block('button', {
|
|
284
|
+
text: 'Book a chair',
|
|
285
|
+
to: 'link:1',
|
|
286
|
+
style: 'primary'
|
|
287
|
+
}),
|
|
288
|
+
keep('picture:1')
|
|
289
|
+
]),
|
|
290
|
+
section('soft', [
|
|
291
|
+
block('heading', {
|
|
292
|
+
text: 'Cuts, color and care'
|
|
293
|
+
}),
|
|
294
|
+
block('cards', {
|
|
295
|
+
items: [
|
|
296
|
+
item('Cuts', "Women's and men's cuts, shaped around how you wear your hair.", {
|
|
297
|
+
icon: 'cut'
|
|
298
|
+
}),
|
|
299
|
+
item('Color', 'Single process color and balayage.', {
|
|
300
|
+
icon: 'brush'
|
|
301
|
+
}),
|
|
302
|
+
item('Care', 'Products we trust, and advice on keeping your hair healthy between visits.', {
|
|
303
|
+
icon: 'care'
|
|
304
|
+
})
|
|
305
|
+
]
|
|
306
|
+
})
|
|
307
|
+
]),
|
|
308
|
+
section('plain', [
|
|
309
|
+
block('heading', {
|
|
310
|
+
text: 'Our prices'
|
|
311
|
+
}),
|
|
312
|
+
keep('table:1')
|
|
313
|
+
]),
|
|
314
|
+
section('soft', [
|
|
315
|
+
block('heading', {
|
|
316
|
+
text: 'What a visit is like'
|
|
317
|
+
}),
|
|
318
|
+
block('steps', {
|
|
319
|
+
items: [
|
|
320
|
+
item('Book a chair', 'Pick a time that works for you.'),
|
|
321
|
+
item('Talk it through', 'Tell your stylist how you like to wear your hair.'),
|
|
322
|
+
item('Leave happy', 'Walk out with hair that feels like yours.')
|
|
323
|
+
]
|
|
324
|
+
})
|
|
325
|
+
]),
|
|
326
|
+
section('plain', [
|
|
327
|
+
block('heading', {
|
|
328
|
+
text: 'The studio',
|
|
329
|
+
col: 0
|
|
330
|
+
}),
|
|
331
|
+
block('text', {
|
|
332
|
+
text: 'Four chairs, plenty of light, and a stylist who remembers how you like it.',
|
|
333
|
+
col: 0
|
|
334
|
+
}),
|
|
335
|
+
block('heading', {
|
|
336
|
+
text: 'What we use',
|
|
337
|
+
col: 1
|
|
338
|
+
}),
|
|
339
|
+
block('text', {
|
|
340
|
+
text: 'We use Oribe and Davines products.',
|
|
341
|
+
col: 1
|
|
342
|
+
})
|
|
343
|
+
], {
|
|
344
|
+
cols: [
|
|
345
|
+
1,
|
|
346
|
+
1
|
|
347
|
+
]
|
|
348
|
+
}),
|
|
349
|
+
section('dark', [
|
|
350
|
+
block('heading', {
|
|
351
|
+
text: 'Find us on Juniper Row'
|
|
352
|
+
}),
|
|
353
|
+
keep('contact:1'),
|
|
354
|
+
block('button', {
|
|
355
|
+
text: 'Book a chair',
|
|
356
|
+
to: 'link:1',
|
|
357
|
+
style: 'primary'
|
|
358
|
+
}),
|
|
359
|
+
block('button', {
|
|
360
|
+
text: 'Follow us on Instagram',
|
|
361
|
+
to: 'link:2',
|
|
362
|
+
style: 'secondary'
|
|
363
|
+
})
|
|
364
|
+
], {
|
|
365
|
+
align: 'center'
|
|
366
|
+
})
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
clinic: {
|
|
370
|
+
sections: [
|
|
371
|
+
section('plain', [
|
|
372
|
+
block('heading', {
|
|
373
|
+
text: 'Care for your whole family'
|
|
374
|
+
}),
|
|
375
|
+
block('lede', {
|
|
376
|
+
text: 'Primary care for children and adults, with same-week visits.'
|
|
377
|
+
}),
|
|
378
|
+
block('button', {
|
|
379
|
+
text: 'Plan a visit',
|
|
380
|
+
to: 'link:1',
|
|
381
|
+
style: 'primary'
|
|
382
|
+
}),
|
|
383
|
+
keep('picture:1')
|
|
384
|
+
]),
|
|
385
|
+
section('soft', [
|
|
386
|
+
block('heading', {
|
|
387
|
+
text: 'What we treat'
|
|
388
|
+
}),
|
|
389
|
+
block('cards', {
|
|
390
|
+
items: [
|
|
391
|
+
item('Checkups and vaccines', 'For every age.', {
|
|
392
|
+
icon: 'heart'
|
|
393
|
+
}),
|
|
394
|
+
item('Colds, flu and infections', 'Seen the same week.', {
|
|
395
|
+
icon: 'heart'
|
|
396
|
+
}),
|
|
397
|
+
item('Diabetes and blood pressure', 'Followed over time.', {
|
|
398
|
+
icon: 'heart'
|
|
399
|
+
}),
|
|
400
|
+
item('Sports physicals', 'Ready for the season.', {
|
|
401
|
+
icon: 'heart'
|
|
402
|
+
})
|
|
403
|
+
]
|
|
404
|
+
})
|
|
405
|
+
]),
|
|
406
|
+
section('plain', [
|
|
407
|
+
block('heading', {
|
|
408
|
+
text: 'Doctors who know you'
|
|
409
|
+
}),
|
|
410
|
+
block('text', {
|
|
411
|
+
text: 'Dr. Amara Voss and Dr. Felix Ono have seen patients here for 12 years.'
|
|
412
|
+
})
|
|
413
|
+
], {
|
|
414
|
+
align: 'center'
|
|
415
|
+
}),
|
|
416
|
+
section('soft', [
|
|
417
|
+
block('heading', {
|
|
418
|
+
text: 'Your first visit'
|
|
419
|
+
}),
|
|
420
|
+
block('steps', {
|
|
421
|
+
items: [
|
|
422
|
+
item('Call the front desk', 'We will find you a time this week.'),
|
|
423
|
+
item('Come in', 'There is a free lot behind the building.'),
|
|
424
|
+
item('See your doctor', 'Care for every age, in one place.')
|
|
425
|
+
]
|
|
426
|
+
})
|
|
427
|
+
]),
|
|
428
|
+
section('plain', [
|
|
429
|
+
block('heading', {
|
|
430
|
+
text: 'Common questions'
|
|
431
|
+
}),
|
|
432
|
+
block('faq', {
|
|
433
|
+
items: [
|
|
434
|
+
item('Do you take new patients?', 'Yes. Call us and we will find you a time this week.'),
|
|
435
|
+
item('Which insurance do you accept?', 'We accept most major plans. Ask at the front desk about yours.'),
|
|
436
|
+
item('Where do I park?', 'There is a free lot behind the building.')
|
|
437
|
+
]
|
|
438
|
+
})
|
|
439
|
+
]),
|
|
440
|
+
section('dark', [
|
|
441
|
+
block('heading', {
|
|
442
|
+
col: 0,
|
|
443
|
+
text: 'Reach the front desk'
|
|
444
|
+
}),
|
|
445
|
+
keep('contact:1', 0),
|
|
446
|
+
keep('form:1', 1)
|
|
447
|
+
], {
|
|
448
|
+
cols: [
|
|
449
|
+
5,
|
|
450
|
+
7
|
|
451
|
+
]
|
|
452
|
+
})
|
|
453
|
+
]
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
//# sourceMappingURL=site-import-improve-answers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../libs/plugins/ai/src/lib/site-import/fixtures/site-import-improve-answers.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Answers to `submit_improved_page` for the four basic sites (AGL-4152),\n * WRITTEN BY HAND, in the shape the tool answers. No model wrote these and none\n * was called: they say what a good redesign of each page looks like in structure,\n * so the code that draws and scores one can be held offline. The paid eval\n * records real answers; these are not a measure of what a model will do.\n *\n * Each is a designer's page, as the redesign is asked for one: a hero beside\n * its picture, like things as a group, and the two new sections a home page\n * needs, written from what the page says and inventing nothing.\n */\n\nimport type { SiteBasicPageName } from './site-layout-recordings'\n\ntype Answer = Record<string, unknown>\n\nconst block = (kind: string, rest: Partial<{ col: number; text: string; to: string; style: string; icon: string; items: Answer[]; ref: string }> = {}): Answer => ({\n kind,\n col: rest.col ?? -1,\n text: rest.text ?? '',\n to: rest.to ?? '',\n style: rest.style ?? 'none',\n icon: rest.icon ?? '',\n items: rest.items ?? [],\n ref: rest.ref ?? '',\n})\nconst item = (title: string, text: string, rest: Partial<{ to: string; icon: string; ref: string }> = {}): Answer => ({ title, text, to: rest.to ?? '', icon: rest.icon ?? '', ref: rest.ref ?? '' })\nconst section = (band: string, blocks: Answer[], rest: Partial<{ cols: number[]; align: string }> = {}): Answer => ({ band, cols: rest.cols ?? [], align: rest.align ?? 'start', blocks })\nconst keep = (ref: string, col = -1) => block('keep', { ref, col })\n\nexport const SITE_IMPORT_IMPROVE_ANSWERS: Readonly<Record<SiteBasicPageName, { sections: Answer[] }>> = {\n 'tax-firm': {\n sections: [\n section('plain', [\n block('eyebrow', { text: 'Tax preparation, planning and bookkeeping' }),\n block('heading', { text: 'Keep your taxes calm and keep more of what you earn' }),\n block('lede', { text: 'We find every deduction and meet every deadline, for you and for your business.' }),\n block('button', { text: 'Start now', to: 'link:1', style: 'primary' }),\n block('button', { text: 'How we work', to: 'link:2', style: 'secondary' }),\n keep('picture:1'),\n ]),\n section('soft', [\n block('heading', { text: 'What we do' }),\n block('lede', { text: 'Three ways we take the hassle of your taxes and your books off your plate.' }),\n block('cards', {\n items: [\n item('Tax preparation', 'Accurate and timely filings, for a personal return or your business.', { ref: 'picture:2' }),\n item('Strategic planning', 'A customized plan so you receive every deduction you are entitled to.', { ref: 'picture:3' }),\n item('Bookkeeping', 'We handle the balancing of your books, so you can manage your business better.', { ref: 'picture:4' }),\n ],\n }),\n ]),\n section('plain', [\n block('heading', { text: 'How working with us goes' }),\n block('steps', {\n items: [\n item('Tell us where you stand', 'Share your return, your business and what is worrying you.'),\n item('Get a plan', 'We look for every deduction and tell you what to expect.'),\n item('Stay on top of it', 'We file on time and keep your books in order.'),\n ],\n }),\n ]),\n section('soft', [\n block('heading', { text: 'Why people bring us their taxes' }),\n block('cards', {\n items: [\n item('Every deduction', 'We look for every deduction you are entitled to.', { icon: 'money' }),\n item('Every deadline', 'Your filings go in accurate and on time.', { icon: 'calendar' }),\n item('A plan of your own', 'A customized plan, for you or for your business.', { icon: 'chart' }),\n ],\n }),\n ]),\n section(\n 'dark',\n [block('heading', { col: 0, text: 'Talk to us' }), block('lede', { col: 0, text: 'Tell us what you need and we will take it from there.' }), keep('contact:1', 0), keep('form:1', 1)],\n { cols: [5, 7] },\n ),\n ],\n },\n contractor: {\n sections: [\n section(\n 'plain',\n [\n block('heading', { col: 0, text: 'Roofs and remodels done right' }),\n block('lede', { col: 0, text: 'Roofing, siding and kitchens from a family business you can call by name.' }),\n block('button', { col: 0, text: 'Ask for an estimate', to: 'link:1', style: 'primary' }),\n block('button', { col: 0, text: 'See our projects', to: 'link:2', style: 'secondary' }),\n keep('picture:1', 1),\n ],\n { cols: [7, 5] },\n ),\n section('soft', [\n block('heading', { text: 'What we do for your home' }),\n block('cards', {\n items: [\n item('Roof repair', 'After storms, leaks and age.', { icon: 'home' }),\n item('New roofs', 'In asphalt, metal and cedar.', { icon: 'home' }),\n item('Siding and gutters', 'Fitted and sealed.', { icon: 'home' }),\n item('Kitchen remodels', 'From cabinets to counters.', { icon: 'home' }),\n ],\n }),\n ]),\n section('plain', [\n block('heading', { text: 'Why homeowners call us' }),\n block('cards', {\n items: [\n item('Family owned', 'Family owned since 1994.', { icon: 'people' }),\n item('Licensed and insured', 'Licensed and insured, license 88213.', { icon: 'shield' }),\n item('One crew, start to finish', 'Roofs, siding and kitchens from the same people.', { icon: 'tools' }),\n ],\n }),\n ]),\n section('soft', [\n block('heading', { text: 'How a job goes' }),\n block('steps', {\n items: [\n item('Ask for an estimate', 'Tell us about the roof or the room.'),\n item('We look at the job', 'We come out, measure and talk it through with you.'),\n item('We do the work', 'Then we clean up before we leave.'),\n ],\n }),\n ]),\n section(\n 'plain',\n [\n block('heading', { text: 'Recent work' }),\n block('cards', {\n items: [\n item('A standing seam roof', 'On a lake house.', { ref: 'picture:2' }),\n item('A kitchen opened up', 'Connected to the dining room.', { ref: 'picture:3' }),\n ],\n }),\n ],\n ),\n section('soft', [block('heading', { text: 'What neighbors say' }), keep('quote:1')]),\n section('dark', [block('heading', { text: 'Tell us about your roof or your kitchen' }), keep('contact:1'), block('button', { text: 'Ask for an estimate', to: 'link:1', style: 'primary' })], { align: 'center' }),\n ],\n },\n salon: {\n sections: [\n section(\n 'plain',\n [\n block('heading', { text: 'Hair that feels like yours' }),\n block('lede', { text: 'Cuts, color and care in a small salon on Juniper Row.' }),\n block('button', { text: 'Book a chair', to: 'link:1', style: 'primary' }),\n keep('picture:1'),\n ],\n ),\n section('soft', [\n block('heading', { text: 'Cuts, color and care' }),\n block('cards', {\n items: [\n item('Cuts', \"Women's and men's cuts, shaped around how you wear your hair.\", { icon: 'cut' }),\n item('Color', 'Single process color and balayage.', { icon: 'brush' }),\n item('Care', 'Products we trust, and advice on keeping your hair healthy between visits.', { icon: 'care' }),\n ],\n }),\n ]),\n section('plain', [block('heading', { text: 'Our prices' }), keep('table:1')]),\n section('soft', [\n block('heading', { text: 'What a visit is like' }),\n block('steps', {\n items: [\n item('Book a chair', 'Pick a time that works for you.'),\n item('Talk it through', 'Tell your stylist how you like to wear your hair.'),\n item('Leave happy', 'Walk out with hair that feels like yours.'),\n ],\n }),\n ]),\n section(\n 'plain',\n [\n block('heading', { text: 'The studio', col: 0 }),\n block('text', { text: 'Four chairs, plenty of light, and a stylist who remembers how you like it.', col: 0 }),\n block('heading', { text: 'What we use', col: 1 }),\n block('text', { text: 'We use Oribe and Davines products.', col: 1 }),\n ],\n { cols: [1, 1] },\n ),\n section(\n 'dark',\n [\n block('heading', { text: 'Find us on Juniper Row' }),\n keep('contact:1'),\n block('button', { text: 'Book a chair', to: 'link:1', style: 'primary' }),\n block('button', { text: 'Follow us on Instagram', to: 'link:2', style: 'secondary' }),\n ],\n { align: 'center' },\n ),\n ],\n },\n clinic: {\n sections: [\n section('plain', [\n block('heading', { text: 'Care for your whole family' }),\n block('lede', { text: 'Primary care for children and adults, with same-week visits.' }),\n block('button', { text: 'Plan a visit', to: 'link:1', style: 'primary' }),\n keep('picture:1'),\n ]),\n section('soft', [\n block('heading', { text: 'What we treat' }),\n block('cards', {\n items: [\n item('Checkups and vaccines', 'For every age.', { icon: 'heart' }),\n item('Colds, flu and infections', 'Seen the same week.', { icon: 'heart' }),\n item('Diabetes and blood pressure', 'Followed over time.', { icon: 'heart' }),\n item('Sports physicals', 'Ready for the season.', { icon: 'heart' }),\n ],\n }),\n ]),\n section('plain', [block('heading', { text: 'Doctors who know you' }), block('text', { text: 'Dr. Amara Voss and Dr. Felix Ono have seen patients here for 12 years.' })], { align: 'center' }),\n section('soft', [\n block('heading', { text: 'Your first visit' }),\n block('steps', {\n items: [\n item('Call the front desk', 'We will find you a time this week.'),\n item('Come in', 'There is a free lot behind the building.'),\n item('See your doctor', 'Care for every age, in one place.'),\n ],\n }),\n ]),\n section('plain', [\n block('heading', { text: 'Common questions' }),\n block('faq', {\n items: [\n item('Do you take new patients?', 'Yes. Call us and we will find you a time this week.'),\n item('Which insurance do you accept?', 'We accept most major plans. Ask at the front desk about yours.'),\n item('Where do I park?', 'There is a free lot behind the building.'),\n ],\n }),\n ]),\n section('dark', [block('heading', { col: 0, text: 'Reach the front desk' }), keep('contact:1', 0), keep('form:1', 1)], { cols: [5, 7] }),\n ],\n },\n}\n"],"names":["block","kind","rest","col","text","to","style","icon","items","ref","item","title","section","band","blocks","cols","align","keep","SITE_IMPORT_IMPROVE_ANSWERS","sections","contractor","salon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BAAEI,MAAM;gBAAuB;gBAAIJ,MAAM,QAAQ;oBAAEI,MAAM;gBAAyE;aAAG,EAAE;gBAAEY,OAAO;YAAS;YAC5LJ,QAAQ,QAAQ;gBACdZ,MAAM,WAAW;oBAAEI,MAAM;gBAAmB;gBAC5CJ,MAAM,SAAS;oBACbQ,OAAO;wBACLE,KAAK,uBAAuB;wBAC5BA,KAAK,WAAW;wBAChBA,KAAK,mBAAmB;qBACzB;gBACH;aACD;YACDE,QAAQ,SAAS;gBACfZ,MAAM,WAAW;oBAAEI,MAAM;gBAAmB;gBAC5CJ,MAAM,OAAO;oBACXQ,OAAO;wBACLE,KAAK,6BAA6B;wBAClCA,KAAK,kCAAkC;wBACvCA,KAAK,oBAAoB;qBAC1B;gBACH;aACD;YACDE,QAAQ,QAAQ;gBAACZ,MAAM,WAAW;oBAAEG,KAAK;oBAAGC,MAAM;gBAAuB;gBAAIa,KAAK,aAAa;gBAAIA,KAAK,UAAU;aAAG,EAAE;gBAAEF,MAAM;oBAAC;oBAAG;iBAAE;YAAC;SACvI;IACH;AACF,EAAC"}
|
|
@@ -89,6 +89,35 @@ export declare const siteReadVarsThemeSheets: () => Array<{
|
|
|
89
89
|
url: string;
|
|
90
90
|
text: string;
|
|
91
91
|
}>;
|
|
92
|
+
/**
|
|
93
|
+
* Four basic sites that do not exist (AGL-4152), each one page and the
|
|
94
|
+
* stylesheet saved beside it in `site-layout/basic/`, written for a generative
|
|
95
|
+
* Improve it: a tax firm, a contractor, a salon and a clinic, as small
|
|
96
|
+
* businesses build them on a site builder, plain bands, a stacked column of
|
|
97
|
+
* pictures, a text link for a call to action. Every business, name, address,
|
|
98
|
+
* phone and word is invented, so nothing is tuned to one site. They are not
|
|
99
|
+
* among `SITE_LAYOUT_PAGES`: the reports of today's build score those.
|
|
100
|
+
*/
|
|
101
|
+
export declare const SITE_BASIC_PAGES: {
|
|
102
|
+
readonly 'tax-firm': {
|
|
103
|
+
readonly url: "https://www.larkspur-tax.example/";
|
|
104
|
+
};
|
|
105
|
+
readonly contractor: {
|
|
106
|
+
readonly url: "https://www.brightwater-roofing.example/";
|
|
107
|
+
};
|
|
108
|
+
readonly salon: {
|
|
109
|
+
readonly url: "https://www.juniper-row.example/";
|
|
110
|
+
};
|
|
111
|
+
readonly clinic: {
|
|
112
|
+
readonly url: "https://www.stillwater-clinic.example/";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export type SiteBasicPageName = keyof typeof SITE_BASIC_PAGES;
|
|
116
|
+
/** A basic site's page, and its stylesheet. */
|
|
117
|
+
export declare const siteBasicRecording: (name: SiteBasicPageName) => {
|
|
118
|
+
html: string;
|
|
119
|
+
css: string;
|
|
120
|
+
};
|
|
92
121
|
/** One recorded page's markup. */
|
|
93
122
|
export declare function siteLayoutRecording(name: SiteLayoutPageName): string;
|
|
94
123
|
/** Whether an address is on the recorded page's own site. */
|
|
@@ -147,6 +147,32 @@ export const SITE_READ_JSON_FORM_URL = `${SITE_READ_ORIGIN}/contact`;
|
|
|
147
147
|
url: url,
|
|
148
148
|
text: readFileSync(join(DIR, 'vars-theme', file), 'utf8')
|
|
149
149
|
}));
|
|
150
|
+
/**
|
|
151
|
+
* Four basic sites that do not exist (AGL-4152), each one page and the
|
|
152
|
+
* stylesheet saved beside it in `site-layout/basic/`, written for a generative
|
|
153
|
+
* Improve it: a tax firm, a contractor, a salon and a clinic, as small
|
|
154
|
+
* businesses build them on a site builder, plain bands, a stacked column of
|
|
155
|
+
* pictures, a text link for a call to action. Every business, name, address,
|
|
156
|
+
* phone and word is invented, so nothing is tuned to one site. They are not
|
|
157
|
+
* among `SITE_LAYOUT_PAGES`: the reports of today's build score those.
|
|
158
|
+
*/ export const SITE_BASIC_PAGES = {
|
|
159
|
+
'tax-firm': {
|
|
160
|
+
url: 'https://www.larkspur-tax.example/'
|
|
161
|
+
},
|
|
162
|
+
contractor: {
|
|
163
|
+
url: 'https://www.brightwater-roofing.example/'
|
|
164
|
+
},
|
|
165
|
+
salon: {
|
|
166
|
+
url: 'https://www.juniper-row.example/'
|
|
167
|
+
},
|
|
168
|
+
clinic: {
|
|
169
|
+
url: 'https://www.stillwater-clinic.example/'
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
/** A basic site's page, and its stylesheet. */ export const siteBasicRecording = (name)=>({
|
|
173
|
+
html: readFileSync(join(DIR, 'basic', `${name}.html`), 'utf8'),
|
|
174
|
+
css: readFileSync(join(DIR, 'basic', `${name}.css`), 'utf8')
|
|
175
|
+
});
|
|
150
176
|
const cache = new Map();
|
|
151
177
|
/** One recorded page's markup. */ export function siteLayoutRecording(name) {
|
|
152
178
|
const { file } = SITE_LAYOUT_PAGES[name];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../libs/plugins/ai/src/lib/site-import/fixtures/site-layout-recordings.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Pages recorded with their layout (AGL-4106), for the specs of the layout,\n * menu and stylesheet readers, and for the compile and fidelity specs that\n * read what they find.\n *\n * `site-layout/` holds four pages of aglyn.com as AglynBot read them on\n * 2026-10-28 and 2026-10-29 (product, pricing, contact, one blog post), its\n * home page as it read on 2026-11-05, which the 11/5 Keep my site import fell\n * short on (AGL-4152), its pricing page again as it read on 2026-11-01, which a live import fell\n * short on (`livePricing`), its blog listing as it read on 2026-11-03, whose\n * cards crop their pictures to a height of their own (`blog`, AGL-4138), and\n * one page in the markup a Squarespace site is built with, written for these\n * specs about a studio that does not exist, so the readers are never tuned to\n * one site's markup.\n * A bakery that does not exist either, in the markup a WordPress block theme\n * writes, shows a film of every kind the reader reads (AGL-4140): a\n * `<video>` playing behind its opening, a YouTube frame, a `lite-youtube`\n * facade, a card's picture linking a Vimeo page, and an `og:video` in its\n * head.\n * A garden firm that does not exist either, in the markup a visual grid builder\n * writes (AGL-4152), places every block with a rule of its own on a 24-column\n * grid, inside a `min-width` query: `grid-services` shows three cards and a row\n * of pictures, `swapped-grid` a page whose written order is not the order a\n * visitor reads, so each card's words sit after the next card's heading.\n *\n * The aglyn.com recordings keep what the `aglyn-com/` ones dropped and the\n * layout is made of: class names, inline icons and the page's own stylesheet.\n * Each was trimmed before it entered the repo: script bodies are gone (one\n * small inline script with a hostile line stands in for them; the\n * structured data stays), so are preload links, `data-*` attributes and\n * `srcset`s; the stylesheet keeps only the rules for classes the page uses\n * and the properties the readers read; class names the kept rules do not name\n * are dropped, a grid framework's own hints kept; the pricing page keeps the\n * first 14 rows of its plan table, and the product, pricing, contact and blog\n * pages their header menu without its panels and their footer's © line. The\n * blog listing keeps its first page of posts, a featured one and six cards,\n * without its search box and its newsletter band, inside the blog post's\n * header and footer. The home page keeps its header and footer whole, for\n * the menu reader. Every address, phone number, author and profile is a\n * placeholder.\n */\n\nimport { readFileSync } from 'node:fs'\nimport { join } from 'node:path'\n\nconst DIR = join(__dirname, 'site-layout')\n\nexport const SITE_LAYOUT_AGLYN_ORIGIN = 'https://aglyn.com'\nexport const SITE_LAYOUT_POTTERY_ORIGIN = 'https://www.tidewater-pottery.example'\nexport const SITE_LAYOUT_BAKERY_ORIGIN = 'https://www.hearth-bakery.example'\nexport const SITE_LAYOUT_GARDEN_ORIGIN = 'https://www.fern-and-stone.example'\n\n/** The recorded pages, by name: the file and the address it was read from. */\nexport const SITE_LAYOUT_PAGES = {\n home: { file: 'aglyn-home.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/` },\n product: { file: 'aglyn-product.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/product` },\n pricing: { file: 'aglyn-pricing.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/pricing` },\n livePricing: { file: 'aglyn-pricing-2026-11.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/pricing` },\n contact: { file: 'aglyn-contact.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/contact` },\n post: { file: 'aglyn-blog-post.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/blog/multi-site-cost-sheet-2026` },\n blog: { file: 'aglyn-blog.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/blog` },\n pottery: { file: 'squarespace-pottery.html', url: `${SITE_LAYOUT_POTTERY_ORIGIN}/` },\n bakery: { file: 'video-bakery.html', url: `${SITE_LAYOUT_BAKERY_ORIGIN}/` },\n gridServices: { file: 'grid-services.html', url: `${SITE_LAYOUT_GARDEN_ORIGIN}/` },\n swappedGrid: { file: 'swapped-grid.html', url: `${SITE_LAYOUT_GARDEN_ORIGIN}/plans` },\n} as const\n\nexport type SiteLayoutPageName = keyof typeof SITE_LAYOUT_PAGES\n\n/**\n * Pages written for the reads of a site's brand and its forms (AGL-4152),\n * about a bookkeeper that does not exist and in the markup of no builder, so\n * the readers are never tuned to one site. They are not scored against a build\n * as the pages above are.\n *\n * `vars-theme` links five stylesheets, saved beside it in `vars-theme/`: four\n * of a site kit's shared widgets, whose loud colors are nobody's brand, then\n * the site's own, the last link, whose colors and fonts are custom properties\n * (comma triples and the modern spaced syntax) and whose buttons are styled\n * through `:is()` and `:where()`. `json-form` has no `<form>`: its fields are\n * JSON a script block holds, beside two arrays that only look like fields.\n */\nexport const SITE_READ_ORIGIN = 'https://www.harbor-lane.example'\n\nexport const SITE_READ_VARS_THEME_URL = `${SITE_READ_ORIGIN}/`\nexport const SITE_READ_JSON_FORM_URL = `${SITE_READ_ORIGIN}/contact`\n\n/** A written page's markup, by its file in `site-layout/`. */\nexport const siteReadPage = (file: 'vars-theme.html' | 'json-form.html'): string => readFileSync(join(DIR, file), 'utf8')\n\n/** The `vars-theme` page's stylesheets, by the address its markup links each from, in link order. */\nexport const siteReadVarsThemeSheets = (): Array<{ url: string; text: string }> =>\n [\n ['https://cdn.sitekit.example/universal/reset.css', 'reset.css'],\n ['https://cdn.sitekit.example/components/gallery.css', 'gallery.css'],\n ['https://cdn.sitekit.example/components/map.css', 'map.css'],\n ['https://cdn.sitekit.example/components/booking.css', 'booking.css'],\n ['https://assets.sitekit.example/sites/4182/site.css', 'site.css'],\n ].map(([url, file]) => ({ url: url as string, text: readFileSync(join(DIR, 'vars-theme', file as string), 'utf8') }))\n\nconst cache = new Map<string, string>()\n\n/** One recorded page's markup. */\nexport function siteLayoutRecording(name: SiteLayoutPageName): string {\n const { file } = SITE_LAYOUT_PAGES[name]\n const held = cache.get(file)\n if (held !== undefined) return held\n const text = readFileSync(join(DIR, file), 'utf8')\n cache.set(file, text)\n return text\n}\n\n/** Whether an address is on the recorded page's own site. */\nexport function siteLayoutSameSite(name: SiteLayoutPageName): (url: URL) => boolean {\n const origin = new URL(SITE_LAYOUT_PAGES[name].url).origin\n const bare = origin.replace('://www.', '://')\n const www = origin.replace('://', '://www.').replace('://www.www.', '://www.')\n return (url) => url.origin === origin || url.origin === bare || url.origin === www\n}\n"],"names":["readFileSync","join","DIR","__dirname","SITE_LAYOUT_AGLYN_ORIGIN","SITE_LAYOUT_POTTERY_ORIGIN","SITE_LAYOUT_BAKERY_ORIGIN","SITE_LAYOUT_GARDEN_ORIGIN","SITE_LAYOUT_PAGES","home","file","url","product","pricing","livePricing","contact","post","blog","pottery","bakery","gridServices","swappedGrid","SITE_READ_ORIGIN","SITE_READ_VARS_THEME_URL","SITE_READ_JSON_FORM_URL","siteReadPage","siteReadVarsThemeSheets","map","text","cache","Map","siteLayoutRecording","name","held","get","undefined","set","siteLayoutSameSite","origin","URL","bare","replace","www"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCC,GAED,SAASA,YAAY,QAAQ,UAAS;A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fixtures/site-layout-recordings.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Pages recorded with their layout (AGL-4106), for the specs of the layout,\n * menu and stylesheet readers, and for the compile and fidelity specs that\n * read what they find.\n *\n * `site-layout/` holds four pages of aglyn.com as AglynBot read them on\n * 2026-10-28 and 2026-10-29 (product, pricing, contact, one blog post), its\n * home page as it read on 2026-11-05, which the 11/5 Keep my site import fell\n * short on (AGL-4152), its pricing page again as it read on 2026-11-01, which a live import fell\n * short on (`livePricing`), its blog listing as it read on 2026-11-03, whose\n * cards crop their pictures to a height of their own (`blog`, AGL-4138), and\n * one page in the markup a Squarespace site is built with, written for these\n * specs about a studio that does not exist, so the readers are never tuned to\n * one site's markup.\n * A bakery that does not exist either, in the markup a WordPress block theme\n * writes, shows a film of every kind the reader reads (AGL-4140): a\n * `<video>` playing behind its opening, a YouTube frame, a `lite-youtube`\n * facade, a card's picture linking a Vimeo page, and an `og:video` in its\n * head.\n * A garden firm that does not exist either, in the markup a visual grid builder\n * writes (AGL-4152), places every block with a rule of its own on a 24-column\n * grid, inside a `min-width` query: `grid-services` shows three cards and a row\n * of pictures, `swapped-grid` a page whose written order is not the order a\n * visitor reads, so each card's words sit after the next card's heading.\n *\n * The aglyn.com recordings keep what the `aglyn-com/` ones dropped and the\n * layout is made of: class names, inline icons and the page's own stylesheet.\n * Each was trimmed before it entered the repo: script bodies are gone (one\n * small inline script with a hostile line stands in for them; the\n * structured data stays), so are preload links, `data-*` attributes and\n * `srcset`s; the stylesheet keeps only the rules for classes the page uses\n * and the properties the readers read; class names the kept rules do not name\n * are dropped, a grid framework's own hints kept; the pricing page keeps the\n * first 14 rows of its plan table, and the product, pricing, contact and blog\n * pages their header menu without its panels and their footer's © line. The\n * blog listing keeps its first page of posts, a featured one and six cards,\n * without its search box and its newsletter band, inside the blog post's\n * header and footer. The home page keeps its header and footer whole, for\n * the menu reader. Every address, phone number, author and profile is a\n * placeholder.\n */\n\nimport { readFileSync } from 'node:fs'\nimport { join } from 'node:path'\n\nconst DIR = join(__dirname, 'site-layout')\n\nexport const SITE_LAYOUT_AGLYN_ORIGIN = 'https://aglyn.com'\nexport const SITE_LAYOUT_POTTERY_ORIGIN = 'https://www.tidewater-pottery.example'\nexport const SITE_LAYOUT_BAKERY_ORIGIN = 'https://www.hearth-bakery.example'\nexport const SITE_LAYOUT_GARDEN_ORIGIN = 'https://www.fern-and-stone.example'\n\n/** The recorded pages, by name: the file and the address it was read from. */\nexport const SITE_LAYOUT_PAGES = {\n home: { file: 'aglyn-home.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/` },\n product: { file: 'aglyn-product.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/product` },\n pricing: { file: 'aglyn-pricing.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/pricing` },\n livePricing: { file: 'aglyn-pricing-2026-11.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/pricing` },\n contact: { file: 'aglyn-contact.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/contact` },\n post: { file: 'aglyn-blog-post.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/blog/multi-site-cost-sheet-2026` },\n blog: { file: 'aglyn-blog.html', url: `${SITE_LAYOUT_AGLYN_ORIGIN}/blog` },\n pottery: { file: 'squarespace-pottery.html', url: `${SITE_LAYOUT_POTTERY_ORIGIN}/` },\n bakery: { file: 'video-bakery.html', url: `${SITE_LAYOUT_BAKERY_ORIGIN}/` },\n gridServices: { file: 'grid-services.html', url: `${SITE_LAYOUT_GARDEN_ORIGIN}/` },\n swappedGrid: { file: 'swapped-grid.html', url: `${SITE_LAYOUT_GARDEN_ORIGIN}/plans` },\n} as const\n\nexport type SiteLayoutPageName = keyof typeof SITE_LAYOUT_PAGES\n\n/**\n * Pages written for the reads of a site's brand and its forms (AGL-4152),\n * about a bookkeeper that does not exist and in the markup of no builder, so\n * the readers are never tuned to one site. They are not scored against a build\n * as the pages above are.\n *\n * `vars-theme` links five stylesheets, saved beside it in `vars-theme/`: four\n * of a site kit's shared widgets, whose loud colors are nobody's brand, then\n * the site's own, the last link, whose colors and fonts are custom properties\n * (comma triples and the modern spaced syntax) and whose buttons are styled\n * through `:is()` and `:where()`. `json-form` has no `<form>`: its fields are\n * JSON a script block holds, beside two arrays that only look like fields.\n */\nexport const SITE_READ_ORIGIN = 'https://www.harbor-lane.example'\n\nexport const SITE_READ_VARS_THEME_URL = `${SITE_READ_ORIGIN}/`\nexport const SITE_READ_JSON_FORM_URL = `${SITE_READ_ORIGIN}/contact`\n\n/** A written page's markup, by its file in `site-layout/`. */\nexport const siteReadPage = (file: 'vars-theme.html' | 'json-form.html'): string => readFileSync(join(DIR, file), 'utf8')\n\n/** The `vars-theme` page's stylesheets, by the address its markup links each from, in link order. */\nexport const siteReadVarsThemeSheets = (): Array<{ url: string; text: string }> =>\n [\n ['https://cdn.sitekit.example/universal/reset.css', 'reset.css'],\n ['https://cdn.sitekit.example/components/gallery.css', 'gallery.css'],\n ['https://cdn.sitekit.example/components/map.css', 'map.css'],\n ['https://cdn.sitekit.example/components/booking.css', 'booking.css'],\n ['https://assets.sitekit.example/sites/4182/site.css', 'site.css'],\n ].map(([url, file]) => ({ url: url as string, text: readFileSync(join(DIR, 'vars-theme', file as string), 'utf8') }))\n\n/**\n * Four basic sites that do not exist (AGL-4152), each one page and the\n * stylesheet saved beside it in `site-layout/basic/`, written for a generative\n * Improve it: a tax firm, a contractor, a salon and a clinic, as small\n * businesses build them on a site builder, plain bands, a stacked column of\n * pictures, a text link for a call to action. Every business, name, address,\n * phone and word is invented, so nothing is tuned to one site. They are not\n * among `SITE_LAYOUT_PAGES`: the reports of today's build score those.\n */\nexport const SITE_BASIC_PAGES = {\n 'tax-firm': { url: 'https://www.larkspur-tax.example/' },\n contractor: { url: 'https://www.brightwater-roofing.example/' },\n salon: { url: 'https://www.juniper-row.example/' },\n clinic: { url: 'https://www.stillwater-clinic.example/' },\n} as const\n\nexport type SiteBasicPageName = keyof typeof SITE_BASIC_PAGES\n\n/** A basic site's page, and its stylesheet. */\nexport const siteBasicRecording = (name: SiteBasicPageName): { html: string; css: string } => ({\n html: readFileSync(join(DIR, 'basic', `${name}.html`), 'utf8'),\n css: readFileSync(join(DIR, 'basic', `${name}.css`), 'utf8'),\n})\n\nconst cache = new Map<string, string>()\n\n/** One recorded page's markup. */\nexport function siteLayoutRecording(name: SiteLayoutPageName): string {\n const { file } = SITE_LAYOUT_PAGES[name]\n const held = cache.get(file)\n if (held !== undefined) return held\n const text = readFileSync(join(DIR, file), 'utf8')\n cache.set(file, text)\n return text\n}\n\n/** Whether an address is on the recorded page's own site. */\nexport function siteLayoutSameSite(name: SiteLayoutPageName): (url: URL) => boolean {\n const origin = new URL(SITE_LAYOUT_PAGES[name].url).origin\n const bare = origin.replace('://www.', '://')\n const www = origin.replace('://', '://www.').replace('://www.www.', '://www.')\n return (url) => url.origin === origin || url.origin === bare || url.origin === www\n}\n"],"names":["readFileSync","join","DIR","__dirname","SITE_LAYOUT_AGLYN_ORIGIN","SITE_LAYOUT_POTTERY_ORIGIN","SITE_LAYOUT_BAKERY_ORIGIN","SITE_LAYOUT_GARDEN_ORIGIN","SITE_LAYOUT_PAGES","home","file","url","product","pricing","livePricing","contact","post","blog","pottery","bakery","gridServices","swappedGrid","SITE_READ_ORIGIN","SITE_READ_VARS_THEME_URL","SITE_READ_JSON_FORM_URL","siteReadPage","siteReadVarsThemeSheets","map","text","SITE_BASIC_PAGES","contractor","salon","clinic","siteBasicRecording","name","html","css","cache","Map","siteLayoutRecording","held","get","undef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AOH,MAAMI,GAAG,CAAC/B;IACvB,IAAI8B,SAASE,WAAW,OAAOF;IAC/B,MAAMZ,OAAO5B,aAAaC,KAAKC,KAAKQ,OAAO;IAC3C2B,MAAMM,GAAG,CAACjC,MAAMkB;IAChB,OAAOA;AACT;AAEA,2DAA2D,GAC3D,OAAO,SAASgB,mBAAmBV,IAAwB;IACzD,MAAMW,SAAS,IAAIC,IAAItC,iBAAiB,CAAC0B,KAAK,CAACvB,GAAG,EAAEkC,MAAM;IAC1D,MAAME,OAAOF,OAAOG,OAAO,CAAC,WAAW;IACvC,MAAMC,MAAMJ,OAAOG,OAAO,CAAC,OAAO,WAAWA,OAAO,CAAC,eAAe;IACpE,OAAO,CAACrC,MAAQA,IAAIkC,MAAM,KAAKA,UAAUlC,IAAIkC,MAAM,KAAKE,QAAQpC,IAAIkC,MAAM,KAAKI;AACjF"}
|
|
@@ -21,3 +21,20 @@
|
|
|
21
21
|
* module of its own so the job and the doors read it without each other.
|
|
22
22
|
*/
|
|
23
23
|
export declare const SITE_IMPORT_RELEASE_FLAG: "release_ai_site_import";
|
|
24
|
+
/**
|
|
25
|
+
* Improve it, generative (AGL-4152): read per org when a wave starts, and
|
|
26
|
+
* stamped on the wave, so a wave keeps the build it started with. Off by
|
|
27
|
+
* default and off everywhere in production; a test organization gets it with
|
|
28
|
+
* the per-org override (`orgs/{orgId}.releaseFlags`). Off, Improve it is
|
|
29
|
+
* exactly today's: no new call, tool, text, theme or screen.
|
|
30
|
+
*/
|
|
31
|
+
export declare const SITE_IMPORT_GENERATIVE_RELEASE_FLAG: "release_ai_site_import_generative";
|
|
32
|
+
/**
|
|
33
|
+
* YouTube's own still as a poster (AGL-4140): read per org when a wave
|
|
34
|
+
* starts, and stamped on the wave, so its pages place a YouTube film whose
|
|
35
|
+
* poster the library could not hold, with no poster, for the published page
|
|
36
|
+
* to draw YouTube's still in. Off, such a film is left out as it always was.
|
|
37
|
+
* The published page reads the same flag, so a page built while it was on
|
|
38
|
+
* asks for a poster again if it is turned off.
|
|
39
|
+
*/
|
|
40
|
+
export declare const SITE_IMPORT_VIDEO_POSTERS_RELEASE_FLAG: "release_video_embed_posters";
|