@reticlehq/core 3.8.0 → 3.8.2

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 (97) hide show
  1. package/dist/artifacts/drive-script.d.ts +84 -1217
  2. package/dist/artifacts/drive-script.js +1 -1
  3. package/dist/artifacts/flow-expect-flat.d.ts +8 -192
  4. package/dist/artifacts/flow-expect-flat.js +2 -2
  5. package/dist/artifacts/flow-results.d.ts +15 -0
  6. package/dist/artifacts/flow-types.d.ts +202 -2331
  7. package/dist/artifacts/flow-types.js +2 -2
  8. package/dist/artifacts/harness-map.d.ts +8 -69
  9. package/dist/artifacts/harness-map.js +1 -1
  10. package/dist/artifacts/hud-notices.d.ts +8 -82
  11. package/dist/artifacts/hud-notices.js +1 -1
  12. package/dist/artifacts/impact.d.ts +80 -1638
  13. package/dist/artifacts/impact.js +4 -4
  14. package/dist/artifacts/journal.d.ts +12 -247
  15. package/dist/artifacts/journal.js +2 -2
  16. package/dist/artifacts/prompt-context.d.ts +5 -43
  17. package/dist/artifacts/prompt-context.js +1 -1
  18. package/dist/artifacts/screenshot-upload.d.ts +3 -26
  19. package/dist/artifacts/screenshot-upload.js +1 -1
  20. package/dist/hooks/hook-events.d.ts +15 -171
  21. package/dist/hooks/hook-events.js +1 -1
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/onboarding.d.ts +8 -58
  25. package/dist/onboarding.js +1 -1
  26. package/dist/registry/daemon-registry.d.ts +2 -14
  27. package/dist/registry/daemon-registry.js +1 -1
  28. package/dist/registry/dev-server-registry.d.ts +2 -31
  29. package/dist/registry/dev-server-registry.js +1 -1
  30. package/dist/registry/project-registry.d.ts +4 -32
  31. package/dist/registry/project-registry.js +1 -1
  32. package/dist/schema/command-message.json +65 -68
  33. package/dist/schema/command-name.json +29 -33
  34. package/dist/schema/command-result.json +25 -30
  35. package/dist/schema/event-message.json +104 -103
  36. package/dist/schema/event-payloads.json +142 -119
  37. package/dist/schema/event-type.json +47 -50
  38. package/dist/schema/hello-message.json +150 -154
  39. package/dist/schema/reticle-event.json +98 -96
  40. package/dist/schema/reticle-message.json +338 -333
  41. package/dist/telemetry-bug.d.ts +4 -75
  42. package/dist/telemetry-bug.js +1 -1
  43. package/dist/telemetry-feedback.d.ts +11 -99
  44. package/dist/telemetry-feedback.js +1 -1
  45. package/dist/telemetry-refusal.d.ts +4 -31
  46. package/dist/telemetry-refusal.js +1 -1
  47. package/dist/telemetry-session.d.ts +39 -633
  48. package/dist/telemetry-session.js +10 -8
  49. package/dist/telemetry-signals.d.ts +58 -151
  50. package/dist/telemetry-signals.js +12 -1
  51. package/dist/telemetry.d.ts +137 -1814
  52. package/dist/telemetry.js +1 -1
  53. package/dist/verdict/compare-source.d.ts +1 -1
  54. package/dist/verdict/compare-source.js +1 -1
  55. package/dist/verdict/disparity.d.ts +8 -56
  56. package/dist/verdict/disparity.js +1 -1
  57. package/dist/verdict/instrumentation-coverage.d.ts +3 -3
  58. package/dist/verdict/instrumentation-coverage.js +1 -1
  59. package/dist/verdict/instrumentation-gap.d.ts +3 -10
  60. package/dist/verdict/instrumentation-gap.js +1 -1
  61. package/dist/verdict/intent.d.ts +25 -224
  62. package/dist/verdict/intent.js +1 -1
  63. package/dist/verdict/predicate.d.ts +1 -1
  64. package/dist/verdict/predicate.js +5 -5
  65. package/dist/verdict/property-assertion.d.ts +23 -101
  66. package/dist/verdict/property-assertion.js +1 -1
  67. package/dist/verdict/run-report.d.ts +13 -108
  68. package/dist/verdict/run-report.js +1 -1
  69. package/dist/verdict/security.d.ts +12 -0
  70. package/dist/verdict/security.js +94 -7
  71. package/dist/verdict/verification-run.d.ts +112 -1668
  72. package/dist/verdict/verification-run.js +4 -4
  73. package/dist/verdict/verify-progress.d.ts +22 -64
  74. package/dist/verdict/verify-progress.js +1 -1
  75. package/dist/wire/click-input.d.ts +15 -0
  76. package/dist/wire/click-input.js +42 -0
  77. package/dist/wire/constants/event-types.d.ts +2 -0
  78. package/dist/wire/constants/event-types.js +2 -0
  79. package/dist/wire/constants/response-body-reason.d.ts +4 -4
  80. package/dist/wire/constants/response-body-reason.js +4 -4
  81. package/dist/wire/constants/reticle-env.d.ts +2 -0
  82. package/dist/wire/constants/reticle-env.js +2 -0
  83. package/dist/wire/event-payloads.d.ts +108 -678
  84. package/dist/wire/event-payloads.js +24 -7
  85. package/dist/wire/event-priority.js +1 -0
  86. package/dist/wire/messages.d.ts +66 -755
  87. package/dist/wire/messages.js +3 -3
  88. package/dist/wire/next-step.d.ts +11 -51
  89. package/dist/wire/next-step.js +1 -1
  90. package/dist/wire/platform-link.js +2 -2
  91. package/dist/wire/production/production-policy.d.ts +37 -83
  92. package/dist/wire/production/production-policy.js +1 -1
  93. package/dist/wire/types.d.ts +75 -698
  94. package/dist/wire/types.js +5 -5
  95. package/dist/words/upgrade.d.ts +3 -13
  96. package/dist/words/upgrade.js +1 -1
  97. package/package.json +4 -5
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import { CROSS_STEP_ADDRESS } from './flow-step-tool.js';
3
3
  import { READABLE_FLOW_VERSIONS } from './flow-constants.js';
4
4
  import { StepEffect } from './step-effect.js';
@@ -148,7 +148,7 @@ const baseFlowStep = z.object({
148
148
  /** See FlowStep.writes. */
149
149
  writes: z.boolean().optional(),
150
150
  action: z.nativeEnum(ActionType).optional(),
151
- args: z.record(z.unknown()).optional(),
151
+ args: z.record(z.string(), z.unknown()).optional(),
152
152
  expect: ExpectSchema.optional(),
153
153
  degraded: z.boolean().optional(),
154
154
  timeoutMs: z.number().int().nonnegative().optional(),
@@ -6,7 +6,7 @@
6
6
  * platform when a drive starts. A drive that misses its goal on one page looks it up here instead of
7
7
  * guessing, and the search before grading starts from it.
8
8
  */
9
- import { z } from 'zod';
9
+ import * as z from 'zod';
10
10
  /** Bounds on what one map holds: a dashboard's pages, not its rows. */
11
11
  export declare const HarnessMapLimit: {
12
12
  readonly PAGES: 40;
@@ -15,84 +15,23 @@ export declare const HarnessMapLimit: {
15
15
  readonly TEXT: 200;
16
16
  };
17
17
  export declare const HarnessMapPageSchema: z.ZodObject<{
18
- /** The page's path (and hash), without its query or Reticle's own parameters. */
19
18
  route: z.ZodString;
20
- /** Its first heading, when it has one. */
21
19
  heading: z.ZodOptional<z.ZodString>;
22
- /** The words it showed: headings, labels and text, in reading order. */
23
- texts: z.ZodArray<z.ZodString, "many">;
24
- /** Its controls, as `role "name"`. */
25
- controls: z.ZodArray<z.ZodString, "many">;
26
- /** How the survey got here: the control on the start page, or absent for the start page. */
20
+ texts: z.ZodArray<z.ZodString>;
21
+ controls: z.ZodArray<z.ZodString>;
27
22
  reachedBy: z.ZodOptional<z.ZodString>;
28
- /** When this page was last read (epoch ms, injected). */
29
23
  at: z.ZodNumber;
30
- }, "strip", z.ZodTypeAny, {
31
- at: number;
32
- route: string;
33
- texts: string[];
34
- controls: string[];
35
- heading?: string | undefined;
36
- reachedBy?: string | undefined;
37
- }, {
38
- at: number;
39
- route: string;
40
- texts: string[];
41
- controls: string[];
42
- heading?: string | undefined;
43
- reachedBy?: string | undefined;
44
- }>;
24
+ }, z.core.$strip>;
45
25
  export type HarnessMapPage = z.infer<typeof HarnessMapPageSchema>;
46
26
  export declare const HarnessMapSchema: z.ZodObject<{
47
- /** When the survey last ran (epoch ms, injected); a drive's own reads refresh pages, not this. */
48
27
  surveyedAt: z.ZodNumber;
49
28
  pages: z.ZodArray<z.ZodObject<{
50
- /** The page's path (and hash), without its query or Reticle's own parameters. */
51
29
  route: z.ZodString;
52
- /** Its first heading, when it has one. */
53
30
  heading: z.ZodOptional<z.ZodString>;
54
- /** The words it showed: headings, labels and text, in reading order. */
55
- texts: z.ZodArray<z.ZodString, "many">;
56
- /** Its controls, as `role "name"`. */
57
- controls: z.ZodArray<z.ZodString, "many">;
58
- /** How the survey got here: the control on the start page, or absent for the start page. */
31
+ texts: z.ZodArray<z.ZodString>;
32
+ controls: z.ZodArray<z.ZodString>;
59
33
  reachedBy: z.ZodOptional<z.ZodString>;
60
- /** When this page was last read (epoch ms, injected). */
61
34
  at: z.ZodNumber;
62
- }, "strip", z.ZodTypeAny, {
63
- at: number;
64
- route: string;
65
- texts: string[];
66
- controls: string[];
67
- heading?: string | undefined;
68
- reachedBy?: string | undefined;
69
- }, {
70
- at: number;
71
- route: string;
72
- texts: string[];
73
- controls: string[];
74
- heading?: string | undefined;
75
- reachedBy?: string | undefined;
76
- }>, "many">;
77
- }, "strip", z.ZodTypeAny, {
78
- surveyedAt: number;
79
- pages: {
80
- at: number;
81
- route: string;
82
- texts: string[];
83
- controls: string[];
84
- heading?: string | undefined;
85
- reachedBy?: string | undefined;
86
- }[];
87
- }, {
88
- surveyedAt: number;
89
- pages: {
90
- at: number;
91
- route: string;
92
- texts: string[];
93
- controls: string[];
94
- heading?: string | undefined;
95
- reachedBy?: string | undefined;
96
- }[];
97
- }>;
35
+ }, z.core.$strip>>;
36
+ }, z.core.$strip>;
98
37
  export type HarnessMap = z.infer<typeof HarnessMapSchema>;
@@ -6,7 +6,7 @@
6
6
  * platform when a drive starts. A drive that misses its goal on one page looks it up here instead of
7
7
  * guessing, and the search before grading starts from it.
8
8
  */
9
- import { z } from 'zod';
9
+ import * as z from 'zod';
10
10
  /** Bounds on what one map holds: a dashboard's pages, not its rows. */
11
11
  export const HarnessMapLimit = {
12
12
  PAGES: 40,
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * Everything here is pure. Fetching and caching live in the daemon; the clock arrives as an argument.
10
10
  */
11
- import { z } from 'zod';
11
+ import * as z from 'zod';
12
12
  /** Where the daemon reads the notices from. Overridable for self-hosting and tests. */
13
13
  export declare const HUD_NOTICES_URL = "https://reticle.sh/hud/notices.v1.json";
14
14
  export declare const NOTICES_FILE_VERSION = 1;
@@ -20,33 +20,9 @@ export declare const HudNoticeSchema: z.ZodObject<{
20
20
  detail: z.ZodOptional<z.ZodString>;
21
21
  cta: z.ZodOptional<z.ZodObject<{
22
22
  label: z.ZodString;
23
- url: z.ZodEffects<z.ZodString, string, string>;
24
- }, "strip", z.ZodTypeAny, {
25
- label: string;
26
- url: string;
27
- }, {
28
- label: string;
29
- url: string;
30
- }>>;
31
- }, "strip", z.ZodTypeAny, {
32
- id: string;
33
- title: string;
34
- detail?: string | undefined;
35
- kicker?: string | undefined;
36
- cta?: {
37
- label: string;
38
- url: string;
39
- } | undefined;
40
- }, {
41
- id: string;
42
- title: string;
43
- detail?: string | undefined;
44
- kicker?: string | undefined;
45
- cta?: {
46
- label: string;
47
- url: string;
48
- } | undefined;
49
- }>;
23
+ url: z.ZodString;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
50
26
  export type HudNotice = z.infer<typeof HudNoticeSchema>;
51
27
  /** One entry in the file: a notice plus who sees it and when. */
52
28
  export declare const HudNoticeEntrySchema: z.ZodObject<{
@@ -56,67 +32,17 @@ export declare const HudNoticeEntrySchema: z.ZodObject<{
56
32
  detail: z.ZodOptional<z.ZodString>;
57
33
  cta: z.ZodOptional<z.ZodObject<{
58
34
  label: z.ZodString;
59
- url: z.ZodEffects<z.ZodString, string, string>;
60
- }, "strip", z.ZodTypeAny, {
61
- label: string;
62
- url: string;
63
- }, {
64
- label: string;
65
- url: string;
66
- }>>;
67
- } & {
35
+ url: z.ZodString;
36
+ }, z.core.$strip>>;
68
37
  audience: z.ZodOptional<z.ZodObject<{
69
38
  signedIn: z.ZodOptional<z.ZodBoolean>;
70
39
  entitled: z.ZodOptional<z.ZodBoolean>;
71
- }, "strip", z.ZodTypeAny, {
72
- signedIn?: boolean | undefined;
73
- entitled?: boolean | undefined;
74
- }, {
75
- signedIn?: boolean | undefined;
76
- entitled?: boolean | undefined;
77
- }>>;
78
- /** ISO dates. Shown from `from` (inclusive) until `until` (exclusive). */
40
+ }, z.core.$strip>>;
79
41
  from: z.ZodOptional<z.ZodString>;
80
42
  until: z.ZodOptional<z.ZodString>;
81
- /** Oldest SDK that can show it, e.g. "x.y.z". */
82
43
  minSdk: z.ZodOptional<z.ZodString>;
83
- /** Higher shows first. */
84
44
  weight: z.ZodOptional<z.ZodNumber>;
85
- }, "strip", z.ZodTypeAny, {
86
- id: string;
87
- title: string;
88
- from?: string | undefined;
89
- detail?: string | undefined;
90
- until?: string | undefined;
91
- kicker?: string | undefined;
92
- cta?: {
93
- label: string;
94
- url: string;
95
- } | undefined;
96
- audience?: {
97
- signedIn?: boolean | undefined;
98
- entitled?: boolean | undefined;
99
- } | undefined;
100
- minSdk?: string | undefined;
101
- weight?: number | undefined;
102
- }, {
103
- id: string;
104
- title: string;
105
- from?: string | undefined;
106
- detail?: string | undefined;
107
- until?: string | undefined;
108
- kicker?: string | undefined;
109
- cta?: {
110
- label: string;
111
- url: string;
112
- } | undefined;
113
- audience?: {
114
- signedIn?: boolean | undefined;
115
- entitled?: boolean | undefined;
116
- } | undefined;
117
- minSdk?: string | undefined;
118
- weight?: number | undefined;
119
- }>;
45
+ }, z.core.$strip>;
120
46
  export type HudNoticeEntry = z.infer<typeof HudNoticeEntrySchema>;
121
47
  /**
122
48
  * The entries in a notices file this SDK understands. An unknown version or shape answers nothing,
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * Everything here is pure. Fetching and caching live in the daemon; the clock arrives as an argument.
10
10
  */
11
- import { z } from 'zod';
11
+ import * as z from 'zod';
12
12
  /** Where the daemon reads the notices from. Overridable for self-hosting and tests. */
13
13
  export const HUD_NOTICES_URL = 'https://reticle.sh/hud/notices.v1.json';
14
14
  export const NOTICES_FILE_VERSION = 1;