@thanhthi2895/luna-ai 2.16.2 → 2.16.3

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.
@@ -9,7 +9,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
9
9
  const CWD = process.cwd();
10
10
  /** Template optional skills located in package, not copied to project when running "luna" */
11
11
  const PACKAGE_ROOT = path.join(__dirname, '..', '..');
12
- const PACKAGE_SKILLS_OPTIONAL = path.join(PACKAGE_ROOT, '.agents', 'skills-optional');
12
+ const PACKAGE_SKILLS_OPTIONAL = path.join(PACKAGE_ROOT, 'agentic', 'antigravity', '.agents', 'skills-optional');
13
13
  const SKILLS_DIR = path.join(CWD, '.agents', 'skills');
14
14
  const REGISTRY_FILE = path.join(CWD, '.agents', 'skills-registry.json');
15
15
 
@@ -687,12 +687,13 @@ export async function installGlobal(rootDir) {
687
687
  // Write settings.json with absolute paths for global hooks (replace $CLAUDE_PROJECT_DIR → absolute)
688
688
  await writeGlobalSettingsJson(rootDir, claudeHome);
689
689
 
690
- // Copy statusline.cjs and its lib/ dependency from .agents/ to ~/.claude/
691
- const statuslineSrc = path.join(rootDir, '.agents', 'statusline.cjs');
690
+ // Copy statusline.cjs and its lib/ dependency from canonical .claude/ to ~/.claude/
691
+ const canonicalClaude = getCanonicalClaudeDir(rootDir);
692
+ const statuslineSrc = path.join(canonicalClaude, 'statusline.cjs');
692
693
  if (await fs.pathExists(statuslineSrc)) {
693
694
  await fs.copy(statuslineSrc, path.join(claudeHome, 'statusline.cjs'), { overwrite: true });
694
695
  // statusline.cjs requires ./lib/ — copy lib/ to ~/.claude/lib/
695
- const libSrc = path.join(rootDir, '.agents', 'lib');
696
+ const libSrc = path.join(canonicalClaude, 'lib');
696
697
  if (await fs.pathExists(libSrc)) {
697
698
  await fs.copy(libSrc, path.join(claudeHome, 'lib'), { overwrite: true });
698
699
  }
@@ -818,10 +819,10 @@ async function ensureLunaCli(claudeHome) {
818
819
 
819
820
  /**
820
821
  * Write settings.json into ~/.claude/ for global install.
821
- * Reads from .agents/settings.json (source of truth) and overwrites ~/.claude/settings.json.
822
+ * Reads from canonical agentic/claude/.claude/settings.json and overwrites ~/.claude/settings.json.
822
823
  */
823
824
  async function writeGlobalSettingsJson(rootDir, claudeHome) {
824
- const srcPath = path.join(rootDir, '.agents', 'settings.json');
825
+ const srcPath = path.join(getCanonicalClaudeDir(rootDir), 'settings.json');
825
826
  const destPath = path.join(claudeHome, 'settings.json');
826
827
 
827
828
  if (!await fs.pathExists(srcPath)) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thanhthi2895/luna-ai",
3
- "version": "2.16.2",
3
+ "version": "2.16.3",
4
4
  "description": "Agentic Workflow Framework cho Claude - Tự động hóa quy trình lập trình Vibe Coding",
5
5
  "type": "module",
6
6
  "private": false,