@ghl-ai/aw 0.1.36-beta.66 → 0.1.36-beta.67

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
@@ -54,11 +54,14 @@ export async function pullCommand(args) {
54
54
 
55
55
  // If input is a new namespace to add
56
56
  if (input && input !== 'platform') {
57
- // Use only the top-level namespace dir for sparse checkout (avoids non-cone file-path pattern issues)
58
- const topNs = input.split('/')[0];
59
- const sparsePath = `.aw_registry/${topNs}`;
57
+ // Deep path (e.g. mobile/core/backend/agents/developer.md) anchor with leading slash so
58
+ // git non-cone sparse-checkout matches exactly that path (not every file with that name).
59
+ // Top-level namespace only (e.g. "mobile") → use directory pattern to pull the whole namespace.
60
+ const isDeepPath = input.includes('/');
61
+ const sparsePath = isDeepPath ? `/.aw_registry/${input}` : `.aw_registry/${input}`;
62
+ const label = isDeepPath ? input.split('/').pop() : input;
60
63
  if (!cfg.include.includes(input)) {
61
- log.logStep(`Adding namespace ${chalk.cyan(topNs)} to sparse checkout...`);
64
+ log.logStep(`Adding ${chalk.cyan(label)} to sparse checkout...`);
62
65
  addToSparseCheckout(AW_HOME, [sparsePath, 'content']);
63
66
  config.addPattern(GLOBAL_AW_DIR, input);
64
67
  // Mirror new path into project worktree so it's visible in IDE and linkWorkspace
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.36-beta.66",
3
+ "version": "0.1.36-beta.67",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": "bin.js",