@bongos/core 1.19.684 → 1.19.685

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.684",
6
- "core_contract": "1.19.684",
7
- "source_commit": "3cf0cdf9f887f9b33631e0bcfb3b7290cd935b06",
5
+ "core_version": "1.19.685",
6
+ "core_contract": "1.19.685",
7
+ "source_commit": "b1f9d9ab3a9892d6ccca5a2624ffbe732f23b98b",
8
8
  "source_ref": "HEAD",
9
- "built_at": "2026-09-12T20:55:49.945Z",
9
+ "built_at": "2026-09-12T21:13:17.682Z",
10
10
  "redaction": {
11
11
  "model": "docs-redacted+functional-verbatim",
12
12
  "docs_redacted": 477,
@@ -17,7 +17,7 @@
17
17
  "gate": "passed"
18
18
  },
19
19
  "file_count": 2626,
20
- "tree_sha256": "dc96d8a5eb830704ee772fe1cee19ce1c4ec39575c4fafbbfe46012f5a2cd4b9",
20
+ "tree_sha256": "39b75c53e1b9736b4820105974401f9c9a67a3b5ed629b7434c0272f0a64d5eb",
21
21
  "files": [
22
22
  {
23
23
  "path": ".claude/skills/ask-for-help/SKILL.md",
@@ -2802,7 +2802,7 @@
2802
2802
  {
2803
2803
  "path": "docs/module-api-changelog.md",
2804
2804
  "mode": "0000644",
2805
- "sha256": "d441eb881efdcff2c6afedfa6d93799fdd64ac323422f12b54bf2c94df2b8d4a"
2805
+ "sha256": "aa474c62aed632c8ff75731a38bf22b286866cb6aa30953a64f2ea46e3c83ee2"
2806
2806
  },
2807
2807
  {
2808
2808
  "path": "docs/modules-contract.md",
@@ -7782,12 +7782,12 @@
7782
7782
  {
7783
7783
  "path": "package-lock.json",
7784
7784
  "mode": "0000644",
7785
- "sha256": "130314108dd59672172778afcb5eedb0b8d605a983329a0d0a878ce9c59fa9c9"
7785
+ "sha256": "e1896f085954a25abf57b98c3e16dc53825a88f657cb70f0839e65cf45960cdc"
7786
7786
  },
7787
7787
  {
7788
7788
  "path": "package.json",
7789
7789
  "mode": "0000644",
7790
- "sha256": "d5281482b1e0da7cd0cab8f475fc71345776694e8b457b2f96d241a315902ee4"
7790
+ "sha256": "4f32692ff1a262f499c156645e05890e5814346a1ddbe081846bfbebaf3c6f20"
7791
7791
  },
7792
7792
  {
7793
7793
  "path": "public-docs/index.html",
@@ -9547,7 +9547,7 @@
9547
9547
  {
9548
9548
  "path": "src/module-api.js",
9549
9549
  "mode": "0000644",
9550
- "sha256": "927d43875de79a0923fc0997262fd7a0106c6f56626a89ed5ede0c6c74945eec"
9550
+ "sha256": "50802a77ae69160c8c739f40a02cae66c61bfd200e3d9a6d6be4024baa382793"
9551
9551
  },
9552
9552
  {
9553
9553
  "path": "src/module-loader/catalog.js",
@@ -9972,7 +9972,7 @@
9972
9972
  {
9973
9973
  "path": "tests/box_infra_resolve.mjs",
9974
9974
  "mode": "0000644",
9975
- "sha256": "99209d0e407333bdd00236f0efe9ea63a94678bc206e1c5ae2995f76381f87fd"
9975
+ "sha256": "cf261fa549f36d47ee42343bac2a297b132638aedf03beb8f521370b0c45c0e3"
9976
9976
  },
9977
9977
  {
9978
9978
  "path": "tests/box_onboard.mjs",
@@ -1827,5 +1827,7 @@ is load-bearing: the script throws rather than guess if it is missing, and
1827
1827
  landed since 1.19.682 with no explicit bump. run 34706984747. (task 1002620)
1828
1828
  1.19.684 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
1829
1829
  landed since 1.19.683 with no explicit bump. run 34718471740. (task 1002620)
1830
+ 1.19.685 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
1831
+ landed since 1.19.684 with no explicit bump. run 34719298791. (task 1002620)
1830
1832
  ---------------------------------------------------------------------------
1831
1833
  ```
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@bongos/core",
3
- "version": "1.19.684",
3
+ "version": "1.19.685",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bongos/core",
9
- "version": "1.19.684",
9
+ "version": "1.19.685",
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.684",
3
+ "version": "1.19.685",
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",
package/src/module-api.js CHANGED
@@ -71,7 +71,7 @@ const { responsibilityFor, ROLE_RESPONSIBILITIES } = require('./role-responsibil
71
71
  // there. scripts/gds/bump-version.js still rewrites the literal below; it appends
72
72
  // the entry to that file. Look for a version's history there, not here.
73
73
  // ---------------------------------------------------------------------------
74
- const CORE_VERSION = '1.19.684'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
74
+ const CORE_VERSION = '1.19.685'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
75
75
 
76
76
  // A namespaced logger so a module's log lines are attributable + consistent.
77
77
  // Usage: const log = api.logger('dev-box'); log.info('mounted');
@@ -69,22 +69,30 @@ function makeInfra({ template = true, inlined = INLINED } = {}) {
69
69
  // ===========================================================================
70
70
  // boxInfraCandidates — ordering (pure, injected; ADR 0150 prong A)
71
71
  // ===========================================================================
72
+ // Expected candidates are built with path.join/path.resolve — the same calls
73
+ // boxInfraCandidates makes — never as literal POSIX strings (task 1003821). A
74
+ // hardcoded '/inst/infra' is 'C:\inst\infra' once the code has run it through
75
+ // path.resolve, so these two tests were permanently red for every Windows builder
76
+ // while ubuntu CI stayed green. A known-noise entry in a local baseline is the
77
+ // thing that teaches a reader to skim the fail list instead of diffing it by name.
78
+ const VENDORED_ROOT = '/srv/app/node_modules/@bongos/core';
79
+
72
80
  await test('candidate order: override → explicit instance root → repoRoot → node_modules walk-up', () => {
73
- const env = { CLOUDBONGOS_BOX_INFRA_DIR: '/ovr', CLOUDBONGOS_INSTANCE_ROOT: '/inst' };
74
- const c = box.boxInfraCandidates({ env, repoRoot: '/srv/app/node_modules/@bongos/core' });
81
+ const env = { BONGOS_BOX_INFRA_DIR: '/ovr', BONGOS_INSTANCE_ROOT: '/inst' };
82
+ const c = box.boxInfraCandidates({ env, repoRoot: VENDORED_ROOT });
75
83
  assert.equal(c[0], path.resolve('/ovr'), 'explicit override is first');
76
- assert.equal(c[1], path.join('/inst', 'infra'), 'then the explicit instance root');
77
- assert.equal(c[2], '/srv/app/node_modules/@bongos/core/infra', 'then REPO_ROOT/infra');
84
+ assert.equal(c[1], path.join(path.resolve('/inst'), 'infra'), 'then the explicit instance root');
85
+ assert.equal(c[2], path.join(VENDORED_ROOT, 'infra'), 'then REPO_ROOT/infra');
78
86
  // the load-bearing case: a vendored core walks UP out of node_modules to its host
79
87
  // instance root, so infra/ is found with no pointer at all.
80
- assert.ok(c.includes('/srv/app/infra'), 'walk-up recovers the host instance root infra/');
88
+ assert.ok(c.includes(path.join('/srv/app', 'infra')), 'walk-up recovers the host instance root infra/');
81
89
  });
82
90
 
83
91
  await test('repoRoot/infra precedes its ancestors in the walk-up (robust to any cwd pointer)', () => {
84
92
  const c = box.boxInfraCandidates({ env: {}, repoRoot: '/x/y/z' });
85
- const i0 = c.indexOf('/x/y/z/infra');
86
- const i1 = c.indexOf('/x/y/infra');
87
- const i2 = c.indexOf('/x/infra');
93
+ const i0 = c.indexOf(path.join('/x/y/z', 'infra'));
94
+ const i1 = c.indexOf(path.join('/x/y', 'infra'));
95
+ const i2 = c.indexOf(path.join('/x', 'infra'));
88
96
  assert.ok(i0 >= 0 && i1 > i0 && i2 > i1, 'repoRoot/infra, then /x/y/infra, then /x/infra — in order');
89
97
  });
90
98
 
@@ -93,7 +101,7 @@ await test('repoRoot/infra precedes its ancestors in the walk-up (robust to any
93
101
  // ===========================================================================
94
102
  await test('resolveBoxInfraDir picks the override dir when it holds the template', () => {
95
103
  const { infra } = makeInfra();
96
- const got = box.resolveBoxInfraDir({ env: { CLOUDBONGOS_BOX_INFRA_DIR: infra }, repoRoot: '/nope/does/not/exist' });
104
+ const got = box.resolveBoxInfraDir({ env: { BONGOS_BOX_INFRA_DIR: infra }, repoRoot: '/nope/does/not/exist' });
97
105
  assert.equal(got, infra);
98
106
  });
99
107
 
@@ -103,7 +111,7 @@ await test('resolveBoxInfraDir falls THROUGH a template-less override to the ins
103
111
  const { infra } = makeInfra(); // a real infra/ to fall through to
104
112
  const instRoot = path.dirname(infra); // <root>, so <root>/infra === the real one
105
113
  const got = box.resolveBoxInfraDir({
106
- env: { CLOUDBONGOS_BOX_INFRA_DIR: emptyOverride, CLOUDBONGOS_INSTANCE_ROOT: instRoot },
114
+ env: { BONGOS_BOX_INFRA_DIR: emptyOverride, BONGOS_INSTANCE_ROOT: instRoot },
107
115
  repoRoot: '/nope',
108
116
  });
109
117
  assert.equal(got, infra, 'skips the template-less override, takes the instance-root infra/');