@bongos/core 1.21.146 → 1.21.148

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.
Files changed (68) hide show
  1. package/.bongos-core.json +98 -68
  2. package/bin/bongos.js +5 -2
  3. package/clients/bongos-client/README.md +1 -1
  4. package/clients/bongos-client/bongos-client.global.js +2 -0
  5. package/clients/bongos-client/index.cjs +2 -0
  6. package/clients/bongos-client/index.d.ts +6 -2
  7. package/clients/bongos-client/index.mjs +2 -0
  8. package/docs/api/openapi.json +86 -7
  9. package/docs/api-reference.md +3 -2
  10. package/docs/copy-inventory.md +17 -15
  11. package/docs/copy-registry.json +37 -19
  12. package/docs/module-api-changelog.md +4 -0
  13. package/docs/page-readings.json +70 -70
  14. package/modules/builder-settings/core-move-seen.js +41 -0
  15. package/modules/builder-settings/routes/settings.js +22 -0
  16. package/modules/builder-settings/settings.js +5 -0
  17. package/modules/hall-ui/public/atlas.html +1 -1
  18. package/modules/hall-ui/public/blockers.html +1 -1
  19. package/modules/hall-ui/public/board-room.html +1 -1
  20. package/modules/hall-ui/public/city.html +1 -1
  21. package/modules/hall-ui/public/collab.html +1 -1
  22. package/modules/hall-ui/public/commands.html +1 -1
  23. package/modules/hall-ui/public/copy-desk.html +1 -1
  24. package/modules/hall-ui/public/core-move-notice.js +70 -0
  25. package/modules/hall-ui/public/deploy.html +1 -1
  26. package/modules/hall-ui/public/diagrams.html +1 -1
  27. package/modules/hall-ui/public/drachmae.html +1 -1
  28. package/modules/hall-ui/public/fleet.html +1 -1
  29. package/modules/hall-ui/public/gate.html +1 -1
  30. package/modules/hall-ui/public/goal-map.html +1 -1
  31. package/modules/hall-ui/public/goals.html +1 -1
  32. package/modules/hall-ui/public/government.html +1 -1
  33. package/modules/hall-ui/public/idea.html +1 -1
  34. package/modules/hall-ui/public/ideas.html +1 -1
  35. package/modules/hall-ui/public/index.html +1 -1
  36. package/modules/hall-ui/public/modules.html +1 -1
  37. package/modules/hall-ui/public/my-agents.html +1 -1
  38. package/modules/hall-ui/public/primer.html +1 -1
  39. package/modules/hall-ui/public/profile.html +1 -1
  40. package/modules/hall-ui/public/project-settings.html +1 -1
  41. package/modules/hall-ui/public/ranks.html +1 -1
  42. package/modules/hall-ui/public/roadmap.html +1 -1
  43. package/modules/hall-ui/public/roster.html +1 -1
  44. package/modules/hall-ui/public/sessions.html +1 -1
  45. package/modules/hall-ui/public/settings-software-update.js +24 -2
  46. package/modules/hall-ui/public/settings.html +2 -2
  47. package/modules/hall-ui/public/shell.js +8 -0
  48. package/modules/hall-ui/public/street.html +1 -1
  49. package/modules/hall-ui/public/studio.html +1 -1
  50. package/modules/hall-ui/public/style.css +11 -0
  51. package/modules/hall-ui/public/task.html +1 -1
  52. package/modules/hall-ui/public/thinking.html +1 -1
  53. package/modules/hall-ui/public/tweak-editor.html +1 -1
  54. package/modules/hall-ui/public/watch.html +1 -1
  55. package/modules/hall-ui/public/work.html +1 -1
  56. package/package-lock.json +2 -2
  57. package/package.json +1 -1
  58. package/release-notes.json +12 -0
  59. package/scripts/gds/core-origin-follow.js +185 -0
  60. package/scripts/gds/core-pin-sync.js +31 -5
  61. package/scripts/gds/provision-core-upgrade.js +9 -3
  62. package/src/bongos/core-moves.js +155 -0
  63. package/src/bongos/routes/core-update.js +43 -3
  64. package/src/module-api.js +1 -1
  65. package/tests/core_move_notice.mjs +356 -0
  66. package/tests/core_origin_follow.mjs +287 -0
  67. package/tests/core_pin_sync.mjs +7 -2
  68. package/tests/nav_permission_atoms.mjs +3 -2
@@ -228,9 +228,14 @@ test('ensurePinnedCore end to end: deleting the lockfile or adding an .npmrc on
228
228
  }
229
229
  });
230
230
 
231
- test('the dispatcher runs the check for ship only', () => {
231
+ test('the dispatcher runs the check for ship (and start only after a followed core move)', () => {
232
+ // Since task 1004732 the dispatcher goes through core-origin-follow.ensureCurrentCore,
233
+ // which calls ensurePinnedCore for `ship` always and for `start` only after it
234
+ // fast-forwarded a hub pin move (tests/core_origin_follow.mjs drives both).
232
235
  const src = fs.readFileSync(new URL('../bin/bongos.js', import.meta.url), 'utf8');
233
- assert.match(src, /if \(!COMPILED && verb === 'ship'\) \{\s*const synced = require\('\.\.\/scripts\/gds\/core-pin-sync\.js'\)\.ensurePinnedCore/);
236
+ assert.match(src, /if \(!COMPILED && \(verb === 'ship' \|\| verb === 'start'\)\) \{\s*const synced = require\('\.\.\/scripts\/gds\/core-origin-follow\.js'\)\.ensureCurrentCore/);
237
+ const follow = fs.readFileSync(new URL('../scripts/gds/core-origin-follow.js', import.meta.url), 'utf8');
238
+ assert.match(follow, /if \(verb !== 'ship' && followed\.action !== 'fast-forwarded'\) return null;\s*return pinSync\.ensurePinnedCore/);
234
239
  });
235
240
 
236
241
  console.log(`\n${passed} passed, ${failed} failed`);
@@ -90,8 +90,9 @@ test('the hall-preview fixture carries every atom /me resolves', () => {
90
90
  // task 1004685 (the living-city prototype): the held-seat nav and the My agents tab,
91
91
  // then the reads it shares with the governor pages (window.__hallReads); task 1004713:
92
92
  // the seats read from /me's server-resolved positions block; task 1004730: the banner
93
- // says a held core version was tried and rolled back.
94
- const SHELL_SHA = 'b4e4b7ae4fea6bc1';
93
+ // says a held core version was tried and rolled back; task 1004731: the one-time
94
+ // "Upgraded to core X" notice after a move.
95
+ const SHELL_SHA = 'eb9e85b9c1784f01';
95
96
 
96
97
  test('shell.js has not changed without its cache-bust being bumped', () => {
97
98
  const actual = crypto.createHash('sha256').update(SHELL).digest('hex').slice(0, 16);