Skip to content

Commit c667daf

Browse files
fix: replace deprecated glob with fast-glob and fix pro bootstrap (#560)
* fix: replace deprecated glob.sync with fast-glob and fix pro bootstrap flow - Replace glob.sync() with fast-glob sync in tool-resolver.js and elicitation.js to eliminate glob@10.5.0 deprecation warnings - Add InlineLicenseClient using Node.js native https for pre-bootstrap license checks when @aiox-fullstack/pro is not yet installed - Remove pre-check block that attempted npm install @aiox-fullstack/pro before email validation (causing 404 errors on fresh installs) - Move @aiox-fullstack/pro installation to stepInstallScaffold (after license gate) - Update tool-resolver.test.js mocks from glob to fast-glob Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: bump version to v5.0.1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: update pro-wizard test for InlineLicenseClient fallback and regenerate manifest - Update validateKeyWithApi test to expect network error instead of "not available" since getLicenseClient() now falls back to InlineLicenseClient when module is missing - Regenerate install manifest to fix entity-registry.yaml hash mismatch Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: add missing methods to InlineLicenseClient (activate, checkEmailVerified, resendVerification) Addresses CodeRabbit CR — InlineLicenseClient must be interface-compatible with LicenseApiClient for legacy key activation and email verification flows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c478234 commit c667daf

File tree

9 files changed

+5602
-2003
lines changed

9 files changed

+5602
-2003
lines changed

.aiox-core/data/entity-registry.yaml

Lines changed: 5297 additions & 1814 deletions
Large diffs are not rendered by default.

.aiox-core/infrastructure/scripts/tool-resolver.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require('fs-extra');
22
const path = require('path');
33
const yaml = require('js-yaml');
4-
const glob = require('glob');
4+
const fg = require('fast-glob');
55

66
/**
77
* ToolResolver - Resolves and loads AIOX tools from file system
@@ -55,7 +55,7 @@ class ToolResolver {
5555
// 3. Find tool file using glob (searches subdirectories)
5656
let toolPath = null;
5757
for (const basePath of searchPaths) {
58-
const candidates = glob.sync(`${basePath}/**/${toolName}.yaml`);
58+
const candidates = fg.sync(`${basePath}/**/${toolName}.yaml`);
5959
if (candidates.length > 0) {
6060
toolPath = candidates[0];
6161
break;
@@ -288,7 +288,7 @@ class ToolResolver {
288288
listAvailableTools() {
289289
const allTools = [];
290290
for (const basePath of this.basePaths) {
291-
const tools = glob.sync(`${basePath}/**/*.yaml`);
291+
const tools = fg.sync(`${basePath}/**/*.yaml`);
292292
allTools.push(...tools);
293293
}
294294
return allTools;
@@ -309,7 +309,7 @@ class ToolResolver {
309309
searchPaths.push(...this.basePaths);
310310

311311
for (const basePath of searchPaths) {
312-
const candidates = glob.sync(`${basePath}/**/${toolName}.yaml`);
312+
const candidates = fg.sync(`${basePath}/**/${toolName}.yaml`);
313313
if (candidates.length > 0) {
314314
return true;
315315
}

0 commit comments

Comments
 (0)