@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
@@ -41,7 +41,7 @@ export declare const BUFFER_EVICTION_WARNING = "event buffer evicted older event
41
41
  * blocking and telling you nothing. It is the same tool `#unknownSessionError` already points at,
42
42
  * so the two no-session paths now agree.
43
43
  */
44
- export declare 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 \u2014 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 \u2014 it names which of these it is, and what to do next \u2014 rather than retrying this call.";
44
+ export declare 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 \u2014 a mismatch between the port the app dials (the build plugin's reticle({ port }), or RETICLE_PORT when the dev server started) and the daemon's port is the usual cause. Call reticle_session { action: \"list\" } for the diagnosis \u2014 it names which of these it is, and what to do next \u2014 rather than retrying this call.";
45
45
  /**
46
46
  * Explains an unconfirmed navigation that did reconnect, but at a different URL.
47
47
  *
@@ -45,7 +45,7 @@ export const BUFFER_EVICTION_WARNING = 'event buffer evicted older events (age/s
45
45
  * blocking and telling you nothing. It is the same tool `#unknownSessionError` already points at,
46
46
  * so the two no-session paths now agree.
47
47
  */
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.";
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 port the app dials (the build plugin's reticle({ port }), or RETICLE_PORT when the dev server started) and the daemon's port is the usual cause. Call reticle_session { action: \"list\" } for the diagnosis — it names which of these it is, and what to do next — rather than retrying this call.";
49
49
  /**
50
50
  * Explains an unconfirmed navigation that did reconnect, but at a different URL.
51
51
  *
@@ -62,8 +62,10 @@ export const THROTTLED_WARNING = 'tab throttled; timer/rAF/pointer gestures may
62
62
  * failure. The CLI escape hatch is named second; an MCP-only agent has no shell.
63
63
  */
64
64
  export const THROTTLED_STARVED_NOTE = 'this tab is throttled and has not rendered; a miss here is not evidence the UI is absent. ' +
65
- 'acquire a scriptable context with reticle_run { tool: "reticle_lease", args: { action: "acquire", url } } ' +
66
- '(the human can run `reticle drive <url>` if they have a shell)';
65
+ 'Bring its window to the front and retry. A web tab can instead be driven in a scriptable context: ' +
66
+ 'reticle_run { tool: "reticle_lease", args: { action: "acquire", url } } ' +
67
+ '(the human can run `reticle drive <url>` if they have a shell). Never for a desktop app: a lease ' +
68
+ "is a browser, with none of the app's IPC.";
67
69
  /**
68
70
  * Carried by a `console absent` pass whose window starts where the SDK attached.
69
71
  *
@@ -62,7 +62,7 @@ export function isCloudCapability(value) {
62
62
  const COPY_BY_CAPABILITY = {
63
63
  [CloudCapability.SHARE_PROOF]: {
64
64
  reason: 'Sharing a verification result with a teammate needs a hosted, linkable proof page.',
65
- unlockedBy: 'Link a free Reticle Cloud account (reticle login), then share the run.',
65
+ unlockedBy: 'Link a free Reticle Cloud account (reticle connect), then share the run.',
66
66
  },
67
67
  [CloudCapability.RUN_HISTORY]: {
68
68
  reason: 'Run history beyond this session lives in the hosted dashboard; local keeps only a buffer.',
@@ -0,0 +1,14 @@
1
+ /**
2
+ * How an agent must write the text that Reticle keeps: flow names, notes, feedback, reports and plans.
3
+ *
4
+ * The standard is ASD-STE100 (Simplified Technical English), followed about 80% of the way. Other
5
+ * agents, other models and people who do not speak English as a first language read this text later.
6
+ * A short, literal sentence keeps one meaning for all of them.
7
+ *
8
+ * One source for every prompt. The open-source harness, the MCP briefing and the platform harness
9
+ * all import these words, so the rule cannot drift between them.
10
+ */
11
+ /** The full rule, for a model prompt that has room for it. */
12
+ export declare const WRITING_RULE: string;
13
+ /** The same rule in one line, for the MCP briefing, which has a hard byte cap. */
14
+ export declare const WRITING_RULE_SHORT = "Write saved text (flows, notes, feedback) in ASD-STE100 Simplified English: short, active, literal.";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * How an agent must write the text that Reticle keeps: flow names, notes, feedback, reports and plans.
3
+ *
4
+ * The standard is ASD-STE100 (Simplified Technical English), followed about 80% of the way. Other
5
+ * agents, other models and people who do not speak English as a first language read this text later.
6
+ * A short, literal sentence keeps one meaning for all of them.
7
+ *
8
+ * One source for every prompt. The open-source harness, the MCP briefing and the platform harness
9
+ * all import these words, so the rule cannot drift between them.
10
+ */
11
+ /** The full rule, for a model prompt that has room for it. */
12
+ export const WRITING_RULE = 'Write all text that you save or report (flow names, notes, feedback, summaries, plans) in Simplified ' +
13
+ 'Technical English (ASD-STE100): short sentences (about 20 words), one topic per sentence, active voice, ' +
14
+ 'simple tenses, commands for instructions, and one meaning for each word. Do not use idioms or slang. ' +
15
+ 'Keep product names, tool names and code identifiers as they are.';
16
+ /** The same rule in one line, for the MCP briefing, which has a hard byte cap. */
17
+ export const WRITING_RULE_SHORT = 'Write saved text (flows, notes, feedback) in ASD-STE100 Simplified English: short, active, literal.';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reticlehq/core",
3
- "version": "3.5.0",
3
+ "version": "3.7.0",
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",