@inerrata-corporation/errata 2.0.17-dev.3483 → 2.0.17-dev.3492
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 +14 -2
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -15758,7 +15758,7 @@ function checkHistoryCandidate(atom, blocks) {
|
|
|
15758
15758
|
if (atom.anchorTokens.some((token) => !blocks.some((b) => b.kind === "diff" && b.pathToken === token)) || atom.label !== "Claim" && atom.anchorTokens.length === 0) return { reason: "invalid-anchor", evidence: [] };
|
|
15759
15759
|
return { reason: "accepted", evidence: refs };
|
|
15760
15760
|
}
|
|
15761
|
-
var HISTORY_EVIDENCE_SCHEMA_VERSION, HistoryAnchorSourceSchema, HistorySymbolAnchorSchema, HistoryEvidenceSelectionSchema, HistoryCandidateSchema, HistoryRelationCandidateSchema, HistoryCandidateBatchSchema, HistoryEvidenceRefSchema;
|
|
15761
|
+
var HISTORY_EVIDENCE_SCHEMA_VERSION, HistoryAnchorSourceSchema, HistorySymbolAnchorSchema, HistoryEvidenceSelectionSchema, HistoryCandidateSchema, HISTORY_MAX_TEXT_CHARS, HistoryRelationCandidateSchema, HistoryCandidateBatchSchema, HistoryEvidenceRefSchema;
|
|
15762
15762
|
var init_history_evidence = __esm({
|
|
15763
15763
|
"../../packages/shared/src/history-evidence.ts"() {
|
|
15764
15764
|
"use strict";
|
|
@@ -15800,6 +15800,7 @@ var init_history_evidence = __esm({
|
|
|
15800
15800
|
evidence: external_exports.array(HistoryEvidenceSelectionSchema).min(1).max(12),
|
|
15801
15801
|
anchorTokens: external_exports.array(external_exports.string().regex(/^p[0-9]+$/)).max(8)
|
|
15802
15802
|
});
|
|
15803
|
+
HISTORY_MAX_TEXT_CHARS = 2e4;
|
|
15803
15804
|
HistoryRelationCandidateSchema = external_exports.strictObject({
|
|
15804
15805
|
tempId: external_exports.string().regex(/^r[0-9]{1,3}$/),
|
|
15805
15806
|
fromTempId: external_exports.string().regex(/^a[0-9]{1,3}$/),
|
|
@@ -17348,6 +17349,7 @@ __export(src_exports, {
|
|
|
17348
17349
|
GRAPH_EVENT_VOCABULARIES: () => GRAPH_EVENT_VOCABULARIES,
|
|
17349
17350
|
HISTORY_EVIDENCE_SCHEMA_VERSION: () => HISTORY_EVIDENCE_SCHEMA_VERSION,
|
|
17350
17351
|
HISTORY_MAX_SPINE_DEPS: () => HISTORY_MAX_SPINE_DEPS,
|
|
17352
|
+
HISTORY_MAX_TEXT_CHARS: () => HISTORY_MAX_TEXT_CHARS,
|
|
17351
17353
|
HISTORY_SCRUBBER_VERSION: () => HISTORY_SCRUBBER_VERSION,
|
|
17352
17354
|
HistoryAnchorSourceSchema: () => HistoryAnchorSourceSchema,
|
|
17353
17355
|
HistoryCandidateBatchSchema: () => HistoryCandidateBatchSchema,
|
|
@@ -80744,6 +80746,10 @@ function trimToTokens(text, maxTokens, marker = TRUNCATION_MARKER) {
|
|
|
80744
80746
|
if (nl > keep * 0.8) cut = cut.slice(0, nl);
|
|
80745
80747
|
return { text: cut.replace(/\s+$/, "") + marker, truncated: true };
|
|
80746
80748
|
}
|
|
80749
|
+
function capWireText(text) {
|
|
80750
|
+
if (text.length <= HISTORY_MAX_TEXT_CHARS) return { text, truncated: false };
|
|
80751
|
+
return trimToTokens(text, Math.floor(HISTORY_MAX_TEXT_CHARS / CHARS_PER_TOKEN));
|
|
80752
|
+
}
|
|
80747
80753
|
var DENY_PATH_PREFIXES = ["keys/", "secrets/", "deploy/web-config", "deploy/ionos-upload", "hosting/", ".env"];
|
|
80748
80754
|
var DENY_PATH_PARTS = ["/.env", "secrets", "credential"];
|
|
80749
80755
|
var DENY_PATH_SUFFIXES = [".pem", ".key", ".p12", ".pfx", ".jks", ".keystore", ".ppk", "/id_rsa", "/id_dsa", "/id_ecdsa", "/id_ed25519", ".npmrc", ".netrc", ".htpasswd", ".pypirc"];
|
|
@@ -81020,6 +81026,12 @@ async function buildUnitBundle(root, unit, opts = {}) {
|
|
|
81020
81026
|
diff = t.text;
|
|
81021
81027
|
truncated = truncated || t.truncated;
|
|
81022
81028
|
}
|
|
81029
|
+
{
|
|
81030
|
+
const n2 = capWireText(narrative2), f = capWireText(fileList);
|
|
81031
|
+
narrative2 = n2.text;
|
|
81032
|
+
fileList = f.text;
|
|
81033
|
+
truncated = truncated || n2.truncated || f.truncated;
|
|
81034
|
+
}
|
|
81023
81035
|
return {
|
|
81024
81036
|
sha: unit.sha,
|
|
81025
81037
|
narrative: narrative2,
|
|
@@ -82234,7 +82246,7 @@ function createWatchBreaker(deps) {
|
|
|
82234
82246
|
}
|
|
82235
82247
|
|
|
82236
82248
|
// src/engine.ts
|
|
82237
|
-
var DAEMON_VERSION = true ? "2.0.17-dev.
|
|
82249
|
+
var DAEMON_VERSION = true ? "2.0.17-dev.3492" : "2.0.0-alpha.0";
|
|
82238
82250
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
82239
82251
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
82240
82252
|
var GIT_OP_MUTE_MS = 4e3;
|