Commit graph

10 commits

Author SHA1 Message Date
Peter Steinberger
9491d5a5a3
refactor(scripts): deslop scripts/lib (#159362)
* refactor(scripts): deslop scripts/lib

Consolidate script lifecycle, scenario, planner, report, release and
packaging helpers while retaining CLI and publication contracts.

Keep config-boundary source caches within one scan so repeated in-process
checks observe edits. Carry extracted helpers through selective fixtures
and iOS scope routing. Leave PR tooling and its library import closure intact.

* fix(scripts): retain sanitizer fast path after helper cleanup

* fix(scripts): model watchdog shell consumer in dead-code checks
2026-09-27 17:13:58 -07:00
Peter Steinberger
c8eab36020
refactor: run plugins and tooling without TypeScript 6 (#156829)
* refactor: remove TypeScript 6 from plugin runtime and tooling

Keep source plugin loading on Jiti and native module transforms, move development analysis and declaration builds to TypeScript 7, and preserve captured loader and input ownership contracts. Scaffolds compile to the same entry path without shipping a compiler in production.

* refactor: use native checker for restart preflight detection

* fix: keep test-directory docs out of native helper scans

* fix: preserve native compiler tooling across CI runtimes

Keep compiler-backed tests on the supported Node transport, preserve declared Windows aliases and partial-source analysis, and bind relocated SDK reports to their installed compiler. Retain strict package input admission and the existing fixture assertions.

* test: compare messaging guard diagnostics without sorting

* fix: bound native tooling memory and preserve bootstrap loading

* fix: bound native declaration builds with tsdown scheduling

* fix: retire compiler-only helpers from installed packages

* test: migrate routing import scan to native parser

* test(ui): wait for recovered model catalog receipt
2026-09-23 22:34:20 -07:00
Peter Steinberger
6cc8bb1a4b
perf(build): overlap staged SDK compilers within memory capacity (#145090)
* perf(build): overlap staged SDK compilers within memory capacity

* test(ci): align hybrid real-Gateway runner expectation

* test(build): keep nested writer fixtures on real plans

* fix(build): retain both joined compiler failures
2026-09-11 13:11:01 -07:00
Dallin Romney
f765c62fa7
fix(build): sanitize direct tsdown declarations (#137592)
* fix(build): sanitize direct tsdown declarations

* fix(build): sanitize selected declaration roots

* test(build): cover direct declaration sanitizing

* fix(build): guard declaration sanitizer roots
2026-09-07 14:57:37 -07:00
lei_lei
af9fdc88dd
fix(plugin-sdk): strip undeclared __exportAll from published dts (#137012)
Closes #136881

## Problem

Strict external TypeScript consumers of `openclaw/plugin-sdk/tool-plugin` failed because the published declaration graph re-exported an undeclared bundler helper.

## Fix

Normalize generated declaration imports and exports at the canonical declaration staging owner. Remove only mangled `__exportAll` helper aliases, preserve declared and directly imported bindings, and check every published declaration extension for leaks.

The packed Plugin SDK smoke now imports `tool-plugin` with `strict: true` and `skipLibCheck: false`, using the release-declared TypeScript and `@types/ws` versions. The declaration staging owner also normalizes hashed root and extension declaration chunks that are outside the staged SDK subset.

## Verification

- Current `main` red: the shipped `2026.8.2` package contains the undeclared helper export and the strict consumer reports `TS2304`.
- Repaired head: 86 focused declaration-stage and release-check tests pass, and the generated package declaration replay removes all helper imports and exports.
- Exact-head Blacksmith CI run `33726488515` passed.
- The exact-head build artifact passed a packed strict consumer compile for `tool-plugin` with `skipLibCheck: false`, plus a second public SDK import.

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-09-03 12:59:58 +05:30
Peter Steinberger
df25302041
ci: reuse unchanged declaration groups (#135735)
Restore cached groups into private staging and validate the assembled generation before publication. Keep declaration type ordering stable and exclude checkout-owned Vitest scratch from resolution discovery.
2026-09-01 18:09:25 -07:00
Peter Steinberger
0c82ca658c
perf(build): reuse compiler-consumed declaration inputs (#134734)
* perf(ci): reuse successful declaration compiler inputs

* fix(build): capture only supported declaration roots

* fix(ci): preserve declaration proof ownership and resources

* fix(ci): classify declaration pipeline build inputs

* fix(build): preserve Arrow declaration module augmentations
2026-09-01 01:20:52 -07:00
Peter Steinberger
cc797c0491
perf(ci): shard UI checks and reuse SDK compiler inputs (#134528)
* perf(ci): shard UI checks and reuse SDK compiler inputs

* fix(build): resolve compiler namespace links from canonical parents

* fix(ci): normalize Windows compiler cache paths
2026-08-31 17:00:46 -07:00
Peter Steinberger
82d27ddc04
perf(build): reuse staged SDK declarations across profiles (#134414)
* perf(build): reuse staged SDK declarations across profiles

* fix(ci): refresh complete protected build cache generations

* test(build): expose SDK relocation cache identity on failure
2026-08-31 14:13:01 -07:00
Peter Steinberger
09de7c9ef7
fix(build): separate native declarations and package caches (#132532)
Keep local compiler declarations independent of packaged SDK output, invalidate actual inherited inputs, and preserve canonical artifact ownership through preparation and staging. Remove duplicate emit, bridge, and timestamp freshness paths.
2026-08-29 03:14:46 -07:00