dsh-lattice-runtime
其他 活跃维护

dsh-lattice-runtime

henryZhouLikeStudy/dsh-lattice-runtime

轻量级事件驱动运行时框架,原生集成事件存储、消息邮箱、会话引擎、状态机与安全能力,开箱即用高效支撑复杂事件溯源与会话管理场景开发。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
TypeScript
主要语言
Apache-2.0
开源协议
40 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:henryZhouLikeStudy/dsh-lattice-runtime
git clone https://github.com/henryZhouLikeStudy/dsh-lattice-runtime.git
git clone git@github.com:henryZhouLikeStudy/dsh-lattice-runtime.git
README.md main

dsh-lattice-runtime

Runtime engine for DSH Lattice V1.

Scope

This package implements the runtime side of the DSH Lattice contract:

  • In-memory and durable JSONL append-only event stores with replay and atomic
    append semantics.
  • Task and Assignment state machines.
  • Central durable mailbox with direct/group/broadcast routing, offline outbox,
    dead-letter queue, TTL, ack, at-least-once delivery, and deterministic
    idempotent deduplication.
  • Adapter registry and required-vs-observed capability negotiation.
  • Session decision engine (auto/reuse/fork/new) with compatibility fingerprint,
    fail-loud forced reuse, and deterministic handoff bundles.
  • LatticeRuntime with utoRun, agentMessage, status, cancel, and
    recover.
  • Event projections and secret-safe structured errors.

All external side effects are kept behind adapter interfaces; tests use
fake adapters.

Usage

import { LatticeRuntime, InMemoryEventStore } from "dsh-lattice-runtime";

const runtime = new LatticeRuntime({ stores, adapters });
const result = await runtime.utoRun(request);

License

Apache-2.0. See LICENSE and NOTICE.