@rotifer/playground 0.40.0 → 0.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/dist/utils/binding.d.ts +6 -0
- package/dist/utils/binding.d.ts.map +1 -1
- package/dist/utils/binding.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,29 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.41.1](https://github.com/rotifer-protocol/rotifer-playground/compare/v0.41.0...v0.41.1) (2026-11-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** upgrade curve25519-dalek to 5.1.0 and accept RUSTSEC-2026-0620 for 4.1.3 until 2027-02-28 ([#649](https://github.com/rotifer-protocol/rotifer-playground/issues/649)) ([f167346](https://github.com/rotifer-protocol/rotifer-playground/commit/f1673464c4534e3ee54737ef15623fc160ef6f5a))
|
|
14
|
+
* **loadtest:** check nodes connect after start, and bring back diagnostics from every machine (T-252) ([#651](https://github.com/rotifer-protocol/rotifer-playground/issues/651)) ([c8b5691](https://github.com/rotifer-protocol/rotifer-playground/commit/c8b5691496fcdbe666fde63db67a7249ca0db95e))
|
|
15
|
+
* **loadtest:** list Vultr machines whole and filter here; retry calls, never create twice (T-252) ([#648](https://github.com/rotifer-protocol/rotifer-playground/issues/648)) ([43b9c58](https://github.com/rotifer-protocol/rotifer-playground/commit/43b9c58b953855eb052b48a08ef2193267fa3d86))
|
|
16
|
+
|
|
17
|
+
## [0.41.0](https://github.com/rotifer-protocol/rotifer-playground/compare/v0.40.0...v0.41.0) (2026-11-29)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **p2p:** say when each announcement arrived in /received (T-252) ([#640](https://github.com/rotifer-protocol/rotifer-playground/issues/640)) ([e8bdd62](https://github.com/rotifer-protocol/rotifer-playground/commit/e8bdd626541be2c02719139e5c9ae71f2751eac8))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **loadtest:** bootstrap port inside the firewall, wait for sshd, per-run known_hosts (T-252) ([#645](https://github.com/rotifer-protocol/rotifer-playground/issues/645)) ([a2eeec7](https://github.com/rotifer-protocol/rotifer-playground/commit/a2eeec7442787e139030346e275fa48e77de704e))
|
|
28
|
+
* **loadtest:** count clock errors, keep them out of P90; run through symlinks (T-252) ([#643](https://github.com/rotifer-protocol/rotifer-playground/issues/643)) ([5637bd7](https://github.com/rotifer-protocol/rotifer-playground/commit/5637bd747d4f1bc67f4b82a9e289bf305c648b96))
|
|
29
|
+
* **loadtest:** read the wall clock in bash, not from date %3N (T-252) ([#644](https://github.com/rotifer-protocol/rotifer-playground/issues/644)) ([ab5752a](https://github.com/rotifer-protocol/rotifer-playground/commit/ab5752a290a28032370e371076cdbc6c902552df))
|
|
30
|
+
|
|
8
31
|
## [0.40.0](https://github.com/rotifer-protocol/rotifer-playground/compare/v0.39.0...v0.40.0) (2026-11-25)
|
|
9
32
|
|
|
10
33
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
Development environment for the **Rotifer Protocol** — **WASM-Native, Polyglot by Design**: build genes in TypeScript / Rust / AssemblyScript / Go / C, compete in Arenas, share via Cloud, and simulate agent evolution.
|
|
11
11
|
|
|
12
|
-
> **Status:** v0.
|
|
12
|
+
> **Status:** v0.41.x — The experimental P2P node now records when each announcement reached it. On the node's local control API, every record from `GET /received` has `receivedAtMs`: the time, by this node's clock, it first received that announcement. That lets you measure how long announcements take to spread. `rotifer network received` prints the same list as before, and what nodes send each other is unchanged. The Rotifer project now runs two public nodes, each a bootstrap node and a relay, with their addresses on [rotifer.dev](https://rotifer.dev/docs/cli/network/#official-nodes). The CLI does not connect to them on its own: its default bootstrap list is still empty, so pass them with `-b` or put them in `bootstrap_peers`. This repository also has tools for load-testing many nodes at once, in [`deploy/loadtest/`](deploy/loadtest/README.md); they are not part of the npm package and do not change the CLI. Still true from v0.40: this repository has a deployment package and runbook for running a public P2P bootstrap and relay node on your own Linux server, in [`deploy/p2p-server/`](deploy/p2p-server/RUNBOOK.md): systemd units, a firewall with per-IP connection limits and a 1 MB/s outbound cap, a monthly outbound quota, and upgrade and rollback scripts. Its installer installs the pinned release from the npm registry with signatures checked, and refuses a lock file in which any package comes from anywhere else or has no integrity hash. The package is not part of the npm package and the CLI is unchanged: nothing changes for anyone who only uses the CLI. Still true from v0.39: the experimental P2P node now asks before it first connects. `rotifer network start` shows what the node connects to and what peers can see, and starts only after you answer yes; a no starts nothing and saves nothing, not even a node key. Scripts, CI and `--json` runs are never prompted: they need `--accept-p2p` or an earlier yes at a terminal, and otherwise exit 1 without connecting (`P2P_CONSENT_REQUIRED`). `rotifer network consent` prints the notice (`--show`), records or withdraws consent (`--accept`, `--revoke`; revoking also stops a running node) and reports it (`--status`). A node can now act as a Circuit Relay v2 relay for peers behind NAT, but only when started with `--relay-server` and its public IPv4 address in `--announce`; the role is off by default, and reservations and circuits have built-in limits. `rotifer network start` also takes `--relay` to hold a reservation on a relay, `--max-inbound` and `--max-pending` to cap connections, and `--foreground` to run under a service manager such as systemd. `rotifer network status` honours `--json` and only reads: it no longer writes `~/.rotifer/network.json`. The default bootstrap list is empty: the node uses the official nodes (see v0.41 above) only when you pass them, and any other relay you use is one you or another operator runs. `rotifer wrap --from-clawhub` accepts `@owner/slug` for a slug that more than one publisher uses; given only the slug, it prints one command per publisher, installs nothing and never picks a publisher for you. Still true from v0.38: a gene from outside this workspace (installed from Rotifer Cloud or wrapped from ClawHub) no longer gets credentials from your environment unasked when it runs in the WASM sandbox. Before running one that declares credentials there, `rotifer run`, `rotifer agent run`, `rotifer test`, `rotifer arena submit` and `rotifer hello` stop, unless `--allow-credentials` already covers every credential it declares: at a terminal they ask once, default no, and a yes holds for that run only; otherwise, or with `--json`, they exit 1 with `credentials_not_granted` and print the `--allow-credentials NAME@host` to pass. Only a Hybrid gene with a `network` block can be given a credential, only the granted names are read, and each is sent only to the exact host it was granted for; a credential declared without an exact host cannot be granted (`credentials_not_grantable`). Genes from this workspace are unchanged. None of this applies on the Node.js path, which `rotifer run` and `rotifer agent run` take for such a gene only with `--trust-unsigned`: there the gene runs with the host's full privileges, with no question and no host limit. The node-certificate (proof-of-registration) issuing service is now live, so once signed in you can get this node a certificate with `rotifer network attest enable`; the service's database migration is now part of this repository's regular Supabase migration chain. Still true from v0.37: when the CLI runs a gene's source under Node.js, the global `fetch` answers to the gene's `phenotype.network` the way `ctx.gatewayFetch` does and a `WebSocket` or `EventSource` is refused, but this is not a sandbox: only the WASM sandbox confines a gene; T1 waits for an async `express` and judges the value it resolves to; a gene call whose Promise never settles fails with exit code 1. Still true from v0.36: genes made with `rotifer wrap` pass the WASM sandbox in `rotifer test`, `rotifer arena submit` and `rotifer run`; `wrap --from-clawhub` refuses a package with a symbolic link, a `..` segment or an absolute path (`E0013`), and a gene wrapped from ClawHub is refused on the unsandboxed Node.js path unless you pass `--trust-unsigned`; `rotifer login` accepts only a PKCE code on its local callback port. Still true from v0.35: `rotifer hello --template <id>` prints, gene by gene, the `rotifer install` command for each missing gene or why it can't be installed, never installs anything itself, and no longer reports a run that did nothing as a success; `code-security` and `doc-qa` are not available yet; the experimental P2P node keeps up to 8 outbound connections to peers it chose, redials a bootstrap node when none is connected, and keeps the score penalty on more than 10 peers sharing one IP. The P2P node stays off unless you start it. Still true from v0.34: the experimental P2P node can find genes across nodes, not only hear LAN announcements. `rotifer network announce` writes the gene to the DHT and republishes it every 12 hours; the announce list survives a daemon restart, and `rotifer network withdraw` stops republishing and serving a gene (copies other nodes already hold expire on their own within 48 hours). `rotifer network search <query>` matches keywords against announcements this node has heard and runs a Rotifer Cloud search alongside, as two separate lists; a v2 gene ID is looked up in the DHT, and the DHT is never searched by keyword. Records from other nodes are checked before they are stored, with per-publisher and total limits, and a peer that keeps breaking them is blocked for a while. Nodes started with `--host 0.0.0.0` find each other on the local network by mDNS without `--bootstrap` (`--no-mdns` turns that off); the node is on libp2p 0.57, can connect through a relay or by hole punching, and enforces connection and memory limits. Gossip on topics without a registered validator is ignored. Heartbeats can carry a Cloud-issued proof of registration that peers check and use in GossipSub scoring; the Cloud issuing side is in this repository and is now live (see v0.38 above). Breaking: nodes on 0.27–0.33 still connect and gossip with this version but no longer share its DHT, so upgrade your bootstrap node. Still true from v0.33: agents have memory (spec §38) that survives genome changes, stored in `.rotifer/playground.db` with every change logged to `.rotifer/audit.jsonl`; Rotifer Cloud does not store agent memory yet; `rotifer run` checks input and output against the gene's schema (`--no-validate` turns that off). Still true from v0.32: Arena F(g) is on a 0–1 scale and scores from earlier versions are not converted; `arena submit --cloud` uploads the tier that actually ran; Hybrid genes must use https, and every redirect hop is checked against their allowed domains. Still true from v0.30: F(g) is scored against the season median and stays `estimated` and outside the ranking until coverage and robustness are measured (planned for v1.0); every CLI path runs a gene with exactly the permissions its phenotype declares; publishing enforces spec §47.5 T1. See [CHANGELOG.md](CHANGELOG.md) for full release history. Internet-wide reach and L4 Collective Immunity are later milestones — see [Implementation Status](#implementation-status) below.
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
package/README.zh.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
**Rotifer Protocol** 的开发环境——构建基因、运行 Arena 竞争、通过 Cloud 共享、模拟代理进化。
|
|
11
11
|
|
|
12
|
-
> **状态:** v0.
|
|
12
|
+
> **状态:** v0.41.x——实验性 P2P 节点现在会记下每条公告是什么时候到的。在节点的本机控制接口上,`GET /received` 返回的每条记录多了 `receivedAtMs`:这个节点按自己的时钟第一次收到这条公告的时间,可以用来量公告在网络里传开要多久。`rotifer network received` 打印的列表和以前一样,节点之间互相发送的内容没有变。Rotifer 项目现在运营两台公共节点,每台都既是引导节点又是中继,地址公布在 [rotifer.dev](https://rotifer.dev/zh/docs/cli/network/#%E5%AE%98%E6%96%B9%E8%8A%82%E7%82%B9)。CLI 不会自己去连它们:默认引导节点列表仍然是空的,要用 `-b` 传入,或者写进 `bootstrap_peers`。本仓库还新增了一次压测大量节点的工具,在 [`deploy/loadtest/`](deploy/loadtest/README.md);它们不随 npm 包发布,也不改变 CLI。v0.40 起的内容依然成立:本仓库有一套在你自己的 Linux 服务器上架设公共 P2P 引导+中继节点的部署包和操作手册,在 [`deploy/p2p-server/`](deploy/p2p-server/RUNBOOK.md):systemd 服务单元、带单 IP 连接上限和 1 MB/s 出站限速的防火墙、按月计的出站流量配额,以及升级和回滚脚本。它的安装器从 npm 官方仓库安装锁定的版本并核对签名,锁文件里只要有一个包来自别处或缺完整性哈希就拒绝安装。这套部署包不随 npm 包发布,CLI 本身没有变化:只用 CLI 的人什么都不用改。v0.39 起的内容依然成立:实验性 P2P 节点第一次联网前会先征得同意。`rotifer network start` 会先说明节点要连哪些地方、对端能看到什么,你答应了才启动;拒绝时什么都不启动,也什么都不保存,连节点密钥都不生成。脚本、CI 和 `--json` 运行从不弹出询问:需要加 `--accept-p2p`,或者此前已在终端里答应过一次,否则以退出码 1 退出、不连任何对端(`P2P_CONSENT_REQUIRED`)。`rotifer network consent` 可以打印这段说明(`--show`)、记录或撤回同意(`--accept`、`--revoke`;撤回时会顺带停掉正在运行的节点),也可以查询当前状态(`--status`)。节点现在可以充当 Circuit Relay v2 中继,帮 NAT 后面的对端连通,但只有用 `--relay-server` 启动、并在 `--announce` 里写明本机公网 IPv4 地址时才开启;这个角色默认关闭,预约和中继线路都有内置上限。`rotifer network start` 还新增 `--relay`(在某个中继上保持预约)、`--max-inbound` 和 `--max-pending`(限制连接数),以及 `--foreground`(在 systemd 这类服务管理器下运行)。`rotifer network status` 支持 `--json`,并且只读不写:不再改写 `~/.rotifer/network.json`。默认引导节点列表是空的:只有你传入官方节点(见上文 v0.41),节点才会用它们;其他中继都是你自己或其他运营者架设的。`rotifer wrap --from-clawhub` 在一个 slug 被多个发布者共用时接受 `@owner/slug` 写法;只给 slug 时,它会为每个发布者各打印一条命令,什么都不安装,也从不替你选发布者。v0.38 起的内容依然成立:来自本工作区之外的基因(从 Rotifer Cloud 安装的,或从 ClawHub 包装来的)在 WASM 沙箱里运行时,不再能不经同意就用你环境里的凭证。在沙箱里运行声明了凭证的这类基因前,`rotifer run`、`rotifer agent run`、`rotifer test`、`rotifer arena submit`、`rotifer hello` 会先停下(`--allow-credentials` 已覆盖它声明的全部凭证时除外):在终端里只问一次,默认不允许,答应了也只管这一次运行;不在终端或加了 `--json` 时,以退出码 1 报 `credentials_not_granted`,并打印该传的 `--allow-credentials 名称@主机`。只有带 `network` 块的 Hybrid 基因能拿到凭证,只读取获准的名称,每个凭证只发给获准的那一个主机;没有声明确切主机的凭证无法授予(`credentials_not_grantable`)。本工作区自己的基因不受影响。走 Node.js 路径时这些都不适用:`rotifer run`、`rotifer agent run` 只有加了 `--trust-unsigned` 才会让这类基因走这条路,这时基因以宿主的完整权限运行,不会问,也不限主机。节点证书(注册证明)签发服务已上线,登录后可以用 `rotifer network attest enable` 为本节点领证;这项服务的数据库迁移已并入本仓库的常规 Supabase 迁移链。v0.37 起的内容依然成立:CLI 在 Node.js 下运行基因源码时,全局 `fetch` 和 `ctx.gatewayFetch` 一样受基因 `phenotype.network` 约束,基因打开的 `WebSocket`、`EventSource` 一律拒绝,但这不是沙箱,真正把基因关住的只有 WASM 沙箱;T1 会等异步 `express` 返回,按最终给出的值判定;基因调用的 Promise 永远不结束时,以退出码 1 报失败。v0.36 起的内容依然成立:用 `rotifer wrap` 做出的基因在 `rotifer test`、`rotifer arena submit`、`rotifer run` 里都能通过 WASM 沙箱;`wrap --from-clawhub` 遇到含符号链接、`..` 路径段或绝对路径的包整包拒绝(`E0013`),从 ClawHub 包装来的基因在不经沙箱的 Node.js 路径上一律拒绝,除非加 `--trust-unsigned`;`rotifer login` 在本地回调端口上只接受 PKCE 授权码。v0.35 起的内容依然成立:`rotifer hello --template <id>` 逐个基因打印缺的基因该怎么 `rotifer install`,或说明为什么装不了,自己从不安装任何东西,什么都没跑的运行不再报成功;`code-security`、`doc-qa` 暂不可用;实验性 P2P 节点尽量保持 8 条由自己选定对端的主动连接,没连上引导节点时会重拨,同一个 IP 上超过 10 个对端时扣分不随连接断开而消失。P2P 节点不手动启动就不运行。v0.34 起的内容依然成立:实验性 P2P 节点能跨节点找基因,不再只是收听局域网公告。`rotifer network announce` 把基因写进 DHT,每 12 小时重发一次;公告清单在守护进程重启后仍保留,`rotifer network withdraw` 让本节点停止重发、停止提供某个基因(别的节点已经存下的副本会在 48 小时内自行过期)。`rotifer network search <关键词>` 用关键词匹配本节点收到过的公告,同时跑一次 Rotifer Cloud 搜索,两份结果分开列出;输入 v2 基因 ID 时到 DHT 里查,DHT 从不按关键词搜。收到的别家记录先检查再存,按发布者和总量设上限,反复越界的对端会被暂时拉黑。用 `--host 0.0.0.0` 启动的节点在局域网里靠 mDNS 互相发现,不用 `--bootstrap`(`--no-mdns` 可以关掉);节点已升级到 libp2p 0.57,能经 relay 或打洞连通,并执行连接数与内存上限。没有注册校验器的 topic 上的 gossip 一律忽略。心跳可以带上 Cloud 签发的注册证明,对端会校验并用于 GossipSub 打分;Cloud 签发端已在本仓库,现已上线(见上文 v0.38)。不兼容变化:0.27–0.33 的节点仍能和本版连接、收发 gossip,但不再共用它的 DHT,请先升级引导节点。v0.33 起的内容依然成立:Agent 有了记忆(规范 §38),换了基因组也不会丢,存在 `.rotifer/playground.db`,每次改动记进 `.rotifer/audit.jsonl`;Rotifer Cloud 目前还不保存 Agent 记忆;`rotifer run` 会按基因的 schema 检查输入和输出(加 `--no-validate` 可以关掉)。v0.32 起的内容依然成立:Arena 的 F(g) 是 0 到 1 的分数,之前版本算出的分数不做换算;`arena submit --cloud` 上传实际运行的档位;Hybrid 基因只许 https,每一次重定向都要重新对照基因允许的域名。v0.30 起的内容依然成立:F(g) 按赛季中位数打分,在覆盖度与健壮性真正测量之前(计划在 v1.0)仍标 `estimated`、不进排名;所有 CLI 路径都按基因 phenotype 声明的权限运行;发布执行规范 §47.5 T1。完整发布历史见 [CHANGELOG.md](CHANGELOG.md)。跨公网连接与 L4 集体免疫在之后的里程碑,见下方[实现状态](#实现状态)。
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
package/dist/utils/binding.d.ts
CHANGED
|
@@ -58,6 +58,12 @@ export interface ReceivedAnnouncement {
|
|
|
58
58
|
/** GossipSub-authenticated publisher PeerId. */
|
|
59
59
|
publisher: string;
|
|
60
60
|
source?: string;
|
|
61
|
+
/**
|
|
62
|
+
* When this node received it (Unix ms, this machine's clock): the first
|
|
63
|
+
* arrival of the announcement shown. Control-API only, not on the wire;
|
|
64
|
+
* absent from addons older than T-252.
|
|
65
|
+
*/
|
|
66
|
+
receivedAtMs?: number;
|
|
61
67
|
}
|
|
62
68
|
/** One publisher's copy of a gene found by a network search (mirrors Rust). */
|
|
63
69
|
export interface NetworkSearchHit {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.d.ts","sourceRoot":"","sources":["../../src/utils/binding.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC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AED,mGAAmG;AACnG,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.js","sourceRoot":"","sources":["../../src/utils/binding.ts"],"names":[],"mappings":";;AAwIA,wCAMC;
|
|
1
|
+
{"version":3,"file":"binding.js","sourceRoot":"","sources":["../../src/utils/binding.ts"],"names":[],"mappings":";;AAwIA,wCAMC;AAiKD,kCAwBC;AAkBD,4CAMC;AAGD,kDAEC;AAUD,4BAQC;AAGD,8CAEC;AAED,8CAEC;AA/XD,yCAAiC;AACjC,qCAAqC;AACrC,mDAAmD;AAwEnD,IAAI,QAAQ,GAAyB,IAAI,CAAC;AAC1C,IAAI,iBAAiB,GAAG,KAAK,CAAC;AAC9B,IAAI,UAAU,GAAmC,IAAI,CAAC;AACtD,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAEpC,MAAM,oBAAoB,GAA2B;IACnD,cAAc,EAAE,kCAAkC;IAClD,YAAY,EAAE,gCAAgC;IAC9C,WAAW,EAAE,mCAAmC;IAChD,WAAW,EAAE,oCAAoC;CAClD,CAAC;AAEF,SAAS,WAAW,CAAC,GAA4B;IAC/C,IAAI,CAAC,GAAG,CAAC,iBAAiB;QAAE,OAAO,IAAI,CAAC;IACxC,MAAM,MAAM,GAAG,IAAA,gBAAI,EACjB,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,MAAM,EACrD,UAAU,EACV,cAAc,CACf,CAAC;IACF,IAAA,gCAAgB,EAAC,MAAM,CAAC,CAAC;IACzB,OAAO,IAAK,GAAG,CAAC,iBAAwD,CAAC,MAAM,CAAC,CAAC;AACnF,CAAC;AAED;;;;GAIG;AACH,SAAS,aAAa;IACpB,IAAI,uBAAuB;QAAE,OAAO,UAAU,CAAC;IAC/C,uBAAuB,GAAG,IAAI,CAAC;IAE/B,MAAM,WAAW,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ACb,OAAO,EAAE,MAAM,EAAG,GAAa,CAAC,OAAO,CAAC,OAAO,CAAC,2BAA2B,EAAE,EAAE,CAAC,EAAE,CAAC;IACrF,CAAC;AACH,CAAC;AAED,mGAAmG;AACnG,SAAgB,iBAAiB;IAC/B,OAAO,OAAO,aAAa,EAAE,EAAE,QAAQ,KAAK,UAAU,CAAC;AACzD,CAAC;AAED,SAAgB,iBAAiB;IAC/B,OAAO,cAAc,EAAE,KAAK,IAAI,CAAC;AACnC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rotifer/playground",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.1",
|
|
4
4
|
"description": "Rotifer Protocol Playground — local development environment for gene development, Arena competition, and protocol simulation",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Rotifer Protocol Contributors",
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"vitest": "^4.1.12"
|
|
97
97
|
},
|
|
98
98
|
"optionalDependencies": {
|
|
99
|
-
"@rotifer/playground-darwin-arm64": "0.
|
|
100
|
-
"@rotifer/playground-darwin-x64": "0.
|
|
101
|
-
"@rotifer/playground-linux-x64-gnu": "0.
|
|
102
|
-
"@rotifer/playground-win32-x64-msvc": "0.
|
|
99
|
+
"@rotifer/playground-darwin-arm64": "0.41.1",
|
|
100
|
+
"@rotifer/playground-darwin-x64": "0.41.1",
|
|
101
|
+
"@rotifer/playground-linux-x64-gnu": "0.41.1",
|
|
102
|
+
"@rotifer/playground-win32-x64-msvc": "0.41.1"
|
|
103
103
|
},
|
|
104
104
|
"engines": {
|
|
105
105
|
"node": ">=22.18.0"
|