@reticlehq/vite-plugin 3.1.0 → 3.2.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/index.cjs +63 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -4213,7 +4213,42 @@ var ReticleEnv = {
|
|
|
4213
4213
|
/** Base URL for the harness's model API, for a proxy or a gateway. */
|
|
4214
4214
|
HARNESS_BASE_URL: "RETICLE_HARNESS_BASE_URL",
|
|
4215
4215
|
/** Hard ceiling on harness model turns in one drive. Bounds cost, not value. */
|
|
4216
|
-
HARNESS_MAX_STEPS: "RETICLE_HARNESS_MAX_STEPS"
|
|
4216
|
+
HARNESS_MAX_STEPS: "RETICLE_HARNESS_MAX_STEPS",
|
|
4217
|
+
/**
|
|
4218
|
+
* Which model backs the harness driver: `anthropic` (the default) or `jev`.
|
|
4219
|
+
*
|
|
4220
|
+
* Two drivers exist because the driver's job turns out not to need a text generator. It picks the
|
|
4221
|
+
* next action and says what it expects; the verdict is decided afterwards by the engine, with no
|
|
4222
|
+
* model anywhere near it. A System One model answers typed questions against a state, which is
|
|
4223
|
+
* exactly that job and none of the rest, so it can drive without being able to generate a
|
|
4224
|
+
* sentence. Unset keeps the existing behaviour for everybody who has not asked for this.
|
|
4225
|
+
*/
|
|
4226
|
+
HARNESS_DRIVER: "RETICLE_HARNESS_DRIVER",
|
|
4227
|
+
/**
|
|
4228
|
+
* A direct Jev key, for this repo's own benchmarks and for anyone holding a TypeSafe account.
|
|
4229
|
+
*
|
|
4230
|
+
* Users are not expected to have one. The ordinary path is the key they already minted on the
|
|
4231
|
+
* platform (`RETICLE_API_KEY`), which reaches Jev through the proxy at `RETICLE_CLOUD_URL` —
|
|
4232
|
+
* this variable is the escape hatch that skips it, and it takes precedence when both are set so
|
|
4233
|
+
* that a developer debugging the upstream is never silently talking to the proxy instead.
|
|
4234
|
+
*/
|
|
4235
|
+
HARNESS_JEV_KEY: "JEV_API_KEY",
|
|
4236
|
+
/** Base URL for the Jev API, for a proxy or a gateway. Defaults to TypeSafe's own endpoint. */
|
|
4237
|
+
HARNESS_JEV_URL: "RETICLE_HARNESS_JEV_URL",
|
|
4238
|
+
/** A direct OpenAI key. As with Jev, the ordinary path is the platform key and its proxy. */
|
|
4239
|
+
HARNESS_OPENAI_KEY: "OPENAI_API_KEY",
|
|
4240
|
+
/** Model the OpenAI driver uses. Defaults to a small one — see `DEFAULT_OPENAI_MODEL`. */
|
|
4241
|
+
HARNESS_OPENAI_MODEL: "RETICLE_HARNESS_OPENAI_MODEL",
|
|
4242
|
+
/**
|
|
4243
|
+
* The API key minted on the platform, and the host it belongs to.
|
|
4244
|
+
*
|
|
4245
|
+
* Read through `apiKeyFrom()`, never directly — see the note on that function for why there are
|
|
4246
|
+
* two names for one key and why neither may be dropped.
|
|
4247
|
+
*/
|
|
4248
|
+
API_KEY: "RETICLE_API_KEY",
|
|
4249
|
+
/** The name this key had until 2026-09. Still honoured; see `apiKeyFrom()`. */
|
|
4250
|
+
CLOUD_KEY: "RETICLE_CLOUD_KEY",
|
|
4251
|
+
CLOUD_URL: "RETICLE_CLOUD_URL"
|
|
4217
4252
|
};
|
|
4218
4253
|
var TRANSPORT_LIMITS = {
|
|
4219
4254
|
MAX_MESSAGE_BYTES: 1024 * 1024,
|
|
@@ -4290,6 +4325,24 @@ var ReticleDir = {
|
|
|
4290
4325
|
IMPACT_FILE: "impact.json",
|
|
4291
4326
|
/** what changes were SUPPOSED to make true —.reticle/intent.json (git-checked, reviewed) */
|
|
4292
4327
|
INTENT_FILE: "intent.json",
|
|
4328
|
+
/**
|
|
4329
|
+
* The sharded form of the same ledger —.reticle/intent/ (git-checked, for the same reason).
|
|
4330
|
+
*
|
|
4331
|
+
* Named here rather than inline at the store that writes it, because the partition guard over
|
|
4332
|
+
* this object is what decides whether a name Reticle creates is committed or ignored. A directory
|
|
4333
|
+
* spelled as a free string somewhere else is one the guard cannot see, so nobody ever makes that
|
|
4334
|
+
* decision: `intent/` was written into users' repositories for that reason alone, neither
|
|
4335
|
+
* classified nor ignored.
|
|
4336
|
+
*/
|
|
4337
|
+
INTENT_SUBDIR: "intent",
|
|
4338
|
+
/**
|
|
4339
|
+
* what a drive types into a field, keyed by the field's label —.reticle/fill-values.json.
|
|
4340
|
+
*
|
|
4341
|
+
* Git-checked on purpose. A generated value is paid for once and then belongs to the project: the
|
|
4342
|
+
* next drive reuses it for free, a replay sends exactly what the recording sent, and a human who
|
|
4343
|
+
* dislikes one can edit the file rather than argue with a model.
|
|
4344
|
+
*/
|
|
4345
|
+
FILL_VALUES_FILE: "fill-values.json",
|
|
4293
4346
|
/** opt-in pixel baselines —.reticle/visual/<name>.png + <name>.diff.png. */
|
|
4294
4347
|
VISUAL_SUBDIR: "visual",
|
|
4295
4348
|
/** verification-run artifacts —.reticle/runs/<runId>.json (the OEM/CI-consumable verdict). */
|
|
@@ -4302,6 +4355,15 @@ var ReticleDir = {
|
|
|
4302
4355
|
JOURNAL_EVENTS_FILE: "events.jsonl",
|
|
4303
4356
|
/** append-only action ledger inside a session dir (one JournalAction per line). */
|
|
4304
4357
|
JOURNAL_ACTIONS_FILE: "actions.jsonl",
|
|
4358
|
+
/**
|
|
4359
|
+
* the event ledger's closure report — .reticle/sessions/<id>/events.closed.json.
|
|
4360
|
+
*
|
|
4361
|
+
* Written once, when the byte ceiling refuses a batch, and never removed. Its PRESENCE is what
|
|
4362
|
+
* makes the ceiling durable: a session id survives a reload, so the next connection reopens the
|
|
4363
|
+
* same ledger with an empty memory, and a bound that lives only in one object's field is a bound
|
|
4364
|
+
* per connection. Its CONTENTS are the loss report a time-windowed query cannot filter away.
|
|
4365
|
+
*/
|
|
4366
|
+
JOURNAL_EVENTS_CLOSED_FILE: "events.closed.json",
|
|
4305
4367
|
/** learned expected-envelopes per route, accumulated across runs (the deviation-report baseline). */
|
|
4306
4368
|
ENVELOPES_FILE: "envelopes.json",
|
|
4307
4369
|
/** learned ambient (action-less churn) region map — excluded from settle/summaries/envelopes. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reticlehq/vite-plugin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Vite plugin for Reticle: dev-only source-map stamping plus auto-injected reticle.connect(). apply:'serve' guarantees it never ships to production.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babel/core": "^7.26.0",
|
|
44
|
-
"@reticlehq/babel-plugin": "3.
|
|
45
|
-
"@reticlehq/core": "3.
|
|
44
|
+
"@reticlehq/babel-plugin": "3.2.0",
|
|
45
|
+
"@reticlehq/core": "3.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/babel__core": "^7.20.5",
|
|
49
49
|
"esbuild": "^0.28.2",
|
|
50
50
|
"svelte": "^5.56.10",
|
|
51
51
|
"vite": "^8",
|
|
52
|
-
"@reticlehq/react": "3.
|
|
52
|
+
"@reticlehq/react": "3.2.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"vite": ">=4"
|