* improvement(sim-cli): upgrade commander 15, chalk 6 and babel 8
- commander ^11.1.0 -> ^15.1.0 (sim-cli and the root docs generator that walks its command tree)
- chalk 5.6.2 -> 6.0.1 (sim-cli)
- @babel/parser and @babel/types 7.29.x -> 8.1.2 in workflow-code and workspace-code, and the root
parser the audit scripts use, so the CLI bundle carries one parser copy; apps/sim keeps 7 for the
executor's own parse of user function code
- workflow-code: Babel 8 types a member's object as Expression | Super; add an isMemberAccess guard
and type chain roots as MemberExpression['object']; drop the 'Import' callee hint case Babel 8 no
longer produces
- audits: read TSImportType.source (Babel 8 rename) and drop the Babel 7 Import-callee shapes
* improvement(sim-cli): require node ^22.18.0 || >=24.11.0 to match bundled babel 8 and commander 15
- engines.node in sim-cli, workflow-code, workflow-sdk and workspace-code
- README and CLI install docs state the new floor
- the publish workflow smoke-tests the packed bundle on node 22.18.0, the floor
* improvement(audits): eliminate repeated parsing and scans
* fix(audits): resolve local bins under vitest
* fix(audits): include drizzle subpath imports
check:sql-date-binding Babel-parsed all 13,941 source files in apps, packages,
and scripts. A violation can only come from an `sql` tag resolved through a
`drizzle-orm` import, and both the static and dynamic resolvers match the
specifier as a string literal, so a file that never names the module cannot
produce one. Only ~590 files do.
Skipping the parse for the other 92% of bytes takes the audit from ~4.5s to
~0.8s and drops it out of the four slowest audits, taking check:audits from
6.0s to 5.3s wall and 38.0s to 32.9s serial. Output is unchanged.
* fix(scripts): make the sql Date-binding audit precise and crash-proof
Resolve the drizzle `sql` tag from its import binding, scope Date bindings
lexically, tolerate unparseable files, accept the allow annotation above a
multi-line template, and scan the root scripts directory.
* fix(scripts): honor shadowed bindings and defaulted destructured Dates
* fix(scripts): audit drizzle sql tags bound through a dynamic import
* chore(scripts): drop the sql Date-binding unit tests and the exports that served them
* chore(scripts): drop the script unit tests and the exports that served them
* fix(db): bind every raw-sql Date through its column encoder
`drizzle()` overwrites postgres-js's temporal serializers (OIDs 1082/1083/
1114/1184/1182/1185/1115/1231) with an identity function because drizzle maps
timestamps itself through the column's `mapToDriverValue`. A raw `sql` template
carries no column context, so an interpolated `Date` skips that mapping, reaches
the identity serializer unchanged, and the wire encoder throws
`ERR_INVALID_ARG_TYPE`. The pools' `prepare` / `fetch_types` options are
irrelevant: the serializer swap happens for all four combinations.
Five live sites still interpolated a bare `Date`, the stale schedule-job filter
among them — it has no try/catch, so a database async backend would surface a
500 from the schedule tick. Bind each cutoff with `sql.param(date, column)`.
The testing `sql` mock's guard cannot see untested code or the tests that
override the drizzle-orm mock, so add `check:sql-date-binding`: a Babel-AST
audit over apps/** and packages/** that resolves Date-valued bindings per file
and rejects any that reach a raw template unbound. Correct the mock's comment,
which attributed the failure to postgres-js under `fetch_types: false`.
* fix(scripts): require the documented sql-date-bound annotation form and a reason