@ghl-ai/aw 0.1.25-beta.11 → 0.1.25-beta.12

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/commands/pull.mjs CHANGED
@@ -17,12 +17,11 @@ import { resolveInput } from '../paths.mjs';
17
17
  import { linkWorkspace } from '../link.mjs';
18
18
  import { generateCommands, copyInstructions } from '../integrate.mjs';
19
19
 
20
- // Platform-level types to skip (CLI meta-docs, not useful as agent content)
21
- const SKIP_PLATFORM_TYPES = new Set(['commands']);
22
-
20
+ // Filter out top-level platform CLI meta-commands (drop, pull, push, etc.)
21
+ // but keep domain-specific commands (platform/design/commands/, platform/infra/commands/).
23
22
  function filterActions(actions, pattern) {
24
23
  if (pattern !== 'platform') return actions;
25
- return actions.filter(a => !SKIP_PLATFORM_TYPES.has(a.type));
24
+ return actions.filter(a => !(a.type === 'commands' && a.namespacePath === 'platform'));
26
25
  }
27
26
 
28
27
  export async function pullCommand(args) {
package/integrate.mjs CHANGED
@@ -3,6 +3,7 @@
3
3
  import { existsSync, mkdirSync, writeFileSync, readFileSync, readdirSync, rmSync } from 'node:fs';
4
4
  import { join } from 'node:path';
5
5
  import * as fmt from './fmt.mjs';
6
+ import * as config from './config.mjs';
6
7
 
7
8
  // AW CLI commands to generate
8
9
  const AW_COMMANDS = [
@@ -30,7 +31,7 @@ export function generateCommands(cwd) {
30
31
  if (existsSync(oldGenDir)) rmSync(oldGenDir, { recursive: true, force: true });
31
32
 
32
33
  let count = 0;
33
- const namespaces = listNamespaceDirs(awDir);
34
+ const namespaces = getTeamNamespaces(awDir);
34
35
 
35
36
  for (const ns of namespaces) {
36
37
  const commandsDir = join(awDir, ns, 'commands');
@@ -460,10 +461,13 @@ No active tasks. Tasks are created during workflow execution.
460
461
  fmt.logSuccess('Created .aw_docs/ (local orchestration state)');
461
462
  }
462
463
 
463
- function listNamespaceDirs(awDir) {
464
- if (!existsSync(awDir)) return [];
465
- return readdirSync(awDir, { withFileTypes: true })
466
- .filter(d => d.isDirectory() && !d.name.startsWith('.'))
467
- .map(d => d.name);
464
+ /**
465
+ * Return team namespace paths from config (excludes 'platform').
466
+ * E.g. ['revex/courses'] generated CLI commands only go into team namespaces.
467
+ */
468
+ function getTeamNamespaces(awDir) {
469
+ const cfg = config.load(awDir);
470
+ if (!cfg || !cfg.include) return [];
471
+ return cfg.include.filter(p => p !== 'platform');
468
472
  }
469
473
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.25-beta.11",
3
+ "version": "0.1.25-beta.12",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {