
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@limecloud/agent-runtime-projection
Advanced tools
Shared Agent Runtime event projection and read-model helpers.
@limecloud/agent-runtime-projection 是 Lime Cloud 系列应用共享的 Agent Runtime 事件投影层。它把 App Server / JSON-RPC / 本地运行时产生的 execution events 转成前端稳定可渲染的 read model。
这个包只包含纯 TypeScript 类型和函数,不依赖 React,不调用 JSON-RPC,不访问 Electron IPC,也不绑定任何具体业务模块。
npm install @limecloud/agent-runtime-projection
这个包负责:
action.required 投影成可点击的人类待办。action.resolved 标记已处理 action。visibleEvents、pendingActions 和 inputSourceRecovery 等 read-model 字段。这个包不负责:
import {
projectAgentRuntimeReadModel,
type AgentRuntimeExecutionEvent,
} from "@limecloud/agent-runtime-projection";
const events: AgentRuntimeExecutionEvent[] = [
{
id: "evt-action",
kind: "action",
status: "pending",
eventClass: "action.required",
title: "需要补充输入源",
actionId: "action-1",
payload: {
actionKind: "add-input-source",
targetModule: "knowledge-inputs",
},
createdAt: new Date().toISOString(),
},
];
const readModel = projectAgentRuntimeReadModel({
executionEvents: events,
sourceCount: 0,
});
console.log(readModel.pendingActions[0]?.action?.decision);
AgentRuntimeExecutionEvent 是跨应用的最小公共事件形状。业务应用可以使用自己的 session 类型,只要 execution event 字段兼容即可:
interface AppSession {
executionEvents?: AgentRuntimeExecutionEvent[];
sourceCount?: number;
}
常用事件类型:
action.requiredaction.resolvedevidence.changedartifact.changedtool.startedtool.resulttool.failedmodel.completedmodel.failedsnapshot.updated后端交互应留在宿主应用内:
App Server JSON-RPC
-> app service/store
-> executionEvents
-> @limecloud/agent-runtime-projection
-> @limecloud/agent-runtime-ui 或宿主 UI
不要让 UI 组件直接调用 JSON-RPC。这样 Claw、content-studio 和后续独立 App 可以共享同一套投影逻辑,同时保留自己的后端连接方式。
npm --prefix packages/agent-runtime-projection run build
npm --prefix packages/agent-runtime-projection run test
npm --prefix packages/agent-runtime-projection pack --dry-run
首次发布到 npmjs:
npm --prefix packages/agent-runtime-projection publish --access public
发布前必须先确认版本号、npm 账号和 npm pack --dry-run 输出。
FAQs
Shared Agent Runtime event projection and read-model helpers.
The npm package @limecloud/agent-runtime-projection receives a total of 10 weekly downloads. As such, @limecloud/agent-runtime-projection popularity was classified as not popular.
We found that @limecloud/agent-runtime-projection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.