@nexagent-cli/shared
v0.8.4
Published
Shared types, constants, and utilities for NexAgent
Readme
@nexagent-cli/shared
Shared types, constants, and utilities for the NexAgent CLI monorepo.
This package is automatically installed as a dependency of @nexagent-cli/cli — you typically do not need to install it directly.
What's Inside
- Types — AgentConfig, AgentTurn, Tool, ToolResult, SafetyVerdict, LLMProvider, Session, MemoryBlock, and more
- Constants — NEXAGENT_VERSION, THEME, SYM, SAFETY_CHECKS, GLOBAL_SHELL_BLOCKLIST
- Utilities — Result<T,E> typed error handling, generateId(), shortId()
Install
npm install @nexagent-cli/sharedUsage
import { NEXAGENT_VERSION, Result, generateId } from '@nexagent-cli/shared';
console.log(NEXAGENT_VERSION); // '0.5.1'
const id = generateId(); // 'nx_abc123...'License
MIT