@hybridlabor-api/aos 4.18.0 → 4.18.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bdb-aos",
3
- "version": "4.18.0",
3
+ "version": "4.18.1",
4
4
  "description": "Full BDB Agent OS suite for Codex: command entry points ($bdb-aos:setup, $bdb-aos:init, ...) generated from plugin-commands.json.",
5
5
  "author": {
6
6
  "name": "Tim Rennings / Hybridlabor Global LLC",
package/installer.js CHANGED
@@ -379,6 +379,30 @@ function isNewerVersion(local, remote) {
379
379
  return false;
380
380
  }
381
381
 
382
+ // Newest dist-tag of `pkg` that is ahead of `localVer`: {tag, version}, or null when none is
383
+ // ahead or npm cannot be reached. `view` is injectable for tests.
384
+ function newestDistTag(pkg, localVer, view = null) {
385
+ try {
386
+ const npmCmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
387
+ const opts = { stdio: ['ignore', 'pipe', 'ignore'], encoding: 'utf8', timeout: 4000 };
388
+ const out = view
389
+ ? view(pkg)
390
+ : process.platform === 'win32'
391
+ ? execSync(`"${npmCmd}" view ${pkg} dist-tags --json`, opts)
392
+ : execFileSync(npmCmd, ['view', pkg, 'dist-tags', '--json'], opts);
393
+ const distTags = JSON.parse(String(out).trim());
394
+ let best = null;
395
+ for (const [tag, ver] of Object.entries(distTags || {})) {
396
+ if (typeof ver !== 'string' || !isNewerVersion(localVer, ver)) continue;
397
+ if (!best || isNewerVersion(best.version, ver)) best = { tag, version: ver };
398
+ }
399
+ return best;
400
+ } catch (e) {
401
+ logDebug(e, `npm view ${pkg}`);
402
+ return null;
403
+ }
404
+ }
405
+
382
406
  function checkForUpdates() {
383
407
  return new Promise((resolve) => {
384
408
  const req = https.get(`https://registry.npmjs.org/${pkg.name}/latest`, { timeout: 1500 }, (res) => {
@@ -6346,6 +6370,8 @@ if (require.main === module) {
6346
6370
 
6347
6371
  // Exported for tests -- requiring installer.js must not launch the TUI.
6348
6372
  module.exports = {
6373
+ newestDistTag,
6374
+ verifyEcosystemInstallation,
6349
6375
  installBinaryAtomically,
6350
6376
  installOSAgentWorkspace,
6351
6377
  readGoBuildInfo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybridlabor-api/aos",
3
- "version": "4.18.0",
3
+ "version": "4.18.1",
4
4
  "description": "AOS — A Curated AI AGENT OS. Optimized agent skills and add-ons like memB, OpenWiki, Heimdall Token Saver, and Godmode architectures.",
5
5
  "main": "installer.js",
6
6
  "engines": {
@@ -29,7 +29,7 @@
29
29
  "plugin:build": "node scripts/build-plugin-manifest.mjs",
30
30
  "plugin:check": "node scripts/build-plugin-manifest.mjs --check",
31
31
  "doctor": "node bin/aos-doctor.mjs",
32
- "test": "node scripts/validate-skills.mjs --selftest && node scripts/validate-skills.mjs && node scripts/build-plugin-manifest.mjs --check && node --test tests/opencode-graph-gate.test.js && node --test tests/cross-harness-hooks.test.js && node --test tests/plan-canvas-security.test.mjs && node --test tests/plan-canvas-modes.test.mjs && node --test tests/swarm-wiring.test.js && node tests/aos-store.test.mjs && node --test tests/aos-store-ui.test.mjs && node tests/aos-store-scenario.test.mjs && node tests/aos-doctor.test.mjs && node tests/build-plugin-manifest.test.mjs && node --test tests/plugin-commands.test.js && node --test tests/playbooks.test.mjs && node --test tests/agent-models.test.js && node --test tests/installer-p3.test.js && node --test tests/plugin-migration.test.js && node --test tests/installer-binary.test.js && node --test tests/installer-version.test.js && node --test tests/mcsc-server.test.js && node --test tests/antigravity-hooks.test.js && node --test tests/windows-hooks.test.js && node --test tests/plan-builder.test.mjs && node --test tests/plan-builder-trail.test.mjs && node --test tests/plan-builder-showcase.test.mjs && node --test tests/plan-builder-templates.test.mjs && node --test tests/plan-canvas-home.test.mjs && node --test tests/launchpad-installer.test.js && node --test tests/launchpad-plan-canvas.test.js && node --test tests/go-token.test.js && node --test tests/go-gate-modes.test.js && node --test tests/go-gate-review.test.js && node --test tests/go-gate-review2.test.js && node --test tests/opencode-gogate.test.js && node --test tests/master-session-skill.test.js && node --test tests/aos-acp.test.js && node --test tests/opencode-go-token.test.js && node --test tests/opencode-adapter.test.js && node --test tests/opencode-install.test.js && node --test tests/pr-recap.test.mjs && node --test tests/bdb-visual-edit.test.mjs && node --test tests/opencode-trail-autostart.test.mjs && node --test tests/trail-autostart-hook.test.mjs && node --test tests/agenttrail-ensure.test.mjs && node --test tests/aos-bus.test.js && node --test tests/installer-quick-update.test.js && node --test tests/no-builderio-visual.test.mjs && node --test tests/retired-skills.test.mjs && node --test tests/plan-canvas-annotate-server.test.mjs && node --test tests/plan-canvas-annotation-schema.test.mjs && node --test tests/plan-canvas-annotate-client.test.mjs && node --test tests/plan-canvas-trail-on-approve.test.mjs && node --test tests/plan-canvas-revive.test.mjs && node --test tests/plan-canvas-route.test.mjs && node --test tests/bdb-visual-edit-locate.test.mjs && node --test tests/agenttrail-worktrees.test.mjs && node --test tests/plan-canvas-e2e-app.test.mjs && node --test tests/plan-canvas-r1.test.mjs && node --test tests/agenttrail-lanes.test.mjs && node --test tests/memb-ambient.test.js && node --test tests/mcsc-depth.test.js && node --test tests/go-check.test.js && node --test tests/coordination-hygiene.test.js && node --test tests/codex-gate-smoke.test.js && node --test tests/setup-subagents-resolve.test.js && node --test tests/codenotch.test.js"
32
+ "test": "node scripts/validate-skills.mjs --selftest && node scripts/validate-skills.mjs && node scripts/build-plugin-manifest.mjs --check && node --test tests/opencode-graph-gate.test.js && node --test tests/cross-harness-hooks.test.js && node --test tests/plan-canvas-security.test.mjs && node --test tests/plan-canvas-modes.test.mjs && node --test tests/swarm-wiring.test.js && node tests/aos-store.test.mjs && node --test tests/aos-store-ui.test.mjs && node tests/aos-store-scenario.test.mjs && node tests/aos-doctor.test.mjs && node tests/build-plugin-manifest.test.mjs && node --test tests/plugin-commands.test.js && node --test tests/playbooks.test.mjs && node --test tests/agent-models.test.js && node --test tests/installer-p3.test.js && node --test tests/plugin-migration.test.js && node --test tests/installer-binary.test.js && node --test tests/installer-version.test.js && node --test tests/mcsc-server.test.js && node --test tests/antigravity-hooks.test.js && node --test tests/windows-hooks.test.js && node --test tests/plan-builder.test.mjs && node --test tests/plan-builder-trail.test.mjs && node --test tests/plan-builder-showcase.test.mjs && node --test tests/plan-builder-templates.test.mjs && node --test tests/plan-canvas-home.test.mjs && node --test tests/launchpad-installer.test.js && node --test tests/launchpad-plan-canvas.test.js && node --test tests/go-token.test.js && node --test tests/go-gate-modes.test.js && node --test tests/go-gate-review.test.js && node --test tests/go-gate-review2.test.js && node --test tests/opencode-gogate.test.js && node --test tests/master-session-skill.test.js && node --test tests/aos-acp.test.js && node --test tests/opencode-go-token.test.js && node --test tests/opencode-adapter.test.js && node --test tests/opencode-install.test.js && node --test tests/pr-recap.test.mjs && node --test tests/bdb-visual-edit.test.mjs && node --test tests/opencode-trail-autostart.test.mjs && node --test tests/trail-autostart-hook.test.mjs && node --test tests/agenttrail-ensure.test.mjs && node --test tests/aos-bus.test.js && node --test tests/installer-quick-update.test.js && node --test tests/no-builderio-visual.test.mjs && node --test tests/retired-skills.test.mjs && node --test tests/plan-canvas-annotate-server.test.mjs && node --test tests/plan-canvas-annotation-schema.test.mjs && node --test tests/plan-canvas-annotate-client.test.mjs && node --test tests/plan-canvas-trail-on-approve.test.mjs && node --test tests/plan-canvas-revive.test.mjs && node --test tests/plan-canvas-route.test.mjs && node --test tests/bdb-visual-edit-locate.test.mjs && node --test tests/agenttrail-worktrees.test.mjs && node --test tests/plan-canvas-e2e-app.test.mjs && node --test tests/plan-canvas-r1.test.mjs && node --test tests/agenttrail-lanes.test.mjs && node --test tests/memb-ambient.test.js && node --test tests/mcsc-depth.test.js && node --test tests/go-check.test.js && node --test tests/coordination-hygiene.test.js && node --test tests/codex-gate-smoke.test.js && node --test tests/setup-subagents-resolve.test.js && node --test tests/codenotch.test.js && node --test tests/installer-dist-tag.test.js"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bdb-aos",
3
- "version": "4.18.0",
3
+ "version": "4.18.1",
4
4
  "description": "Full BDB Agent OS suite: 200+ curated skills, 13 subagents and the startcycle pipelines for Claude Code. Gate hooks and MCP servers are installed by the AOS installer.",
5
5
  "author": {
6
6
  "name": "Tim Rennings / Hybridlabor Global LLC",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bdb-aos",
3
- "version": "4.18.0",
3
+ "version": "4.18.1",
4
4
  "description": "Full BDB Agent OS suite for Codex: command entry points ($bdb-aos:setup, $bdb-aos:init, ...) generated from plugin-commands.json.",
5
5
  "author": {
6
6
  "name": "Tim Rennings / Hybridlabor Global LLC",