candor-ts 0.37.0 → 0.38.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/AGENTS.md +1 -1
- package/README.md +2 -2
- package/package.json +2 -2
- package/query.mjs +1 -1
- package/scan.mjs +1 -1
package/AGENTS.md
CHANGED
|
@@ -23,7 +23,7 @@ the TypeScript-specific production + query surface.
|
|
|
23
23
|
> **Already installed? Report the version and ask before upgrading — before you scan.** If this
|
|
24
24
|
> project already has candor (a `.candor/` report directory, or `candor-ts` reachable via `npx`/a
|
|
25
25
|
> global install), do this *first*: run `npx -y candor-ts --version` (offline) and **tell the user
|
|
26
|
-
> plainly which version they're on** — e.g. *"This project is on candor-ts `<version>` (spec 0.
|
|
26
|
+
> plainly which version they're on** — e.g. *"This project is on candor-ts `<version>` (spec 0.38)."*
|
|
27
27
|
> On a build too old for the flag, read `candor.version` / `candor.spec` from an existing
|
|
28
28
|
> `.candor/report*.json`, or `npm ls -g candor-ts`.
|
|
29
29
|
>
|
package/README.md
CHANGED
|
@@ -201,7 +201,7 @@ pure-vs-Unknown ruling (PART 16) — the engines must answer identically, on eve
|
|
|
201
201
|
| A call resolving to a *type* (function-typed field/param) → `Unknown`, never silent-pure | SPEC §4 |
|
|
202
202
|
| Unmatched external calls contribute nothing (curated-classifier caveat) | SEMANTICS §8 C1 |
|
|
203
203
|
| The literal surfaces `hosts`/`cmds`/`paths`/`tables`, literal-read only | SPEC §2 |
|
|
204
|
-
| `{ candor: { version, toolchain, spec: "0.
|
|
204
|
+
| `{ candor: { version, toolchain, spec: "0.38" }, functions }` envelope; pure fns omitted | SPEC §2/§2.1 |
|
|
205
205
|
| Call-graph sidecar with **every** analyzed function a key | SPEC §2.2 |
|
|
206
206
|
| The gate: AS-EFF-006 / 008 / 009, loud on an unreadable policy | SPEC §6.2 |
|
|
207
207
|
|
|
@@ -219,7 +219,7 @@ read the Rust source".
|
|
|
219
219
|
|
|
220
220
|
## Status
|
|
221
221
|
|
|
222
|
-
0.30.0, speaking candor-spec 0.
|
|
222
|
+
0.30.0, speaking candor-spec 0.38: the analysis core, the gate (`--policy` / `--gate-json` /
|
|
223
223
|
`.candor/config`), the full §3.1 query surface (including `containment`, `blindspots`, the
|
|
224
224
|
`--include-unknown` dispatch frontier, and ⟨0.24⟩ `gate --report` — the gate applied to an EXISTING
|
|
225
225
|
report, byte-equivalent to `scan --policy`'s verdict), the MCP server, the LSP server, and the watch loop are
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "candor-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"mcpName": "io.github.tombaldwin/candor",
|
|
5
|
-
"description": "candor for TypeScript — per-function side effects, transitively, with a policy gate (candor-spec 0.
|
|
5
|
+
"description": "candor for TypeScript — per-function side effects, transitively, with a policy gate (candor-spec 0.38)",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@types/node": "^25.9.2",
|
package/query.mjs
CHANGED
|
@@ -717,7 +717,7 @@ function renderPathHuman(fns, cg, fnQ, eff, hedge = false) {
|
|
|
717
717
|
// package.json; SPEC_VERSION is the spec contract this build speaks. Reused, never re-littered.
|
|
718
718
|
const QUERY_DIR = path.dirname(fileURLToPath(import.meta.url));
|
|
719
719
|
const PKG_VERSION = JSON.parse(fs.readFileSync(path.join(QUERY_DIR, "package.json"), "utf8")).version;
|
|
720
|
-
const SPEC_VERSION = "0.
|
|
720
|
+
const SPEC_VERSION = "0.38";
|
|
721
721
|
|
|
722
722
|
// ---- the §3.3.1 canonical query grammar (⟨0.10⟩, additive over 0.9) --------------------------------
|
|
723
723
|
// One shape for every verb: `<verb> <verb-args…> [--report <locator>] [--policy <file>] [--json]
|
package/scan.mjs
CHANGED
|
@@ -49,7 +49,7 @@ const ENGINE_DIR = path.dirname(fileURLToPath(import.meta.url));
|
|
|
49
49
|
// literal stamped into the envelope's `spec` field, so the doc lines and the report can never drift.
|
|
50
50
|
// Reused, never re-littered.
|
|
51
51
|
const PKG_VERSION = JSON.parse(fs.readFileSync(path.join(ENGINE_DIR, "package.json"), "utf8")).version;
|
|
52
|
-
const SPEC_VERSION = "0.
|
|
52
|
+
const SPEC_VERSION = "0.38";
|
|
53
53
|
|
|
54
54
|
// A TREE TOO DEEP TO WALK IS "COULD NOT EVALUATE" (exit 2), NEVER "FOUND A VIOLATION" (exit 1).
|
|
55
55
|
//
|