@runchr/gstack-antigravity 0.1.2 → 0.1.4

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/bin/install.js +12 -4
  2. package/package.json +1 -1
package/bin/install.js CHANGED
@@ -35,7 +35,7 @@ function printHelp() {
35
35
  "",
36
36
  "Notes:",
37
37
  " - For npx/git installs, use --mode copy (recommended).",
38
- " - This installer writes to .agents/skills/gstack in target project."
38
+ " - This installer writes .agents/skills/gstack, .agents/workflows, .agents/rules."
39
39
  ].join("\n")
40
40
  );
41
41
  }
@@ -74,25 +74,34 @@ function main() {
74
74
  }
75
75
 
76
76
  const targetRoot = path.resolve(args.target || process.cwd());
77
+ const targetAgentsRoot = path.join(targetRoot, ".agents");
77
78
  const targetSkillsRoot = path.join(targetRoot, ".agents", "skills");
78
79
  const targetSkill = path.join(targetSkillsRoot, "gstack");
80
+ const targetWorkflows = path.join(targetAgentsRoot, "workflows");
81
+ const targetRules = path.join(targetAgentsRoot, "rules");
79
82
 
80
83
  ensureDir(targetSkillsRoot);
81
84
  rmIfExists(targetSkill);
85
+ rmIfExists(targetWorkflows);
86
+ rmIfExists(targetRules);
82
87
 
83
88
  if (mode === "link") {
84
89
  // In npx temp execution contexts symlinks can be fragile. Keep explicit warning.
85
90
  console.warn("WARN: --mode link may break in npx temporary contexts. Prefer copy.");
86
91
  fs.symlinkSync(srcSkills, targetSkill, "junction");
92
+ fs.symlinkSync(srcWorkflows, targetWorkflows, "junction");
93
+ fs.symlinkSync(srcRules, targetRules, "junction");
87
94
  } else {
88
95
  fs.cpSync(srcSkills, targetSkill, { recursive: true });
96
+ fs.cpSync(srcWorkflows, targetWorkflows, { recursive: true });
97
+ fs.cpSync(srcRules, targetRules, { recursive: true });
89
98
  }
90
99
 
91
100
  console.log("Installed gstack for Antigravity (workspace local only)");
92
101
  console.log(` target : ${targetRoot}`);
93
102
  console.log(` skills : ${targetSkill}`);
94
- console.log(` workflows : ${srcWorkflows}`);
95
- console.log(` rules : ${srcRules}`);
103
+ console.log(` workflows : ${targetWorkflows}`);
104
+ console.log(` rules : ${targetRules}`);
96
105
  console.log(` mode : ${mode}`);
97
106
  }
98
107
 
@@ -102,4 +111,3 @@ try {
102
111
  console.error(`ERROR: ${err.message}`);
103
112
  process.exit(1);
104
113
  }
105
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runchr/gstack-antigravity",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "description": "Local installer for gStack-Antigravity (.agents layout)",
6
6
  "keywords": [