@aidemd-mcp/telemetry-contract 0.0.0-stage → 1.0.0

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.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +193 -2
  3. package/chunk-WVGQ3VJI.js +404 -0
  4. package/guide.md +194 -0
  5. package/lib/openapi/buildPingPath/index.d.ts +10 -0
  6. package/lib/openapi/index.d.ts +8 -0
  7. package/lib/openapi/index.js +107 -0
  8. package/lib/openapi/toComponent/index.d.ts +11 -0
  9. package/lib/ping/classifyIssues/formatPath/index.d.ts +6 -0
  10. package/lib/ping/classifyIssues/index.d.ts +14 -0
  11. package/lib/ping/index.d.ts +15 -0
  12. package/lib/ping/index.js +94 -0
  13. package/lib/ping/readVersion/index.d.ts +17 -0
  14. package/openapi.json +1304 -0
  15. package/package.json +27 -5
  16. package/types/ping/answers/alreadyStored/index.d.ts +7 -0
  17. package/types/ping/answers/failed/index.d.ts +7 -0
  18. package/types/ping/answers/refused/index.d.ts +16 -0
  19. package/types/ping/answers/stored/index.d.ts +7 -0
  20. package/types/ping/buckets/phaseDuration/index.d.ts +24 -0
  21. package/types/ping/buckets/phasesPerSession/index.d.ts +24 -0
  22. package/types/ping/buckets/sessionLength/index.d.ts +24 -0
  23. package/types/ping/buckets/sessionsPerProject/index.d.ts +21 -0
  24. package/types/ping/buildCounts/index.d.ts +21 -0
  25. package/types/ping/count/index.d.ts +8 -0
  26. package/types/ping/examplePing/index.d.ts +8 -0
  27. package/types/ping/index.d.ts +43 -0
  28. package/types/ping/index.js +50 -0
  29. package/types/ping/knownVersions/index.d.ts +4 -0
  30. package/types/ping/listenerOrigin/index.d.ts +7 -0
  31. package/types/ping/lists/agents/index.d.ts +4 -0
  32. package/types/ping/lists/launches/index.d.ts +4 -0
  33. package/types/ping/lists/osNames/index.d.ts +4 -0
  34. package/types/ping/lists/phases/index.d.ts +4 -0
  35. package/types/ping/lists/qaVerdicts/index.d.ts +4 -0
  36. package/types/ping/lists/refusalReasons/index.d.ts +4 -0
  37. package/types/ping/lists/toolNames/index.d.ts +4 -0
  38. package/types/ping/maxPingBytes/index.d.ts +7 -0
  39. package/types/ping/openApiDocument/index.d.ts +16 -0
  40. package/types/ping/pingCheck/index.d.ts +23 -0
  41. package/types/ping/v2/envelope/index.d.ts +25 -0
  42. package/types/ping/v2/index.d.ts +169 -0
  43. package/types/ping/v2/projects/index.d.ts +16 -0
  44. package/types/ping/v2/usage/index.d.ts +144 -0
  45. package/types/ping/versions/index.d.ts +175 -0
package/package.json CHANGED
@@ -1,6 +1,28 @@
1
1
  {
2
- "name": "@aidemd-mcp/telemetry-contract",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@aidemd-mcp/telemetry-contract",
3
+ "version": "1.0.0",
4
+ "description": "The AIDEMD usage-ping format: schemas, check, OpenAPI description and the guide for building pings.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "exports": {
9
+ ".": {
10
+ "types": "./types/ping/index.d.ts",
11
+ "default": "./types/ping/index.js"
12
+ },
13
+ "./check": {
14
+ "types": "./lib/ping/index.d.ts",
15
+ "default": "./lib/ping/index.js"
16
+ },
17
+ "./openapi": {
18
+ "types": "./lib/openapi/index.d.ts",
19
+ "default": "./lib/openapi/index.js"
20
+ },
21
+ "./openapi.json": "./openapi.json",
22
+ "./guide.md": "./guide.md"
23
+ },
24
+ "files": ["types", "lib", "*.js", "openapi.json", "guide.md", "README.md", "LICENSE"],
25
+ "dependencies": {
26
+ "zod": "^4.6.7"
27
+ }
28
+ }
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ /** The 200 answer: the ping's install-day was already stored, so nothing was stored again. */
3
+ declare const alreadyStored: z.ZodObject<{
4
+ status: z.ZodLiteral<"already_stored">;
5
+ }, z.core.$strict>;
6
+ export type AlreadyStored = z.infer<typeof alreadyStored>;
7
+ export default alreadyStored;
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ /** The 503 answer (and 500 for a listener bug): the listener could not store the ping this time. */
3
+ declare const failed: z.ZodObject<{
4
+ status: z.ZodLiteral<"failed">;
5
+ }, z.core.$strict>;
6
+ export type Failed = z.infer<typeof failed>;
7
+ export default failed;
@@ -0,0 +1,16 @@
1
+ import { z } from "zod";
2
+ /** The 400 answer: the ping was refused whole and nothing from it was stored. */
3
+ declare const refused: z.ZodObject<{
4
+ status: z.ZodLiteral<"refused">;
5
+ reason: z.ZodEnum<{
6
+ unknown_version: "unknown_version";
7
+ missing_field: "missing_field";
8
+ extra_field: "extra_field";
9
+ bad_value: "bad_value";
10
+ unreadable: "unreadable";
11
+ too_large: "too_large";
12
+ }>;
13
+ message: z.ZodString;
14
+ }, z.core.$strict>;
15
+ export type Refused = z.infer<typeof refused>;
16
+ export default refused;
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ /** The 201 answer: the ping's install-day was stored by this request. */
3
+ declare const stored: z.ZodObject<{
4
+ status: z.ZodLiteral<"stored">;
5
+ }, z.core.$strict>;
6
+ export type Stored = z.infer<typeof stored>;
7
+ export default stored;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Edges for a finished phase run's duration, in minutes (start to finish).
3
+ *
4
+ * Lower bound inclusive; the upper bound is the next edge's `from`, exclusive;
5
+ * the last bucket has no upper bound.
6
+ */
7
+ declare const phaseDuration: readonly [{
8
+ readonly key: "<1m";
9
+ readonly from: 0;
10
+ }, {
11
+ readonly key: "1-5m";
12
+ readonly from: 1;
13
+ }, {
14
+ readonly key: "5-15m";
15
+ readonly from: 5;
16
+ }, {
17
+ readonly key: "15-60m";
18
+ readonly from: 15;
19
+ }, {
20
+ readonly key: "60m+";
21
+ readonly from: 60;
22
+ }];
23
+ export type PhaseDurationBucket = (typeof phaseDuration)[number]["key"];
24
+ export default phaseDuration;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Edges for how many phase starts a counted session recorded, in phase starts.
3
+ *
4
+ * Lower bound inclusive; the upper bound is the next edge's `from`, exclusive;
5
+ * the last bucket has no upper bound.
6
+ */
7
+ declare const phasesPerSession: readonly [{
8
+ readonly key: "0";
9
+ readonly from: 0;
10
+ }, {
11
+ readonly key: "1-2";
12
+ readonly from: 1;
13
+ }, {
14
+ readonly key: "3-5";
15
+ readonly from: 3;
16
+ }, {
17
+ readonly key: "6-10";
18
+ readonly from: 6;
19
+ }, {
20
+ readonly key: "11+";
21
+ readonly from: 11;
22
+ }];
23
+ export type PhasesPerSessionBucket = (typeof phasesPerSession)[number]["key"];
24
+ export default phasesPerSession;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Edges for a counted session's length, in minutes (first recorded event to last).
3
+ *
4
+ * Lower bound inclusive; the upper bound is the next edge's `from`, exclusive;
5
+ * the last bucket has no upper bound.
6
+ */
7
+ declare const sessionLength: readonly [{
8
+ readonly key: "<5m";
9
+ readonly from: 0;
10
+ }, {
11
+ readonly key: "5-15m";
12
+ readonly from: 5;
13
+ }, {
14
+ readonly key: "15-60m";
15
+ readonly from: 15;
16
+ }, {
17
+ readonly key: "1-3h";
18
+ readonly from: 60;
19
+ }, {
20
+ readonly key: "3h+";
21
+ readonly from: 180;
22
+ }];
23
+ export type SessionLengthBucket = (typeof sessionLength)[number]["key"];
24
+ export default sessionLength;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Edges for how many counted sessions a project had, in sessions.
3
+ *
4
+ * Lower bound inclusive; the upper bound is the next edge's `from`, exclusive;
5
+ * the last bucket has no upper bound.
6
+ */
7
+ declare const sessionsPerProject: readonly [{
8
+ readonly key: "1";
9
+ readonly from: 1;
10
+ }, {
11
+ readonly key: "2-3";
12
+ readonly from: 2;
13
+ }, {
14
+ readonly key: "4-10";
15
+ readonly from: 4;
16
+ }, {
17
+ readonly key: "11+";
18
+ readonly from: 11;
19
+ }];
20
+ export type SessionsPerProjectBucket = (typeof sessionsPerProject)[number]["key"];
21
+ export default sessionsPerProject;
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ import count from "../count/index.js";
3
+ type BuildCountsInput<Keys extends readonly string[]> = {
4
+ /** The map's keys; every one is required. */
5
+ keys: Keys;
6
+ /** The description of the whole map. */
7
+ description: string;
8
+ /** Gives each key's description. */
9
+ describeKey: (key: Keys[number]) => string;
10
+ };
11
+ type CountsShape<Keys extends readonly string[]> = {
12
+ [Key in Keys[number]]: typeof count;
13
+ };
14
+ /**
15
+ * Builds a strict object with one described count per key. Every key is
16
+ * required (a missing key is refused, never defaulted to 0) and no other key
17
+ * is accepted. The literal keys survive, so z.infer yields a
18
+ * Record<Key, number>-shaped object.
19
+ */
20
+ export default function buildCounts<const Keys extends readonly string[]>({ keys, description, describeKey, }: BuildCountsInput<Keys>): z.ZodObject<CountsShape<Keys>, z.core.$strict>;
21
+ export {};
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * The schema of one count in a ping: a JSON number that is a whole number,
4
+ * at least 0 and at most Number.MAX_SAFE_INTEGER. No coercion, no default:
5
+ * a value that parses comes back unchanged.
6
+ */
7
+ declare const count: z.ZodNumber;
8
+ export default count;
@@ -0,0 +1,8 @@
1
+ import type { PingV2 } from "../v2/index.js";
2
+ /**
3
+ * The published example of a version 2 ping: used as the OpenAPI request
4
+ * example and as the base of test factories. It is illustrative, not real
5
+ * data.
6
+ */
7
+ declare const examplePing: PingV2;
8
+ export default examplePing;
@@ -0,0 +1,43 @@
1
+ import alreadyStored from "./answers/alreadyStored/index.js";
2
+ import failed from "./answers/failed/index.js";
3
+ import refused from "./answers/refused/index.js";
4
+ import stored from "./answers/stored/index.js";
5
+ import phaseDuration from "./buckets/phaseDuration/index.js";
6
+ import phasesPerSession from "./buckets/phasesPerSession/index.js";
7
+ import sessionLength from "./buckets/sessionLength/index.js";
8
+ import sessionsPerProject from "./buckets/sessionsPerProject/index.js";
9
+ import buildCounts from "./buildCounts/index.js";
10
+ import count from "./count/index.js";
11
+ import examplePing from "./examplePing/index.js";
12
+ import knownVersions from "./knownVersions/index.js";
13
+ import listenerOrigin from "./listenerOrigin/index.js";
14
+ import agents from "./lists/agents/index.js";
15
+ import launches from "./lists/launches/index.js";
16
+ import osNames from "./lists/osNames/index.js";
17
+ import phases from "./lists/phases/index.js";
18
+ import qaVerdicts from "./lists/qaVerdicts/index.js";
19
+ import refusalReasons from "./lists/refusalReasons/index.js";
20
+ import toolNames from "./lists/toolNames/index.js";
21
+ import maxPingBytes from "./maxPingBytes/index.js";
22
+ import v2 from "./v2/index.js";
23
+ import versions from "./versions/index.js";
24
+ export type { AlreadyStored } from "./answers/alreadyStored/index.js";
25
+ export type { Failed } from "./answers/failed/index.js";
26
+ export type { Refused } from "./answers/refused/index.js";
27
+ export type { Stored } from "./answers/stored/index.js";
28
+ export type { PhaseDurationBucket } from "./buckets/phaseDuration/index.js";
29
+ export type { PhasesPerSessionBucket } from "./buckets/phasesPerSession/index.js";
30
+ export type { SessionLengthBucket } from "./buckets/sessionLength/index.js";
31
+ export type { SessionsPerProjectBucket } from "./buckets/sessionsPerProject/index.js";
32
+ export type { Agent } from "./lists/agents/index.js";
33
+ export type { Launch } from "./lists/launches/index.js";
34
+ export type { OsName } from "./lists/osNames/index.js";
35
+ export type { Phase } from "./lists/phases/index.js";
36
+ export type { QaVerdict } from "./lists/qaVerdicts/index.js";
37
+ export type { RefusalReason } from "./lists/refusalReasons/index.js";
38
+ export type { ToolName } from "./lists/toolNames/index.js";
39
+ export type { OpenApiDocument } from "./openApiDocument/index.js";
40
+ export type { CheckReason, PingCheck, PingRefusal } from "./pingCheck/index.js";
41
+ export type { PingV2 } from "./v2/index.js";
42
+ export type { KnownVersion, Ping } from "./versions/index.js";
43
+ export { agents, alreadyStored, buildCounts, count, examplePing, failed, knownVersions, launches, listenerOrigin, maxPingBytes, osNames, phaseDuration, phases, phasesPerSession, qaVerdicts, refusalReasons, refused, sessionLength, sessionsPerProject, stored, toolNames, v2, versions, };
@@ -0,0 +1,50 @@
1
+ import {
2
+ agents_default,
3
+ alreadyStored_default,
4
+ buildCounts,
5
+ count_default,
6
+ examplePing_default,
7
+ failed_default,
8
+ knownVersions_default,
9
+ launches_default,
10
+ listenerOrigin_default,
11
+ maxPingBytes_default,
12
+ osNames_default,
13
+ phaseDuration_default,
14
+ phasesPerSession_default,
15
+ phases_default,
16
+ qaVerdicts_default,
17
+ refusalReasons_default,
18
+ refused_default,
19
+ sessionLength_default,
20
+ sessionsPerProject_default,
21
+ stored_default,
22
+ toolNames_default,
23
+ v2_default,
24
+ versions_default
25
+ } from "../../chunk-WVGQ3VJI.js";
26
+ export {
27
+ agents_default as agents,
28
+ alreadyStored_default as alreadyStored,
29
+ buildCounts,
30
+ count_default as count,
31
+ examplePing_default as examplePing,
32
+ failed_default as failed,
33
+ knownVersions_default as knownVersions,
34
+ launches_default as launches,
35
+ listenerOrigin_default as listenerOrigin,
36
+ maxPingBytes_default as maxPingBytes,
37
+ osNames_default as osNames,
38
+ phaseDuration_default as phaseDuration,
39
+ phases_default as phases,
40
+ phasesPerSession_default as phasesPerSession,
41
+ qaVerdicts_default as qaVerdicts,
42
+ refusalReasons_default as refusalReasons,
43
+ refused_default as refused,
44
+ sessionLength_default as sessionLength,
45
+ sessionsPerProject_default as sessionsPerProject,
46
+ stored_default as stored,
47
+ toolNames_default as toolNames,
48
+ v2_default as v2,
49
+ versions_default as versions
50
+ };
@@ -0,0 +1,4 @@
1
+ import type { KnownVersion } from "../versions/index.js";
2
+ /** The known ping format versions as numbers, ascending, derived from `versions`. */
3
+ declare const knownVersions: readonly KnownVersion[];
4
+ export default knownVersions;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The address the listener is served from (session decision #19). Used by
3
+ * src/lib/openapi for the document's `servers` entry, by the consumer guide,
4
+ * and by senders: the full ping address is this origin plus `/ping`.
5
+ */
6
+ declare const listenerOrigin = "https://telemetry.aidemd.dev";
7
+ export default listenerOrigin;
@@ -0,0 +1,4 @@
1
+ /** The agents a server process can be started for, as aidemd-mcp's telemetry types name them. The client's own name is never sent; anything else is `other`. */
2
+ declare const agents: readonly ["claude-code", "cursor", "other"];
3
+ export type Agent = (typeof agents)[number];
4
+ export default agents;
@@ -0,0 +1,4 @@
1
+ /** How AIDEMD was started: an npx run, a global install, or anything else (a project-local install or a source checkout). */
2
+ declare const launches: readonly ["global", "npx", "other"];
3
+ export type Launch = (typeof launches)[number];
4
+ export default launches;
@@ -0,0 +1,4 @@
1
+ /** The operating system families a ping reports: Node's process.platform when it is one of the three, otherwise `other`. */
2
+ declare const osNames: readonly ["win32", "darwin", "linux", "other"];
3
+ export type OsName = (typeof osNames)[number];
4
+ export default osNames;
@@ -0,0 +1,4 @@
1
+ /** The pipeline phase names a ping counts, in pipeline order. Mirrors the phase enum of aidemd-mcp's event schema; a phase not listed here is never counted. */
2
+ declare const phases: readonly ["spec", "research", "synthesize", "structure", "plan", "build", "qa", "fix", "align", "refactor", "cleanup"];
3
+ export type Phase = (typeof phases)[number];
4
+ export default phases;
@@ -0,0 +1,4 @@
1
+ /** The results a recorded QA run can have: it passed, or issues were found. */
2
+ declare const qaVerdicts: readonly ["passed", "issues"];
3
+ export type QaVerdict = (typeof qaVerdicts)[number];
4
+ export default qaVerdicts;
@@ -0,0 +1,4 @@
1
+ /** The reasons the listener refuses a ping whole, in lower snake case. The same words appear in the check's result, the 400 body, the log line and the OpenAPI enum. */
2
+ declare const refusalReasons: readonly ["unknown_version", "missing_field", "extra_field", "bad_value", "unreadable", "too_large"];
3
+ export type RefusalReason = (typeof refusalReasons)[number];
4
+ export default refusalReasons;
@@ -0,0 +1,4 @@
1
+ /** The AIDE tool names a ping counts calls to, in aidemd-mcp's order (its src/util/toolNames). A call to any other name is folded into `unknown`, which is not in this list. */
2
+ declare const toolNames: readonly ["aide_discover", "aide_read", "aide_scaffold", "aide_cleanup", "aide_move", "aide_discard", "aide_frontmatter", "aide_validate", "aide_upgrade", "aide_info", "aide_brain", "aide_init", "aide_inspect", "aide_orchestration_begin", "aide_session_event", "aide_session_end"];
3
+ export type ToolName = (typeof toolNames)[number];
4
+ export default toolNames;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The largest request body, in bytes, the listener reads: 64 KiB. A body over
3
+ * it is refused with `too_large`. Used by src/api to enforce the limit, by
4
+ * src/lib/openapi to document it, and by senders to keep a ping under it.
5
+ */
6
+ declare const maxPingBytes = 65536;
7
+ export default maxPingBytes;
@@ -0,0 +1,16 @@
1
+ /** The OpenAPI 3.1 document src/lib/openapi builds and src/api serves. */
2
+ export type OpenApiDocument = {
3
+ openapi: "3.1.0";
4
+ info: {
5
+ title: string;
6
+ version: string;
7
+ description: string;
8
+ };
9
+ servers: {
10
+ url: string;
11
+ }[];
12
+ paths: Record<string, Record<string, unknown>>;
13
+ components: {
14
+ schemas: Record<string, Record<string, unknown>>;
15
+ };
16
+ };
@@ -0,0 +1,23 @@
1
+ import type { RefusalReason } from "../lists/refusalReasons/index.js";
2
+ import type { Ping } from "../versions/index.js";
3
+ /** The refusal reasons a check can give; `unreadable` and `too_large` belong to the body stage, before the check. */
4
+ export type CheckReason = Extract<RefusalReason, "unknown_version" | "missing_field" | "extra_field" | "bad_value">;
5
+ /**
6
+ * Why the check refused a ping. `fields` are dot-joined paths (for example
7
+ * `phaseDurations.build.<1m`), at most 10, each at most 100 characters; `message`
8
+ * never contains a received value. Both may contain key names the sender chose,
9
+ * so consumers that log a refusal log only `code`.
10
+ */
11
+ export type PingRefusal = {
12
+ code: CheckReason;
13
+ message: string;
14
+ fields: string[];
15
+ };
16
+ /** The check's result: the ping, unchanged, or the refusal. Same shape as the playbook's `Result`. */
17
+ export type PingCheck = {
18
+ data: Ping;
19
+ error?: never;
20
+ } | {
21
+ data?: never;
22
+ error: PingRefusal;
23
+ };
@@ -0,0 +1,25 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * The version 2 envelope: who sent the ping, for which day, and what it ran
4
+ * on. A plain object of schemas (a shape), spread into the version's strict
5
+ * object. Every field is required.
6
+ */
7
+ declare const envelope: {
8
+ schema: z.ZodLiteral<2>;
9
+ installId: z.ZodUUID;
10
+ day: z.ZodISODate;
11
+ aidemdVersion: z.ZodString;
12
+ launch: z.ZodEnum<{
13
+ global: "global";
14
+ npx: "npx";
15
+ other: "other";
16
+ }>;
17
+ os: z.ZodEnum<{
18
+ other: "other";
19
+ win32: "win32";
20
+ darwin: "darwin";
21
+ linux: "linux";
22
+ }>;
23
+ node: z.ZodNumber;
24
+ };
25
+ export default envelope;
@@ -0,0 +1,169 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Version 2 of the ping format: aidemd-mcp's schema 1 fields plus `projects`
4
+ * and `sessionsPerProject`. One strict object, every field required, no
5
+ * defaults, coercions or refinements: a value that parses comes back
6
+ * deep-equal to the input.
7
+ */
8
+ declare const v2: z.ZodObject<{
9
+ projects: z.ZodNumber;
10
+ sessionsPerProject: z.ZodObject<{
11
+ "11+": z.ZodNumber;
12
+ 1: z.ZodNumber;
13
+ "2-3": z.ZodNumber;
14
+ "4-10": z.ZodNumber;
15
+ }, z.core.$strict>;
16
+ sessions: z.ZodNumber;
17
+ phases: z.ZodObject<{
18
+ spec: z.ZodNumber;
19
+ research: z.ZodNumber;
20
+ synthesize: z.ZodNumber;
21
+ structure: z.ZodNumber;
22
+ plan: z.ZodNumber;
23
+ build: z.ZodNumber;
24
+ qa: z.ZodNumber;
25
+ fix: z.ZodNumber;
26
+ align: z.ZodNumber;
27
+ refactor: z.ZodNumber;
28
+ cleanup: z.ZodNumber;
29
+ }, z.core.$strict>;
30
+ qa: z.ZodObject<{
31
+ passed: z.ZodNumber;
32
+ issues: z.ZodNumber;
33
+ }, z.core.$strict>;
34
+ toolCalls: z.ZodObject<{
35
+ unknown: z.ZodNumber;
36
+ aide_discover: z.ZodNumber;
37
+ aide_read: z.ZodNumber;
38
+ aide_scaffold: z.ZodNumber;
39
+ aide_cleanup: z.ZodNumber;
40
+ aide_move: z.ZodNumber;
41
+ aide_discard: z.ZodNumber;
42
+ aide_frontmatter: z.ZodNumber;
43
+ aide_validate: z.ZodNumber;
44
+ aide_upgrade: z.ZodNumber;
45
+ aide_info: z.ZodNumber;
46
+ aide_brain: z.ZodNumber;
47
+ aide_init: z.ZodNumber;
48
+ aide_inspect: z.ZodNumber;
49
+ aide_orchestration_begin: z.ZodNumber;
50
+ aide_session_event: z.ZodNumber;
51
+ aide_session_end: z.ZodNumber;
52
+ }, z.core.$strict>;
53
+ agents: z.ZodObject<{
54
+ other: z.ZodNumber;
55
+ "claude-code": z.ZodNumber;
56
+ cursor: z.ZodNumber;
57
+ }, z.core.$strict>;
58
+ sessionLength: z.ZodObject<{
59
+ "5-15m": z.ZodNumber;
60
+ "15-60m": z.ZodNumber;
61
+ "<5m": z.ZodNumber;
62
+ "1-3h": z.ZodNumber;
63
+ "3h+": z.ZodNumber;
64
+ }, z.core.$strict>;
65
+ phasesPerSession: z.ZodObject<{
66
+ 0: z.ZodNumber;
67
+ "1-2": z.ZodNumber;
68
+ "3-5": z.ZodNumber;
69
+ "6-10": z.ZodNumber;
70
+ "11+": z.ZodNumber;
71
+ }, z.core.$strict>;
72
+ phaseDurations: z.ZodObject<{
73
+ spec: z.ZodObject<{
74
+ "<1m": z.ZodNumber;
75
+ "1-5m": z.ZodNumber;
76
+ "5-15m": z.ZodNumber;
77
+ "15-60m": z.ZodNumber;
78
+ "60m+": z.ZodNumber;
79
+ }, z.core.$strict>;
80
+ research: z.ZodObject<{
81
+ "<1m": z.ZodNumber;
82
+ "1-5m": z.ZodNumber;
83
+ "5-15m": z.ZodNumber;
84
+ "15-60m": z.ZodNumber;
85
+ "60m+": z.ZodNumber;
86
+ }, z.core.$strict>;
87
+ synthesize: z.ZodObject<{
88
+ "<1m": z.ZodNumber;
89
+ "1-5m": z.ZodNumber;
90
+ "5-15m": z.ZodNumber;
91
+ "15-60m": z.ZodNumber;
92
+ "60m+": z.ZodNumber;
93
+ }, z.core.$strict>;
94
+ structure: z.ZodObject<{
95
+ "<1m": z.ZodNumber;
96
+ "1-5m": z.ZodNumber;
97
+ "5-15m": z.ZodNumber;
98
+ "15-60m": z.ZodNumber;
99
+ "60m+": z.ZodNumber;
100
+ }, z.core.$strict>;
101
+ plan: z.ZodObject<{
102
+ "<1m": z.ZodNumber;
103
+ "1-5m": z.ZodNumber;
104
+ "5-15m": z.ZodNumber;
105
+ "15-60m": z.ZodNumber;
106
+ "60m+": z.ZodNumber;
107
+ }, z.core.$strict>;
108
+ build: z.ZodObject<{
109
+ "<1m": z.ZodNumber;
110
+ "1-5m": z.ZodNumber;
111
+ "5-15m": z.ZodNumber;
112
+ "15-60m": z.ZodNumber;
113
+ "60m+": z.ZodNumber;
114
+ }, z.core.$strict>;
115
+ qa: z.ZodObject<{
116
+ "<1m": z.ZodNumber;
117
+ "1-5m": z.ZodNumber;
118
+ "5-15m": z.ZodNumber;
119
+ "15-60m": z.ZodNumber;
120
+ "60m+": z.ZodNumber;
121
+ }, z.core.$strict>;
122
+ fix: z.ZodObject<{
123
+ "<1m": z.ZodNumber;
124
+ "1-5m": z.ZodNumber;
125
+ "5-15m": z.ZodNumber;
126
+ "15-60m": z.ZodNumber;
127
+ "60m+": z.ZodNumber;
128
+ }, z.core.$strict>;
129
+ align: z.ZodObject<{
130
+ "<1m": z.ZodNumber;
131
+ "1-5m": z.ZodNumber;
132
+ "5-15m": z.ZodNumber;
133
+ "15-60m": z.ZodNumber;
134
+ "60m+": z.ZodNumber;
135
+ }, z.core.$strict>;
136
+ refactor: z.ZodObject<{
137
+ "<1m": z.ZodNumber;
138
+ "1-5m": z.ZodNumber;
139
+ "5-15m": z.ZodNumber;
140
+ "15-60m": z.ZodNumber;
141
+ "60m+": z.ZodNumber;
142
+ }, z.core.$strict>;
143
+ cleanup: z.ZodObject<{
144
+ "<1m": z.ZodNumber;
145
+ "1-5m": z.ZodNumber;
146
+ "5-15m": z.ZodNumber;
147
+ "15-60m": z.ZodNumber;
148
+ "60m+": z.ZodNumber;
149
+ }, z.core.$strict>;
150
+ }, z.core.$strict>;
151
+ schema: z.ZodLiteral<2>;
152
+ installId: z.ZodUUID;
153
+ day: z.ZodISODate;
154
+ aidemdVersion: z.ZodString;
155
+ launch: z.ZodEnum<{
156
+ global: "global";
157
+ npx: "npx";
158
+ other: "other";
159
+ }>;
160
+ os: z.ZodEnum<{
161
+ other: "other";
162
+ win32: "win32";
163
+ darwin: "darwin";
164
+ linux: "linux";
165
+ }>;
166
+ node: z.ZodNumber;
167
+ }, z.core.$strict>;
168
+ export type PingV2 = z.infer<typeof v2>;
169
+ export default v2;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The version 2 project counts: how many distinct projects had a counted
3
+ * session, and how those projects spread over session-count buckets. Only
4
+ * numbers; nothing here can name a project. A plain object of schemas (a
5
+ * shape), spread into the version's strict object.
6
+ */
7
+ declare const projects: {
8
+ projects: import("zod").ZodNumber;
9
+ sessionsPerProject: import("zod").ZodObject<{
10
+ "11+": import("zod").ZodNumber;
11
+ 1: import("zod").ZodNumber;
12
+ "2-3": import("zod").ZodNumber;
13
+ "4-10": import("zod").ZodNumber;
14
+ }, import("zod/v4/core").$strict>;
15
+ };
16
+ export default projects;