@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 +7 -4
- package/package.json +1 -1
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
|
-
//
|
|
58
|
-
|
|
59
|
-
|
|
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
|
|
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
|