antigravity-seo-kit 1.2.7 → 1.2.8
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/lib/installer.js +13 -3
- package/lib/utils.js +4 -3
- package/package.json +1 -1
package/lib/installer.js
CHANGED
|
@@ -524,8 +524,10 @@ function setupWorkspace(cwd) {
|
|
|
524
524
|
const spin = spinner('Replicating .agent directory to local workspace...').start();
|
|
525
525
|
try {
|
|
526
526
|
fs.mkdirSync(localAgentDir, { recursive: true });
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
|
|
528
|
+
// Only copy necessary directories. agents and rules are loaded globally via the plugin.
|
|
529
|
+
// skills are copied but filtered to exclude .md files to save space and avoid duplicate prompts/instructions.
|
|
530
|
+
const directoriesToCopy = ['.shared', 'config', 'dashboard', 'docs', 'scripts', 'workflows'];
|
|
529
531
|
const filesToCopy = ['ARCHITECTURE.md'];
|
|
530
532
|
|
|
531
533
|
let count = 0;
|
|
@@ -533,7 +535,15 @@ function setupWorkspace(cwd) {
|
|
|
533
535
|
const src = path.join(globalDir, dir);
|
|
534
536
|
const dest = path.join(localAgentDir, dir);
|
|
535
537
|
if (fs.existsSync(src)) {
|
|
536
|
-
|
|
538
|
+
if (dir === 'skills') {
|
|
539
|
+
// Keep scripts and assets, but exclude instruction/documentation markdown files
|
|
540
|
+
count += copyRecursive(src, dest, {
|
|
541
|
+
overwrite: true,
|
|
542
|
+
filter: (filePath) => !filePath.endsWith('.md')
|
|
543
|
+
});
|
|
544
|
+
} else {
|
|
545
|
+
count += copyRecursive(src, dest, { overwrite: true });
|
|
546
|
+
}
|
|
537
547
|
}
|
|
538
548
|
}
|
|
539
549
|
for (const file of filesToCopy) {
|
package/lib/utils.js
CHANGED
|
@@ -92,8 +92,9 @@ function spinner(message) {
|
|
|
92
92
|
* Recursively copy a directory, merging with existing content.
|
|
93
93
|
* Does not overwrite existing files unless `overwrite` is true.
|
|
94
94
|
*/
|
|
95
|
-
function copyRecursive(src, dest, { overwrite = false, fileCallback = null } = {}) {
|
|
95
|
+
function copyRecursive(src, dest, { overwrite = false, fileCallback = null, filter = null } = {}) {
|
|
96
96
|
if (!fs.existsSync(src)) return 0;
|
|
97
|
+
if (filter && !filter(src)) return 0;
|
|
97
98
|
|
|
98
99
|
let count = 0;
|
|
99
100
|
|
|
@@ -104,7 +105,7 @@ function copyRecursive(src, dest, { overwrite = false, fileCallback = null } = {
|
|
|
104
105
|
count += copyRecursive(
|
|
105
106
|
path.join(src, entry),
|
|
106
107
|
path.join(dest, entry),
|
|
107
|
-
{ overwrite, fileCallback }
|
|
108
|
+
{ overwrite, fileCallback, filter }
|
|
108
109
|
);
|
|
109
110
|
}
|
|
110
111
|
} else {
|
|
@@ -298,5 +299,5 @@ module.exports = {
|
|
|
298
299
|
writeLicenseFile,
|
|
299
300
|
removeLicenseFile,
|
|
300
301
|
LICENSE_FILE,
|
|
301
|
-
PACKAGE_VERSION: '1.2.
|
|
302
|
+
PACKAGE_VERSION: '1.2.8',
|
|
302
303
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antigravity-seo-kit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "Professional SEO Analysis Toolkit for Google Antigravity AI Agent — 44 specialized skills covering technical audit, E-E-A-T, schema, GEO, local SEO & more",
|
|
5
5
|
"main": "lib/installer.js",
|
|
6
6
|
"bin": {
|