@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.
- package/dist/activation-entry.d.ts +9 -0
- package/dist/activation-entry.js +9 -0
- package/dist/artifacts/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-constants.d.ts +15 -0
- package/dist/artifacts/flow-constants.js +15 -0
- package/dist/artifacts/flow-expect-flat.d.ts +8 -192
- package/dist/artifacts/flow-expect-flat.js +2 -2
- package/dist/artifacts/flow-results.d.ts +26 -0
- package/dist/artifacts/flow-types.d.ts +212 -2295
- package/dist/artifacts/flow-types.js +14 -2
- package/dist/artifacts/harness-credits.d.ts +6 -3
- package/dist/artifacts/harness-credits.js +9 -6
- package/dist/artifacts/harness-map.d.ts +8 -69
- package/dist/artifacts/harness-map.js +1 -1
- package/dist/artifacts/hud-notices.d.ts +8 -82
- package/dist/artifacts/hud-notices.js +1 -1
- package/dist/artifacts/impact.d.ts +104 -1665
- package/dist/artifacts/impact.js +38 -21
- package/dist/artifacts/journal.d.ts +15 -231
- package/dist/artifacts/journal.js +15 -2
- package/dist/artifacts/prompt-context.d.ts +7 -33
- package/dist/artifacts/prompt-context.js +15 -4
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/graph/app-graph.d.ts +137 -0
- package/dist/graph/app-graph.js +498 -0
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/hud-entry.js +1 -1
- package/dist/identity/checkout.d.ts +41 -0
- package/dist/identity/checkout.js +118 -0
- package/dist/identity/state-dir.d.ts +23 -0
- package/dist/identity/state-dir.js +43 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/onboarding.d.ts +23 -52
- package/dist/onboarding.js +20 -1
- package/dist/registry/daemon-registry.d.ts +2 -14
- package/dist/registry/daemon-registry.js +1 -1
- package/dist/registry/dev-server-registry.d.ts +2 -31
- package/dist/registry/dev-server-registry.js +1 -1
- package/dist/registry/project-registry.d.ts +4 -32
- package/dist/registry/project-registry.js +1 -1
- package/dist/schema/command-message.json +65 -68
- package/dist/schema/command-name.json +29 -33
- package/dist/schema/command-result.json +25 -30
- package/dist/schema/event-message.json +104 -101
- package/dist/schema/event-payloads.json +246 -108
- package/dist/schema/event-type.json +47 -48
- package/dist/schema/hello-message.json +150 -133
- package/dist/schema/reticle-event.json +98 -94
- package/dist/schema/reticle-message.json +338 -310
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-entry.d.ts +1 -1
- package/dist/telemetry-entry.js +1 -1
- package/dist/telemetry-feedback.d.ts +17 -91
- package/dist/telemetry-feedback.js +20 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +45 -624
- package/dist/telemetry-session.js +25 -12
- package/dist/telemetry-signals.d.ts +211 -86
- package/dist/telemetry-signals.js +100 -2
- package/dist/telemetry.d.ts +321 -1691
- package/dist/telemetry.js +72 -6
- package/dist/verdict/check-sentence.d.ts +34 -0
- package/dist/verdict/check-sentence.js +228 -0
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/consequence.d.ts +15 -0
- package/dist/verdict/consequence.js +11 -0
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/findings.d.ts +10 -0
- package/dist/verdict/findings.js +13 -0
- package/dist/verdict/instrumentation-coverage.d.ts +6 -37
- package/dist/verdict/instrumentation-coverage.js +15 -59
- package/dist/verdict/instrumentation-gap.d.ts +72 -0
- package/dist/verdict/instrumentation-gap.js +64 -0
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate-tree.d.ts +2 -0
- package/dist/verdict/predicate-tree.js +16 -0
- package/dist/verdict/predicate.d.ts +3 -2
- package/dist/verdict/predicate.js +107 -16
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +71 -0
- package/dist/verdict/run-report.js +53 -0
- package/dist/verdict/security.d.ts +48 -2
- package/dist/verdict/security.js +185 -18
- package/dist/verdict/verification-run.d.ts +124 -1623
- package/dist/verdict/verification-run.js +37 -6
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/constants/constants.d.ts +56 -141
- package/dist/wire/constants/constants.js +64 -144
- package/dist/wire/constants/discovery.d.ts +4 -4
- package/dist/wire/constants/discovery.js +4 -4
- package/dist/wire/constants/event-types.d.ts +37 -1
- package/dist/wire/constants/event-types.js +35 -1
- package/dist/wire/constants/hud-controls.js +0 -2
- package/dist/wire/constants/hud-use.d.ts +4 -0
- package/dist/wire/constants/hud-use.js +4 -0
- package/dist/wire/constants/mcp-wire.d.ts +16 -0
- package/dist/wire/constants/mcp-wire.js +16 -0
- package/dist/wire/constants/response-body-reason.d.ts +19 -0
- package/dist/wire/constants/response-body-reason.js +18 -0
- package/dist/wire/constants/reticle-env.d.ts +140 -0
- package/dist/wire/constants/reticle-env.js +140 -0
- package/dist/wire/constants/session-constants.d.ts +11 -0
- package/dist/wire/constants/session-constants.js +11 -0
- package/dist/wire/event-payloads.d.ts +173 -629
- package/dist/wire/event-payloads.js +107 -23
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +90 -713
- package/dist/wire/messages.js +19 -3
- package/dist/wire/narrow.d.ts +6 -0
- package/dist/wire/narrow.js +26 -0
- package/dist/wire/next-step.d.ts +50 -0
- package/dist/wire/next-step.js +37 -0
- package/dist/wire/platform-link.d.ts +7 -0
- package/dist/wire/platform-link.js +14 -8
- package/dist/wire/production/activation-ticket.d.ts +64 -0
- package/dist/wire/production/activation-ticket.js +148 -0
- package/dist/wire/production/hello-mode.d.ts +35 -0
- package/dist/wire/production/hello-mode.js +32 -0
- package/dist/wire/production/production-policy.d.ts +92 -0
- package/dist/wire/production/production-policy.js +133 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +102 -700
- package/dist/wire/types.js +5 -5
- package/dist/words/upgrade.d.ts +3 -13
- package/dist/words/upgrade.js +1 -1
- package/package.json +7 -4
package/dist/onboarding.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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.
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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>;
|
package/dist/onboarding.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
-
},
|
|
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
|
|
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
|
-
},
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
47
|
-
|
|
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,77 +1,74 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
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
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
"
|
|
70
|
-
|
|
71
|
-
"name"
|
|
72
|
-
],
|
|
73
|
-
"additionalProperties": false
|
|
65
|
+
"allowed"
|
|
66
|
+
]
|
|
74
67
|
}
|
|
75
68
|
},
|
|
76
|
-
"
|
|
69
|
+
"required": [
|
|
70
|
+
"kind",
|
|
71
|
+
"id",
|
|
72
|
+
"name"
|
|
73
|
+
]
|
|
77
74
|
}
|
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
"
|
|
24
|
+
"required": [
|
|
25
|
+
"kind",
|
|
26
|
+
"id",
|
|
27
|
+
"ok"
|
|
28
|
+
]
|
|
34
29
|
}
|