@noetic-tools/core 0.1.0 → 0.1.1
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/README.md +31 -11
- package/dist/adapters/in-memory-fs-adapter.d.ts +1 -1
- package/dist/adapters/in-memory-fs-adapter.js +1 -1
- package/dist/adapters/in-memory-shell-adapter.d.ts +1 -1
- package/dist/adapters/in-memory-subprocess/manifest-persistence.d.ts +3 -3
- package/dist/adapters/in-memory-subprocess/manifest-persistence.js +1 -1
- package/dist/adapters/in-memory-subprocess/metadata.d.ts +1 -1
- package/dist/adapters/in-memory-subprocess/step-completion.d.ts +1 -1
- package/dist/adapters/in-memory-subprocess/step-completion.js +1 -1
- package/dist/adapters/in-memory-subprocess/types.d.ts +2 -2
- package/dist/adapters/in-memory-subprocess-adapter.d.ts +3 -3
- package/dist/adapters/in-memory-subprocess-adapter.js +3 -3
- package/dist/adapters/openrouter.d.ts +7 -7
- package/dist/adapters/openrouter.js +5 -5
- package/dist/builders/channel-builder.d.ts +1 -1
- package/dist/builders/control-flow-builders.d.ts +3 -3
- package/dist/builders/control-flow-builders.js +3 -3
- package/dist/builders/every.d.ts +3 -3
- package/dist/builders/every.js +2 -2
- package/dist/builders/layer-provides-builders.d.ts +1 -1
- package/dist/builders/layer-provides-builders.js +1 -1
- package/dist/builders/loop-builder.d.ts +2 -2
- package/dist/builders/loop-builder.js +2 -2
- package/dist/builders/memory-builder.d.ts +1 -1
- package/dist/builders/memory-builder.js +1 -1
- package/dist/builders/provide-builder.d.ts +2 -2
- package/dist/builders/provide-builder.js +2 -2
- package/dist/builders/spawn-builder.d.ts +3 -3
- package/dist/builders/spawn-builder.js +2 -2
- package/dist/builders/step-builders.d.ts +6 -6
- package/dist/builders/step-builders.js +2 -2
- package/dist/builders/tool-builder.d.ts +3 -3
- package/dist/builders/tool-builder.js +1 -1
- package/dist/builders/workflow-hydrator.d.ts +4 -4
- package/dist/builders/workflow-hydrator.js +10 -10
- package/dist/conditions/conditions.d.ts +4 -4
- package/dist/conditions/conditions.js +2 -2
- package/dist/errors/noetic-error.d.ts +1 -1
- package/dist/harness/agent-harness.d.ts +6 -6
- package/dist/harness/agent-harness.js +13 -13
- package/dist/harness/deps/adapters.d.ts +3 -3
- package/dist/harness/deps/adapters.js +3 -3
- package/dist/harness/deps/interpreter.d.ts +5 -5
- package/dist/harness/deps/interpreter.js +4 -4
- package/dist/harness/deps/memory.d.ts +5 -5
- package/dist/harness/deps/memory.js +4 -4
- package/dist/harness/deps/runtime.d.ts +10 -10
- package/dist/harness/deps/runtime.js +7 -7
- package/dist/harness/deps/types.d.ts +16 -16
- package/dist/harness/deps/types.js +1 -1
- package/dist/harness/model-call.d.ts +4 -4
- package/dist/harness/model-call.js +5 -5
- package/dist/harness/model-schema.d.ts +4 -4
- package/dist/harness/model-schema.js +1 -1
- package/dist/harness/step-bootstrap.js +2 -2
- package/dist/index.d.ts +96 -94
- package/dist/index.js +57 -55
- package/dist/internal-test.d.ts +4 -4
- package/dist/internal-test.js +4 -4
- package/dist/interpreter/action-deps.d.ts +12 -12
- package/dist/interpreter/action-deps.js +10 -10
- package/dist/interpreter/action-types.d.ts +8 -8
- package/dist/interpreter/action-types.js +1 -1
- package/dist/interpreter/collect-tools.d.ts +2 -2
- package/dist/interpreter/collect-tools.js +1 -1
- package/dist/interpreter/execute-action.d.ts +2 -2
- package/dist/interpreter/execute-action.js +10 -10
- package/dist/interpreter/execute-control.d.ts +2 -2
- package/dist/interpreter/execute-control.js +7 -7
- package/dist/interpreter/execute.d.ts +3 -3
- package/dist/interpreter/execute.js +8 -8
- package/dist/interpreter/message-helpers.d.ts +1 -1
- package/dist/interpreter/message-helpers.js +1 -1
- package/dist/interpreter/step-dispatcher.d.ts +5 -5
- package/dist/interpreter/step-dispatcher.js +2 -2
- package/dist/interpreter/typeguards.d.ts +7 -7
- package/dist/interpreter/typeguards.js +2 -2
- package/dist/memory/budget.d.ts +2 -2
- package/dist/memory/budget.js +1 -1
- package/dist/memory/exec-context-factory.d.ts +2 -2
- package/dist/memory/exec-context-factory.js +1 -1
- package/dist/memory/function-call-utils.d.ts +1 -1
- package/dist/memory/function-call-utils.js +1 -1
- package/dist/memory/layer-api.d.ts +4 -4
- package/dist/memory/layer-api.js +2 -2
- package/dist/memory/layer-lifecycle.d.ts +6 -6
- package/dist/memory/layer-lifecycle.js +6 -6
- package/dist/memory/layer-provides.d.ts +1 -1
- package/dist/memory/layer-usage.d.ts +4 -4
- package/dist/memory/layer-usage.js +1 -1
- package/dist/memory/layers/durable-task-state.d.ts +8 -8
- package/dist/memory/layers/durable-task-state.js +2 -2
- package/dist/memory/layers/file-reference.d.ts +1 -1
- package/dist/memory/layers/file-reference.js +2 -2
- package/dist/memory/layers/history-window.d.ts +1 -1
- package/dist/memory/layers/history-window.js +4 -4
- package/dist/memory/layers/observational-memory.d.ts +5 -5
- package/dist/memory/layers/observational-memory.js +2 -2
- package/dist/memory/layers/plan.d.ts +2 -2
- package/dist/memory/layers/plan.js +5 -5
- package/dist/memory/layers/static-content.d.ts +2 -2
- package/dist/memory/layers/static-content.js +1 -1
- package/dist/memory/layers/steering.d.ts +7 -7
- package/dist/memory/layers/steering.js +5 -5
- package/dist/memory/layers/tool-memory-layer.d.ts +2 -2
- package/dist/memory/layers/tool-memory-layer.js +1 -1
- package/dist/memory/layers/working-memory.d.ts +7 -7
- package/dist/memory/layers/working-memory.js +4 -4
- package/dist/memory/projector.d.ts +2 -2
- package/dist/memory/scope.d.ts +1 -1
- package/dist/memory/strip-unresolved.d.ts +1 -1
- package/dist/observability/span-impl.d.ts +1 -1
- package/dist/observability/trace-exporter.d.ts +2 -2
- package/dist/observability/trace-exporter.js +1 -1
- package/dist/patterns/dynamic-workflow.d.ts +5 -5
- package/dist/patterns/dynamic-workflow.js +5 -5
- package/dist/patterns/flow.d.ts +2 -2
- package/dist/patterns/flow.js +1 -1
- package/dist/patterns/interview.d.ts +2 -2
- package/dist/patterns/interview.js +5 -5
- package/dist/patterns/plans.d.ts +3 -3
- package/dist/patterns/plans.js +2 -2
- package/dist/patterns/ralph-wiggum.d.ts +4 -4
- package/dist/patterns/ralph-wiggum.js +5 -5
- package/dist/patterns/react.d.ts +3 -3
- package/dist/patterns/react.js +5 -5
- package/dist/portable/adapters.d.ts +3 -3
- package/dist/portable/adapters.js +3 -3
- package/dist/portable/ask-user.d.ts +2 -2
- package/dist/portable/ask-user.js +1 -1
- package/dist/portable/builders.d.ts +6 -6
- package/dist/portable/builders.js +6 -6
- package/dist/portable/memory-layers.d.ts +6 -6
- package/dist/portable/memory-layers.js +6 -6
- package/dist/portable/runtime.d.ts +2 -2
- package/dist/portable/runtime.js +2 -2
- package/dist/portable/until.d.ts +2 -2
- package/dist/portable/until.js +2 -2
- package/dist/portable.d.ts +7 -7
- package/dist/portable.js +7 -7
- package/dist/runtime/broadcaster-utils.d.ts +2 -2
- package/dist/runtime/channel-store.d.ts +1 -1
- package/dist/runtime/channel-store.js +2 -2
- package/dist/runtime/context-deps.d.ts +4 -4
- package/dist/runtime/context-deps.js +2 -2
- package/dist/runtime/context-impl.d.ts +1 -1
- package/dist/runtime/context-impl.js +2 -2
- package/dist/runtime/context-type-deps.d.ts +14 -14
- package/dist/runtime/cwd-helpers.d.ts +1 -1
- package/dist/runtime/detached-handle.d.ts +3 -3
- package/dist/runtime/detached-handle.js +3 -3
- package/dist/runtime/durable/checkpoint-store.d.ts +2 -2
- package/dist/runtime/durable/checkpoint-store.js +2 -2
- package/dist/runtime/durable/harness-checkpoints.d.ts +6 -6
- package/dist/runtime/durable/harness-checkpoints.js +2 -2
- package/dist/runtime/durable/index.d.ts +10 -10
- package/dist/runtime/durable/index.js +5 -5
- package/dist/runtime/durable/runnable-loop.d.ts +4 -4
- package/dist/runtime/durable/session-seed.d.ts +1 -1
- package/dist/runtime/durable/stall-nudge.d.ts +3 -3
- package/dist/runtime/event-broadcaster.d.ts +1 -1
- package/dist/runtime/in-memory-storage.d.ts +1 -1
- package/dist/runtime/in-memory-storage.js +1 -1
- package/dist/runtime/item-log-impl.d.ts +3 -3
- package/dist/runtime/item-log-impl.js +1 -1
- package/dist/runtime/message-queue.d.ts +2 -2
- package/dist/runtime/session-runner.d.ts +7 -7
- package/dist/runtime/session-runner.js +3 -3
- package/dist/runtime/session-streams.d.ts +3 -3
- package/dist/runtime/session-streams.js +1 -1
- package/dist/runtime/step-registry.d.ts +2 -2
- package/dist/runtime/step-registry.js +3 -3
- package/dist/runtime/tool-memory.d.ts +3 -3
- package/dist/schemas/item.d.ts +1 -1
- package/dist/types/common.d.ts +1 -1
- package/dist/types/context-parts/item-log.d.ts +1 -1
- package/dist/types/context-parts/layer-usage.d.ts +1 -1
- package/dist/types/context.d.ts +23 -23
- package/dist/types/harness-result.d.ts +2 -2
- package/dist/types/memory-context.d.ts +4 -4
- package/dist/types/memory.d.ts +6 -6
- package/dist/types/mutable-context.d.ts +3 -3
- package/dist/types/runtime.d.ts +14 -14
- package/dist/types/steering.d.ts +2 -2
- package/dist/types/step-registrar.d.ts +1 -1
- package/dist/types/step.d.ts +7 -7
- package/dist/types/tool-context.d.ts +6 -6
- package/dist/types/tool.d.ts +1 -1
- package/dist/unstable.d.ts +8 -8
- package/dist/unstable.js +6 -6
- package/dist/until/combinators.d.ts +1 -1
- package/dist/until/never.d.ts +1 -1
- package/dist/until/predicates.d.ts +4 -4
- package/dist/until/predicates.js +2 -2
- package/dist/util/message-helpers.d.ts +3 -3
- package/package.json +6 -4
- package/dist/conditions/index.d.ts +0 -3
- package/dist/conditions/index.js +0 -2
package/README.md
CHANGED
|
@@ -5,33 +5,53 @@ Core primitives for the [Noetic](https://github.com/mattapperson/noetic) agent f
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @noetic-tools/core
|
|
8
|
+
npm install @noetic-tools/core
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
`@openrouter/agent`
|
|
11
|
+
`@noetic-tools/core` depends on `@openrouter/agent` (the OpenRouter LLM adapter) and `zod`; your package manager installs both automatically. Runs on Node.js 18+ and Bun.
|
|
12
|
+
|
|
13
|
+
## Set your API key
|
|
14
|
+
|
|
15
|
+
Noetic talks to LLMs through [OpenRouter](https://openrouter.ai). Grab a key at [openrouter.ai/keys](https://openrouter.ai/keys) and export it — the runtime reads `OPENROUTER_API_KEY` by default:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
export OPENROUTER_API_KEY=sk-or-...
|
|
19
|
+
```
|
|
12
20
|
|
|
13
21
|
## Quick start
|
|
14
22
|
|
|
23
|
+
A complete, runnable program. Save it as `agent.mjs` and run `node agent.mjs`:
|
|
24
|
+
|
|
15
25
|
```ts
|
|
16
26
|
import { AgentHarness, step } from '@noetic-tools/core';
|
|
17
27
|
|
|
18
|
-
|
|
19
|
-
model: 'anthropic/claude-sonnet-4',
|
|
20
|
-
llm: { apiKey: process.env.OPENROUTER_API_KEY },
|
|
21
|
-
});
|
|
22
|
-
|
|
28
|
+
// 1. Define a single LLM step. `model` and `instructions` live here.
|
|
23
29
|
const greet = step.llm({
|
|
24
30
|
id: 'greet',
|
|
25
|
-
|
|
31
|
+
model: 'openai/gpt-4o-mini', // any OpenRouter model id (provider/model)
|
|
32
|
+
instructions: 'You are a friendly assistant. Greet the user by name in one short sentence.',
|
|
26
33
|
});
|
|
27
34
|
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
// 2. Create the harness. `name` and `params` are required; `llm` selects the provider.
|
|
36
|
+
const harness = new AgentHarness({
|
|
37
|
+
name: 'greeter',
|
|
38
|
+
params: {},
|
|
39
|
+
llm: { provider: 'openrouter' }, // apiKey defaults to process.env.OPENROUTER_API_KEY
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// 3. Run the step with a context and print the model's reply.
|
|
43
|
+
const ctx = harness.createContext();
|
|
44
|
+
const reply = await harness.run(greet, 'Sam', ctx);
|
|
45
|
+
console.log(reply); // -> "Hello, Sam! How can I help you today?"
|
|
30
46
|
```
|
|
31
47
|
|
|
48
|
+
**Using TypeScript?** Save the file as `agent.ts` and run it with `bunx tsx agent.ts` (or `bun run agent.ts`) — both execute TypeScript directly, no build step.
|
|
49
|
+
|
|
50
|
+
Model ids use OpenRouter's `provider/model` format (e.g. `openai/gpt-4o`, `anthropic/claude-sonnet-4`) — see [openrouter.ai/models](https://openrouter.ai/models).
|
|
51
|
+
|
|
32
52
|
## Documentation
|
|
33
53
|
|
|
34
|
-
Full docs, specs, and examples live in the [main repo](https://github.com/mattapperson/noetic).
|
|
54
|
+
Full docs, specs, and examples live at [noetic.tools/docs](https://noetic.tools/docs) and in the [main repo](https://github.com/mattapperson/noetic).
|
|
35
55
|
|
|
36
56
|
## License
|
|
37
57
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FsAdapter } from '../types/fs-adapter';
|
|
1
|
+
import type { FsAdapter } from '../types/fs-adapter.js';
|
|
2
2
|
/** @public Create a process-local, POSIX-like in-memory filesystem adapter. */
|
|
3
3
|
export declare function createInMemoryFsAdapter(seed?: Record<string, string | Uint8Array>): FsAdapter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { StorageAdapter } from '../../types/memory';
|
|
2
|
-
import type { StepSubprocessRequest, SubprocessHandle } from '../../types/subprocess-adapter';
|
|
3
|
-
import type { InMemoryStepManifest } from './types';
|
|
1
|
+
import type { StorageAdapter } from '../../types/memory.js';
|
|
2
|
+
import type { StepSubprocessRequest, SubprocessHandle } from '../../types/subprocess-adapter.js';
|
|
3
|
+
import type { InMemoryStepManifest } from './types.js';
|
|
4
4
|
export declare function isStepManifest(value: unknown): value is InMemoryStepManifest;
|
|
5
5
|
export declare function persistStepManifest(storage: StorageAdapter, request: StepSubprocessRequest, handle: SubprocessHandle): Promise<void>;
|
|
6
6
|
export declare function clearManifest(storage: StorageAdapter, handleId: string): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProcessSubprocessRequest, SerializedError, StepSubprocessRequest, SubprocessHandleMetadata, SubprocessRequest } from '../../types/subprocess-adapter';
|
|
1
|
+
import type { ProcessSubprocessRequest, SerializedError, StepSubprocessRequest, SubprocessHandleMetadata, SubprocessRequest } from '../../types/subprocess-adapter.js';
|
|
2
2
|
export declare function nowIso(): string;
|
|
3
3
|
export declare function isStepRequest(request: SubprocessRequest): request is StepSubprocessRequest;
|
|
4
4
|
export declare function isProcessRequest(request: SubprocessRequest): request is ProcessSubprocessRequest;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { CompleteProcessRunParams, CompleteStepRunParams } from './types';
|
|
1
|
+
import type { CompleteProcessRunParams, CompleteStepRunParams } from './types.js';
|
|
2
2
|
export declare function completeProcessRun({ request, handle, run, handles, active, save, clearIfDurable, }: CompleteProcessRunParams): Promise<void>;
|
|
3
3
|
export declare function completeStepRun({ request, handle, stepRunner, handles, active, save, clearIfDurable, }: CompleteStepRunParams): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StorageAdapter } from '../../types/memory';
|
|
2
|
-
import type { ProcessSubprocessRequest, StepSubprocessRequest, SubprocessHandle, SubprocessHandleMetadata, SubprocessRequest } from '../../types/subprocess-adapter';
|
|
1
|
+
import type { StorageAdapter } from '../../types/memory.js';
|
|
2
|
+
import type { ProcessSubprocessRequest, StepSubprocessRequest, SubprocessHandle, SubprocessHandleMetadata, SubprocessRequest } from '../../types/subprocess-adapter.js';
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
* Options for `createInMemorySubprocessAdapter`. All hooks are optional;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SubprocessAdapter } from '../types/subprocess-adapter';
|
|
2
|
-
import type { CreateInMemorySubprocessAdapterOptions } from './in-memory-subprocess/types';
|
|
3
|
-
export type { CreateInMemorySubprocessAdapterOptions } from './in-memory-subprocess/types';
|
|
1
|
+
import type { SubprocessAdapter } from '../types/subprocess-adapter.js';
|
|
2
|
+
import type { CreateInMemorySubprocessAdapterOptions } from './in-memory-subprocess/types.js';
|
|
3
|
+
export type { CreateInMemorySubprocessAdapterOptions } from './in-memory-subprocess/types.js';
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
* In-memory `SubprocessAdapter` for tests and non-durable in-process
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { clearManifest, listManifests, loadManifest, persistStepManifest, } from './in-memory-subprocess/manifest-persistence';
|
|
2
|
-
import { buildProcessMetadata, buildStepMetadata, isProcessRequest, isStepRequest, nowIso, } from './in-memory-subprocess/metadata';
|
|
3
|
-
import { completeProcessRun, completeStepRun } from './in-memory-subprocess/step-completion';
|
|
1
|
+
import { clearManifest, listManifests, loadManifest, persistStepManifest, } from './in-memory-subprocess/manifest-persistence.js';
|
|
2
|
+
import { buildProcessMetadata, buildStepMetadata, isProcessRequest, isStepRequest, nowIso, } from './in-memory-subprocess/metadata.js';
|
|
3
|
+
import { completeProcessRun, completeStepRun } from './in-memory-subprocess/step-completion.js';
|
|
4
4
|
//#region Factory
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type * as OpenRouterAgent from '@openrouter/agent';
|
|
2
|
-
import type { LLMResponse } from '../types/common';
|
|
3
|
-
import type { Context } from '../types/context';
|
|
4
|
-
import type { EmbedFn } from '../types/embed';
|
|
5
|
-
import type { Item } from '../types/items';
|
|
6
|
-
import type { MemoryLayer } from '../types/memory';
|
|
7
|
-
import type { AgentHarnessContract } from '../types/runtime';
|
|
8
|
-
import type { Tool } from '../types/tool';
|
|
2
|
+
import type { LLMResponse } from '../types/common.js';
|
|
3
|
+
import type { Context } from '../types/context.js';
|
|
4
|
+
import type { EmbedFn } from '../types/embed.js';
|
|
5
|
+
import type { Item } from '../types/items.js';
|
|
6
|
+
import type { MemoryLayer } from '../types/memory.js';
|
|
7
|
+
import type { AgentHarnessContract } from '../types/runtime.js';
|
|
8
|
+
import type { Tool } from '../types/tool.js';
|
|
9
9
|
type ProviderOutputItem = OpenRouterAgent.OpenResponsesResult['output'][number];
|
|
10
10
|
type OpenRouterInputItem = OpenRouterAgent.EasyInputMessage | OpenRouterAgent.FunctionCallItem | OpenRouterAgent.FunctionCallOutputItem | ProviderOutputItem;
|
|
11
11
|
/** @internal */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { NoeticConfigError } from '../errors/noetic-config-error';
|
|
3
|
-
import { buildToolExecutionContext } from '../runtime/tool-memory';
|
|
4
|
-
import { SteeringAction } from '../types/steering';
|
|
5
|
-
import { frameworkCast } from '../util/framework-cast';
|
|
6
|
-
import { isAssistantMessage } from '../util/message-helpers';
|
|
2
|
+
import { NoeticConfigError } from '../errors/noetic-config-error.js';
|
|
3
|
+
import { buildToolExecutionContext } from '../runtime/tool-memory.js';
|
|
4
|
+
import { SteeringAction } from '../types/steering.js';
|
|
5
|
+
import { frameworkCast } from '../util/framework-cast.js';
|
|
6
|
+
import { isAssistantMessage } from '../util/message-helpers.js';
|
|
7
7
|
const EmbeddingsResponseSchema = z.object({
|
|
8
8
|
data: z.array(z.object({
|
|
9
9
|
embedding: z.array(z.number()),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Context } from '../types/context';
|
|
2
|
-
import type { ContextMemory } from '../types/memory';
|
|
3
|
-
import type { SettleResult, Step, StepBranch, StepForkAll, StepForkRace, StepForkSettle } from '../types/step';
|
|
1
|
+
import type { Context } from '../types/context.js';
|
|
2
|
+
import type { ContextMemory } from '../types/memory.js';
|
|
3
|
+
import type { SettleResult, Step, StepBranch, StepForkAll, StepForkRace, StepForkSettle } from '../types/step.js';
|
|
4
4
|
/**
|
|
5
5
|
* Creates a parallel execution step that races paths and returns the first result.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NoeticConfigError } from '../errors/noetic-config-error';
|
|
2
|
-
import { getDefaultRegistrar } from '../types/step-registrar';
|
|
3
|
-
import { frameworkCast } from '../util/framework-cast';
|
|
1
|
+
import { NoeticConfigError } from '../errors/noetic-config-error.js';
|
|
2
|
+
import { getDefaultRegistrar } from '../types/step-registrar.js';
|
|
3
|
+
import { frameworkCast } from '../util/framework-cast.js';
|
|
4
4
|
export function fork(opts) {
|
|
5
5
|
if (!opts.id || opts.id.trim() === '') {
|
|
6
6
|
throw new NoeticConfigError({
|
package/dist/builders/every.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Channel } from '../types/channel';
|
|
2
|
-
import type { ContextMemory } from '../types/memory';
|
|
3
|
-
import type { EveryErrorPolicy, Step, StepEvery } from '../types/step';
|
|
1
|
+
import type { Channel } from '../types/channel.js';
|
|
2
|
+
import type { ContextMemory } from '../types/memory.js';
|
|
3
|
+
import type { EveryErrorPolicy, Step, StepEvery } from '../types/step.js';
|
|
4
4
|
/**
|
|
5
5
|
* Configuration options accepted by the `every()` builder, excluding the `kind`
|
|
6
6
|
* discriminant. `every()` schedules a body step on a fixed-interval, optionally
|
package/dist/builders/every.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NoeticConfigError } from '../errors/noetic-config-error';
|
|
2
|
-
import { getDefaultRegistrar } from '../types/step-registrar';
|
|
1
|
+
import { NoeticConfigError } from '../errors/noetic-config-error.js';
|
|
2
|
+
import { getDefaultRegistrar } from '../types/step-registrar.js';
|
|
3
3
|
/**
|
|
4
4
|
* Creates an `every` step that runs a body step on a fixed-interval schedule.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { layerData, layerFn } from '../memory/layer-provides';
|
|
1
|
+
export { layerData, layerFn } from '../memory/layer-provides.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { layerData, layerFn } from '../memory/layer-provides';
|
|
1
|
+
export { layerData, layerFn } from '../memory/layer-provides.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ContextMemory } from '../types/memory';
|
|
2
|
-
import type { StepLoop } from '../types/step';
|
|
1
|
+
import type { ContextMemory } from '../types/memory.js';
|
|
2
|
+
import type { StepLoop } from '../types/step.js';
|
|
3
3
|
/** @public Configuration options accepted by the `loop()` builder, excluding the `kind` discriminant. */
|
|
4
4
|
export type LoopConfig<TMemory = ContextMemory, I = unknown, O = unknown> = Omit<StepLoop<TMemory, I, O>, 'kind'>;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NoeticConfigError } from '../errors/noetic-config-error';
|
|
2
|
-
import { getDefaultRegistrar } from '../types/step-registrar';
|
|
1
|
+
import { NoeticConfigError } from '../errors/noetic-config-error.js';
|
|
2
|
+
import { getDefaultRegistrar } from '../types/step-registrar.js';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a loop step that iterates a body step until a termination predicate is satisfied.
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MemoryConfig, MemoryLayer } from '../types/memory';
|
|
1
|
+
import type { MemoryConfig, MemoryLayer } from '../types/memory.js';
|
|
2
2
|
/**
|
|
3
3
|
* Creates a type-safe memory configuration from a tuple of memory layers.
|
|
4
4
|
* The returned config preserves literal layer types for compile-time inference
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { frameworkCast } from '../util/framework-cast';
|
|
1
|
+
import { frameworkCast } from '../util/framework-cast.js';
|
|
2
2
|
/**
|
|
3
3
|
* Creates a type-safe memory configuration from a tuple of memory layers.
|
|
4
4
|
* The returned config preserves literal layer types for compile-time inference
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ContextMemory, MemoryConfig, MemoryLayer } from '../types/memory';
|
|
2
|
-
import type { Step, StepProvide } from '../types/step';
|
|
1
|
+
import type { ContextMemory, MemoryConfig, MemoryLayer } from '../types/memory.js';
|
|
2
|
+
import type { Step, StepProvide } from '../types/step.js';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a provide step that attaches memory layers to its child without creating an isolated context.
|
|
5
5
|
* Like React's Context.Provider — layers are available to all descendant steps.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NoeticConfigError } from '../errors/noetic-config-error';
|
|
2
|
-
import { getDefaultRegistrar } from '../types/step-registrar';
|
|
1
|
+
import { NoeticConfigError } from '../errors/noetic-config-error.js';
|
|
2
|
+
import { getDefaultRegistrar } from '../types/step-registrar.js';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a provide step that attaches memory layers to its child without creating an isolated context.
|
|
5
5
|
* Like React's Context.Provider — layers are available to all descendant steps.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ContextMemory, MemoryConfig, MemoryLayer } from '../types/memory';
|
|
2
|
-
import type { Step, StepSpawn } from '../types/step';
|
|
3
|
-
import type { SubprocessAdapter } from '../types/subprocess-adapter';
|
|
1
|
+
import type { ContextMemory, MemoryConfig, MemoryLayer } from '../types/memory.js';
|
|
2
|
+
import type { Step, StepSpawn } from '../types/step.js';
|
|
3
|
+
import type { SubprocessAdapter } from '../types/subprocess-adapter.js';
|
|
4
4
|
interface SpawnOpts<TMemory, I, O> {
|
|
5
5
|
id: string;
|
|
6
6
|
child: Step<TMemory, I, O>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NoeticConfigError } from '../errors/noetic-config-error';
|
|
2
|
-
import { getDefaultRegistrar } from '../types/step-registrar';
|
|
1
|
+
import { NoeticConfigError } from '../errors/noetic-config-error.js';
|
|
2
|
+
import { getDefaultRegistrar } from '../types/step-registrar.js';
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region Public API
|
|
5
5
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ZodType } from 'zod';
|
|
2
|
-
import type { ModelParams, RetryPolicy } from '../types/common';
|
|
3
|
-
import type { Context } from '../types/context';
|
|
4
|
-
import type { ContextMemory } from '../types/memory';
|
|
5
|
-
import type { Lazy, StepLLM, StepRun, StepTool } from '../types/step';
|
|
6
|
-
import type { SubprocessAdapter } from '../types/subprocess-adapter';
|
|
7
|
-
import type { Tool } from '../types/tool';
|
|
2
|
+
import type { ModelParams, RetryPolicy } from '../types/common.js';
|
|
3
|
+
import type { Context } from '../types/context.js';
|
|
4
|
+
import type { ContextMemory } from '../types/memory.js';
|
|
5
|
+
import type { Lazy, StepLLM, StepRun, StepTool } from '../types/step.js';
|
|
6
|
+
import type { SubprocessAdapter } from '../types/subprocess-adapter.js';
|
|
7
|
+
import type { Tool } from '../types/tool.js';
|
|
8
8
|
interface StepRunOpts<TMemory, I, O> {
|
|
9
9
|
id: string;
|
|
10
10
|
execute: (input: I, ctx: Context<TMemory>) => Promise<O>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NoeticConfigError } from '../errors/noetic-config-error';
|
|
2
|
-
import { getDefaultRegistrar } from '../types/step-registrar';
|
|
1
|
+
import { NoeticConfigError } from '../errors/noetic-config-error.js';
|
|
2
|
+
import { getDefaultRegistrar } from '../types/step-registrar.js';
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region Builders
|
|
5
5
|
export const step = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ZodTypeAny, z } from 'zod';
|
|
2
|
-
import type { FunctionCallItem, FunctionCallOutputItem, Item, ItemSchemaExtensions, ToolResultExtensionItem } from '../types/items';
|
|
3
|
-
import type { Tool, ToolMemoryDeclaration } from '../types/tool';
|
|
4
|
-
import type { ToolExecutionContext } from '../types/tool-context';
|
|
2
|
+
import type { FunctionCallItem, FunctionCallOutputItem, Item, ItemSchemaExtensions, ToolResultExtensionItem } from '../types/items.js';
|
|
3
|
+
import type { Tool, ToolMemoryDeclaration } from '../types/tool.js';
|
|
4
|
+
import type { ToolExecutionContext } from '../types/tool-context.js';
|
|
5
5
|
interface ToolConfig<I extends ZodTypeAny, O extends ZodTypeAny> {
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* `loop`, etc.) so hydrated steps are indistinguishable from programmatic
|
|
6
6
|
* ones — they register in the step registry, carry retry policies, etc.
|
|
7
7
|
*/
|
|
8
|
-
import type { WorkflowDocument, WorkflowNode } from '../schemas/workflow';
|
|
9
|
-
import type { ContextMemory, MemoryLayer } from '../types/memory';
|
|
10
|
-
import type { ExecuteStepFn, Step } from '../types/step';
|
|
11
|
-
import type { Tool } from '../types/tool';
|
|
8
|
+
import type { WorkflowDocument, WorkflowNode } from '../schemas/workflow.js';
|
|
9
|
+
import type { ContextMemory, MemoryLayer } from '../types/memory.js';
|
|
10
|
+
import type { ExecuteStepFn, Step } from '../types/step.js';
|
|
11
|
+
import type { Tool } from '../types/tool.js';
|
|
12
12
|
/** @public Context required to hydrate a JSON workflow into live steps. */
|
|
13
13
|
export interface HydrationContext {
|
|
14
14
|
tools: ReadonlyMap<string, Tool>;
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* `loop`, etc.) so hydrated steps are indistinguishable from programmatic
|
|
6
6
|
* ones — they register in the step registry, carry retry policies, etc.
|
|
7
7
|
*/
|
|
8
|
-
import { NoeticConfigError } from '../errors/noetic-config-error';
|
|
9
|
-
import { all, any } from '../until/combinators';
|
|
10
|
-
import { until } from '../until/predicates';
|
|
11
|
-
import { frameworkCast } from '../util/framework-cast';
|
|
12
|
-
import { branch, fork } from './control-flow-builders';
|
|
13
|
-
import { every } from './every';
|
|
14
|
-
import { loop } from './loop-builder';
|
|
15
|
-
import { provide } from './provide-builder';
|
|
16
|
-
import { spawn } from './spawn-builder';
|
|
17
|
-
import { step } from './step-builders';
|
|
8
|
+
import { NoeticConfigError } from '../errors/noetic-config-error.js';
|
|
9
|
+
import { all, any } from '../until/combinators.js';
|
|
10
|
+
import { until } from '../until/predicates.js';
|
|
11
|
+
import { frameworkCast } from '../util/framework-cast.js';
|
|
12
|
+
import { branch, fork } from './control-flow-builders.js';
|
|
13
|
+
import { every } from './every.js';
|
|
14
|
+
import { loop } from './loop-builder.js';
|
|
15
|
+
import { provide } from './provide-builder.js';
|
|
16
|
+
import { spawn } from './spawn-builder.js';
|
|
17
|
+
import { step } from './step-builders.js';
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region Until Predicate Hydration
|
|
20
20
|
function hydrateUntilPredicate(pred) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Context } from '../types/context';
|
|
2
|
-
import type { EmbedFn } from '../types/embed';
|
|
3
|
-
import type { ContextMemory, StorageAdapter } from '../types/memory';
|
|
4
|
-
import type { Step } from '../types/step';
|
|
1
|
+
import type { Context } from '../types/context.js';
|
|
2
|
+
import type { EmbedFn } from '../types/embed.js';
|
|
3
|
+
import type { ContextMemory, StorageAdapter } from '../types/memory.js';
|
|
4
|
+
import type { Step } from '../types/step.js';
|
|
5
5
|
export type Condition<I> = (input: I, ctx: Context) => Promise<boolean>;
|
|
6
6
|
export interface WhenClause<TMemory = ContextMemory, I = unknown, O = unknown> {
|
|
7
7
|
readonly kind: 'when';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createMessage, extractAssistantText, trackUsage } from '../util/message-helpers';
|
|
3
|
-
import { cosineSimilarity } from './cosine-similarity';
|
|
2
|
+
import { createMessage, extractAssistantText, trackUsage } from '../util/message-helpers.js';
|
|
3
|
+
import { cosineSimilarity } from './cosine-similarity.js';
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region Helpers
|
|
6
6
|
function serializeInput(input) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ItemSchemaRegistry } from '../schemas/item';
|
|
2
|
-
import type { DetachedSpawnOverrides } from './deps/interpreter';
|
|
3
|
-
import type { LayerStateStore } from './deps/memory';
|
|
4
|
-
import type { CheckpointStore, EventBroadcaster } from './deps/runtime';
|
|
5
|
-
import type { AgentConfig, AgentHarnessContract, AgentHooks, CallModelRequest, Channel, ChannelHandle, Context, ContextMemory, CwdState, DeliveryMode, DetachedHandle, ExecuteInput, ExecuteOptions, ExternalChannel, FsAdapter, HarnessResponse, HarnessStatus, Item, ItemSchemaExtensions, LLMResponse, LlmProviderConfig, MemoryLayer, RecallLayerOutput, SessionScope, ShellAdapter, Span, SteeringDecision, Step, StorageAdapter, StreamEvent, StreamingItem, SubprocessAdapter, Tool, TraceExporter, ZodType } from './deps/types';
|
|
6
|
-
export { createStreamIdleWatchdog } from './model-call';
|
|
1
|
+
import { ItemSchemaRegistry } from '../schemas/item.js';
|
|
2
|
+
import type { DetachedSpawnOverrides } from './deps/interpreter.js';
|
|
3
|
+
import type { LayerStateStore } from './deps/memory.js';
|
|
4
|
+
import type { CheckpointStore, EventBroadcaster } from './deps/runtime.js';
|
|
5
|
+
import type { AgentConfig, AgentHarnessContract, AgentHooks, CallModelRequest, Channel, ChannelHandle, Context, ContextMemory, CwdState, DeliveryMode, DetachedHandle, ExecuteInput, ExecuteOptions, ExternalChannel, FsAdapter, HarnessResponse, HarnessStatus, Item, ItemSchemaExtensions, LLMResponse, LlmProviderConfig, MemoryLayer, RecallLayerOutput, SessionScope, ShellAdapter, Span, SteeringDecision, Step, StorageAdapter, StreamEvent, StreamingItem, SubprocessAdapter, Tool, TraceExporter, ZodType } from './deps/types.js';
|
|
6
|
+
export { createStreamIdleWatchdog } from './model-call.js';
|
|
7
7
|
interface AgentHarnessOpts<TParams extends Record<string, unknown> = Record<string, unknown>> {
|
|
8
8
|
name: string;
|
|
9
9
|
initialStep?: Step<ContextMemory, string, string>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { NoeticConfigError } from '../errors/noetic-config-error';
|
|
2
|
-
import { SpanImpl } from '../observability/span-impl';
|
|
3
|
-
import { NoopExporter } from '../observability/trace-exporter';
|
|
4
|
-
import { ItemSchemaRegistry } from '../schemas/item';
|
|
5
|
-
import { frameworkCast } from '../util/framework-cast';
|
|
6
|
-
import { createInMemoryFsAdapter, createInMemoryShellAdapter, createInMemorySubprocessAdapter, OpenRouter, } from './deps/adapters';
|
|
7
|
-
import { collectAllTools, deduplicateTools, dispatchStepThroughAdapter, execute, } from './deps/interpreter';
|
|
8
|
-
import { afterModelCallLayers, assembleView, beforeToolCallLayers, contextToExecCtx, createLayerStateStore, disposeLayers, executeRerender, initLayers, projectHistoryLayers, recallLayers, resolveLayerBudgets, resolveLayerTools, runAppendPipeline, storeLayers, } from './deps/memory';
|
|
9
|
-
import { buildItemStream, ChannelStore, ContextImpl, captureCheckpoint, createInMemoryStorage, filterReasoningStream, filterTextStream, restoreFromCheckpoint, SessionRunner, snapshotCwdState, } from './deps/runtime';
|
|
10
|
-
import { SteeringAction } from './deps/types';
|
|
11
|
-
import { AgentHarnessModelCaller } from './model-call';
|
|
12
|
-
export { createStreamIdleWatchdog } from './model-call';
|
|
13
|
-
import { buildItemSchemaRegistry } from './model-schema';
|
|
1
|
+
import { NoeticConfigError } from '../errors/noetic-config-error.js';
|
|
2
|
+
import { SpanImpl } from '../observability/span-impl.js';
|
|
3
|
+
import { NoopExporter } from '../observability/trace-exporter.js';
|
|
4
|
+
import { ItemSchemaRegistry } from '../schemas/item.js';
|
|
5
|
+
import { frameworkCast } from '../util/framework-cast.js';
|
|
6
|
+
import { createInMemoryFsAdapter, createInMemoryShellAdapter, createInMemorySubprocessAdapter, OpenRouter, } from './deps/adapters.js';
|
|
7
|
+
import { collectAllTools, deduplicateTools, dispatchStepThroughAdapter, execute, } from './deps/interpreter.js';
|
|
8
|
+
import { afterModelCallLayers, assembleView, beforeToolCallLayers, contextToExecCtx, createLayerStateStore, disposeLayers, executeRerender, initLayers, projectHistoryLayers, recallLayers, resolveLayerBudgets, resolveLayerTools, runAppendPipeline, storeLayers, } from './deps/memory.js';
|
|
9
|
+
import { buildItemStream, ChannelStore, ContextImpl, captureCheckpoint, createInMemoryStorage, filterReasoningStream, filterTextStream, restoreFromCheckpoint, SessionRunner, snapshotCwdState, } from './deps/runtime.js';
|
|
10
|
+
import { SteeringAction } from './deps/types.js';
|
|
11
|
+
import { AgentHarnessModelCaller } from './model-call.js';
|
|
12
|
+
export { createStreamIdleWatchdog } from './model-call.js';
|
|
13
|
+
import { buildItemSchemaRegistry } from './model-schema.js';
|
|
14
14
|
//#endregion
|
|
15
15
|
const DEFAULT_THREAD_ID = '__default__';
|
|
16
16
|
/** Default idle-timeout for a single model call's streaming response. Chosen to be
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { OpenRouter } from '@openrouter/agent';
|
|
2
|
-
export { createInMemoryFsAdapter } from '../../adapters/in-memory-fs-adapter';
|
|
3
|
-
export { createInMemoryShellAdapter } from '../../adapters/in-memory-shell-adapter';
|
|
4
|
-
export { createInMemorySubprocessAdapter } from '../../adapters/in-memory-subprocess-adapter';
|
|
2
|
+
export { createInMemoryFsAdapter } from '../../adapters/in-memory-fs-adapter.js';
|
|
3
|
+
export { createInMemoryShellAdapter } from '../../adapters/in-memory-shell-adapter.js';
|
|
4
|
+
export { createInMemorySubprocessAdapter } from '../../adapters/in-memory-subprocess-adapter.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { OpenRouter } from '@openrouter/agent';
|
|
2
|
-
export { createInMemoryFsAdapter } from '../../adapters/in-memory-fs-adapter';
|
|
3
|
-
export { createInMemoryShellAdapter } from '../../adapters/in-memory-shell-adapter';
|
|
4
|
-
export { createInMemorySubprocessAdapter } from '../../adapters/in-memory-subprocess-adapter';
|
|
2
|
+
export { createInMemoryFsAdapter } from '../../adapters/in-memory-fs-adapter.js';
|
|
3
|
+
export { createInMemoryShellAdapter } from '../../adapters/in-memory-shell-adapter.js';
|
|
4
|
+
export { createInMemorySubprocessAdapter } from '../../adapters/in-memory-subprocess-adapter.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { collectAllTools, deduplicateTools } from '../../interpreter/collect-tools';
|
|
2
|
-
export { execute } from '../../interpreter/execute';
|
|
3
|
-
export type { DetachedSpawnOverrides } from '../../interpreter/step-dispatcher';
|
|
4
|
-
export { dispatchStepThroughAdapter } from '../../interpreter/step-dispatcher';
|
|
5
|
-
export { isFunctionCall } from '../../interpreter/typeguards';
|
|
1
|
+
export { collectAllTools, deduplicateTools } from '../../interpreter/collect-tools.js';
|
|
2
|
+
export { execute } from '../../interpreter/execute.js';
|
|
3
|
+
export type { DetachedSpawnOverrides } from '../../interpreter/step-dispatcher.js';
|
|
4
|
+
export { dispatchStepThroughAdapter } from '../../interpreter/step-dispatcher.js';
|
|
5
|
+
export { isFunctionCall } from '../../interpreter/typeguards.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { collectAllTools, deduplicateTools } from '../../interpreter/collect-tools';
|
|
2
|
-
export { execute } from '../../interpreter/execute';
|
|
3
|
-
export { dispatchStepThroughAdapter } from '../../interpreter/step-dispatcher';
|
|
4
|
-
export { isFunctionCall } from '../../interpreter/typeguards';
|
|
1
|
+
export { collectAllTools, deduplicateTools } from '../../interpreter/collect-tools.js';
|
|
2
|
+
export { execute } from '../../interpreter/execute.js';
|
|
3
|
+
export { dispatchStepThroughAdapter } from '../../interpreter/step-dispatcher.js';
|
|
4
|
+
export { isFunctionCall } from '../../interpreter/typeguards.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { contextToExecCtx } from '../../memory/exec-context-factory';
|
|
2
|
-
export { resolveLayerTools } from '../../memory/layer-api';
|
|
3
|
-
export type { LayerStateStore } from '../../memory/layer-lifecycle';
|
|
4
|
-
export { afterModelCallLayers, beforeToolCallLayers, createLayerStateStore, disposeLayers, executeRerender, initLayers, projectHistoryLayers, recallLayers, resolveLayerBudgets, runAppendPipeline, storeLayers, } from '../../memory/layer-lifecycle';
|
|
5
|
-
export { assembleView } from '../../memory/projector';
|
|
1
|
+
export { contextToExecCtx } from '../../memory/exec-context-factory.js';
|
|
2
|
+
export { resolveLayerTools } from '../../memory/layer-api.js';
|
|
3
|
+
export type { LayerStateStore } from '../../memory/layer-lifecycle.js';
|
|
4
|
+
export { afterModelCallLayers, beforeToolCallLayers, createLayerStateStore, disposeLayers, executeRerender, initLayers, projectHistoryLayers, recallLayers, resolveLayerBudgets, runAppendPipeline, storeLayers, } from '../../memory/layer-lifecycle.js';
|
|
5
|
+
export { assembleView } from '../../memory/projector.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { contextToExecCtx } from '../../memory/exec-context-factory';
|
|
2
|
-
export { resolveLayerTools } from '../../memory/layer-api';
|
|
3
|
-
export { afterModelCallLayers, beforeToolCallLayers, createLayerStateStore, disposeLayers, executeRerender, initLayers, projectHistoryLayers, recallLayers, resolveLayerBudgets, runAppendPipeline, storeLayers, } from '../../memory/layer-lifecycle';
|
|
4
|
-
export { assembleView } from '../../memory/projector';
|
|
1
|
+
export { contextToExecCtx } from '../../memory/exec-context-factory.js';
|
|
2
|
+
export { resolveLayerTools } from '../../memory/layer-api.js';
|
|
3
|
+
export { afterModelCallLayers, beforeToolCallLayers, createLayerStateStore, disposeLayers, executeRerender, initLayers, projectHistoryLayers, recallLayers, resolveLayerBudgets, runAppendPipeline, storeLayers, } from '../../memory/layer-lifecycle.js';
|
|
4
|
+
export { assembleView } from '../../memory/projector.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ChannelStore } from '../../runtime/channel-store';
|
|
2
|
-
export { ContextImpl } from '../../runtime/context-impl';
|
|
3
|
-
export { snapshotCwdState } from '../../runtime/cwd-helpers';
|
|
4
|
-
export type { CheckpointStore } from '../../runtime/durable';
|
|
5
|
-
export { captureCheckpoint, restoreFromCheckpoint, } from '../../runtime/durable/harness-checkpoints';
|
|
6
|
-
export type { EventBroadcaster } from '../../runtime/event-broadcaster';
|
|
7
|
-
export { createInMemoryStorage } from '../../runtime/in-memory-storage';
|
|
8
|
-
export type { QueuedMessage } from '../../runtime/message-queue';
|
|
9
|
-
export { SessionRunner } from '../../runtime/session-runner';
|
|
10
|
-
export { buildItemStream, filterReasoningStream, filterTextStream, } from '../../runtime/session-streams';
|
|
1
|
+
export { ChannelStore } from '../../runtime/channel-store.js';
|
|
2
|
+
export { ContextImpl } from '../../runtime/context-impl.js';
|
|
3
|
+
export { snapshotCwdState } from '../../runtime/cwd-helpers.js';
|
|
4
|
+
export type { CheckpointStore } from '../../runtime/durable/index.js';
|
|
5
|
+
export { captureCheckpoint, restoreFromCheckpoint, } from '../../runtime/durable/harness-checkpoints.js';
|
|
6
|
+
export type { EventBroadcaster } from '../../runtime/event-broadcaster.js';
|
|
7
|
+
export { createInMemoryStorage } from '../../runtime/in-memory-storage.js';
|
|
8
|
+
export type { QueuedMessage } from '../../runtime/message-queue.js';
|
|
9
|
+
export { SessionRunner } from '../../runtime/session-runner.js';
|
|
10
|
+
export { buildItemStream, filterReasoningStream, filterTextStream, } from '../../runtime/session-streams.js';
|