@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
|
|
299
|
-
* `
|
|
300
|
-
*
|
|
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
|
|
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
|
|
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;;;;"}
|