@bongos/core 1.19.520 → 1.19.521

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/.bongos-core.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "artifact": "bongos-core",
3
3
  "manifest_schema": 1,
4
4
  "generator": "scripts/gds/package-core.js",
5
- "core_version": "1.19.520",
6
- "core_contract": "1.19.520",
7
- "source_commit": "0b8a696f772ade91f8d36d53dece40421efe5b80",
5
+ "core_version": "1.19.521",
6
+ "core_contract": "1.19.521",
7
+ "source_commit": "e4f2e1b87d89acb6c50a86896af501eff629a49f",
8
8
  "source_ref": "HEAD",
9
- "built_at": "2026-09-03T21:58:56.926Z",
9
+ "built_at": "2026-09-03T22:32:55.137Z",
10
10
  "redaction": {
11
11
  "model": "docs-redacted+functional-verbatim",
12
12
  "docs_redacted": 431,
@@ -17,7 +17,7 @@
17
17
  "gate": "passed"
18
18
  },
19
19
  "file_count": 2424,
20
- "tree_sha256": "9c5de15455eed40571117e977c54f1970629a306a7334b87f1327361cde79375",
20
+ "tree_sha256": "5cf629aad21665a1b205bb6529f9103bde6140bdaa5d5bb8bb950677b588c058",
21
21
  "files": [
22
22
  {
23
23
  "path": ".claude/skills/blocker-review/SKILL.md",
@@ -2597,7 +2597,7 @@
2597
2597
  {
2598
2598
  "path": "docs/module-api-changelog.md",
2599
2599
  "mode": "0000644",
2600
- "sha256": "53c9b5ab7fac89d337952508b1d3b649d48c8ce68c69542d7bc12bdb2847ca75"
2600
+ "sha256": "f19fae1616ebe6fcb885f54592364bc673ed8df8ac23c857377c7959490c87b6"
2601
2601
  },
2602
2602
  {
2603
2603
  "path": "docs/modules-contract.md",
@@ -5077,7 +5077,7 @@
5077
5077
  {
5078
5078
  "path": "modules/hall-ui/public/style.css",
5079
5079
  "mode": "0000644",
5080
- "sha256": "2b9c0df306a1749975b101e2ac0af36fa72f78d633a187bd32dba0e5beb4bdfc"
5080
+ "sha256": "41aae0ec3164d3f0e4d485ad029c98980b2d18e791a04aa4e7714ba94e776ef9"
5081
5081
  },
5082
5082
  {
5083
5083
  "path": "modules/hall-ui/public/task-detail.js",
@@ -7297,12 +7297,12 @@
7297
7297
  {
7298
7298
  "path": "package-lock.json",
7299
7299
  "mode": "0000644",
7300
- "sha256": "23214b713047eeeb22c4a48cabff0d29f24cf56e036c92878db86f628b6ba8d2"
7300
+ "sha256": "b18f028ece28c2fd6605db03201f068504d5b57a2a402d79f2f28bad551e2ddc"
7301
7301
  },
7302
7302
  {
7303
7303
  "path": "package.json",
7304
7304
  "mode": "0000644",
7305
- "sha256": "1c8758322c6d80615ad5dccdc9ac9493299105cf0edf15510e5c30fcb4ed9d15"
7305
+ "sha256": "d6b8d673c517a74dc369500ba850c49d367d860455f97c3a265525c5588057a4"
7306
7306
  },
7307
7307
  {
7308
7308
  "path": "public-docs/index.html",
@@ -7702,7 +7702,7 @@
7702
7702
  {
7703
7703
  "path": "scripts/gds/fetch-sound-prefs.js",
7704
7704
  "mode": "0000644",
7705
- "sha256": "30b30ed76d772e3f2a1b74791b9de08db9ea782258e8e818c34ce3037bff7912"
7705
+ "sha256": "ea36d22031b18f2682ca2e1475a556b21fc2b5817de1f94d872e947247553144"
7706
7706
  },
7707
7707
  {
7708
7708
  "path": "scripts/gds/figma-design-sync.js",
@@ -8972,7 +8972,7 @@
8972
8972
  {
8973
8973
  "path": "src/module-api.js",
8974
8974
  "mode": "0000644",
8975
- "sha256": "4f10f2246fe56fc5cd7e786de45b5f5bb4268bb62a59755428d6d91088f397b7"
8975
+ "sha256": "192a36ccb6a9fb1b60332dda5c8ad12c5b53d104d9f9554d72505645ed66d7d3"
8976
8976
  },
8977
8977
  {
8978
8978
  "path": "src/module-loader/catalog.js",
@@ -10357,7 +10357,7 @@
10357
10357
  {
10358
10358
  "path": "tests/hall_audit.mjs",
10359
10359
  "mode": "0000644",
10360
- "sha256": "a7e7fceda066fbb6a279d3e249afbb29ac225396f16b377cc910854d5ef35165"
10360
+ "sha256": "de4b33fd78de12daf1b6e07eeb3834ffd19e912ea81c1d2ba91a129a19e7382a"
10361
10361
  },
10362
10362
  {
10363
10363
  "path": "tests/hall_board_world.mjs",
@@ -10822,7 +10822,7 @@
10822
10822
  {
10823
10823
  "path": "tests/memory_pull.mjs",
10824
10824
  "mode": "0000644",
10825
- "sha256": "22f442f147994e81aed89692fdfd777bd6132448f6dc64019b5474533f75dbc8"
10825
+ "sha256": "d05b6e354ac08cf5512a62b76b213df44ab1ef8639a1ba635319e9b5e8511a5c"
10826
10826
  },
10827
10827
  {
10828
10828
  "path": "tests/merge_lease.mjs",
@@ -1477,5 +1477,7 @@ is load-bearing: the script throws rather than guess if it is missing, and
1477
1477
  landed since 1.19.518 with no explicit bump. run 33802471495. (task 1002620)
1478
1478
  1.19.520 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
1479
1479
  landed since 1.19.519 with no explicit bump. run 33810716476. (task 1002620)
1480
+ 1.19.521 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
1481
+ landed since 1.19.520 with no explicit bump. run 33813285951. (task 1002620)
1480
1482
  ---------------------------------------------------------------------------
1481
1483
  ```
@@ -3203,6 +3203,17 @@ a.stat-tile:hover .stat-tile__sub { color: var(--ink-soft); }
3203
3203
  outline: none;
3204
3204
  }
3205
3205
  .palette__input::placeholder { color: var(--ink-faint); }
3206
+ /* palette.js auto-focuses this on open, so the ring is the first thing a
3207
+ keyboard user needs — and it had none. .palette__panel clips (overflow:
3208
+ hidden), which ate the world's ring (a 3px-offset outline inside an 8px
3209
+ halo) and is why the outline was dropped here in the first place. So the
3210
+ indication moves INSIDE the input's own box — the same inset form the 64px
3211
+ rail's items use, for the same reason (task 1003496). */
3212
+ .palette__input:focus-visible {
3213
+ outline: 2px solid var(--focus);
3214
+ outline-offset: -2px;
3215
+ box-shadow: none;
3216
+ }
3206
3217
  .palette__list {
3207
3218
  list-style: none;
3208
3219
  margin: 0;
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@bongos/core",
3
- "version": "1.19.520",
3
+ "version": "1.19.521",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bongos/core",
9
- "version": "1.19.520",
9
+ "version": "1.19.521",
10
10
  "license": "AGPL-3.0-or-later",
11
11
  "dependencies": {
12
12
  "express": "^4.21.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bongos/core",
3
- "version": "1.19.520",
3
+ "version": "1.19.521",
4
4
  "description": "Cloud Bongos — the AI-first build platform core (GDS + platform surfaces + module system), installed as a versioned dependency (ADR 0108).",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "main": "src/platform-server.js",
@@ -85,4 +85,7 @@ async function main() {
85
85
  }
86
86
  }
87
87
 
88
- main().then(() => process.exit(0)).catch(() => process.exit(0));
88
+ // No process.exit: calling it while undici is still tearing down the fetches above
89
+ // aborts this hook on Windows with the win/async.c UV_HANDLE_CLOSING assertion, so
90
+ // SessionStart reports a hook error. Nothing else holds the loop — it exits on its own.
91
+ main().catch(() => {});
package/src/module-api.js CHANGED
@@ -45,7 +45,7 @@ const { validateOrRespond, LIMITS, parseId, asyncHandler, corsPublicGet, parsePa
45
45
  // there. scripts/gds/bump-version.js still rewrites the literal below; it appends
46
46
  // the entry to that file. Look for a version's history there, not here.
47
47
  // ---------------------------------------------------------------------------
48
- const CORE_VERSION = '1.19.520'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
48
+ const CORE_VERSION = '1.19.521'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
49
49
 
50
50
  // A namespaced logger so a module's log lines are attributable + consistent.
51
51
  // Usage: const log = api.logger('dev-box'); log.info('mounted');
@@ -452,3 +452,78 @@ test('the verdict classes and the scrim exist in the token tier, in both modes',
452
452
  assert.match(css, /--scrim:/, 'the modal scrim is a token, not a sheet-local literal');
453
453
  assert.match(read('copy-desk.css'), /::backdrop\s*\{[^}]*var\(--scrim\)/, 'the copy-desk backdrop takes it');
454
454
  });
455
+
456
+ // ---- 10. an outline: none always names its replacement (task 1003496) -----
457
+
458
+ // The walk (task 1003309) found the command palette's input dropping the
459
+ // world's focus ring with nothing put back — and palette.js AUTO-FOCUSES it on
460
+ // open, so a keyboard user landed in a field with no indication of where they
461
+ // were. A rule may drop the outline; it may not drop the INDICATION. The
462
+ // exceptions are selectors that are not keyboard stops at all.
463
+ const OUTLINE_NONE_EXEMPT = {
464
+ main: 'the skip link\'s programmatic target — main takes tabindex="-1" focus so the reader lands past the nav, and ringing the whole page would be noise, not information',
465
+ };
466
+
467
+ // Innermost rule blocks only, so a rule inside @media is read as itself and the
468
+ // wrapping at-rule is never mistaken for a selector.
469
+ function rulesDeclaring(css, decl) {
470
+ const out = [];
471
+ const clean = css.replace(/\/\*[\s\S]*?\*\//g, '');
472
+ for (const m of clean.matchAll(/([^{}]+)\{([^{}]*)\}/g)) {
473
+ if (decl.test(m[2])) out.push(m[1].trim().replace(/\s+/g, ' '));
474
+ }
475
+ return out;
476
+ }
477
+
478
+ const OUTLINE_OFF = /outline\s*:\s*(none|0)\s*[;}]|outline\s*:\s*(none|0)\s*$/;
479
+ // The base a focus rule would be written against: `.x:focus` and `.x` both want
480
+ // a `.x:focus-visible`.
481
+ const baseSelectors = (sel) =>
482
+ sel.split(',').map((s) => s.trim().replace(/:(focus-visible|focus-within|focus|hover|active)\b/g, '').trim()).filter(Boolean);
483
+
484
+ function unringed(sheets) {
485
+ const all = sheets.map(([, css]) => css).join('\n');
486
+ const offenders = [];
487
+ for (const [file, css] of sheets) {
488
+ for (const rule of rulesDeclaring(css, OUTLINE_OFF)) {
489
+ for (const base of baseSelectors(rule)) {
490
+ if (OUTLINE_NONE_EXEMPT[base]) continue;
491
+ // The replacement may live in any hall sheet — they all load together.
492
+ if (all.includes(base + ':focus-visible')) continue;
493
+ offenders.push(`${file}: "${rule}" drops the outline with no ${base}:focus-visible`);
494
+ }
495
+ }
496
+ }
497
+ return offenders;
498
+ }
499
+
500
+ const hallSheets = () =>
501
+ fs.readdirSync(HALL).filter((f) => f.endsWith('.css')).sort().map((f) => [f, read(f)]);
502
+
503
+ test('no hall sheet drops a focus ring without putting an indication back', () => {
504
+ assert.deepEqual(unringed(hallSheets()), [],
505
+ 'outline: none is allowed only next to a :focus-visible replacement for the same selector');
506
+ });
507
+
508
+ test('the focus-ring guard CATCHES a suppression, and reads a replacement', () => {
509
+ const bad = [['x.css', '.thing { outline: none; }']];
510
+ assert.equal(unringed(bad).length, 1, 'a bare suppression is caught');
511
+ const paired = [['x.css', '.thing { outline: none; }\n.thing:focus-visible { outline: 2px solid var(--focus); }']];
512
+ assert.deepEqual(unringed(paired), [], 'a replacement in the same sheet satisfies it');
513
+ const crossSheet = [['a.css', '.thing { outline: none; }'], ['b.css', '.thing:focus-visible { outline: 2px solid var(--focus); }']];
514
+ assert.deepEqual(unringed(crossSheet), [], 'the hall loads its sheets together, so the replacement may sit in another one');
515
+ const media = [['x.css', '@media (min-width: 900px) { .thing { outline: none; } }']];
516
+ assert.equal(unringed(media).length, 1, 'a rule inside @media is read as itself, not as the at-rule');
517
+ });
518
+
519
+ test('the command palette input rings from the token tier, inside its own box', () => {
520
+ const css = read('style.css');
521
+ const rule = /\.palette__input:focus-visible\s*\{([^}]*)\}/.exec(css);
522
+ assert.ok(rule, '.palette__input:focus-visible exists');
523
+ assert.match(rule[1], /var\(--focus\)/, 'the ring is the world\'s --focus, which style.css redefines per mode');
524
+ // .palette__panel clips (overflow: hidden), which is WHY the global ring — a
525
+ // 3px-offset outline inside an 8px halo — was suppressed here. The
526
+ // replacement has to sit INSIDE the input's box or the panel eats it.
527
+ assert.match(css, /\.palette__panel\s*\{[^}]*overflow:\s*hidden/, 'the panel still clips, so the inset form is still the right one');
528
+ assert.match(rule[1], /outline-offset:\s*-|inset/, 'the indication sits inside the input, not outside it');
529
+ });
@@ -23,9 +23,11 @@ import { createRequire } from 'node:module';
23
23
  import fs from 'node:fs';
24
24
  import path from 'node:path';
25
25
  import os from 'node:os';
26
+ import { spawnSync } from 'node:child_process';
26
27
 
27
28
  const require = createRequire(import.meta.url);
28
29
  const pull = require('../.claude/hooks/pull-memory.js');
30
+ const hookPath = require.resolve('../.claude/hooks/pull-memory.js');
29
31
 
30
32
  let passed = 0;
31
33
  let failed = 0;
@@ -186,6 +188,17 @@ test('encodeProjectPath: replaces / and . with -', () => {
186
188
  assert.equal(pull.encodeProjectPath('/Users/x/Desktop/Claude-OTB'), '-Users-x-Desktop-Claude-OTB');
187
189
  });
188
190
 
191
+ // The old /[/.]/ class silently no-opped on a Windows path — separator, drive
192
+ // colon and spaces all survived, so resolveMemoryDir built a path with a drive
193
+ // letter buried mid-string that no mkdir could create and every file "failed"
194
+ // (task 1003567). Must match the encoder in scripts/gds/ship-memory-sync.js.
195
+ test('encodeProjectPath: Windows path — separator, drive colon and spaces all become -', () => {
196
+ assert.equal(
197
+ pull.encodeProjectPath(String.raw`C:\Users\x\Desktop\Cloud Bongos\cloud-bongos`),
198
+ 'C--Users-x-Desktop-Cloud-Bongos-cloud-bongos',
199
+ );
200
+ });
201
+
189
202
  test('tsToMs: ISO string, epoch ms, Date, and garbage', () => {
190
203
  assert.equal(pull.tsToMs('2026-05-30T00:00:00Z'), Date.parse('2026-05-30T00:00:00Z'));
191
204
  assert.equal(pull.tsToMs(1234), 1234);
@@ -413,14 +426,20 @@ await testAsync('pullMemory: 0 written + skips → summary does not read like a
413
426
  });
414
427
 
415
428
  await testAsync('pullMemory: no session → silent null', async () => {
429
+ // cli-lib freezes its session-file paths at require time, so an in-process
430
+ // HOME swap cannot unsee a real session — this must run in a FRESH process
431
+ // with a stubbed home, or it silently passes only where no session exists
432
+ // (i.e. CI) and fires a REAL network pull on a signed-in box (task 1003567).
416
433
  const tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'otb-pull-nosess-'));
417
- const origHome = process.env.HOME;
418
- process.env.HOME = tmpHome;
419
434
  try {
420
- const r = await pull.pullMemory({ startCwd: process.cwd() });
421
- assert.equal(r, null);
435
+ const child = spawnSync(
436
+ process.execPath,
437
+ ['-e', 'require(process.argv[1]).pullMemory({ startCwd: process.argv[2] }).then((r) => console.log(JSON.stringify(r)))', hookPath, process.cwd()],
438
+ { env: { ...process.env, HOME: tmpHome, USERPROFILE: tmpHome }, encoding: 'utf8' },
439
+ );
440
+ assert.equal(child.status, 0, `child exited ${child.status}: ${child.stderr}`);
441
+ assert.equal(child.stdout.trim(), 'null', `expected null, got: ${child.stdout.trim()}`);
422
442
  } finally {
423
- process.env.HOME = origHome;
424
443
  fs.rmSync(tmpHome, { recursive: true, force: true });
425
444
  }
426
445
  });