@proto-labs-inc/rig-core

中文文档
0.3.0发布于 2026/11/02MITTypeScriptES Module

Stable hosted rig loader and framework adapter contract.

原始使用文档

@proto-labs-inc/rig-core

The stable loader and framework contract for Proto's hosted rig. React and Vue adapters load the current compatible runtime through loadRuntime(manifest, signal), then use its store and lifecycle methods. The runtime owns state, URL/history, bridge, themes, capture, and selection behavior.

Every opening checks the active release and verifies downloaded code by SHA-256. There is no offline startup fallback. Existing running sessions survive connection loss; opening or refreshing without a compatible runtime fails with Retry.

版本与发布记录

@proto-labs-inc/rig-core 共发布 9 个版本,首次发布于 2026/09/30;过去 12 个月发布了 9 个版本。

版本发布日期距今
0.3.0latest2026/11/021 天前
0.2.52026/10/313 天前
0.2.42026/10/313 天前
0.2.32026/10/304 天前
0.2.22026/10/259 天前
0.2.12026/10/1519 天前

关于 @proto-labs-inc/rig-core 的常见问题

@proto-labs-inc/rig-core 是什么?

稳定托管钻机装载机和框架适配器合同。

如何安装 @proto-labs-inc/rig-core?

在项目目录运行 npm install @proto-labs-inc/rig-core,或使用 pnpm add / yarn add / bun add。

@proto-labs-inc/rig-core 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@proto-labs-inc/rig-core 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@proto-labs-inc/rig-core 可以商用吗?

@proto-labs-inc/rig-core 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@proto-labs-inc/rig-core 还在维护吗?

最新版本 0.3.0 发布于 2026/11/02(1 天前);至今共发布 9 个版本,其中过去 12 个月发布了 9 个;首次发布于 2026/09/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。