@inerrata-corporation/errata 2.0.0-dev.73 → 2.0.0-dev.74
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/consolidate-worker.mjs +21 -0
- package/errata.mjs +31 -1
- package/package.json +1 -1
- package/pass-worker.mjs +21 -0
package/consolidate-worker.mjs
CHANGED
|
@@ -15219,6 +15219,18 @@ var init_wire = __esm({
|
|
|
15219
15219
|
* self-refute from an independent one. Optional + additive — absent is
|
|
15220
15220
|
* exactly today's wire (and leaves the gate fail-open for that node). */
|
|
15221
15221
|
originProject: external_exports.string().min(1).max(120).optional(),
|
|
15222
|
+
/** PJ-write · PLAN_PROJECT_STORE §5/§5a — the console project uuid this batch
|
|
15223
|
+
* is contributed TO. Distinct from `originProject` above, which is the salted
|
|
15224
|
+
* `wp_…` per-checkout workspace id (a refute-gate origin key, not an
|
|
15225
|
+
* audience): this one names a stratum and IS an audience assertion.
|
|
15226
|
+
*
|
|
15227
|
+
* Asserted per-request because it cannot ride the 15-min gateway JWT — one
|
|
15228
|
+
* daemon credential serves N projects. The door verifies it server-side
|
|
15229
|
+
* against the projected link record (owning org must equal the caller's
|
|
15230
|
+
* identity-derived org) and REJECTS the batch if it can't, so naming a
|
|
15231
|
+
* project you don't belong to buys nothing. Optional + additive — absent is
|
|
15232
|
+
* exactly today's wire, routing to org/team/public as before. */
|
|
15233
|
+
projectId: external_exports.string().min(1).max(120).optional(),
|
|
15222
15234
|
nodes: external_exports.array(CastaliaIngestNodeSchema).max(1e3),
|
|
15223
15235
|
edges: external_exports.array(CastaliaIngestEdgeSchema).max(5e3),
|
|
15224
15236
|
/** Optional symbol→intent-summary sidecar (PP-symbol-intent). Only symbols
|
|
@@ -15235,6 +15247,14 @@ var init_repo_locator = __esm({
|
|
|
15235
15247
|
}
|
|
15236
15248
|
});
|
|
15237
15249
|
|
|
15250
|
+
// ../../packages/shared/src/project-symbol.ts
|
|
15251
|
+
var init_project_symbol = __esm({
|
|
15252
|
+
"../../packages/shared/src/project-symbol.ts"() {
|
|
15253
|
+
"use strict";
|
|
15254
|
+
init_hash();
|
|
15255
|
+
}
|
|
15256
|
+
});
|
|
15257
|
+
|
|
15238
15258
|
// ../../packages/shared/src/nlp/canonicalize.ts
|
|
15239
15259
|
var init_canonicalize = __esm({
|
|
15240
15260
|
"../../packages/shared/src/nlp/canonicalize.ts"() {
|
|
@@ -15270,6 +15290,7 @@ var init_src = __esm({
|
|
|
15270
15290
|
init_edge_rules();
|
|
15271
15291
|
init_symbol_intent();
|
|
15272
15292
|
init_repo_locator();
|
|
15293
|
+
init_project_symbol();
|
|
15273
15294
|
init_hash();
|
|
15274
15295
|
init_error_signature();
|
|
15275
15296
|
init_canonicalize();
|
package/errata.mjs
CHANGED
|
@@ -15539,6 +15539,18 @@ var init_wire = __esm({
|
|
|
15539
15539
|
* self-refute from an independent one. Optional + additive — absent is
|
|
15540
15540
|
* exactly today's wire (and leaves the gate fail-open for that node). */
|
|
15541
15541
|
originProject: external_exports.string().min(1).max(120).optional(),
|
|
15542
|
+
/** PJ-write · PLAN_PROJECT_STORE §5/§5a — the console project uuid this batch
|
|
15543
|
+
* is contributed TO. Distinct from `originProject` above, which is the salted
|
|
15544
|
+
* `wp_…` per-checkout workspace id (a refute-gate origin key, not an
|
|
15545
|
+
* audience): this one names a stratum and IS an audience assertion.
|
|
15546
|
+
*
|
|
15547
|
+
* Asserted per-request because it cannot ride the 15-min gateway JWT — one
|
|
15548
|
+
* daemon credential serves N projects. The door verifies it server-side
|
|
15549
|
+
* against the projected link record (owning org must equal the caller's
|
|
15550
|
+
* identity-derived org) and REJECTS the batch if it can't, so naming a
|
|
15551
|
+
* project you don't belong to buys nothing. Optional + additive — absent is
|
|
15552
|
+
* exactly today's wire, routing to org/team/public as before. */
|
|
15553
|
+
projectId: external_exports.string().min(1).max(120).optional(),
|
|
15542
15554
|
nodes: external_exports.array(CastaliaIngestNodeSchema).max(1e3),
|
|
15543
15555
|
edges: external_exports.array(CastaliaIngestEdgeSchema).max(5e3),
|
|
15544
15556
|
/** Optional symbol→intent-summary sidecar (PP-symbol-intent). Only symbols
|
|
@@ -15584,6 +15596,21 @@ var init_repo_locator = __esm({
|
|
|
15584
15596
|
}
|
|
15585
15597
|
});
|
|
15586
15598
|
|
|
15599
|
+
// ../../packages/shared/src/project-symbol.ts
|
|
15600
|
+
function normalizeSymbolPath(relPath) {
|
|
15601
|
+
return relPath.replace(/\\/g, "/").replace(/\/+/g, "/").replace(/^\.\//, "").replace(/^\//, "");
|
|
15602
|
+
}
|
|
15603
|
+
function projectSymbolId(projectId, relPath, qname, kind) {
|
|
15604
|
+
const path2 = normalizeSymbolPath(relPath);
|
|
15605
|
+
return `sym_${sha256(`${projectId}:${path2}:${qname}:${kind}`).slice(0, 24)}`;
|
|
15606
|
+
}
|
|
15607
|
+
var init_project_symbol = __esm({
|
|
15608
|
+
"../../packages/shared/src/project-symbol.ts"() {
|
|
15609
|
+
"use strict";
|
|
15610
|
+
init_hash();
|
|
15611
|
+
}
|
|
15612
|
+
});
|
|
15613
|
+
|
|
15587
15614
|
// ../../packages/shared/src/nlp/canonicalize.ts
|
|
15588
15615
|
function canonicalize(value) {
|
|
15589
15616
|
return value.normalize("NFC").trim().toLowerCase().replace(/\s+/g, " ");
|
|
@@ -15697,11 +15724,13 @@ __export(src_exports, {
|
|
|
15697
15724
|
normalizeExtractionSource: () => normalizeExtractionSource,
|
|
15698
15725
|
normalizePredicate: () => normalizePredicate,
|
|
15699
15726
|
normalizeRepoLocator: () => normalizeRepoLocator,
|
|
15727
|
+
normalizeSymbolPath: () => normalizeSymbolPath,
|
|
15700
15728
|
packageCanonicalId: () => packageCanonicalId,
|
|
15701
15729
|
pagerankEdgeTypes: () => pagerankEdgeTypes,
|
|
15702
15730
|
parsePackageRef: () => parsePackageRef,
|
|
15703
15731
|
prefilterEntities: () => prefilterEntities,
|
|
15704
15732
|
problemIdFromError: () => problemIdFromError,
|
|
15733
|
+
projectSymbolId: () => projectSymbolId,
|
|
15705
15734
|
provenanceBand: () => provenanceBand,
|
|
15706
15735
|
resolveCanonical: () => resolveCanonical,
|
|
15707
15736
|
resolveCanonicalId: () => resolveCanonicalId,
|
|
@@ -15723,6 +15752,7 @@ var init_src = __esm({
|
|
|
15723
15752
|
init_edge_rules();
|
|
15724
15753
|
init_symbol_intent();
|
|
15725
15754
|
init_repo_locator();
|
|
15755
|
+
init_project_symbol();
|
|
15726
15756
|
init_hash();
|
|
15727
15757
|
init_error_signature();
|
|
15728
15758
|
init_canonicalize();
|
|
@@ -43204,7 +43234,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
|
|
|
43204
43234
|
}
|
|
43205
43235
|
|
|
43206
43236
|
// src/engine.ts
|
|
43207
|
-
var DAEMON_VERSION = true ? "2.0.0-dev.
|
|
43237
|
+
var DAEMON_VERSION = true ? "2.0.0-dev.74" : "2.0.0-alpha.0";
|
|
43208
43238
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
43209
43239
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
43210
43240
|
var GIT_OP_MUTE_MS = 4e3;
|
package/package.json
CHANGED
package/pass-worker.mjs
CHANGED
|
@@ -15074,6 +15074,18 @@ var init_wire = __esm({
|
|
|
15074
15074
|
* self-refute from an independent one. Optional + additive — absent is
|
|
15075
15075
|
* exactly today's wire (and leaves the gate fail-open for that node). */
|
|
15076
15076
|
originProject: external_exports.string().min(1).max(120).optional(),
|
|
15077
|
+
/** PJ-write · PLAN_PROJECT_STORE §5/§5a — the console project uuid this batch
|
|
15078
|
+
* is contributed TO. Distinct from `originProject` above, which is the salted
|
|
15079
|
+
* `wp_…` per-checkout workspace id (a refute-gate origin key, not an
|
|
15080
|
+
* audience): this one names a stratum and IS an audience assertion.
|
|
15081
|
+
*
|
|
15082
|
+
* Asserted per-request because it cannot ride the 15-min gateway JWT — one
|
|
15083
|
+
* daemon credential serves N projects. The door verifies it server-side
|
|
15084
|
+
* against the projected link record (owning org must equal the caller's
|
|
15085
|
+
* identity-derived org) and REJECTS the batch if it can't, so naming a
|
|
15086
|
+
* project you don't belong to buys nothing. Optional + additive — absent is
|
|
15087
|
+
* exactly today's wire, routing to org/team/public as before. */
|
|
15088
|
+
projectId: external_exports.string().min(1).max(120).optional(),
|
|
15077
15089
|
nodes: external_exports.array(CastaliaIngestNodeSchema).max(1e3),
|
|
15078
15090
|
edges: external_exports.array(CastaliaIngestEdgeSchema).max(5e3),
|
|
15079
15091
|
/** Optional symbol→intent-summary sidecar (PP-symbol-intent). Only symbols
|
|
@@ -15090,6 +15102,14 @@ var init_repo_locator = __esm({
|
|
|
15090
15102
|
}
|
|
15091
15103
|
});
|
|
15092
15104
|
|
|
15105
|
+
// ../../packages/shared/src/project-symbol.ts
|
|
15106
|
+
var init_project_symbol = __esm({
|
|
15107
|
+
"../../packages/shared/src/project-symbol.ts"() {
|
|
15108
|
+
"use strict";
|
|
15109
|
+
init_hash();
|
|
15110
|
+
}
|
|
15111
|
+
});
|
|
15112
|
+
|
|
15093
15113
|
// ../../packages/shared/src/nlp/canonicalize.ts
|
|
15094
15114
|
var init_canonicalize = __esm({
|
|
15095
15115
|
"../../packages/shared/src/nlp/canonicalize.ts"() {
|
|
@@ -15115,6 +15135,7 @@ var init_src = __esm({
|
|
|
15115
15135
|
init_edge_rules();
|
|
15116
15136
|
init_symbol_intent();
|
|
15117
15137
|
init_repo_locator();
|
|
15138
|
+
init_project_symbol();
|
|
15118
15139
|
init_hash();
|
|
15119
15140
|
init_error_signature();
|
|
15120
15141
|
init_canonicalize();
|