create-pmos 0.448.0 → 0.449.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/package.json +13 -13
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/adler-seasons-art-test.js +9 -2
- package/workspace/adler-seasons-test.js +1 -1
- package/workspace/changelog.json +12 -0
- package/workspace/guide/adler.md +15 -15
- package/workspace/lib/page-build.js +8 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/adler/01_expressions/celebrating.png +0 -0
- package/workspace/public/pm/adler/01_expressions/handled.png +0 -0
- package/workspace/public/pm/adler/01_expressions/honest.png +0 -0
- package/workspace/public/pm/adler/01_expressions/needs_you.png +0 -0
- package/workspace/public/pm/adler/01_expressions/resting.png +0 -0
- package/workspace/public/pm/adler/01_expressions/thinking.png +0 -0
- package/workspace/public/pm/adler/02_moments/headphones_honest.png +0 -0
- package/workspace/public/pm/adler/02_moments/headphones_listening.png +0 -0
- package/workspace/public/pm/adler/02_moments/headphones_resting.png +0 -0
- package/workspace/public/pm/adler/02_moments/hello_wave.png +0 -0
- package/workspace/public/pm/adler/02_moments/honest_full_figure.png +0 -0
- package/workspace/public/pm/adler/02_moments/leaf_tips_peeking.png +0 -0
- package/workspace/public/pm/adler/02_moments/morning_stretch.png +0 -0
- package/workspace/public/pm/adler/02_moments/peeking_up.png +0 -0
- package/workspace/public/pm/adler/02_moments/tea_mug.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/clipboard.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/laptop_alert.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/laptop_resting.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_large.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_medium.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_none.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_small.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/telescope.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/cloud_large.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/cloud_medium.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/cloud_small.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/crescent_stars.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/leaf_green.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/leaf_orange.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/leaf_pink.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/rain_cloud.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/sun.png +0 -0
- package/workspace/public/pm/adler/05_space/lunar_ground.png +0 -0
- package/workspace/public/pm/adler/05_space/planet_cloud.png +0 -0
- package/workspace/public/pm/adler/05_space/planet_crater.png +0 -0
- package/workspace/public/pm/adler/05_space/planet_glass.png +0 -0
- package/workspace/public/pm/adler/05_space/planet_smooth.png +0 -0
- package/workspace/public/pm/adler/05_space/rocket_flying.png +0 -0
- package/workspace/public/pm/adler/05_space/rocket_idle.png +0 -0
- package/workspace/public/pm/adler/05_space/rocket_liftoff.png +0 -0
- package/workspace/public/pm/adler/05_space/satellite.png +0 -0
- package/workspace/public/pm/adler/05_space/satellite_dish.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/beach.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/deciduous_forest.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/desert_large.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/desert_small.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/floating_island_large.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/floating_island_small.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/lake.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/pine_forest.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/snow_forest.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/snow_mountains.png +0 -0
- package/workspace/public/pm/adler/07_wearables/astronaut_helmet.png +0 -0
- package/workspace/public/pm/adler/07_wearables/beanie_blue.png +0 -0
- package/workspace/public/pm/adler/07_wearables/beanie_red.png +0 -0
- package/workspace/public/pm/adler/07_wearables/hard_hat.png +0 -0
- package/workspace/public/pm/adler/07_wearables/headband.png +0 -0
- package/workspace/public/pm/adler/07_wearables/party_hat_blue.png +0 -0
- package/workspace/public/pm/adler/07_wearables/party_hat_multicolor.png +0 -0
- package/workspace/public/pm/adler/07_wearables/pencil.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_black_white.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_blue.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_blue_white.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_green_red.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_green_white.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_red_white.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_yellow.png +0 -0
- package/workspace/public/pm/adler/07_wearables/straw_hat.png +0 -0
- package/workspace/public/pm/adler/07_wearables/yellow_flowers.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/apple.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/cooking_pot.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/cupcake.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/diya.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/egg.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/heart_mug.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/ketupat.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/lotus.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/mandarins.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/mooncake.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/pie.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/pinwheel.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/popcorn.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/red_lantern.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/tangyuan.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/watering_can.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/zongzi.png +0 -0
- package/workspace/public/pm/adler/09_celebration/bunting.png +0 -0
- package/workspace/public/pm/adler/09_celebration/clapperboard.png +0 -0
- package/workspace/public/pm/adler/09_celebration/fireworks.png +0 -0
- package/workspace/public/pm/adler/09_celebration/flower_garland.png +0 -0
- package/workspace/public/pm/adler/09_celebration/gift.png +0 -0
- package/workspace/public/pm/adler/09_celebration/lantern_pair.png +0 -0
- package/workspace/public/pm/adler/09_celebration/moon_cloud.png +0 -0
- package/workspace/public/pm/adler/09_celebration/pumpkin.png +0 -0
- package/workspace/public/pm/adler/09_celebration/soccer_ball.png +0 -0
- package/workspace/public/pm/adler/09_celebration/string_lights.png +0 -0
- package/workspace/public/pm/adler/09_celebration/umbrella.png +0 -0
- package/workspace/public/pm/adler/10_marks/attention_marks.png +0 -0
- package/workspace/public/pm/adler/10_marks/gold_heart.png +0 -0
- package/workspace/public/pm/adler/10_marks/gold_sparkles.png +0 -0
- package/workspace/public/pm/adler/10_marks/gold_star.png +0 -0
- package/workspace/public/pm/adler/10_marks/question_mark.png +0 -0
- package/workspace/public/pm/adler/10_marks/sleep_curls.png +0 -0
- package/workspace/public/pm/adler/manifest.json +2668 -0
- package/workspace/public/pm/cozy-adler.css +5 -5
- package/workspace/public/pm/cozy-adler.js +194 -414
- package/workspace/public/pm/cozy-settings.js +2 -2
- package/workspace/server.js +4 -2
- package/workspace/test-lists/adler-png-art.json +10 -0
|
@@ -105,7 +105,7 @@ const dmy = (ms) => new Date(ms).toLocaleDateString('en-GB', { day: 'numeric', m
|
|
|
105
105
|
/** The Adler row's second line: what he wears now, or the next one, or why he does not dress. */
|
|
106
106
|
function dressLine() {
|
|
107
107
|
const P = dp();
|
|
108
|
-
if (P['adler.dress.on'] === false) return 'Off. He
|
|
108
|
+
if (P['adler.dress.on'] === false) return 'Off. He is plain every day.';
|
|
109
109
|
if (P['adler.amount'] !== 'full') return 'He dresses only when How much Adler is Full.';
|
|
110
110
|
const now = SE.charmToday(Date.now(), P), nx = now ? null : SE.nextCharm(Date.now(), P);
|
|
111
111
|
return now ? `Today: ${now.name}, until ${dmy(now.until)}.` : nx ? `Next: ${nx.name}, from ${dmy(nx.from)}.` : 'For festivals and seasons where you live.';
|
|
@@ -115,7 +115,7 @@ function dressSec() {
|
|
|
115
115
|
const P = dp(), place = SE.placeOf(P), on = P['adler.dress.on'] !== false, full = P['adler.amount'] === 'full';
|
|
116
116
|
const now = on && full ? SE.charmToday(Date.now(), P) : null, nx = on && full && !now ? SE.nextCharm(Date.now(), P) : null, c = now || nx;
|
|
117
117
|
const head = `<div class="ev-dr-hd"><button type="button" class="ev-ib" data-ev-dress="back" aria-label="Back to Adler" title="Back">${svg(BACK, 18)}</button><h4 class="ev-grow">Dress for the day</h4>${dsw('adler.dress.on', on, 'Dress for the day')}</div>`;
|
|
118
|
-
if (!on) return head + '<p class="ev-small ev-mut">Adler
|
|
118
|
+
if (!on) return head + '<p class="ev-small ev-mut">Adler is plain every day.</p>';
|
|
119
119
|
const banner = !full ? '<p class="ev-small ev-mut">How much Adler is not Full, so he does not dress up.</p>'
|
|
120
120
|
: c ? `<div class="ev-dr-now">${AD.adler('handled', 48, { charm: c.key, label: false })}<p><b>${esc(now ? 'Today: ' + now.name : 'Next: ' + nx.name)}</b><span class="ev-small ev-mut">${esc(now ? 'He wears it until ' + dmy(now.until) + '.' : 'He wears it from ' + dmy(nx.from) + '.')}</span></p></div>` : '';
|
|
121
121
|
const hol = SE.DAYS.filter((e) => e.group === 'holidays' && (e.where === '*' || e.where.includes(place.country)));
|
package/workspace/server.js
CHANGED
|
@@ -6629,7 +6629,7 @@ function fsList(dir) {
|
|
|
6629
6629
|
// ── HTTP: static assets + the file/gate APIs. Headers never logged (D08). ─────────────
|
|
6630
6630
|
const TYPES = { '.html': 'text/html; charset=utf-8', '.js': 'text/javascript; charset=utf-8',
|
|
6631
6631
|
'.css': 'text/css; charset=utf-8', '.json': 'application/json', '.map': 'application/json',
|
|
6632
|
-
'.svg': 'image/svg+xml', '.woff2': 'font/woff2' };
|
|
6632
|
+
'.svg': 'image/svg+xml', '.png': 'image/png', '.woff2': 'font/woff2' };
|
|
6633
6633
|
// Compression and validators (workspace-event-loop-lag). The app shell is 5.7 MB of script and style and a library answer
|
|
6634
6634
|
// is about 1 MB of JSON, and none of it was compressed, so a phone or an Online-address visit paid for every byte on every
|
|
6635
6635
|
// load. A response is gzipped only when the client asks for it and the body is text over the threshold. Gzip runs on the
|
|
@@ -6978,7 +6978,9 @@ async function handleRequest(req, res) {
|
|
|
6978
6978
|
if (p.startsWith('/pm/')) {
|
|
6979
6979
|
const rel = p.slice('/pm/'.length);
|
|
6980
6980
|
const file = path.resolve(PM_DIR, rel);
|
|
6981
|
-
|
|
6981
|
+
// The one other kind of file: Adler's pictures, in pm/adler/<category>/ (page-build.js counts them in the build, so they are kept like a module).
|
|
6982
|
+
const art = path.extname(file) === '.png' && file.startsWith(path.join(PM_DIR, 'adler') + path.sep);
|
|
6983
|
+
if (!file.startsWith(PM_DIR + path.sep) || !(art || ['.js', '.css', '.json'].includes(path.extname(file)))) {
|
|
6982
6984
|
res.writeHead(404); return res.end('not found');
|
|
6983
6985
|
}
|
|
6984
6986
|
// Under the current build prefix, a file whose bytes are the ones the prefix names is kept for good (lib/page-build.js).
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The blue Adler's PNG set (pm/adler/, manifest.json) behind pm/cozy-adler.js: the art table matches the manifest and its hashes, every drawing resolves to a file in the set, and each mood, prop and sprout stage has its own PNG. Pure; no browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"adler-png-art.test.js"
|
|
5
|
+
],
|
|
6
|
+
"panels": [],
|
|
7
|
+
"seconds": {
|
|
8
|
+
"adler-png-art.test.js": 2
|
|
9
|
+
}
|
|
10
|
+
}
|