npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@icjhd/cj-script-compiler

v2.0.0

Published

技能脚本合同快照与二进制写出工具核心

Downloads

91

Readme

@icjhd/cj-script-compiler

技能脚本编译器核心。

当前第一轮包含:

  • L1/L2/L3/L4 合同快照初版
  • v2 OperationSpec 基线字段表的静态快照
  • Operation 字段覆盖统计
  • 最小 ACT0 action slot + CALL_OP/CALL_GROUP + RETURN 二进制写出
  • tracked assets/generated/registry.snapshot.json
  • tracked assets/generated/operation-field-coverage.json
  • tracked assets/fixtures/minimal-call-op.golden.json

该包是纯 TypeScript 库,不包含 Node CLI。CLI 应放在编辑器工具层或构建脚本中调用该库。

2026-06-25 P3 formula adapter update

  • Added a conservative compileFormulaFx to expression-bytecode adapter for static numeric formulas.
  • ROLL_JUMP_IF_FALSE can now use probabilityFormula, currently limited to number literals plus + - * / and unary -.
  • Added minimal-formula-chance.golden.json to verify formula source 0.1 + 0.15 compiles to FXC0/XPR0/XCD0 and evaluates to 0.25000000.

2026-06-25 P3 context formula adapter update

  • Formula variables caster.<key>, target.<key>, and const.<key> now compile to LOAD_CONTEXT_FX.
  • Added minimal-context-formula.golden.json for caster.ap * 0.01 - target.def * 0.05, evaluated with fixture context to 0.25000000.
  • eval-fx accepts an optional context JSON file for dynamic expression smoke checks.

2026-06-25 P3 formula function adapter update

  • compileFormulaFx adapter now lowers min(a,b), max(a,b), and clamp(x,lo,hi) to expression VM opcodes.
  • Added minimal-function-formula.golden.json covering MIN_FX, MAX_FX, CLAMP_FX, and const context reads.
  • Still unsupported in this slice: %, abs, floor, ceil, round, sqrt, pow, and rand.

2026-06-25 P3 rounding function adapter update

  • compileFormulaFx adapter now lowers %, abs(x), floor(x), ceil(x), and round(x).
  • Added minimal-rounding-formula.golden.json to verify fixed-point modulo and rounding semantics.
  • Still unsupported in this slice: sqrt, pow, and rand.

2026-06-25 P3 bool comparison adapter update

  • Added structured JUMP_IF_FALSE source support with leftFormula, comparator, and rightFormula.
  • Comparators lower to BOOL expression bytecode: EQ, NE, LT, LTE, GT, and GTE.
  • Added minimal-bool-jump.golden.json and eval-bool CLI coverage.

2026-06-25 P3 minimal Expression VM update

  • Chance expressions now compile into FXC0 constants and XCD0 instruction programs instead of direct ppm-only records.
  • ROLL_JUMP_IF_FALSE probabilityPpm emits PUSH_FX_CONST + RETURN_FX expression bytecode.
  • Golden tests validate eval-fx output for the chance fixture.

2026-06-25 P2 ABI skeleton update

  • COD0 writer now emits 16-byte opcode/a/b/c instruction records.
  • The writer emits required empty section skeletons for FXC0, XCD0, SEL0, L1C0, L2D0, L3E0, L4G0, DSP0, and LIM0.
  • ROLL_JUMP_IF_FALSE source instructions now require an explicit rollScopeId.

2026-06-25 binary update

  • Added XPR0 const-ppm expression records to the writer output.
  • Added ROLL_JUMP_IF_FALSE source instruction support.
  • Added tracked assets/fixtures/minimal-chance.golden.json.