@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/wire/types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
import { CONTRACT_FILE_VERSION, ElementState, QueryBy } from './constants/constants.js';
|
|
3
3
|
// Imported from where they actually live: these are artifact constants, not wire constants.
|
|
4
4
|
import { AnnotationKind, PROJECT_FILE_VERSION, RunKind, RunStatus, } from '../artifacts/flow-constants.js';
|
|
@@ -19,12 +19,12 @@ import { RiskSurface } from '../verdict/verification-run.js';
|
|
|
19
19
|
* the query's own `value` residual, and the projected map answers everything else. A predicate that
|
|
20
20
|
* cannot express a value is honest; one that pretends to is a false green.
|
|
21
21
|
*/
|
|
22
|
-
export const AttrNamesSchema = z.array(z.string().refine((name) => !name.includes('='),
|
|
23
|
-
|
|
22
|
+
export const AttrNamesSchema = z.array(z.string().refine((name) => !name.includes('='), {
|
|
23
|
+
error: (issue) => `\`attrs\` takes attribute NAMES only, not \`name=value\` — got ${JSON.stringify(issue.input)}. ` +
|
|
24
24
|
'It PROJECTS each attribute onto the match, it does not filter on it. Drop the `=value` ' +
|
|
25
25
|
'half and read the returned `attrs` map, or assert the value with an `element` predicate ' +
|
|
26
26
|
'carrying `value`.',
|
|
27
|
-
}))
|
|
27
|
+
}));
|
|
28
28
|
/**
|
|
29
29
|
* A query describing which element(s) to find, Testing-Library style.
|
|
30
30
|
*
|
|
@@ -180,7 +180,7 @@ export const AnnotationSchema = z.discriminatedUnion('kind', [
|
|
|
180
180
|
z.object({
|
|
181
181
|
kind: z.literal(AnnotationKind.ASSERT_SIGNAL),
|
|
182
182
|
name: z.string().min(1),
|
|
183
|
-
dataMatches: z.record(z.unknown()).optional(),
|
|
183
|
+
dataMatches: z.record(z.string(), z.unknown()).optional(),
|
|
184
184
|
}),
|
|
185
185
|
z.object({
|
|
186
186
|
kind: z.literal(AnnotationKind.ASSERT_VISIBLE),
|
package/dist/words/upgrade.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - fully silenceable via the env switch below,
|
|
13
13
|
* - the agent's objective never includes "drive upgrades" — it reports a blocker, it does not sell.
|
|
14
14
|
*/
|
|
15
|
-
import
|
|
15
|
+
import * as z from 'zod';
|
|
16
16
|
/** Env switch that silences ALL upgrade hints — respected by the server before any hint is emitted. */
|
|
17
17
|
export declare const UPGRADE_HINT_SILENCE_ENV = "RETICLE_NO_UPSELL";
|
|
18
18
|
/** Where the human is sent to learn more / link a free account. The canonical cloud entry point. */
|
|
@@ -47,7 +47,7 @@ export type CloudCapability = (typeof CloudCapability)[keyof typeof CloudCapabil
|
|
|
47
47
|
* lets a client branch without matching prose.
|
|
48
48
|
*/
|
|
49
49
|
export declare const UpgradeHintSchema: z.ZodObject<{
|
|
50
|
-
capability: z.
|
|
50
|
+
capability: z.ZodEnum<{
|
|
51
51
|
/** Share a read-only proof of a verification run with a teammate (a hosted, linkable artifact). */
|
|
52
52
|
readonly SHARE_PROOF: "share_proof";
|
|
53
53
|
/** Run history beyond the local ring buffer — trends, flake surfaces across sessions. */
|
|
@@ -69,17 +69,7 @@ export declare const UpgradeHintSchema: z.ZodObject<{
|
|
|
69
69
|
reason: z.ZodString;
|
|
70
70
|
unlockedBy: z.ZodString;
|
|
71
71
|
learnMoreUrl: z.ZodString;
|
|
72
|
-
},
|
|
73
|
-
reason: string;
|
|
74
|
-
capability: "share_proof" | "run_history" | "team_review" | "corpus_heal" | "ci_gate" | "hosted_runner";
|
|
75
|
-
unlockedBy: string;
|
|
76
|
-
learnMoreUrl: string;
|
|
77
|
-
}, {
|
|
78
|
-
reason: string;
|
|
79
|
-
capability: "share_proof" | "run_history" | "team_review" | "corpus_heal" | "ci_gate" | "hosted_runner";
|
|
80
|
-
unlockedBy: string;
|
|
81
|
-
learnMoreUrl: string;
|
|
82
|
-
}>;
|
|
72
|
+
}, z.core.$strip>;
|
|
83
73
|
export type UpgradeHint = z.infer<typeof UpgradeHintSchema>;
|
|
84
74
|
/** Narrow an unknown wire value to a CloudCapability. */
|
|
85
75
|
export declare function isCloudCapability(value: unknown): value is CloudCapability;
|
package/dist/words/upgrade.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - fully silenceable via the env switch below,
|
|
13
13
|
* - the agent's objective never includes "drive upgrades" — it reports a blocker, it does not sell.
|
|
14
14
|
*/
|
|
15
|
-
import
|
|
15
|
+
import * as z from 'zod';
|
|
16
16
|
/** Env switch that silences ALL upgrade hints — respected by the server before any hint is emitted. */
|
|
17
17
|
export const UPGRADE_HINT_SILENCE_ENV = 'RETICLE_NO_UPSELL';
|
|
18
18
|
/** Where the human is sent to learn more / link a free account. The canonical cloud entry point. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reticlehq/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "The Reticle foundation: the shared wire contract — types, zod schemas, constants, messages, and the isomorphic kernel that every Reticle package (browser SDK, server, kits, test harness) imports. Depends only on zod and open-verification.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,15 +39,18 @@
|
|
|
39
39
|
"./hud": {
|
|
40
40
|
"types": "./dist/hud-entry.d.ts",
|
|
41
41
|
"default": "./dist/hud-entry.js"
|
|
42
|
+
},
|
|
43
|
+
"./activation": {
|
|
44
|
+
"types": "./dist/activation-entry.d.ts",
|
|
45
|
+
"default": "./dist/activation-entry.js"
|
|
42
46
|
}
|
|
43
47
|
},
|
|
44
48
|
"dependencies": {
|
|
45
|
-
"zod": "^
|
|
49
|
+
"zod": "^4.6.6",
|
|
46
50
|
"open-verification": "1.0.0"
|
|
47
51
|
},
|
|
48
52
|
"devDependencies": {
|
|
49
|
-
"fast-check": "^4.10.2"
|
|
50
|
-
"zod-to-json-schema": "^3.24.0"
|
|
53
|
+
"fast-check": "^4.10.2"
|
|
51
54
|
},
|
|
52
55
|
"license": "Apache-2.0",
|
|
53
56
|
"author": "Reticle contributors",
|