Repository navigation
Data and numerical computing
HazelJS 2.2.0 adds typed data queries, numerical arrays, and statistical analysis for Node.js and TypeScript. It also fixes Agent imports, execution defaults, and approval retries.
@hazeljs/frameadds immutable, typed DataFrame queries over records, CSV, and Parquet using DuckDB. Filter, group, aggregate, sort, and slice data, then materialize results as JavaScript rows. Query plans can be serialized for use by agents. PR #46@hazeljs/numericadds NumPy-style multidimensional arrays with typed storage, broadcasting, reductions, seeded sampling, and linear algebra including solves and matrix decompositions. PR #46@hazeljs/statsadds probability distributions, hypothesis tests, regression, bootstrapping, and streaming summaries. Optional Frame adapters let you compute summaries over DataFrame queries. PR #46@hazeljs/notebookadds thehazel-notebookCLI and a local browser workspace for running TypeScript cells, viewing tabular output, and exporting notebooks. The repository includes a Frame notebook demo, a sales-query example, and benchmarks for Frame, Numeric, and Stats. PR #46
Agent fixes
- Optional Eval peer. CommonJS and ESM consumers can import
@hazeljs/agentwithout@hazeljs/eval. The three synchronous evaluation helpers remain available from the package root and load Eval when called. Issue #43, PR #47 - Execution defaults. Standard and streaming runs now honor the agent's
maxStepsandenableMemorydecorator settings. Per-call options take precedence. Disabling memory skips both retrieval and persistence. PR #44 - Durable approvals. Duplicate or overlapping
approveAndResumecalls are rejected withAPPROVAL_NOT_PENDINGonce another caller has claimed the approval. An approved run that remains suspended after a process crash can still be resumed. PR #45
Upgrading
Custom HumanTaskService implementations must implement tryResolve(id, decision, resolvedBy?). Update the task atomically while its status is pending, return the updated task on success, and return undefined if the task is missing or already resolved. The bundled in-memory, file, and SQL implementations include this method. PR #45
Frame, Numeric, Stats, and Notebook require Node.js 20 or later.