Skip to content

fix: restore build integrity across all 13 packages - #47

Open
nehraa wants to merge 9 commits into
mainfrom
fix/integrity-2026-12
Open

nehraa wants to merge 9 commits into
mainfrom
fix/integrity-2026-12

Conversation

@nehraa

@nehraa nehraa commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

The monorepo could not be built, and the published npm packages carried defects that the committed source had already fixed. This restores the chain from source → build → committed dist/ → published tarball.

All 13 packages build clean. All 12 test suites pass — 1092 tests.

Why this was needed

An audit of the repo found the install state was fine but the build chain was severed in several places at once. The symptom was that npm install worked and the IDE ran, yet 7 of 11 packages failed to compile, three test suites had been silently dead for months, and the published codeflow-mcp still shipped a CORS fix that had been reverted out of the tarball.

Build integrity

Fix Detail
Root tsconfig.json restored Deleted in a896899. Its absence left codeflow-execution's 13 test files unable to resolve their config, so they collected 0 tests since June 3. They now run — 141 tests.
packages/codeflow-core/src restored The package shipped as a bare package.json with no source in git or in any of the 68 branches. The implementation existed only on the registry, so the repo could not build its own foundation. Ported to the published 1.1.6 API and verified at 99/99 identical exports across all 7 entry points.
Schema alignment Seven packages failed to compile because their source still assumed the older required-field contract while 1.1.6 publishes the newer optional-field one.
codeflow-store root barrel The package declared a root export that was never emitted — require() failed in every published version from 1.0.7 to 1.1.16.
Extensionless ESM imports codeflow-versioning, codeflow-analysis, CodeRag. Node's ESM loader requires the extension; codeflow-versioning's root import was broken.
Broken exports maps codeflow-dtwin, codeflow-canvas, codeflow-agent declared subpaths the build never produced.

Security

codeflow-mcp's CORS fix was missing from both the committed dist/ and the published 0.1.4. The fix that omits authorization and x-api-key from Access-Control-Allow-Headers landed in c5c1c43 — but the committed artifact was built before it, and npm's 0.1.4 (published 2026-07-01) predates the fix by two months. Anyone installing it shipped the vulnerable build. The rebuilt artifact now emits only Content-Type, x-request-id.

Correctness

  • parsePrd now skips fenced code blocks. Mermaid diagrams were parsed into blueprint nodes, so every requirement file in Lib_Mix_PRD and Mneme_Metacognition_PRD produced a graph of diagram fragments. Across the 65-file corpus this removes 617 bogus nodes and keeps all 76 legitimate ones — verified by classifying every baseline node by whether its section was a mermaid fence.
  • parsePrd resolves workflow endpoints against declared nodes, so a workflow no longer spawns a duplicate module: node beside the function it refers to.
  • CodeRag's FileCache verifies content by hash when a fingerprint falls inside the filesystem's timestamp resolution window. Comparing mtime alone returned stale content — the suite failed ~2 of 3 runs. Now 6/6 green.
  • analyzeRepository in the IDE maps analyzeRepo's real shape. It read fileCount, lines, languages and issues — none of which exist on that result — so every field fell through to zero and an empty repository was reported as a successful analysis. Verified against ground truth: files=7, totalLines=930 where the actual directory holds exactly 7 .ts files and 930 lines.

Packaging

  • Committed pnpm-lock.yaml and pinned packageManager to pnpm 10.33.2.
  • Added .npmrc with link-workspace-packages + prefer-workspace-packages. Two packages declared ranges their local versions did not satisfy, so the installer silently resolved them from the registry and local edits never reached the running app. All 11 IDE dependencies now resolve to the workspace.
  • Raised every publishable package above its registry version so a publish is never a downgrade, and realigned internal ranges.
  • Untracked the store package's .test-store-* scratch state, which every test run rewrote and dirtied the tree.

Tests and CI

  • Added 136 canvas tests, 269 IDE tests, and the root tsconfig. Both suites previously reported No test files found.
  • Added .github/workflows/ci.yml: dependency-ordered build, per-package tests, and a check that the committed dist/ matches the source — the check that would have caught the codeflow-mcp CORS regression.
  • Added scripts/publish-all.sh and scripts/bump-versions.py.

Verification

13/13 packages build clean
12/12 test suites pass — 1120 tests
committed dist/ in sync with src/ for all 12 built packages
all entry points across 12 packages resolve
CI: Build and test all packages (pass), Analyze javascript-typescript (pass), CodeQL (pass)

Security follow-up (needs a human)

gitleaks reports four credentials in this repo's git history — a Gemini
key and an NVIDIA key committed in 10fbd89 (2026-04-02), and a MiniMax key in
1f713b5 (2026-05-26). None of them are in the current tree, but they are
still in the history, so those credentials should be rotated. The CI gate
now scans origin/main..HEAD so it blocks new leaks without failing every PR
on history that predates it; purging the history is a separate operation and
is not done here.

Note for the reviewer

packages/codeflow-core was restored from an older checkout
(/home/Hermes/home/ubuntu/CodeFlow/codeflow-core, the 0.1.1 lineage) and
ported forward to the published 1.1.6 API. Its export surface is now identical
to the published package (99/99 exports, all 7 entry points resolving), but
the internals are a re-derivation rather than the original source — worth a
second pair of eyes on analyzer/repo-multi.ts, which carries the
sourceSpans/callSites additions.

Four regexes in that restored source were quadratic and are now linear
(8e62afd). Each replacement is tested against the original pattern as an
oracle, so the parse results are unchanged.

Publishing is a separate step and needs npm auth (not configured on this
machine): bash scripts/publish-all.sh for a dry run, then --publish.

The monorepo could not be built, and the published npm packages carried
defects that the committed source had already fixed. This restores the
chain from source -> build -> committed dist -> published tarball.

Build integrity
- Restore the root tsconfig.json, deleted in a896899. Its absence left
  codeflow-execution's 13 test files unable to resolve their config, so
  they collected 0 tests since June 3. They now run: 141 tests pass.
- Restore packages/codeflow-core/src. The package shipped as a bare
  package.json with no source in git or in any of the 68 branches; the
  implementation existed only on the registry, so the repo could not
  build its own foundation. The source is ported to the published 1.1.6
  API and verified at 99/99 identical exports across all 7 entry points.
- Align all packages with the codeflow-core schema that 1.1.6 actually
  publishes. Seven packages failed to compile because their source still
  assumed the older required-field contract. All 13 now build clean.
- Restore packages/codeflow-store/src/index.ts. The package declared a
  root export that was never emitted, so require() failed in every
  published version from 1.0.7 to 1.1.16.
- Fix extensionless relative imports in codeflow-versioning,
  codeflow-analysis and CodeRag. Node's ESM loader requires the
  extension, so codeflow-versioning's root import was broken.
- Correct the exports maps of codeflow-dtwin, codeflow-canvas and
  codeflow-agent, which declared subpaths the build never produced.

Security
- Rebuild codeflow-mcp's committed dist. The CORS fix that omits
  authorization and x-api-key from Access-Control-Allow-Headers landed
  in c5c1c43 but was absent from the committed artifact and from the
  published 0.1.4, so anyone installing it shipped the vulnerable build.

Correctness
- parsePrd now skips fenced code blocks. Mermaid diagrams were parsed
  into blueprint nodes, so every requirement file in Lib_Mix_PRD and
  Mneme_Metacognition_PRD produced a graph of diagram fragments. Across
  the 65-file corpus this removes 617 bogus nodes and keeps all 76
  legitimate ones.
- parsePrd resolves workflow endpoints against declared nodes, so a
  workflow no longer spawns a duplicate module node beside the function
  it refers to.
- CodeRag's FileCache verifies content by hash when a fingerprint falls
  inside the filesystem's timestamp resolution window. Comparing mtime
  alone returned stale content, which failed ~2 of 3 runs.
- analyzeRepository in the IDE maps analyzeRepo's real shape. It read
  fileCount, lines, languages and issues, none of which exist on that
  result, so every field fell through to zero and an empty repository
  was reported as a successful analysis.

Packaging
- Commit pnpm-lock.yaml and pin packageManager to pnpm 10.33.2.
- Add .npmrc with link-workspace-packages and prefer-workspace-packages.
  Two packages declared ranges their local versions did not satisfy, so
  the installer silently resolved them from the registry and local edits
  never reached the running app. All 11 IDE dependencies now resolve to
  the workspace.
- Raise every publishable package above its registry version so a
  publish is never a downgrade, and realign internal ranges.
- Untrack the store package's .test-store-* scratch state, which every
  test run rewrote.

Tests and CI
- Add 136 canvas tests, 269 IDE tests and a root tsconfig; the canvas
  and IDE suites previously reported "No test files found".
- Add .github/workflows/ci.yml: dependency-ordered build, per-package
  tests, and a check that the committed dist matches the source.
- Add scripts/publish-all.sh and scripts/bump-versions.py.

All 13 packages build and all 12 test suites pass: 1092 tests.
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a592dd76-1928-4f3b-9fb9-0255477ec387
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T15:14:55.829013Z 92c5afa PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 92c5afae23

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml Outdated
codeflow-versioning \
codeflow-agent \
CodeRag \
codeflow-master

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Point the CI build at the actual IDE directory

Here npm --prefix runs in the specified directory (npm config docs), but this repository has packages/Codeflow_master, not packages/codeflow-master. With set -e, the final iteration fails and makes every build-test run fail before reaching the tests; use the actual directory name.

Useful? React with 👍 / 👎.

Comment thread .github/workflows/ci.yml Outdated
codeflow-evolution \
codeflow-versioning \
codeflow-agent \
CodeRag

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Run the omitted core and IDE test suites in CI

The test loop ends at CodeRag, so it never invokes the test scripts for codeflow-core or Codeflow_master, despite this commit adding suites to both packages. Failures in the new analyzer and IDE tests therefore cannot fail CI; include both packages in this loop.

Useful? React with 👍 / 👎.

},
"dependencies": {
"@abhinav2203/codeflow-core": "^1.1.2",
"@abhinav2203/codeflow-core": "^1.1.7",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Refresh CodeRag's npm lockfile

When npm ci is run inside packages/CodeRag, the tracked lockfile still declares @abhinav2203/codeflow-core as ^1.1.2 and locks 1.1.2, while this manifest now requires ^1.1.7; npm ci exits when the lock and manifest dependencies do not match (npm ci docs). Update the package lock alongside this dependency change.

Useful? React with 👍 / 👎.

import sys
from pathlib import Path

WT = Path("/home/Hermes/codeflow-fix-wt/packages")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resolve the workspace root in both maintenance scripts

When these helpers run from any checkout other than /home/Hermes/codeflow-fix-wt, they inspect that author-specific path instead of the current repository: the aligner silently reports no ranges to change, while the bumper fails opening a package manifest. Derive the root from the script location, as publish-all.sh does.

Useful? React with 👍 / 👎.

Comment thread scripts/bump-versions.py
"codeflow-execution": "codeflow-execution",
"codeflow-canvas": "codeflow-canvas",
"codeflow-agent": "codeflow-agent",
"coderag": "CodeRag",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include every published package in the version bump map

If bump-versions.py is used before the publish order in publish-all.sh, it never checks or bumps codeflow-dtwin, codeflow-evolution, or codeflow-versioning because they are absent from this map. Those packages can then be published with an already-used version or a version below the registry; add them to PACKAGES.

Useful? React with 👍 / 👎.

Comment on lines +270 to +272
const targetId = [...allSymbolIndex.entries()].find(
([key]) => key.endsWith(`::${call.toName}`)
)?.[1];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resolve member-call targets using method names

For calls such as this.connect() or svc.getUser(), extraction records only the property name, while method symbols are indexed as Owner.connect or Owner.getUser; this lookup cannot match them. The analyzer consequently omits those call edges and their call-site metadata. Preserve the receiver/owner or otherwise resolve method names without inventing an ambiguous target.

Useful? React with 👍 / 👎.

Comment on lines +225 to +226
const normalizedImport = imp.importPath.replace(/^\.\//, "").replace(/\.js$/, "");
targetModule = moduleLookup.get(normalizedImport);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Normalize nested .js imports against their importer

For a nested NodeNext TypeScript import such as src/routes/user.ts importing ../lib/auth.js, the explicit extension limits candidate generation to the .js path, and this fallback strips .js but leaves ../lib/auth rather than resolving it from the importer. The source module is therefore not linked to src/lib/auth.ts; normalize the relative specifier and try the supported source extensions.

Useful? React with 👍 / 👎.

const cached = this.cache.get(filePath);

if (cached && cached.mtimeMs === stats.mtimeMs) {
if (cached && this.matchesFingerprint(cached, stats) && this.isConclusive(cached)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Test same-size rewrites inside the mtime window

When a source file is rewritten to different same-length content within the filesystem's timestamp-resolution window, this guard is the new behavior that prevents returning stale cached retrieval content. The existing page-index test changes the file size and manually invalidates the cache, so it does not cover this case; add a direct regression test for the same-fingerprint rewrite.

AGENTS.md reference: packages/CodeRag/AGENTS.md:L25-L26

Useful? React with 👍 / 👎.

CI caught three packages that compile locally and fail in an isolated
install: they import a module they never declared as a dependency and
were resolving it from a hoisted copy in the parent node_modules.

- codeflow-store imported zod without declaring it. Without it the
  zod schemas in src/checkpoint/reasoning.ts and src/observability/config.ts
  fail to infer, so ReasoningCheckpoint collapses to an empty type and
  every property access on it is a TS2339 error. Adds zod ^4.3.6.
- codeflow-evolution imported zod without declaring it, and uses z.input,
  which only exists in zod v4. Adds zod ^4.3.6.
- codeflow-canvas imported the QueryResult type from @abhinav2203/coderag
  without declaring it. Adds @abhinav2203/coderag ^1.3.4.

Also build CodeRag before codeflow-canvas, codeflow-versioning and
codeflow-master in CI. All three consume coderag's type declarations,
which only exist once coderag has been built.

Add scripts/check-undeclared-imports.py, which reports any bare import in a
package's src/ that the package does not declare, and run it in CI. It is
the check that would have caught this class of failure at the source.

Verified against an isolated install - a fresh copy of the tree with its
own node_modules and no parent to hoist from: all 13 packages build and
all 12 test suites pass.
…aths

The build loop named the IDE package codeflow-master, but its directory is
Codeflow_master - its npm name is codeflow-ide. The build failed with
ENOENT on package.json after every other package had built.

Also add the IDE to the test loop, which had never included it, and add
scripts/check-ci-package-paths.py, which verifies every package directory
the workflow references actually exists. That is the check that would have
caught this.
The repo's secrets:scan script runs gitleaks over all of git history,
which reports four leaks that predate this branch: a Gemini key and an
NVIDIA key committed in 10fbd89 (2026-04-02), and a MiniMax key in
1f713b5 (2026-05-26). None of them are in the current tree, but they
are still in history, so those credentials should be rotated.

Scoping the CI gate to origin/main..HEAD means it blocks NEW leaks
without failing every PR on history that predates it. Purging the
history is a separate operation and is not done here.

Also install gitleaks through the action - it is not preinstalled on
the runner image, so 'pnpm secrets:scan' failed with 'gitleaks: not
found' - and check out with fetch-depth: 0, since the scan needs the
commits it compares against.
The action requires a token to scan pull requests and fails with
'GITHUB_TOKEN is now required to scan pull requests' without one.
CodeQL flagged four regexes in this package as polynomial regular
expressions used on uncontrolled data. They are real: an input with a
long whitespace run or a long path made the matcher retry every way of
splitting the input between two adjacent groups, which is quadratic in
the length of that input.

  /app\/api\/(.+)\/route\.(ts|tsx|js|jsx)$/   analyzer/repo.ts
  /app\/(.+)\/page\.(ts|tsx|js|jsx)$/         analyzer/repo.ts
  /^#{1,6}\s+(.+)$/                            internal/prd.ts
  /^[-*+]\s+(.*)$/                             internal/prd.ts

In the first two, `.+` can match across the `/route.` or `/page.`
separator, so the engine backtracks over the whole path looking for a
separator that is not there. In the last two, `\s+` and `.` both match
whitespace, so a run of whitespace can be split between the two groups
in many ways.

Measured on a 200k-character path, the route pattern took 2.4 seconds and
grew quadratically from there. The replacements compute the same result
by consuming the whitespace run once and slicing the remainder, so they
are linear: the same input now takes under a millisecond.

The replacements are exact. Each helper is tested against the original
pattern as an oracle over a corpus of inputs, including the case where
the whitespace run is the entire remainder - the original gave one
whitespace character back to the body group, and so do the helpers.

codeflow-prd carries the same heading and bullet patterns and gets the
same fix.
…k it in CI

Ten packages commit their build output - codeflow-store, codeflow-prd,
codeflow-analysis, codeflow-mcp, codeflow-execution, codeflow-dtwin,
codeflow-canvas, codeflow-evolution, codeflow-versioning and
codeflow-agent. Their committed dist/ was missing the files this branch
produces, most visibly the three barrels codeflow-agent's exports map
declares:

  ./agent   -> dist/agent/index.js
  ./skills  -> dist/skills/index.js
  ./mcp     -> dist/mcp/index.js

The exports map promised those entry points and the source barrels were
committed, but the compiled output was not - `dist` is gitignored, so a
new build output has to be added explicitly. The published tarball would
not have contained them.

Also widen codeflow-canvas's peer range on next from ^16.0.0 to
^15.0.0 || ^16.0.0. The package imports only next/dynamic, which exists
in both majors, and the IDE - the only in-repo consumer - ships next
15.1.0, so the old range excluded it.

The CI check for committed dist/ only ran `git diff`, which reports
modified files but not new ones, so it could not see this. It now also
reports build output that is not in the index. The check is scoped to
the packages that commit dist/: codeflow-core, CodeRag and the IDE build
their output at publish time and deliberately keep no dist/ in the
repository.

Add scripts/check-exports-resolve.mjs, which verifies that every target
declared in every package's exports map exists in the build output, and
run it in CI. A package can declare an entry point the build never
produces: TypeScript compiles fine and the failure only appears in the
installed package, as ERR_MODULE_NOT_FOUND.
The IDE's test suite was written to describe the code as it was, which
meant seven defects got locked in as expected behaviour. Each fix below
is paired with a test that asserts the correct behaviour instead, and the
old assertions are removed.

exportBlueprint with format 'yaml' returned JSON. The MCP tool advertises
the format as one of json, yaml and markdown, so a caller asking for
YAML got something else. There is now a YAML serialiser, and the
markdown branch no longer prints "undefined" for a node that has no
label. Both branches accept either node shape: the IDE's own
BlueprintNode uses label and description, while the real codeflow-core
node uses name and summary, and core.ts casts real nodes straight to
the IDE's type, so a real node has neither label nor description.

useCanvasActions read store.nodes and store.edges from the snapshot
captured at render time. Two mutations batched into one event handler
both read the same stale array, so the second silently discarded the
first. The setters now take an updater function and compute the next
value from the live state.

getAnalysisEngine.analyzeFile cached on the file path alone, so a file
whose contents had changed was still reported against its previous
contents. The cache key now includes a fingerprint of the content.

getSessionStorage.load threw when the stored value was not valid JSON.
A corrupt entry now degrades to the same null a missing key returns.

createSnapshot built its id from Date.now() alone, so two snapshots
created in the same millisecond got the same id.

validateCode counted only curly braces, so "foo(a[0]" passed as valid.
Parentheses and square brackets are counted now, each with its own
message.

terminateAgent set the agent's status to 'idle' while emitting a
status_change event saying 'terminated'. The stored state and the
event contradicted each other, and 'terminated' was declared in
AgentStatusValue but never assigned anywhere. The status is 'terminated'
now, and the colour maps in AgentOrchestrator and AgentNode cover every
value of AgentStatusValue - 'initializing' was already rendered with
no colour class at all.
…invented numbers

Four separate places in the IDE reported values that no measurement
produced. The wrapper layer under src/lib/codeflow/ is a local,
in-process implementation of the upstream packages, so most of it has no
live data source - and the parts that had none were invented.

analyzeProject returned 10000 total lines, 50 files and a
`src/large-file.ts` of 1500 lines for any path it was given. It now
walks the directory and measures what is there: the file count, the line
count, the split between code, comment and blank lines, the average file
length and the largest file. `node:fs` is imported dynamically because
this module is reachable from client components through the barrel and a
static import would pull the filesystem into the browser bundle.

The RightPanel's four sections render placeholder progress bars at 72, 85
and 64 percent, and an evolution panel showing generation 42 and fitness
0.85. The numbers are still placeholders - there is no engine wired to
those panels - but each section header now says so, so they cannot be
read as measurements.

analyzeTypeScriptRepo read `fileCount`, `files`, `lines`, `totalLines`,
`languages` and `issues` off the upstream result. The upstream returns a
RepoGraphPart - `{ nodes, edges, workflows, warnings }` - so none of
those fields exist and every one of them fell back to zero: the panel
reported an empty repository for a repository full of code. It now
derives the file count from the distinct paths on the returned nodes,
the line count from the contents of those files (this shape carries no
line ranges, unlike analyzeRepo), and the language breakdown from the
file extensions.

analyzeRepository caught every upstream error and returned a report of
zeros, so a bad path was indistinguishable from an empty repository. The
upstream analyzer already tells those apart - a real but empty repo
resolves with an empty graph, a bad path throws - so the catch now
re-throws with the path and the original cause attached.

useAnalysis and useEvolution were named like hooks but subscribed to
nothing, so a component that called them kept the snapshot from its
first render and never showed a report that arrived later. Both now read
the engine's version counter through useSyncExternalStore, which is what
makes them re-render. The engines expose `subscribe` and `getVersion` for
this; the evolution engine already had an update listener, the analysis
engine gained one.

codeflow-canvas compiled against two @types/react majors - its own
pinned 18.x and the hoisted 19.x that @monaco-editor/react and react-rnd
resolve - which produced three TS2786 errors that a `paths` mapping in
tsconfig.json was hiding. The IDE, the only in-repo consumer, is on
React 19, so canvas is aligned to React 19 as well and the mapping is
gone. Its peer range already allowed both majors and is unchanged.

codeflow-execution's ghostnodes test used an edge kind, "dependency",
that does not exist in core's EdgeKind enum, so `npm run check` failed.
The edges are now "calls", and the nodes are declared in reverse
dependency order so the test proves the topological sort rather than the
declaration order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants