@morphixai/agent-workspace
v0.0.5
Published
Runtime-private workspace with commit semantics for agent runtimes — staging area + in-memory store.
Maintainers
Readme
@morphixai/agent-workspace
Runtime-private staging area with commit semantics for agent runtimes.
Each agent runtime owns one Workspace. Tools write drafts into it; only
workspace.commit(path, scope) promotes content to persistent storage. Sibling
runtimes never share a workspace, so in-flight drafts stay isolated until
explicitly committed.
Pairs with @morphixai/agent-core
(for scope context) and @morphixai/agent-bus
(for parent/child messaging), but is usable standalone.
Install
npm install @morphixai/agent-workspaceUsage
import { InMemoryStore } from '@morphixai/agent-workspace';
const store = new InMemoryStore();
// a Workspace is typically created and owned by an AgentRuntime;
// tools stage drafts then commit to promote them to persistent storage.API
InMemoryStore— in-memory backing store (InMemoryStoreOptions).- Types:
Workspace,WorkspaceContent,WorkspaceEntry,WorkspaceKind,CommitTarget,WorkspaceErrorCode. WorkspaceError— error class.
License
MIT © MorphixAI
