skillrepo 1.10.0 → 1.10.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillrepo",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Set up SkillRepo in any IDE — one command",
5
5
  "type": "module",
6
6
  "bin": {
@@ -277,7 +277,7 @@ export function buildActivationPayload(matches, sessionInfo) {
277
277
  sessionHash: sessionInfo.sessionHash,
278
278
  userId: sessionInfo.userId || undefined,
279
279
  source: "rules_match",
280
- toolPattern: null,
280
+ toolPattern: undefined,
281
281
  }));
282
282
 
283
283
  return { events };
@@ -363,7 +363,7 @@ describe("buildActivationPayload", () => {
363
363
  assert.equal(event.sessionHash, "abc123");
364
364
  assert.equal(event.userId, "user-42");
365
365
  assert.equal(event.source, "rules_match");
366
- assert.equal(event.toolPattern, null);
366
+ assert.equal(event.toolPattern, undefined);
367
367
  assert.ok(event.activatedAt); // ISO 8601 string
368
368
  });
369
369
 
@@ -390,7 +390,7 @@ describe("buildActivationPayload", () => {
390
390
  assert.equal(event.skillVersion, "");
391
391
  assert.equal(event.userId, undefined); // null → undefined via || operator
392
392
  assert.equal(event.source, "rules_match");
393
- assert.equal(event.toolPattern, null);
393
+ assert.equal(event.toolPattern, undefined);
394
394
  });
395
395
  });
396
396
 
@@ -401,7 +401,7 @@ describe("buildActivationPayload", () => {
401
401
  describe("sendActivationTelemetry", () => {
402
402
  it("does not throw on network failure", async () => {
403
403
  const config = { apiKey: "sk_live_test", serverUrl: "http://127.0.0.1:1" };
404
- const payload = { events: [{ skillOwner: "o", skillName: "s", activatedAt: new Date().toISOString(), ide: "test", sessionHash: "x", source: "rules_match", toolPattern: null }] };
404
+ const payload = { events: [{ skillOwner: "o", skillName: "s", activatedAt: new Date().toISOString(), ide: "test", sessionHash: "x", source: "rules_match" }] };
405
405
 
406
406
  // Should resolve without throwing
407
407
  await sendActivationTelemetry(config, payload);