@descryy/core 0.1.1 → 0.3.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/budget/index.d.ts +5 -0
- package/dist/budget/index.d.ts.map +1 -0
- package/dist/budget/index.js +3 -0
- package/dist/budget/index.js.map +1 -0
- package/dist/budget/reply.d.ts +67 -0
- package/dist/budget/reply.d.ts.map +1 -0
- package/dist/budget/reply.js +76 -0
- package/dist/budget/reply.js.map +1 -0
- package/dist/budget/size.d.ts +43 -0
- package/dist/budget/size.d.ts.map +1 -0
- package/dist/budget/size.js +52 -0
- package/dist/budget/size.js.map +1 -0
- package/dist/contracts/engine.d.ts.map +1 -1
- package/dist/contracts/engine.js +27 -10
- package/dist/contracts/engine.js.map +1 -1
- package/dist/contracts/orphans.d.ts +17 -0
- package/dist/contracts/orphans.d.ts.map +1 -1
- package/dist/contracts/orphans.js +19 -2
- package/dist/contracts/orphans.js.map +1 -1
- package/dist/graph/cross-language.d.ts +0 -7
- package/dist/graph/cross-language.d.ts.map +1 -1
- package/dist/graph/cross-language.js +36 -2
- package/dist/graph/cross-language.js.map +1 -1
- package/dist/graph/index.d.ts +2 -0
- package/dist/graph/index.d.ts.map +1 -1
- package/dist/graph/index.js +1 -0
- package/dist/graph/index.js.map +1 -1
- package/dist/graph/observed-tests.d.ts +118 -0
- package/dist/graph/observed-tests.d.ts.map +1 -0
- package/dist/graph/observed-tests.js +123 -0
- package/dist/graph/observed-tests.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/multipr/mechanical.d.ts.map +1 -1
- package/dist/multipr/mechanical.js +1 -0
- package/dist/multipr/mechanical.js.map +1 -1
- package/dist/query/confirmed-facts.d.ts +21 -5
- package/dist/query/confirmed-facts.d.ts.map +1 -1
- package/dist/query/confirmed-facts.js +30 -7
- package/dist/query/confirmed-facts.js.map +1 -1
- package/dist/query/index.d.ts +7 -1
- package/dist/query/index.d.ts.map +1 -1
- package/dist/query/index.js +4 -1
- package/dist/query/index.js.map +1 -1
- package/dist/query/memory.d.ts.map +1 -1
- package/dist/query/memory.js +4 -0
- package/dist/query/memory.js.map +1 -1
- package/dist/query/prominence.d.ts +73 -0
- package/dist/query/prominence.d.ts.map +1 -0
- package/dist/query/prominence.js +79 -0
- package/dist/query/prominence.js.map +1 -0
- package/dist/query/provider.d.ts +7 -0
- package/dist/query/provider.d.ts.map +1 -1
- package/dist/query/provider.js.map +1 -1
- package/dist/query/queries.d.ts.map +1 -1
- package/dist/query/queries.js +39 -15
- package/dist/query/queries.js.map +1 -1
- package/dist/query/resolution-floor.d.ts +36 -0
- package/dist/query/resolution-floor.d.ts.map +1 -0
- package/dist/query/resolution-floor.js +39 -0
- package/dist/query/resolution-floor.js.map +1 -0
- package/dist/query/sqlite.d.ts.map +1 -1
- package/dist/query/sqlite.js +1 -0
- package/dist/query/sqlite.js.map +1 -1
- package/dist/query/test-coverage.d.ts +65 -0
- package/dist/query/test-coverage.d.ts.map +1 -0
- package/dist/query/test-coverage.js +95 -0
- package/dist/query/test-coverage.js.map +1 -0
- package/dist/query/traverse.d.ts +60 -2
- package/dist/query/traverse.d.ts.map +1 -1
- package/dist/query/traverse.js +0 -0
- package/dist/query/traverse.js.map +1 -1
- package/dist/scoping/traverse.d.ts.map +1 -1
- package/dist/scoping/traverse.js +18 -4
- package/dist/scoping/traverse.js.map +1 -1
- package/dist/sources/confirmed/incidents.d.ts +47 -0
- package/dist/sources/confirmed/incidents.d.ts.map +1 -0
- package/dist/sources/confirmed/incidents.js +173 -0
- package/dist/sources/confirmed/incidents.js.map +1 -0
- package/dist/sources/confirmed/index.d.ts +3 -0
- package/dist/sources/confirmed/index.d.ts.map +1 -0
- package/dist/sources/confirmed/index.js +2 -0
- package/dist/sources/confirmed/index.js.map +1 -0
- package/dist/sources/git/diff.d.ts +26 -0
- package/dist/sources/git/diff.d.ts.map +1 -1
- package/dist/sources/git/diff.js +60 -1
- package/dist/sources/git/diff.js.map +1 -1
- package/dist/sources/git/incidents.d.ts +109 -0
- package/dist/sources/git/incidents.d.ts.map +1 -0
- package/dist/sources/git/incidents.js +187 -0
- package/dist/sources/git/incidents.js.map +1 -0
- package/dist/sources/git/index.d.ts +3 -1
- package/dist/sources/git/index.d.ts.map +1 -1
- package/dist/sources/git/index.js +2 -1
- package/dist/sources/git/index.js.map +1 -1
- package/dist/sources/git/source.d.ts.map +1 -1
- package/dist/sources/git/source.js +0 -0
- package/dist/sources/git/source.js.map +1 -1
- package/dist/store/schema.d.ts +5 -4
- package/dist/store/schema.d.ts.map +1 -1
- package/dist/store/schema.js +42 -2
- package/dist/store/schema.js.map +1 -1
- package/package.json +2 -2
package/dist/store/schema.js
CHANGED
|
@@ -77,11 +77,13 @@ export const DERIVED_TABLES = [
|
|
|
77
77
|
];
|
|
78
78
|
/**
|
|
79
79
|
* Cannot be regenerated: a run that witnessed an edge fire is gone once the
|
|
80
|
-
* process exits,
|
|
81
|
-
* at all. These survive every
|
|
80
|
+
* process exits, a run that executed a test is gone the same way, and a human's
|
|
81
|
+
* correction of a wrong edge is not in the source at all. These survive every
|
|
82
|
+
* rebuild.
|
|
82
83
|
*/
|
|
83
84
|
export const EARNED_TABLES = [
|
|
84
85
|
"observed_edges",
|
|
86
|
+
"observed_tests",
|
|
85
87
|
"edge_corrections",
|
|
86
88
|
"incident_links",
|
|
87
89
|
"pr_scopes",
|
|
@@ -264,6 +266,44 @@ CREATE TABLE IF NOT EXISTS observed_edges (
|
|
|
264
266
|
PRIMARY KEY (edge_id, run_id)
|
|
265
267
|
) STRICT;
|
|
266
268
|
|
|
269
|
+
-- Which tests actually ran, and what happened. The coverage axis — AI layer §20's
|
|
270
|
+
-- "Verification status" — a different question from confidence, needing a
|
|
271
|
+
-- different carrier.
|
|
272
|
+
--
|
|
273
|
+
-- Earned for the same reason as observed_edges, one step over: nothing in the
|
|
274
|
+
-- source says which tests executed, so a rebuild that dropped this would turn
|
|
275
|
+
-- "what I actually verified" silently back into "what might be affected".
|
|
276
|
+
--
|
|
277
|
+
-- Not an edge, deliberately. A test-runner's evidence carries no stack, so an
|
|
278
|
+
-- observed test names exactly one node — its own TEST_CASE — and pairing it with
|
|
279
|
+
-- a function it merely co-occurred with would mint an edge from temporal
|
|
280
|
+
-- coincidence. That is why this is a table and not a promotion of a TESTS edge
|
|
281
|
+
-- to R4; see DEC-NEXT-test-run-coverage-has-no-carrier.md.
|
|
282
|
+
--
|
|
283
|
+
-- (node_id, run_id) is the identity: two runs of one test are two facts, while a
|
|
284
|
+
-- retry inside one run is the same fact re-observed, so the latter updates in
|
|
285
|
+
-- place. Within-run retries are therefore not distinguishable here — a disclosed
|
|
286
|
+
-- limit, not an oversight; this table is a coverage carrier, not a flake detector.
|
|
287
|
+
CREATE TABLE IF NOT EXISTS observed_tests (
|
|
288
|
+
node_id TEXT NOT NULL,
|
|
289
|
+
run_id TEXT NOT NULL,
|
|
290
|
+
qualified_name TEXT NOT NULL,
|
|
291
|
+
outcome TEXT NOT NULL, -- 'passed' | 'failed' | 'skipped'
|
|
292
|
+
-- REAL, not INTEGER, and this was an INTEGER until a real run proved it could
|
|
293
|
+
-- not be. Runners report fractional milliseconds — node:test emits 2.316958 —
|
|
294
|
+
-- and a STRICT table refuses that value outright, so every write failed on
|
|
295
|
+
-- first contact with an actual suite while the unit tests, which all passed
|
|
296
|
+
-- integer literals, stayed green. Rounding was the other option and is worse:
|
|
297
|
+
-- sub-millisecond tests are ordinary here, and 0.36 rounded to 0 reads as
|
|
298
|
+
-- "instant", the same falsehood the null-rather-than-zero rule below refuses.
|
|
299
|
+
duration_ms REAL,
|
|
300
|
+
commit_sha TEXT NOT NULL,
|
|
301
|
+
observed_at INTEGER NOT NULL,
|
|
302
|
+
PRIMARY KEY (node_id, run_id)
|
|
303
|
+
) STRICT;
|
|
304
|
+
|
|
305
|
+
CREATE INDEX IF NOT EXISTS idx_observed_tests_run ON observed_tests(run_id);
|
|
306
|
+
|
|
267
307
|
-- §11B.5. A human said an edge was wrong, or runtime contradicted it. Feeding
|
|
268
308
|
-- this back is how precision improves; losing it repeats the same false claim.
|
|
269
309
|
CREATE TABLE IF NOT EXISTS edge_corrections (
|
package/dist/store/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/store/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,CAAC,4CAA4C;AAEhF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO;IACP,OAAO;IACP,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,cAAc;CACN,CAAC;AAEX
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/store/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,CAAC,4CAA4C;AAEhF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO;IACP,OAAO;IACP,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,cAAc;CACN,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,gBAAgB;IAChB,gBAAgB;IAChB,kBAAkB;IAClB,gBAAgB;IAChB,WAAW;CACH,CAAC;AAKX;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY;IACZ,iBAAiB;IACjB,OAAO;IACP,OAAO;IACP,aAAa;IACb,cAAc;CAC4B,CAAC;AAE7C,MAAM,CAAC,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+PzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descryy/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Descry graph engine: storage, graph builder, query layer, traversal, diff scoping, git source, MCP server.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"build": "tsc -b"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@descryy/ir": "0.
|
|
27
|
+
"@descryy/ir": "0.3.0"
|
|
28
28
|
}
|
|
29
29
|
}
|