@reticlehq/core 3.10.11 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/flow-results.d.ts +34 -0
- package/dist/identity/github-action.d.ts +2 -2
- package/dist/identity/github-action.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/page-entry.d.ts +5 -2
- package/dist/page-entry.js +5 -2
- package/dist/realm/picture-text.d.ts +22 -0
- package/dist/realm/picture-text.js +19 -0
- package/dist/realm/registry.d.ts +15 -0
- package/dist/realm/registry.js +38 -2
- package/dist/schema/command-name.json +1 -0
- package/dist/schema/event-payloads.json +12 -0
- package/dist/schema/hello-message.json +5 -0
- package/dist/schema/reticle-message.json +5 -0
- package/dist/telemetry-bug.d.ts +7 -0
- package/dist/telemetry-bug.js +3 -0
- package/dist/telemetry-feedback.d.ts +15 -0
- package/dist/telemetry-feedback.js +7 -1
- package/dist/telemetry.d.ts +23 -0
- package/dist/telemetry.js +6 -1
- package/dist/verdict/check-sentence.js +8 -1
- package/dist/verdict/findings.d.ts +23 -0
- package/dist/verdict/findings.js +19 -0
- package/dist/verdict/property-assertion.d.ts +5 -0
- package/dist/verdict/property-assertion.js +36 -0
- package/dist/wire/click-input.d.ts +22 -1
- package/dist/wire/click-input.js +35 -1
- package/dist/wire/constants/constants.d.ts +13 -3
- package/dist/wire/constants/constants.js +14 -3
- package/dist/wire/constants/dialog-consent.d.ts +20 -0
- package/dist/wire/constants/dialog-consent.js +20 -0
- package/dist/wire/constants/event-types.d.ts +10 -0
- package/dist/wire/constants/event-types.js +10 -0
- package/dist/wire/constants/match-args.d.ts +2 -0
- package/dist/wire/constants/match-args.js +2 -0
- package/dist/wire/constants/navigate-history.d.ts +29 -0
- package/dist/wire/constants/navigate-history.js +27 -0
- package/dist/wire/constants/render-stats.d.ts +24 -0
- package/dist/wire/constants/render-stats.js +22 -0
- package/dist/wire/constants/reticle-env.d.ts +3 -0
- package/dist/wire/constants/reticle-env.js +3 -0
- package/dist/wire/constants/window-arrangement.d.ts +16 -0
- package/dist/wire/constants/window-arrangement.js +16 -0
- package/dist/wire/event-payloads.d.ts +4 -1
- package/dist/wire/event-payloads.js +19 -2
- package/dist/wire/messages.d.ts +13 -0
- package/dist/wire/messages.js +15 -0
- package/dist/wire/production/production-policy.d.ts +6 -1
- package/dist/wire/production/production-policy.js +6 -1
- package/dist/wire/tool-names.d.ts +12 -0
- package/dist/wire/tool-names.js +13 -0
- package/dist/wire/types.d.ts +8 -0
- package/dist/words/faded-reason.d.ts +11 -0
- package/dist/words/faded-reason.js +15 -0
- package/package.json +1 -1
|
@@ -19,10 +19,15 @@ export const ProductionRule = {
|
|
|
19
19
|
OBSERVE_ONLY: 'the session scope is observe, so it does not act',
|
|
20
20
|
/** The drive stays on the origin it was activated for. */
|
|
21
21
|
OFF_ORIGIN: 'leave the activated origin',
|
|
22
|
+
/**
|
|
23
|
+
* Back and Forward land on whatever entry the browser has, which can be another origin. Unlike a
|
|
24
|
+
* URL, that target cannot be checked against the origin first, so the move is refused (#1844).
|
|
25
|
+
*/
|
|
26
|
+
HISTORY_MOVE: 'move through the tab history, to a page that cannot be checked first',
|
|
22
27
|
/** The nonce's time is up; the drive is over. */
|
|
23
28
|
EXPIRED: 'the session nonce expired',
|
|
24
29
|
};
|
|
25
|
-
/** The rules an intent can allow. The other
|
|
30
|
+
/** The rules an intent can allow. The other four are never lifted. */
|
|
26
31
|
export const LIFTABLE_PRODUCTION_RULES = [
|
|
27
32
|
ProductionRule.PAYMENT,
|
|
28
33
|
ProductionRule.DELETE_WORKSPACE,
|
|
@@ -108,6 +108,18 @@ export declare const ReticleTool: {
|
|
|
108
108
|
readonly RESUME: "reticle_resume";
|
|
109
109
|
/** Live-control: drain the human→agent inbox (explicit poll). */
|
|
110
110
|
readonly MESSAGES: "reticle_messages";
|
|
111
|
+
/**
|
|
112
|
+
* A board of named values that every session and agent on this bridge can read and write: how a
|
|
113
|
+
* desktop session, a browser session and a plan of the Harness pass a value to each other.
|
|
114
|
+
*/
|
|
115
|
+
readonly BOARD: "reticle_board";
|
|
116
|
+
/**
|
|
117
|
+
* Join a tab that is open in the person's own browser (their mail, a cloud console), over the
|
|
118
|
+
* browser's debugging port, as a session: the reader is put in the tab, not in a tab of its own.
|
|
119
|
+
*/
|
|
120
|
+
readonly ATTACH_TAB: "reticle_attach_tab";
|
|
121
|
+
readonly OPEN_REALM: "reticle_open_realm";
|
|
122
|
+
readonly CLOSE_REALM: "reticle_close_realm";
|
|
111
123
|
/** Human review: list the mistakes the human pinned to elements, and resolve them once fixed. */
|
|
112
124
|
readonly REVIEW: "reticle_review";
|
|
113
125
|
/** First-run readiness: block briefly until the app's SDK connects (smooths the init→connect race). */
|
package/dist/wire/tool-names.js
CHANGED
|
@@ -118,6 +118,19 @@ export const ReticleTool = {
|
|
|
118
118
|
RESUME: 'reticle_resume',
|
|
119
119
|
/** Live-control: drain the human→agent inbox (explicit poll). */
|
|
120
120
|
MESSAGES: 'reticle_messages',
|
|
121
|
+
/**
|
|
122
|
+
* A board of named values that every session and agent on this bridge can read and write: how a
|
|
123
|
+
* desktop session, a browser session and a plan of the Harness pass a value to each other.
|
|
124
|
+
*/
|
|
125
|
+
BOARD: 'reticle_board',
|
|
126
|
+
/**
|
|
127
|
+
* Join a tab that is open in the person's own browser (their mail, a cloud console), over the
|
|
128
|
+
* browser's debugging port, as a session: the reader is put in the tab, not in a tab of its own.
|
|
129
|
+
*/
|
|
130
|
+
ATTACH_TAB: 'reticle_attach_tab',
|
|
131
|
+
// Open a realm as a session (a desktop application, a tab of the person's browser), and close what was opened.
|
|
132
|
+
OPEN_REALM: 'reticle_open_realm',
|
|
133
|
+
CLOSE_REALM: 'reticle_close_realm',
|
|
121
134
|
/** Human review: list the mistakes the human pinned to elements, and resolve them once fixed. */
|
|
122
135
|
REVIEW: 'reticle_review',
|
|
123
136
|
/** First-run readiness: block briefly until the app's SDK connects (smooths the init→connect race). */
|
package/dist/wire/types.d.ts
CHANGED
|
@@ -113,6 +113,14 @@ export interface MatchResult {
|
|
|
113
113
|
* the caller needs this to tell the two apart before it judges a property on what it was given.
|
|
114
114
|
*/
|
|
115
115
|
fullText?: true;
|
|
116
|
+
/**
|
|
117
|
+
* Present, and true, only when the page honoured `MatchArg.OUTSIDE_VIRTUALIZED` and proved it: the
|
|
118
|
+
* `scope` is a ref to a live element that is not inside a virtualized list and does not contain
|
|
119
|
+
* one, and no match is inside one. An unmounted row of such a list then cannot hold a match. A page
|
|
120
|
+
* too old to know the argument ignores it and does not send the field, so a caller that does not
|
|
121
|
+
* see it must not assume the proof.
|
|
122
|
+
*/
|
|
123
|
+
outsideVirtualized?: true;
|
|
116
124
|
/**
|
|
117
125
|
* True when a `scope` was given but resolved to nothing (the container was unmounted or the selector
|
|
118
126
|
* matched no element). The search returns zero matches WITHOUT falling back to the whole page, and
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words that start an `unreadable` reason when the composed opacity hides the text.
|
|
3
|
+
*
|
|
4
|
+
* `@reticlehq/browser` writes the reason and `@reticlehq/engine` reads it back to add advice. The two
|
|
5
|
+
* packages do not import each other, so the prefix lives here and both sides use it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FADED_REASON_PREFIX = "the composed opacity is";
|
|
8
|
+
/** The reason the browser gives for text hidden by opacity. The opacity follows, to two decimals. */
|
|
9
|
+
export declare function fadedReason(opacity: number): string;
|
|
10
|
+
/** True when a reason says that opacity hid the text. */
|
|
11
|
+
export declare function isFadedReason(reason: string): boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words that start an `unreadable` reason when the composed opacity hides the text.
|
|
3
|
+
*
|
|
4
|
+
* `@reticlehq/browser` writes the reason and `@reticlehq/engine` reads it back to add advice. The two
|
|
5
|
+
* packages do not import each other, so the prefix lives here and both sides use it.
|
|
6
|
+
*/
|
|
7
|
+
export const FADED_REASON_PREFIX = 'the composed opacity is';
|
|
8
|
+
/** The reason the browser gives for text hidden by opacity. The opacity follows, to two decimals. */
|
|
9
|
+
export function fadedReason(opacity) {
|
|
10
|
+
return `${FADED_REASON_PREFIX} ${opacity.toFixed(2)}`;
|
|
11
|
+
}
|
|
12
|
+
/** True when a reason says that opacity hid the text. */
|
|
13
|
+
export function isFadedReason(reason) {
|
|
14
|
+
return reason.includes(FADED_REASON_PREFIX);
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reticlehq/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.1",
|
|
4
4
|
"description": "The Reticle foundation: the shared wire contract — types, zod schemas, constants, messages, and the isomorphic kernel that every Reticle package (browser SDK, server, kits, test harness) imports. Depends only on zod and open-verification.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|