@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.
- package/.bongos-core.json +98 -68
- package/bin/bongos.js +5 -2
- package/clients/bongos-client/README.md +1 -1
- package/clients/bongos-client/bongos-client.global.js +2 -0
- package/clients/bongos-client/index.cjs +2 -0
- package/clients/bongos-client/index.d.ts +6 -2
- package/clients/bongos-client/index.mjs +2 -0
- package/docs/api/openapi.json +86 -7
- package/docs/api-reference.md +3 -2
- package/docs/copy-inventory.md +17 -15
- package/docs/copy-registry.json +37 -19
- package/docs/module-api-changelog.md +4 -0
- package/docs/page-readings.json +70 -70
- package/modules/builder-settings/core-move-seen.js +41 -0
- package/modules/builder-settings/routes/settings.js +22 -0
- package/modules/builder-settings/settings.js +5 -0
- package/modules/hall-ui/public/atlas.html +1 -1
- package/modules/hall-ui/public/blockers.html +1 -1
- package/modules/hall-ui/public/board-room.html +1 -1
- package/modules/hall-ui/public/city.html +1 -1
- package/modules/hall-ui/public/collab.html +1 -1
- package/modules/hall-ui/public/commands.html +1 -1
- package/modules/hall-ui/public/copy-desk.html +1 -1
- package/modules/hall-ui/public/core-move-notice.js +70 -0
- package/modules/hall-ui/public/deploy.html +1 -1
- package/modules/hall-ui/public/diagrams.html +1 -1
- package/modules/hall-ui/public/drachmae.html +1 -1
- package/modules/hall-ui/public/fleet.html +1 -1
- package/modules/hall-ui/public/gate.html +1 -1
- package/modules/hall-ui/public/goal-map.html +1 -1
- package/modules/hall-ui/public/goals.html +1 -1
- package/modules/hall-ui/public/government.html +1 -1
- package/modules/hall-ui/public/idea.html +1 -1
- package/modules/hall-ui/public/ideas.html +1 -1
- package/modules/hall-ui/public/index.html +1 -1
- package/modules/hall-ui/public/modules.html +1 -1
- package/modules/hall-ui/public/my-agents.html +1 -1
- package/modules/hall-ui/public/primer.html +1 -1
- package/modules/hall-ui/public/profile.html +1 -1
- package/modules/hall-ui/public/project-settings.html +1 -1
- package/modules/hall-ui/public/ranks.html +1 -1
- package/modules/hall-ui/public/roadmap.html +1 -1
- package/modules/hall-ui/public/roster.html +1 -1
- package/modules/hall-ui/public/sessions.html +1 -1
- package/modules/hall-ui/public/settings-software-update.js +24 -2
- package/modules/hall-ui/public/settings.html +2 -2
- package/modules/hall-ui/public/shell.js +8 -0
- package/modules/hall-ui/public/street.html +1 -1
- package/modules/hall-ui/public/studio.html +1 -1
- package/modules/hall-ui/public/style.css +11 -0
- package/modules/hall-ui/public/task.html +1 -1
- package/modules/hall-ui/public/thinking.html +1 -1
- package/modules/hall-ui/public/tweak-editor.html +1 -1
- package/modules/hall-ui/public/watch.html +1 -1
- package/modules/hall-ui/public/work.html +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/release-notes.json +12 -0
- package/scripts/gds/core-origin-follow.js +185 -0
- package/scripts/gds/core-pin-sync.js +31 -5
- package/scripts/gds/provision-core-upgrade.js +9 -3
- package/src/bongos/core-moves.js +155 -0
- package/src/bongos/routes/core-update.js +43 -3
- package/src/module-api.js +1 -1
- package/tests/core_move_notice.mjs +356 -0
- package/tests/core_origin_follow.mjs +287 -0
- package/tests/core_pin_sync.mjs +7 -2
- package/tests/nav_permission_atoms.mjs +3 -2
package/tests/core_pin_sync.mjs
CHANGED
|
@@ -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-
|
|
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
|
-
|
|
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);
|