antigravity-ai-kit 3.5.1 → 3.5.2

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.
@@ -1,6 +1,6 @@
1
1
  # Antigravity AI Kit — CheatSheet
2
2
 
3
- > **Version**: v3.5.1 | **Quick Reference** for all capabilities
3
+ > **Version**: v3.5.2 | **Quick Reference** for all capabilities
4
4
  > **Session**: Start with `/status`, end with session-end checklist
5
5
 
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  # Pre-Commit Checklist
2
2
 
3
- > **Framework**: Antigravity AI Kit v3.5.1
3
+ > **Framework**: Antigravity AI Kit v3.5.2
4
4
  > **Purpose**: Quality gate before committing code
5
5
  > **Principle**: Prevention over correction
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Session End Checklist
2
2
 
3
- > **Framework**: Antigravity AI Kit v3.5.1
3
+ > **Framework**: Antigravity AI Kit v3.5.2
4
4
  > **Purpose**: Complete this checklist before ending any work session
5
5
  > **Principle**: Context preservation for continuity
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Session Start Checklist
2
2
 
3
- > **Framework**: Antigravity AI Kit v3.5.1
3
+ > **Framework**: Antigravity AI Kit v3.5.2
4
4
  > **Purpose**: Complete this checklist at the beginning of every work session
5
5
  > **Principle**: Full context before new work
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Task-Complete Checkpoint
2
2
 
3
- > **Framework**: Antigravity AI Kit v3.5.1
3
+ > **Framework**: Antigravity AI Kit v3.5.2
4
4
  > **Purpose**: Decision gate after task completion — present options before commit/push
5
5
  > **Principle**: Human-in-the-loop governance
6
6
 
@@ -24,7 +24,7 @@ Your complete guide to the Antigravity AI Kit. Type `/help` for a quick overview
24
24
 
25
25
  ## Quick Overview
26
26
 
27
- **Antigravity AI Kit v3.5.1** — Trust-Grade AI Development Framework
27
+ **Antigravity AI Kit v3.5.2** — Trust-Grade AI Development Framework
28
28
 
29
29
  | Category | Count | Description |
30
30
  |:---------|:------|:------------|
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "kitVersion": "3.5.1",
3
+ "kitVersion": "3.5.2",
4
4
  "lastAuditedAt": null,
5
5
  "description": "Antigravity AI Kit — Trust-Grade AI Development Framework",
6
6
  "repository": "https://github.com/besync-labs/antigravity-ai-kit",
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 🚀 Antigravity AI Kit
2
2
 
3
- ![version](https://img.shields.io/badge/version-3.5.1-blue)
3
+ ![version](https://img.shields.io/badge/version-3.5.2-blue)
4
4
  ![license](https://img.shields.io/badge/license-MIT-green)
5
5
  ![AI Agents](https://img.shields.io/badge/AI%20Agents-19-purple)
6
6
  ![Skills](https://img.shields.io/badge/Skills-32-orange)
package/bin/ag-kit.js CHANGED
@@ -17,6 +17,7 @@ const path = require('path');
17
17
  const VERSION = require('../package.json').version;
18
18
  const AGENT_FOLDER = '.agent';
19
19
  const { safeCopyDirSync, readJsonSafe } = require('../lib/io');
20
+ const { USER_DATA_FILES, USER_DATA_DIRS } = require('../lib/updater');
20
21
 
21
22
  // ANSI colors
22
23
  const colors = {
@@ -37,7 +38,24 @@ function logStep(step, message) {
37
38
  console.log(`${colors.cyan}[${step}]${colors.reset} ${message}`);
38
39
  }
39
40
 
41
+ function loadBannerCounts() {
42
+ try {
43
+ const manifestPath = path.join(__dirname, '..', AGENT_FOLDER, 'manifest.json');
44
+ const manifest = readJsonSafe(manifestPath, null);
45
+ if (manifest?.capabilities) {
46
+ return {
47
+ agents: manifest.capabilities.agents?.count || 19,
48
+ skills: manifest.capabilities.skills?.count || 32,
49
+ commands: manifest.capabilities.commands?.count || 31,
50
+ workflows: manifest.capabilities.workflows?.count || 14,
51
+ };
52
+ }
53
+ } catch { /* fallback to defaults */ }
54
+ return { agents: 19, skills: 32, commands: 31, workflows: 14 };
55
+ }
56
+
40
57
  function showBanner() {
58
+ const counts = loadBannerCounts();
41
59
  console.log(`
42
60
  ${colors.bright}${colors.blue}
43
61
  _____ __ .__ .__ __
@@ -50,8 +68,8 @@ ${colors.reset}
50
68
  ${colors.green}🚀 Antigravity AI Kit v${VERSION}${colors.reset}
51
69
  ${colors.yellow} Transform Your IDE into an Autonomous Engineering Team${colors.reset}
52
70
 
53
- 19 AI Agents • 32 Skills
54
- 31 Commands • 14 Workflows
71
+ ${counts.agents} AI Agents • ${counts.skills} Skills
72
+ ${counts.commands} Commands • ${counts.workflows} Workflows
55
73
  • Runtime Engine • Error Budget
56
74
  `);
57
75
  }
@@ -169,15 +187,13 @@ function initCommand(options) {
169
187
  log(` To: ${agentPath}\n`, 'cyan');
170
188
  // M-2: Show force damage preview
171
189
  if (options.force && fs.existsSync(agentPath)) {
172
- log(' ⚠️ --force would overwrite these user files:', 'yellow');
173
- const userFiles = ['session-context.md', 'session-state.json'];
174
- const userDirs = ['decisions', 'contexts'];
175
- for (const f of userFiles) {
190
+ log(' ⚠️ --force would overwrite these user files (restored from backup):', 'yellow');
191
+ for (const f of USER_DATA_FILES) {
176
192
  if (fs.existsSync(path.join(agentPath, f))) {
177
193
  log(` • ${f}`, 'yellow');
178
194
  }
179
195
  }
180
- for (const d of userDirs) {
196
+ for (const d of USER_DATA_DIRS) {
181
197
  if (fs.existsSync(path.join(agentPath, d))) {
182
198
  log(` • ${d}/ (directory)`, 'yellow');
183
199
  }
@@ -200,9 +216,13 @@ function initCommand(options) {
200
216
  }
201
217
  }
202
218
 
219
+ // Dynamic step counter — avoids hardcoded step strings
220
+ const isForceWithBackup = backupPath !== null;
221
+ const totalSteps = isForceWithBackup ? 5 : 3;
222
+ let currentStep = isForceWithBackup ? 2 : 1;
223
+
203
224
  // C-3: Atomic copy via temp directory
204
- const stepPrefix = options.force && fs.existsSync(agentPath) ? '2/5' : '1/3';
205
- logStep(stepPrefix, 'Copying .agent folder...');
225
+ logStep(`${currentStep}/${totalSteps}`, 'Copying .agent folder...');
206
226
 
207
227
  const tempPath = `${agentPath}.tmp-${Date.now()}`;
208
228
  try {
@@ -226,15 +246,14 @@ function initCommand(options) {
226
246
  log(` ✗ Failed to copy: ${err.message}`, 'red');
227
247
  process.exit(1);
228
248
  }
249
+ currentStep++;
229
250
 
230
251
  // E3: Restore user data files from backup after force-overwrite
231
- if (backupPath && fs.existsSync(backupPath)) {
232
- logStep('3/5', 'Restoring user session data from backup...');
233
- const userDataFiles = ['session-context.md', 'session-state.json', path.join('engine', 'identity.json')];
234
- const userDataDirs = ['decisions', 'contexts'];
252
+ if (isForceWithBackup) {
253
+ logStep(`${currentStep}/${totalSteps}`, 'Restoring user session data from backup...');
235
254
  let restoredCount = 0;
236
255
 
237
- for (const file of userDataFiles) {
256
+ for (const file of USER_DATA_FILES) {
238
257
  const backupFile = path.join(backupPath, file);
239
258
  const targetFile = path.join(agentPath, file);
240
259
  if (fs.existsSync(backupFile)) {
@@ -248,7 +267,7 @@ function initCommand(options) {
248
267
  }
249
268
  }
250
269
 
251
- for (const dir of userDataDirs) {
270
+ for (const dir of USER_DATA_DIRS) {
252
271
  const backupDir = path.join(backupPath, dir);
253
272
  const targetDirPath = path.join(agentPath, dir);
254
273
  if (fs.existsSync(backupDir)) {
@@ -261,17 +280,19 @@ function initCommand(options) {
261
280
  if (restoredCount === 0) {
262
281
  log(' ○ No user data to restore', 'yellow');
263
282
  }
283
+ currentStep++;
264
284
  }
265
285
 
266
286
  // Verify installation
267
- logStep('2/3', 'Verifying installation...');
287
+ logStep(`${currentStep}/${totalSteps}`, 'Verifying installation...');
268
288
  const skills = countItems(path.join(agentPath, 'skills'), 'dir');
269
289
  const commands = countItems(path.join(agentPath, 'commands'), 'file');
270
290
  const workflows = countItems(path.join(agentPath, 'workflows'), 'file');
271
291
  log(` ✓ Skills: ${skills}, Commands: ${commands}, Workflows: ${workflows}`, 'green');
292
+ currentStep++;
272
293
 
273
294
  // Final message
274
- logStep('3/3', 'Setup complete!');
295
+ logStep(`${currentStep}/${totalSteps}`, 'Setup complete!');
275
296
 
276
297
  if (!options.quiet) {
277
298
  console.log(`
@@ -461,11 +482,13 @@ function updateCommand(updateOptions) {
461
482
  const updater = require('../lib/updater');
462
483
  const isDryRun = updateOptions.dryRun;
463
484
 
464
- // M-1: Show version transition
485
+ // M-1: Show version transition (use source kit version, not CLI version)
486
+ const sourcePackage = readJsonSafe(path.join(sourceRoot, 'package.json'), {});
487
+ const kitVersion = sourcePackage.version || VERSION;
465
488
  const currentManifest = readJsonSafe(path.join(agentPath, 'manifest.json'), {});
466
489
  const currentVersion = currentManifest.kitVersion || 'unknown';
467
- if (currentVersion !== VERSION) {
468
- log(`\n 📦 Upgrading from v${currentVersion} → v${VERSION}`, 'cyan');
490
+ if (currentVersion !== kitVersion) {
491
+ log(`\n 📦 Upgrading: v${currentVersion} → v${kitVersion}`, 'cyan');
469
492
  }
470
493
 
471
494
  if (isDryRun) {
package/lib/updater.js CHANGED
@@ -214,4 +214,6 @@ module.exports = {
214
214
  applyUpdate,
215
215
  isPreservedFile,
216
216
  collectFiles,
217
+ USER_DATA_FILES,
218
+ USER_DATA_DIRS,
217
219
  };
package/package.json CHANGED
@@ -1,54 +1,54 @@
1
- {
2
- "name": "antigravity-ai-kit",
3
- "version": "3.5.1",
4
- "description": "🚀 Trust-Grade AI development framework with a 29-module runtime engine — 19 Agents, 32 Skills, 31 Commands, 14 Workflows, 8 Rules, 341 Tests. Workflow enforcement, task governance, agent reputation, self-healing, and skill marketplace.",
5
- "main": "bin/ag-kit.js",
6
- "bin": {
7
- "ag-kit": "./bin/ag-kit.js"
8
- },
9
- "scripts": {
10
- "test": "vitest run",
11
- "test:watch": "vitest watch",
12
- "preversion": "npm test",
13
- "version": "node scripts/sync-version.js && git add -A",
14
- "postinstall": "echo '✅ Antigravity AI Kit installed! Run: ag-kit init'"
15
- },
16
- "keywords": [
17
- "ai",
18
- "agents",
19
- "gemini",
20
- "claude",
21
- "antigravity",
22
- "development",
23
- "workflow",
24
- "skills",
25
- "commands",
26
- "devtools",
27
- "productivity",
28
- "cli"
29
- ],
30
- "author": "Emre Dursun <info.emredursun@gmail.com>",
31
- "license": "MIT",
32
- "repository": {
33
- "type": "git",
34
- "url": "git+https://github.com/besync-labs/antigravity-ai-kit.git"
35
- },
36
- "bugs": {
37
- "url": "https://github.com/besync-labs/antigravity-ai-kit/issues"
38
- },
39
- "homepage": "https://github.com/besync-labs/antigravity-ai-kit#readme",
40
- "engines": {
41
- "node": ">=18.0.0",
42
- "npm": ">=9.0.0"
43
- },
44
- "files": [
45
- "bin/",
46
- "lib/",
47
- ".agent/",
48
- "README.md",
49
- "LICENSE"
50
- ],
51
- "devDependencies": {
52
- "vitest": "^4.1.0"
53
- }
54
- }
1
+ {
2
+ "name": "antigravity-ai-kit",
3
+ "version": "3.5.2",
4
+ "description": "🚀 Trust-Grade AI development framework with a 29-module runtime engine — 19 Agents, 32 Skills, 31 Commands, 14 Workflows, 8 Rules, 341 Tests. Workflow enforcement, task governance, agent reputation, self-healing, and skill marketplace.",
5
+ "main": "bin/ag-kit.js",
6
+ "bin": {
7
+ "ag-kit": "./bin/ag-kit.js"
8
+ },
9
+ "scripts": {
10
+ "test": "vitest run",
11
+ "test:watch": "vitest watch",
12
+ "preversion": "npm test",
13
+ "version": "node scripts/sync-version.js && git add -A",
14
+ "postinstall": "echo '✅ Antigravity AI Kit installed! Run: ag-kit init'"
15
+ },
16
+ "keywords": [
17
+ "ai",
18
+ "agents",
19
+ "gemini",
20
+ "claude",
21
+ "antigravity",
22
+ "development",
23
+ "workflow",
24
+ "skills",
25
+ "commands",
26
+ "devtools",
27
+ "productivity",
28
+ "cli"
29
+ ],
30
+ "author": "Emre Dursun <info.emredursun@gmail.com>",
31
+ "license": "MIT",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/besync-labs/antigravity-ai-kit.git"
35
+ },
36
+ "bugs": {
37
+ "url": "https://github.com/besync-labs/antigravity-ai-kit/issues"
38
+ },
39
+ "homepage": "https://github.com/besync-labs/antigravity-ai-kit#readme",
40
+ "engines": {
41
+ "node": ">=18.0.0",
42
+ "npm": ">=9.0.0"
43
+ },
44
+ "files": [
45
+ "bin/",
46
+ "lib/",
47
+ ".agent/",
48
+ "README.md",
49
+ "LICENSE"
50
+ ],
51
+ "devDependencies": {
52
+ "vitest": "^4.1.0"
53
+ }
54
+ }