@reticlehq/core 3.5.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.
Files changed (113) hide show
  1. package/dist/artifacts/artifacts-entry.d.ts +4 -0
  2. package/dist/artifacts/artifacts-entry.js +4 -0
  3. package/dist/artifacts/drive-script.d.ts +1404 -0
  4. package/dist/artifacts/drive-script.js +220 -0
  5. package/dist/artifacts/flow-constants.d.ts +19 -0
  6. package/dist/artifacts/flow-constants.js +21 -0
  7. package/dist/artifacts/flow-results.d.ts +450 -0
  8. package/dist/artifacts/flow-results.js +1 -0
  9. package/dist/artifacts/flow-types.d.ts +75 -427
  10. package/dist/artifacts/flow-types.js +15 -2
  11. package/dist/artifacts/harness-credits.d.ts +39 -0
  12. package/dist/artifacts/harness-credits.js +69 -0
  13. package/dist/artifacts/harness-map.d.ts +98 -0
  14. package/dist/artifacts/harness-map.js +36 -0
  15. package/dist/artifacts/hud-notices.d.ts +134 -0
  16. package/dist/artifacts/hud-notices.js +124 -0
  17. package/dist/artifacts/impact.d.ts +489 -189
  18. package/dist/artifacts/impact.js +90 -47
  19. package/dist/artifacts/journal.d.ts +105 -5
  20. package/dist/artifacts/journal.js +41 -0
  21. package/dist/artifacts/prompt-context.d.ts +105 -0
  22. package/dist/artifacts/prompt-context.js +108 -0
  23. package/dist/artifacts/screenshot-upload.d.ts +51 -0
  24. package/dist/artifacts/screenshot-upload.js +26 -0
  25. package/dist/desktop-contract.cjs +1 -0
  26. package/dist/desktop-contract.d.cts +1 -0
  27. package/dist/hooks/hook-events.d.ts +4 -4
  28. package/dist/hud-entry.d.ts +2 -0
  29. package/dist/hud-entry.js +4 -0
  30. package/dist/identity/contract-fingerprint.d.ts +9 -0
  31. package/dist/identity/contract-fingerprint.js +12 -0
  32. package/dist/identity/testid-attribute.d.ts +18 -0
  33. package/dist/identity/testid-attribute.js +24 -0
  34. package/dist/index.d.ts +9 -1
  35. package/dist/index.js +9 -1
  36. package/dist/onboarding.d.ts +10 -2
  37. package/dist/onboarding.js +6 -0
  38. package/dist/realm/registry.js +19 -1
  39. package/dist/schema/command-message.json +36 -0
  40. package/dist/schema/command-name.json +5 -1
  41. package/dist/schema/event-payloads.json +56 -2
  42. package/dist/schema/reticle-message.json +36 -0
  43. package/dist/telemetry-bug.d.ts +169 -0
  44. package/dist/telemetry-bug.js +123 -0
  45. package/dist/telemetry-entry.d.ts +1 -0
  46. package/dist/telemetry-entry.js +1 -0
  47. package/dist/telemetry-feedback.d.ts +2 -2
  48. package/dist/telemetry-refusal.d.ts +5 -4
  49. package/dist/telemetry-session.d.ts +79 -1
  50. package/dist/telemetry-session.js +57 -1
  51. package/dist/telemetry-signals.d.ts +339 -0
  52. package/dist/telemetry-signals.js +138 -0
  53. package/dist/telemetry.d.ts +330 -276
  54. package/dist/telemetry.js +40 -115
  55. package/dist/tour.d.ts +1 -0
  56. package/dist/tour.js +13 -5
  57. package/dist/verdict/consequence.d.ts +3 -0
  58. package/dist/verdict/disparity.d.ts +105 -0
  59. package/dist/verdict/disparity.js +40 -0
  60. package/dist/verdict/findings.d.ts +11 -0
  61. package/dist/verdict/findings.js +16 -0
  62. package/dist/verdict/instrumentation-coverage.d.ts +115 -0
  63. package/dist/verdict/instrumentation-coverage.js +226 -0
  64. package/dist/verdict/instrumentation-gap.js +1 -1
  65. package/dist/verdict/intent.d.ts +19 -5
  66. package/dist/verdict/intent.js +13 -1
  67. package/dist/verdict/predicate-tree.d.ts +15 -0
  68. package/dist/verdict/predicate-tree.js +21 -0
  69. package/dist/verdict/predicate.d.ts +28 -0
  70. package/dist/verdict/predicate.js +94 -15
  71. package/dist/verdict/security.d.ts +25 -0
  72. package/dist/verdict/security.js +82 -0
  73. package/dist/verdict/verdict-attribution.js +1 -0
  74. package/dist/verdict/verification-run.d.ts +638 -32
  75. package/dist/verdict/verification-run.js +90 -0
  76. package/dist/verdict/verified-constants.d.ts +19 -0
  77. package/dist/verdict/verified-constants.js +22 -0
  78. package/dist/wire/constants/constants.d.ts +60 -32
  79. package/dist/wire/constants/constants.js +61 -33
  80. package/dist/wire/constants/hud-controls.d.ts +1 -1
  81. package/dist/wire/constants/hud-controls.js +34 -1
  82. package/dist/wire/constants/hud-use.d.ts +89 -1
  83. package/dist/wire/constants/hud-use.js +62 -1
  84. package/dist/wire/constants/mcp-wire.d.ts +10 -0
  85. package/dist/wire/constants/mcp-wire.js +10 -0
  86. package/dist/wire/constants/reticle-chrome.d.ts +19 -0
  87. package/dist/wire/constants/reticle-chrome.js +19 -0
  88. package/dist/wire/constants/session-constants.d.ts +21 -0
  89. package/dist/wire/constants/session-constants.js +21 -0
  90. package/dist/wire/desktop-contract.d.ts +11 -0
  91. package/dist/wire/desktop-contract.js +14 -0
  92. package/dist/wire/event-payloads.d.ts +77 -4
  93. package/dist/wire/event-payloads.js +27 -0
  94. package/dist/wire/global-press.d.ts +34 -3
  95. package/dist/wire/global-press.js +91 -3
  96. package/dist/wire/hold.d.ts +14 -0
  97. package/dist/wire/hold.js +18 -0
  98. package/dist/wire/messages.d.ts +129 -32
  99. package/dist/wire/messages.js +17 -1
  100. package/dist/wire/platform-link.d.ts +238 -0
  101. package/dist/wire/platform-link.js +234 -0
  102. package/dist/wire/tool-names.d.ts +2 -0
  103. package/dist/wire/tool-names.js +2 -0
  104. package/dist/wire/types.d.ts +26 -6
  105. package/dist/wire/types.js +5 -0
  106. package/dist/words/no-session-reason.d.ts +7 -0
  107. package/dist/words/no-session-reason.js +7 -0
  108. package/dist/words/notices.d.ts +1 -1
  109. package/dist/words/notices.js +5 -3
  110. package/dist/words/upgrade.js +1 -1
  111. package/dist/words/writing-rule.d.ts +14 -0
  112. package/dist/words/writing-rule.js +17 -0
  113. package/package.json +1 -1
@@ -25,10 +25,17 @@ const PLAIN_CONTROLS = [
25
25
  'min-btn',
26
26
  'chat-min',
27
27
  'chat-pill',
28
+ 'chat-impact',
29
+ 'copy-all-notes',
30
+ 'promo-link',
28
31
  'replay',
29
32
  'carousel-dot',
33
+ 'carousel-prev',
34
+ 'carousel-next',
30
35
  'carousel-close',
31
- 'offer-claim',
36
+ 'page-close',
37
+ 'team-open',
38
+ 'team-save',
32
39
  'talk-book',
33
40
  'account-signin',
34
41
  'account-trigger',
@@ -45,12 +52,34 @@ const PLAIN_CONTROLS = [
45
52
  'settings-help',
46
53
  'settings-reset',
47
54
  'settings-mcp',
55
+ 'settings-kill',
48
56
  'feedback-email',
49
57
  'feedback-call',
50
58
  'workspace-btn',
51
59
  'workspace-copy',
52
60
  'mark-cancel',
53
61
  'mark-send',
62
+ // The Agent Log's own Harness switch; the Settings one is `setting.harnessEnabled`.
63
+ 'harness-switch',
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.
78
+ 'defects-all',
79
+ // "See the logs" beside a replay the person started from a chip.
80
+ // The Harness plan board on the Agent Log: hide it, or open one journey's steps.
81
+ 'plan-close',
82
+ 'plan-journey',
54
83
  ];
55
84
  /** The attributes whose value is part of the id. Read by the browser to build one. */
56
85
  export const HUD_KEYED_ATTRS = [
@@ -60,6 +89,8 @@ export const HUD_KEYED_ATTRS = [
60
89
  'theme',
61
90
  'tour-target',
62
91
  'link',
92
+ 'annotation-tab',
93
+ 'chat-view-btn',
63
94
  ];
64
95
  /** Controls whose id also carries a key Reticle authored (`data-reticle-setting="x"` -> `setting.x`). */
65
96
  const KEYED_CONTROLS = {
@@ -78,6 +109,8 @@ const KEYED_CONTROLS = {
78
109
  theme: ['signal', 'traffic', 'mono', 'neon', 'ember'],
79
110
  'tour-target': ['copy', 'back', 'done', 'next', 'skip'],
80
111
  link: ['docs', 'github', 'site', 'discord', 'defect', 'dashboard'],
112
+ 'annotation-tab': ['current', 'history'],
113
+ 'chat-view-btn': ['activity', 'flows', 'annotations', 'harness'],
81
114
  };
82
115
  let controls;
83
116
  /**
@@ -11,17 +11,105 @@ export declare const HudView: {
11
11
  readonly EXPANDED: "expanded";
12
12
  };
13
13
  export type HudView = (typeof HudView)[keyof typeof HudView];
14
- /** Which panel is showing, when the HUD is open. */
14
+ /**
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.
21
+ */
15
22
  export declare const HudPanel: {
16
23
  readonly CHAT: "chat";
24
+ readonly FLOWS: "flows";
25
+ readonly NOTES: "notes";
26
+ readonly HARNESS: "harness";
17
27
  readonly SETTINGS: "settings";
18
28
  readonly REPORT: "report";
29
+ readonly ACCOUNT: "account";
19
30
  readonly NONE: "none";
20
31
  };
21
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];
22
43
  /** What a toggle was switched to; absent for a plain press. */
23
44
  export declare const HudToggle: {
24
45
  readonly ON: "on";
25
46
  readonly OFF: "off";
26
47
  };
27
48
  export type HudToggle = (typeof HudToggle)[keyof typeof HudToggle];
49
+ /**
50
+ * What an agent may do with the HUD when it sits over what it has to test (reticle_session tune).
51
+ * `removed` takes it off the page until the next reload; `hidden` keeps it ready to come back.
52
+ */
53
+ export declare const HudVisibility: {
54
+ readonly SHOWN: "shown";
55
+ readonly HIDDEN: "hidden";
56
+ readonly REMOVED: "removed";
57
+ };
58
+ export type HudVisibility = (typeof HudVisibility)[keyof typeof HudVisibility];
59
+ /** The corner an agent can move the HUD to; `bottom-right` is where it docks by default. */
60
+ export declare const HudCorner: {
61
+ readonly TOP_LEFT: "top-left";
62
+ readonly TOP_RIGHT: "top-right";
63
+ readonly BOTTOM_LEFT: "bottom-left";
64
+ readonly BOTTOM_RIGHT: "bottom-right";
65
+ };
66
+ export type HudCorner = (typeof HudCorner)[keyof typeof HudCorner];
67
+ /** Where a replay the human started from the HUD stands, for the chip's progress bar. */
68
+ export declare const FlowProgressStatus: {
69
+ readonly PLAYING: "playing";
70
+ readonly PASSED: "passed";
71
+ readonly FAILED: "failed";
72
+ };
73
+ export type FlowProgressStatus = (typeof FlowProgressStatus)[keyof typeof FlowProgressStatus];
74
+ /** Where one part of a Harness drive plan stands. */
75
+ export declare const ScriptStatus: {
76
+ readonly PENDING: "pending";
77
+ readonly RUNNING: "running";
78
+ readonly PASSED: "passed";
79
+ readonly FAILED: "failed";
80
+ /** Never started: something it needed failed. */
81
+ readonly BLOCKED: "blocked";
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
+ */
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";
92
+ };
93
+ export type ScriptStatus = (typeof ScriptStatus)[keyof typeof ScriptStatus];
94
+ /** The HUD's picture of a drive plan: lanes side by side, journeys in order, steps inside. */
95
+ export interface PlanView {
96
+ /** Lanes that may run at once. */
97
+ parallel: number;
98
+ lanes: {
99
+ id: string;
100
+ journeys: {
101
+ id: string;
102
+ title: string;
103
+ persona?: string;
104
+ /** Journeys in earlier lanes this one waits on. */
105
+ waitsOn: string[];
106
+ status: ScriptStatus;
107
+ /** Why it did not pass, when there is more to say than its status. */
108
+ why?: string;
109
+ steps: {
110
+ label: string;
111
+ status: ScriptStatus;
112
+ }[];
113
+ }[];
114
+ }[];
115
+ }
@@ -10,15 +10,76 @@ export const HudView = {
10
10
  COLLAPSED: 'collapsed',
11
11
  EXPANDED: 'expanded',
12
12
  };
13
- /** Which panel is showing, when the HUD is open. */
13
+ /**
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.
20
+ */
14
21
  export const HudPanel = {
15
22
  CHAT: 'chat',
23
+ FLOWS: 'flows',
24
+ NOTES: 'notes',
25
+ HARNESS: 'harness',
16
26
  SETTINGS: 'settings',
17
27
  REPORT: 'report',
28
+ ACCOUNT: 'account',
18
29
  NONE: 'none',
19
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
+ };
20
40
  /** What a toggle was switched to; absent for a plain press. */
21
41
  export const HudToggle = {
22
42
  ON: 'on',
23
43
  OFF: 'off',
24
44
  };
45
+ /**
46
+ * What an agent may do with the HUD when it sits over what it has to test (reticle_session tune).
47
+ * `removed` takes it off the page until the next reload; `hidden` keeps it ready to come back.
48
+ */
49
+ export const HudVisibility = {
50
+ SHOWN: 'shown',
51
+ HIDDEN: 'hidden',
52
+ REMOVED: 'removed',
53
+ };
54
+ /** The corner an agent can move the HUD to; `bottom-right` is where it docks by default. */
55
+ export const HudCorner = {
56
+ TOP_LEFT: 'top-left',
57
+ TOP_RIGHT: 'top-right',
58
+ BOTTOM_LEFT: 'bottom-left',
59
+ BOTTOM_RIGHT: 'bottom-right',
60
+ };
61
+ /** Where a replay the human started from the HUD stands, for the chip's progress bar. */
62
+ export const FlowProgressStatus = {
63
+ PLAYING: 'playing',
64
+ PASSED: 'passed',
65
+ FAILED: 'failed',
66
+ };
67
+ /** Where one part of a Harness drive plan stands. */
68
+ export const ScriptStatus = {
69
+ PENDING: 'pending',
70
+ RUNNING: 'running',
71
+ PASSED: 'passed',
72
+ FAILED: 'failed',
73
+ /** Never started: something it needed failed. */
74
+ BLOCKED: 'blocked',
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
+ */
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',
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}`;
@@ -35,6 +35,14 @@ export declare const HumanControlKind: {
35
35
  * what to send is the daemon's question, and a panel that named artifacts could disagree with it.
36
36
  */
37
37
  readonly SYNC: "sync";
38
+ /**
39
+ * Human pressed Sign in in the panel. Carries nothing.
40
+ *
41
+ * A page cannot write `~/.reticle`, so the panel used to copy `reticle connect` and stop there: a
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 connect` does and the panel repaints when it lands.
44
+ */
45
+ readonly SIGNIN: "signin";
38
46
  /**
39
47
  * Human flipped the harness switch in the panel. `text` carries `on` or `off`.
40
48
  *
@@ -49,6 +57,19 @@ export declare const HumanControlKind: {
49
57
  * and an impatient finger both need.
50
58
  */
51
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";
52
73
  };
53
74
  export type HumanControlKind = (typeof HumanControlKind)[keyof typeof HumanControlKind];
54
75
  /**
@@ -36,6 +36,14 @@ export const HumanControlKind = {
36
36
  * what to send is the daemon's question, and a panel that named artifacts could disagree with it.
37
37
  */
38
38
  SYNC: 'sync',
39
+ /**
40
+ * Human pressed Sign in in the panel. Carries nothing.
41
+ *
42
+ * A page cannot write `~/.reticle`, so the panel used to copy `reticle connect` and stop there: a
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 connect` does and the panel repaints when it lands.
45
+ */
46
+ SIGNIN: 'signin',
39
47
  /**
40
48
  * Human flipped the harness switch in the panel. `text` carries `on` or `off`.
41
49
  *
@@ -50,6 +58,19 @@ export const HumanControlKind = {
50
58
  * and an impatient finger both need.
51
59
  */
52
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',
53
74
  };
54
75
  /**
55
76
  * Human review marks: the durability tier of the anchor that pins a mark to an element. Mirrors the
@@ -20,6 +20,8 @@
20
20
  export declare const RETICLE_IPC_GLOBAL = "__reticleIpc";
21
21
  /** The ipcMain channel the capture helper answers, invoked by the preload on the SDK's behalf. */
22
22
  export declare const RETICLE_CAPTURE_CHANNEL = "__reticle:capture";
23
+ /** The ipcMain channel that answers which window asked: the label the app registered it under. */
24
+ export declare const RETICLE_WINDOW_CHANNEL = "__reticle:window";
23
25
  /**
24
26
  * Filename prefix for a screenshot the main process writes to the OS temp directory.
25
27
  *
@@ -36,6 +38,14 @@ export declare const RETICLE_CAPTURE_FILE_PREFIX = "reticle-capture-";
36
38
  * gets screenshots by adding ONE Rust command and nothing at all on the JavaScript side.
37
39
  */
38
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;
39
49
  /**
40
50
  * What a shell answers when asked for `fullPage` it cannot produce.
41
51
  *
@@ -61,6 +71,7 @@ export declare const RETICLE_NOT_COMPOSITED: string;
61
71
  export declare const DESKTOP_CONTRACT: {
62
72
  readonly RETICLE_IPC_GLOBAL: "__reticleIpc";
63
73
  readonly RETICLE_CAPTURE_CHANNEL: "__reticle:capture";
74
+ readonly RETICLE_WINDOW_CHANNEL: "__reticle:window";
64
75
  readonly RETICLE_CAPTURE_FILE_PREFIX: "reticle-capture-";
65
76
  readonly RETICLE_TAURI_CAPTURE_COMMAND: "reticle_capture";
66
77
  readonly RETICLE_FULL_PAGE_UNSUPPORTED: string;
@@ -21,6 +21,8 @@ import { VisualReason } from './constants/constants.js';
21
21
  export const RETICLE_IPC_GLOBAL = '__reticleIpc';
22
22
  /** The ipcMain channel the capture helper answers, invoked by the preload on the SDK's behalf. */
23
23
  export const RETICLE_CAPTURE_CHANNEL = '__reticle:capture';
24
+ /** The ipcMain channel that answers which window asked: the label the app registered it under. */
25
+ export const RETICLE_WINDOW_CHANNEL = '__reticle:window';
24
26
  /**
25
27
  * Filename prefix for a screenshot the main process writes to the OS temp directory.
26
28
  *
@@ -37,6 +39,17 @@ export const RETICLE_CAPTURE_FILE_PREFIX = 'reticle-capture-';
37
39
  * gets screenshots by adding ONE Rust command and nothing at all on the JavaScript side.
38
40
  */
39
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';
40
53
  /**
41
54
  * What a shell answers when asked for `fullPage` it cannot produce.
42
55
  *
@@ -62,6 +75,7 @@ export const RETICLE_NOT_COMPOSITED = VisualReason.NOT_COMPOSITED;
62
75
  export const DESKTOP_CONTRACT = {
63
76
  RETICLE_IPC_GLOBAL,
64
77
  RETICLE_CAPTURE_CHANNEL,
78
+ RETICLE_WINDOW_CHANNEL,
65
79
  RETICLE_CAPTURE_FILE_PREFIX,
66
80
  RETICLE_TAURI_CAPTURE_COMMAND,
67
81
  RETICLE_FULL_PAGE_UNSUPPORTED,
@@ -46,6 +46,21 @@ export declare const ScrollDirection: {
46
46
  readonly DOWN: "down";
47
47
  };
48
48
  export type ScrollDirection = (typeof ScrollDirection)[keyof typeof ScrollDirection];
49
+ /**
50
+ * How a `route.change` happened.
51
+ *
52
+ * `push` is `history.pushState`, `replace` is `history.replaceState`, and `pop` is the session
53
+ * history moving under the page (`popstate`, or a `hashchange` the page did not push). A
54
+ * same-pathname replace records UI state in the URL; it is not a navigation to a new view.
55
+ */
56
+ export declare const RouteChangeHow: {
57
+ readonly PUSH: "push";
58
+ readonly REPLACE: "replace";
59
+ readonly POP: "pop";
60
+ };
61
+ export type RouteChangeHow = (typeof RouteChangeHow)[keyof typeof RouteChangeHow];
62
+ /** Wire field on `route.change` carrying a `RouteChangeHow`. */
63
+ export declare const ROUTE_CHANGE_HOW_FIELD = "how";
49
64
  /**
50
65
  * The three readable client-side storage areas.
51
66
  *
@@ -308,6 +323,7 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
308
323
  readonly CLOSE: "close";
309
324
  }>;
310
325
  url: z.ZodString;
326
+ urlRaw: z.ZodOptional<z.ZodString>;
311
327
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
312
328
  transport: z.ZodNativeEnum<{
313
329
  readonly SSE: "sse";
@@ -321,6 +337,7 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
321
337
  readonly CLOSE: "close";
322
338
  }>;
323
339
  url: z.ZodString;
340
+ urlRaw: z.ZodOptional<z.ZodString>;
324
341
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
325
342
  transport: z.ZodNativeEnum<{
326
343
  readonly SSE: "sse";
@@ -334,6 +351,7 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
334
351
  readonly CLOSE: "close";
335
352
  }>;
336
353
  url: z.ZodString;
354
+ urlRaw: z.ZodOptional<z.ZodString>;
337
355
  }, z.ZodTypeAny, "passthrough">>;
338
356
  download: z.ZodObject<{
339
357
  mimeType: z.ZodString;
@@ -365,14 +383,32 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
365
383
  }>;
366
384
  value: z.ZodNumber;
367
385
  at: z.ZodNumber;
386
+ shifted: z.ZodOptional<z.ZodObject<{
387
+ ref: z.ZodString;
388
+ selector: z.ZodString;
389
+ }, "strip", z.ZodTypeAny, {
390
+ ref: string;
391
+ selector: string;
392
+ }, {
393
+ ref: string;
394
+ selector: string;
395
+ }>>;
368
396
  }, "strip", z.ZodTypeAny, {
369
397
  value: number;
370
398
  at: number;
371
399
  metric: "lcp" | "cls" | "longtask";
400
+ shifted?: {
401
+ ref: string;
402
+ selector: string;
403
+ } | undefined;
372
404
  }, {
373
405
  value: number;
374
406
  at: number;
375
407
  metric: "lcp" | "cls" | "longtask";
408
+ shifted?: {
409
+ ref: string;
410
+ selector: string;
411
+ } | undefined;
376
412
  }>;
377
413
  "route.change": z.ZodObject<{
378
414
  from: z.ZodString;
@@ -380,16 +416,23 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
380
416
  pathname: z.ZodString;
381
417
  search: z.ZodString;
382
418
  hash: z.ZodString;
419
+ how: z.ZodNativeEnum<{
420
+ readonly PUSH: "push";
421
+ readonly REPLACE: "replace";
422
+ readonly POP: "pop";
423
+ }>;
383
424
  }, "strip", z.ZodTypeAny, {
384
425
  from: string;
385
426
  to: string;
386
427
  pathname: string;
428
+ how: "pop" | "push" | "replace";
387
429
  search: string;
388
430
  hash: string;
389
431
  }, {
390
432
  from: string;
391
433
  to: string;
392
434
  pathname: string;
435
+ how: "pop" | "push" | "replace";
393
436
  search: string;
394
437
  hash: string;
395
438
  }>;
@@ -575,6 +618,10 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
575
618
  runtime: z.ZodOptional<z.ZodString>;
576
619
  /** The rendering engine, coarse on purpose (blink / gecko / webkit). Same reasoning as `runtime`. */
577
620
  engine: z.ZodOptional<z.ZodString>;
621
+ /** The desktop shell's own name for this window (Tauri's label: `main`, `setup`). */
622
+ windowLabel: z.ZodOptional<z.ZodString>;
623
+ /** The HTTP status the document was served with, when the page could read it. */
624
+ documentStatus: z.ZodOptional<z.ZodNumber>;
578
625
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
579
626
  hidden: z.ZodBoolean;
580
627
  focused: z.ZodBoolean;
@@ -613,6 +660,10 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
613
660
  runtime: z.ZodOptional<z.ZodString>;
614
661
  /** The rendering engine, coarse on purpose (blink / gecko / webkit). Same reasoning as `runtime`. */
615
662
  engine: z.ZodOptional<z.ZodString>;
663
+ /** The desktop shell's own name for this window (Tauri's label: `main`, `setup`). */
664
+ windowLabel: z.ZodOptional<z.ZodString>;
665
+ /** The HTTP status the document was served with, when the page could read it. */
666
+ documentStatus: z.ZodOptional<z.ZodNumber>;
616
667
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
617
668
  hidden: z.ZodBoolean;
618
669
  focused: z.ZodBoolean;
@@ -651,6 +702,10 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
651
702
  runtime: z.ZodOptional<z.ZodString>;
652
703
  /** The rendering engine, coarse on purpose (blink / gecko / webkit). Same reasoning as `runtime`. */
653
704
  engine: z.ZodOptional<z.ZodString>;
705
+ /** The desktop shell's own name for this window (Tauri's label: `main`, `setup`). */
706
+ windowLabel: z.ZodOptional<z.ZodString>;
707
+ /** The HTTP status the document was served with, when the page could read it. */
708
+ documentStatus: z.ZodOptional<z.ZodNumber>;
654
709
  }, z.ZodTypeAny, "passthrough">>;
655
710
  "context.opened": z.ZodObject<{
656
711
  href: z.ZodOptional<z.ZodString>;
@@ -818,14 +873,18 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
818
873
  readonly MESSAGE: "message";
819
874
  readonly REPLAY: "replay";
820
875
  readonly SYNC: "sync";
876
+ readonly SIGNIN: "signin";
821
877
  readonly HARNESS: "harness";
878
+ readonly HARNESS_RUN: "harness-run";
879
+ readonly HARNESS_STOP: "harness-stop";
880
+ readonly HARNESS_LINK: "harness-link";
822
881
  }>;
823
882
  text: z.ZodOptional<z.ZodString>;
824
883
  }, "strip", z.ZodTypeAny, {
825
- kind: "message" | "harness" | "pause" | "resume" | "end" | "replay" | "sync";
884
+ kind: "message" | "harness" | "pause" | "resume" | "end" | "replay" | "sync" | "signin" | "harness-run" | "harness-stop" | "harness-link";
826
885
  text?: string | undefined;
827
886
  }, {
828
- kind: "message" | "harness" | "pause" | "resume" | "end" | "replay" | "sync";
887
+ kind: "message" | "harness" | "pause" | "resume" | "end" | "replay" | "sync" | "signin" | "harness-run" | "harness-stop" | "harness-link";
829
888
  text?: string | undefined;
830
889
  }>;
831
890
  "human.mark": z.ZodObject<{
@@ -883,20 +942,34 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
883
942
  }>>;
884
943
  panel: z.ZodOptional<z.ZodNativeEnum<{
885
944
  readonly CHAT: "chat";
945
+ readonly FLOWS: "flows";
946
+ readonly NOTES: "notes";
947
+ readonly HARNESS: "harness";
886
948
  readonly SETTINGS: "settings";
887
949
  readonly REPORT: "report";
950
+ readonly ACCOUNT: "account";
888
951
  readonly NONE: "none";
889
952
  }>>;
953
+ slide: z.ZodOptional<z.ZodString>;
954
+ prompt: z.ZodOptional<z.ZodNativeEnum<{
955
+ readonly RAIL: "rail";
956
+ readonly HARNESS: "harness";
957
+ readonly HEADER: "header";
958
+ }>>;
890
959
  }, "strip", z.ZodTypeAny, {
891
960
  control?: string | undefined;
892
961
  toggle?: "on" | "off" | undefined;
893
962
  view?: "expanded" | "bubble" | "collapsed" | undefined;
894
- panel?: "none" | "chat" | "settings" | "report" | undefined;
963
+ panel?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
964
+ slide?: string | undefined;
965
+ prompt?: "harness" | "rail" | "header" | undefined;
895
966
  }, {
896
967
  control?: string | undefined;
897
968
  toggle?: "on" | "off" | undefined;
898
969
  view?: "expanded" | "bubble" | "collapsed" | undefined;
899
- panel?: "none" | "chat" | "settings" | "report" | undefined;
970
+ panel?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
971
+ slide?: string | undefined;
972
+ prompt?: "harness" | "rail" | "header" | undefined;
900
973
  }>;
901
974
  };
902
975
  /** Narrow an event's `data` against its type's payload schema. Unknown in, typed-or-error out. */