@getnella/latest 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,80 @@
1
+ import { ContextManager } from '@usenella/core';
2
+ export { AssumptionTracker, AssumptionType, ChangeLedger, Changes, CodeChunk, Constraint, ContextManager, ContextService, DependencyChange, DependencyTracker, FileChange, IndexConfig, IndexManager, McpTool, McpToolCall, McpToolHandler, McpToolResult, NELLA_TOOLS, PrerequisiteCheck, RawTaskYaml, RefusalCheckOptions, RunLogger, RunResult, RunResultWithContext, RunTaskOptions, SafetyService, SearchQuery, SearchResponse, SearchResult, SearchService, SessionStore, Task, ToolHandlerConfig, ValidationResult, ValidationService, VerifyCodeRequest, VerifyCodeResult, Workspace, WorkspaceConfig, WorkspaceEntry, WorkspaceOptions, WorkspaceRegistry, WorkspaceService, WorkspaceSwitcher, applyChanges, calculateValidationIntegrity, check, checkConstraint, checkConstraints, checkFilesNotToModify, checkForbiddenPatterns, checkPrerequisites, checkRefusalCorrectness, checkScope, cleanupTempWorkspace, countViolations, createCodeVerifier, createHybridSearcher, createIndexManager, createMcpToolHandler, createNellaDir, createTempWorkspace, createWorkspaceRegistry, createWorkspaceSwitcher, detectRefusalInResponse, detectRiskPatterns, generateRunId, getDiff, getModifiedFiles, getValidationErrors, getViolatedConstraints, getWorkspaceRegistry, getWorkspaceSwitcher, runCommand, runTask, runValidation, shouldRefuse, validate, validateToolInput, writeArtifacts } from '@usenella/core';
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+
5
+ /**
6
+ * Nella MCP Server
7
+ *
8
+ * Model Context Protocol server that exposes Nella's reliability layer
9
+ * to AI agents like Claude.
10
+ *
11
+ * Usage:
12
+ * nella mcp --workspace /path/to/project
13
+ * nella mcp -w /path/to/project
14
+ */
15
+
16
+ interface ServerContext {
17
+ workspacePath: string;
18
+ contextManager: ContextManager;
19
+ }
20
+ declare function startMcpServer(args: {
21
+ workspace?: string;
22
+ help?: boolean;
23
+ }): Promise<void>;
24
+
25
+ /**
26
+ * Validation Tools
27
+ *
28
+ * MCP tools for checking constraints, running validations, and executing full runs.
29
+ */
30
+
31
+ declare function registerValidationTools(): Tool[];
32
+ interface ToolCallResult$2 {
33
+ content: Array<{
34
+ type: "text";
35
+ text: string;
36
+ }>;
37
+ isError?: boolean;
38
+ }
39
+ declare function handleValidationTool(name: string, args: Record<string, unknown>, context: ServerContext): Promise<ToolCallResult$2 | null>;
40
+
41
+ /**
42
+ * Safety Tools
43
+ *
44
+ * MCP tools for prompt injection protection, risk detection, refusal checking,
45
+ * and prerequisite verification.
46
+ *
47
+ * Objective: Prompt Injection Protection (O3)
48
+ */
49
+
50
+ declare function registerSafetyTools(): Tool[];
51
+ interface ToolCallResult$1 {
52
+ content: Array<{
53
+ type: "text";
54
+ text: string;
55
+ }>;
56
+ isError?: boolean;
57
+ }
58
+ declare function handleSafetyTool(name: string, args: Record<string, unknown>, context: ServerContext): Promise<ToolCallResult$1 | null>;
59
+
60
+ /**
61
+ * Context Tools
62
+ *
63
+ * MCP tools for stateful context tracking across agent sessions:
64
+ * - Dependency monitoring
65
+ * - Assumption tracking
66
+ * - Change history
67
+ * - Session context
68
+ */
69
+
70
+ declare function registerContextTools(): Tool[];
71
+ interface ToolCallResult {
72
+ content: Array<{
73
+ type: "text";
74
+ text: string;
75
+ }>;
76
+ isError?: boolean;
77
+ }
78
+ declare function handleContextTool(name: string, args: Record<string, unknown>, context: ServerContext): Promise<ToolCallResult | null>;
79
+
80
+ export { type ServerContext, handleContextTool, handleSafetyTool, handleValidationTool, registerContextTools, registerSafetyTools, registerValidationTools, startMcpServer };