@reticlehq/core 3.6.0 → 3.7.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/artifacts-entry.d.ts +2 -0
- package/dist/artifacts/artifacts-entry.js +2 -0
- package/dist/artifacts/drive-script.d.ts +158 -52
- package/dist/artifacts/drive-script.js +24 -1
- package/dist/artifacts/flow-constants.d.ts +18 -0
- package/dist/artifacts/flow-constants.js +20 -0
- package/dist/artifacts/flow-results.d.ts +450 -0
- package/dist/artifacts/flow-results.js +1 -0
- package/dist/artifacts/flow-types.d.ts +25 -437
- package/dist/artifacts/flow-types.js +5 -2
- package/dist/artifacts/harness-credits.d.ts +39 -0
- package/dist/artifacts/harness-credits.js +69 -0
- package/dist/artifacts/harness-map.d.ts +98 -0
- package/dist/artifacts/harness-map.js +36 -0
- package/dist/artifacts/impact.d.ts +354 -145
- package/dist/artifacts/impact.js +66 -48
- package/dist/artifacts/journal.d.ts +56 -5
- package/dist/artifacts/journal.js +26 -0
- package/dist/artifacts/screenshot-upload.d.ts +51 -0
- package/dist/artifacts/screenshot-upload.js +26 -0
- package/dist/hooks/hook-events.d.ts +4 -4
- package/dist/hud-entry.d.ts +1 -0
- package/dist/hud-entry.js +2 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/onboarding.d.ts +8 -0
- package/dist/onboarding.js +6 -0
- package/dist/realm/registry.js +19 -1
- package/dist/schema/command-message.json +30 -0
- package/dist/schema/command-name.json +3 -1
- package/dist/schema/event-payloads.json +40 -2
- package/dist/schema/reticle-message.json +30 -0
- package/dist/telemetry-bug.d.ts +169 -0
- package/dist/telemetry-bug.js +123 -0
- package/dist/telemetry-entry.d.ts +1 -0
- package/dist/telemetry-entry.js +1 -0
- package/dist/telemetry-feedback.d.ts +2 -2
- package/dist/telemetry-refusal.d.ts +2 -2
- package/dist/telemetry-session.d.ts +74 -0
- package/dist/telemetry-session.js +54 -0
- package/dist/telemetry-signals.d.ts +339 -0
- package/dist/telemetry-signals.js +138 -0
- package/dist/telemetry.d.ts +300 -254
- package/dist/telemetry.js +40 -115
- package/dist/verdict/disparity.d.ts +105 -0
- package/dist/verdict/disparity.js +40 -0
- package/dist/verdict/findings.d.ts +6 -0
- package/dist/verdict/findings.js +9 -0
- package/dist/verdict/instrumentation-coverage.d.ts +115 -0
- package/dist/verdict/instrumentation-coverage.js +226 -0
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +19 -5
- package/dist/verdict/intent.js +13 -1
- package/dist/verdict/predicate-tree.d.ts +15 -0
- package/dist/verdict/predicate-tree.js +21 -0
- package/dist/verdict/predicate.d.ts +14 -0
- package/dist/verdict/predicate.js +87 -3
- package/dist/verdict/security.d.ts +25 -0
- package/dist/verdict/security.js +82 -0
- package/dist/verdict/verification-run.d.ts +620 -32
- package/dist/verdict/verification-run.js +82 -0
- package/dist/wire/constants/constants.d.ts +15 -16
- package/dist/wire/constants/constants.js +16 -17
- package/dist/wire/constants/hud-controls.js +17 -5
- package/dist/wire/constants/hud-use.d.ts +29 -4
- package/dist/wire/constants/hud-use.js +26 -4
- package/dist/wire/constants/mcp-wire.d.ts +10 -0
- package/dist/wire/constants/mcp-wire.js +10 -0
- package/dist/wire/constants/reticle-chrome.d.ts +19 -0
- package/dist/wire/constants/reticle-chrome.js +19 -0
- package/dist/wire/constants/session-constants.d.ts +15 -2
- package/dist/wire/constants/session-constants.js +15 -2
- package/dist/wire/desktop-contract.d.ts +8 -0
- package/dist/wire/desktop-contract.js +11 -0
- package/dist/wire/event-payloads.d.ts +56 -4
- package/dist/wire/event-payloads.js +17 -0
- package/dist/wire/messages.d.ts +105 -32
- package/dist/wire/messages.js +9 -1
- package/dist/wire/platform-link.d.ts +77 -0
- package/dist/wire/platform-link.js +45 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +19 -6
- package/dist/wire/types.js +5 -0
- package/dist/words/notices.d.ts +1 -1
- package/dist/words/notices.js +1 -1
- package/dist/words/upgrade.js +1 -1
- package/dist/words/writing-rule.d.ts +14 -0
- package/dist/words/writing-rule.js +17 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ import { z } from 'zod';
|
|
|
13
13
|
import { SubjectRefSchema } from 'open-verification';
|
|
14
14
|
import { PredicateKind } from './consequence.js';
|
|
15
15
|
import { Verified } from './verified-constants.js';
|
|
16
|
+
import { RunDisparitySchema } from './disparity.js';
|
|
16
17
|
/** Schema version stamped into every run file so a reader can reject/upgrade old artifacts. */
|
|
17
18
|
export const RUN_FILE_VERSION = 3;
|
|
18
19
|
/**
|
|
@@ -90,6 +91,17 @@ export const RunFlowStatus = {
|
|
|
90
91
|
SKIPPED: 'skipped',
|
|
91
92
|
HEALED: 'healed',
|
|
92
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* What one drive came to, and the only place that is decided. A check that came back no is the only
|
|
96
|
+
* failure. Checks nobody could decide, or a goal the model judged missed with no check against it,
|
|
97
|
+
* are NOT PROVED (`skipped`): undecided evidence calls for a better check, never a code change, and
|
|
98
|
+
* a drive with nothing failed was reported "1 broken" before this rule was one rule.
|
|
99
|
+
*/
|
|
100
|
+
export function driveFlowStatus(checks) {
|
|
101
|
+
if (0 < checks.failed)
|
|
102
|
+
return RunFlowStatus.FAIL;
|
|
103
|
+
return 0 < checks.held && false !== checks.goalMet ? RunFlowStatus.PASS : RunFlowStatus.SKIPPED;
|
|
104
|
+
}
|
|
93
105
|
/**
|
|
94
106
|
* The kind of standalone assertion captured outside a flow.
|
|
95
107
|
*
|
|
@@ -195,6 +207,49 @@ export const RunChangedFileSchema = z.object({
|
|
|
195
207
|
export const RUN_STEP_RESULTS_MAX = 200;
|
|
196
208
|
export const RUN_TEXT_MAX = 300;
|
|
197
209
|
export const RUN_RECORDING_MAX_BYTES = 64 * 1024;
|
|
210
|
+
/**
|
|
211
|
+
* Where a step screenshot's pixels came from. `browser` is a real screenshot (CDP, a leased page, or
|
|
212
|
+
* the desktop shell's own window capture); `rendered` is the page drawn in-page by the SDK, which can
|
|
213
|
+
* miss cross-origin images and fonts, so a reader is told it is approximate.
|
|
214
|
+
*/
|
|
215
|
+
export const ScreenshotSource = {
|
|
216
|
+
BROWSER: 'browser',
|
|
217
|
+
RENDERED: 'rendered',
|
|
218
|
+
};
|
|
219
|
+
/** How a step screenshot is taken and kept — shared by the daemon, the SDK and the platform. */
|
|
220
|
+
export const STEP_SCREENSHOT = {
|
|
221
|
+
/** `.reticle/visual/runs/<runId>/<seq>-<tool>.jpg` */
|
|
222
|
+
RUNS_DIR: 'runs',
|
|
223
|
+
/** One line per landed screenshot, beside the images: what the run artifact and the upload read. */
|
|
224
|
+
MANIFEST_FILE: 'shots.jsonl',
|
|
225
|
+
JPEG_QUALITY: 0.7,
|
|
226
|
+
MAX_SIDE_PX: 1600,
|
|
227
|
+
/** The platform refuses more than this for one run, so the daemon stops taking them there. */
|
|
228
|
+
MAX_PER_RUN: 300,
|
|
229
|
+
/** The platform refuses an image larger than this, decoded. */
|
|
230
|
+
MAX_BYTES: 1.5 * 1024 * 1024,
|
|
231
|
+
};
|
|
232
|
+
/** One step's screenshot as a run artifact records it. `file` is relative to the run's directory. */
|
|
233
|
+
export const StepScreenshotSchema = z.object({
|
|
234
|
+
file: z.string(),
|
|
235
|
+
source: z.nativeEnum(ScreenshotSource),
|
|
236
|
+
width: z.number(),
|
|
237
|
+
height: z.number(),
|
|
238
|
+
sha256: z.string(),
|
|
239
|
+
});
|
|
240
|
+
/** Every screenshot a run took, in order — including the actions that produced no verdict. */
|
|
241
|
+
export const RunScreenshotSchema = StepScreenshotSchema.extend({
|
|
242
|
+
seq: z.number(),
|
|
243
|
+
tool: z.string(),
|
|
244
|
+
/** The flow step it belongs to, as `<flow>#<step>`, when it was taken during a replay. */
|
|
245
|
+
step: z.string().optional(),
|
|
246
|
+
/** Taken for a call that produced a verdict — what lets the run pair it with its check. */
|
|
247
|
+
verdict: z.boolean().optional(),
|
|
248
|
+
/** The check this picture is of (see `RunCheck.checkId`), when it could be paired with one. */
|
|
249
|
+
checkId: z.string().optional(),
|
|
250
|
+
/** The journal action it was taken for: how a run pairs it with its check (`RunCheck.actionId`). */
|
|
251
|
+
actionId: z.string().optional(),
|
|
252
|
+
});
|
|
198
253
|
/** One step of a replayed flow, as synced: its outcome and the pages it ran on and led to. */
|
|
199
254
|
export const RunStepResultSchema = z.object({
|
|
200
255
|
step: z.number(),
|
|
@@ -206,6 +261,8 @@ export const RunStepResultSchema = z.object({
|
|
|
206
261
|
error: z.string().optional(),
|
|
207
262
|
/** The drift's reason kind, when the step drifted. */
|
|
208
263
|
drift: z.string().optional(),
|
|
264
|
+
/** What the page looked like when this step's outcome was decided. */
|
|
265
|
+
screenshot: StepScreenshotSchema.optional(),
|
|
209
266
|
});
|
|
210
267
|
/**
|
|
211
268
|
* The flow a run replayed, as recorded: enough to replay it again somewhere else.
|
|
@@ -261,6 +318,13 @@ export const RunCheckSchema = z.object({
|
|
|
261
318
|
* recorded which, and those are different facts about the evidence.
|
|
262
319
|
*/
|
|
263
320
|
declaredBeforeActing: z.boolean().optional(),
|
|
321
|
+
/**
|
|
322
|
+
* What the check required and what it saw, in the engine's words, when it said — "an element
|
|
323
|
+
* matching {"testid":"pay"} in state 'enabled'" and "present, visible, disabled". Without them an
|
|
324
|
+
* issue a CI run found had no Expected or Actual to show. Optional: older runs carry neither.
|
|
325
|
+
*/
|
|
326
|
+
expected: z.string().optional(),
|
|
327
|
+
observed: z.string().optional(),
|
|
264
328
|
/**
|
|
265
329
|
* What kind of evidence bought this answer.
|
|
266
330
|
*
|
|
@@ -286,6 +350,12 @@ export const RunCheckSchema = z.object({
|
|
|
286
350
|
reason: z.string().optional(),
|
|
287
351
|
/** This check's own name, so a later verdict can cite it. See revision.ts. */
|
|
288
352
|
checkId: z.string().optional(),
|
|
353
|
+
/** The journal action that produced it, kept on this machine to pair it with its screenshot. */
|
|
354
|
+
actionId: z.string().optional(),
|
|
355
|
+
/** The declared intent this check was taken for, by id: what it proves, named rather than timed. */
|
|
356
|
+
intent: z.string().optional(),
|
|
357
|
+
/** What the page looked like when this check was decided. */
|
|
358
|
+
screenshot: StepScreenshotSchema.optional(),
|
|
289
359
|
/**
|
|
290
360
|
* The earlier check this one corrects, as `<runId>#<checkId>`.
|
|
291
361
|
*
|
|
@@ -442,6 +512,18 @@ export const ReticleVerificationRunSchema = z.object({
|
|
|
442
512
|
risks: z.array(RunRiskSchema).default([]),
|
|
443
513
|
evidence: VerificationEvidenceSchema,
|
|
444
514
|
repair: z.object({ failurePackets: z.array(RepairPacketSchema).default([]) }).optional(),
|
|
515
|
+
/** What the page looked like after each action, assert and replayed step. Absent on older runs. */
|
|
516
|
+
screenshots: z.array(RunScreenshotSchema).optional(),
|
|
445
517
|
verdict: RunVerdictSchema,
|
|
446
518
|
signature: RunSignatureSchema.optional(),
|
|
519
|
+
/**
|
|
520
|
+
* On a Harness run: each goal the session's coding agent also judged, and how the two compare.
|
|
521
|
+
* Optional and additive; an older platform strips it and keeps the body.
|
|
522
|
+
*/
|
|
523
|
+
disparity: z.array(RunDisparitySchema).optional(),
|
|
524
|
+
/**
|
|
525
|
+
* What the coding agent itself said the session showed (`reticle_session { end, claim }`), kept
|
|
526
|
+
* beside the graded `verdict` so claimed-vs-graded can be compared. Never read as the verdict.
|
|
527
|
+
*/
|
|
528
|
+
agentClaim: z.nativeEnum(VerdictStatus).optional(),
|
|
447
529
|
});
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const RETICLE_DEFAULT_PORT = 4400;
|
|
6
6
|
export declare const RETICLE_WS_PATH = "/reticle";
|
|
7
|
-
|
|
8
|
-
export declare const MCP_SSE_PATH = "/mcp/sse";
|
|
9
|
-
export declare const MCP_MESSAGE_PATH = "/mcp/message";
|
|
7
|
+
export * from './mcp-wire.js';
|
|
10
8
|
/**
|
|
11
9
|
* The name this MCP server answers to — in its own `serverInfo` handshake, and in the registration
|
|
12
10
|
* an installer writes into an agent's config. Those must be the same string or the agent registers
|
|
@@ -196,6 +194,8 @@ export declare const ReticleEnv: {
|
|
|
196
194
|
readonly HARNESS_BASE_URL: "RETICLE_HARNESS_BASE_URL";
|
|
197
195
|
/** Hard ceiling on harness model turns in one drive. Bounds cost, not value. */
|
|
198
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
199
|
/**
|
|
200
200
|
* Which model backs the harness driver: `anthropic` (the default) or `jev`.
|
|
201
201
|
*
|
|
@@ -400,7 +400,6 @@ export declare const ReticleDir: {
|
|
|
400
400
|
readonly JOURNAL_EVENTS_CLOSED_FILE: "events.closed.json";
|
|
401
401
|
/** learned expected-envelopes per route, accumulated across runs (the deviation-report baseline). */
|
|
402
402
|
readonly ENVELOPES_FILE: "envelopes.json";
|
|
403
|
-
/** learned ambient (action-less churn) region map — excluded from settle/summaries/envelopes. */
|
|
404
403
|
readonly AMBIENT_FILE: "ambient.json";
|
|
405
404
|
/** per-flow flake ledger — replay outcomes that decide intermittent-failure quarantine. */
|
|
406
405
|
readonly FLAKE_FILE: "flake.json";
|
|
@@ -410,9 +409,10 @@ export declare const ReticleDir: {
|
|
|
410
409
|
readonly NOTES_FILE: "notes.json";
|
|
411
410
|
/** The user's latest request, as the agent relayed it. Local: it is the user's own words. */
|
|
412
411
|
readonly REQUEST_FILE: "request.json";
|
|
412
|
+
readonly APP_NOTES_FILE: "app-notes.json";
|
|
413
413
|
readonly PLATFORM_MOMENTS_FILE: "platform-moments.json";
|
|
414
414
|
/**
|
|
415
|
-
* the project's cloud binding — .reticle/cloud.json, written by `reticle
|
|
415
|
+
* the project's cloud binding — .reticle/cloud.json, written by `reticle connect`. Git-checked and
|
|
416
416
|
* non-secret: the project id, the API origin, and where its dashboard lives. The KEY lives in
|
|
417
417
|
* ~/.reticle/credentials.json instead, because that one must never reach a repository.
|
|
418
418
|
*/
|
|
@@ -814,10 +814,7 @@ export declare const ReticleCommand: {
|
|
|
814
814
|
readonly SCROLL: "scroll";
|
|
815
815
|
/** Session lifecycle: agent tunes the presenter session (e.g. idle-end timeout) for the app's needs. */
|
|
816
816
|
readonly SESSION_CONFIG: "session_config";
|
|
817
|
-
/**
|
|
818
|
-
* Live-control: bridge → browser. Pushes the current session state to the panel so an
|
|
819
|
-
* AGENT-driven pause/end keeps the presenter in sync. `args: { state, text? }`.
|
|
820
|
-
*/
|
|
817
|
+
/** Bridge → browser: the session state, so an agent's pause/end syncs the panel. `{ state, text? }`. */
|
|
821
818
|
readonly PRESENTER: "presenter";
|
|
822
819
|
/**
|
|
823
820
|
* Bridge -> browser: the user's own impact record, so the HUD can show what Reticle has done for
|
|
@@ -834,6 +831,8 @@ export declare const ReticleCommand: {
|
|
|
834
831
|
* screen-recording permission. Answered only when the app installed the capture helper.
|
|
835
832
|
*/
|
|
836
833
|
readonly CAPTURE: "capture";
|
|
834
|
+
/** The page drawn in-page to a JPEG, `{ ok, width, height, chunks }` (base64 under the string cap). */
|
|
835
|
+
readonly RENDER: "render";
|
|
837
836
|
/** Navigate the page to a new URL. `args: { url: string }`. */
|
|
838
837
|
readonly NAVIGATE: "navigate";
|
|
839
838
|
/** Reload the page. `args: { hard?: boolean }` — hard clears the cache via location replace trick. */
|
|
@@ -844,6 +843,8 @@ export declare const ReticleCommand: {
|
|
|
844
843
|
readonly FLOW_PROGRESS: "flow.progress";
|
|
845
844
|
/** Bridge → browser: the Harness's drive plan and each part's status, a `PlanView`. */
|
|
846
845
|
readonly PLAN: "plan";
|
|
846
|
+
/** The coverage markers (`CoverageMarker`) the app's own page carries; silent, no HUD paint. */
|
|
847
|
+
readonly MARKERS: "markers";
|
|
847
848
|
};
|
|
848
849
|
export type ReticleCommand = (typeof ReticleCommand)[keyof typeof ReticleCommand];
|
|
849
850
|
/** Presenter intent shown to the human watcher: is the agent reading or acting? */
|
|
@@ -869,18 +870,16 @@ export declare const MessageKind: {
|
|
|
869
870
|
};
|
|
870
871
|
export type MessageKind = (typeof MessageKind)[keyof typeof MessageKind];
|
|
871
872
|
/**
|
|
872
|
-
* WHY a lease came back `ready: false
|
|
873
|
-
*
|
|
874
|
-
*
|
|
875
|
-
* probably does not embed `@reticlehq/core`. A REUSED lease can fail readiness a second way, and it
|
|
876
|
-
* is the opposite problem: an SDK did dial in, and has since stopped answering. The next action
|
|
877
|
-
* differs — check the install versus recover the tab — so the two get names rather than sharing a
|
|
878
|
-
* bare `false`.
|
|
873
|
+
* WHY a lease came back `ready: false`. Each reason wants a different next action — check the
|
|
874
|
+
* install, recover a wedged tab, or bring a hidden one to the front — so they get names rather
|
|
875
|
+
* than sharing a bare `false`.
|
|
879
876
|
*/
|
|
880
877
|
export declare const LeaseNotReadyReason: {
|
|
881
878
|
/** No SDK dialled in within the wait. The install is the thing to look at. */
|
|
882
879
|
readonly SDK_NEVER_DIALLED: "sdk_never_dialled";
|
|
883
880
|
/** One dialled in and stopped answering: the tab is attached but wedged. */
|
|
884
881
|
readonly SDK_STOPPED_ANSWERING: "sdk_stopped_answering";
|
|
882
|
+
/** The SDK answers, but its tab is hidden: timers and rAF are throttled, so nothing on it verifies. */
|
|
883
|
+
readonly TAB_HIDDEN: "tab_hidden";
|
|
885
884
|
};
|
|
886
885
|
export type LeaseNotReadyReason = (typeof LeaseNotReadyReason)[keyof typeof LeaseNotReadyReason];
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export const RETICLE_DEFAULT_PORT = 4400;
|
|
6
6
|
export const RETICLE_WS_PATH = '/reticle';
|
|
7
|
-
|
|
8
|
-
export const MCP_SSE_PATH = '/mcp/sse';
|
|
9
|
-
export const MCP_MESSAGE_PATH = '/mcp/message';
|
|
7
|
+
export * from './mcp-wire.js';
|
|
10
8
|
/**
|
|
11
9
|
* The name this MCP server answers to — in its own `serverInfo` handshake, and in the registration
|
|
12
10
|
* an installer writes into an agent's config. Those must be the same string or the agent registers
|
|
@@ -198,6 +196,8 @@ export const ReticleEnv = {
|
|
|
198
196
|
HARNESS_BASE_URL: 'RETICLE_HARNESS_BASE_URL',
|
|
199
197
|
/** Hard ceiling on harness model turns in one drive. Bounds cost, not value. */
|
|
200
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
201
|
/**
|
|
202
202
|
* Which model backs the harness driver: `anthropic` (the default) or `jev`.
|
|
203
203
|
*
|
|
@@ -434,8 +434,7 @@ export const ReticleDir = {
|
|
|
434
434
|
JOURNAL_EVENTS_CLOSED_FILE: 'events.closed.json',
|
|
435
435
|
/** learned expected-envelopes per route, accumulated across runs (the deviation-report baseline). */
|
|
436
436
|
ENVELOPES_FILE: 'envelopes.json',
|
|
437
|
-
|
|
438
|
-
AMBIENT_FILE: 'ambient.json',
|
|
437
|
+
AMBIENT_FILE: 'ambient.json', // learned action-less churn regions, excluded from settle/summaries
|
|
439
438
|
/** per-flow flake ledger — replay outcomes that decide intermittent-failure quarantine. */
|
|
440
439
|
FLAKE_FILE: 'flake.json',
|
|
441
440
|
/** The app-wide coverage ledger — see server features/exhaust/ledger.ts. */
|
|
@@ -444,9 +443,10 @@ export const ReticleDir = {
|
|
|
444
443
|
NOTES_FILE: 'notes.json',
|
|
445
444
|
/** The user's latest request, as the agent relayed it. Local: it is the user's own words. */
|
|
446
445
|
REQUEST_FILE: 'request.json',
|
|
446
|
+
APP_NOTES_FILE: 'app-notes.json', // confirmed targeting hints for the next session; never evidence
|
|
447
447
|
PLATFORM_MOMENTS_FILE: 'platform-moments.json', // moments already said, so each is said once
|
|
448
448
|
/**
|
|
449
|
-
* the project's cloud binding — .reticle/cloud.json, written by `reticle
|
|
449
|
+
* the project's cloud binding — .reticle/cloud.json, written by `reticle connect`. Git-checked and
|
|
450
450
|
* non-secret: the project id, the API origin, and where its dashboard lives. The KEY lives in
|
|
451
451
|
* ~/.reticle/credentials.json instead, because that one must never reach a repository.
|
|
452
452
|
*/
|
|
@@ -829,10 +829,7 @@ export const ReticleCommand = {
|
|
|
829
829
|
SCROLL: 'scroll',
|
|
830
830
|
/** Session lifecycle: agent tunes the presenter session (e.g. idle-end timeout) for the app's needs. */
|
|
831
831
|
SESSION_CONFIG: 'session_config',
|
|
832
|
-
/**
|
|
833
|
-
* Live-control: bridge → browser. Pushes the current session state to the panel so an
|
|
834
|
-
* AGENT-driven pause/end keeps the presenter in sync. `args: { state, text? }`.
|
|
835
|
-
*/
|
|
832
|
+
/** Bridge → browser: the session state, so an agent's pause/end syncs the panel. `{ state, text? }`. */
|
|
836
833
|
PRESENTER: 'presenter',
|
|
837
834
|
/**
|
|
838
835
|
* Bridge -> browser: the user's own impact record, so the HUD can show what Reticle has done for
|
|
@@ -849,6 +846,8 @@ export const ReticleCommand = {
|
|
|
849
846
|
* screen-recording permission. Answered only when the app installed the capture helper.
|
|
850
847
|
*/
|
|
851
848
|
CAPTURE: 'capture',
|
|
849
|
+
/** The page drawn in-page to a JPEG, `{ ok, width, height, chunks }` (base64 under the string cap). */
|
|
850
|
+
RENDER: 'render',
|
|
852
851
|
/** Navigate the page to a new URL. `args: { url: string }`. */
|
|
853
852
|
NAVIGATE: 'navigate',
|
|
854
853
|
/** Reload the page. `args: { hard?: boolean }` — hard clears the cache via location replace trick. */
|
|
@@ -859,6 +858,8 @@ export const ReticleCommand = {
|
|
|
859
858
|
FLOW_PROGRESS: 'flow.progress',
|
|
860
859
|
/** Bridge → browser: the Harness's drive plan and each part's status, a `PlanView`. */
|
|
861
860
|
PLAN: 'plan',
|
|
861
|
+
/** The coverage markers (`CoverageMarker`) the app's own page carries; silent, no HUD paint. */
|
|
862
|
+
MARKERS: 'markers',
|
|
862
863
|
};
|
|
863
864
|
/** Presenter intent shown to the human watcher: is the agent reading or acting? */
|
|
864
865
|
export const PresenterMode = {
|
|
@@ -880,17 +881,15 @@ export const MessageKind = {
|
|
|
880
881
|
EVENT: 'event',
|
|
881
882
|
};
|
|
882
883
|
/**
|
|
883
|
-
* WHY a lease came back `ready: false
|
|
884
|
-
*
|
|
885
|
-
*
|
|
886
|
-
* probably does not embed `@reticlehq/core`. A REUSED lease can fail readiness a second way, and it
|
|
887
|
-
* is the opposite problem: an SDK did dial in, and has since stopped answering. The next action
|
|
888
|
-
* differs — check the install versus recover the tab — so the two get names rather than sharing a
|
|
889
|
-
* bare `false`.
|
|
884
|
+
* WHY a lease came back `ready: false`. Each reason wants a different next action — check the
|
|
885
|
+
* install, recover a wedged tab, or bring a hidden one to the front — so they get names rather
|
|
886
|
+
* than sharing a bare `false`.
|
|
890
887
|
*/
|
|
891
888
|
export const LeaseNotReadyReason = {
|
|
892
889
|
/** No SDK dialled in within the wait. The install is the thing to look at. */
|
|
893
890
|
SDK_NEVER_DIALLED: 'sdk_never_dialled',
|
|
894
891
|
/** One dialled in and stopped answering: the tab is attached but wedged. */
|
|
895
892
|
SDK_STOPPED_ANSWERING: 'sdk_stopped_answering',
|
|
893
|
+
/** The SDK answers, but its tab is hidden: timers and rAF are throttled, so nothing on it verifies. */
|
|
894
|
+
TAB_HIDDEN: 'tab_hidden',
|
|
896
895
|
};
|
|
@@ -34,7 +34,8 @@ const PLAIN_CONTROLS = [
|
|
|
34
34
|
'carousel-next',
|
|
35
35
|
'carousel-close',
|
|
36
36
|
'page-close',
|
|
37
|
-
'
|
|
37
|
+
'team-open',
|
|
38
|
+
'team-save',
|
|
38
39
|
'talk-book',
|
|
39
40
|
'account-signin',
|
|
40
41
|
'account-trigger',
|
|
@@ -60,11 +61,22 @@ const PLAIN_CONTROLS = [
|
|
|
60
61
|
'mark-send',
|
|
61
62
|
// The Agent Log's own Harness switch; the Settings one is `setting.harnessEnabled`.
|
|
62
63
|
'harness-switch',
|
|
63
|
-
//
|
|
64
|
-
'
|
|
64
|
+
// Run Harness beside it, and Stop while the drive it started runs.
|
|
65
|
+
'harness-run',
|
|
66
|
+
'harness-stop',
|
|
67
|
+
// The Agent Log's foot row: opens the Harness page.
|
|
68
|
+
'harness-open',
|
|
69
|
+
// The Agent Log's foot row: the Harness on/off switch.
|
|
70
|
+
'harness-toggle',
|
|
71
|
+
// Link this project, on the Harness page.
|
|
72
|
+
'harness-link',
|
|
73
|
+
// Below the coverage gate: copy the prompt that closes it, for the coding agent.
|
|
74
|
+
'harness-copy-prompt',
|
|
75
|
+
// The coding-agent block on the Agent Log: copy a prompt when none is connected.
|
|
76
|
+
'agent-copy',
|
|
77
|
+
// "See all" below Impact's recent bugs.
|
|
65
78
|
'defects-all',
|
|
66
79
|
// "See the logs" beside a replay the person started from a chip.
|
|
67
|
-
'see-logs',
|
|
68
80
|
// The Harness plan board on the Agent Log: hide it, or open one journey's steps.
|
|
69
81
|
'plan-close',
|
|
70
82
|
'plan-journey',
|
|
@@ -98,7 +110,7 @@ const KEYED_CONTROLS = {
|
|
|
98
110
|
'tour-target': ['copy', 'back', 'done', 'next', 'skip'],
|
|
99
111
|
link: ['docs', 'github', 'site', 'discord', 'defect', 'dashboard'],
|
|
100
112
|
'annotation-tab': ['current', 'history'],
|
|
101
|
-
'chat-view-btn': ['activity', 'flows', 'annotations'],
|
|
113
|
+
'chat-view-btn': ['activity', 'flows', 'annotations', 'harness'],
|
|
102
114
|
};
|
|
103
115
|
let controls;
|
|
104
116
|
/**
|
|
@@ -12,19 +12,34 @@ export declare const HudView: {
|
|
|
12
12
|
};
|
|
13
13
|
export type HudView = (typeof HudView)[keyof typeof HudView];
|
|
14
14
|
/**
|
|
15
|
-
* Which page is showing, when the HUD is open: the Agent Log (`chat`), the Flows and
|
|
16
|
-
* inside it, Impact (`report`)
|
|
17
|
-
* number rather than a guess.
|
|
15
|
+
* Which page is showing, when the HUD is open: the Agent Log (`chat`), the Flows, Notes and Harness
|
|
16
|
+
* pages inside it, Impact (`report`), Settings, or the account menu open over any of them. Timed per
|
|
17
|
+
* page, so how long somebody spends on each is a number rather than a guess.
|
|
18
|
+
*
|
|
19
|
+
* `harness` and `account` were missing, so the Harness page was timed as `chat` (it opens over the
|
|
20
|
+
* Agent Log) and an open account menu was not seen at all.
|
|
18
21
|
*/
|
|
19
22
|
export declare const HudPanel: {
|
|
20
23
|
readonly CHAT: "chat";
|
|
21
24
|
readonly FLOWS: "flows";
|
|
22
25
|
readonly NOTES: "notes";
|
|
26
|
+
readonly HARNESS: "harness";
|
|
23
27
|
readonly SETTINGS: "settings";
|
|
24
28
|
readonly REPORT: "report";
|
|
29
|
+
readonly ACCOUNT: "account";
|
|
25
30
|
readonly NONE: "none";
|
|
26
31
|
};
|
|
27
32
|
export type HudPanel = (typeof HudPanel)[keyof typeof HudPanel];
|
|
33
|
+
/**
|
|
34
|
+
* Where the HUD asked somebody to sign in or link this project: the rail card under every page, the
|
|
35
|
+
* Harness page's own sign-in / link control, or the header's "Save runs for your team".
|
|
36
|
+
*/
|
|
37
|
+
export declare const HudPromptSurface: {
|
|
38
|
+
readonly RAIL: "rail";
|
|
39
|
+
readonly HARNESS: "harness";
|
|
40
|
+
readonly HEADER: "header";
|
|
41
|
+
};
|
|
42
|
+
export type HudPromptSurface = (typeof HudPromptSurface)[keyof typeof HudPromptSurface];
|
|
28
43
|
/** What a toggle was switched to; absent for a plain press. */
|
|
29
44
|
export declare const HudToggle: {
|
|
30
45
|
readonly ON: "on";
|
|
@@ -64,8 +79,16 @@ export declare const ScriptStatus: {
|
|
|
64
79
|
readonly FAILED: "failed";
|
|
65
80
|
/** Never started: something it needed failed. */
|
|
66
81
|
readonly BLOCKED: "blocked";
|
|
67
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* A branch case whose condition did not hold, or a step the destructive-action guard stopped
|
|
84
|
+
* because nobody acknowledged it. Not a failure.
|
|
85
|
+
*/
|
|
68
86
|
readonly NOT_TAKEN: "not-taken";
|
|
87
|
+
/**
|
|
88
|
+
* Ran, and decided nothing: its end was on the page before it acted, or it reached its goal with
|
|
89
|
+
* no check that could have gone red. Neither proved nor a failure.
|
|
90
|
+
*/
|
|
91
|
+
readonly UNDECIDED: "undecided";
|
|
69
92
|
};
|
|
70
93
|
export type ScriptStatus = (typeof ScriptStatus)[keyof typeof ScriptStatus];
|
|
71
94
|
/** The HUD's picture of a drive plan: lanes side by side, journeys in order, steps inside. */
|
|
@@ -81,6 +104,8 @@ export interface PlanView {
|
|
|
81
104
|
/** Journeys in earlier lanes this one waits on. */
|
|
82
105
|
waitsOn: string[];
|
|
83
106
|
status: ScriptStatus;
|
|
107
|
+
/** Why it did not pass, when there is more to say than its status. */
|
|
108
|
+
why?: string;
|
|
84
109
|
steps: {
|
|
85
110
|
label: string;
|
|
86
111
|
status: ScriptStatus;
|
|
@@ -11,18 +11,32 @@ export const HudView = {
|
|
|
11
11
|
EXPANDED: 'expanded',
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
* Which page is showing, when the HUD is open: the Agent Log (`chat`), the Flows and
|
|
15
|
-
* inside it, Impact (`report`)
|
|
16
|
-
* number rather than a guess.
|
|
14
|
+
* Which page is showing, when the HUD is open: the Agent Log (`chat`), the Flows, Notes and Harness
|
|
15
|
+
* pages inside it, Impact (`report`), Settings, or the account menu open over any of them. Timed per
|
|
16
|
+
* page, so how long somebody spends on each is a number rather than a guess.
|
|
17
|
+
*
|
|
18
|
+
* `harness` and `account` were missing, so the Harness page was timed as `chat` (it opens over the
|
|
19
|
+
* Agent Log) and an open account menu was not seen at all.
|
|
17
20
|
*/
|
|
18
21
|
export const HudPanel = {
|
|
19
22
|
CHAT: 'chat',
|
|
20
23
|
FLOWS: 'flows',
|
|
21
24
|
NOTES: 'notes',
|
|
25
|
+
HARNESS: 'harness',
|
|
22
26
|
SETTINGS: 'settings',
|
|
23
27
|
REPORT: 'report',
|
|
28
|
+
ACCOUNT: 'account',
|
|
24
29
|
NONE: 'none',
|
|
25
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Where the HUD asked somebody to sign in or link this project: the rail card under every page, the
|
|
33
|
+
* Harness page's own sign-in / link control, or the header's "Save runs for your team".
|
|
34
|
+
*/
|
|
35
|
+
export const HudPromptSurface = {
|
|
36
|
+
RAIL: 'rail',
|
|
37
|
+
HARNESS: 'harness',
|
|
38
|
+
HEADER: 'header',
|
|
39
|
+
};
|
|
26
40
|
/** What a toggle was switched to; absent for a plain press. */
|
|
27
41
|
export const HudToggle = {
|
|
28
42
|
ON: 'on',
|
|
@@ -58,6 +72,14 @@ export const ScriptStatus = {
|
|
|
58
72
|
FAILED: 'failed',
|
|
59
73
|
/** Never started: something it needed failed. */
|
|
60
74
|
BLOCKED: 'blocked',
|
|
61
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* A branch case whose condition did not hold, or a step the destructive-action guard stopped
|
|
77
|
+
* because nobody acknowledged it. Not a failure.
|
|
78
|
+
*/
|
|
62
79
|
NOT_TAKEN: 'not-taken',
|
|
80
|
+
/**
|
|
81
|
+
* Ran, and decided nothing: its end was on the page before it acted, or it reached its goal with
|
|
82
|
+
* no check that could have gone red. Neither proved nor a failure.
|
|
83
|
+
*/
|
|
84
|
+
UNDECIDED: 'undecided',
|
|
63
85
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The agent-to-daemon MCP wire: the paths the daemon's HTTP plane serves and the stdio proxy forwards,
|
|
3
|
+
* and the header that says which project a call comes from. Kept apart from constants.ts, which is at
|
|
4
|
+
* its line cap, and re-exported from it so every import stays as it was.
|
|
5
|
+
*/
|
|
6
|
+
/** Agent↔server MCP wire paths — served by the daemon HTTP plane, forwarded by the stdio proxy. */
|
|
7
|
+
export declare const MCP_SSE_PATH = "/mcp/sse";
|
|
8
|
+
export declare const MCP_MESSAGE_PATH = "/mcp/message";
|
|
9
|
+
/** Directory the MCP proxy was started in. One daemon serves every project, and this says which. */
|
|
10
|
+
export declare const MCP_CLIENT_DIRECTORY_HEADER = "x-reticle-client-directory";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The agent-to-daemon MCP wire: the paths the daemon's HTTP plane serves and the stdio proxy forwards,
|
|
3
|
+
* and the header that says which project a call comes from. Kept apart from constants.ts, which is at
|
|
4
|
+
* its line cap, and re-exported from it so every import stays as it was.
|
|
5
|
+
*/
|
|
6
|
+
/** Agent↔server MCP wire paths — served by the daemon HTTP plane, forwarded by the stdio proxy. */
|
|
7
|
+
export const MCP_SSE_PATH = '/mcp/sse';
|
|
8
|
+
export const MCP_MESSAGE_PATH = '/mcp/message';
|
|
9
|
+
/** Directory the MCP proxy was started in. One daemon serves every project, and this says which. */
|
|
10
|
+
export const MCP_CLIENT_DIRECTORY_HEADER = 'x-reticle-client-directory';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reticle's own UI in the page, as one selector list both the SDK and the daemon read.
|
|
3
|
+
*
|
|
4
|
+
* The presenter overlay (cursor, HUD, glow), the annotator's marks, the action blocker and the
|
|
5
|
+
* first-run tour. The SDK keeps them out of snapshots and queries; the daemon hides them from every
|
|
6
|
+
* screenshot. They lived in the browser adapter alone, so the daemon's two capture paths each
|
|
7
|
+
* hard-coded their own idea of "our chrome": the driven path hid `[data-reticle-overlay]` only, and
|
|
8
|
+
* the lease path hid nothing, so a lease baseline captured the HUD and its activity log and a HUD
|
|
9
|
+
* change read as an app regression (#1355).
|
|
10
|
+
*/
|
|
11
|
+
export declare const RETICLE_OVERLAY_SELECTOR = "[data-reticle-overlay],[data-reticle-cursor],[data-reticle-hud],[data-reticle-glow],[data-reticle-mark],[data-reticle-blocker],[data-reticle-tour]";
|
|
12
|
+
/**
|
|
13
|
+
* A stylesheet that hides Reticle's own UI for one capture, without touching the page under test.
|
|
14
|
+
*
|
|
15
|
+
* `display:none` rather than `visibility`: an expanded HUD at a mobile viewport covers most of the
|
|
16
|
+
* frame, and a hidden-but-laid-out panel still pushes nothing, but a `display:none` one is what a
|
|
17
|
+
* page without Reticle would have looked like.
|
|
18
|
+
*/
|
|
19
|
+
export declare const HIDE_RETICLE_CHROME_CSS = "[data-reticle-overlay],[data-reticle-cursor],[data-reticle-hud],[data-reticle-glow],[data-reticle-mark],[data-reticle-blocker],[data-reticle-tour]{display:none !important}";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reticle's own UI in the page, as one selector list both the SDK and the daemon read.
|
|
3
|
+
*
|
|
4
|
+
* The presenter overlay (cursor, HUD, glow), the annotator's marks, the action blocker and the
|
|
5
|
+
* first-run tour. The SDK keeps them out of snapshots and queries; the daemon hides them from every
|
|
6
|
+
* screenshot. They lived in the browser adapter alone, so the daemon's two capture paths each
|
|
7
|
+
* hard-coded their own idea of "our chrome": the driven path hid `[data-reticle-overlay]` only, and
|
|
8
|
+
* the lease path hid nothing, so a lease baseline captured the HUD and its activity log and a HUD
|
|
9
|
+
* change read as an app regression (#1355).
|
|
10
|
+
*/
|
|
11
|
+
export const RETICLE_OVERLAY_SELECTOR = '[data-reticle-overlay],[data-reticle-cursor],[data-reticle-hud],[data-reticle-glow],[data-reticle-mark],[data-reticle-blocker],[data-reticle-tour]';
|
|
12
|
+
/**
|
|
13
|
+
* A stylesheet that hides Reticle's own UI for one capture, without touching the page under test.
|
|
14
|
+
*
|
|
15
|
+
* `display:none` rather than `visibility`: an expanded HUD at a mobile viewport covers most of the
|
|
16
|
+
* frame, and a hidden-but-laid-out panel still pushes nothing, but a `display:none` one is what a
|
|
17
|
+
* page without Reticle would have looked like.
|
|
18
|
+
*/
|
|
19
|
+
export const HIDE_RETICLE_CHROME_CSS = `${RETICLE_OVERLAY_SELECTOR}{display:none !important}`;
|
|
@@ -38,9 +38,9 @@ export declare const HumanControlKind: {
|
|
|
38
38
|
/**
|
|
39
39
|
* Human pressed Sign in in the panel. Carries nothing.
|
|
40
40
|
*
|
|
41
|
-
* A page cannot write `~/.reticle`, so the panel used to copy `reticle
|
|
41
|
+
* A page cannot write `~/.reticle`, so the panel used to copy `reticle connect` and stop there: a
|
|
42
42
|
* dead end for anybody who does not live in a terminal. The daemon owns the credential, so it
|
|
43
|
-
* starts the same browser approval flow `reticle
|
|
43
|
+
* starts the same browser approval flow `reticle connect` does and the panel repaints when it lands.
|
|
44
44
|
*/
|
|
45
45
|
readonly SIGNIN: "signin";
|
|
46
46
|
/**
|
|
@@ -57,6 +57,19 @@ export declare const HumanControlKind: {
|
|
|
57
57
|
* and an impatient finger both need.
|
|
58
58
|
*/
|
|
59
59
|
readonly HARNESS: "harness";
|
|
60
|
+
/**
|
|
61
|
+
* Human pressed Run Harness in the panel. `text` carries the persona, or nothing. The daemon asks
|
|
62
|
+
* the platform for the drive's grant and starts it exactly as an agent's explore would.
|
|
63
|
+
*/
|
|
64
|
+
readonly HARNESS_RUN: "harness-run";
|
|
65
|
+
/** Human pressed Stop on the drive running in this tab. Carries nothing. */
|
|
66
|
+
readonly HARNESS_STOP: "harness-stop";
|
|
67
|
+
/**
|
|
68
|
+
* Human pressed Link this project on the Harness page. Carries nothing: the daemon links the
|
|
69
|
+
* project of the tab that asked, as `reticle connect` would from that folder, and every panel
|
|
70
|
+
* repaints when the link file lands.
|
|
71
|
+
*/
|
|
72
|
+
readonly HARNESS_LINK: "harness-link";
|
|
60
73
|
};
|
|
61
74
|
export type HumanControlKind = (typeof HumanControlKind)[keyof typeof HumanControlKind];
|
|
62
75
|
/**
|
|
@@ -39,9 +39,9 @@ export const HumanControlKind = {
|
|
|
39
39
|
/**
|
|
40
40
|
* Human pressed Sign in in the panel. Carries nothing.
|
|
41
41
|
*
|
|
42
|
-
* A page cannot write `~/.reticle`, so the panel used to copy `reticle
|
|
42
|
+
* A page cannot write `~/.reticle`, so the panel used to copy `reticle connect` and stop there: a
|
|
43
43
|
* dead end for anybody who does not live in a terminal. The daemon owns the credential, so it
|
|
44
|
-
* starts the same browser approval flow `reticle
|
|
44
|
+
* starts the same browser approval flow `reticle connect` does and the panel repaints when it lands.
|
|
45
45
|
*/
|
|
46
46
|
SIGNIN: 'signin',
|
|
47
47
|
/**
|
|
@@ -58,6 +58,19 @@ export const HumanControlKind = {
|
|
|
58
58
|
* and an impatient finger both need.
|
|
59
59
|
*/
|
|
60
60
|
HARNESS: 'harness',
|
|
61
|
+
/**
|
|
62
|
+
* Human pressed Run Harness in the panel. `text` carries the persona, or nothing. The daemon asks
|
|
63
|
+
* the platform for the drive's grant and starts it exactly as an agent's explore would.
|
|
64
|
+
*/
|
|
65
|
+
HARNESS_RUN: 'harness-run',
|
|
66
|
+
/** Human pressed Stop on the drive running in this tab. Carries nothing. */
|
|
67
|
+
HARNESS_STOP: 'harness-stop',
|
|
68
|
+
/**
|
|
69
|
+
* Human pressed Link this project on the Harness page. Carries nothing: the daemon links the
|
|
70
|
+
* project of the tab that asked, as `reticle connect` would from that folder, and every panel
|
|
71
|
+
* repaints when the link file lands.
|
|
72
|
+
*/
|
|
73
|
+
HARNESS_LINK: 'harness-link',
|
|
61
74
|
};
|
|
62
75
|
/**
|
|
63
76
|
* Human review marks: the durability tier of the anchor that pins a mark to an element. Mirrors the
|
|
@@ -38,6 +38,14 @@ export declare const RETICLE_CAPTURE_FILE_PREFIX = "reticle-capture-";
|
|
|
38
38
|
* gets screenshots by adding ONE Rust command and nothing at all on the JavaScript side.
|
|
39
39
|
*/
|
|
40
40
|
export declare const RETICLE_TAURI_CAPTURE_COMMAND = "reticle_capture";
|
|
41
|
+
/**
|
|
42
|
+
* The words `reticle-tauri` refuses a capture with in a release build without its `in-release`
|
|
43
|
+
* feature (`INERT_IN_RELEASE` in the crate's lib.rs). The daemon reads them to say THAT, not the web
|
|
44
|
+
* answer: an agent told "start with `reticle drive <url>`" about a desktop app had nothing to act on.
|
|
45
|
+
*/
|
|
46
|
+
export declare const RETICLE_TAURI_INERT_MARKER = "inert in a release build";
|
|
47
|
+
/** What the agent is told when the Tauri build it drives has Reticle's capture compiled out. */
|
|
48
|
+
export declare const TAURI_INERT_RECOMMENDATION: string;
|
|
41
49
|
/**
|
|
42
50
|
* What a shell answers when asked for `fullPage` it cannot produce.
|
|
43
51
|
*
|
|
@@ -39,6 +39,17 @@ export const RETICLE_CAPTURE_FILE_PREFIX = 'reticle-capture-';
|
|
|
39
39
|
* gets screenshots by adding ONE Rust command and nothing at all on the JavaScript side.
|
|
40
40
|
*/
|
|
41
41
|
export const RETICLE_TAURI_CAPTURE_COMMAND = 'reticle_capture';
|
|
42
|
+
/**
|
|
43
|
+
* The words `reticle-tauri` refuses a capture with in a release build without its `in-release`
|
|
44
|
+
* feature (`INERT_IN_RELEASE` in the crate's lib.rs). The daemon reads them to say THAT, not the web
|
|
45
|
+
* answer: an agent told "start with `reticle drive <url>`" about a desktop app had nothing to act on.
|
|
46
|
+
*/
|
|
47
|
+
export const RETICLE_TAURI_INERT_MARKER = 'inert in a release build';
|
|
48
|
+
/** What the agent is told when the Tauri build it drives has Reticle's capture compiled out. */
|
|
49
|
+
export const TAURI_INERT_RECOMMENDATION = 'the Reticle Tauri capture is off in this release build: reticle-tauri does nothing in a release ' +
|
|
50
|
+
'build unless its `in-release` feature is on. Drive the dev build (`tauri dev`), or for a release ' +
|
|
51
|
+
'build you test with Reticle set `reticle-tauri = { version = "…", features = ["in-release"] }` in ' +
|
|
52
|
+
'src-tauri/Cargo.toml and rebuild';
|
|
42
53
|
/**
|
|
43
54
|
* What a shell answers when asked for `fullPage` it cannot produce.
|
|
44
55
|
*
|