@reticlehq/core 2.2.0 → 2.2.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
@@ -24,4 +24,5 @@ export * from './redaction.js';
24
24
  export * from './state-select.js';
25
25
  export * from './toon.js';
26
26
  export * from './upgrade.js';
27
+ export * from './telemetry.js';
27
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAG7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAG7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -26,4 +26,5 @@ export * from './redaction.js'; // isSensitiveKey / scrubKnownSecrets — the sh
26
26
  export * from './state-select.js'; // selectPath / capDepth — shared by browser SDK + server fallback
27
27
  export * from './toon.js'; // TOON encoding used by the server's result encoder
28
28
  export * from './upgrade.js'; // self-update policy shared by the CLI
29
+ export * from './telemetry.js'; // anonymous adoption telemetry wire contract (DAU/WAU/MAU/installs)
29
30
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oGAAoG;AACpG,cAAc,gBAAgB,CAAC,CAAC,6DAA6D;AAC7F,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC,CAAC,qCAAqC;AACpE,cAAc,qBAAqB,CAAC,CAAC,yCAAyC;AAC9E,cAAc,iBAAiB,CAAC,CAAC,2DAA2D;AAC5F,cAAc,uBAAuB,CAAC,CAAC,wCAAwC;AAC/E,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC,CAAC,8CAA8C;AAC1E,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAE7B,uGAAuG;AACvG,cAAc,sBAAsB,CAAC,CAAC,qDAAqD;AAC3F,cAAc,eAAe,CAAC,CAAC,wDAAwD;AACvF,cAAc,gBAAgB,CAAC,CAAC,kEAAkE;AAClG,cAAc,mBAAmB,CAAC,CAAC,kEAAkE;AACrG,cAAc,WAAW,CAAC,CAAC,oDAAoD;AAC/E,cAAc,cAAc,CAAC,CAAC,uCAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oGAAoG;AACpG,cAAc,gBAAgB,CAAC,CAAC,6DAA6D;AAC7F,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC,CAAC,qCAAqC;AACpE,cAAc,qBAAqB,CAAC,CAAC,yCAAyC;AAC9E,cAAc,iBAAiB,CAAC,CAAC,2DAA2D;AAC5F,cAAc,uBAAuB,CAAC,CAAC,wCAAwC;AAC/E,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC,CAAC,8CAA8C;AAC1E,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAE7B,uGAAuG;AACvG,cAAc,sBAAsB,CAAC,CAAC,qDAAqD;AAC3F,cAAc,eAAe,CAAC,CAAC,wDAAwD;AACvF,cAAc,gBAAgB,CAAC,CAAC,kEAAkE;AAClG,cAAc,mBAAmB,CAAC,CAAC,kEAAkE;AACrG,cAAc,WAAW,CAAC,CAAC,oDAAoD;AAC/E,cAAc,cAAc,CAAC,CAAC,uCAAuC;AACrE,cAAc,gBAAgB,CAAC,CAAC,oEAAoE"}
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Anonymous product telemetry — the contract for how the OSS `reticle` runtime reports ADOPTION
3
+ * (not verification results): is it installed, how often is it invoked, which tools get used, how many
4
+ * distinct machines/projects run it. This is what turns "npm downloads" (which an investor discounts)
5
+ * into DAU/WAU/MAU, active sessions, and retention. Uninstall/churn is deliberately NOT an event —
6
+ * npm 7+/pnpm run no uninstall lifecycle scripts, so churn is inferred server-side from inactivity.
7
+ *
8
+ * Privacy is structural, not a policy: the ONLY identifiers on the wire are a random per-machine UUID
9
+ * (`anonymousId`, minted locally, never derived from anything personal) and a one-way HASH of the
10
+ * project (`projectId`) — no repo name, no path, no email, no code. It is strictly opt-OUT (respects
11
+ * `RETICLE_TELEMETRY=0` and the `DO_NOT_TRACK` convention) and best-effort (a failed send never touches
12
+ * the tool's behaviour). Same conventions as the rest of core: enums are `as const` narrowed with
13
+ * `z.nativeEnum`, timestamps are epoch-ms NUMBERS, no `any`.
14
+ */
15
+ import { z } from 'zod';
16
+ /** Bump when the event shape changes so the analytics side can segment old senders. */
17
+ export declare const TELEMETRY_EVENT_VERSION = 1;
18
+ /** The lifecycle moments that answer the adoption questions. One event = one moment. */
19
+ export declare const TelemetryEventKind: {
20
+ /** First-ever run on this machine (or a fresh `npm install`) — powers install count + new-user curve. */
21
+ readonly INSTALL: "install";
22
+ /** The CLI/MCP server was invoked — the raw "how many times it gets used" counter. */
23
+ readonly INVOKE: "invoke";
24
+ /** A daemon/MCP session came up — the numerator of "active sessions" + DAU/WAU/MAU. */
25
+ readonly SESSION_START: "session_start";
26
+ /** A session ended (carries its duration) — powers active-session-length + churn-within-session. */
27
+ readonly SESSION_END: "session_end";
28
+ /** One MCP tool call (carries the tool name) — powers "which tool is mostly used". */
29
+ readonly TOOL: "tool";
30
+ };
31
+ export type TelemetryEventKind = (typeof TelemetryEventKind)[keyof typeof TelemetryEventKind];
32
+ /**
33
+ * One anonymous telemetry event. `anonymousId` and the optional hashed `projectId` are the only
34
+ * identifiers; everything else is a low-cardinality dimension for slicing the adoption metrics.
35
+ */
36
+ export declare const TelemetryEventSchema: z.ZodObject<{
37
+ v: z.ZodLiteral<1>;
38
+ /** Random UUID persisted at `~/.reticle/telemetry-id`. Distinct-count of this = users (DAU/WAU/MAU). */
39
+ anonymousId: z.ZodString;
40
+ /** One-way hash of the git remote (or cwd) — counts DISTINCT PROJECTS without revealing any of them. */
41
+ projectId: z.ZodOptional<z.ZodString>;
42
+ event: z.ZodNativeEnum<{
43
+ /** First-ever run on this machine (or a fresh `npm install`) — powers install count + new-user curve. */
44
+ readonly INSTALL: "install";
45
+ /** The CLI/MCP server was invoked — the raw "how many times it gets used" counter. */
46
+ readonly INVOKE: "invoke";
47
+ /** A daemon/MCP session came up — the numerator of "active sessions" + DAU/WAU/MAU. */
48
+ readonly SESSION_START: "session_start";
49
+ /** A session ended (carries its duration) — powers active-session-length + churn-within-session. */
50
+ readonly SESSION_END: "session_end";
51
+ /** One MCP tool call (carries the tool name) — powers "which tool is mostly used". */
52
+ readonly TOOL: "tool";
53
+ }>;
54
+ /** Client epoch-ms when the event happened (the server also stamps its own receive time). */
55
+ ts: z.ZodNumber;
56
+ /** Reticle version emitting the event — lets us see adoption of new releases + version spread. */
57
+ version: z.ZodString;
58
+ /** Runs inside CI? Separates real human DAU from pipeline traffic (both matter, differently). */
59
+ ci: z.ZodBoolean;
60
+ /** `process.platform` (darwin/linux/win32) — OS mix, low cardinality, non-identifying. */
61
+ os: z.ZodString;
62
+ /** Only on `session_end`: how long the session was active, in ms. */
63
+ sessionMs: z.ZodOptional<z.ZodNumber>;
64
+ /** Only on `tool`: the MCP tool name invoked (e.g. `reticle_act`). Low cardinality by construction. */
65
+ tool: z.ZodOptional<z.ZodString>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ event: "tool" | "install" | "invoke" | "session_start" | "session_end";
68
+ version: string;
69
+ ci: boolean;
70
+ v: 1;
71
+ anonymousId: string;
72
+ ts: number;
73
+ os: string;
74
+ projectId?: string | undefined;
75
+ tool?: string | undefined;
76
+ sessionMs?: number | undefined;
77
+ }, {
78
+ event: "tool" | "install" | "invoke" | "session_start" | "session_end";
79
+ version: string;
80
+ ci: boolean;
81
+ v: 1;
82
+ anonymousId: string;
83
+ ts: number;
84
+ os: string;
85
+ projectId?: string | undefined;
86
+ tool?: string | undefined;
87
+ sessionMs?: number | undefined;
88
+ }>;
89
+ export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;
90
+ //# sourceMappingURL=telemetry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,wFAAwF;AACxF,eAAO,MAAM,kBAAkB;IAC7B,yGAAyG;;IAEzG,sFAAsF;;IAEtF,uFAAuF;;IAEvF,oGAAoG;;IAEpG,sFAAsF;;CAE9E,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;IAE/B,wGAAwG;;IAExG,wGAAwG;;;QArBxG,yGAAyG;;QAEzG,sFAAsF;;QAEtF,uFAAuF;;QAEvF,oGAAoG;;QAEpG,sFAAsF;;;IAgBtF,6FAA6F;;IAE7F,kGAAkG;;IAElG,iGAAiG;;IAEjG,0FAA0F;;IAE1F,qEAAqE;;IAErE,uGAAuG;;;;;;;;;;;;;;;;;;;;;;;;EAEvG,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Anonymous product telemetry — the contract for how the OSS `reticle` runtime reports ADOPTION
3
+ * (not verification results): is it installed, how often is it invoked, which tools get used, how many
4
+ * distinct machines/projects run it. This is what turns "npm downloads" (which an investor discounts)
5
+ * into DAU/WAU/MAU, active sessions, and retention. Uninstall/churn is deliberately NOT an event —
6
+ * npm 7+/pnpm run no uninstall lifecycle scripts, so churn is inferred server-side from inactivity.
7
+ *
8
+ * Privacy is structural, not a policy: the ONLY identifiers on the wire are a random per-machine UUID
9
+ * (`anonymousId`, minted locally, never derived from anything personal) and a one-way HASH of the
10
+ * project (`projectId`) — no repo name, no path, no email, no code. It is strictly opt-OUT (respects
11
+ * `RETICLE_TELEMETRY=0` and the `DO_NOT_TRACK` convention) and best-effort (a failed send never touches
12
+ * the tool's behaviour). Same conventions as the rest of core: enums are `as const` narrowed with
13
+ * `z.nativeEnum`, timestamps are epoch-ms NUMBERS, no `any`.
14
+ */
15
+ import { z } from 'zod';
16
+ /** Bump when the event shape changes so the analytics side can segment old senders. */
17
+ export const TELEMETRY_EVENT_VERSION = 1;
18
+ /** The lifecycle moments that answer the adoption questions. One event = one moment. */
19
+ export const TelemetryEventKind = {
20
+ /** First-ever run on this machine (or a fresh `npm install`) — powers install count + new-user curve. */
21
+ INSTALL: 'install',
22
+ /** The CLI/MCP server was invoked — the raw "how many times it gets used" counter. */
23
+ INVOKE: 'invoke',
24
+ /** A daemon/MCP session came up — the numerator of "active sessions" + DAU/WAU/MAU. */
25
+ SESSION_START: 'session_start',
26
+ /** A session ended (carries its duration) — powers active-session-length + churn-within-session. */
27
+ SESSION_END: 'session_end',
28
+ /** One MCP tool call (carries the tool name) — powers "which tool is mostly used". */
29
+ TOOL: 'tool',
30
+ };
31
+ /**
32
+ * One anonymous telemetry event. `anonymousId` and the optional hashed `projectId` are the only
33
+ * identifiers; everything else is a low-cardinality dimension for slicing the adoption metrics.
34
+ */
35
+ export const TelemetryEventSchema = z.object({
36
+ v: z.literal(TELEMETRY_EVENT_VERSION),
37
+ /** Random UUID persisted at `~/.reticle/telemetry-id`. Distinct-count of this = users (DAU/WAU/MAU). */
38
+ anonymousId: z.string().min(1).max(128),
39
+ /** One-way hash of the git remote (or cwd) — counts DISTINCT PROJECTS without revealing any of them. */
40
+ projectId: z.string().min(1).max(128).optional(),
41
+ event: z.nativeEnum(TelemetryEventKind),
42
+ /** Client epoch-ms when the event happened (the server also stamps its own receive time). */
43
+ ts: z.number().int().nonnegative(),
44
+ /** Reticle version emitting the event — lets us see adoption of new releases + version spread. */
45
+ version: z.string().min(1).max(64),
46
+ /** Runs inside CI? Separates real human DAU from pipeline traffic (both matter, differently). */
47
+ ci: z.boolean(),
48
+ /** `process.platform` (darwin/linux/win32) — OS mix, low cardinality, non-identifying. */
49
+ os: z.string().min(1).max(32),
50
+ /** Only on `session_end`: how long the session was active, in ms. */
51
+ sessionMs: z.number().int().nonnegative().optional(),
52
+ /** Only on `tool`: the MCP tool name invoked (e.g. `reticle_act`). Low cardinality by construction. */
53
+ tool: z.string().min(1).max(64).optional(),
54
+ });
55
+ //# sourceMappingURL=telemetry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uFAAuF;AACvF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAEzC,wFAAwF;AACxF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,yGAAyG;IACzG,OAAO,EAAE,SAAS;IAClB,sFAAsF;IACtF,MAAM,EAAE,QAAQ;IAChB,uFAAuF;IACvF,aAAa,EAAE,eAAe;IAC9B,oGAAoG;IACpG,WAAW,EAAE,aAAa;IAC1B,sFAAsF;IACtF,IAAI,EAAE,MAAM;CACJ,CAAC;AAGX;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;IACrC,wGAAwG;IACxG,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACvC,wGAAwG;IACxG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAChD,KAAK,EAAE,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC;IACvC,6FAA6F;IAC7F,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAClC,kGAAkG;IAClG,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,iGAAiG;IACjG,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE;IACf,0FAA0F;IAC1F,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7B,qEAAqE;IACrE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACpD,uGAAuG;IACvG,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC"}
package/dist/upgrade.d.ts CHANGED
@@ -32,6 +32,13 @@ export declare const CloudCapability: {
32
32
  readonly CORPUS_HEAL: "corpus_heal";
33
33
  /** Verify-before-merge policy gate in CI (the governance tier). */
34
34
  readonly CI_GATE: "ci_gate";
35
+ /**
36
+ * Hosted execution — verify a URL on OUR browsers instead of the caller's. This is the axis a local
37
+ * tool structurally cannot serve: CI with no Chromium, background/autonomous agents with no foreground
38
+ * browser, and "verify my deployed staging URL". Without this capability the runner pillar had no name,
39
+ * so a blocked agent could not emit a hint for it at all.
40
+ */
41
+ readonly HOSTED_RUNNER: "hosted_runner";
35
42
  };
36
43
  export type CloudCapability = (typeof CloudCapability)[keyof typeof CloudCapability];
37
44
  /**
@@ -51,18 +58,25 @@ export declare const UpgradeHintSchema: z.ZodObject<{
51
58
  readonly CORPUS_HEAL: "corpus_heal";
52
59
  /** Verify-before-merge policy gate in CI (the governance tier). */
53
60
  readonly CI_GATE: "ci_gate";
61
+ /**
62
+ * Hosted execution — verify a URL on OUR browsers instead of the caller's. This is the axis a local
63
+ * tool structurally cannot serve: CI with no Chromium, background/autonomous agents with no foreground
64
+ * browser, and "verify my deployed staging URL". Without this capability the runner pillar had no name,
65
+ * so a blocked agent could not emit a hint for it at all.
66
+ */
67
+ readonly HOSTED_RUNNER: "hosted_runner";
54
68
  }>;
55
69
  reason: z.ZodString;
56
70
  unlockedBy: z.ZodString;
57
71
  learnMoreUrl: z.ZodString;
58
72
  }, "strip", z.ZodTypeAny, {
59
73
  reason: string;
60
- capability: "share_proof" | "run_history" | "team_review" | "corpus_heal" | "ci_gate";
74
+ capability: "share_proof" | "run_history" | "team_review" | "corpus_heal" | "ci_gate" | "hosted_runner";
61
75
  unlockedBy: string;
62
76
  learnMoreUrl: string;
63
77
  }, {
64
78
  reason: string;
65
- capability: "share_proof" | "run_history" | "team_review" | "corpus_heal" | "ci_gate";
79
+ capability: "share_proof" | "run_history" | "team_review" | "corpus_heal" | "ci_gate" | "hosted_runner";
66
80
  unlockedBy: string;
67
81
  learnMoreUrl: string;
68
82
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uGAAuG;AACvG,eAAO,MAAM,wBAAwB,sBAAsB,CAAC;AAE5D,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,6BAA6B,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B,mGAAmG;;IAEnG,yFAAyF;;IAEzF,sEAAsE;;IAEtE,gGAAgG;;IAEhG,mEAAmE;;CAE3D,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;QAlB5B,mGAAmG;;QAEnG,yFAAyF;;QAEzF,sEAAsE;;QAEtE,gGAAgG;;QAEhG,mEAAmE;;;;;;;;;;;;;;;;EAenE,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,yDAAyD;AACzD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E;AAqCD,qGAAqG;AACrG,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,eAAe,GAAG,WAAW,CAQzE"}
1
+ {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uGAAuG;AACvG,eAAO,MAAM,wBAAwB,sBAAsB,CAAC;AAE5D,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,6BAA6B,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B,mGAAmG;;IAEnG,yFAAyF;;IAEzF,sEAAsE;;IAEtE,gGAAgG;;IAEhG,mEAAmE;;IAEnE;;;;;OAKG;;CAEK,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;QAzB5B,mGAAmG;;QAEnG,yFAAyF;;QAEzF,sEAAsE;;QAEtE,gGAAgG;;QAEhG,mEAAmE;;QAEnE;;;;;WAKG;;;;;;;;;;;;;;;;EAeH,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,yDAAyD;AACzD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E;AA4CD,qGAAqG;AACrG,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,eAAe,GAAG,WAAW,CAQzE"}
package/dist/upgrade.js CHANGED
@@ -32,6 +32,13 @@ export const CloudCapability = {
32
32
  CORPUS_HEAL: 'corpus_heal',
33
33
  /** Verify-before-merge policy gate in CI (the governance tier). */
34
34
  CI_GATE: 'ci_gate',
35
+ /**
36
+ * Hosted execution — verify a URL on OUR browsers instead of the caller's. This is the axis a local
37
+ * tool structurally cannot serve: CI with no Chromium, background/autonomous agents with no foreground
38
+ * browser, and "verify my deployed staging URL". Without this capability the runner pillar had no name,
39
+ * so a blocked agent could not emit a hint for it at all.
40
+ */
41
+ HOSTED_RUNNER: 'hosted_runner',
35
42
  };
36
43
  /**
37
44
  * A single, structured hint. `reason` states the blocker as fact; `unlockedBy` names the one action that
@@ -67,12 +74,18 @@ const COPY_BY_CAPABILITY = {
67
74
  },
68
75
  [CloudCapability.CORPUS_HEAL]: {
69
76
  reason: 'Corpus-ranked heal uses refactor outcomes learned across the fleet, served from the cloud.',
70
- unlockedBy: 'Enable the hosted heal service on a Reticle Cloud team plan.',
77
+ // Learned intelligence sits above the flat team seat (usage tier) — the copy must not promise it
78
+ // to a team plan that does not include it.
79
+ unlockedBy: 'Enable the hosted heal service on Reticle Cloud.',
71
80
  },
72
81
  [CloudCapability.CI_GATE]: {
73
82
  reason: 'Verify-before-merge is a governance gate that runs in your CI against a hosted policy.',
74
83
  unlockedBy: 'Configure the Reticle Cloud CI gate for your repository.',
75
84
  },
85
+ [CloudCapability.HOSTED_RUNNER]: {
86
+ reason: 'Verifying without a local browser (CI, a background agent, or a deployed URL) needs a browser we run for you.',
87
+ unlockedBy: 'Link a Reticle Cloud account to run verifications on hosted browsers.',
88
+ },
76
89
  };
77
90
  /** Build the canonical hint for a capability. Pure — the emitter decides WHEN, this decides WHAT. */
78
91
  export function buildUpgradeHint(capability) {
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uGAAuG;AACvG,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;AAE5D,oGAAoG;AACpG,MAAM,CAAC,MAA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"2.2.1",
4
4
  "description": "The Reticle foundation: the shared wire contract — types, zod schemas, constants, messages, and the isomorphic kernel that every Reticle package (browser SDK, server, kits, test harness) imports. Depends only on zod.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",