Repository navigation
Expose build diagnostics through buildWithOutcome - #128
Open
mike-north wants to merge 46 commits into
Open
mike-north wants to merge 46 commits into
mike-north wants to merge 46 commits into
Conversation
Propagate the first freshness filesystem error from standalone validation.
Recompute expected repo-root artifacts during CLI reporting. Retain structural findings and readable bundle drift when validation encounters filesystem errors.
Keep manifest lookup paths intact, check filesystem imports from the public build outcome, and attribute temporary root bundle diagnostics to their declaring plugin.
Observe the source read during Jiti config imports and require the compiled main baseline in CI.
Require repository inputs at parsers and transformers and keep config evaluation failures in build outcomes.
Resolve readable symlink components for freshness findings and register bundle owners from declared targets. Use TypeScript ESLint to reject assertions in core.
Keep one discovered name per plugin directory, refresh bundle ownership after cleanup, and pass branded copy presence to the Kiro bundler. Apply the repository reader rules to all core TypeScript sources and check the restricted built-in modules directly.
Keep generated artifacts and registries out of plugin attribution. Align repository reader lint with the core project, use cached source for skill references, and compare bundle buffers directly.
Carry failFast into standalone validation and report filesystem errors by the path read. Remove plugin lookup from freshness findings, select lint files from the core TypeScript project, and exercise both freshness severities.
Pass TypeScript project files to ESLint and resolve reader entry points with native paths. Deduplicate freshness findings by lookup path, align the architecture example with the public type, and typecheck test sources during pnpm check.
Include the lookup path in freshness findings and retain the stat error for symlink targets. Brand optional stats, text, and resolved paths until the caller uses the reader accessor. Resolve pipeline entry imports against the importing file.
Keep TypeScript project files visible to ESLint and fail on skipped-file warnings. Compare bundle files with reader bytes on both sides and clarify the Cursor converter and Claude artifact serializer.
Keep the config validators internal and check the Claude registry description through both core build APIs and the CLI. Document when artifact bytes match across builds.
Lint explicit core project files and verify returned validation across target inputs. Let local workspace checks run from source archives.
Keep native rejection fields and report failed bundle source reads. Preserve config presence through discovery, use the core project file list for lint, and clean up failed temporary bundles.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
buildWithOutcome(path, options?)returns per-plugin build results and standalone validation, including artifact freshness and the published-surface check. For regular files, directories, and symlinks to them, a passing outcome matchesorigin/mainrunningbuild()followed byvalidate(). Byte comparisons use the same generator version. When freshness regeneration fails, legacyvalidate()removes only the temporary bundle directory it created. The public API addsbuildWithOutcome,BuildOutcome, andBuildFreshnessIoFinding.Repository reads
aipm.repo.tslookup keeps itsERR_ACCESS_DENIEDrejection. Registry generation writes the destination without a presence check. Bundle generation keeps native file copies. When a bundle copy fails, any exception from the diagnostic source read produces a finding at the source path. Destination errors still reject with the original copy error. Temporary Gemini and Kiro bundle generation cleans up partial output if it throws.freshness-iofinding naming the lookup path. These findings carry nopluginfield and make a returned outcome fail. The reader preserves the native results of presence checks and missing optional inputs. Node can report absence for dangling or inaccessible entries. Repeated failures at the same path and error code produce one finding. An operation on a shared parent reports that lookup. Child lookups report their own paths. Sibling findings after a read failure are best effort. WithfailFast: true, the outcome rethrows the original build or validation error, preserving its prototype, message, and cause. Recorded diagnostics are attached aserror.findings.freshness-iofindings naming the config path and prevent a passing outcome. The defaults for an absent repo config are unchanged. Node’s filesystem exports and Jiti retain their existing behavior.Core lint
pnpm checkcovers core tests and test support with the existing rules, including cross-target import isolation.pnpm checkfails if the resolved program reaches a package-owned file outside that list. The fixture rejects an import-only declaration, explicitly includes it, and compares the linted file paths with the parsed project paths.fs,fs/promises,node:fs,node:fs/promises,module, andnode:module, including type imports. Dynamic imports and requires use string literal specifiers. The rule forbids aliases ofrequireand the namesgetBuiltinModuleandloadEnvFile, including as identifiers, keys, string literals, and template literals. Reader factories and pipeline entry points have designated callers. Core production code uses@typescript-eslint/consistent-type-assertionswithassertionStyle: 'never', which allowsas const.The reader’s scope excludes the config module and its imports, reads Jiti performs for them, subprocess reads, and special filesystem entries. The lint contract covers the listed rules. Deliberate circumvention through other APIs, type-level tricks, and brand forgery are outside its scope. Parsed documents, converted hooks, validated config, registry entries, artifacts, ownership records, and evidence passed between internal functions are outside reader provenance.
Verification
origin/mainfor a Claude manifest directory and a plugin config with an invalid version. It checks the reportedfreshness-iofindings separately.b962d03.EISDIRdestinations, and verifies both scratch directories are empty after rejection. Removing freshness cleanup from the compiled helper causes the fixture to fail.266835a,pnpm install --frozen-lockfile,pnpm build,pnpm check,pnpm test, and the standalone compiled parity suite passed withCIunset and withCI=1. Both modes used pnpm 10.30.3, Node 24.22.3, templateb6aca5a, separate temporary directories, an unsetCODEX_HOME, and disabled Nx caching.origin/mainata2bf182.