@reticlehq/core 3.2.0 → 3.4.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/README.md +1 -1
- package/dist/artifacts/flow-composition.d.ts +3 -2
- package/dist/artifacts/flow-constants.d.ts +68 -2
- package/dist/artifacts/flow-constants.js +84 -2
- package/dist/artifacts/flow-expect-flat.d.ts +260 -0
- package/dist/artifacts/flow-expect-flat.js +284 -0
- package/dist/artifacts/flow-mutation-target.d.ts +0 -1
- package/dist/artifacts/flow-mutation-target.js +30 -2
- package/dist/artifacts/flow-step-tool.d.ts +2 -0
- package/dist/artifacts/flow-types.d.ts +1285 -1343
- package/dist/artifacts/flow-types.js +111 -140
- package/dist/artifacts/impact.d.ts +48 -20
- package/dist/artifacts/impact.js +11 -0
- package/dist/artifacts/journal.d.ts +34 -6
- package/dist/artifacts/journal.js +13 -0
- package/dist/hooks/hook-events.d.ts +18 -18
- package/dist/hud-entry.d.ts +9 -0
- package/dist/hud-entry.js +9 -0
- package/dist/identity/source-constants.d.ts +11 -0
- package/dist/identity/source-constants.js +11 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +25 -1
- package/dist/onboarding.d.ts +2 -2
- package/dist/realm/registry.d.ts +0 -8
- package/dist/realm/registry.js +1 -11
- package/dist/registry/daemon-registry.d.ts +14 -4
- package/dist/registry/daemon-registry.js +20 -4
- package/dist/schema/event-message.json +3 -1
- package/dist/schema/event-payloads.json +72 -0
- package/dist/schema/event-type.json +3 -1
- package/dist/schema/reticle-event.json +3 -1
- package/dist/schema/reticle-message.json +3 -1
- package/dist/source-constants.cjs +1 -0
- package/dist/source-constants.d.cts +1 -0
- package/dist/telemetry-feedback.d.ts +6 -6
- package/dist/telemetry-refusal.d.ts +5 -4
- package/dist/telemetry-session.d.ts +25 -2
- package/dist/telemetry-session.js +13 -0
- package/dist/telemetry.d.ts +130 -102
- package/dist/verdict/compare-source.d.ts +80 -0
- package/dist/verdict/compare-source.js +93 -0
- package/dist/verdict/consequence.d.ts +12 -0
- package/dist/verdict/consequence.js +15 -0
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +24 -0
- package/dist/verdict/intent.js +66 -10
- package/dist/verdict/predicate-tree.d.ts +82 -0
- package/dist/verdict/predicate-tree.js +186 -0
- package/dist/verdict/predicate.d.ts +138 -0
- package/dist/verdict/predicate.js +430 -0
- package/dist/verdict/property-assertion.d.ts +191 -0
- package/dist/verdict/property-assertion.js +42 -0
- package/dist/verdict/security.js +16 -4
- package/dist/verdict/verdict-attribution.d.ts +52 -0
- package/dist/verdict/verdict-attribution.js +87 -0
- package/dist/verdict/verification-run.d.ts +330 -83
- package/dist/verdict/verification-run.js +44 -1
- package/dist/verdict/verified-constants.d.ts +9 -0
- package/dist/verdict/verified-constants.js +9 -0
- package/dist/wire/channel.d.ts +10 -0
- package/dist/wire/channel.js +25 -0
- package/dist/wire/constants/constants.d.ts +65 -102
- package/dist/wire/constants/constants.js +79 -101
- package/dist/wire/constants/discovery.d.ts +25 -0
- package/dist/wire/constants/discovery.js +25 -0
- package/dist/wire/constants/event-types.d.ts +122 -0
- package/dist/wire/constants/event-types.js +121 -0
- package/dist/wire/constants/hud-controls.d.ts +19 -0
- package/dist/wire/constants/hud-controls.js +95 -0
- package/dist/wire/constants/hud-use.d.ts +27 -0
- package/dist/wire/constants/hud-use.js +24 -0
- package/dist/wire/constants/session-constants.d.ts +10 -0
- package/dist/wire/constants/session-constants.js +10 -0
- package/dist/wire/event-payloads.d.ts +72 -13
- package/dist/wire/event-payloads.js +26 -4
- package/dist/wire/messages.d.ts +97 -56
- package/dist/wire/messages.js +17 -0
- package/dist/wire/net.d.ts +35 -0
- package/dist/wire/net.js +41 -0
- package/dist/wire/redaction.js +17 -0
- package/dist/wire/state-select.d.ts +2 -1
- package/dist/wire/state-select.js +56 -3
- package/dist/wire/toon.d.ts +1 -1
- package/dist/wire/toon.js +30 -8
- package/dist/wire/types.d.ts +119 -94
- package/dist/wire/types.js +23 -1
- package/dist/words/no-session-reason.d.ts +7 -0
- package/dist/words/no-session-reason.js +7 -0
- package/dist/words/notices.d.ts +7 -0
- package/dist/words/notices.js +9 -2
- package/package.json +7 -2
package/dist/words/notices.js
CHANGED
|
@@ -46,6 +46,13 @@ export const BUFFER_EVICTION_WARNING = 'event buffer evicted older events (age/s
|
|
|
46
46
|
* so the two no-session paths now agree.
|
|
47
47
|
*/
|
|
48
48
|
export const NO_SESSION_CONNECTED_ERROR = "no browser session connected. Two things to check: (1) your app is running with @reticlehq/browser enabled, and (2) it points at THIS daemon's port — a mismatch between the app's reticle({ port }) / VITE_RETICLE_WS_URL and the daemon's RETICLE_PORT is the usual cause. Call reticle_sessions for the diagnosis — it names which of these it is, and what to do next — rather than retrying this call.";
|
|
49
|
+
/**
|
|
50
|
+
* Explains an unconfirmed navigation that did reconnect, but at a different URL.
|
|
51
|
+
*
|
|
52
|
+
* The URL itself is supplied by the navigation result as `landedOn`; this constant keeps the
|
|
53
|
+
* surrounding explanation on the core wire-copy side rather than embedding it in the server tool.
|
|
54
|
+
*/
|
|
55
|
+
export const NAVIGATION_REDIRECT_NOTE = 'The navigation arrived, but the browser landed at a different URL. The app may have redirected the navigation, for example because authentication or another route guard changed the destination.';
|
|
49
56
|
/** Surfaced on act/assert results when the target tab is throttled. */
|
|
50
57
|
export const THROTTLED_WARNING = 'tab throttled; timer/rAF/pointer gestures may silently no-op; refocus before driving';
|
|
51
58
|
/**
|
|
@@ -55,7 +62,7 @@ export const THROTTLED_WARNING = 'tab throttled; timer/rAF/pointer gestures may
|
|
|
55
62
|
* failure. The CLI escape hatch is named second; an MCP-only agent has no shell.
|
|
56
63
|
*/
|
|
57
64
|
export const THROTTLED_STARVED_NOTE = 'this tab is throttled and has not rendered; a miss here is not evidence the UI is absent. ' +
|
|
58
|
-
'acquire a scriptable context with reticle_run { tool: "reticle_lease", action: "acquire", url } ' +
|
|
65
|
+
'acquire a scriptable context with reticle_run { tool: "reticle_lease", args: { action: "acquire", url } } ' +
|
|
59
66
|
'(the human can run `reticle drive <url>` if they have a shell)';
|
|
60
67
|
/**
|
|
61
68
|
* Carried by a `console absent` pass whose window starts where the SDK attached.
|
|
@@ -141,7 +148,7 @@ export const LEASE_IS_INVISIBLE_NOTE = 'note that a lease is a SEPARATE context:
|
|
|
141
148
|
* No `reticle_lease` and no `reticle drive` in this sentence, deliberately. Both are checked by test.
|
|
142
149
|
*/
|
|
143
150
|
export const DESKTOP_WINDOW_BACKGROUNDED = "this app window is in the background, and a backgrounded webview clamps its timers and rAF — a synthetic action can land on a page that never advances. Bring the app window to the front and retry. A lease is NOT the answer for a desktop app: it opens a browser context, which has none of this app's IPC or commands.";
|
|
144
|
-
export const HIDDEN_TAB_RECOMMENDATION = 'tab hidden and may be un-focusable from here; timers and rAF are clamped in a background tab, so an action can land on a page that never advances. Refocus it, or acquire a guaranteed scriptable context yourself with `reticle_run { tool: "reticle_lease", action: "acquire", url }` (a human can equivalently run `reticle drive <url>`) — ' +
|
|
151
|
+
export const HIDDEN_TAB_RECOMMENDATION = 'tab hidden and may be un-focusable from here; timers and rAF are clamped in a background tab, so an action can land on a page that never advances. Refocus it, or acquire a guaranteed scriptable context yourself with `reticle_run { tool: "reticle_lease", args: { action: "acquire", url } }` (a human can equivalently run `reticle drive <url>`) — ' +
|
|
145
152
|
LEASE_IS_INVISIBLE_NOTE;
|
|
146
153
|
/**
|
|
147
154
|
* A tab that is NOT hidden but has gone quiet — the `throttled` flag without `hidden`.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reticlehq/core",
|
|
3
|
-
"version": "3.
|
|
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.",
|
|
3
|
+
"version": "3.4.0",
|
|
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",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
"./tour": {
|
|
36
36
|
"types": "./dist/tour-entry.d.ts",
|
|
37
37
|
"default": "./dist/tour-entry.js"
|
|
38
|
+
},
|
|
39
|
+
"./hud": {
|
|
40
|
+
"types": "./dist/hud-entry.d.ts",
|
|
41
|
+
"default": "./dist/hud-entry.js"
|
|
38
42
|
}
|
|
39
43
|
},
|
|
40
44
|
"dependencies": {
|
|
@@ -42,6 +46,7 @@
|
|
|
42
46
|
"open-verification": "1.0.0"
|
|
43
47
|
},
|
|
44
48
|
"devDependencies": {
|
|
49
|
+
"fast-check": "^4.10.2",
|
|
45
50
|
"zod-to-json-schema": "^3.24.0"
|
|
46
51
|
},
|
|
47
52
|
"license": "Apache-2.0",
|