create-pmos 0.448.0 → 0.450.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 +25 -25
- 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 +24 -0
- package/workspace/guide/adler.md +15 -15
- package/workspace/lib/grill-api.js +146 -0
- package/workspace/lib/grill-runs.js +14 -2
- package/workspace/lib/grill.js +3 -0
- package/workspace/lib/page-build.js +8 -0
- package/workspace/package-lock.json +84 -2
- package/workspace/package.json +2 -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/run-tests.js +47 -5
- package/workspace/server.js +5 -2
- package/workspace/test-lists/adler-png-art.json +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.450.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -32,6 +32,30 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.450.0",
|
|
37
|
+
"at": "2026-10-29T08:31:57.056Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1096,
|
|
42
|
+
"t": "Grill runs go to the Claude API; --changed narrows further",
|
|
43
|
+
"s": "Grill runs go to the Claude API; --changed narrows further"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"v": "0.449.0",
|
|
49
|
+
"at": "2026-10-29T08:16:15.214Z",
|
|
50
|
+
"f": 2,
|
|
51
|
+
"prs": [
|
|
52
|
+
{
|
|
53
|
+
"n": 1095,
|
|
54
|
+
"t": "The blue Adler — replace the drawn SVG Adler with the 103-PNG set",
|
|
55
|
+
"s": "The blue Adler — replace the drawn SVG Adler with the 103-PNG set"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
35
59
|
{
|
|
36
60
|
"v": "0.448.0",
|
|
37
61
|
"at": "2026-10-29T07:41:35.601Z",
|
|
@@ -247,30 +271,6 @@
|
|
|
247
271
|
"s": "A milestone on the Board timeline says its own name and date."
|
|
248
272
|
}
|
|
249
273
|
]
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"v": "0.430.0",
|
|
253
|
-
"at": "2026-10-28T00:05:38.060Z",
|
|
254
|
-
"f": 2,
|
|
255
|
-
"prs": [
|
|
256
|
-
{
|
|
257
|
-
"n": 1073,
|
|
258
|
-
"t": "Feedback batch 16",
|
|
259
|
-
"s": "Feedback batch 16"
|
|
260
|
-
}
|
|
261
|
-
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"v": "0.429.0",
|
|
265
|
-
"at": "2026-10-27T18:29:21.690Z",
|
|
266
|
-
"f": 2,
|
|
267
|
-
"prs": [
|
|
268
|
-
{
|
|
269
|
-
"n": 1072,
|
|
270
|
-
"t": "Feedback batch 15",
|
|
271
|
-
"s": "Feedback batch 15"
|
|
272
|
-
}
|
|
273
|
-
]
|
|
274
274
|
}
|
|
275
275
|
]
|
|
276
276
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-29T08:31:54Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-29T08:31:54Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-29T08:31:54Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -85,7 +85,7 @@ export const skipThisYear = (key, now) => ({ key: 'adler.dress.skip', value: key
|
|
|
85
85
|
const b = document.querySelector('#czViewer .yd-open'); const sc = b && b.querySelector('.yd-scene svg.ad-scene');
|
|
86
86
|
if (!sc) return null;
|
|
87
87
|
const r = sc.getBoundingClientRect(), card = b.getBoundingClientRect();
|
|
88
|
-
return { charm: sc.classList.contains('ch-deepavali'), sky: !!sc.querySelector('.adg-deepavali0'), diya: !!sc.querySelector('.
|
|
88
|
+
return { charm: sc.classList.contains('ch-deepavali'), sky: !!sc.querySelector('.adg-deepavali0'), diya: !!sc.querySelector('image[href$="/diya.png"]'), line: b.querySelector('.yd-ht b').textContent,
|
|
89
89
|
w: Math.round(r.width), cw: Math.round(card.width), h: Math.round(r.height), scroll: document.documentElement.scrollWidth - innerWidth };
|
|
90
90
|
}), 15000);
|
|
91
91
|
ok(`Y1 ${tag} Your day opens on the Deepavali scene with the diya, and wishes it`, y1 && y1.charm && y1.sky && y1.diya && /^Happy Deepavali\b/.test(y1.line), JSON.stringify(y1));
|
|
@@ -97,7 +97,14 @@ export const skipThisYear = (key, now) => ({ key: 'adler.dress.skip', value: key
|
|
|
97
97
|
const t1 = await until(() => page.evaluate(() => { const t = document.querySelector('#czViewer .ad-tip'); return t ? { text: t.querySelector('.ad-tip-t').textContent, icons: [...t.querySelectorAll('button')].map((b) => b.getAttribute('aria-label')) } : null; }));
|
|
98
98
|
ok(`T1 ${tag} a press says "Dressed for Deepavali." with "Not this one" and Dress for the day; no toast said he dressed`, t1 && t1.text === 'Dressed for Deepavali.' && t1.icons.length === 2 && /^Not this one/.test(t1.icons[0]) && !toasts.some((x) => /Deepavali|dress/i.test(x)), JSON.stringify({ t1, toasts }));
|
|
99
99
|
if (SHOTS) await page.screenshot({ path: path.join(SHOTS, `tap-${tag}.png`) });
|
|
100
|
-
|
|
100
|
+
// CI diagnostics (the press has timed out there with the tip detached and "not stable"): count how often Your day is drawn again after the tip opened
|
|
101
|
+
await page.evaluate(() => { window.__redraws = 0; const v = document.getElementById('czViewer'); new MutationObserver((ms) => { for (const m of ms) if ([...m.removedNodes].some((x) => x.nodeType === 1 && (x.matches('.ad-tip') || x.querySelector('.ad-tip')))) window.__redraws++; }).observe(v, { childList: true, subtree: true }); });
|
|
102
|
+
try { await page.click('#czViewer .ad-tip [data-ad-tip="skip"]', { timeout: 8000 }); }
|
|
103
|
+
catch (e) {
|
|
104
|
+
const d = await page.evaluate(() => ({ redraws: window.__redraws, tip: !!document.querySelector('.ad-tip'), btn: (() => { const b = document.querySelector('.ad-tip [data-ad-tip="skip"]'); if (!b) return null; const r = b.getBoundingClientRect(); return [r.x, r.y, r.width, r.height].map(Math.round); })(), imgs: document.querySelectorAll('#czViewer image').length }));
|
|
105
|
+
console.log(' ! T1 press needed the fallback: ' + JSON.stringify(d));
|
|
106
|
+
await page.evaluate(() => { const b = document.querySelector('.ad-tip [data-ad-tip="skip"]'); if (b) b.click(); });
|
|
107
|
+
}
|
|
101
108
|
const t2 = await until(() => page.evaluate(() => { const b = document.querySelector('#czViewer .yd-open'); return b && !b.querySelector('.ch-deepavali') && !b.querySelector('.ad-tip') ? { plain: true, btn: !!b.querySelector('[data-ad-dress]') } : null; }));
|
|
102
109
|
const saved = posts.find((p) => p.path === '/api/settings');
|
|
103
110
|
ok(`T2 ${tag} "Not this one" saves the calendar's setting, and he is plain at once`, t2 && !t2.btn && saved && JSON.parse(saved.body).key === 'adler.dress.skip' && JSON.parse(saved.body).value === 'deepavali:2026', JSON.stringify({ t2, saved }));
|
|
@@ -99,7 +99,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
99
99
|
await page.click('#evSettings [data-ev-dsw="adler.dress.on"]');
|
|
100
100
|
const p5 = await until(() => posts.find((p) => p.key === 'adler.dress.on'));
|
|
101
101
|
const d5 = await until(() => page.evaluate(() => { const m = document.querySelector('#evSettings .ev-st-main'); return m && !m.querySelector('[data-ev-wear]') ? m.textContent : null; }));
|
|
102
|
-
ok(`D5 ${tag} the master switch off posts false and leaves one line`, p5 && p5.value === false && d5 && /
|
|
102
|
+
ok(`D5 ${tag} the master switch off posts false and leaves one line`, p5 && p5.value === false && d5 && /plain every day/.test(d5), JSON.stringify(p5));
|
|
103
103
|
await shot('off');
|
|
104
104
|
await page.click('#evSettings [data-ev-dsw="adler.dress.on"]');
|
|
105
105
|
await until(() => posts.filter((p) => p.key === 'adler.dress.on').length === 2);
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.450.0",
|
|
4
|
+
"at": "2026-10-29T08:31:57.056Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1096,
|
|
9
|
+
"t": "Grill runs go to the Claude API; --changed narrows further",
|
|
10
|
+
"s": "Grill runs go to the Claude API; --changed narrows further"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"v": "0.449.0",
|
|
16
|
+
"at": "2026-10-29T08:16:15.214Z",
|
|
17
|
+
"f": 2,
|
|
18
|
+
"prs": [
|
|
19
|
+
{
|
|
20
|
+
"n": 1095,
|
|
21
|
+
"t": "The blue Adler — replace the drawn SVG Adler with the 103-PNG set",
|
|
22
|
+
"s": "The blue Adler — replace the drawn SVG Adler with the 103-PNG set"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
2
26
|
{
|
|
3
27
|
"v": "0.448.0",
|
|
4
28
|
"at": "2026-10-29T07:41:35.601Z",
|
package/workspace/guide/adler.md
CHANGED
|
@@ -7,7 +7,7 @@ timestamp: 2026-10-28
|
|
|
7
7
|
|
|
8
8
|
# Adler, Claude's face
|
|
9
9
|
|
|
10
|
-
Adler is a
|
|
10
|
+
Adler is a small blue character with a cream face and a gold ring. He is Claude's face in PMOS. When Claude says something, Adler's face shows the mood of what Claude says, so you can read the mood before you read the words.
|
|
11
11
|
|
|
12
12
|
## His six moods
|
|
13
13
|
|
|
@@ -17,32 +17,32 @@ Each mood comes from real state. When nothing happens, Adler is calm or he rests
|
|
|
17
17
|
| --- | --- |
|
|
18
18
|
| Handled | Claude's part is done. This is the usual mood. |
|
|
19
19
|
| Celebrating | Something real happened, for example a full day of decisions done. He celebrates at most once a week. |
|
|
20
|
-
| Thinking (
|
|
21
|
-
| Needs you (
|
|
22
|
-
| Honest (
|
|
20
|
+
| Thinking (one lobe at his chin) | Claude is working for you now. |
|
|
21
|
+
| Needs you (a slightly worried face) | One call is yours. |
|
|
22
|
+
| Honest (a plain, sincere face) | Something is not right. Claude says it plainly. |
|
|
23
23
|
| Resting | There is nothing to report, or it is after hours. |
|
|
24
24
|
|
|
25
25
|
## Where he shows
|
|
26
26
|
|
|
27
27
|
- **Every toast.** A small face before the words: calm when the change worked, honest when it did not.
|
|
28
28
|
- **Chat.** Claude's avatar on the latest reply only, in that reply's mood. An empty chat shows Adler resting.
|
|
29
|
-
- **Home.** His face next to the greeting. While Home reads your work he
|
|
29
|
+
- **Home.** His face next to the greeting. While Home reads your work he shows his thinking face, and when Home cannot read the repository he says so with the honest face.
|
|
30
30
|
- **Your day (phone).** His face on the opening card. On the first open before noon, a small morning scene. When nothing else needs you, Adler with his tea. On a day you earned it, Adler celebrating. After 22:00, Adler asleep: press **Open anyway** to see your day. If something is wrong, PMOS does not hide it behind the night scene.
|
|
31
|
-
- **Claude's suggestions.** Adler
|
|
31
|
+
- **Claude's suggestions.** Adler asks with his worried face when Claude suggests a split or a merge, milestones, a goal or a success measure.
|
|
32
32
|
- **Intelligence.** His face in Claude's line at the top only. Charts, numbers and key results never show him.
|
|
33
|
-
- **Search.** Adler with a
|
|
34
|
-
- **Welcome.** Adler says hello once on the first step, and
|
|
35
|
-
- **Board.** His small face on the Jira chip: calm when Jira was read in the last day and a half, honest when it was not, and
|
|
36
|
-
- **Program charter.** His face on the check line, with
|
|
37
|
-
- **Stage card.** While a session works on a step, that step shows Adler with his
|
|
38
|
-
- **Sessions.** Only the session that asks you something shows his face in the list. The other sessions keep their dots. In that session's card, he
|
|
33
|
+
- **Search.** Adler with a telescope when nothing matches.
|
|
34
|
+
- **Welcome.** Adler says hello once on the first step, and shows his thinking face while PMOS reads your folder.
|
|
35
|
+
- **Board.** His small face on the Jira chip: calm when Jira was read in the last day and a half, honest when it was not, and his thinking face while a press reads it again. He heads **New asks**: needs you while asks wait. When a delivery is missed, his honest face stands once in the Deliveries lane's header; hover it to see which. When you open a milestone that was delivered, he celebrates once in the panel (at most once a week); after that his face is calm. The diamond on the timeline stays plain, and nothing is sent to anyone.
|
|
36
|
+
- **Program charter.** His face on the check line, with his thinking face while Claude checks the milestones.
|
|
37
|
+
- **Stage card.** While a session works on a step, that step shows Adler with his thinking face instead of a spinner. When every step is done, Adler stands by the **Move to** button. Your own steps keep their rings.
|
|
38
|
+
- **Sessions.** Only the session that asks you something shows his face in the list. The other sessions keep their dots. In that session's card, he asks the question.
|
|
39
39
|
- **Viewer.** Under a page that the agent wrote last, one quiet line: "I drafted this", and how many open questions are yours.
|
|
40
|
-
- **Recording a meeting.** Adler wears headphones: in the Live pill while the meeting records, and after the title in the recording tab. He wears
|
|
40
|
+
- **Recording a meeting.** Adler wears headphones: in the Live pill while the meeting records, and after the title in the recording tab. He wears the happy headphones while he listens, the resting headphones while you pause, and shows the honest face when PMOS cannot hear the meeting.
|
|
41
41
|
- **A source that could not be read (phone and desk).** When Jira, or another source, does not answer, Your day says so first, under a small rain cloud: when PMOS last had it, and an icon that reads it again.
|
|
42
|
-
- **Pull to refresh (phone).** Pull Your day down from the top. Adler peeks up
|
|
42
|
+
- **Pull to refresh (phone).** Pull Your day down from the top. Adler peeks up while PMOS reads your day again.
|
|
43
43
|
- **The menu button (phone).** When a call is yours, his ears peek over the menu button. They go when no call waits, while the menu is open, and after Quiet after.
|
|
44
44
|
- **Weekly review.** When the review is done for the week, Adler is calm. It is upkeep, not a win, so he does not celebrate.
|
|
45
|
-
- **Settings.** In Updates he
|
|
45
|
+
- **Settings.** In Updates he shows his thinking face while PMOS checks or installs, asks with his worried face when a version is ready, and is calm when PMOS is up to date. A line that says something failed shows his honest face.
|
|
46
46
|
|
|
47
47
|
Adler never sits in a list row, a bar, a chart or a report. Rows keep their own signals: a dot is a session and a box is a task.
|
|
48
48
|
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* grill-api.js — a grill run on the Claude API instead of a background `claude -p` session (Grill and Forecast, part G-A; lib/grill-runs.js
|
|
3
|
+
* starts it, lib/grill.js says what it may spend). The run is a plain tool loop on the Messages API with the same limits as the CLI run:
|
|
4
|
+
*
|
|
5
|
+
* read_file · find_files · search_text read-only, inside the repository root; no write, no web
|
|
6
|
+
* pmos only the verbs the grill skill uses: initiative export · task list · source status|show · grill find|voices|status
|
|
7
|
+
*
|
|
8
|
+
* The run's only write is `pmos grill find` (pinned by the run's PMOS_GRILL_* env, as in the CLI run). The loop stops at its budget:
|
|
9
|
+
* after every response the cost is counted from the usage, and the run ends before it can pass --budget.
|
|
10
|
+
*
|
|
11
|
+
* available(env) → bool an API key is set (ANTHROPIC_API_KEY) and PMOS_GRILL_API is not off
|
|
12
|
+
* costOf(model, usage) → US dollars null for a model with no known price
|
|
13
|
+
* run({ prompt, root, env, budget, model?, client?, signal?, pmosBin? }) → Promise<{ ok, code, costUsd, note?, turns }>
|
|
14
|
+
* (the shape lib/grill-runs.js `ended` reads: { code, result: { ok, costUsd } })
|
|
15
|
+
*/
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
const path = require('path');
|
|
18
|
+
const { execFile } = require('child_process');
|
|
19
|
+
|
|
20
|
+
const DEFAULT_MODEL = 'claude-opus-5-5';
|
|
21
|
+
const PRICE = Object.freeze({ // US dollars per million tokens: input, output, cache read, cache write (5 min)
|
|
22
|
+
'claude-opus-5-5': [4, 20, 0.4, 5], 'claude-opus-5': [5, 25, 0.5, 6.25], 'claude-sonnet-5-5': [2, 10, 0.2, 2.5], 'claude-sonnet-5': [2, 10, 0.2, 2.5], 'claude-haiku-5-5': [0.1, 0.5, 0.01, 0.125],
|
|
23
|
+
});
|
|
24
|
+
const MAX_TURNS = 30;
|
|
25
|
+
const MAX_TOKENS = 8000;
|
|
26
|
+
const READ_MAX = 60000;
|
|
27
|
+
const OUT_MAX = 12000;
|
|
28
|
+
const SKIP = new Set(['node_modules', '.git', 'dist', 'build']);
|
|
29
|
+
const PMOS_OK = [['initiative', 'export'], ['task', 'list'], ['source', 'status'], ['source', 'show'], ['grill', 'find'], ['grill', 'voices'], ['grill', 'status']];
|
|
30
|
+
|
|
31
|
+
const flagOff = (v) => /^(off|0|false|no)$/i.test(String(v || '').trim());
|
|
32
|
+
const available = (env = process.env) => !!(env.ANTHROPIC_API_KEY && String(env.ANTHROPIC_API_KEY).trim()) && !flagOff(env.PMOS_GRILL_API);
|
|
33
|
+
const modelOf = (env = process.env) => String(env.PMOS_GRILL_MODEL || '').trim() || DEFAULT_MODEL;
|
|
34
|
+
function costOf(model, usage) {
|
|
35
|
+
const p = PRICE[model]; if (!p || !usage) return null;
|
|
36
|
+
const n = (k) => Number(usage[k]) || 0;
|
|
37
|
+
return (n('input_tokens') * p[0] + n('output_tokens') * p[1] + n('cache_read_input_tokens') * p[2] + n('cache_creation_input_tokens') * p[3]) / 1e6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const TOOLS = [
|
|
41
|
+
{ name: 'read_file', description: 'Read one text file of the repository. path is relative to the repository root. Returns the first 60000 characters.',
|
|
42
|
+
input_schema: { type: 'object', properties: { path: { type: 'string' } }, required: ['path'], additionalProperties: false } },
|
|
43
|
+
{ name: 'find_files', description: 'List repository files whose path contains the text (case-insensitive), at most 200. Example: "planning/prd".',
|
|
44
|
+
input_schema: { type: 'object', properties: { contains: { type: 'string' } }, required: ['contains'], additionalProperties: false } },
|
|
45
|
+
{ name: 'search_text', description: 'Search repository text files for a literal string (case-insensitive). Returns path:line: text, at most 100 lines.',
|
|
46
|
+
input_schema: { type: 'object', properties: { text: { type: 'string' }, under: { type: 'string', description: 'optional folder, relative to the root' } }, required: ['text'], additionalProperties: false } },
|
|
47
|
+
{ name: 'pmos', description: 'Run one pmos command. Allowed: initiative export <id>; task list <id>; source status; source show <source>; grill find <angle> --json - (the JSON goes in stdin); grill voices --sources <n>; grill status. Anything else is refused.',
|
|
48
|
+
input_schema: { type: 'object', properties: { args: { type: 'array', items: { type: 'string' } }, stdin: { type: 'string', description: 'JSON for grill find' } }, required: ['args'], additionalProperties: false } },
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
const within = (root, rel) => {
|
|
52
|
+
const abs = path.resolve(root, String(rel || ''));
|
|
53
|
+
return abs === root || abs.startsWith(root + path.sep) ? abs : null;
|
|
54
|
+
};
|
|
55
|
+
function walk(root, dir, visit, state) {
|
|
56
|
+
let ents = []; try { ents = fs.readdirSync(dir, { withFileTypes: true }); } catch { return; }
|
|
57
|
+
for (const e of ents) {
|
|
58
|
+
if (state.stop) return;
|
|
59
|
+
if (SKIP.has(e.name)) continue;
|
|
60
|
+
const abs = path.join(dir, e.name);
|
|
61
|
+
if (e.isDirectory()) walk(root, abs, visit, state);
|
|
62
|
+
else if (e.isFile()) visit(abs, path.relative(root, abs));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const isText = (buf) => !buf.subarray(0, 2000).includes(0);
|
|
66
|
+
|
|
67
|
+
function runPmos(input, { root, env, pmosBin }) {
|
|
68
|
+
const args = Array.isArray(input.args) ? input.args.map(String) : [];
|
|
69
|
+
if (!PMOS_OK.some(([a, b]) => args[0] === a && args[1] === b)) return Promise.resolve({ text: 'refused: this run may run only ' + PMOS_OK.map((x) => x.join(' ')).join(', '), error: true });
|
|
70
|
+
return new Promise((resolve) => {
|
|
71
|
+
const child = execFile(process.execPath, [pmosBin, ...args], { cwd: root, env, timeout: 60000, maxBuffer: 4e6 }, (err, stdout, stderr) => {
|
|
72
|
+
resolve({ text: String(stdout || '') + (stderr ? '\n' + stderr : '') || (err ? String(err.message) : '(no output)'), error: !!err });
|
|
73
|
+
});
|
|
74
|
+
child.stdin.on('error', () => {});
|
|
75
|
+
child.stdin.end(typeof input.stdin === 'string' ? input.stdin : '');
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
async function callTool(name, input, ctx) {
|
|
80
|
+
const i = input && typeof input === 'object' ? input : {};
|
|
81
|
+
try {
|
|
82
|
+
if (name === 'read_file') {
|
|
83
|
+
const abs = within(ctx.root, i.path); if (!abs) return { text: 'refused: outside the repository', error: true };
|
|
84
|
+
const buf = fs.readFileSync(abs); if (!isText(buf)) return { text: 'not a text file', error: true };
|
|
85
|
+
return { text: buf.toString('utf8').slice(0, READ_MAX) };
|
|
86
|
+
}
|
|
87
|
+
if (name === 'find_files') {
|
|
88
|
+
const q = String(i.contains || '').toLowerCase(), out = [], st = { stop: false };
|
|
89
|
+
walk(ctx.root, ctx.root, (abs, rel) => { if (rel.toLowerCase().includes(q)) { out.push(rel); if (out.length >= 200) st.stop = true; } }, st);
|
|
90
|
+
return { text: out.join('\n') || '(none)' };
|
|
91
|
+
}
|
|
92
|
+
if (name === 'search_text') {
|
|
93
|
+
const q = String(i.text || '').toLowerCase(), base = within(ctx.root, i.under || ''); if (!base || !q) return { text: 'refused: bad folder or empty text', error: true };
|
|
94
|
+
const out = [], st = { stop: false };
|
|
95
|
+
walk(ctx.root, base, (abs, rel) => {
|
|
96
|
+
let buf; try { if (fs.statSync(abs).size > 2e6) return; buf = fs.readFileSync(abs); } catch { return; }
|
|
97
|
+
if (!isText(buf)) return;
|
|
98
|
+
const lines = buf.toString('utf8').split('\n');
|
|
99
|
+
for (let n = 0; n < lines.length && !st.stop; n++) if (lines[n].toLowerCase().includes(q)) { out.push(`${rel}:${n + 1}: ${lines[n].trim().slice(0, 200)}`); if (out.length >= 100) st.stop = true; }
|
|
100
|
+
}, st);
|
|
101
|
+
return { text: out.join('\n') || '(no match)' };
|
|
102
|
+
}
|
|
103
|
+
if (name === 'pmos') return await runPmos(i, ctx);
|
|
104
|
+
return { text: 'unknown tool ' + name, error: true };
|
|
105
|
+
} catch (e) { return { text: 'failed: ' + String((e && e.message) || e).slice(0, 200), error: true }; }
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
async function run({ prompt, root, env: extra, budget, model, client, signal, pmosBin } = {}) {
|
|
109
|
+
const env = { ...process.env, ...(extra || {}) };
|
|
110
|
+
const useModel = model || modelOf(env), limit = Number(budget);
|
|
111
|
+
if (!available(env) && !client) return { ok: false, code: 1, costUsd: 0, turns: 0, note: 'no ANTHROPIC_API_KEY' };
|
|
112
|
+
if (PRICE[useModel] == null) return { ok: false, code: 1, costUsd: 0, turns: 0, note: `no known price for ${useModel}: the budget cannot be held` };
|
|
113
|
+
const api = client || new (require('@anthropic-ai/sdk'))({ apiKey: env.ANTHROPIC_API_KEY });
|
|
114
|
+
const ctx = { root: path.resolve(root || process.cwd()), env, pmosBin: pmosBin || path.join(__dirname, '..', 'bin', 'pmos.js') };
|
|
115
|
+
const messages = [{ role: 'user', content: String(prompt) }];
|
|
116
|
+
let cost = 0, turns = 0;
|
|
117
|
+
const done = (ok, note) => ({ ok, code: ok ? 0 : 1, costUsd: Math.round(cost * 10000) / 10000, turns, ...(note ? { note } : {}) });
|
|
118
|
+
while (turns < MAX_TURNS) {
|
|
119
|
+
if (signal && signal.aborted) return { ...done(false, 'stopped'), stopped: true };
|
|
120
|
+
turns++;
|
|
121
|
+
let res;
|
|
122
|
+
try {
|
|
123
|
+
res = await api.messages.create({ model: useModel, max_tokens: MAX_TOKENS, thinking: { type: 'adaptive' }, output_config: { effort: 'medium' },
|
|
124
|
+
system: 'You are Claude, running one PMOS grill run. Follow the procedure in the user message. Your tools are read-only except `pmos grill find`; there is no web and no `Bash`: where the procedure names a `pmos` command, call the pmos tool with its args.',
|
|
125
|
+
tools: TOOLS, messages }, signal ? { signal } : undefined);
|
|
126
|
+
} catch (e) {
|
|
127
|
+
if (signal && signal.aborted) return { ...done(false, 'stopped'), stopped: true };
|
|
128
|
+
return done(false, 'the Claude API failed: ' + String((e && e.status ? e.status + ' ' : '') + ((e && e.message) || e)).slice(0, 200));
|
|
129
|
+
}
|
|
130
|
+
cost += costOf(useModel, res.usage) || 0;
|
|
131
|
+
messages.push({ role: 'assistant', content: res.content });
|
|
132
|
+
if (res.stop_reason === 'refusal') return done(false, 'Claude declined this run');
|
|
133
|
+
if (res.stop_reason === 'max_tokens') return done(false, 'the answer was cut at max_tokens');
|
|
134
|
+
if (res.stop_reason !== 'tool_use') return done(true);
|
|
135
|
+
if (Number.isFinite(limit) && limit > 0 && cost >= limit) return done(false, `the run reached its $${limit} budget`);
|
|
136
|
+
const results = [];
|
|
137
|
+
for (const b of res.content) if (b.type === 'tool_use') {
|
|
138
|
+
const r = await callTool(b.name, b.input, ctx);
|
|
139
|
+
results.push({ type: 'tool_result', tool_use_id: b.id, content: String(r.text).slice(0, OUT_MAX), ...(r.error ? { is_error: true } : {}) });
|
|
140
|
+
}
|
|
141
|
+
messages.push({ role: 'user', content: results });
|
|
142
|
+
}
|
|
143
|
+
return done(false, `the run did not finish in ${MAX_TURNS} turns`);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
module.exports = { available, modelOf, costOf, run, TOOLS, PRICE, DEFAULT_MODEL, MAX_TURNS };
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* deps: { workspaces() → [w], isLead(w), stateDirFor(w), runtimeDir(), rowOf(w, id) → { title, intent, stage, stages } | null,
|
|
13
13
|
* exits(w) → [{ ini, board, stage }] (stages about to end), shapes(w) → [{ ini, board, n, end }] (open tasks, latest due),
|
|
14
14
|
* goalInis(w, goalId) → [{ id, endAt, status }] (the initiatives anchored to that goal), checks(w, day) → [{ ini, board, tasks }] (late or at-risk work), turned(dir, sinceIso) → [forecast `turned` line] (lib/forecast.js),
|
|
15
|
+
* api { available(env), run({ prompt, root, env, budget, signal }) → Promise<{ ok, code, costUsd, note?, stopped? }> } (lib/grill-api.js; optional),
|
|
15
16
|
* setting(key) (lib/settings-store.js get), open(now) → bool, headlessOff() → bool, env, promptFor(skillId), spawn(spec), stop(session), warn }
|
|
16
17
|
*/
|
|
17
18
|
const crypto = require('crypto');
|
|
@@ -90,10 +91,21 @@ function create(deps) {
|
|
|
90
91
|
const open = mine.filter((p) => !P.drops.has(PR.sigOf(p)) && !kept.has(p.id)).slice(0, 20).map((p) => one(p.title, 120));
|
|
91
92
|
const prompt = promptOf(skill, { run, why, detail, ini, title: row.title || ini, intent: row.intent || '', stage: row.stage || '', stages: row.stages || [], today: localDay(now), open, dropped, budget: b.budget });
|
|
92
93
|
active.set(run, { session: null });
|
|
94
|
+
const env = { PMOS_GRILL_FILE: PR.ledgerFile(dir), PMOS_GRILL_LOG: G.logFile(rt), PMOS_GRILL_WS: ws, PMOS_GRILL_BOARD: board || '', PMOS_GRILL_INI: ini, PMOS_GRILL_RUN: run, PMOS_GRILL_BUDGET: String(b.budget) };
|
|
95
|
+
// With an API key the run goes to the Claude API (lib/grill-api.js); without one it stays a background agent session
|
|
96
|
+
if (deps.api && deps.api.available(deps.env)) {
|
|
97
|
+
const ctl = new AbortController();
|
|
98
|
+
G.append(rt, { kind: 'start', run, ws, ini, board: board || '', why, key, budget: b.budget }, now);
|
|
99
|
+
active.get(run).session = { abort: () => ctl.abort() };
|
|
100
|
+
Promise.resolve().then(() => deps.api.run({ prompt, root: w.root, env, budget: b.budget, signal: ctl.signal }))
|
|
101
|
+
.then((r) => ended(run, { code: r.code, stopped: !!r.stopped, note: r.note, result: { ok: r.ok, costUsd: r.costUsd } }),
|
|
102
|
+
(e) => ended(run, { code: 1, note: String((e && e.message) || e), result: { costUsd: 0 } }));
|
|
103
|
+
return { ok: true, run, budget: b.budget, api: true };
|
|
104
|
+
}
|
|
93
105
|
let session = null;
|
|
94
106
|
try {
|
|
95
107
|
session = deps.spawn({ name: 'Grilling · ' + one(row.title || ini, 60), ws, origin: `grill:${ws}:${ini}:${run}`, initialInput: prompt + '\r', initiative: ini,
|
|
96
|
-
env
|
|
108
|
+
env,
|
|
97
109
|
onDone: (r) => ended(run, r) });
|
|
98
110
|
} catch (e) { warn('grill run', e); }
|
|
99
111
|
if (session && session.held) { active.delete(run); return { ok: false, held: true, error: 'Claude is busy with other runs; it grills in a minute' }; }
|
|
@@ -107,7 +119,7 @@ function create(deps) {
|
|
|
107
119
|
return { ok: true, run, budget: b.budget };
|
|
108
120
|
}
|
|
109
121
|
|
|
110
|
-
function stop(run) { const a = active.get(run); if (a
|
|
122
|
+
function stop(run) { const a = active.get(run); if (!a || !a.session) return; if (a.session.abort) a.session.abort(); else if (deps.stop) deps.stop(a.session); }
|
|
111
123
|
|
|
112
124
|
/** What is due now, in order: stage exits, forecast turns, big moves, the monthly look. → [{ ws, board, ini, why, key, detail }] */
|
|
113
125
|
function dueOf(w, F, mode, now) {
|
package/workspace/lib/grill.js
CHANGED
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
* the run's whole budget, which goes to the run as --max-budget-usd, so the month never goes beyond the cap. At the cap Claude pauses and
|
|
21
21
|
* says so once per month (a `paused` line).
|
|
22
22
|
*
|
|
23
|
+
* WHERE IT RUNS: with ANTHROPIC_API_KEY set, a run goes to the Claude API (lib/grill-api.js: a tool loop on the Messages API, model
|
|
24
|
+
* PMOS_GRILL_MODEL or claude-opus-5-5, cost counted from usage and held to the budget); PMOS_GRILL_API=off or no key keeps the background agent session.
|
|
25
|
+
*
|
|
23
26
|
* THE LOG, <runtime>/grill-runs.jsonl (machine-wide, so the cap covers every product), one line per event { at, kind, ... }:
|
|
24
27
|
* start { run, ws, ini, board, why, key, budget } key: what started it (the stage, the turn, the move), so it runs once per key
|
|
25
28
|
* voices { run, n } how many stored research and note sources the run found for Voices
|
|
@@ -45,6 +45,14 @@ function create({ dir, version }) {
|
|
|
45
45
|
const sts = await Promise.all(names.map((n) => fs.promises.stat(path.join(dir, n)).catch(() => null)));
|
|
46
46
|
const sigs = new Map();
|
|
47
47
|
names.forEach((n, i) => { if (sts[i] && sts[i].isFile()) sigs.set(n, sigOf(sts[i])); });
|
|
48
|
+
// Adler's PNGs (adler/<category>/<name>.png) are part of the build too: an edited picture gives every page a new prefix, so a picture
|
|
49
|
+
// under the current prefix may be kept for good like a module.
|
|
50
|
+
const art = path.join(dir, 'adler'), cats = await fs.promises.readdir(art, { withFileTypes: true }).catch(() => []);
|
|
51
|
+
for (const c of cats.filter((e) => e.isDirectory()).sort((x, y) => (x.name < y.name ? -1 : 1))) {
|
|
52
|
+
const files = (await fs.promises.readdir(path.join(art, c.name)).catch(() => [])).filter((n) => /\.png$/.test(n)).sort();
|
|
53
|
+
const fst = await Promise.all(files.map((n) => fs.promises.stat(path.join(art, c.name, n)).catch(() => null)));
|
|
54
|
+
files.forEach((n, i) => { if (fst[i] && fst[i].isFile()) sigs.set('adler/' + c.name + '/' + n, sigOf(fst[i])); });
|
|
55
|
+
}
|
|
48
56
|
const h = crypto.createHash('sha1');
|
|
49
57
|
for (const [n, s] of sigs) h.update(n + '\0' + s + '\n');
|
|
50
58
|
const id = ver + '-' + h.digest('hex').slice(0, 12);
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.450.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.450.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
+
"@anthropic-ai/sdk": "^1.3.0",
|
|
12
13
|
"@xterm/addon-fit": "^0.11.0",
|
|
13
14
|
"@xterm/addon-web-links": "^0.12.0",
|
|
14
15
|
"@xterm/xterm": "^5.5.0",
|
|
@@ -27,6 +28,52 @@
|
|
|
27
28
|
"node": ">=18"
|
|
28
29
|
}
|
|
29
30
|
},
|
|
31
|
+
"node_modules/@anthropic-ai/sdk": {
|
|
32
|
+
"version": "1.3.0",
|
|
33
|
+
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.3.0.tgz",
|
|
34
|
+
"integrity": "sha512-k7z9BlLLPxfZH+ov7dS6EnaN/wiZeV8YNT1LZfrpAHIy7oY7pHr4UzirF9f2OlHtFEnRBOX+AZQ91Y5fK+TPTw==",
|
|
35
|
+
"license": "Apache-2.0",
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@opentelemetry/api": "^1.4.1",
|
|
38
|
+
"json-schema-to-ts": "^3.1.1",
|
|
39
|
+
"standardwebhooks": "^1.0.0"
|
|
40
|
+
},
|
|
41
|
+
"bin": {
|
|
42
|
+
"anthropic-ai-sdk": "bin/cli"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"zod": "^3.25.0 || ^4.0.0"
|
|
46
|
+
},
|
|
47
|
+
"peerDependenciesMeta": {
|
|
48
|
+
"zod": {
|
|
49
|
+
"optional": true
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"node_modules/@babel/runtime": {
|
|
54
|
+
"version": "7.29.10",
|
|
55
|
+
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.10.tgz",
|
|
56
|
+
"integrity": "sha512-NpugTzbKgGrNe45Ui32cN8vCFFMxVtP/9rtfwv0nP5FRDAjvYBxJcLVpYA9mr1jxP6cnIT7x9LUzuDTbWYYNRA==",
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=6.9.0"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"node_modules/@opentelemetry/api": {
|
|
63
|
+
"version": "1.10.0",
|
|
64
|
+
"resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.10.0.tgz",
|
|
65
|
+
"integrity": "sha512-lMkyes8iHrG+mk6WH7X70MdCLI2RS0FwNBY1PyQ8UemaijE2m5mv5A0Niy3HtbYTFrgkUEQjFMXmSAk2hQDuPQ==",
|
|
66
|
+
"license": "Apache-2.0",
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": ">=8.0.0"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"node_modules/@stablelib/base64": {
|
|
72
|
+
"version": "1.0.1",
|
|
73
|
+
"resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz",
|
|
74
|
+
"integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==",
|
|
75
|
+
"license": "MIT"
|
|
76
|
+
},
|
|
30
77
|
"node_modules/@xterm/addon-fit": {
|
|
31
78
|
"version": "0.11.0",
|
|
32
79
|
"resolved": "https://registry.npmjs.org/@xterm/addon-fit/-/addon-fit-0.11.0.tgz",
|
|
@@ -45,6 +92,25 @@
|
|
|
45
92
|
"integrity": "sha512-hqJHYaQb5OptNunnyAnkHyM8aCjZ1MEIDTQu1iIbbTD/xops91NB5yq1ZK/dC2JDbVWtF23zUtl9JE2NqwT87A==",
|
|
46
93
|
"license": "MIT"
|
|
47
94
|
},
|
|
95
|
+
"node_modules/fast-sha256": {
|
|
96
|
+
"version": "1.3.0",
|
|
97
|
+
"resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz",
|
|
98
|
+
"integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==",
|
|
99
|
+
"license": "Unlicense"
|
|
100
|
+
},
|
|
101
|
+
"node_modules/json-schema-to-ts": {
|
|
102
|
+
"version": "3.1.1",
|
|
103
|
+
"resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-3.1.1.tgz",
|
|
104
|
+
"integrity": "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==",
|
|
105
|
+
"license": "MIT",
|
|
106
|
+
"dependencies": {
|
|
107
|
+
"@babel/runtime": "^7.18.3",
|
|
108
|
+
"ts-algebra": "^2.0.0"
|
|
109
|
+
},
|
|
110
|
+
"engines": {
|
|
111
|
+
"node": ">=16"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
48
114
|
"node_modules/node-addon-api": {
|
|
49
115
|
"version": "7.1.1",
|
|
50
116
|
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz",
|
|
@@ -96,6 +162,22 @@
|
|
|
96
162
|
"node": ">=14.19.0"
|
|
97
163
|
}
|
|
98
164
|
},
|
|
165
|
+
"node_modules/standardwebhooks": {
|
|
166
|
+
"version": "1.1.1",
|
|
167
|
+
"resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.1.1.tgz",
|
|
168
|
+
"integrity": "sha512-bCbX9ZEyFkWPsRz7Bl3NuQUJohmwGSev/yhr7vhaGPlc4AfIrspIRa6cPTBuI1ItmrTDJ4d/S2hCsfe4+vQGnQ==",
|
|
169
|
+
"license": "MIT",
|
|
170
|
+
"dependencies": {
|
|
171
|
+
"@stablelib/base64": "^1.0.0",
|
|
172
|
+
"fast-sha256": "^1.3.0"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"node_modules/ts-algebra": {
|
|
176
|
+
"version": "2.0.0",
|
|
177
|
+
"resolved": "https://registry.npmjs.org/ts-algebra/-/ts-algebra-2.0.0.tgz",
|
|
178
|
+
"integrity": "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==",
|
|
179
|
+
"license": "MIT"
|
|
180
|
+
},
|
|
99
181
|
"node_modules/ws": {
|
|
100
182
|
"version": "8.21.1",
|
|
101
183
|
"resolved": "https://registry.npmjs.org/ws/-/ws-8.21.1.tgz",
|
package/workspace/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.450.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"node": ">=18"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
+
"@anthropic-ai/sdk": "^1.3.0",
|
|
27
28
|
"@xterm/addon-fit": "^0.11.0",
|
|
28
29
|
"@xterm/addon-web-links": "^0.12.0",
|
|
29
30
|
"@xterm/xterm": "^5.5.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|