@ghl-ai/aw 0.1.62-beta.1 → 0.1.62
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/c4/commandSurface.mjs +3 -1
- package/commands/c4.mjs +3 -2
- package/package.json +1 -1
package/c4/commandSurface.mjs
CHANGED
|
@@ -318,13 +318,15 @@ function isDir(p) {
|
|
|
318
318
|
* Supports nested domain dirs (e.g. platform/review/commands/).
|
|
319
319
|
*/
|
|
320
320
|
function findCommandDirs(nsDir, segments = []) {
|
|
321
|
+
if (segments.includes('evals')) return [];
|
|
322
|
+
|
|
321
323
|
const results = [];
|
|
322
324
|
const commandsDir = join(nsDir, 'commands');
|
|
323
325
|
if (existsSync(commandsDir) && isDir(commandsDir)) {
|
|
324
326
|
results.push({ dir: commandsDir, segments });
|
|
325
327
|
}
|
|
326
328
|
for (const entry of safeReaddir(nsDir)) {
|
|
327
|
-
if (entry === 'commands' || entry.startsWith('.')) continue;
|
|
329
|
+
if (entry === 'commands' || entry === 'evals' || entry.startsWith('.')) continue;
|
|
328
330
|
const sub = join(nsDir, entry);
|
|
329
331
|
if (isDir(sub)) {
|
|
330
332
|
results.push(...findCommandDirs(sub, [...segments, entry]));
|
package/commands/c4.mjs
CHANGED
|
@@ -415,8 +415,9 @@ export async function c4Command(rawArgs, overrides = {}) {
|
|
|
415
415
|
if (registryNamespaces.length === 0) {
|
|
416
416
|
writer.stderr('[aw-c4] registry has no namespace directories after init — retrying with aw pull\n');
|
|
417
417
|
const pullRes = spawnSync('aw', ['pull'], { stdio: 'pipe' });
|
|
418
|
-
if (pullRes
|
|
419
|
-
writer.stderr('[aw-c4]
|
|
418
|
+
if (pullRes?.status !== 0 || safeListNamespaceDirs(awRegistry).length === 0) {
|
|
419
|
+
writer.stderr('[aw-c4] FATAL: registry commands were not fetched\n');
|
|
420
|
+
return exit(1);
|
|
420
421
|
}
|
|
421
422
|
}
|
|
422
423
|
}
|