@reticlehq/core 3.7.0 → 3.8.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 (108) hide show
  1. package/dist/activation-entry.d.ts +9 -0
  2. package/dist/activation-entry.js +9 -0
  3. package/dist/artifacts/drive-script.d.ts +64 -64
  4. package/dist/artifacts/flow-constants.d.ts +15 -0
  5. package/dist/artifacts/flow-constants.js +15 -0
  6. package/dist/artifacts/flow-expect-flat.d.ts +8 -8
  7. package/dist/artifacts/flow-results.d.ts +11 -0
  8. package/dist/artifacts/flow-types.d.ts +164 -118
  9. package/dist/artifacts/flow-types.js +12 -0
  10. package/dist/artifacts/harness-credits.d.ts +6 -3
  11. package/dist/artifacts/harness-credits.js +9 -6
  12. package/dist/artifacts/harness-map.d.ts +6 -6
  13. package/dist/artifacts/impact.d.ts +77 -80
  14. package/dist/artifacts/impact.js +34 -17
  15. package/dist/artifacts/journal.d.ts +25 -6
  16. package/dist/artifacts/journal.js +13 -0
  17. package/dist/artifacts/prompt-context.d.ts +12 -0
  18. package/dist/artifacts/prompt-context.js +14 -3
  19. package/dist/graph/app-graph.d.ts +137 -0
  20. package/dist/graph/app-graph.js +498 -0
  21. package/dist/hooks/hook-events.d.ts +22 -22
  22. package/dist/hud-entry.js +1 -1
  23. package/dist/identity/checkout.d.ts +41 -0
  24. package/dist/identity/checkout.js +118 -0
  25. package/dist/identity/state-dir.d.ts +23 -0
  26. package/dist/identity/state-dir.js +43 -0
  27. package/dist/index.d.ts +10 -0
  28. package/dist/index.js +10 -0
  29. package/dist/onboarding.d.ts +22 -1
  30. package/dist/onboarding.js +19 -0
  31. package/dist/registry/dev-server-registry.d.ts +2 -2
  32. package/dist/schema/event-message.json +3 -1
  33. package/dist/schema/event-payloads.json +116 -1
  34. package/dist/schema/event-type.json +3 -1
  35. package/dist/schema/hello-message.json +21 -0
  36. package/dist/schema/reticle-event.json +3 -1
  37. package/dist/schema/reticle-message.json +24 -1
  38. package/dist/telemetry-bug.d.ts +6 -6
  39. package/dist/telemetry-entry.d.ts +1 -1
  40. package/dist/telemetry-entry.js +1 -1
  41. package/dist/telemetry-feedback.d.ts +14 -0
  42. package/dist/telemetry-feedback.js +19 -0
  43. package/dist/telemetry-refusal.d.ts +2 -2
  44. package/dist/telemetry-session.d.ts +23 -8
  45. package/dist/telemetry-session.js +15 -4
  46. package/dist/telemetry-signals.d.ts +227 -9
  47. package/dist/telemetry-signals.js +88 -1
  48. package/dist/telemetry.d.ts +379 -72
  49. package/dist/telemetry.js +71 -5
  50. package/dist/verdict/check-sentence.d.ts +34 -0
  51. package/dist/verdict/check-sentence.js +228 -0
  52. package/dist/verdict/consequence.d.ts +15 -0
  53. package/dist/verdict/consequence.js +11 -0
  54. package/dist/verdict/findings.d.ts +10 -0
  55. package/dist/verdict/findings.js +13 -0
  56. package/dist/verdict/instrumentation-coverage.d.ts +3 -34
  57. package/dist/verdict/instrumentation-coverage.js +14 -58
  58. package/dist/verdict/instrumentation-gap.d.ts +79 -0
  59. package/dist/verdict/instrumentation-gap.js +64 -0
  60. package/dist/verdict/predicate-tree.d.ts +2 -0
  61. package/dist/verdict/predicate-tree.js +16 -0
  62. package/dist/verdict/predicate.d.ts +2 -1
  63. package/dist/verdict/predicate.js +103 -12
  64. package/dist/verdict/property-assertion.d.ts +2 -2
  65. package/dist/verdict/run-report.d.ts +166 -0
  66. package/dist/verdict/run-report.js +53 -0
  67. package/dist/verdict/security.d.ts +36 -2
  68. package/dist/verdict/security.js +94 -14
  69. package/dist/verdict/verification-run.d.ts +95 -38
  70. package/dist/verdict/verification-run.js +33 -2
  71. package/dist/verdict/verify-progress.d.ts +6 -6
  72. package/dist/wire/constants/constants.d.ts +56 -141
  73. package/dist/wire/constants/constants.js +64 -144
  74. package/dist/wire/constants/discovery.d.ts +4 -4
  75. package/dist/wire/constants/discovery.js +4 -4
  76. package/dist/wire/constants/event-types.d.ts +35 -1
  77. package/dist/wire/constants/event-types.js +33 -1
  78. package/dist/wire/constants/hud-controls.js +0 -2
  79. package/dist/wire/constants/hud-use.d.ts +4 -0
  80. package/dist/wire/constants/hud-use.js +4 -0
  81. package/dist/wire/constants/mcp-wire.d.ts +16 -0
  82. package/dist/wire/constants/mcp-wire.js +16 -0
  83. package/dist/wire/constants/response-body-reason.d.ts +19 -0
  84. package/dist/wire/constants/response-body-reason.js +18 -0
  85. package/dist/wire/constants/reticle-env.d.ts +138 -0
  86. package/dist/wire/constants/reticle-env.js +138 -0
  87. package/dist/wire/constants/session-constants.d.ts +11 -0
  88. package/dist/wire/constants/session-constants.js +11 -0
  89. package/dist/wire/event-payloads.d.ts +150 -36
  90. package/dist/wire/event-payloads.js +83 -16
  91. package/dist/wire/messages.d.ts +102 -36
  92. package/dist/wire/messages.js +16 -0
  93. package/dist/wire/narrow.d.ts +6 -0
  94. package/dist/wire/narrow.js +26 -0
  95. package/dist/wire/next-step.d.ts +90 -0
  96. package/dist/wire/next-step.js +37 -0
  97. package/dist/wire/platform-link.d.ts +7 -0
  98. package/dist/wire/platform-link.js +12 -6
  99. package/dist/wire/production/activation-ticket.d.ts +64 -0
  100. package/dist/wire/production/activation-ticket.js +148 -0
  101. package/dist/wire/production/hello-mode.d.ts +35 -0
  102. package/dist/wire/production/hello-mode.js +32 -0
  103. package/dist/wire/production/production-policy.d.ts +138 -0
  104. package/dist/wire/production/production-policy.js +133 -0
  105. package/dist/wire/tool-names.d.ts +2 -0
  106. package/dist/wire/tool-names.js +2 -0
  107. package/dist/wire/types.d.ts +73 -48
  108. package/package.json +5 -1
@@ -28,6 +28,12 @@ export declare const MCP_SERVER_NAME = "reticle";
28
28
  export declare const MCP_SHUTDOWN_EVENT = "reticle-shutdown";
29
29
  /** Local-only daemon introspection — `reticle status` GETs this for sessions + health at a glance. */
30
30
  export declare const STATUS_PATH = "/status";
31
+ /**
32
+ * Local-only stop request — `reticle stop` and `reticle kill` POST here first, with the pairing token
33
+ * as a bearer token. It runs the daemon's normal shutdown path. A signal cannot do that on Windows,
34
+ * where it ends the process at once.
35
+ */
36
+ export declare const SHUTDOWN_PATH = "/shutdown";
31
37
  /**
32
38
  * Query flag on STATUS_PATH: the caller (a running `reticle init`) is waiting on this daemon, so it
33
39
  * must not idle out yet. Without it the daemon init started exited mid-wait on a slow desktop build.
@@ -101,140 +107,7 @@ export declare const RETICLE_URL_PARAM: {
101
107
  };
102
108
  /** The loopback bind address. The daemon/bridge bind here by default — never expose Reticle off-host. */
103
109
  export declare const LOOPBACK_HOST = "127.0.0.1";
104
- /**
105
- * Every environment variable Reticle reads, named once. A misspelled inline env string silently
106
- * disables the control it gates (e.g. a typo'd `RETICLE_TOKEN` would disable auth) — so the names live
107
- * here and nowhere else. The values are the literal process.env keys.
108
- */
109
- export declare const ReticleEnv: {
110
- /** "0"/"false"/"off" turns off telemetry and every optional outbound call; DO_NOT_TRACK too. */
111
- readonly TELEMETRY: "RETICLE_TELEMETRY";
112
- readonly DO_NOT_TRACK: "DO_NOT_TRACK";
113
- /** Shared-secret the browser SDK must present in HELLO; absent ⇒ loopback-trust only. */
114
- readonly TOKEN: "RETICLE_TOKEN";
115
- /** Bridge bind host. Defaults to loopback; setting anything else is opt-in remote exposure. */
116
- readonly HOST: "RETICLE_HOST";
117
- /** Comma-separated WS Origin allow-list for the bridge. */
118
- readonly ALLOWED_ORIGINS: "RETICLE_ALLOWED_ORIGINS";
119
- /** Bridge/daemon WS port override. */
120
- readonly PORT: "RETICLE_PORT";
121
- /** Daemon state — pidfiles, discovery registry, logs. Defaults to `~/.reticle`. Overridable
122
- * because a read-only $HOME (sandboxed agent, locked-down Windows profile, container) otherwise
123
- * makes the daemon unstartable with a raw EACCES naming nothing. Reported by a Windows user. */
124
- readonly STATE_DIR: "RETICLE_STATE_DIR";
125
- /** Attach to an already-running browser over CDP instead of launching one. */
126
- readonly CDP_URL: "RETICLE_CDP_URL";
127
- /** The Chromium executable to launch, in place of Playwright's own build or an installed Chrome. */
128
- readonly CHROMIUM_PATH: "RETICLE_CHROMIUM_PATH";
129
- /** Max simultaneous leased headless contexts in the browser pool (resource cap). */
130
- readonly MAX_CONTEXTS: "RETICLE_MAX_CONTEXTS";
131
- /**
132
- * Inbound events per second before the bridge starts SAMPLING (never disconnecting).
133
- *
134
- * Raise it for a legitimately busy app — a streaming dashboard, a live grid — rather than accept
135
- * partial coverage. Free and local: the daemon runs on the same machine, so a higher ceiling costs
136
- * nothing to anyone.
137
- */
138
- readonly MAX_MESSAGES_PER_SECOND: "RETICLE_MAX_MESSAGES_PER_SECOND";
139
- /** Bearer token required by the optional `reticle serve --http` verify endpoint. */
140
- readonly VERIFY_TOKEN: "RETICLE_VERIFY_TOKEN";
141
- /** Ms of continuous idleness (no agent, no browser session, no lease) before the daemon self-exits;
142
- * `0` disables. Keeps Reticle from lingering on a user's machine after the editor closes. */
143
- readonly IDLE_SHUTDOWN: "RETICLE_IDLE_SHUTDOWN_MS";
144
- /** Idle re-check cadence (default 30s). Overridable so daemon-lifecycle-test can watch a full
145
- * exit/wake cycle in seconds rather than minutes. */
146
- readonly IDLE_CHECK: "RETICLE_IDLE_CHECK_MS";
147
- /**
148
- * Grace for a daemon with an agent ATTACHED. Longer than the base on purpose: quiet with a client
149
- * present means a slow install or a thinking human, not an unwanted daemon — a flat 5 minutes was
150
- * killing live runs mid-install. Derived from the base when unset.
151
- */
152
- readonly IDLE_ATTACHED: "RETICLE_IDLE_ATTACHED_MS";
153
- /**
154
- * How often the daemon writes `reticle_daemon_alive`, so a GAP in its log is evidence it died.
155
- *
156
- * Overridable for the same reason the idle windows are: a spec that has to prove "a killed daemon
157
- * is distinguishable from a tidy one" cannot wait 30 seconds per beat, and a spec that instead
158
- * re-implements the cadence is insensitive to the thing it claims to guard.
159
- */
160
- readonly HEARTBEAT: "RETICLE_HEARTBEAT_MS";
161
- /** Directory holding the auto-provisioned pairing token. Defaults to ~/.reticle; relocatable for CI. */
162
- readonly PAIRING_TOKEN_DIR: "RETICLE_PAIRING_TOKEN_DIR";
163
- /** Force the durable causal journal off (`0`/`false`/`off`) or on (`1`/`true`/`on`); default on. */
164
- readonly JOURNAL: "RETICLE_JOURNAL";
165
- /**
166
- * Verbose internal flow tracing for people working ON Reticle (`1`/`true`/`on`); default off.
167
- *
168
- * Distinct from the journal, which records what the AGENT did to the app. This records what
169
- * RETICLE did to answer it: one line per internal stage, with its duration and nesting, so a
170
- * developer can see which code a tool call actually went through and where the time went.
171
- * Off by default and free when off — a trace on every tool call is a cost on the hot path.
172
- */
173
- readonly TRACE: "RETICLE_TRACE";
174
- /**
175
- * How many consecutive reconnects the MCP proxy attempts before it stops retrying and goes
176
- * dormant. Overridable for the same reason the idle windows are: the real budget takes MINUTES to
177
- * exhaust, so the one spec that proves the proxy SURVIVES exhaustion could not run at all without
178
- * shortening it. A budget nobody can reach in a test is a budget nobody tests.
179
- */
180
- readonly RECONNECT_ATTEMPTS: "RETICLE_RECONNECT_ATTEMPTS";
181
- /** Quiet window before an abandoned MCP stdio proxy exits; `0` disables the watcher. */
182
- readonly MCP_PROXY_IDLE: "RETICLE_MCP_PROXY_IDLE_MS";
183
- /**
184
- * API key for the harness — the model that drives the app when no coding agent is in the loop.
185
- *
186
- * The standard Anthropic name, on purpose: a machine that can already run a coding agent can
187
- * already run the harness, with nothing to configure. Absent ⇒ the harness is simply unavailable
188
- * and every other part of Reticle is unaffected.
189
- */
190
- readonly HARNESS_KEY: "ANTHROPIC_API_KEY";
191
- /** Model the harness drives with. Defaults to a small one — see `DEFAULT_HARNESS_MODEL`. */
192
- readonly HARNESS_MODEL: "RETICLE_HARNESS_MODEL";
193
- /** Base URL for the harness's model API, for a proxy or a gateway. */
194
- readonly HARNESS_BASE_URL: "RETICLE_HARNESS_BASE_URL";
195
- /** Hard ceiling on harness model turns in one drive. Bounds cost, not value. */
196
- readonly HARNESS_MAX_STEPS: "RETICLE_HARNESS_MAX_STEPS";
197
- /** The free drive `reticle try` was granted, sent on every Harness call it bills. */
198
- readonly DRIVE_ID: "RETICLE_DRIVE_ID";
199
- /**
200
- * Which model backs the harness driver: `anthropic` (the default) or `jev`.
201
- *
202
- * Two drivers exist because the driver's job turns out not to need a text generator. It picks the
203
- * next action and says what it expects; the verdict is decided afterwards by the engine, with no
204
- * model anywhere near it. A System One model answers typed questions against a state, which is
205
- * exactly that job and none of the rest, so it can drive without being able to generate a
206
- * sentence. Unset keeps the existing behaviour for everybody who has not asked for this.
207
- */
208
- readonly HARNESS_DRIVER: "RETICLE_HARNESS_DRIVER";
209
- /**
210
- * A direct Jev key, for this repo's own benchmarks and for anyone holding a TypeSafe account.
211
- *
212
- * Users are not expected to have one. The ordinary path is the key they already minted on the
213
- * platform (`RETICLE_API_KEY`), which reaches Jev through the proxy at `RETICLE_CLOUD_URL` —
214
- * this variable is the escape hatch that skips it, and it takes precedence when both are set so
215
- * that a developer debugging the upstream is never silently talking to the proxy instead.
216
- */
217
- readonly HARNESS_JEV_KEY: "JEV_API_KEY";
218
- /** Base URL for the Jev API, for a proxy or a gateway. Defaults to TypeSafe's own endpoint. */
219
- readonly HARNESS_JEV_URL: "RETICLE_HARNESS_JEV_URL";
220
- /** A direct OpenAI key. As with Jev, the ordinary path is the platform key and its proxy. */
221
- readonly HARNESS_OPENAI_KEY: "OPENAI_API_KEY";
222
- /** Model the OpenAI driver uses. Defaults to a small one — see `DEFAULT_OPENAI_MODEL`. */
223
- readonly HARNESS_OPENAI_MODEL: "RETICLE_HARNESS_OPENAI_MODEL";
224
- /**
225
- * The API key minted on the platform, and the host it belongs to.
226
- *
227
- * Read through `apiKeyFrom()`, never directly — see the note on that function for why there are
228
- * two names for one key and why neither may be dropped.
229
- */
230
- readonly API_KEY: "RETICLE_API_KEY";
231
- /** The name this key had until 2026-09. Still honoured; see `apiKeyFrom()`. */
232
- readonly CLOUD_KEY: "RETICLE_CLOUD_KEY";
233
- /** The platform host. Read through `cloudUrlFrom()`, which also accepts `URL`. */
234
- readonly CLOUD_URL: "RETICLE_CLOUD_URL";
235
- /** The short name for `CLOUD_URL`, which people type first. `CLOUD_URL` wins when both are set. */
236
- readonly URL: "RETICLE_URL";
237
- };
110
+ export { ReticleEnv } from './reticle-env.js';
238
111
  /**
239
112
  * The platform API key, whichever name it arrives under.
240
113
  *
@@ -337,8 +210,27 @@ export declare const DANGEROUS_ACTION_CONFIRM_ARG = "confirmDangerous";
337
210
  * through the SDK instead.
338
211
  */
339
212
  export declare const NATIVE_INPUT_ARG = "native";
213
+ /**
214
+ * INSPECT argument: scroll an off-viewport element to the center before it is measured. The real-input
215
+ * path sends it, because a real pointer aimed at an off-viewport box lands on nothing (#1711).
216
+ */
217
+ export declare const INSPECT_REVEAL_ARG = "reveal";
218
+ /**
219
+ * INSPECT result field, present only when `INSPECT_REVEAL_ARG` was sent: whether the element's center
220
+ * is inside the viewport, measured after the scroll. An SDK that predates it omits it, and a caller
221
+ * must read that absence as unknown, never as out of view.
222
+ */
223
+ export declare const INSPECT_IN_VIEWPORT_FIELD = "inViewport";
340
224
  /** Schema version stamped onto compiled replay programs. */
341
225
  export declare const REPLAY_PROGRAM_VERSION = 1;
226
+ /**
227
+ * The instruction files `reticle init` writes its Reticle section into, and the line that opens the
228
+ * section. `init` writes it and the server reads it, so both take it from here.
229
+ */
230
+ export declare const AgentRules: {
231
+ readonly FILES: readonly ["CLAUDE.md", "AGENTS.md"];
232
+ readonly BEGIN: "<!-- reticle:begin (managed by `reticle init` — edit outside these markers) -->";
233
+ };
342
234
  /** The git-checked Reticle workspace directory + its layout. No free strings. */
343
235
  export declare const ReticleDir: {
344
236
  readonly ROOT: ".reticle";
@@ -371,6 +263,8 @@ export declare const ReticleDir: {
371
263
  readonly VISUAL_SUBDIR: "visual";
372
264
  /** verification-run artifacts —.reticle/runs/<runId>.json (the OEM/CI-consumable verdict). */
373
265
  readonly RUNS_SUBDIR: "runs";
266
+ /** Dev-server logs, only when the state home cannot be written. Machine-local, like `runs/`. */
267
+ readonly LOGS_SUBDIR: "logs";
374
268
  /** fail-to-pass bug capsules —.reticle/capsules/<id>.json (a minimal failing flow + its evidence). */
375
269
  readonly CAPSULES_SUBDIR: "capsules";
376
270
  /**
@@ -385,6 +279,11 @@ export declare const ReticleDir: {
385
279
  readonly PLANS_SUBDIR: "plans";
386
280
  /** durable causal journal —.reticle/sessions/<id>/{events,actions}.jsonl (the substrate). */
387
281
  readonly SESSIONS_SUBDIR: "sessions";
282
+ /**
283
+ * Every tool call an agent made, in full, with what it did to the page —
284
+ * .reticle/episodes/<connection>.jsonl. Local evidence: never committed, never sent.
285
+ */
286
+ readonly EPISODES_SUBDIR: "episodes";
388
287
  /** append-only event ledger inside a session dir (one ReticleEvent per line). */
389
288
  readonly JOURNAL_EVENTS_FILE: "events.jsonl";
390
289
  /** append-only action ledger inside a session dir (one JournalAction per line). */
@@ -407,8 +306,12 @@ export declare const ReticleDir: {
407
306
  readonly COVERAGE_FILE: "coverage.json";
408
307
  /** Human review marks (HUD notes), pending and resolved — see server portal/session/human. */
409
308
  readonly NOTES_FILE: "notes.json";
410
- /** The user's latest request, as the agent relayed it. Local: it is the user's own words. */
309
+ /** The user's latest request: the newest prompt the hook captured, or the one the agent relayed. Local. */
411
310
  readonly REQUEST_FILE: "request.json";
311
+ /** Every prompt the agent hook captured, one JSON line each, oldest first. `request.json` holds the newest. */
312
+ readonly REQUESTS_LOG_FILE: "requests.jsonl";
313
+ /** The prompt history moved aside when `requests.jsonl` fills. The same words, so the same rule. */
314
+ readonly REQUESTS_LOG_ROTATED_FILE: "requests.1.jsonl";
412
315
  readonly APP_NOTES_FILE: "app-notes.json";
413
316
  readonly PLATFORM_MOMENTS_FILE: "platform-moments.json";
414
317
  /**
@@ -470,6 +373,7 @@ export declare const VisualReason: {
470
373
  readonly BASELINE_MISSING: "baseline-missing";
471
374
  readonly DIMENSION_MISMATCH: "dimension-mismatch";
472
375
  readonly FULL_PAGE_UNSUPPORTED: "full-page-unsupported";
376
+ readonly CROP_UNSUPPORTED: "crop-unsupported";
473
377
  readonly NOT_COMPOSITED: "window-not-composited";
474
378
  };
475
379
  export type VisualReason = (typeof VisualReason)[keyof typeof VisualReason];
@@ -514,8 +418,8 @@ export declare const ContractReadError: {
514
418
  readonly MALFORMED: "contract-malformed";
515
419
  };
516
420
  export type ContractReadError = (typeof ContractReadError)[keyof typeof ContractReadError];
517
- import { EventType } from './event-types.js';
518
- export { EventType };
421
+ import { CanvasTrigger, EventType, MediaEvent } from './event-types.js';
422
+ export { CanvasTrigger, EventType, MediaEvent };
519
423
  /** Bounds for the per-session ring buffer. */
520
424
  export declare const RING_BUFFER_DEFAULTS: {
521
425
  readonly MAX_EVENTS: 2000;
@@ -542,6 +446,11 @@ export declare const PhenomenonType: {
542
446
  export type PhenomenonType = (typeof PhenomenonType)[keyof typeof PhenomenonType];
543
447
  /** Signal the React adapter fires once hydration commits (handlers attached). Shared browser↔server. */
544
448
  export declare const RETICLE_HYDRATION_SIGNAL = "reticle:hydration-complete";
449
+ /**
450
+ * Work the app declared it is doing (`reticle.busy(work)`): `{ delta: 1 }` when it starts and
451
+ * `{ delta: -1 }` when it ends. `settled` counts it as in flight, like a request. Shared browser↔server.
452
+ */
453
+ export declare const RETICLE_BUSY_SIGNAL = "reticle:busy";
545
454
  /**
546
455
  * The registered-store name the React adapter uses for render stats, read via reticle_state. It crosses
547
456
  * the wire as a store id AND the browser SDK special-cases it as reticle-owned (so it isn't flagged as
@@ -637,6 +546,10 @@ export declare const InputModeReason: {
637
546
  * permanent for the session, not a transient downgrade, so it should stop asking.
638
547
  */
639
548
  readonly NOT_CONFIGURED: "real-input-not-configured-for-this-session";
549
+ readonly TARGET_NOT_FOCUSABLE: "target-cannot-hold-focus";
550
+ /** A production drive presses only in the page. A native key goes to whatever holds focus, so
551
+ * the production policy could not judge the control it pressed. */
552
+ readonly PRODUCTION_PRESS_IN_PAGE: "production-drive-presses-in-page";
640
553
  };
641
554
  export type InputModeReason = (typeof InputModeReason)[keyof typeof InputModeReason];
642
555
  /** Best-effort caveats attached to action results so the agent can interpret a no-op. */
@@ -650,11 +563,9 @@ export declare const ActionWarning: {
650
563
  * actionable. Scroll it into a clear area or dismiss the overlay on top.
651
564
  */
652
565
  readonly CLICK_OCCLUDED: "target is visually occluded by another element; a real user could not click it (synthetic dispatch still delivered the event) — dismiss the overlay or scroll the target clear";
653
- /**
654
- * A document-key press (Escape, Tab, a modifier shortcut) was dispatched at the focused
655
- * element or the document. No named target was given, so the effect must not claim one.
656
- */
566
+ /** A document-key press (Escape, Tab, a shortcut) went to the focused element or document. */
657
567
  readonly GLOBAL_PRESS: "press landed on the focused element or document — no named target was given, so this effect does not claim one";
568
+ readonly CLICK_NOT_A_CONTROL: "target is not a control and sits inside none (no button/link/input role, onclick, tabindex or pointer cursor), so a click on it may do nothing — if nothing happened, target the control inside it by role";
658
569
  };
659
570
  export type ActionWarning = (typeof ActionWarning)[keyof typeof ActionWarning];
660
571
  /** Failure modes when Reticle launches/drives its own browser (`reticle drive`). */
@@ -881,5 +792,9 @@ export declare const LeaseNotReadyReason: {
881
792
  readonly SDK_STOPPED_ANSWERING: "sdk_stopped_answering";
882
793
  /** The SDK answers, but its tab is hidden: timers and rAF are throttled, so nothing on it verifies. */
883
794
  readonly TAB_HIDDEN: "tab_hidden";
795
+ /** The page is not an HTML document (an `.svg`, for example), so the zero-install reader did not run. */
796
+ readonly NOT_HTML_DOCUMENT: "not_html_document";
797
+ /** The zero-install reader failed, for example because the tab closed during setup. */
798
+ readonly READER_FAILED: "reader_failed";
884
799
  };
885
800
  export type LeaseNotReadyReason = (typeof LeaseNotReadyReason)[keyof typeof LeaseNotReadyReason];
@@ -2,6 +2,7 @@
2
2
  * Wire-level constants. No free strings anywhere in Reticle reference these directly —
3
3
  * every string/number that crosses the browser <-> bridge <-> agent boundary is named here.
4
4
  */
5
+ import { ReticleEnv } from './reticle-env.js';
5
6
  export const RETICLE_DEFAULT_PORT = 4400;
6
7
  export const RETICLE_WS_PATH = '/reticle';
7
8
  export * from './mcp-wire.js';
@@ -28,6 +29,12 @@ export const MCP_SERVER_NAME = 'reticle';
28
29
  export const MCP_SHUTDOWN_EVENT = 'reticle-shutdown';
29
30
  /** Local-only daemon introspection — `reticle status` GETs this for sessions + health at a glance. */
30
31
  export const STATUS_PATH = '/status';
32
+ /**
33
+ * Local-only stop request — `reticle stop` and `reticle kill` POST here first, with the pairing token
34
+ * as a bearer token. It runs the daemon's normal shutdown path. A signal cannot do that on Windows,
35
+ * where it ends the process at once.
36
+ */
37
+ export const SHUTDOWN_PATH = '/shutdown';
31
38
  /**
32
39
  * Query flag on STATUS_PATH: the caller (a running `reticle init`) is waiting on this daemon, so it
33
40
  * must not idle out yet. Without it the daemon init started exited mid-wait on a slow desktop build.
@@ -103,140 +110,7 @@ export const RETICLE_URL_PARAM = {
103
110
  };
104
111
  /** The loopback bind address. The daemon/bridge bind here by default — never expose Reticle off-host. */
105
112
  export const LOOPBACK_HOST = '127.0.0.1';
106
- /**
107
- * Every environment variable Reticle reads, named once. A misspelled inline env string silently
108
- * disables the control it gates (e.g. a typo'd `RETICLE_TOKEN` would disable auth) — so the names live
109
- * here and nowhere else. The values are the literal process.env keys.
110
- */
111
- export const ReticleEnv = {
112
- /** "0"/"false"/"off" turns off telemetry and every optional outbound call; DO_NOT_TRACK too. */
113
- TELEMETRY: 'RETICLE_TELEMETRY',
114
- DO_NOT_TRACK: 'DO_NOT_TRACK',
115
- /** Shared-secret the browser SDK must present in HELLO; absent ⇒ loopback-trust only. */
116
- TOKEN: 'RETICLE_TOKEN',
117
- /** Bridge bind host. Defaults to loopback; setting anything else is opt-in remote exposure. */
118
- HOST: 'RETICLE_HOST',
119
- /** Comma-separated WS Origin allow-list for the bridge. */
120
- ALLOWED_ORIGINS: 'RETICLE_ALLOWED_ORIGINS',
121
- /** Bridge/daemon WS port override. */
122
- PORT: 'RETICLE_PORT',
123
- /** Daemon state — pidfiles, discovery registry, logs. Defaults to `~/.reticle`. Overridable
124
- * because a read-only $HOME (sandboxed agent, locked-down Windows profile, container) otherwise
125
- * makes the daemon unstartable with a raw EACCES naming nothing. Reported by a Windows user. */
126
- STATE_DIR: 'RETICLE_STATE_DIR',
127
- /** Attach to an already-running browser over CDP instead of launching one. */
128
- CDP_URL: 'RETICLE_CDP_URL',
129
- /** The Chromium executable to launch, in place of Playwright's own build or an installed Chrome. */
130
- CHROMIUM_PATH: 'RETICLE_CHROMIUM_PATH',
131
- /** Max simultaneous leased headless contexts in the browser pool (resource cap). */
132
- MAX_CONTEXTS: 'RETICLE_MAX_CONTEXTS',
133
- /**
134
- * Inbound events per second before the bridge starts SAMPLING (never disconnecting).
135
- *
136
- * Raise it for a legitimately busy app — a streaming dashboard, a live grid — rather than accept
137
- * partial coverage. Free and local: the daemon runs on the same machine, so a higher ceiling costs
138
- * nothing to anyone.
139
- */
140
- MAX_MESSAGES_PER_SECOND: 'RETICLE_MAX_MESSAGES_PER_SECOND',
141
- /** Bearer token required by the optional `reticle serve --http` verify endpoint. */
142
- VERIFY_TOKEN: 'RETICLE_VERIFY_TOKEN',
143
- /** Ms of continuous idleness (no agent, no browser session, no lease) before the daemon self-exits;
144
- * `0` disables. Keeps Reticle from lingering on a user's machine after the editor closes. */
145
- IDLE_SHUTDOWN: 'RETICLE_IDLE_SHUTDOWN_MS',
146
- /** Idle re-check cadence (default 30s). Overridable so daemon-lifecycle-test can watch a full
147
- * exit/wake cycle in seconds rather than minutes. */
148
- IDLE_CHECK: 'RETICLE_IDLE_CHECK_MS',
149
- /**
150
- * Grace for a daemon with an agent ATTACHED. Longer than the base on purpose: quiet with a client
151
- * present means a slow install or a thinking human, not an unwanted daemon — a flat 5 minutes was
152
- * killing live runs mid-install. Derived from the base when unset.
153
- */
154
- IDLE_ATTACHED: 'RETICLE_IDLE_ATTACHED_MS',
155
- /**
156
- * How often the daemon writes `reticle_daemon_alive`, so a GAP in its log is evidence it died.
157
- *
158
- * Overridable for the same reason the idle windows are: a spec that has to prove "a killed daemon
159
- * is distinguishable from a tidy one" cannot wait 30 seconds per beat, and a spec that instead
160
- * re-implements the cadence is insensitive to the thing it claims to guard.
161
- */
162
- HEARTBEAT: 'RETICLE_HEARTBEAT_MS',
163
- /** Directory holding the auto-provisioned pairing token. Defaults to ~/.reticle; relocatable for CI. */
164
- PAIRING_TOKEN_DIR: 'RETICLE_PAIRING_TOKEN_DIR',
165
- /** Force the durable causal journal off (`0`/`false`/`off`) or on (`1`/`true`/`on`); default on. */
166
- JOURNAL: 'RETICLE_JOURNAL',
167
- /**
168
- * Verbose internal flow tracing for people working ON Reticle (`1`/`true`/`on`); default off.
169
- *
170
- * Distinct from the journal, which records what the AGENT did to the app. This records what
171
- * RETICLE did to answer it: one line per internal stage, with its duration and nesting, so a
172
- * developer can see which code a tool call actually went through and where the time went.
173
- * Off by default and free when off — a trace on every tool call is a cost on the hot path.
174
- */
175
- TRACE: 'RETICLE_TRACE',
176
- /**
177
- * How many consecutive reconnects the MCP proxy attempts before it stops retrying and goes
178
- * dormant. Overridable for the same reason the idle windows are: the real budget takes MINUTES to
179
- * exhaust, so the one spec that proves the proxy SURVIVES exhaustion could not run at all without
180
- * shortening it. A budget nobody can reach in a test is a budget nobody tests.
181
- */
182
- RECONNECT_ATTEMPTS: 'RETICLE_RECONNECT_ATTEMPTS',
183
- /** Quiet window before an abandoned MCP stdio proxy exits; `0` disables the watcher. */
184
- MCP_PROXY_IDLE: 'RETICLE_MCP_PROXY_IDLE_MS',
185
- /**
186
- * API key for the harness — the model that drives the app when no coding agent is in the loop.
187
- *
188
- * The standard Anthropic name, on purpose: a machine that can already run a coding agent can
189
- * already run the harness, with nothing to configure. Absent ⇒ the harness is simply unavailable
190
- * and every other part of Reticle is unaffected.
191
- */
192
- HARNESS_KEY: 'ANTHROPIC_API_KEY',
193
- /** Model the harness drives with. Defaults to a small one — see `DEFAULT_HARNESS_MODEL`. */
194
- HARNESS_MODEL: 'RETICLE_HARNESS_MODEL',
195
- /** Base URL for the harness's model API, for a proxy or a gateway. */
196
- HARNESS_BASE_URL: 'RETICLE_HARNESS_BASE_URL',
197
- /** Hard ceiling on harness model turns in one drive. Bounds cost, not value. */
198
- HARNESS_MAX_STEPS: 'RETICLE_HARNESS_MAX_STEPS',
199
- /** The free drive `reticle try` was granted, sent on every Harness call it bills. */
200
- DRIVE_ID: 'RETICLE_DRIVE_ID',
201
- /**
202
- * Which model backs the harness driver: `anthropic` (the default) or `jev`.
203
- *
204
- * Two drivers exist because the driver's job turns out not to need a text generator. It picks the
205
- * next action and says what it expects; the verdict is decided afterwards by the engine, with no
206
- * model anywhere near it. A System One model answers typed questions against a state, which is
207
- * exactly that job and none of the rest, so it can drive without being able to generate a
208
- * sentence. Unset keeps the existing behaviour for everybody who has not asked for this.
209
- */
210
- HARNESS_DRIVER: 'RETICLE_HARNESS_DRIVER',
211
- /**
212
- * A direct Jev key, for this repo's own benchmarks and for anyone holding a TypeSafe account.
213
- *
214
- * Users are not expected to have one. The ordinary path is the key they already minted on the
215
- * platform (`RETICLE_API_KEY`), which reaches Jev through the proxy at `RETICLE_CLOUD_URL` —
216
- * this variable is the escape hatch that skips it, and it takes precedence when both are set so
217
- * that a developer debugging the upstream is never silently talking to the proxy instead.
218
- */
219
- HARNESS_JEV_KEY: 'JEV_API_KEY',
220
- /** Base URL for the Jev API, for a proxy or a gateway. Defaults to TypeSafe's own endpoint. */
221
- HARNESS_JEV_URL: 'RETICLE_HARNESS_JEV_URL',
222
- /** A direct OpenAI key. As with Jev, the ordinary path is the platform key and its proxy. */
223
- HARNESS_OPENAI_KEY: 'OPENAI_API_KEY',
224
- /** Model the OpenAI driver uses. Defaults to a small one — see `DEFAULT_OPENAI_MODEL`. */
225
- HARNESS_OPENAI_MODEL: 'RETICLE_HARNESS_OPENAI_MODEL',
226
- /**
227
- * The API key minted on the platform, and the host it belongs to.
228
- *
229
- * Read through `apiKeyFrom()`, never directly — see the note on that function for why there are
230
- * two names for one key and why neither may be dropped.
231
- */
232
- API_KEY: 'RETICLE_API_KEY',
233
- /** The name this key had until 2026-09. Still honoured; see `apiKeyFrom()`. */
234
- CLOUD_KEY: 'RETICLE_CLOUD_KEY',
235
- /** The platform host. Read through `cloudUrlFrom()`, which also accepts `URL`. */
236
- CLOUD_URL: 'RETICLE_CLOUD_URL',
237
- /** The short name for `CLOUD_URL`, which people type first. `CLOUD_URL` wins when both are set. */
238
- URL: 'RETICLE_URL',
239
- };
113
+ export { ReticleEnv } from './reticle-env.js';
240
114
  /**
241
115
  * The platform API key, whichever name it arrives under.
242
116
  *
@@ -255,16 +129,18 @@ export const ReticleEnv = {
255
129
  */
256
130
  export function apiKeyFrom(env) {
257
131
  const current = env[ReticleEnv.API_KEY];
258
- if (current !== undefined && 0 < current.length)
132
+ if (current !== undefined && 0 < current.length) {
259
133
  return current;
134
+ }
260
135
  const legacy = env[ReticleEnv.CLOUD_KEY];
261
136
  return legacy !== undefined && 0 < legacy.length ? legacy : undefined;
262
137
  }
263
138
  /** The platform URL, under either name — one function so no caller forgets the second. */
264
139
  export function cloudUrlFrom(env) {
265
140
  const canonical = env[ReticleEnv.CLOUD_URL];
266
- if (canonical !== undefined && 0 < canonical.length)
141
+ if (canonical !== undefined && 0 < canonical.length) {
267
142
  return canonical;
143
+ }
268
144
  const short = env[ReticleEnv.URL];
269
145
  return short !== undefined && 0 < short.length ? short : undefined;
270
146
  }
@@ -274,8 +150,9 @@ export const DEFAULT_PLATFORM_URL = 'https://app.reticle.sh';
274
150
  export function platformUrlFrom(env) {
275
151
  // A loop, not /\/+$/: that pattern is polynomial on a value made of many slashes.
276
152
  let url = cloudUrlFrom(env) ?? DEFAULT_PLATFORM_URL;
277
- while (url.endsWith('/'))
153
+ while (url.endsWith('/')) {
278
154
  url = url.slice(0, -1);
155
+ }
279
156
  return url;
280
157
  }
281
158
  /**
@@ -371,8 +248,27 @@ export const DANGEROUS_ACTION_CONFIRM_ARG = 'confirmDangerous';
371
248
  * through the SDK instead.
372
249
  */
373
250
  export const NATIVE_INPUT_ARG = 'native';
251
+ /**
252
+ * INSPECT argument: scroll an off-viewport element to the center before it is measured. The real-input
253
+ * path sends it, because a real pointer aimed at an off-viewport box lands on nothing (#1711).
254
+ */
255
+ export const INSPECT_REVEAL_ARG = 'reveal';
256
+ /**
257
+ * INSPECT result field, present only when `INSPECT_REVEAL_ARG` was sent: whether the element's center
258
+ * is inside the viewport, measured after the scroll. An SDK that predates it omits it, and a caller
259
+ * must read that absence as unknown, never as out of view.
260
+ */
261
+ export const INSPECT_IN_VIEWPORT_FIELD = 'inViewport';
374
262
  /** Schema version stamped onto compiled replay programs. */
375
263
  export const REPLAY_PROGRAM_VERSION = 1;
264
+ /**
265
+ * The instruction files `reticle init` writes its Reticle section into, and the line that opens the
266
+ * section. `init` writes it and the server reads it, so both take it from here.
267
+ */
268
+ export const AgentRules = {
269
+ FILES: ['CLAUDE.md', 'AGENTS.md'],
270
+ BEGIN: '<!-- reticle:begin (managed by `reticle init` — edit outside these markers) -->',
271
+ };
376
272
  /** The git-checked Reticle workspace directory + its layout. No free strings. */
377
273
  export const ReticleDir = {
378
274
  ROOT: '.reticle',
@@ -405,6 +301,8 @@ export const ReticleDir = {
405
301
  VISUAL_SUBDIR: 'visual',
406
302
  /** verification-run artifacts —.reticle/runs/<runId>.json (the OEM/CI-consumable verdict). */
407
303
  RUNS_SUBDIR: 'runs',
304
+ /** Dev-server logs, only when the state home cannot be written. Machine-local, like `runs/`. */
305
+ LOGS_SUBDIR: 'logs',
408
306
  /** fail-to-pass bug capsules —.reticle/capsules/<id>.json (a minimal failing flow + its evidence). */
409
307
  CAPSULES_SUBDIR: 'capsules',
410
308
  /**
@@ -419,6 +317,11 @@ export const ReticleDir = {
419
317
  PLANS_SUBDIR: 'plans',
420
318
  /** durable causal journal —.reticle/sessions/<id>/{events,actions}.jsonl (the substrate). */
421
319
  SESSIONS_SUBDIR: 'sessions',
320
+ /**
321
+ * Every tool call an agent made, in full, with what it did to the page —
322
+ * .reticle/episodes/<connection>.jsonl. Local evidence: never committed, never sent.
323
+ */
324
+ EPISODES_SUBDIR: 'episodes',
422
325
  /** append-only event ledger inside a session dir (one ReticleEvent per line). */
423
326
  JOURNAL_EVENTS_FILE: 'events.jsonl',
424
327
  /** append-only action ledger inside a session dir (one JournalAction per line). */
@@ -441,8 +344,12 @@ export const ReticleDir = {
441
344
  COVERAGE_FILE: 'coverage.json',
442
345
  /** Human review marks (HUD notes), pending and resolved — see server portal/session/human. */
443
346
  NOTES_FILE: 'notes.json',
444
- /** The user's latest request, as the agent relayed it. Local: it is the user's own words. */
347
+ /** The user's latest request: the newest prompt the hook captured, or the one the agent relayed. Local. */
445
348
  REQUEST_FILE: 'request.json',
349
+ /** Every prompt the agent hook captured, one JSON line each, oldest first. `request.json` holds the newest. */
350
+ REQUESTS_LOG_FILE: 'requests.jsonl',
351
+ /** The prompt history moved aside when `requests.jsonl` fills. The same words, so the same rule. */
352
+ REQUESTS_LOG_ROTATED_FILE: 'requests.1.jsonl',
446
353
  APP_NOTES_FILE: 'app-notes.json', // confirmed targeting hints for the next session; never evidence
447
354
  PLATFORM_MOMENTS_FILE: 'platform-moments.json', // moments already said, so each is said once
448
355
  /**
@@ -507,6 +414,8 @@ export const VisualReason = {
507
414
  // quietly downgraded: a caller who asked for the whole scroll height and silently got the visible
508
415
  // part would bank a baseline that says nothing about the content below the fold.
509
416
  FULL_PAGE_UNSUPPORTED: 'full-page-unsupported',
417
+ // Desktop capture returns the whole window and cannot honor clip or ref.
418
+ CROP_UNSUPPORTED: 'crop-unsupported',
510
419
  // The shell answered, and the window had no composited frame to photograph yet. Distinct from
511
420
  // CAPTURE_FAILED on purpose: the capture ran and the window was empty, which is a timing fact
512
421
  // about the window rather than a failure of the capture path. Electron's `capturePage()` returns
@@ -556,8 +465,8 @@ export const ContractReadError = {
556
465
  };
557
466
  // The event vocabulary lives beside this file and is re-exported here, so `EventType` stays one
558
467
  // import path for every consumer. See event-types.ts for why it moved.
559
- import { EventType } from './event-types.js';
560
- export { EventType };
468
+ import { CanvasTrigger, EventType, MediaEvent } from './event-types.js';
469
+ export { CanvasTrigger, EventType, MediaEvent };
561
470
  /** Bounds for the per-session ring buffer. */
562
471
  export const RING_BUFFER_DEFAULTS = {
563
472
  MAX_EVENTS: 2000,
@@ -583,6 +492,11 @@ export const PhenomenonType = {
583
492
  };
584
493
  /** Signal the React adapter fires once hydration commits (handlers attached). Shared browser↔server. */
585
494
  export const RETICLE_HYDRATION_SIGNAL = 'reticle:hydration-complete';
495
+ /**
496
+ * Work the app declared it is doing (`reticle.busy(work)`): `{ delta: 1 }` when it starts and
497
+ * `{ delta: -1 }` when it ends. `settled` counts it as in flight, like a request. Shared browser↔server.
498
+ */
499
+ export const RETICLE_BUSY_SIGNAL = 'reticle:busy';
586
500
  /**
587
501
  * The registered-store name the React adapter uses for render stats, read via reticle_state. It crosses
588
502
  * the wire as a store id AND the browser SDK special-cases it as reticle-owned (so it isn't flagged as
@@ -676,6 +590,10 @@ export const InputModeReason = {
676
590
  * permanent for the session, not a transient downgrade, so it should stop asking.
677
591
  */
678
592
  NOT_CONFIGURED: 'real-input-not-configured-for-this-session',
593
+ TARGET_NOT_FOCUSABLE: 'target-cannot-hold-focus', // lease press: the named element took no focus
594
+ /** A production drive presses only in the page. A native key goes to whatever holds focus, so
595
+ * the production policy could not judge the control it pressed. */
596
+ PRODUCTION_PRESS_IN_PAGE: 'production-drive-presses-in-page',
679
597
  };
680
598
  /** Best-effort caveats attached to action results so the agent can interpret a no-op. */
681
599
  export const ActionWarning = {
@@ -688,11 +606,9 @@ export const ActionWarning = {
688
606
  * actionable. Scroll it into a clear area or dismiss the overlay on top.
689
607
  */
690
608
  CLICK_OCCLUDED: 'target is visually occluded by another element; a real user could not click it (synthetic dispatch still delivered the event) — dismiss the overlay or scroll the target clear',
691
- /**
692
- * A document-key press (Escape, Tab, a modifier shortcut) was dispatched at the focused
693
- * element or the document. No named target was given, so the effect must not claim one.
694
- */
609
+ /** A document-key press (Escape, Tab, a shortcut) went to the focused element or document. */
695
610
  GLOBAL_PRESS: 'press landed on the focused element or document — no named target was given, so this effect does not claim one',
611
+ CLICK_NOT_A_CONTROL: 'target is not a control and sits inside none (no button/link/input role, onclick, tabindex or pointer cursor), so a click on it may do nothing — if nothing happened, target the control inside it by role',
696
612
  };
697
613
  /** Failure modes when Reticle launches/drives its own browser (`reticle drive`). */
698
614
  export const DriveErrorCode = {
@@ -892,4 +808,8 @@ export const LeaseNotReadyReason = {
892
808
  SDK_STOPPED_ANSWERING: 'sdk_stopped_answering',
893
809
  /** The SDK answers, but its tab is hidden: timers and rAF are throttled, so nothing on it verifies. */
894
810
  TAB_HIDDEN: 'tab_hidden',
811
+ /** The page is not an HTML document (an `.svg`, for example), so the zero-install reader did not run. */
812
+ NOT_HTML_DOCUMENT: 'not_html_document',
813
+ /** The zero-install reader failed, for example because the tab closed during setup. */
814
+ READER_FAILED: 'reader_failed',
895
815
  };
@@ -15,11 +15,11 @@ export declare const DISCOVERY_CALL_URL = "https://calendar.app.google/h9NRDbBBQ
15
15
  export declare const FOUNDER_EMAIL = "hey@reticle.sh";
16
16
  /** A mailto for that address, subject filled so the note is findable in the inbox. A literal: see first-load-size. */
17
17
  export declare const FOUNDER_MAILTO = "mailto:hey@reticle.sh?subject=Reticle%20feedback";
18
- /** How somebody leaves an email instead — opt-in, saved locally, undone with `--forget`. */
19
- export declare const DISCOVERY_EMAIL_COMMAND = "npx @reticlehq/server identify --context company --email you@company.com";
18
+ /** How somebody leaves an email instead: a note with a reply address, sent only when they run it. */
19
+ export declare const DISCOVERY_EMAIL_COMMAND = "npx @reticlehq/server feedback --contact you@company.com \"what you are building\"";
20
20
  export declare const DiscoveryInvite: {
21
21
  /** Shown to the person using Reticle. */
22
- readonly HUMAN: "Stuck, or want Reticle to work differently? Talk to the founder: https://calendar.app.google/h9NRDbBBQetyTzWM6 · or leave your email: npx @reticlehq/server identify --context company --email you@company.com";
22
+ readonly HUMAN: "Stuck, or want Reticle to work differently? Talk to the founder: https://calendar.app.google/h9NRDbBBQetyTzWM6 · or send a note with your email: npx @reticlehq/server feedback --contact you@company.com \"what you are building\"";
23
23
  /** Read by the agent, which passes it on rather than acting on it. */
24
- readonly AGENT: "If the person you are working with is stuck or Reticle got in their way, offer them a call with the founder (https://calendar.app.google/h9NRDbBBQetyTzWM6) or the email command (npx @reticlehq/server identify --context company --email you@company.com). Offer it; never book a call or submit an email for them.";
24
+ readonly AGENT: "If the person you are working with is stuck or Reticle got in their way, offer them a call with the founder (https://calendar.app.google/h9NRDbBBQetyTzWM6) or a note with their email (npx @reticlehq/server feedback --contact you@company.com \"what you are building\"). Offer it; never book a call or submit an email for them.";
25
25
  };
@@ -15,11 +15,11 @@ export const DISCOVERY_CALL_URL = 'https://calendar.app.google/h9NRDbBBQetyTzWM6
15
15
  export const FOUNDER_EMAIL = 'hey@reticle.sh';
16
16
  /** A mailto for that address, subject filled so the note is findable in the inbox. A literal: see first-load-size. */
17
17
  export const FOUNDER_MAILTO = 'mailto:hey@reticle.sh?subject=Reticle%20feedback';
18
- /** How somebody leaves an email instead — opt-in, saved locally, undone with `--forget`. */
19
- export const DISCOVERY_EMAIL_COMMAND = 'npx @reticlehq/server identify --context company --email you@company.com';
18
+ /** How somebody leaves an email instead: a note with a reply address, sent only when they run it. */
19
+ export const DISCOVERY_EMAIL_COMMAND = 'npx @reticlehq/server feedback --contact you@company.com "what you are building"';
20
20
  export const DiscoveryInvite = {
21
21
  /** Shown to the person using Reticle. */
22
- HUMAN: `Stuck, or want Reticle to work differently? Talk to the founder: ${DISCOVERY_CALL_URL} · or leave your email: ${DISCOVERY_EMAIL_COMMAND}`,
22
+ HUMAN: `Stuck, or want Reticle to work differently? Talk to the founder: ${DISCOVERY_CALL_URL} · or send a note with your email: ${DISCOVERY_EMAIL_COMMAND}`,
23
23
  /** Read by the agent, which passes it on rather than acting on it. */
24
- AGENT: `If the person you are working with is stuck or Reticle got in their way, offer them a call with the founder (${DISCOVERY_CALL_URL}) or the email command (${DISCOVERY_EMAIL_COMMAND}). Offer it; never book a call or submit an email for them.`,
24
+ AGENT: `If the person you are working with is stuck or Reticle got in their way, offer them a call with the founder (${DISCOVERY_CALL_URL}) or a note with their email (${DISCOVERY_EMAIL_COMMAND}). Offer it; never book a call or submit an email for them.`,
25
25
  };