@nospt/plugin-dev-ai-hub-common 0.3.0 → 0.3.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/dist/index.d.ts CHANGED
@@ -295,9 +295,9 @@ declare function getMarketplaceInstallTemplate(marketplaceName: string): string;
295
295
  declare function getMarketplaceTeamSnippet(marketplaceName: string, repoSlug: string): string;
296
296
 
297
297
  /**
298
- * Telemetry actions (ADR-0007). All four are stored raw; read-time dedup for
299
- * `view` is deferred (follow-up to #31) — `GET /telemetry/:ref` currently
300
- * returns raw counts for all four.
298
+ * Telemetry actions (ADR-0007). All four are stored raw and returned raw by
299
+ * `GET /telemetry/:ref` as lifetime totals. `view` is recorded when a user
300
+ * opens a resource, not when a card renders.
301
301
  */
302
302
  declare const TelemetryActionEnum: z.ZodEnum<["install", "copy", "download", "view"]>;
303
303
  type TelemetryAction = z.infer<typeof TelemetryActionEnum>;
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.cjs.js","sources":["../src/telemetry.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Telemetry actions (ADR-0007). All four are stored raw; read-time dedup for\n * `view` is deferred (follow-up to #31) — `GET /telemetry/:ref` currently\n * returns raw counts for all four.\n */\nexport const TelemetryActionEnum = z.enum([\n 'install',\n 'copy',\n 'download',\n 'view',\n]);\nexport type TelemetryAction = z.infer<typeof TelemetryActionEnum>;\n\nexport const TelemetryEventInputSchema = z.object({\n ref: z.string().min(1),\n action: TelemetryActionEnum,\n tool: z.string().min(1).optional(),\n});\nexport type TelemetryEventInput = z.infer<typeof TelemetryEventInputSchema>;\n\n/** Raw per-action counts for one resource, as returned by `GET /telemetry/:ref`. */\nexport type TelemetryCounts = Record<TelemetryAction, number>;\n"],"names":["z"],"mappings":";;;;AAOO,MAAM,mBAAA,GAAsBA,MAAE,IAAA,CAAK;AAAA,EACxC,SAAA;AAAA,EACA,MAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAC;AAGM,MAAM,yBAAA,GAA4BA,MAAE,MAAA,CAAO;AAAA,EAChD,GAAA,EAAKA,KAAA,CAAE,MAAA,EAAO,CAAE,IAAI,CAAC,CAAA;AAAA,EACrB,MAAA,EAAQ,mBAAA;AAAA,EACR,MAAMA,KAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAC,EAAE,QAAA;AAC1B,CAAC;;;;;"}
1
+ {"version":3,"file":"telemetry.cjs.js","sources":["../src/telemetry.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Telemetry actions (ADR-0007). All four are stored raw and returned raw by\n * `GET /telemetry/:ref` as lifetime totals. `view` is recorded when a user\n * opens a resource, not when a card renders.\n */\nexport const TelemetryActionEnum = z.enum([\n 'install',\n 'copy',\n 'download',\n 'view',\n]);\nexport type TelemetryAction = z.infer<typeof TelemetryActionEnum>;\n\nexport const TelemetryEventInputSchema = z.object({\n ref: z.string().min(1),\n action: TelemetryActionEnum,\n tool: z.string().min(1).optional(),\n});\nexport type TelemetryEventInput = z.infer<typeof TelemetryEventInputSchema>;\n\n/** Raw per-action counts for one resource, as returned by `GET /telemetry/:ref`. */\nexport type TelemetryCounts = Record<TelemetryAction, number>;\n"],"names":["z"],"mappings":";;;;AAOO,MAAM,mBAAA,GAAsBA,MAAE,IAAA,CAAK;AAAA,EACxC,SAAA;AAAA,EACA,MAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAC;AAGM,MAAM,yBAAA,GAA4BA,MAAE,MAAA,CAAO;AAAA,EAChD,GAAA,EAAKA,KAAA,CAAE,MAAA,EAAO,CAAE,IAAI,CAAC,CAAA;AAAA,EACrB,MAAA,EAAQ,mBAAA;AAAA,EACR,MAAMA,KAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAC,EAAE,QAAA;AAC1B,CAAC;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.esm.js","sources":["../src/telemetry.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Telemetry actions (ADR-0007). All four are stored raw; read-time dedup for\n * `view` is deferred (follow-up to #31) — `GET /telemetry/:ref` currently\n * returns raw counts for all four.\n */\nexport const TelemetryActionEnum = z.enum([\n 'install',\n 'copy',\n 'download',\n 'view',\n]);\nexport type TelemetryAction = z.infer<typeof TelemetryActionEnum>;\n\nexport const TelemetryEventInputSchema = z.object({\n ref: z.string().min(1),\n action: TelemetryActionEnum,\n tool: z.string().min(1).optional(),\n});\nexport type TelemetryEventInput = z.infer<typeof TelemetryEventInputSchema>;\n\n/** Raw per-action counts for one resource, as returned by `GET /telemetry/:ref`. */\nexport type TelemetryCounts = Record<TelemetryAction, number>;\n"],"names":[],"mappings":";;AAOO,MAAM,mBAAA,GAAsB,EAAE,IAAA,CAAK;AAAA,EACxC,SAAA;AAAA,EACA,MAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAC;AAGM,MAAM,yBAAA,GAA4B,EAAE,MAAA,CAAO;AAAA,EAChD,GAAA,EAAK,CAAA,CAAE,MAAA,EAAO,CAAE,IAAI,CAAC,CAAA;AAAA,EACrB,MAAA,EAAQ,mBAAA;AAAA,EACR,MAAM,CAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAC,EAAE,QAAA;AAC1B,CAAC;;;;"}
1
+ {"version":3,"file":"telemetry.esm.js","sources":["../src/telemetry.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Telemetry actions (ADR-0007). All four are stored raw and returned raw by\n * `GET /telemetry/:ref` as lifetime totals. `view` is recorded when a user\n * opens a resource, not when a card renders.\n */\nexport const TelemetryActionEnum = z.enum([\n 'install',\n 'copy',\n 'download',\n 'view',\n]);\nexport type TelemetryAction = z.infer<typeof TelemetryActionEnum>;\n\nexport const TelemetryEventInputSchema = z.object({\n ref: z.string().min(1),\n action: TelemetryActionEnum,\n tool: z.string().min(1).optional(),\n});\nexport type TelemetryEventInput = z.infer<typeof TelemetryEventInputSchema>;\n\n/** Raw per-action counts for one resource, as returned by `GET /telemetry/:ref`. */\nexport type TelemetryCounts = Record<TelemetryAction, number>;\n"],"names":[],"mappings":";;AAOO,MAAM,mBAAA,GAAsB,EAAE,IAAA,CAAK;AAAA,EACxC,SAAA;AAAA,EACA,MAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAC;AAGM,MAAM,yBAAA,GAA4B,EAAE,MAAA,CAAO;AAAA,EAChD,GAAA,EAAK,CAAA,CAAE,MAAA,EAAO,CAAE,IAAI,CAAC,CAAA;AAAA,EACrB,MAAA,EAAQ,mBAAA;AAAA,EACR,MAAM,CAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAC,EAAE,QAAA;AAC1B,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nospt/plugin-dev-ai-hub-common",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Common types and schemas for Dev AI Hub",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.cjs.js",