@reticlehq/core 2.13.1 → 3.1.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/dist/artifacts/artifacts-entry.d.ts +20 -0
- package/dist/artifacts/artifacts-entry.js +20 -0
- package/dist/artifacts/flow-composition.d.ts +30 -0
- package/dist/artifacts/flow-composition.js +19 -0
- package/dist/{flow-constants.d.ts → artifacts/flow-constants.d.ts} +97 -3
- package/dist/{flow-constants.js → artifacts/flow-constants.js} +103 -4
- package/dist/artifacts/flow-mutation-target.d.ts +39 -0
- package/dist/artifacts/flow-mutation-target.js +89 -0
- package/dist/artifacts/flow-order.d.ts +30 -0
- package/dist/artifacts/flow-order.js +49 -0
- package/dist/artifacts/flow-select.d.ts +56 -0
- package/dist/artifacts/flow-select.js +56 -0
- package/dist/artifacts/flow-step-tool.d.ts +31 -0
- package/dist/artifacts/flow-step-tool.js +31 -0
- package/dist/artifacts/flow-types.d.ts +3736 -0
- package/dist/artifacts/flow-types.js +463 -0
- package/dist/artifacts/flow-unreached.d.ts +12 -0
- package/dist/artifacts/flow-unreached.js +24 -0
- package/dist/{impact-savings.d.ts → artifacts/impact-savings.d.ts} +7 -3
- package/dist/{impact-savings.js → artifacts/impact-savings.js} +27 -4
- package/dist/{impact.d.ts → artifacts/impact.d.ts} +122 -54
- package/dist/{impact.js → artifacts/impact.js} +30 -0
- package/dist/{journal.d.ts → artifacts/journal.d.ts} +50 -6
- package/dist/{journal.js → artifacts/journal.js} +38 -2
- package/dist/artifacts/step-effect.d.ts +29 -0
- package/dist/artifacts/step-effect.js +28 -0
- package/dist/hooks/hook-events.d.ts +311 -0
- package/dist/hooks/hook-events.js +127 -0
- package/dist/hooks/hooks-entry.d.ts +9 -0
- package/dist/hooks/hooks-entry.js +9 -0
- package/dist/{brand.d.ts → identity/brand.d.ts} +7 -0
- package/dist/{contract-fingerprint.d.ts → identity/contract-fingerprint.d.ts} +21 -3
- package/dist/{contract-fingerprint.js → identity/contract-fingerprint.js} +22 -4
- package/dist/{document-identity.d.ts → identity/document-identity.d.ts} +4 -5
- package/dist/{document-identity.js → identity/document-identity.js} +4 -5
- package/dist/{source-constants.d.ts → identity/source-constants.d.ts} +4 -4
- package/dist/{source-constants.js → identity/source-constants.js} +4 -4
- package/dist/index.d.ts +69 -42
- package/dist/index.js +78 -44
- package/dist/onboarding.d.ts +114 -0
- package/dist/onboarding.js +141 -0
- package/dist/realm/registry.d.ts +212 -0
- package/dist/realm/registry.js +302 -0
- package/dist/{dev-server-registry.d.ts → registry/dev-server-registry.d.ts} +4 -5
- package/dist/{dev-server-registry.js → registry/dev-server-registry.js} +28 -19
- package/dist/{project-registry.d.ts → registry/project-registry.d.ts} +5 -5
- package/dist/{project-registry.js → registry/project-registry.js} +5 -5
- package/dist/schema/command-name.json +31 -0
- package/dist/schema/event-message.json +1 -0
- package/dist/schema/event-payloads.json +791 -0
- package/dist/schema/event-type.json +1 -0
- package/dist/schema/hello-message.json +76 -2
- package/dist/schema/reticle-event.json +1 -0
- package/dist/schema/reticle-message.json +77 -2
- package/dist/telemetry-entry.d.ts +15 -0
- package/dist/telemetry-entry.js +15 -0
- package/dist/telemetry-feedback.d.ts +13 -14
- package/dist/telemetry-feedback.js +11 -12
- package/dist/telemetry-license.d.ts +1 -1
- package/dist/telemetry-license.js +1 -1
- package/dist/telemetry-refusal.d.ts +11 -11
- package/dist/telemetry-refusal.js +7 -8
- package/dist/telemetry-session.d.ts +49 -57
- package/dist/telemetry-session.js +47 -55
- package/dist/telemetry.d.ts +229 -198
- package/dist/telemetry.js +83 -98
- package/dist/tour-entry.d.ts +10 -0
- package/dist/tour-entry.js +10 -0
- package/dist/tour.d.ts +125 -0
- package/dist/tour.js +165 -0
- package/dist/{consequence.d.ts → verdict/consequence.d.ts} +35 -11
- package/dist/{consequence.js → verdict/consequence.js} +9 -22
- package/dist/{finding-fingerprint.js → verdict/finding-fingerprint.js} +1 -1
- package/dist/{findings.d.ts → verdict/findings.d.ts} +149 -41
- package/dist/{findings.js → verdict/findings.js} +169 -48
- package/dist/{instrumentation-gap.d.ts → verdict/instrumentation-gap.d.ts} +22 -14
- package/dist/{instrumentation-gap.js → verdict/instrumentation-gap.js} +23 -15
- package/dist/{intent.d.ts → verdict/intent.d.ts} +41 -52
- package/dist/{intent.js → verdict/intent.js} +11 -22
- package/dist/verdict/revision.d.ts +44 -0
- package/dist/verdict/revision.js +53 -0
- package/dist/{run-context.d.ts → verdict/run-context.d.ts} +13 -34
- package/dist/{run-context.js → verdict/run-context.js} +15 -36
- package/dist/{security.js → verdict/security.js} +12 -21
- package/dist/{verification-run.d.ts → verdict/verification-run.d.ts} +369 -93
- package/dist/{verification-run.js → verdict/verification-run.js} +157 -21
- package/dist/{verified-constants.d.ts → verdict/verified-constants.d.ts} +36 -13
- package/dist/{verified-constants.js → verdict/verified-constants.js} +36 -13
- package/dist/verdict/verify-progress.d.ts +129 -0
- package/dist/verdict/verify-progress.js +74 -0
- package/dist/wire/channel.d.ts +46 -0
- package/dist/wire/channel.js +95 -0
- package/dist/{constants.d.ts → wire/constants/constants.d.ts} +124 -28
- package/dist/{constants.js → wire/constants/constants.js} +137 -28
- package/dist/{session-constants.d.ts → wire/constants/session-constants.d.ts} +9 -2
- package/dist/{session-constants.js → wire/constants/session-constants.js} +9 -2
- package/dist/{desktop-contract.js → wire/desktop-contract.js} +1 -1
- package/dist/{event-classification.js → wire/event-classification.js} +1 -1
- package/dist/{event-payloads.d.ts → wire/event-payloads.d.ts} +229 -17
- package/dist/{event-payloads.js → wire/event-payloads.js} +61 -3
- package/dist/{event-priority.d.ts → wire/event-priority.d.ts} +1 -4
- package/dist/{event-priority.js → wire/event-priority.js} +2 -5
- package/dist/wire/global-press.d.ts +30 -0
- package/dist/wire/global-press.js +54 -0
- package/dist/{messages.d.ts → wire/messages.d.ts} +290 -38
- package/dist/{messages.js → wire/messages.js} +93 -5
- package/dist/wire/narrow.d.ts +39 -0
- package/dist/wire/narrow.js +45 -0
- package/dist/{net.d.ts → wire/net.d.ts} +49 -10
- package/dist/{net.js → wire/net.js} +49 -10
- package/dist/wire/platform.d.ts +37 -0
- package/dist/wire/platform.js +36 -0
- package/dist/{redaction.d.ts → wire/redaction.d.ts} +30 -0
- package/dist/wire/redaction.js +274 -0
- package/dist/wire/tool-names.d.ts +133 -0
- package/dist/wire/tool-names.js +142 -0
- package/dist/{toon.js → wire/toon.js} +1 -1
- package/dist/{types.d.ts → wire/types.d.ts} +106 -66
- package/dist/{types.js → wire/types.js} +24 -4
- package/dist/{no-session-reason.d.ts → words/no-session-reason.d.ts} +7 -3
- package/dist/{no-session-reason.js → words/no-session-reason.js} +7 -3
- package/dist/{notices.d.ts → words/notices.d.ts} +24 -12
- package/dist/{notices.js → words/notices.js} +27 -12
- package/package.json +22 -5
- package/dist/flow-types.d.ts +0 -1473
- package/dist/flow-types.js +0 -195
- package/dist/redaction.js +0 -149
- /package/dist/{brand.js → identity/brand.js} +0 -0
- /package/dist/{edit-epoch.d.ts → identity/edit-epoch.d.ts} +0 -0
- /package/dist/{edit-epoch.js → identity/edit-epoch.js} +0 -0
- /package/dist/{project-id.d.ts → identity/project-id.d.ts} +0 -0
- /package/dist/{project-id.js → identity/project-id.js} +0 -0
- /package/dist/{daemon-registry.d.ts → registry/daemon-registry.d.ts} +0 -0
- /package/dist/{daemon-registry.js → registry/daemon-registry.js} +0 -0
- /package/dist/{finding-fingerprint.d.ts → verdict/finding-fingerprint.d.ts} +0 -0
- /package/dist/{security.d.ts → verdict/security.d.ts} +0 -0
- /package/dist/{desktop-contract.d.ts → wire/desktop-contract.d.ts} +0 -0
- /package/dist/{event-classification.d.ts → wire/event-classification.d.ts} +0 -0
- /package/dist/{state-select.d.ts → wire/state-select.d.ts} +0 -0
- /package/dist/{state-select.js → wire/state-select.js} +0 -0
- /package/dist/{toon.d.ts → wire/toon.d.ts} +0 -0
- /package/dist/{browser-misdirect.d.ts → words/browser-misdirect.d.ts} +0 -0
- /package/dist/{browser-misdirect.js → words/browser-misdirect.js} +0 -0
- /package/dist/{unreachable-notice.d.ts → words/unreachable-notice.d.ts} +0 -0
- /package/dist/{unreachable-notice.js → words/unreachable-notice.js} +0 -0
- /package/dist/{upgrade.d.ts → words/upgrade.d.ts} +0 -0
- /package/dist/{upgrade.js → words/upgrade.js} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@reticlehq/core/hooks` — what Reticle says happened, for anyone building on top of it.
|
|
3
|
+
*
|
|
4
|
+
* A subpath rather than a root export for the same measured reason as `./tour`: the SDK imports
|
|
5
|
+
* core's root entry on every page load of every instrumented app, and a hook contract is read by a
|
|
6
|
+
* hook CONSUMER — a script, or a product embedding the daemon — which is a different audience that
|
|
7
|
+
* never runs in the page. Charging every developer's bundle for it would be a cost with no reader.
|
|
8
|
+
*/
|
|
9
|
+
export * from './hook-events.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@reticlehq/core/hooks` — what Reticle says happened, for anyone building on top of it.
|
|
3
|
+
*
|
|
4
|
+
* A subpath rather than a root export for the same measured reason as `./tour`: the SDK imports
|
|
5
|
+
* core's root entry on every page load of every instrumented app, and a hook contract is read by a
|
|
6
|
+
* hook CONSUMER — a script, or a product embedding the daemon — which is a different audience that
|
|
7
|
+
* never runs in the page. Charging every developer's bundle for it would be a cost with no reader.
|
|
8
|
+
*/
|
|
9
|
+
export * from './hook-events.js';
|
|
@@ -24,6 +24,13 @@ export type Brand<T, B extends string> = T & {
|
|
|
24
24
|
* interchangeable to the compiler and get swapped by accident (both feed path helpers!)" — and for a
|
|
25
25
|
* long time only RunId was branded, so the pair the warning describes was half-fixed. `flowPath` and
|
|
26
26
|
* `runPath` sit beside each other and take the same shape; the compiler could not tell them apart.
|
|
27
|
+
*
|
|
28
|
+
* Both halves now carry it, along with `sessionDirPath` and the two journal path helpers under it.
|
|
29
|
+
* The last gap was not a missing brand but a discarded one: `RunStore.list()` already returned
|
|
30
|
+
* `RunId[]`, and a local `Array<{ id: string }>` annotation threw it away three lines before the
|
|
31
|
+
* value reached `runPath`. A brand is only worth the weakest annotation between its mint and its
|
|
32
|
+
* use — so `driveFlowName` and `isValidSessionId` now hand back the branded type directly, rather
|
|
33
|
+
* than a `string` each caller has to re-bless.
|
|
27
34
|
*/
|
|
28
35
|
export type FlowName = Brand<string, 'FlowName'>;
|
|
29
36
|
/**
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Reticle is installed as separate pieces — the SDK in the page, the daemon, the MCP server the
|
|
5
5
|
* agent spawns — upgraded independently and therefore drifting constantly. The question that
|
|
6
6
|
* matters when they meet is not "are these the same release?" but "do these speak the same
|
|
7
|
-
* contract?", and package-version equality answers it wrongly in both directions: it fires on
|
|
8
|
-
*
|
|
9
|
-
* number, which is exactly what a stale daemon and a cached npx package are.
|
|
7
|
+
* contract?", and package-version equality answers it wrongly in both directions: it fires on two
|
|
8
|
+
* adjacent patch releases where nothing changed, and it stays silent for two different BUILDS of one
|
|
9
|
+
* version number, which is exactly what a stale daemon and a cached npx package are.
|
|
10
10
|
*
|
|
11
11
|
* So this hashes the vocabulary itself. Both sides compute it from their own copy of core, so equal
|
|
12
12
|
* hashes mean "we agree" whatever the version strings say, and a hash that moved means a name on the
|
|
@@ -34,3 +34,21 @@ export declare function fingerprintOf(vocabulary: Record<string, readonly string
|
|
|
34
34
|
* either side misunderstanding the other.
|
|
35
35
|
*/
|
|
36
36
|
export declare const CONTRACT_FINGERPRINT: string;
|
|
37
|
+
/**
|
|
38
|
+
* The same vocabulary, by NAME rather than by hash — what a peer announces so skew can be decided
|
|
39
|
+
* structurally.
|
|
40
|
+
*
|
|
41
|
+
* A hash answers "same" or "different" and nothing else, so it cannot tell an ADDITIVE change from
|
|
42
|
+
* a breaking one: adding an `ActionType` an older page never needs to know about moves the hash,
|
|
43
|
+
* and a peer with a pinned SDK is then told "they speak DIFFERENT wire contracts — tools will
|
|
44
|
+
* behave in ways neither side reports" about a change that breaks nothing. Every peer MUST announce
|
|
45
|
+
* this list; `describeSkew` falls back to the hash branch when nothing produces it.
|
|
46
|
+
*
|
|
47
|
+
* `messageKinds` is deliberately absent: it frames the envelope rather than naming a capability, so
|
|
48
|
+
* a peer that did not know a message kind could not have parsed the message carrying this list.
|
|
49
|
+
*/
|
|
50
|
+
export declare const CONTRACT_PARTS: {
|
|
51
|
+
readonly commands: readonly string[];
|
|
52
|
+
readonly events: readonly string[];
|
|
53
|
+
readonly actions: readonly string[];
|
|
54
|
+
};
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Reticle is installed as separate pieces — the SDK in the page, the daemon, the MCP server the
|
|
5
5
|
* agent spawns — upgraded independently and therefore drifting constantly. The question that
|
|
6
6
|
* matters when they meet is not "are these the same release?" but "do these speak the same
|
|
7
|
-
* contract?", and package-version equality answers it wrongly in both directions: it fires on
|
|
8
|
-
*
|
|
9
|
-
* number, which is exactly what a stale daemon and a cached npx package are.
|
|
7
|
+
* contract?", and package-version equality answers it wrongly in both directions: it fires on two
|
|
8
|
+
* adjacent patch releases where nothing changed, and it stays silent for two different BUILDS of one
|
|
9
|
+
* version number, which is exactly what a stale daemon and a cached npx package are.
|
|
10
10
|
*
|
|
11
11
|
* So this hashes the vocabulary itself. Both sides compute it from their own copy of core, so equal
|
|
12
12
|
* hashes mean "we agree" whatever the version strings say, and a hash that moved means a name on the
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Derived on purpose. A hand-maintained contract number is one somebody eventually forgets to bump,
|
|
16
16
|
* and a forgotten bump is silent skew — the failure this exists to end.
|
|
17
17
|
*/
|
|
18
|
-
import { ActionType, EventType, MessageKind, ReticleCommand } from '
|
|
18
|
+
import { ActionType, EventType, MessageKind, ReticleCommand } from '../wire/constants/constants.js';
|
|
19
19
|
/**
|
|
20
20
|
* FNV-1a, 32-bit. Chosen over a crypto hash because this runs in the PAGE: `crypto.subtle` is async
|
|
21
21
|
* and unavailable on insecure origins, and a dependency is not worth 40 lines. Collisions do not
|
|
@@ -54,3 +54,21 @@ export const CONTRACT_FINGERPRINT = fingerprintOf({
|
|
|
54
54
|
actions: Object.values(ActionType),
|
|
55
55
|
events: Object.values(EventType),
|
|
56
56
|
});
|
|
57
|
+
/**
|
|
58
|
+
* The same vocabulary, by NAME rather than by hash — what a peer announces so skew can be decided
|
|
59
|
+
* structurally.
|
|
60
|
+
*
|
|
61
|
+
* A hash answers "same" or "different" and nothing else, so it cannot tell an ADDITIVE change from
|
|
62
|
+
* a breaking one: adding an `ActionType` an older page never needs to know about moves the hash,
|
|
63
|
+
* and a peer with a pinned SDK is then told "they speak DIFFERENT wire contracts — tools will
|
|
64
|
+
* behave in ways neither side reports" about a change that breaks nothing. Every peer MUST announce
|
|
65
|
+
* this list; `describeSkew` falls back to the hash branch when nothing produces it.
|
|
66
|
+
*
|
|
67
|
+
* `messageKinds` is deliberately absent: it frames the envelope rather than naming a capability, so
|
|
68
|
+
* a peer that did not know a message kind could not have parsed the message carrying this list.
|
|
69
|
+
*/
|
|
70
|
+
export const CONTRACT_PARTS = {
|
|
71
|
+
commands: Object.values(ReticleCommand),
|
|
72
|
+
events: Object.values(EventType),
|
|
73
|
+
actions: Object.values(ActionType),
|
|
74
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Which document an observation belongs to.
|
|
3
3
|
*
|
|
4
|
-
* Evidence
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* the bytes, false about the world, which is the worst kind of wrong a verification tool can be.
|
|
4
|
+
* Evidence scoped by time and ring-buffer capacity alone lets a request observed under a PREVIOUS
|
|
5
|
+
* document — or under a previous run of the application entirely — be counted against an action
|
|
6
|
+
* taken now. That is a citation that is true about the bytes and false about the world, which is
|
|
7
|
+
* the worst kind of wrong a verification tool can be.
|
|
9
8
|
*
|
|
10
9
|
* A document id is minted once per real document and dies with it. A full navigation replaces the
|
|
11
10
|
* document and so replaces the id. An SPA route change does NOT, which is correct rather than a
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Which document an observation belongs to.
|
|
3
3
|
*
|
|
4
|
-
* Evidence
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* the bytes, false about the world, which is the worst kind of wrong a verification tool can be.
|
|
4
|
+
* Evidence scoped by time and ring-buffer capacity alone lets a request observed under a PREVIOUS
|
|
5
|
+
* document — or under a previous run of the application entirely — be counted against an action
|
|
6
|
+
* taken now. That is a citation that is true about the bytes and false about the world, which is
|
|
7
|
+
* the worst kind of wrong a verification tool can be.
|
|
9
8
|
*
|
|
10
9
|
* A document id is minted once per real document and dies with it. A full navigation replaces the
|
|
11
10
|
* document and so replaces the id. An SPA route change does NOT, which is correct rather than a
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Source mapping: how a DOM node is traced back to the line of code that rendered it.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* These two are read by the build plugins, the browser SDK and the React adapter together, and they
|
|
5
|
+
* change for one reason (the source-pointer feature) rather than for the dozen reasons the wire
|
|
6
|
+
* contract does.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* The attribute the build plugin stamps on JSX host elements as `file:line:column`, so the browser SDK
|
|
10
10
|
* and the React adapter can map a DOM node back to its source file (the source-pointer feature, needed
|
|
11
11
|
* on React 19 which dropped _debugSource). Read here by both packages — it was duplicated as a local
|
|
12
|
-
* const in dom/source.ts AND dom/query.ts and inlined as a literal in the React adapter. The stamper
|
|
12
|
+
* const in dom/addressing/source.ts AND dom/query.ts and inlined as a literal in the React adapter. The stamper
|
|
13
13
|
* (@reticlehq/babel-plugin, separate build tooling) stamps this same literal and MUST match it.
|
|
14
14
|
*/
|
|
15
15
|
export declare const DATA_RETICLE_SOURCE_ATTR = "data-reticle-source";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Source mapping: how a DOM node is traced back to the line of code that rendered it.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* These two are read by the build plugins, the browser SDK and the React adapter together, and they
|
|
5
|
+
* change for one reason (the source-pointer feature) rather than for the dozen reasons the wire
|
|
6
|
+
* contract does.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* The attribute the build plugin stamps on JSX host elements as `file:line:column`, so the browser SDK
|
|
10
10
|
* and the React adapter can map a DOM node back to its source file (the source-pointer feature, needed
|
|
11
11
|
* on React 19 which dropped _debugSource). Read here by both packages — it was duplicated as a local
|
|
12
|
-
* const in dom/source.ts AND dom/query.ts and inlined as a literal in the React adapter. The stamper
|
|
12
|
+
* const in dom/addressing/source.ts AND dom/query.ts and inlined as a literal in the React adapter. The stamper
|
|
13
13
|
* (@reticlehq/babel-plugin, separate build tooling) stamps this same literal and MUST match it.
|
|
14
14
|
*/
|
|
15
15
|
export const DATA_RETICLE_SOURCE_ATTR = 'data-reticle-source';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,52 +2,79 @@
|
|
|
2
2
|
* @reticlehq/core — the wire contract at the bottom of the Reticle graph (zod its only dependency).
|
|
3
3
|
*
|
|
4
4
|
* API-stability note: the exports below the divider are INTERNAL cross-package plumbing — they are
|
|
5
|
-
*
|
|
5
|
+
* cross-package plumbing so the other @reticlehq/* packages share one implementation, NOT a stable surface
|
|
6
6
|
* for outside consumers. They can change in a minor release. Depend on the STABLE section for anything
|
|
7
|
-
* outside this monorepo.
|
|
8
|
-
*
|
|
7
|
+
* outside this monorepo.
|
|
8
|
+
*
|
|
9
|
+
* Two of those internal groups now have their own entry points, so a Node-side importer can name the
|
|
10
|
+
* half of core it depends on instead of pulling the whole surface:
|
|
11
|
+
*
|
|
12
|
+
* - `@reticlehq/core/artifacts` — on-disk + registry formats (see ./artifacts-entry.ts)
|
|
13
|
+
* - `@reticlehq/core/telemetry` — the analytics wire (see ./telemetry-entry.ts)
|
|
14
|
+
*
|
|
15
|
+
* This root entry point still exports everything it did before — the subpaths are additive, and
|
|
16
|
+
* removing a name from here would be a breaking change to a published package. The boundary that is
|
|
17
|
+
* actually ENFORCED is the one the browser SDK must not cross: `core-boundary.test.ts` in
|
|
18
|
+
* @reticlehq/browser fails if adapters/realm/browser/src imports any artifacts-group name from
|
|
19
|
+
* '@reticlehq/core'. That test, not this comment, is what keeps the DOM side off the Node-side
|
|
20
|
+
* plumbing.
|
|
9
21
|
*/
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './
|
|
35
|
-
export * from './
|
|
36
|
-
export * from './
|
|
37
|
-
export * from './
|
|
38
|
-
export * from './
|
|
39
|
-
export * from './
|
|
40
|
-
export * from './
|
|
41
|
-
export * from './
|
|
42
|
-
export * from './
|
|
22
|
+
export * from './artifacts/flow-order.js';
|
|
23
|
+
export * from './artifacts/flow-select.js';
|
|
24
|
+
export * from './artifacts/flow-unreached.js';
|
|
25
|
+
export * from './artifacts/flow-mutation-target.js';
|
|
26
|
+
export * from './wire/constants/constants.js';
|
|
27
|
+
export * from './identity/source-constants.js';
|
|
28
|
+
export * from './wire/event-classification.js';
|
|
29
|
+
export * from './wire/global-press.js';
|
|
30
|
+
export * from './verdict/verified-constants.js';
|
|
31
|
+
export * from './verdict/verify-progress.js';
|
|
32
|
+
export * from './wire/constants/session-constants.js';
|
|
33
|
+
export * from './identity/document-identity.js';
|
|
34
|
+
export * from './identity/edit-epoch.js';
|
|
35
|
+
export * from './wire/messages.js';
|
|
36
|
+
export * from './wire/event-payloads.js';
|
|
37
|
+
export * from './wire/event-priority.js';
|
|
38
|
+
export * from './artifacts/flow-constants.js';
|
|
39
|
+
export * from './artifacts/flow-types.js';
|
|
40
|
+
export * from './artifacts/step-effect.js';
|
|
41
|
+
export * from './artifacts/flow-composition.js';
|
|
42
|
+
export * from './verdict/verification-run.js';
|
|
43
|
+
export * from './wire/types.js';
|
|
44
|
+
export * from './identity/brand.js';
|
|
45
|
+
export * from './wire/net.js';
|
|
46
|
+
export * from './verdict/findings.js';
|
|
47
|
+
export * from './wire/desktop-contract.js';
|
|
48
|
+
export * from './verdict/consequence.js';
|
|
49
|
+
export * from './identity/project-id.js';
|
|
50
|
+
export * from './words/notices.js';
|
|
51
|
+
export * from './artifacts/journal.js';
|
|
52
|
+
export * from './words/browser-misdirect.js';
|
|
53
|
+
export * from './registry/daemon-registry.js';
|
|
54
|
+
export * from './registry/dev-server-registry.js';
|
|
55
|
+
export * from './registry/project-registry.js';
|
|
56
|
+
export * from './verdict/intent.js';
|
|
57
|
+
export * from './verdict/run-context.js';
|
|
58
|
+
export * from './verdict/instrumentation-gap.js';
|
|
59
|
+
export * from './verdict/security.js';
|
|
60
|
+
export * from './wire/redaction.js';
|
|
61
|
+
export * from './wire/state-select.js';
|
|
62
|
+
export * from './wire/toon.js';
|
|
63
|
+
export * from './words/upgrade.js';
|
|
43
64
|
export * from './telemetry.js';
|
|
44
|
-
export * from './no-session-reason.js';
|
|
65
|
+
export * from './words/no-session-reason.js';
|
|
45
66
|
export * from './telemetry-refusal.js';
|
|
67
|
+
export * from './wire/narrow.js';
|
|
68
|
+
export * from './wire/tool-names.js';
|
|
69
|
+
export * from './wire/platform.js';
|
|
70
|
+
export * from './wire/channel.js';
|
|
71
|
+
export * from './verdict/revision.js';
|
|
72
|
+
export * from './realm/registry.js';
|
|
46
73
|
export * from './telemetry-session.js';
|
|
47
74
|
export * from './telemetry-license.js';
|
|
48
75
|
export * from './telemetry-feedback.js';
|
|
49
|
-
export * from './impact.js';
|
|
50
|
-
export * from './impact-savings.js';
|
|
51
|
-
export { CONTRACT_FINGERPRINT, fnv1a, fingerprintOf } from './contract-fingerprint.js';
|
|
52
|
-
export { fingerprintFinding, type FindingIdentity } from './finding-fingerprint.js';
|
|
53
|
-
export * from './unreachable-notice.js';
|
|
76
|
+
export * from './artifacts/impact.js';
|
|
77
|
+
export * from './artifacts/impact-savings.js';
|
|
78
|
+
export { CONTRACT_FINGERPRINT, CONTRACT_PARTS, fnv1a, fingerprintOf, } from './identity/contract-fingerprint.js';
|
|
79
|
+
export { fingerprintFinding, type FindingIdentity } from './verdict/finding-fingerprint.js';
|
|
80
|
+
export * from './words/unreachable-notice.js';
|
package/dist/index.js
CHANGED
|
@@ -2,57 +2,91 @@
|
|
|
2
2
|
* @reticlehq/core — the wire contract at the bottom of the Reticle graph (zod its only dependency).
|
|
3
3
|
*
|
|
4
4
|
* API-stability note: the exports below the divider are INTERNAL cross-package plumbing — they are
|
|
5
|
-
*
|
|
5
|
+
* cross-package plumbing so the other @reticlehq/* packages share one implementation, NOT a stable surface
|
|
6
6
|
* for outside consumers. They can change in a minor release. Depend on the STABLE section for anything
|
|
7
|
-
* outside this monorepo.
|
|
8
|
-
*
|
|
7
|
+
* outside this monorepo.
|
|
8
|
+
*
|
|
9
|
+
* Two of those internal groups now have their own entry points, so a Node-side importer can name the
|
|
10
|
+
* half of core it depends on instead of pulling the whole surface:
|
|
11
|
+
*
|
|
12
|
+
* - `@reticlehq/core/artifacts` — on-disk + registry formats (see ./artifacts-entry.ts)
|
|
13
|
+
* - `@reticlehq/core/telemetry` — the analytics wire (see ./telemetry-entry.ts)
|
|
14
|
+
*
|
|
15
|
+
* This root entry point still exports everything it did before — the subpaths are additive, and
|
|
16
|
+
* removing a name from here would be a breaking change to a published package. The boundary that is
|
|
17
|
+
* actually ENFORCED is the one the browser SDK must not cross: `core-boundary.test.ts` in
|
|
18
|
+
* @reticlehq/browser fails if adapters/realm/browser/src imports any artifacts-group name from
|
|
19
|
+
* '@reticlehq/core'. That test, not this comment, is what keeps the DOM side off the Node-side
|
|
20
|
+
* plumbing.
|
|
9
21
|
*/
|
|
10
22
|
// ── STABLE public surface: the wire/domain contract ──────────────────────────────────────────────
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
23
|
+
export * from './artifacts/flow-order.js'; // orderFlows — prerequisites first, cycles reported
|
|
24
|
+
export * from './artifacts/flow-select.js'; // selectFlows — which flows a run replays, and what it held back
|
|
25
|
+
export * from './artifacts/flow-unreached.js'; // unreachedRoutes — known routes this run never visited
|
|
26
|
+
export * from './artifacts/flow-mutation-target.js'; // what a flow says it depends on: mutationTargetsFor + perturbationFor
|
|
27
|
+
export * from './wire/constants/constants.js'; // EventType, ActionType, wire constants, TRANSPORT_LIMITS, …
|
|
28
|
+
export * from './identity/source-constants.js'; // DATA_RETICLE_SOURCE_ATTR, RETICLE_ROOT_GLOBAL
|
|
29
|
+
export * from './wire/event-classification.js'; // CHURN_TYPES — shared eviction priority for buffer/queue
|
|
30
|
+
export * from './wire/global-press.js'; // which press is a document key (Escape / Tab / a shortcut)
|
|
31
|
+
export * from './verdict/verified-constants.js'; // Verified — the one field an agent gates on
|
|
32
|
+
export * from './verdict/verify-progress.js'; // VerifyPhase — what a run is doing while it is still doing it
|
|
33
|
+
export * from './wire/constants/session-constants.js';
|
|
34
|
+
export * from './identity/document-identity.js'; // which document an observation belongs to
|
|
35
|
+
export * from './identity/edit-epoch.js'; // which round of source edits an observation belongs to
|
|
36
|
+
export * from './wire/messages.js'; // ReticleEvent + the message schemas
|
|
37
|
+
export * from './wire/event-payloads.js'; // per-event payload schemas + wire vocab
|
|
38
|
+
export * from './wire/event-priority.js'; // which events survive the bridge rate cap
|
|
39
|
+
export * from './artifacts/flow-constants.js'; // moved off wire/constants/constants, which had no use for them
|
|
40
|
+
export * from './artifacts/flow-types.js'; // FlowStep, FlowExpect, FlowStepTool, replay result shapes
|
|
41
|
+
export * from './artifacts/step-effect.js'; // StepEffect: a leaf, so the page never downloads it
|
|
42
|
+
export * from './artifacts/flow-composition.js'; // canFollow: may B replay straight after A
|
|
43
|
+
export * from './verdict/verification-run.js'; // run/verdict shapes for the CI surface
|
|
44
|
+
export * from './wire/types.js';
|
|
45
|
+
export * from './identity/brand.js'; // RunId / SessionId / Ref brands + validators
|
|
46
|
+
export * from './wire/net.js'; // NetInitiator / ipc:// scheme — network + desktop-IPC call vocabulary
|
|
47
|
+
export * from './verdict/findings.js'; // crawl anomalies + cross-channel contradictions
|
|
48
|
+
export * from './wire/desktop-contract.js'; // the Electron preload/main/renderer/daemon string contract
|
|
49
|
+
export * from './verdict/consequence.js';
|
|
50
|
+
export * from './identity/project-id.js';
|
|
51
|
+
export * from './words/notices.js';
|
|
52
|
+
export * from './artifacts/journal.js';
|
|
32
53
|
// Not an API — three names that exist so importing the BROWSER SDK from here fails with a sentence
|
|
33
54
|
// naming @reticlehq/browser, instead of a bare SyntaxError that blanks the app. See the module.
|
|
34
|
-
export * from './browser-misdirect.js';
|
|
55
|
+
export * from './words/browser-misdirect.js';
|
|
35
56
|
// ── INTERNAL cross-package plumbing (shared impl; not a stable outside API — may change in a minor) ─
|
|
36
|
-
export * from './daemon-registry.js'; // daemon discovery, used by the vite plugin + server
|
|
37
|
-
export * from './dev-server-registry.js'; // the return leg: dev servers announcing themselves
|
|
38
|
-
export * from './project-registry.js'; // projectId -> directory, so a cross-repo daemon can still resolve
|
|
39
|
-
export * from './intent.js'; // what a change was supposed to make true, captured while somebody knows
|
|
40
|
-
export * from './run-context.js'; // what a run established, folded and capped, for the agent to pull back
|
|
41
|
-
export * from './instrumentation-gap.js'; // what Reticle could not see, and the change that would let it
|
|
42
|
-
export * from './security.js'; // sanitize/serialize helpers shared by browser + server
|
|
43
|
-
export * from './redaction.js'; // isSensitiveKey / scrubKnownSecrets — the shared redaction rules
|
|
44
|
-
export * from './state-select.js'; // selectPath / capDepth — shared by browser SDK + server fallback
|
|
45
|
-
export * from './toon.js'; // TOON encoding used by the server's result encoder
|
|
46
|
-
export * from './upgrade.js'; // self-update policy shared by the CLI
|
|
57
|
+
export * from './registry/daemon-registry.js'; // daemon discovery, used by the vite plugin + server
|
|
58
|
+
export * from './registry/dev-server-registry.js'; // the return leg: dev servers announcing themselves
|
|
59
|
+
export * from './registry/project-registry.js'; // projectId -> directory, so a cross-repo daemon can still resolve
|
|
60
|
+
export * from './verdict/intent.js'; // what a change was supposed to make true, captured while somebody knows
|
|
61
|
+
export * from './verdict/run-context.js'; // what a run established, folded and capped, for the agent to pull back
|
|
62
|
+
export * from './verdict/instrumentation-gap.js'; // what Reticle could not see, and the change that would let it
|
|
63
|
+
export * from './verdict/security.js'; // sanitize/serialize helpers shared by browser + server
|
|
64
|
+
export * from './wire/redaction.js'; // isSensitiveKey / scrubKnownSecrets — the shared redaction rules
|
|
65
|
+
export * from './wire/state-select.js'; // selectPath / capDepth — shared by browser SDK + server fallback
|
|
66
|
+
export * from './wire/toon.js'; // TOON encoding used by the server's result encoder
|
|
67
|
+
export * from './words/upgrade.js'; // self-update policy shared by the CLI
|
|
47
68
|
export * from './telemetry.js';
|
|
48
|
-
|
|
49
|
-
export * from './no-session-reason.js';
|
|
69
|
+
export * from './words/no-session-reason.js';
|
|
50
70
|
export * from './telemetry-refusal.js';
|
|
71
|
+
export * from './wire/narrow.js';
|
|
72
|
+
export * from './wire/tool-names.js';
|
|
73
|
+
export * from './wire/platform.js';
|
|
74
|
+
export * from './wire/channel.js';
|
|
75
|
+
export * from './verdict/revision.js';
|
|
76
|
+
export * from './realm/registry.js';
|
|
77
|
+
// The protocol is NOT re-exported here, deliberately.
|
|
78
|
+
//
|
|
79
|
+
// `open-verification` is the specification this codebase implements, and it is a separate
|
|
80
|
+
// package precisely so that somebody implementing it does not have to install the product. Blanket
|
|
81
|
+
// re-exporting it from core erases that line: a consumer reaches a protocol name through Reticle
|
|
82
|
+
// and now depends on Reticle for a contract that was written not to need it. Import the protocol
|
|
83
|
+
// from the protocol. What core re-exports are the few names this repository has always spelled its
|
|
84
|
+
// own way -- see wire/channel.ts, which imports the rule rather than restating it.
|
|
51
85
|
export * from './telemetry-session.js'; // the session/project rollup payloads
|
|
52
86
|
export * from './telemetry-license.js'; // LicenseActivation — shared by the licence gate and telemetry
|
|
53
|
-
export * from './telemetry-feedback.js'; // the two things a PERSON writes: feedback + a self-declared identity
|
|
54
|
-
export * from './impact.js'; // the user's own record of what Reticle has done for them (local only)
|
|
55
|
-
export * from './impact-savings.js'; // the savings model - one file, so every claim is derivable there
|
|
56
|
-
export { CONTRACT_FINGERPRINT, fnv1a, fingerprintOf } from './contract-fingerprint.js';
|
|
57
|
-
export { fingerprintFinding } from './finding-fingerprint.js';
|
|
58
|
-
export * from './unreachable-notice.js'; // the page's unreachable warning, as a contract the daemon parses
|
|
87
|
+
export * from './telemetry-feedback.js'; // the two things a PERSON writes: feedback + a self-declared identity
|
|
88
|
+
export * from './artifacts/impact.js'; // the user's own record of what Reticle has done for them (local only)
|
|
89
|
+
export * from './artifacts/impact-savings.js'; // the savings model - one file, so every claim is derivable there
|
|
90
|
+
export { CONTRACT_FINGERPRINT, CONTRACT_PARTS, fnv1a, fingerprintOf, } from './identity/contract-fingerprint.js';
|
|
91
|
+
export { fingerprintFinding } from './verdict/finding-fingerprint.js';
|
|
92
|
+
export * from './words/unreachable-notice.js'; // the page's unreachable warning, as a contract the daemon parses
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The three phases between "never heard of Reticle" and "it produced a verdict on my app".
|
|
4
|
+
*
|
|
5
|
+
* Named as one vocabulary because the question they exist to answer is one question: WHERE do people
|
|
6
|
+
* stop. Prior measurement put the break at instrumentation — user retention strong, verification
|
|
7
|
+
* retention far weaker — and `init_completed` cannot see that, because it fires when the files are
|
|
8
|
+
* written and the story continues for minutes afterwards.
|
|
9
|
+
*/
|
|
10
|
+
export declare const OnboardingPhase: {
|
|
11
|
+
/** Getting the CLI onto the machine and the MCP registered with the agents that are there. */
|
|
12
|
+
readonly INSTALL: "install";
|
|
13
|
+
/** Being shown what Reticle is and how it is driven, before being asked to drive anything. */
|
|
14
|
+
readonly ONBOARD: "onboard";
|
|
15
|
+
/** Instrumenting a real project and driving it until something is actually proved. */
|
|
16
|
+
readonly FIRST_RUN: "first_run";
|
|
17
|
+
};
|
|
18
|
+
export type OnboardingPhase = (typeof OnboardingPhase)[keyof typeof OnboardingPhase];
|
|
19
|
+
/**
|
|
20
|
+
* What became of one step.
|
|
21
|
+
*
|
|
22
|
+
* `ABANDONED` is the one that earns its place: a step that is STARTED and never resolved is
|
|
23
|
+
* indistinguishable from one that was never reached, and both read as "we never got there" in a
|
|
24
|
+
* funnel. Saying a person walked away from a step we know they began is a different fact from
|
|
25
|
+
* saying the step failed, and only one of them is our bug.
|
|
26
|
+
*/
|
|
27
|
+
export declare const OnboardingStepStatus: {
|
|
28
|
+
readonly STARTED: "started";
|
|
29
|
+
readonly COMPLETED: "completed";
|
|
30
|
+
readonly FAILED: "failed";
|
|
31
|
+
readonly ABANDONED: "abandoned";
|
|
32
|
+
/** Nothing to do — already installed, already instrumented. Not a loss, and not a win either. */
|
|
33
|
+
readonly SKIPPED: "skipped";
|
|
34
|
+
};
|
|
35
|
+
export type OnboardingStepStatus = (typeof OnboardingStepStatus)[keyof typeof OnboardingStepStatus];
|
|
36
|
+
/**
|
|
37
|
+
* The steps, per phase, as ONE table.
|
|
38
|
+
*
|
|
39
|
+
* Written down here rather than as string literals at each emit site, for the reason rule 4 exists:
|
|
40
|
+
* a vocabulary copied into the place that uses it drifts from the place that reads it, and the
|
|
41
|
+
* reader is a dashboard nobody re-checks. A step that is renamed here is renamed everywhere or it
|
|
42
|
+
* does not compile.
|
|
43
|
+
*
|
|
44
|
+
* The ORDER matters and is the funnel: each phase's steps are listed in the sequence they occur, so
|
|
45
|
+
* a drop-off curve is this array with counts against it.
|
|
46
|
+
*/
|
|
47
|
+
export declare const OnboardingSteps: {
|
|
48
|
+
readonly install: readonly ["script_started", "runtime_ready", "cli_installed", "agents_detected", "mcp_registered"];
|
|
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"];
|
|
51
|
+
};
|
|
52
|
+
export declare const OnboardingStepSchema: z.ZodObject<{
|
|
53
|
+
phase: z.ZodNativeEnum<{
|
|
54
|
+
/** Getting the CLI onto the machine and the MCP registered with the agents that are there. */
|
|
55
|
+
readonly INSTALL: "install";
|
|
56
|
+
/** Being shown what Reticle is and how it is driven, before being asked to drive anything. */
|
|
57
|
+
readonly ONBOARD: "onboard";
|
|
58
|
+
/** Instrumenting a real project and driving it until something is actually proved. */
|
|
59
|
+
readonly FIRST_RUN: "first_run";
|
|
60
|
+
}>;
|
|
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<{
|
|
74
|
+
readonly STARTED: "started";
|
|
75
|
+
readonly COMPLETED: "completed";
|
|
76
|
+
readonly FAILED: "failed";
|
|
77
|
+
readonly ABANDONED: "abandoned";
|
|
78
|
+
/** Nothing to do — already installed, already instrumented. Not a loss, and not a win either. */
|
|
79
|
+
readonly SKIPPED: "skipped";
|
|
80
|
+
}>;
|
|
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
|
+
elapsedMs: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
/** Classified cause when it failed — our vocabulary, never a raw error or a path. */
|
|
87
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
88
|
+
/** The stack it was detected on, so a phase that only fails on one framework is visible. */
|
|
89
|
+
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
|
+
unattended: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
status: "skipped" | "started" | "completed" | "failed" | "abandoned";
|
|
99
|
+
step: string;
|
|
100
|
+
phase: "install" | "onboard" | "first_run";
|
|
101
|
+
reason?: string | undefined;
|
|
102
|
+
stack?: string | undefined;
|
|
103
|
+
elapsedMs?: number | undefined;
|
|
104
|
+
unattended?: boolean | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
status: "skipped" | "started" | "completed" | "failed" | "abandoned";
|
|
107
|
+
step: string;
|
|
108
|
+
phase: "install" | "onboard" | "first_run";
|
|
109
|
+
reason?: string | undefined;
|
|
110
|
+
stack?: string | undefined;
|
|
111
|
+
elapsedMs?: number | undefined;
|
|
112
|
+
unattended?: boolean | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
export type OnboardingStep = z.infer<typeof OnboardingStepSchema>;
|