skiller 0.10.0 → 0.11.0

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/README.md CHANGED
@@ -41,6 +41,7 @@ npx skiller@latest install
41
41
  | ---------------- | -------------- | -------------------------------------------------- | ------------------------------ | ------------------- |
42
42
  | `github-copilot` | GitHub Copilot | `AGENTS.md` | `.vscode/mcp.json` (`servers`) | `.agents/skills` |
43
43
  | `claude-code` | Claude Code | `AGENTS.md` | `.mcp.json` | `.claude/skills` |
44
+ | `antigravity` | Antigravity | `AGENTS.md` | `.agents/mcp_config.json` | `.agents/skills` |
44
45
  | `codex` | Codex | `AGENTS.md`, `.codex/config.toml` | `.codex/config.toml` | `.agents/skills` |
45
46
  | `cursor` | Cursor | `AGENTS.md` | `.cursor/mcp.json` | `.agents/skills` |
46
47
  | `windsurf` | Windsurf | `AGENTS.md` | `.windsurf/mcp_config.json` | `.windsurf/skills` |
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AntigravityAgent = void 0;
4
+ const AgentsMdAgent_1 = require("./AgentsMdAgent");
5
+ const catalog_1 = require("./catalog");
6
+ /**
7
+ * Antigravity agent adapter.
8
+ * Uses root AGENTS.md, .agents/skills, and .agents/mcp_config.json.
9
+ */
10
+ class AntigravityAgent extends AgentsMdAgent_1.AgentsMdAgent {
11
+ getIdentifier() {
12
+ return 'antigravity';
13
+ }
14
+ getName() {
15
+ return (0, catalog_1.getAgentDisplayName)('antigravity');
16
+ }
17
+ getMcpServerKey() {
18
+ return 'mcpServers';
19
+ }
20
+ supportsMcpStdio() {
21
+ return true;
22
+ }
23
+ supportsMcpRemote() {
24
+ return true;
25
+ }
26
+ supportsNativeSkills() {
27
+ return true;
28
+ }
29
+ getSkillsPath(projectRoot) {
30
+ return (0, catalog_1.getAgentSkillsPath)('antigravity', projectRoot);
31
+ }
32
+ }
33
+ exports.AntigravityAgent = AntigravityAgent;
@@ -43,6 +43,7 @@ const constants_1 = require("../constants");
43
43
  const skills_agent_catalog_1 = require("../generated/skills-agent-catalog");
44
44
  exports.PUBLIC_AGENT_IDENTIFIERS = [
45
45
  'amp',
46
+ 'antigravity',
46
47
  'augment',
47
48
  'claude-code',
48
49
  'cline',
@@ -19,6 +19,7 @@ const OpenCodeAgent_1 = require("./OpenCodeAgent");
19
19
  const CrushAgent_1 = require("./CrushAgent");
20
20
  const GooseAgent_1 = require("./GooseAgent");
21
21
  const AmpAgent_1 = require("./AmpAgent");
22
+ const AntigravityAgent_1 = require("./AntigravityAgent");
22
23
  const QwenCodeAgent_1 = require("./QwenCodeAgent");
23
24
  const KiroAgent_1 = require("./KiroAgent");
24
25
  const WarpAgent_1 = require("./WarpAgent");
@@ -27,6 +28,7 @@ const TraeAgent_1 = require("./TraeAgent");
27
28
  const catalog_1 = require("./catalog");
28
29
  const publicAgentFactories = {
29
30
  amp: () => new AmpAgent_1.AmpAgent(),
31
+ antigravity: () => new AntigravityAgent_1.AntigravityAgent(),
30
32
  augment: () => new AugmentCodeAgent_1.AugmentCodeAgent(),
31
33
  'claude-code': () => new ClaudeAgent_1.ClaudeAgent(),
32
34
  cline: () => new ClineAgent_1.ClineAgent(),
@@ -38,24 +38,6 @@ const fs = __importStar(require("fs/promises"));
38
38
  const path = __importStar(require("path"));
39
39
  const project_paths_1 = require("./project-paths");
40
40
  const SkillsManifest_1 = require("./SkillsManifest");
41
- async function readEnabledPluginIds(projectRoot) {
42
- const settingsPath = path.join(projectRoot, project_paths_1.LEGACY_SKILLER_DIR, 'settings.json');
43
- try {
44
- const raw = JSON.parse(await fs.readFile(settingsPath, 'utf8'));
45
- if (!raw || typeof raw !== 'object')
46
- return [];
47
- const enabledPlugins = raw.enabledPlugins;
48
- if (!enabledPlugins || typeof enabledPlugins !== 'object')
49
- return [];
50
- return Object.entries(enabledPlugins)
51
- .filter(([, enabled]) => enabled === true)
52
- .map(([pluginId]) => pluginId)
53
- .sort((a, b) => a.localeCompare(b));
54
- }
55
- catch {
56
- return [];
57
- }
58
- }
59
41
  function readPluginIdsFromManifestRaw(raw) {
60
42
  if (!raw || typeof raw !== 'object')
61
43
  return [];
@@ -101,10 +83,12 @@ async function readPluginManifestLocations(projectRoot) {
101
83
  }
102
84
  return locations;
103
85
  }
86
+ // Only plugin entries in skiller's own manifest are legacy sync state.
87
+ // `enabledPlugins` in .claude/settings.json is native Claude Code config that a
88
+ // project may declare itself (with extraKnownMarketplaces), so apply keeps it.
104
89
  async function assertNoLegacyClaudePluginState(projectRoot) {
105
- const enabledPluginIds = await readEnabledPluginIds(projectRoot);
106
90
  const manifestLocations = await readPluginManifestLocations(projectRoot);
107
- if (enabledPluginIds.length === 0 && manifestLocations.length === 0) {
91
+ if (manifestLocations.length === 0) {
108
92
  return;
109
93
  }
110
94
  const lines = [
@@ -112,9 +96,6 @@ async function assertNoLegacyClaudePluginState(projectRoot) {
112
96
  '',
113
97
  'Found legacy Claude plugin state:',
114
98
  ];
115
- if (enabledPluginIds.length > 0) {
116
- lines.push(`- enabled plugins in .claude/settings.json: ${enabledPluginIds.join(', ')}`);
117
- }
118
99
  for (const location of manifestLocations) {
119
100
  lines.push(`- plugin manifest entries in ${path.relative(projectRoot, location.manifestPath)}: ${location.pluginIds.join(', ')}`);
120
101
  }
@@ -485,6 +485,33 @@ function transformMcpForKiloCode(mcpJson) {
485
485
  transformedMcp.mcpServers = transformedServers;
486
486
  return transformedMcp;
487
487
  }
488
+ /**
489
+ * Transform MCP server definitions for Antigravity (.agents/mcp_config.json).
490
+ * Antigravity uses `serverUrl` for Streamable HTTP servers and omits `type`.
491
+ */
492
+ function transformMcpForAntigravity(mcpJson) {
493
+ if (!mcpJson.mcpServers || typeof mcpJson.mcpServers !== 'object') {
494
+ return mcpJson;
495
+ }
496
+ const transformedMcp = { ...mcpJson };
497
+ const transformedServers = {};
498
+ for (const [name, serverDef] of Object.entries(mcpJson.mcpServers)) {
499
+ if (serverDef && typeof serverDef === 'object') {
500
+ const server = { ...serverDef };
501
+ delete server.type;
502
+ if (typeof server.url === 'string' && !server.serverUrl) {
503
+ server.serverUrl = server.url;
504
+ delete server.url;
505
+ }
506
+ transformedServers[name] = server;
507
+ }
508
+ else {
509
+ transformedServers[name] = serverDef;
510
+ }
511
+ }
512
+ transformedMcp.mcpServers = transformedServers;
513
+ return transformedMcp;
514
+ }
488
515
  async function applyStandardMcpConfiguration(agent, filteredMcpJson, dest, agentConfig, config, cliMcpStrategy, dryRun, verbose, backup = true) {
489
516
  const strategy = cliMcpStrategy ??
490
517
  agentConfig?.mcp?.strategy ??
@@ -510,6 +537,9 @@ async function applyStandardMcpConfiguration(agent, filteredMcpJson, dest, agent
510
537
  path.basename(dest) === '.mcp.json') {
511
538
  mcpToMerge = transformMcpForClaude(filteredMcpJson);
512
539
  }
540
+ else if (agent.getIdentifier() === 'antigravity') {
541
+ mcpToMerge = transformMcpForAntigravity(filteredMcpJson);
542
+ }
513
543
  else if (agent.getIdentifier() === 'kilocode') {
514
544
  mcpToMerge = transformMcpForKiloCode(filteredMcpJson);
515
545
  }
@@ -243,6 +243,7 @@ async function removeEmptyDirectories(projectRoot, verbose, dryRun) {
243
243
  */
244
244
  async function removeAdditionalAgentFiles(projectRoot, verbose, dryRun) {
245
245
  const additionalFiles = [
246
+ '.agents/mcp_config.json',
246
247
  '.gemini/settings.json',
247
248
  '.mcp.json',
248
249
  '.vscode/mcp.json',
package/dist/paths/mcp.js CHANGED
@@ -58,6 +58,9 @@ async function getNativeMcpPath(adapterName, projectRoot) {
58
58
  case 'Claude Code':
59
59
  candidates.push(path.join(projectRoot, '.mcp.json'));
60
60
  break;
61
+ case 'Antigravity':
62
+ candidates.push(path.join(projectRoot, '.agents', 'mcp_config.json'));
63
+ break;
61
64
  case 'Codex':
62
65
  candidates.push(path.join(projectRoot, '.codex', 'config.toml'));
63
66
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skiller",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Skiller — apply the same rules to all coding agents",
5
5
  "main": "dist/lib.js",
6
6
  "publishConfig": {