@lensagent/core 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.
- package/LICENSE +21 -0
- package/README.md +48 -0
- package/config/lens.example.jsonc +92 -0
- package/config/pair.example.json +3 -0
- package/dist/adapters/executor.d.ts +35 -0
- package/dist/adapters/executor.js +296 -0
- package/dist/adapters/lsp.d.ts +18 -0
- package/dist/adapters/lsp.js +218 -0
- package/dist/adapters/mcp.d.ts +32 -0
- package/dist/adapters/mcp.js +283 -0
- package/dist/adapters/revert.d.ts +12 -0
- package/dist/adapters/revert.js +155 -0
- package/dist/config/runtime.d.ts +55 -0
- package/dist/config/runtime.js +371 -0
- package/dist/config/schema.d.ts +292 -0
- package/dist/config/schema.js +177 -0
- package/dist/contracts/adapter.d.ts +28 -0
- package/dist/contracts/adapter.js +8 -0
- package/dist/contracts/capability.d.ts +41 -0
- package/dist/contracts/capability.js +1 -0
- package/dist/contracts/domain.d.ts +61 -0
- package/dist/contracts/domain.js +1 -0
- package/dist/contracts/index.d.ts +5 -0
- package/dist/contracts/index.js +5 -0
- package/dist/contracts/model.d.ts +77 -0
- package/dist/contracts/model.js +1 -0
- package/dist/contracts/ports.d.ts +14 -0
- package/dist/contracts/ports.js +14 -0
- package/dist/core/access.d.ts +24 -0
- package/dist/core/access.js +205 -0
- package/dist/core/codec.d.ts +33 -0
- package/dist/core/codec.js +105 -0
- package/dist/core/domain.d.ts +13 -0
- package/dist/core/domain.js +24 -0
- package/dist/core/host.d.ts +19 -0
- package/dist/core/host.js +249 -0
- package/dist/core/identity.d.ts +19 -0
- package/dist/core/identity.js +54 -0
- package/dist/entry/bun.d.ts +1 -0
- package/dist/entry/bun.js +2 -0
- package/dist/entry/node.d.ts +2 -0
- package/dist/entry/node.js +3 -0
- package/dist/entry/rebuild.d.ts +1 -0
- package/dist/entry/rebuild.js +47 -0
- package/dist/entry/run.d.ts +1 -0
- package/dist/entry/run.js +43 -0
- package/dist/execution/lsp-process.d.ts +14 -0
- package/dist/execution/lsp-process.js +234 -0
- package/dist/http/server.d.ts +34 -0
- package/dist/http/server.js +1332 -0
- package/dist/launch.d.ts +3 -0
- package/dist/launch.js +4 -0
- package/dist/runtime/agent.d.ts +35 -0
- package/dist/runtime/agent.js +853 -0
- package/dist/runtime/artifacts.d.ts +15 -0
- package/dist/runtime/artifacts.js +72 -0
- package/dist/runtime/cache.d.ts +20 -0
- package/dist/runtime/cache.js +44 -0
- package/dist/runtime/calls.d.ts +21 -0
- package/dist/runtime/calls.js +130 -0
- package/dist/runtime/capabilities.d.ts +58 -0
- package/dist/runtime/capabilities.js +196 -0
- package/dist/runtime/cleanup.d.ts +7 -0
- package/dist/runtime/cleanup.js +33 -0
- package/dist/runtime/context.d.ts +34 -0
- package/dist/runtime/context.js +169 -0
- package/dist/runtime/diagnostics.d.ts +8 -0
- package/dist/runtime/diagnostics.js +71 -0
- package/dist/runtime/events.d.ts +22 -0
- package/dist/runtime/events.js +131 -0
- package/dist/runtime/kernel-capabilities.d.ts +32 -0
- package/dist/runtime/kernel-capabilities.js +200 -0
- package/dist/runtime/manifests.d.ts +14 -0
- package/dist/runtime/manifests.js +117 -0
- package/dist/runtime/model.d.ts +20 -0
- package/dist/runtime/model.js +241 -0
- package/dist/runtime/observability.d.ts +22 -0
- package/dist/runtime/observability.js +104 -0
- package/dist/runtime/policy.d.ts +8 -0
- package/dist/runtime/policy.js +31 -0
- package/dist/runtime/profile.d.ts +8 -0
- package/dist/runtime/profile.js +52 -0
- package/dist/runtime/projects.d.ts +40 -0
- package/dist/runtime/projects.js +115 -0
- package/dist/runtime/results.d.ts +7 -0
- package/dist/runtime/results.js +55 -0
- package/dist/runtime/review.d.ts +9 -0
- package/dist/runtime/review.js +54 -0
- package/dist/runtime/scheduler.d.ts +15 -0
- package/dist/runtime/scheduler.js +85 -0
- package/dist/runtime/skills.d.ts +2 -0
- package/dist/runtime/skills.js +83 -0
- package/dist/runtime/tokenizer.d.ts +8 -0
- package/dist/runtime/tokenizer.js +30 -0
- package/dist/store/database.d.ts +3 -0
- package/dist/store/database.js +49 -0
- package/dist/store/event-log.d.ts +19 -0
- package/dist/store/event-log.js +61 -0
- package/dist/store/schema.d.ts +1 -0
- package/dist/store/schema.js +347 -0
- package/dist/store/store.d.ts +344 -0
- package/dist/store/store.js +2554 -0
- package/package.json +73 -0
- package/proto/executor.proto +314 -0
package/dist/launch.d.ts
ADDED
package/dist/launch.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ConfigRuntime } from '../config/runtime.js';
|
|
2
|
+
import type { Document, IngressCommand, Store } from '../store/store.js';
|
|
3
|
+
import type { CallRuntime } from './calls.js';
|
|
4
|
+
import type { CapabilityRegistry } from './capabilities.js';
|
|
5
|
+
import type { ContextEngine } from './context.js';
|
|
6
|
+
import type { AiModelGateway } from './model.js';
|
|
7
|
+
import type { AutoReviewer } from './review.js';
|
|
8
|
+
import type { EventBus } from './events.js';
|
|
9
|
+
export interface SubagentCreateInput {
|
|
10
|
+
readonly parentAgentId: string;
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly forkContext: 'full' | 'compact' | 'none';
|
|
13
|
+
readonly model?: string;
|
|
14
|
+
readonly modelReasoningEffort?: string;
|
|
15
|
+
readonly initialPrompt?: string;
|
|
16
|
+
readonly initialMessage?: string;
|
|
17
|
+
readonly ingress?: IngressCommand;
|
|
18
|
+
}
|
|
19
|
+
export declare class AgentRuntime {
|
|
20
|
+
#private;
|
|
21
|
+
readonly store: Store;
|
|
22
|
+
readonly config: ConfigRuntime;
|
|
23
|
+
readonly context: ContextEngine;
|
|
24
|
+
readonly gateway: AiModelGateway;
|
|
25
|
+
readonly registry: CapabilityRegistry;
|
|
26
|
+
readonly calls: CallRuntime;
|
|
27
|
+
readonly reviewer: AutoReviewer;
|
|
28
|
+
readonly events: EventBus;
|
|
29
|
+
constructor(store: Store, config: ConfigRuntime, context: ContextEngine, gateway: AiModelGateway, registry: CapabilityRegistry, calls: CallRuntime, reviewer: AutoReviewer, events: EventBus);
|
|
30
|
+
wake(projectId: string, agentId: string): void;
|
|
31
|
+
cancel(projectId: string, agentId: string): void;
|
|
32
|
+
close(): Promise<void>;
|
|
33
|
+
compact(projectId: string, agentId: string, expectedContextRevision: number, pivotTurnGroupId: string | undefined, signal: AbortSignal): Promise<Document>;
|
|
34
|
+
createSubagent(projectId: string, input: SubagentCreateInput, signal: AbortSignal): Promise<Document>;
|
|
35
|
+
}
|