@ghl-ai/aw 0.1.25-beta.8 → 0.1.25-beta.9

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.
Files changed (2) hide show
  1. package/commands/pull.mjs +13 -5
  2. package/package.json +1 -1
package/commands/pull.mjs CHANGED
@@ -17,7 +17,7 @@ import { resolveInput } from '../paths.mjs';
17
17
  import { linkWorkspace } from '../link.mjs';
18
18
  import { generateCommands, copyInstructions } from '../integrate.mjs';
19
19
 
20
- export function pullCommand(args) {
20
+ export async function pullCommand(args) {
21
21
  const input = args._positional?.[0] || '';
22
22
  const cwd = process.cwd();
23
23
  const GLOBAL_AW_DIR = join(homedir(), '.aw_registry');
@@ -41,7 +41,7 @@ export function pullCommand(args) {
41
41
  spinner: silent ? () => ({ start: () => {}, stop: () => {} }) : fmt.spinner,
42
42
  };
43
43
 
44
- // No args = re-pull everything in sync config
44
+ // No args = re-pull everything in sync config (parallel)
45
45
  if (!input) {
46
46
  const cfg = config.load(workspaceDir);
47
47
  if (!cfg) log.cancel('No .sync-config.json found. Run: aw init');
@@ -49,9 +49,17 @@ export function pullCommand(args) {
49
49
  log.cancel('Nothing to pull. Add paths first:\n\n aw pull <path>');
50
50
  }
51
51
  log.logInfo(`Pulling ${chalk.cyan(cfg.include.length)} synced path${cfg.include.length > 1 ? 's' : ''}...`);
52
- for (const p of cfg.include) {
53
- pullCommand({ ...args, _positional: [p], _skipIntegrate: true });
54
- }
52
+ const pullJobs = cfg.include.map(p => {
53
+ const isTeamNs = p !== 'platform';
54
+ return pullAsync({
55
+ ...args,
56
+ _positional: [isTeamNs ? '[template]' : p],
57
+ _workspaceDir: workspaceDir,
58
+ _skipIntegrate: true,
59
+ _renameNamespace: isTeamNs ? p : undefined,
60
+ });
61
+ });
62
+ await Promise.all(pullJobs);
55
63
  // Post-pull IDE integration (once after all paths pulled)
56
64
  linkWorkspace(cwd);
57
65
  generateCommands(cwd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.25-beta.8",
3
+ "version": "0.1.25-beta.9",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {