@inerrata-corporation/errata 2.0.22-dev.4411 → 2.0.22-dev.4430
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/errata.mjs
CHANGED
|
@@ -29943,31 +29943,9 @@ var init_config = __esm({
|
|
|
29943
29943
|
});
|
|
29944
29944
|
|
|
29945
29945
|
// src/cloud-endpoint-policy.ts
|
|
29946
|
-
function warnDirectV1OverrideOnce() {
|
|
29947
|
-
if (warnedDirectV1Override) return;
|
|
29948
|
-
warnedDirectV1Override = true;
|
|
29949
|
-
console.error(
|
|
29950
|
-
[
|
|
29951
|
-
"",
|
|
29952
|
-
"!!! DIRECT V1 OVERRIDE ACTIVE !!!",
|
|
29953
|
-
`${DIRECT_V1_OVERRIDE_ENV} + ${DIRECT_V1_ACK_ENV} are set: this daemon is talking`,
|
|
29954
|
-
"straight to the legacy v1 data plane, BYPASSING the Console Gateway \u2014",
|
|
29955
|
-
"no metering, no signed context enforcement, no write-target binding.",
|
|
29956
|
-
"Staff testing only. This escape hatch is removed at v1 EOL.",
|
|
29957
|
-
""
|
|
29958
|
-
].join("\n")
|
|
29959
|
-
);
|
|
29960
|
-
}
|
|
29961
|
-
function isDirectV1OverrideRequested() {
|
|
29962
|
-
const raw2 = process.env[DIRECT_V1_OVERRIDE_ENV]?.trim().toLowerCase();
|
|
29963
|
-
return raw2 === "1" || raw2 === "true" || raw2 === "yes" || raw2 === "on";
|
|
29964
|
-
}
|
|
29965
29946
|
function normalizeCloudUrl(url2) {
|
|
29966
29947
|
return url2.replace(/\/+$/, "");
|
|
29967
29948
|
}
|
|
29968
|
-
function isDirectV1OverrideEnabled() {
|
|
29969
|
-
return isDirectV1OverrideRequested() && process.env[DIRECT_V1_ACK_ENV]?.trim() === DIRECT_V1_ACK_VALUE;
|
|
29970
|
-
}
|
|
29971
29949
|
function isLocalCloudUrl(url2) {
|
|
29972
29950
|
try {
|
|
29973
29951
|
const host = new URL(url2).hostname.toLowerCase();
|
|
@@ -29997,21 +29975,12 @@ function evaluateCloudEndpoint(url2, inspection) {
|
|
|
29997
29975
|
if (looksLikeGatewayCloudUrl(url2)) {
|
|
29998
29976
|
return { allowed: true, label: "gateway-configured" };
|
|
29999
29977
|
}
|
|
30000
|
-
if (isDirectV1OverrideEnabled()) {
|
|
30001
|
-
warnDirectV1OverrideOnce();
|
|
30002
|
-
return {
|
|
30003
|
-
allowed: true,
|
|
30004
|
-
label: "legacy-direct (override)",
|
|
30005
|
-
reason: `${DIRECT_V1_OVERRIDE_ENV} acknowledged via ${DIRECT_V1_ACK_ENV}`
|
|
30006
|
-
};
|
|
30007
|
-
}
|
|
30008
29978
|
const service = inspection?.service ? ` (${inspection.service})` : "";
|
|
30009
|
-
const unacked = isDirectV1OverrideRequested() ? ` ${DIRECT_V1_OVERRIDE_ENV} is set but unacknowledged \u2014 staff testing additionally requires ${DIRECT_V1_ACK_ENV}=${DIRECT_V1_ACK_VALUE}.` : "";
|
|
30010
29979
|
return {
|
|
30011
29980
|
allowed: false,
|
|
30012
29981
|
label: "legacy-direct blocked",
|
|
30013
29982
|
reason: `non-local cloud endpoint is not the Console Gateway${service}`,
|
|
30014
|
-
guidance:
|
|
29983
|
+
guidance: "Point ERRATA_CLOUD_URL at the Console Gateway."
|
|
30015
29984
|
};
|
|
30016
29985
|
}
|
|
30017
29986
|
function formatCloudEndpointBlock(url2, decision) {
|
|
@@ -30153,16 +30122,12 @@ async function fetchHealthJson(fetchFn, url2, timeoutMs) {
|
|
|
30153
30122
|
clearTimeout(tid);
|
|
30154
30123
|
}
|
|
30155
30124
|
}
|
|
30156
|
-
var
|
|
30125
|
+
var GATEWAY_SERVICE, PROBE_TIMEOUT_MS, CloudEndpointPolicyError, BLOCKED_RECHECK_MS;
|
|
30157
30126
|
var init_cloud_endpoint_policy = __esm({
|
|
30158
30127
|
"src/cloud-endpoint-policy.ts"() {
|
|
30159
30128
|
"use strict";
|
|
30160
|
-
DIRECT_V1_OVERRIDE_ENV = "ERRATA_ALLOW_DIRECT_V1_CLOUD";
|
|
30161
|
-
DIRECT_V1_ACK_ENV = "ERRATA_DIRECT_V1_ACK";
|
|
30162
|
-
DIRECT_V1_ACK_VALUE = "I_ACCEPT_UNMETERED_DIRECT_V1";
|
|
30163
30129
|
GATEWAY_SERVICE = "console-gateway";
|
|
30164
30130
|
PROBE_TIMEOUT_MS = 2e3;
|
|
30165
|
-
warnedDirectV1Override = false;
|
|
30166
30131
|
CloudEndpointPolicyError = class extends Error {
|
|
30167
30132
|
decision;
|
|
30168
30133
|
constructor(message2, decision) {
|
|
@@ -86374,7 +86339,7 @@ function createWatchBreaker(deps) {
|
|
|
86374
86339
|
}
|
|
86375
86340
|
|
|
86376
86341
|
// src/engine.ts
|
|
86377
|
-
var DAEMON_VERSION = true ? "2.0.22-dev.
|
|
86342
|
+
var DAEMON_VERSION = true ? "2.0.22-dev.4430" : "2.0.0-alpha.0";
|
|
86378
86343
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
86379
86344
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
86380
86345
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -98445,8 +98410,6 @@ Commands:
|
|
|
98445
98410
|
|
|
98446
98411
|
Environment:
|
|
98447
98412
|
ERRATA_CLOUD_URL Cloud base URL (default ${DEFAULT_CLOUD_URL})
|
|
98448
|
-
ERRATA_ALLOW_DIRECT_V1_CLOUD=1 Staff-only: request direct legacy v1 (bypasses the gateway;
|
|
98449
|
-
also requires ERRATA_DIRECT_V1_ACK=I_ACCEPT_UNMETERED_DIRECT_V1)
|
|
98450
98413
|
${OAUTH_DEFAULT_ENV}=0 Test/dev escape hatch: plain \`errata login\` uses legacy device-code
|
|
98451
98414
|
`);
|
|
98452
98415
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
c8d7a2f0df9c257eb8438735d11bb97cf7ac5f2a47de52a555203b42778a3b73 .codex-plugin/plugin.json
|
|
2
2
|
a7bebae9fb01c838d6c75fc784129e28be571233fa66ff5ee8039b574f35ccf7 assets/icon.png
|
|
3
3
|
fc38b64e4df1e0b72c35764bef6c4c05430d97c9009ad0ecc8a9e75b4deab232 configure-local.mjs
|
|
4
4
|
73dc6028b3b070257c7c31f252d11e55a9e096f4aed0f187f10cb21716e1e6d7 dist/client.js
|