@toolr/seedr 0.1.45 → 0.1.47
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/dist/cli.js +23 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -151,6 +151,28 @@ function handleCommandError(error2) {
|
|
|
151
151
|
process.exit(1);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
// src/utils/analytics.ts
|
|
155
|
+
var ANALYTICS_URL = "https://seedr.toolr.dev/api/installs";
|
|
156
|
+
function trackInstalls(slug, type, results, scope) {
|
|
157
|
+
if (process.env.SEEDR_NO_TELEMETRY) return;
|
|
158
|
+
for (const result of results) {
|
|
159
|
+
if (!result.success) continue;
|
|
160
|
+
fetch(ANALYTICS_URL, {
|
|
161
|
+
method: "POST",
|
|
162
|
+
headers: { "Content-Type": "application/json" },
|
|
163
|
+
body: JSON.stringify({
|
|
164
|
+
slug,
|
|
165
|
+
type,
|
|
166
|
+
tool: result.tool,
|
|
167
|
+
scope,
|
|
168
|
+
version: "0.1.47"
|
|
169
|
+
}),
|
|
170
|
+
signal: AbortSignal.timeout(4e3)
|
|
171
|
+
}).catch(() => {
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
154
176
|
// src/config/compatibility.ts
|
|
155
177
|
var TOOL_COMPATIBILITY = {
|
|
156
178
|
skill: ["claude", "copilot", "gemini", "codex", "opencode"],
|
|
@@ -913,6 +935,7 @@ var addCommand = new Command("add").description("Install a skill, agent, hook, o
|
|
|
913
935
|
}
|
|
914
936
|
console.log();
|
|
915
937
|
const results = await handler.install(item, tools, scope, method, process.cwd());
|
|
938
|
+
trackInstalls(item.slug, item.type, results, scope);
|
|
916
939
|
printInstallSummary(results);
|
|
917
940
|
outro2("Installation complete");
|
|
918
941
|
} catch (error2) {
|