@reticlehq/core 2.14.0 → 3.2.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.
- package/dist/{artifacts-entry.d.ts → artifacts/artifacts-entry.d.ts} +7 -7
- package/dist/{artifacts-entry.js → artifacts/artifacts-entry.js} +7 -7
- package/dist/artifacts/flow-composition.d.ts +30 -0
- package/dist/artifacts/flow-composition.js +19 -0
- package/dist/{flow-constants.d.ts → artifacts/flow-constants.d.ts} +99 -3
- package/dist/{flow-constants.js → artifacts/flow-constants.js} +108 -4
- package/dist/artifacts/flow-mutation-target.d.ts +39 -0
- package/dist/artifacts/flow-mutation-target.js +89 -0
- package/dist/artifacts/flow-order.d.ts +30 -0
- package/dist/artifacts/flow-order.js +49 -0
- package/dist/artifacts/flow-select.d.ts +56 -0
- package/dist/artifacts/flow-select.js +56 -0
- package/dist/artifacts/flow-step-tool.d.ts +31 -0
- package/dist/artifacts/flow-step-tool.js +31 -0
- package/dist/artifacts/flow-types.d.ts +3736 -0
- package/dist/artifacts/flow-types.js +463 -0
- package/dist/artifacts/flow-unreached.d.ts +12 -0
- package/dist/artifacts/flow-unreached.js +24 -0
- package/dist/{impact.d.ts → artifacts/impact.d.ts} +271 -103
- package/dist/{impact.js → artifacts/impact.js} +75 -5
- package/dist/artifacts/journal.d.ts +218 -0
- package/dist/artifacts/journal.js +130 -0
- package/dist/artifacts/step-effect.d.ts +29 -0
- package/dist/artifacts/step-effect.js +28 -0
- package/dist/hooks/hook-events.d.ts +311 -0
- package/dist/hooks/hook-events.js +127 -0
- package/dist/hooks/hooks-entry.d.ts +9 -0
- package/dist/hooks/hooks-entry.js +9 -0
- package/dist/identity/brand.d.ts +102 -0
- package/dist/{brand.js → identity/brand.js} +7 -0
- package/dist/{contract-fingerprint.d.ts → identity/contract-fingerprint.d.ts} +21 -3
- package/dist/{contract-fingerprint.js → identity/contract-fingerprint.js} +22 -4
- package/dist/{document-identity.d.ts → identity/document-identity.d.ts} +4 -5
- package/dist/{document-identity.js → identity/document-identity.js} +4 -5
- package/dist/{source-constants.d.ts → identity/source-constants.d.ts} +4 -4
- package/dist/{source-constants.js → identity/source-constants.js} +4 -4
- package/dist/index.d.ts +57 -43
- package/dist/index.js +66 -45
- package/dist/onboarding.d.ts +114 -0
- package/dist/onboarding.js +141 -0
- package/dist/realm/registry.d.ts +212 -0
- package/dist/realm/registry.js +302 -0
- package/dist/{dev-server-registry.d.ts → registry/dev-server-registry.d.ts} +6 -7
- package/dist/{dev-server-registry.js → registry/dev-server-registry.js} +28 -19
- package/dist/{project-registry.d.ts → registry/project-registry.d.ts} +5 -5
- package/dist/{project-registry.js → registry/project-registry.js} +5 -5
- package/dist/schema/command-name.json +31 -0
- package/dist/schema/event-payloads.json +795 -0
- package/dist/schema/hello-message.json +70 -2
- package/dist/schema/reticle-message.json +70 -2
- package/dist/telemetry-entry.d.ts +1 -1
- package/dist/telemetry-entry.js +1 -1
- package/dist/telemetry-feedback.d.ts +15 -16
- package/dist/telemetry-feedback.js +11 -12
- package/dist/telemetry-license.d.ts +1 -1
- package/dist/telemetry-license.js +1 -1
- package/dist/telemetry-refusal.d.ts +11 -11
- package/dist/telemetry-refusal.js +7 -8
- package/dist/telemetry-session.d.ts +51 -59
- package/dist/telemetry-session.js +47 -55
- package/dist/telemetry.d.ts +306 -222
- package/dist/telemetry.js +112 -99
- package/dist/tour-entry.d.ts +10 -0
- package/dist/tour-entry.js +10 -0
- package/dist/tour.d.ts +125 -0
- package/dist/tour.js +165 -0
- package/dist/{consequence.d.ts → verdict/consequence.d.ts} +32 -15
- package/dist/{consequence.js → verdict/consequence.js} +9 -31
- package/dist/{finding-fingerprint.js → verdict/finding-fingerprint.js} +1 -1
- package/dist/{findings.d.ts → verdict/findings.d.ts} +86 -39
- package/dist/{findings.js → verdict/findings.js} +103 -49
- package/dist/{instrumentation-gap.d.ts → verdict/instrumentation-gap.d.ts} +7 -14
- package/dist/{instrumentation-gap.js → verdict/instrumentation-gap.js} +7 -15
- package/dist/{intent.d.ts → verdict/intent.d.ts} +35 -46
- package/dist/{intent.js → verdict/intent.js} +11 -22
- package/dist/verdict/revision.d.ts +44 -0
- package/dist/verdict/revision.js +53 -0
- package/dist/{run-context.d.ts → verdict/run-context.d.ts} +13 -34
- package/dist/{run-context.js → verdict/run-context.js} +15 -36
- package/dist/{security.js → verdict/security.js} +12 -21
- package/dist/{verification-run.d.ts → verdict/verification-run.d.ts} +381 -105
- package/dist/{verification-run.js → verdict/verification-run.js} +157 -21
- package/dist/{verified-constants.d.ts → verdict/verified-constants.d.ts} +34 -13
- package/dist/{verified-constants.js → verdict/verified-constants.js} +34 -13
- package/dist/{verify-progress.d.ts → verdict/verify-progress.d.ts} +18 -22
- package/dist/{verify-progress.js → verdict/verify-progress.js} +6 -10
- package/dist/wire/channel.d.ts +46 -0
- package/dist/wire/channel.js +95 -0
- package/dist/{constants.d.ts → wire/constants/constants.d.ts} +179 -28
- package/dist/{constants.js → wire/constants/constants.js} +199 -28
- package/dist/{session-constants.d.ts → wire/constants/session-constants.d.ts} +23 -2
- package/dist/{session-constants.js → wire/constants/session-constants.js} +23 -2
- package/dist/{desktop-contract.js → wire/desktop-contract.js} +1 -1
- package/dist/{event-classification.js → wire/event-classification.js} +1 -1
- package/dist/{event-payloads.d.ts → wire/event-payloads.d.ts} +72 -13
- package/dist/{event-payloads.js → wire/event-payloads.js} +23 -3
- package/dist/{event-priority.d.ts → wire/event-priority.d.ts} +1 -4
- package/dist/{event-priority.js → wire/event-priority.js} +2 -5
- package/dist/{global-press.js → wire/global-press.js} +1 -1
- package/dist/{messages.d.ts → wire/messages.d.ts} +240 -48
- package/dist/{messages.js → wire/messages.js} +68 -5
- package/dist/wire/narrow.d.ts +39 -0
- package/dist/wire/narrow.js +45 -0
- package/dist/{net.d.ts → wire/net.d.ts} +36 -13
- package/dist/{net.js → wire/net.js} +36 -13
- package/dist/wire/platform.d.ts +37 -0
- package/dist/wire/platform.js +36 -0
- package/dist/{redaction.js → wire/redaction.js} +12 -12
- package/dist/wire/snapshot-tree.d.ts +33 -0
- package/dist/wire/snapshot-tree.js +43 -0
- package/dist/wire/tool-names.d.ts +133 -0
- package/dist/wire/tool-names.js +142 -0
- package/dist/{toon.js → wire/toon.js} +1 -1
- package/dist/{types.d.ts → wire/types.d.ts} +77 -76
- package/dist/{types.js → wire/types.js} +4 -3
- package/dist/{no-session-reason.d.ts → words/no-session-reason.d.ts} +7 -3
- package/dist/{no-session-reason.js → words/no-session-reason.js} +7 -3
- package/dist/{notices.d.ts → words/notices.d.ts} +8 -12
- package/dist/{notices.js → words/notices.js} +8 -12
- package/package.json +16 -7
- package/dist/brand.d.ts +0 -49
- package/dist/flow-types.d.ts +0 -1711
- package/dist/flow-types.js +0 -247
- package/dist/journal.d.ts +0 -122
- package/dist/journal.js +0 -57
- package/dist/{impact-savings.d.ts → artifacts/impact-savings.d.ts} +0 -0
- package/dist/{impact-savings.js → artifacts/impact-savings.js} +0 -0
- package/dist/{edit-epoch.d.ts → identity/edit-epoch.d.ts} +0 -0
- package/dist/{edit-epoch.js → identity/edit-epoch.js} +0 -0
- package/dist/{project-id.d.ts → identity/project-id.d.ts} +0 -0
- package/dist/{project-id.js → identity/project-id.js} +0 -0
- package/dist/{daemon-registry.d.ts → registry/daemon-registry.d.ts} +0 -0
- package/dist/{daemon-registry.js → registry/daemon-registry.js} +0 -0
- package/dist/{finding-fingerprint.d.ts → verdict/finding-fingerprint.d.ts} +0 -0
- package/dist/{security.d.ts → verdict/security.d.ts} +0 -0
- package/dist/{desktop-contract.d.ts → wire/desktop-contract.d.ts} +0 -0
- package/dist/{event-classification.d.ts → wire/event-classification.d.ts} +0 -0
- package/dist/{global-press.d.ts → wire/global-press.d.ts} +0 -0
- package/dist/{redaction.d.ts → wire/redaction.d.ts} +0 -0
- package/dist/{state-select.d.ts → wire/state-select.d.ts} +0 -0
- package/dist/{state-select.js → wire/state-select.js} +0 -0
- package/dist/{toon.d.ts → wire/toon.d.ts} +0 -0
- package/dist/{browser-misdirect.d.ts → words/browser-misdirect.d.ts} +0 -0
- package/dist/{browser-misdirect.js → words/browser-misdirect.js} +0 -0
- package/dist/{unreachable-notice.d.ts → words/unreachable-notice.d.ts} +0 -0
- package/dist/{unreachable-notice.js → words/unreachable-notice.js} +0 -0
- package/dist/{upgrade.d.ts → words/upgrade.d.ts} +2 -2
- /package/dist/{upgrade.js → words/upgrade.js} +0 -0
|
@@ -37,6 +37,17 @@ export declare const STATUS_PATH = "/status";
|
|
|
37
37
|
*/
|
|
38
38
|
export declare const DRIVE_PATH = "/drive";
|
|
39
39
|
export declare const RETICLE_PROTOCOL_VERSION = 1;
|
|
40
|
+
/**
|
|
41
|
+
* The oldest protocol version this build still talks to.
|
|
42
|
+
*
|
|
43
|
+
* A range rather than a single number. An exact door refuses a peer one version out, which is
|
|
44
|
+
* correct when both sides ship together and wrong the moment anything else implements this -- an
|
|
45
|
+
* SDK a user has not upgraded yet is not an incompatible SDK.
|
|
46
|
+
*
|
|
47
|
+
* Equal to the current version today, so nothing changes yet. It exists so that raising the current
|
|
48
|
+
* version is a decision about what to keep supporting, rather than an automatic break.
|
|
49
|
+
*/
|
|
50
|
+
export declare const RETICLE_MIN_PROTOCOL_VERSION = 1;
|
|
40
51
|
/**
|
|
41
52
|
* The host a CLIENT names when it dials the bridge, as opposed to the address the bridge BINDS.
|
|
42
53
|
*
|
|
@@ -67,6 +78,15 @@ export declare function bridgeWsUrl(port?: number, host?: string): string;
|
|
|
67
78
|
export declare const RETICLE_URL_PARAM: {
|
|
68
79
|
readonly SESSION: "__reticle_session";
|
|
69
80
|
readonly PROJECT: "__reticle_project";
|
|
81
|
+
/**
|
|
82
|
+
* "Reticle opened this page for itself" — and nothing more.
|
|
83
|
+
*
|
|
84
|
+
* Deliberately NOT the session stamp. `resolveConnectIdentity` reads SESSION as the session id
|
|
85
|
+
* when the app names none, so marking a drive with it would rename every driven session to one
|
|
86
|
+
* shared constant and make two concurrent drives collide. This carries the one fact the page
|
|
87
|
+
* needs (nobody is sitting in front of it) without touching identity.
|
|
88
|
+
*/
|
|
89
|
+
readonly OPENED: "__reticle_opened";
|
|
70
90
|
};
|
|
71
91
|
/** The loopback bind address. The daemon/bridge bind here by default — never expose Reticle off-host. */
|
|
72
92
|
export declare const LOOPBACK_HOST = "127.0.0.1";
|
|
@@ -144,32 +164,90 @@ export declare const ReticleEnv: {
|
|
|
144
164
|
readonly RECONNECT_ATTEMPTS: "RETICLE_RECONNECT_ATTEMPTS";
|
|
145
165
|
/** Quiet window before an abandoned MCP stdio proxy exits; `0` disables the watcher. */
|
|
146
166
|
readonly MCP_PROXY_IDLE: "RETICLE_MCP_PROXY_IDLE_MS";
|
|
167
|
+
/**
|
|
168
|
+
* API key for the harness — the model that drives the app when no coding agent is in the loop.
|
|
169
|
+
*
|
|
170
|
+
* The standard Anthropic name, on purpose: a machine that can already run a coding agent can
|
|
171
|
+
* already run the harness, with nothing to configure. Absent ⇒ the harness is simply unavailable
|
|
172
|
+
* and every other part of Reticle is unaffected.
|
|
173
|
+
*/
|
|
174
|
+
readonly HARNESS_KEY: "ANTHROPIC_API_KEY";
|
|
175
|
+
/** Model the harness drives with. Defaults to a small one — see `DEFAULT_HARNESS_MODEL`. */
|
|
176
|
+
readonly HARNESS_MODEL: "RETICLE_HARNESS_MODEL";
|
|
177
|
+
/** Base URL for the harness's model API, for a proxy or a gateway. */
|
|
178
|
+
readonly HARNESS_BASE_URL: "RETICLE_HARNESS_BASE_URL";
|
|
179
|
+
/** Hard ceiling on harness model turns in one drive. Bounds cost, not value. */
|
|
180
|
+
readonly HARNESS_MAX_STEPS: "RETICLE_HARNESS_MAX_STEPS";
|
|
181
|
+
/**
|
|
182
|
+
* Which model backs the harness driver: `anthropic` (the default) or `jev`.
|
|
183
|
+
*
|
|
184
|
+
* Two drivers exist because the driver's job turns out not to need a text generator. It picks the
|
|
185
|
+
* next action and says what it expects; the verdict is decided afterwards by the engine, with no
|
|
186
|
+
* model anywhere near it. A System One model answers typed questions against a state, which is
|
|
187
|
+
* exactly that job and none of the rest, so it can drive without being able to generate a
|
|
188
|
+
* sentence. Unset keeps the existing behaviour for everybody who has not asked for this.
|
|
189
|
+
*/
|
|
190
|
+
readonly HARNESS_DRIVER: "RETICLE_HARNESS_DRIVER";
|
|
191
|
+
/**
|
|
192
|
+
* A direct Jev key, for this repo's own benchmarks and for anyone holding a TypeSafe account.
|
|
193
|
+
*
|
|
194
|
+
* Users are not expected to have one. The ordinary path is the key they already minted on the
|
|
195
|
+
* platform (`RETICLE_API_KEY`), which reaches Jev through the proxy at `RETICLE_CLOUD_URL` —
|
|
196
|
+
* this variable is the escape hatch that skips it, and it takes precedence when both are set so
|
|
197
|
+
* that a developer debugging the upstream is never silently talking to the proxy instead.
|
|
198
|
+
*/
|
|
199
|
+
readonly HARNESS_JEV_KEY: "JEV_API_KEY";
|
|
200
|
+
/** Base URL for the Jev API, for a proxy or a gateway. Defaults to TypeSafe's own endpoint. */
|
|
201
|
+
readonly HARNESS_JEV_URL: "RETICLE_HARNESS_JEV_URL";
|
|
202
|
+
/** A direct OpenAI key. As with Jev, the ordinary path is the platform key and its proxy. */
|
|
203
|
+
readonly HARNESS_OPENAI_KEY: "OPENAI_API_KEY";
|
|
204
|
+
/** Model the OpenAI driver uses. Defaults to a small one — see `DEFAULT_OPENAI_MODEL`. */
|
|
205
|
+
readonly HARNESS_OPENAI_MODEL: "RETICLE_HARNESS_OPENAI_MODEL";
|
|
206
|
+
/**
|
|
207
|
+
* The API key minted on the platform, and the host it belongs to.
|
|
208
|
+
*
|
|
209
|
+
* Read through `apiKeyFrom()`, never directly — see the note on that function for why there are
|
|
210
|
+
* two names for one key and why neither may be dropped.
|
|
211
|
+
*/
|
|
212
|
+
readonly API_KEY: "RETICLE_API_KEY";
|
|
213
|
+
/** The name this key had until 2026-09. Still honoured; see `apiKeyFrom()`. */
|
|
214
|
+
readonly CLOUD_KEY: "RETICLE_CLOUD_KEY";
|
|
215
|
+
readonly CLOUD_URL: "RETICLE_CLOUD_URL";
|
|
147
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
* The platform API key, whichever name it arrives under.
|
|
219
|
+
*
|
|
220
|
+
* `RETICLE_API_KEY` is the name. `RETICLE_CLOUD_KEY` is what it was called until 2026-09, and it
|
|
221
|
+
* keeps working — not out of politeness, but because the console printed that name to every user
|
|
222
|
+
* who ever connected a project, so it is exported in shells and CI configs we cannot see or edit.
|
|
223
|
+
* A rename that silently stops reading the old name does not look like a rename to those people;
|
|
224
|
+
* it looks like the product quietly losing their credentials.
|
|
225
|
+
*
|
|
226
|
+
* ONE function, because the alternative is each caller remembering both names and one of them
|
|
227
|
+
* forgetting. That is not hypothetical: this key was read inline in several places before it was
|
|
228
|
+
* named here at all, which is exactly how a rename half-lands.
|
|
229
|
+
*
|
|
230
|
+
* The new name wins when both are set, so a user migrating can export the new one and confirm it
|
|
231
|
+
* works before removing the old.
|
|
232
|
+
*/
|
|
233
|
+
export declare function apiKeyFrom(env: Record<string, string | undefined>): string | undefined;
|
|
148
234
|
/** Hard transport bounds shared by the browser and bridge. */
|
|
149
235
|
export declare const TRANSPORT_LIMITS: {
|
|
150
236
|
readonly MAX_MESSAGE_BYTES: number;
|
|
151
237
|
/**
|
|
152
238
|
* Inbound events per second before the bridge SAMPLES rather than records everything.
|
|
153
239
|
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* catches false greens is blindest exactly there — but landing that on the first drive after an
|
|
159
|
-
* install, recoverable only by knowing an environment variable exists and inventing a number for
|
|
160
|
-
* it, is the worst possible place to spend the honesty.
|
|
161
|
-
*
|
|
162
|
-
* 20000 is the value that was measured to work on the page that reported it. The cap exists to stop
|
|
163
|
-
* a PATHOLOGICAL page (an animation loop firing DOM mutations every frame), not to throttle a busy
|
|
164
|
-
* one, and the ceiling it has to defend is cheap: the daemon is on the same machine and a typical
|
|
165
|
-
* event is a few hundred bytes, so this is single-digit MB/s over loopback.
|
|
240
|
+
* The cap exists to stop a PATHOLOGICAL page (an animation loop firing DOM mutations every frame),
|
|
241
|
+
* not to throttle a busy one: an ordinary React app with an active query cache passes 1000/s, and a
|
|
242
|
+
* sampled window cannot support a verdict, so too low a cap answers `unknown` with
|
|
243
|
+
* `unclean_capture` on the first `act_and_wait` after an install (#316).
|
|
166
244
|
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
245
|
+
* The ceiling it defends is cheap — the daemon is on the same machine and a typical event is a few
|
|
246
|
+
* hundred bytes, so 20000/s is single-digit MB/s over loopback. Raising it does not raise what a
|
|
247
|
+
* runaway page can make the bridge HOLD: memory is bounded independently by the ring buffer, which
|
|
248
|
+
* evicts on `RING_BUFFER_DEFAULTS.MAX_BYTES` (this same constant through that alias) as well as on
|
|
249
|
+
* a count and an age. The rate cap defends parse cost, the ring buffer defends memory, and they are
|
|
250
|
+
* not substitutes.
|
|
173
251
|
*/
|
|
174
252
|
readonly MAX_MESSAGES_PER_SECOND: 20000;
|
|
175
253
|
readonly MAX_SESSIONS: 32;
|
|
@@ -180,6 +258,7 @@ export declare const TRANSPORT_LIMITS: {
|
|
|
180
258
|
readonly MAX_URL_LENGTH: 4096;
|
|
181
259
|
readonly MAX_TITLE_LENGTH: 512;
|
|
182
260
|
readonly MAX_ADAPTERS: 32;
|
|
261
|
+
readonly MAX_CONTRACT_NAMES: 128;
|
|
183
262
|
readonly MAX_ADAPTER_NAME_LENGTH: 128;
|
|
184
263
|
readonly MAX_TOKEN_LENGTH: 512;
|
|
185
264
|
readonly MAX_COMMAND_ID_LENGTH: 128;
|
|
@@ -222,12 +301,30 @@ export declare const ReticleDir: {
|
|
|
222
301
|
/**
|
|
223
302
|
* the user's own record of what Reticle has done for them — .reticle/impact.json.
|
|
224
303
|
*
|
|
225
|
-
* Local only, never uploaded, and deliberately NOT part of telemetry: telemetry answers
|
|
226
|
-
*
|
|
304
|
+
* Local only, never uploaded, and deliberately NOT part of telemetry: telemetry answers questions
|
|
305
|
+
* about the product; this answers the user's question about their own work.
|
|
227
306
|
*/
|
|
228
307
|
readonly IMPACT_FILE: "impact.json";
|
|
229
308
|
/** what changes were SUPPOSED to make true —.reticle/intent.json (git-checked, reviewed) */
|
|
230
309
|
readonly INTENT_FILE: "intent.json";
|
|
310
|
+
/**
|
|
311
|
+
* The sharded form of the same ledger —.reticle/intent/ (git-checked, for the same reason).
|
|
312
|
+
*
|
|
313
|
+
* Named here rather than inline at the store that writes it, because the partition guard over
|
|
314
|
+
* this object is what decides whether a name Reticle creates is committed or ignored. A directory
|
|
315
|
+
* spelled as a free string somewhere else is one the guard cannot see, so nobody ever makes that
|
|
316
|
+
* decision: `intent/` was written into users' repositories for that reason alone, neither
|
|
317
|
+
* classified nor ignored.
|
|
318
|
+
*/
|
|
319
|
+
readonly INTENT_SUBDIR: "intent";
|
|
320
|
+
/**
|
|
321
|
+
* what a drive types into a field, keyed by the field's label —.reticle/fill-values.json.
|
|
322
|
+
*
|
|
323
|
+
* Git-checked on purpose. A generated value is paid for once and then belongs to the project: the
|
|
324
|
+
* next drive reuses it for free, a replay sends exactly what the recording sent, and a human who
|
|
325
|
+
* dislikes one can edit the file rather than argue with a model.
|
|
326
|
+
*/
|
|
327
|
+
readonly FILL_VALUES_FILE: "fill-values.json";
|
|
231
328
|
/** opt-in pixel baselines —.reticle/visual/<name>.png + <name>.diff.png. */
|
|
232
329
|
readonly VISUAL_SUBDIR: "visual";
|
|
233
330
|
/** verification-run artifacts —.reticle/runs/<runId>.json (the OEM/CI-consumable verdict). */
|
|
@@ -240,6 +337,15 @@ export declare const ReticleDir: {
|
|
|
240
337
|
readonly JOURNAL_EVENTS_FILE: "events.jsonl";
|
|
241
338
|
/** append-only action ledger inside a session dir (one JournalAction per line). */
|
|
242
339
|
readonly JOURNAL_ACTIONS_FILE: "actions.jsonl";
|
|
340
|
+
/**
|
|
341
|
+
* the event ledger's closure report — .reticle/sessions/<id>/events.closed.json.
|
|
342
|
+
*
|
|
343
|
+
* Written once, when the byte ceiling refuses a batch, and never removed. Its PRESENCE is what
|
|
344
|
+
* makes the ceiling durable: a session id survives a reload, so the next connection reopens the
|
|
345
|
+
* same ledger with an empty memory, and a bound that lives only in one object's field is a bound
|
|
346
|
+
* per connection. Its CONTENTS are the loss report a time-windowed query cannot filter away.
|
|
347
|
+
*/
|
|
348
|
+
readonly JOURNAL_EVENTS_CLOSED_FILE: "events.closed.json";
|
|
243
349
|
/** learned expected-envelopes per route, accumulated across runs (the deviation-report baseline). */
|
|
244
350
|
readonly ENVELOPES_FILE: "envelopes.json";
|
|
245
351
|
/** learned ambient (action-less churn) region map — excluded from settle/summaries/envelopes. */
|
|
@@ -266,6 +372,17 @@ export declare const ReticleDir: {
|
|
|
266
372
|
readonly ISSUES_FILE: "issues.json";
|
|
267
373
|
/** Per-flow assertion tiers recorded on each PASSING replay — the gate's anti-downgrade baseline. */
|
|
268
374
|
readonly TIERS_FILE: "assertion-tiers.json";
|
|
375
|
+
/**
|
|
376
|
+
* what to run when something happens — .reticle/hooks.json. Git-checked on purpose: a hook is a
|
|
377
|
+
* decision the whole team shares, the same way a git hook or a package script is, and one that
|
|
378
|
+
* only exists on the machine that wrote it is a rule nobody else is following.
|
|
379
|
+
*
|
|
380
|
+
* It names COMMANDS, so it is exactly as trusted as `package.json` scripts in the same repository
|
|
381
|
+
* and no more: opening a repo does not run them, and Reticle runs one only when the event it is
|
|
382
|
+
* attached to actually happens. The event payload is handed over on stdin, never interpolated into
|
|
383
|
+
* the command line, so a defect's own text can never become part of a command.
|
|
384
|
+
*/
|
|
385
|
+
readonly HOOKS_FILE: "hooks.json";
|
|
269
386
|
/**
|
|
270
387
|
* Auto-provisioned bridge pairing token, stored at ~/.reticle/pairing-token (mode 0600). Written by
|
|
271
388
|
* the daemon, read Node-side by the build plugins to inject into connect. A browser sandbox cannot
|
|
@@ -328,9 +445,7 @@ export declare const ContractReadError: {
|
|
|
328
445
|
readonly MALFORMED: "contract-malformed";
|
|
329
446
|
};
|
|
330
447
|
export type ContractReadError = (typeof ContractReadError)[keyof typeof ContractReadError];
|
|
331
|
-
/**
|
|
332
|
-
export * from './flow-constants.js';
|
|
333
|
-
/** Bounds for the per-session ring buffer (see plan/02-architecture.md). */
|
|
448
|
+
/** Bounds for the per-session ring buffer. */
|
|
334
449
|
export declare const RING_BUFFER_DEFAULTS: {
|
|
335
450
|
readonly MAX_EVENTS: 2000;
|
|
336
451
|
readonly MAX_AGE_MS: 60000;
|
|
@@ -480,6 +595,15 @@ export declare const RETICLE_HYDRATION_ERROR_SIGNAL = "reticle:hydration-error";
|
|
|
480
595
|
/** The observation channel a TRUNCATED event names, so downstream knows WHICH data is incomplete. */
|
|
481
596
|
export declare const TruncationChannel: {
|
|
482
597
|
readonly DOM: "dom";
|
|
598
|
+
/**
|
|
599
|
+
* The durable per-session event ledger stopped accepting writes at its byte ceiling.
|
|
600
|
+
*
|
|
601
|
+
* The only channel here that names a SERVER-side refusal rather than a browser-side batch cap, and
|
|
602
|
+
* the only one that is terminal: `dom` truncates one flood and keeps observing, while this says the
|
|
603
|
+
* file is closed and every event after it is absent from disk. A reader that finds it knows a
|
|
604
|
+
* negative answer drawn from the journal may be "the ledger was full", not "it never happened".
|
|
605
|
+
*/
|
|
606
|
+
readonly JOURNAL: "journal";
|
|
483
607
|
};
|
|
484
608
|
export type TruncationChannel = (typeof TruncationChannel)[keyof typeof TruncationChannel];
|
|
485
609
|
/**
|
|
@@ -559,7 +683,7 @@ export declare const DriveErrorCode: {
|
|
|
559
683
|
export type DriveErrorCode = (typeof DriveErrorCode)[keyof typeof DriveErrorCode];
|
|
560
684
|
/** Human-facing message when the optional playwright dep is absent. */
|
|
561
685
|
export declare const DRIVE_PLAYWRIGHT_MISSING_MSG = "reticle drive needs the optional 'playwright' package \u2014 install it: pnpm add -D playwright && npx playwright install chromium";
|
|
562
|
-
/** Actions the executor can perform against a ref
|
|
686
|
+
/** Actions the executor can perform against a ref. */
|
|
563
687
|
/**
|
|
564
688
|
* The console levels an agent can filter by, DERIVED from the console EventTypes rather than
|
|
565
689
|
* retyped. `reticle_console { level }` matches by building `console.${level}`, so any list written
|
|
@@ -584,7 +708,34 @@ export declare const ActionType: {
|
|
|
584
708
|
readonly PRESS: "press";
|
|
585
709
|
readonly UPLOAD: "upload";
|
|
586
710
|
readonly SCROLL_INTO_VIEW: "scrollIntoView";
|
|
711
|
+
/**
|
|
712
|
+
* Scroll a container (or the document) by a delta, in either axis and EITHER DIRECTION.
|
|
713
|
+
*
|
|
714
|
+
* `scrollIntoView` puts a known element on screen; this is the gesture for looking around when you
|
|
715
|
+
* do not know what you are looking for yet — back up to what scrolled past, or move sideways on a
|
|
716
|
+
* wide table. Until now the only scroll available stepped DOWN, so a page could be walked in one
|
|
717
|
+
* direction and never back, and `inspect` reported `scrollLeft`/`scrollWidth` that nothing could act on.
|
|
718
|
+
*/
|
|
719
|
+
readonly SCROLL: "scroll";
|
|
587
720
|
readonly DRAG: "drag";
|
|
721
|
+
/**
|
|
722
|
+
* A TOUCH tap: pointerdown(touch) → touchstart → touchend → pointerup → click.
|
|
723
|
+
*
|
|
724
|
+
* Not a click with another name. A handler bound to `touchstart`, or one that branches on
|
|
725
|
+
* `event.pointerType`, never runs for a mouse click — so mobile-web behaviour, swipe/press
|
|
726
|
+
* affordances and touch-only controls were undriveable. `args.holdMs` makes it a LONG PRESS, the
|
|
727
|
+
* gesture behind context menus and reorder handles on touch.
|
|
728
|
+
*/
|
|
729
|
+
readonly TAP: "tap";
|
|
730
|
+
/**
|
|
731
|
+
* Page zoom, as a fraction (1 = 100%).
|
|
732
|
+
*
|
|
733
|
+
* Real browser zoom is not scriptable from inside the page, so this needs a driven browser and
|
|
734
|
+
* REFUSES without one rather than faking it with CSS — see the note on `hover`, which refuses for
|
|
735
|
+
* the same reason. A layout that breaks at 200% is a real and common defect; a CSS transform that
|
|
736
|
+
* merely looks like zoom would report it caught while the layout viewport never changed.
|
|
737
|
+
*/
|
|
738
|
+
readonly ZOOM: "zoom";
|
|
588
739
|
readonly WEBMCP: "webmcp";
|
|
589
740
|
};
|
|
590
741
|
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
@@ -620,7 +771,7 @@ export interface ComponentStateResult {
|
|
|
620
771
|
note: string;
|
|
621
772
|
};
|
|
622
773
|
}
|
|
623
|
-
/** Element states the assertion engine can check
|
|
774
|
+
/** Element states the assertion engine can check. */
|
|
624
775
|
export declare const ElementState: {
|
|
625
776
|
readonly VISIBLE: "visible";
|
|
626
777
|
readonly HIDDEN: "hidden";
|
|
@@ -640,7 +791,7 @@ export declare const ElementState: {
|
|
|
640
791
|
readonly IN_VIEWPORT: "inViewport";
|
|
641
792
|
};
|
|
642
793
|
export type ElementState = (typeof ElementState)[keyof typeof ElementState];
|
|
643
|
-
/** Query strategies, aligned with Testing Library semantics
|
|
794
|
+
/** Query strategies, aligned with Testing Library semantics. */
|
|
644
795
|
export declare const QueryBy: {
|
|
645
796
|
readonly ROLE: "role";
|
|
646
797
|
readonly TEXT: "text";
|
|
@@ -680,7 +831,7 @@ export declare const ReticleCommand: {
|
|
|
680
831
|
/**
|
|
681
832
|
* Bridge -> browser: the user's own impact record, so the HUD can show what Reticle has done for
|
|
682
833
|
* them without the page asking for it. `args: { snapshot: ImpactSnapshot }`. Local data on a
|
|
683
|
-
* local socket - it is the same file the report is stored in, not a fetch
|
|
834
|
+
* local socket - it is the same file the report is stored in, not a network fetch.
|
|
684
835
|
*/
|
|
685
836
|
readonly IMPACT: "impact";
|
|
686
837
|
/**
|
|
@@ -711,7 +862,7 @@ export declare const PresenterMode: {
|
|
|
711
862
|
readonly ACTING: "acting";
|
|
712
863
|
};
|
|
713
864
|
export type PresenterMode = (typeof PresenterMode)[keyof typeof PresenterMode];
|
|
714
|
-
/** Snapshot rendering modes
|
|
865
|
+
/** Snapshot rendering modes. */
|
|
715
866
|
export declare const SnapshotMode: {
|
|
716
867
|
readonly FULL: "full";
|
|
717
868
|
readonly INTERACTIVE: "interactive";
|