@reticlehq/core 3.7.0 → 3.8.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.
Files changed (138) hide show
  1. package/dist/activation-entry.d.ts +9 -0
  2. package/dist/activation-entry.js +9 -0
  3. package/dist/artifacts/drive-script.d.ts +84 -1217
  4. package/dist/artifacts/drive-script.js +1 -1
  5. package/dist/artifacts/flow-constants.d.ts +15 -0
  6. package/dist/artifacts/flow-constants.js +15 -0
  7. package/dist/artifacts/flow-expect-flat.d.ts +8 -192
  8. package/dist/artifacts/flow-expect-flat.js +2 -2
  9. package/dist/artifacts/flow-results.d.ts +26 -0
  10. package/dist/artifacts/flow-types.d.ts +212 -2295
  11. package/dist/artifacts/flow-types.js +14 -2
  12. package/dist/artifacts/harness-credits.d.ts +6 -3
  13. package/dist/artifacts/harness-credits.js +9 -6
  14. package/dist/artifacts/harness-map.d.ts +8 -69
  15. package/dist/artifacts/harness-map.js +1 -1
  16. package/dist/artifacts/hud-notices.d.ts +8 -82
  17. package/dist/artifacts/hud-notices.js +1 -1
  18. package/dist/artifacts/impact.d.ts +104 -1665
  19. package/dist/artifacts/impact.js +38 -21
  20. package/dist/artifacts/journal.d.ts +15 -231
  21. package/dist/artifacts/journal.js +15 -2
  22. package/dist/artifacts/prompt-context.d.ts +7 -33
  23. package/dist/artifacts/prompt-context.js +15 -4
  24. package/dist/artifacts/screenshot-upload.d.ts +3 -26
  25. package/dist/artifacts/screenshot-upload.js +1 -1
  26. package/dist/graph/app-graph.d.ts +137 -0
  27. package/dist/graph/app-graph.js +498 -0
  28. package/dist/hooks/hook-events.d.ts +15 -171
  29. package/dist/hooks/hook-events.js +1 -1
  30. package/dist/hud-entry.js +1 -1
  31. package/dist/identity/checkout.d.ts +41 -0
  32. package/dist/identity/checkout.js +118 -0
  33. package/dist/identity/state-dir.d.ts +23 -0
  34. package/dist/identity/state-dir.js +43 -0
  35. package/dist/index.d.ts +10 -0
  36. package/dist/index.js +10 -0
  37. package/dist/onboarding.d.ts +23 -52
  38. package/dist/onboarding.js +20 -1
  39. package/dist/registry/daemon-registry.d.ts +2 -14
  40. package/dist/registry/daemon-registry.js +1 -1
  41. package/dist/registry/dev-server-registry.d.ts +2 -31
  42. package/dist/registry/dev-server-registry.js +1 -1
  43. package/dist/registry/project-registry.d.ts +4 -32
  44. package/dist/registry/project-registry.js +1 -1
  45. package/dist/schema/command-message.json +65 -68
  46. package/dist/schema/command-name.json +29 -33
  47. package/dist/schema/command-result.json +25 -30
  48. package/dist/schema/event-message.json +104 -101
  49. package/dist/schema/event-payloads.json +246 -108
  50. package/dist/schema/event-type.json +47 -48
  51. package/dist/schema/hello-message.json +150 -133
  52. package/dist/schema/reticle-event.json +98 -94
  53. package/dist/schema/reticle-message.json +338 -310
  54. package/dist/telemetry-bug.d.ts +4 -75
  55. package/dist/telemetry-bug.js +1 -1
  56. package/dist/telemetry-entry.d.ts +1 -1
  57. package/dist/telemetry-entry.js +1 -1
  58. package/dist/telemetry-feedback.d.ts +17 -91
  59. package/dist/telemetry-feedback.js +20 -1
  60. package/dist/telemetry-refusal.d.ts +4 -31
  61. package/dist/telemetry-refusal.js +1 -1
  62. package/dist/telemetry-session.d.ts +45 -624
  63. package/dist/telemetry-session.js +25 -12
  64. package/dist/telemetry-signals.d.ts +211 -86
  65. package/dist/telemetry-signals.js +100 -2
  66. package/dist/telemetry.d.ts +321 -1691
  67. package/dist/telemetry.js +72 -6
  68. package/dist/verdict/check-sentence.d.ts +34 -0
  69. package/dist/verdict/check-sentence.js +228 -0
  70. package/dist/verdict/compare-source.d.ts +1 -1
  71. package/dist/verdict/compare-source.js +1 -1
  72. package/dist/verdict/consequence.d.ts +15 -0
  73. package/dist/verdict/consequence.js +11 -0
  74. package/dist/verdict/disparity.d.ts +8 -56
  75. package/dist/verdict/disparity.js +1 -1
  76. package/dist/verdict/findings.d.ts +10 -0
  77. package/dist/verdict/findings.js +13 -0
  78. package/dist/verdict/instrumentation-coverage.d.ts +6 -37
  79. package/dist/verdict/instrumentation-coverage.js +15 -59
  80. package/dist/verdict/instrumentation-gap.d.ts +72 -0
  81. package/dist/verdict/instrumentation-gap.js +64 -0
  82. package/dist/verdict/intent.d.ts +25 -224
  83. package/dist/verdict/intent.js +1 -1
  84. package/dist/verdict/predicate-tree.d.ts +2 -0
  85. package/dist/verdict/predicate-tree.js +16 -0
  86. package/dist/verdict/predicate.d.ts +3 -2
  87. package/dist/verdict/predicate.js +107 -16
  88. package/dist/verdict/property-assertion.d.ts +23 -101
  89. package/dist/verdict/property-assertion.js +1 -1
  90. package/dist/verdict/run-report.d.ts +71 -0
  91. package/dist/verdict/run-report.js +53 -0
  92. package/dist/verdict/security.d.ts +48 -2
  93. package/dist/verdict/security.js +185 -18
  94. package/dist/verdict/verification-run.d.ts +124 -1623
  95. package/dist/verdict/verification-run.js +37 -6
  96. package/dist/verdict/verify-progress.d.ts +22 -64
  97. package/dist/verdict/verify-progress.js +1 -1
  98. package/dist/wire/constants/constants.d.ts +56 -141
  99. package/dist/wire/constants/constants.js +64 -144
  100. package/dist/wire/constants/discovery.d.ts +4 -4
  101. package/dist/wire/constants/discovery.js +4 -4
  102. package/dist/wire/constants/event-types.d.ts +37 -1
  103. package/dist/wire/constants/event-types.js +35 -1
  104. package/dist/wire/constants/hud-controls.js +0 -2
  105. package/dist/wire/constants/hud-use.d.ts +4 -0
  106. package/dist/wire/constants/hud-use.js +4 -0
  107. package/dist/wire/constants/mcp-wire.d.ts +16 -0
  108. package/dist/wire/constants/mcp-wire.js +16 -0
  109. package/dist/wire/constants/response-body-reason.d.ts +19 -0
  110. package/dist/wire/constants/response-body-reason.js +18 -0
  111. package/dist/wire/constants/reticle-env.d.ts +140 -0
  112. package/dist/wire/constants/reticle-env.js +140 -0
  113. package/dist/wire/constants/session-constants.d.ts +11 -0
  114. package/dist/wire/constants/session-constants.js +11 -0
  115. package/dist/wire/event-payloads.d.ts +173 -629
  116. package/dist/wire/event-payloads.js +107 -23
  117. package/dist/wire/event-priority.js +1 -0
  118. package/dist/wire/messages.d.ts +90 -713
  119. package/dist/wire/messages.js +19 -3
  120. package/dist/wire/narrow.d.ts +6 -0
  121. package/dist/wire/narrow.js +26 -0
  122. package/dist/wire/next-step.d.ts +50 -0
  123. package/dist/wire/next-step.js +37 -0
  124. package/dist/wire/platform-link.d.ts +7 -0
  125. package/dist/wire/platform-link.js +14 -8
  126. package/dist/wire/production/activation-ticket.d.ts +64 -0
  127. package/dist/wire/production/activation-ticket.js +148 -0
  128. package/dist/wire/production/hello-mode.d.ts +35 -0
  129. package/dist/wire/production/hello-mode.js +32 -0
  130. package/dist/wire/production/production-policy.d.ts +92 -0
  131. package/dist/wire/production/production-policy.js +133 -0
  132. package/dist/wire/tool-names.d.ts +2 -0
  133. package/dist/wire/tool-names.js +2 -0
  134. package/dist/wire/types.d.ts +102 -700
  135. package/dist/wire/types.js +5 -5
  136. package/dist/words/upgrade.d.ts +3 -13
  137. package/dist/words/upgrade.js +1 -1
  138. package/package.json +7 -4
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  /**
3
3
  * The three phases between "never heard of Reticle" and "it produced a verdict on my app".
4
4
  *
@@ -47,10 +47,20 @@ export type OnboardingStepStatus = (typeof OnboardingStepStatus)[keyof typeof On
47
47
  export declare const OnboardingSteps: {
48
48
  readonly install: readonly ["script_started", "runtime_ready", "cli_installed", "agents_detected", "mcp_registered"];
49
49
  readonly onboard: readonly ["tour_started", "concept_shown", "first_look", "first_act", "first_verdict"];
50
- readonly first_run: readonly ["project_detected", "instrumented", "app_connected", "driven", "flow_recorded", "verdict_produced"];
50
+ readonly first_run: readonly ["project_detected", "next_step_offered", "instrumented", "app_connected", "driven", "flow_recorded", "verdict_produced"];
51
51
  };
52
+ /**
53
+ * The next step that the first session call in an unwired project offers. `lease` checks the
54
+ * running app now and installs nothing. `init_consent` asks the user to agree to wire the app,
55
+ * when no app is up to lease.
56
+ */
57
+ export declare const NextStepOffered: {
58
+ readonly LEASE: "lease";
59
+ readonly INIT_CONSENT: "init_consent";
60
+ };
61
+ export type NextStepOffered = (typeof NextStepOffered)[keyof typeof NextStepOffered];
52
62
  export declare const OnboardingStepSchema: z.ZodObject<{
53
- phase: z.ZodNativeEnum<{
63
+ phase: z.ZodEnum<{
54
64
  /** Getting the CLI onto the machine and the MCP registered with the agents that are there. */
55
65
  readonly INSTALL: "install";
56
66
  /** Being shown what Reticle is and how it is driven, before being asked to drive anything. */
@@ -58,19 +68,10 @@ export declare const OnboardingStepSchema: z.ZodObject<{
58
68
  /** Instrumenting a real project and driving it until something is actually proved. */
59
69
  readonly FIRST_RUN: "first_run";
60
70
  }>;
61
- /**
62
- * Our name for the step, and ONLY one of ours.
63
- *
64
- * This was `z.string().max(48)`, with a comment promising it was never user text — and a cap is
65
- * not a promise. `/Users/someone/secret/project` is 28 characters and validated cleanly, which is
66
- * a rule-3 leak (names, never values) reaching the wire from the one payload a person can edit:
67
- * the installer's breadcrumb file, on disk, in their own home directory.
68
- *
69
- * A closed set makes the promise enforceable instead of aspirational. Found by the test written
70
- * for that file, not by reading this line.
71
- */
72
- step: z.ZodEnum<[string, ...string[]]>;
73
- status: z.ZodNativeEnum<{
71
+ step: z.ZodEnum<{
72
+ [x: string]: string;
73
+ }>;
74
+ status: z.ZodEnum<{
74
75
  readonly STARTED: "started";
75
76
  readonly COMPLETED: "completed";
76
77
  readonly FAILED: "failed";
@@ -78,45 +79,15 @@ export declare const OnboardingStepSchema: z.ZodObject<{
78
79
  /** Nothing to do — already installed, already instrumented. Not a loss, and not a win either. */
79
80
  readonly SKIPPED: "skipped";
80
81
  }>;
81
- /**
82
- * Milliseconds this step took. Absent when the step is instantaneous or not timed — absent means
83
- * NOT MEASURED, never zero, because a zero would pull every average toward a duration nobody had.
84
- */
85
82
  elapsedMs: z.ZodOptional<z.ZodNumber>;
86
- /** Classified cause when it failed — our vocabulary, never a raw error or a path. */
87
83
  reason: z.ZodOptional<z.ZodString>;
88
- /** The stack it was detected on, so a phase that only fails on one framework is visible. */
89
84
  stack: z.ZodOptional<z.ZodString>;
90
- /**
91
- * True when nobody was asked anything — the zero-human-input path an agent takes from a link.
92
- *
93
- * Recorded because the two audiences fail differently and a funnel that mixes them explains
94
- * neither: a human abandons a step, an agent's run exits.
95
- */
96
85
  unattended: z.ZodOptional<z.ZodBoolean>;
97
- /**
98
- * The first time this machine + project crossed this step, ever. The daemon's "first" steps are
99
- * claimed on disk and fire once; absent on a step that is not a first, and on one reported from a
100
- * home that could not be written (which fires once per process instead).
101
- */
102
86
  firstEver: z.ZodOptional<z.ZodBoolean>;
103
- }, "strip", z.ZodTypeAny, {
104
- step: string;
105
- status: "skipped" | "completed" | "failed" | "started" | "abandoned";
106
- phase: "install" | "onboard" | "first_run";
107
- reason?: string | undefined;
108
- stack?: string | undefined;
109
- elapsedMs?: number | undefined;
110
- unattended?: boolean | undefined;
111
- firstEver?: boolean | undefined;
112
- }, {
113
- step: string;
114
- status: "skipped" | "completed" | "failed" | "started" | "abandoned";
115
- phase: "install" | "onboard" | "first_run";
116
- reason?: string | undefined;
117
- stack?: string | undefined;
118
- elapsedMs?: number | undefined;
119
- unattended?: boolean | undefined;
120
- firstEver?: boolean | undefined;
121
- }>;
87
+ offered: z.ZodOptional<z.ZodEnum<{
88
+ readonly LEASE: "lease";
89
+ readonly INIT_CONSENT: "init_consent";
90
+ }>>;
91
+ nextFollowed: z.ZodOptional<z.ZodBoolean>;
92
+ }, z.core.$strip>;
122
93
  export type OnboardingStep = z.infer<typeof OnboardingStepSchema>;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  /**
3
3
  * The three phases between "never heard of Reticle" and "it produced a verdict on my app".
4
4
  *
@@ -71,6 +71,12 @@ export const OnboardingSteps = {
71
71
  ],
72
72
  [OnboardingPhase.FIRST_RUN]: [
73
73
  'project_detected',
74
+ /**
75
+ * The first session call in an unwired project named a next step (`offered`) and changed no
76
+ * file. Reported `started` when it is offered, and `completed` on the agent's next call, with
77
+ * `nextFollowed`.
78
+ */
79
+ 'next_step_offered',
74
80
  /** The SDK is in the bundle. Files written is NOT this — see `app_instrumented`. */
75
81
  'instrumented',
76
82
  /** A page loaded and the SDK dialled the bridge. The half of the install nothing else can see. */
@@ -89,6 +95,15 @@ export const OnboardingSteps = {
89
95
  'verdict_produced',
90
96
  ],
91
97
  };
98
+ /**
99
+ * The next step that the first session call in an unwired project offers. `lease` checks the
100
+ * running app now and installs nothing. `init_consent` asks the user to agree to wire the app,
101
+ * when no app is up to lease.
102
+ */
103
+ export const NextStepOffered = {
104
+ LEASE: 'lease',
105
+ INIT_CONSENT: 'init_consent',
106
+ };
92
107
  /**
93
108
  * ONE event for every step of every phase, rather than an event name per step.
94
109
  *
@@ -144,4 +159,8 @@ export const OnboardingStepSchema = z.object({
144
159
  * home that could not be written (which fires once per process instead).
145
160
  */
146
161
  firstEver: z.boolean().optional(),
162
+ /** Only on `next_step_offered`: the step the first session call offered. */
163
+ offered: z.nativeEnum(NextStepOffered).optional(),
164
+ /** Only on a `completed` `next_step_offered`: the agent's next call did the offered step. */
165
+ nextFollowed: z.boolean().optional(),
147
166
  });
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  /** The registry filename for a daemon on `port` (sibling of daemon-<port>.pid /.log). */
3
3
  export declare function daemonRegistryFileName(port: number): string;
4
4
  /** Extract the port from a registry filename, or null when the name isn't a registry entry. */
@@ -10,19 +10,7 @@ export declare const DaemonRegistryEntrySchema: z.ZodObject<{
10
10
  cwd: z.ZodString;
11
11
  projectId: z.ZodOptional<z.ZodString>;
12
12
  startedAt: z.ZodNumber;
13
- }, "strip", z.ZodTypeAny, {
14
- port: number;
15
- pid: number;
16
- cwd: string;
17
- startedAt: number;
18
- projectId?: string | undefined;
19
- }, {
20
- port: number;
21
- pid: number;
22
- cwd: string;
23
- startedAt: number;
24
- projectId?: string | undefined;
25
- }>;
13
+ }, z.core.$strip>;
26
14
  export type DaemonRegistryEntry = z.infer<typeof DaemonRegistryEntrySchema>;
27
15
  /**
28
16
  * Pick the daemon port an app should connect to, given the registry entries, the app's projectId, and
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  /**
3
3
  * The daemon discovery registry: each live daemon drops a `daemon-<port>.json` in ~/.reticle so a
4
4
  * build-time tool (vite/next plugin) can find the RIGHT daemon by projectId instead of forcing the
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  /** The registry filename for a dev server listening on `port`. */
3
3
  export declare function devServerRegistryFileName(port: number): string;
4
4
  /**
@@ -13,41 +13,12 @@ export declare function devServerRegistryPort(fileName: string): number | null;
13
13
  export declare const DevServerEntrySchema: z.ZodObject<{
14
14
  port: z.ZodNumber;
15
15
  pid: z.ZodNumber;
16
- /** The project directory the dev server is serving — how a monorepo tells its apps apart. */
17
16
  root: z.ZodString;
18
- /** Where the app is actually served, as the dev server itself reports it. Never assembled here. */
19
17
  url: z.ZodString;
20
- /**
21
- * The SDK version in the bundle, so a skew can be named rather than guessed at.
22
- *
23
- * Optional, and ABSENT rather than empty when it cannot be resolved. `""` reads as "the version is
24
- * empty"; a missing field reads as "not known", which is the true statement — and the difference
25
- * matters to the one reader who exists for this field, a skew diagnosis.
26
- */
27
18
  sdkVersion: z.ZodOptional<z.ZodString>;
28
19
  startedAt: z.ZodNumber;
29
- /**
30
- * Optional because an app can be running before `init` has ever named it — which is exactly the
31
- * state this signal has to be able to describe.
32
- */
33
20
  projectId: z.ZodOptional<z.ZodString>;
34
- }, "strip", z.ZodTypeAny, {
35
- url: string;
36
- port: number;
37
- pid: number;
38
- startedAt: number;
39
- root: string;
40
- projectId?: string | undefined;
41
- sdkVersion?: string | undefined;
42
- }, {
43
- url: string;
44
- port: number;
45
- pid: number;
46
- startedAt: number;
47
- root: string;
48
- projectId?: string | undefined;
49
- sdkVersion?: string | undefined;
50
- }>;
21
+ }, z.core.$strip>;
51
22
  export type DevServerEntry = z.infer<typeof DevServerEntrySchema>;
52
23
  /**
53
24
  * The entries whose process is still running, lowest port first.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  /**
3
3
  * The dev-server discovery registry — the return leg of `daemon-registry.ts`.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  /**
3
3
  * Which directory a projectId lives in, on this machine.
4
4
  *
@@ -24,45 +24,17 @@ import { z } from 'zod';
24
24
  /** Sibling of `daemon-<port>.json` in `~/.reticle`. One file, all projects. */
25
25
  export declare const PROJECT_REGISTRY_FILE = "projects.json";
26
26
  export declare const ProjectRegistryEntrySchema: z.ZodObject<{
27
- /** Absolute path to the directory whose `.reticle.json` declares this project. */
28
27
  directory: z.ZodString;
29
- /** When this pairing was last confirmed. Lets a future prune drop entries nobody has opened. */
30
28
  lastSeenAt: z.ZodNumber;
31
- }, "strip", z.ZodTypeAny, {
32
- directory: string;
33
- lastSeenAt: number;
34
- }, {
35
- directory: string;
36
- lastSeenAt: number;
37
- }>;
29
+ }, z.core.$strip>;
38
30
  export type ProjectRegistryEntry = z.infer<typeof ProjectRegistryEntrySchema>;
39
31
  export declare const ProjectRegistrySchema: z.ZodObject<{
40
32
  version: z.ZodLiteral<1>;
41
33
  projects: z.ZodRecord<z.ZodString, z.ZodObject<{
42
- /** Absolute path to the directory whose `.reticle.json` declares this project. */
43
34
  directory: z.ZodString;
44
- /** When this pairing was last confirmed. Lets a future prune drop entries nobody has opened. */
45
35
  lastSeenAt: z.ZodNumber;
46
- }, "strip", z.ZodTypeAny, {
47
- directory: string;
48
- lastSeenAt: number;
49
- }, {
50
- directory: string;
51
- lastSeenAt: number;
52
- }>>;
53
- }, "strip", z.ZodTypeAny, {
54
- version: 1;
55
- projects: Record<string, {
56
- directory: string;
57
- lastSeenAt: number;
58
- }>;
59
- }, {
60
- version: 1;
61
- projects: Record<string, {
62
- directory: string;
63
- lastSeenAt: number;
64
- }>;
65
- }>;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>;
66
38
  export type ProjectRegistry = z.infer<typeof ProjectRegistrySchema>;
67
39
  /** A project the resolver may consider. Structurally identical to config discovery's `FoundConfig`
68
40
  * on purpose: both sources feed one code path, so neither becomes the privileged one. */
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  /**
3
3
  * Which directory a projectId lives in, on this machine.
4
4
  *
@@ -1,77 +1,74 @@
1
1
  {
2
- "$ref": "#/definitions/CommandMessage",
3
- "definitions": {
4
- "CommandMessage": {
2
+ "title": "CommandMessage",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "object",
5
+ "properties": {
6
+ "kind": {
7
+ "type": "string",
8
+ "const": "command"
9
+ },
10
+ "id": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "maxLength": 128
14
+ },
15
+ "sessionId": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "maxLength": 128
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 128
24
+ },
25
+ "args": {
26
+ "default": {},
27
+ "type": "object",
28
+ "propertyNames": {
29
+ "type": "string"
30
+ },
31
+ "additionalProperties": {}
32
+ },
33
+ "by": {
34
+ "type": "string",
35
+ "enum": [
36
+ "harness"
37
+ ]
38
+ },
39
+ "outward": {
5
40
  "type": "object",
6
41
  "properties": {
7
- "kind": {
8
- "type": "string",
9
- "const": "command"
10
- },
11
- "id": {
12
- "type": "string",
13
- "minLength": 1,
14
- "maxLength": 128
15
- },
16
- "sessionId": {
17
- "type": "string",
18
- "minLength": 1,
19
- "maxLength": 128
20
- },
21
- "name": {
22
- "type": "string",
23
- "minLength": 1,
24
- "maxLength": 128
25
- },
26
- "args": {
27
- "type": "object",
28
- "additionalProperties": {},
29
- "default": {}
30
- },
31
- "by": {
32
- "type": "string",
33
- "enum": [
34
- "harness"
35
- ]
36
- },
37
- "outward": {
38
- "type": "object",
39
- "properties": {
40
- "allowed": {
41
- "type": "array",
42
- "items": {
43
- "type": "string",
44
- "enum": [
45
- "invite",
46
- "send",
47
- "share",
48
- "delete",
49
- "pay",
50
- "publish",
51
- "revoke",
52
- "transfer",
53
- "sign out",
54
- "change role",
55
- "create key",
56
- "change state"
57
- ]
58
- },
59
- "maxItems": 16
60
- }
61
- },
62
- "required": [
63
- "allowed"
64
- ],
65
- "additionalProperties": false
42
+ "allowed": {
43
+ "maxItems": 16,
44
+ "type": "array",
45
+ "items": {
46
+ "type": "string",
47
+ "enum": [
48
+ "invite",
49
+ "send",
50
+ "share",
51
+ "delete",
52
+ "pay",
53
+ "publish",
54
+ "revoke",
55
+ "transfer",
56
+ "sign out",
57
+ "change role",
58
+ "create key",
59
+ "change state"
60
+ ]
61
+ }
66
62
  }
67
63
  },
68
64
  "required": [
69
- "kind",
70
- "id",
71
- "name"
72
- ],
73
- "additionalProperties": false
65
+ "allowed"
66
+ ]
74
67
  }
75
68
  },
76
- "$schema": "http://json-schema.org/draft-07/schema#"
69
+ "required": [
70
+ "kind",
71
+ "id",
72
+ "name"
73
+ ]
77
74
  }
@@ -1,35 +1,31 @@
1
1
  {
2
- "$ref": "#/definitions/ReticleCommand",
3
- "definitions": {
4
- "ReticleCommand": {
5
- "type": "string",
6
- "enum": [
7
- "snapshot",
8
- "query",
9
- "match",
10
- "inspect",
11
- "act",
12
- "act_sequence",
13
- "animations",
14
- "narrate",
15
- "clock",
16
- "capabilities",
17
- "state_read",
18
- "storage_read",
19
- "scroll",
20
- "session_config",
21
- "presenter",
22
- "impact",
23
- "capture",
24
- "render",
25
- "navigate",
26
- "refresh",
27
- "flows",
28
- "flow.progress",
29
- "plan",
30
- "markers"
31
- ]
32
- }
33
- },
34
- "$schema": "http://json-schema.org/draft-07/schema#"
2
+ "title": "ReticleCommand",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "string",
5
+ "enum": [
6
+ "snapshot",
7
+ "query",
8
+ "match",
9
+ "inspect",
10
+ "act",
11
+ "act_sequence",
12
+ "animations",
13
+ "narrate",
14
+ "clock",
15
+ "capabilities",
16
+ "state_read",
17
+ "storage_read",
18
+ "scroll",
19
+ "session_config",
20
+ "presenter",
21
+ "impact",
22
+ "capture",
23
+ "render",
24
+ "navigate",
25
+ "refresh",
26
+ "flows",
27
+ "flow.progress",
28
+ "plan",
29
+ "markers"
30
+ ]
35
31
  }
@@ -1,34 +1,29 @@
1
1
  {
2
- "$ref": "#/definitions/CommandResult",
3
- "definitions": {
4
- "CommandResult": {
5
- "type": "object",
6
- "properties": {
7
- "kind": {
8
- "type": "string",
9
- "const": "command_result"
10
- },
11
- "id": {
12
- "type": "string",
13
- "minLength": 1,
14
- "maxLength": 128
15
- },
16
- "ok": {
17
- "type": "boolean"
18
- },
19
- "result": {},
20
- "error": {
21
- "type": "string",
22
- "maxLength": 4096
23
- }
24
- },
25
- "required": [
26
- "kind",
27
- "id",
28
- "ok"
29
- ],
30
- "additionalProperties": false
2
+ "title": "CommandResult",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "object",
5
+ "properties": {
6
+ "kind": {
7
+ "type": "string",
8
+ "const": "command_result"
9
+ },
10
+ "id": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "maxLength": 128
14
+ },
15
+ "ok": {
16
+ "type": "boolean"
17
+ },
18
+ "result": {},
19
+ "error": {
20
+ "type": "string",
21
+ "maxLength": 4096
31
22
  }
32
23
  },
33
- "$schema": "http://json-schema.org/draft-07/schema#"
24
+ "required": [
25
+ "kind",
26
+ "id",
27
+ "ok"
28
+ ]
34
29
  }