skillfish 1.0.26 → 1.0.28

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.
@@ -265,7 +265,7 @@ Examples:
265
265
  totalSkipped += result.skipped.length;
266
266
  // Track successful installs (fire and forget)
267
267
  if (result.installed.length > 0) {
268
- void trackInstall(owner, repo);
268
+ void trackInstall('add', owner, repo, skillName);
269
269
  }
270
270
  }
271
271
  // Summary
@@ -535,7 +535,7 @@ Examples:
535
535
  if (result.success) {
536
536
  successCount++;
537
537
  // Track successful installs (fire and forget)
538
- void trackInstall(action.entry.owner, action.entry.repo);
538
+ void trackInstall('install', action.entry.owner, action.entry.repo, result.skillName);
539
539
  if (!jsonMode) {
540
540
  // Show which agents it was installed to if it's a partial install
541
541
  const agentCount = action.targetAgents.length;
@@ -6,11 +6,12 @@
6
6
  */
7
7
  export declare function trackCommand(command: string): Promise<void>;
8
8
  /**
9
- * Track a skill install. Also increments skill download count on backend.
10
- * Maintains backward-compatible payload format.
9
+ * Track a skill install. Inserts into telemetry_events and increments skill download count.
11
10
  *
11
+ * @param command The command that triggered the install ('add' or 'install')
12
12
  * @param owner GitHub repository owner
13
13
  * @param repo GitHub repository name
14
+ * @param skillName Name of the skill being installed
14
15
  * @returns Promise that resolves when telemetry is sent (or times out)
15
16
  */
16
- export declare function trackInstall(owner: string, repo: string): Promise<void>;
17
+ export declare function trackInstall(command: string, owner: string, repo: string, skillName: string): Promise<void>;
package/dist/telemetry.js CHANGED
@@ -35,18 +35,27 @@ function sendTelemetry(payload) {
35
35
  export function trackCommand(command) {
36
36
  if (!command)
37
37
  return Promise.resolve();
38
- return sendTelemetry({ type: 'command', command });
38
+ return sendTelemetry({ event_type: 'command', command });
39
39
  }
40
40
  /**
41
- * Track a skill install. Also increments skill download count on backend.
42
- * Maintains backward-compatible payload format.
41
+ * Track a skill install. Inserts into telemetry_events and increments skill download count.
43
42
  *
43
+ * @param command The command that triggered the install ('add' or 'install')
44
44
  * @param owner GitHub repository owner
45
45
  * @param repo GitHub repository name
46
+ * @param skillName Name of the skill being installed
46
47
  * @returns Promise that resolves when telemetry is sent (or times out)
47
48
  */
48
- export function trackInstall(owner, repo) {
49
- if (!owner || !repo)
49
+ export function trackInstall(command, owner, repo, skillName) {
50
+ if (!command || !owner || !repo || !skillName)
50
51
  return Promise.resolve();
51
- return sendTelemetry({ owner, repo });
52
+ return sendTelemetry({
53
+ event_type: 'install',
54
+ command,
55
+ skill_key: `${owner}/${repo}`,
56
+ // Fields for skill count increment
57
+ owner,
58
+ repo,
59
+ skillName,
60
+ });
52
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillfish",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "All in one Skill manager for AI coding agents. Install, update, and sync Skills across Claude Code, Cursor, Copilot + more.",
5
5
  "type": "module",
6
6
  "bin": {