@inerrata-corporation/errata 2.0.2 → 2.0.3-dev.1764
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 +9 -5
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -25118,6 +25118,9 @@ var init_paths = __esm({
|
|
|
25118
25118
|
// src/config.ts
|
|
25119
25119
|
import { existsSync as existsSync6, readFileSync as readFileSync4, writeFileSync as writeFileSync5 } from "node:fs";
|
|
25120
25120
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25121
|
+
function mcpUrlFor(cloudUrl) {
|
|
25122
|
+
return `${cloudUrl.replace(/\/+$/, "")}/mcp`;
|
|
25123
|
+
}
|
|
25121
25124
|
function defaultConfig() {
|
|
25122
25125
|
return {
|
|
25123
25126
|
version: 1,
|
|
@@ -25137,7 +25140,7 @@ function defaultConfig() {
|
|
|
25137
25140
|
opsNotices: false,
|
|
25138
25141
|
onboardedAt: null,
|
|
25139
25142
|
machineId: null,
|
|
25140
|
-
updateChannel:
|
|
25143
|
+
updateChannel: DEFAULT_UPDATE_CHANNEL,
|
|
25141
25144
|
activeAgent: null,
|
|
25142
25145
|
installationProfiles: {},
|
|
25143
25146
|
activeInstallationProfile: null
|
|
@@ -25271,13 +25274,14 @@ function clearActiveAgent(cfg = loadConfig()) {
|
|
|
25271
25274
|
saveConfig(next);
|
|
25272
25275
|
return next;
|
|
25273
25276
|
}
|
|
25274
|
-
var LEGACY_CLOUD_URL, DEFAULT_CLOUD_URL;
|
|
25277
|
+
var LEGACY_CLOUD_URL, DEFAULT_CLOUD_URL, DEFAULT_UPDATE_CHANNEL;
|
|
25275
25278
|
var init_config = __esm({
|
|
25276
25279
|
"src/config.ts"() {
|
|
25277
25280
|
"use strict";
|
|
25278
25281
|
init_paths();
|
|
25279
25282
|
LEGACY_CLOUD_URL = "https://inerrata-gateway.onrender.com";
|
|
25280
|
-
DEFAULT_CLOUD_URL = true ? "https://inerrata.dev" : DEV_CLOUD_URL;
|
|
25283
|
+
DEFAULT_CLOUD_URL = true ? "https://dev.inerrata.dev" : DEV_CLOUD_URL;
|
|
25284
|
+
DEFAULT_UPDATE_CHANNEL = false ? "latest" : "dev";
|
|
25281
25285
|
}
|
|
25282
25286
|
});
|
|
25283
25287
|
|
|
@@ -57746,7 +57750,7 @@ function createWatchBreaker(deps) {
|
|
|
57746
57750
|
}
|
|
57747
57751
|
|
|
57748
57752
|
// src/engine.ts
|
|
57749
|
-
var DAEMON_VERSION = true ? "2.0.
|
|
57753
|
+
var DAEMON_VERSION = true ? "2.0.3-dev.1764" : "2.0.0-alpha.0";
|
|
57750
57754
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
57751
57755
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
57752
57756
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -65896,7 +65900,7 @@ async function installOpencodePlugin(port) {
|
|
|
65896
65900
|
console.log(` (override: ERRATA_OPENCODE_SESSIONS_DIRS) and the daemon parses THAT \u2014`);
|
|
65897
65901
|
console.log(` role-typed, attested. Works for headless \`opencode run\` too.`);
|
|
65898
65902
|
console.log(` Cloud tools (search/contribute) are the MCP entry in opencode.json:`);
|
|
65899
|
-
console.log(` { "mcp": { "inerrata": { "type": "remote", "url": "
|
|
65903
|
+
console.log(` { "mcp": { "inerrata": { "type": "remote", "url": "${mcpUrlFor(loadConfig().cloudUrl)}", "headers": { "Authorization": "Bearer <errk_\u2026>" } } } }`);
|
|
65900
65904
|
}
|
|
65901
65905
|
var ERRATA_TAG = "# errata-managed";
|
|
65902
65906
|
function errataMcpInvocation() {
|