@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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ChannelStore } from '../../runtime/channel-store';
|
|
2
|
-
export { ContextImpl } from '../../runtime/context-impl';
|
|
3
|
-
export { snapshotCwdState } from '../../runtime/cwd-helpers';
|
|
4
|
-
export { captureCheckpoint, restoreFromCheckpoint, } from '../../runtime/durable/harness-checkpoints';
|
|
5
|
-
export { createInMemoryStorage } from '../../runtime/in-memory-storage';
|
|
6
|
-
export { SessionRunner } from '../../runtime/session-runner';
|
|
7
|
-
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 { captureCheckpoint, restoreFromCheckpoint, } from '../../runtime/durable/harness-checkpoints.js';
|
|
5
|
+
export { createInMemoryStorage } from '../../runtime/in-memory-storage.js';
|
|
6
|
+
export { SessionRunner } from '../../runtime/session-runner.js';
|
|
7
|
+
export { buildItemStream, filterReasoningStream, filterTextStream, } from '../../runtime/session-streams.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export type { ZodType } from 'zod';
|
|
2
|
-
export type { Channel, ChannelHandle, ExternalChannel } from '../../types/channel';
|
|
3
|
-
export type { LLMResponse, LlmProviderConfig } from '../../types/common';
|
|
4
|
-
export type { Context, CwdState } from '../../types/context';
|
|
5
|
-
export type { DetachedHandle } from '../../types/detached';
|
|
6
|
-
export type { FsAdapter } from '../../types/fs-adapter';
|
|
7
|
-
export type { HarnessResponse, StreamEvent, StreamingItem } from '../../types/harness-result';
|
|
8
|
-
export type { ExecuteInput, Item, ItemSchemaExtensions } from '../../types/items';
|
|
9
|
-
export type { ContextMemory, ExecutionContext, MemoryLayer, StorageAdapter, } from '../../types/memory';
|
|
10
|
-
export type { Span, TraceExporter } from '../../types/observability';
|
|
11
|
-
export type { AgentConfig, AgentHarnessContract, AgentHooks, CallModelRequest, DeliveryMode, ExecuteOptions, HarnessStatus, RecallLayerOutput, SessionScope, } from '../../types/runtime';
|
|
12
|
-
export type { ShellAdapter } from '../../types/shell-adapter';
|
|
13
|
-
export type { SteeringDecision } from '../../types/steering';
|
|
14
|
-
export { SteeringAction } from '../../types/steering';
|
|
15
|
-
export type { Step } from '../../types/step';
|
|
16
|
-
export type { SubprocessAdapter } from '../../types/subprocess-adapter';
|
|
17
|
-
export type { Tool } from '../../types/tool';
|
|
2
|
+
export type { Channel, ChannelHandle, ExternalChannel } from '../../types/channel.js';
|
|
3
|
+
export type { LLMResponse, LlmProviderConfig } from '../../types/common.js';
|
|
4
|
+
export type { Context, CwdState } from '../../types/context.js';
|
|
5
|
+
export type { DetachedHandle } from '../../types/detached.js';
|
|
6
|
+
export type { FsAdapter } from '../../types/fs-adapter.js';
|
|
7
|
+
export type { HarnessResponse, StreamEvent, StreamingItem } from '../../types/harness-result.js';
|
|
8
|
+
export type { ExecuteInput, Item, ItemSchemaExtensions } from '../../types/items.js';
|
|
9
|
+
export type { ContextMemory, ExecutionContext, MemoryLayer, StorageAdapter, } from '../../types/memory.js';
|
|
10
|
+
export type { Span, TraceExporter } from '../../types/observability.js';
|
|
11
|
+
export type { AgentConfig, AgentHarnessContract, AgentHooks, CallModelRequest, DeliveryMode, ExecuteOptions, HarnessStatus, RecallLayerOutput, SessionScope, } from '../../types/runtime.js';
|
|
12
|
+
export type { ShellAdapter } from '../../types/shell-adapter.js';
|
|
13
|
+
export type { SteeringDecision } from '../../types/steering.js';
|
|
14
|
+
export { SteeringAction } from '../../types/steering.js';
|
|
15
|
+
export type { Step } from '../../types/step.js';
|
|
16
|
+
export type { SubprocessAdapter } from '../../types/subprocess-adapter.js';
|
|
17
|
+
export type { Tool } from '../../types/tool.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SteeringAction } from '../../types/steering';
|
|
1
|
+
export { SteeringAction } from '../../types/steering.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { OpenRouter } from '@openrouter/agent';
|
|
2
|
-
import type { MessageQueue } from '../runtime/message-queue';
|
|
3
|
-
import type { ItemSchemaRegistry } from '../schemas/item';
|
|
4
|
-
import type { LLMResponse } from '../types/common';
|
|
5
|
-
import type { AgentHarnessContract, CallModelRequest } from '../types/runtime';
|
|
2
|
+
import type { MessageQueue } from '../runtime/message-queue.js';
|
|
3
|
+
import type { ItemSchemaRegistry } from '../schemas/item.js';
|
|
4
|
+
import type { LLMResponse } from '../types/common.js';
|
|
5
|
+
import type { AgentHarnessContract, CallModelRequest } from '../types/runtime.js';
|
|
6
6
|
interface StreamIdleWatchdog {
|
|
7
7
|
/** Bump the deadline because a stream event just arrived. */
|
|
8
8
|
reset: () => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { convertTools, executeToolCall, extractOutputItems, extractSystemInstruction, extractUsage, itemsToInput, sanitizeToolNameForWire, } from '../adapters/openrouter';
|
|
3
|
-
import { NoeticConfigError } from '../errors/noetic-config-error';
|
|
4
|
-
import { isFunctionCall } from '../interpreter/typeguards';
|
|
5
|
-
import { emitFrameworkEvent, getBroadcaster, shouldEmit } from '../runtime/broadcaster-utils';
|
|
6
|
-
import { frameworkCast } from '../util/framework-cast';
|
|
2
|
+
import { convertTools, executeToolCall, extractOutputItems, extractSystemInstruction, extractUsage, itemsToInput, sanitizeToolNameForWire, } from '../adapters/openrouter.js';
|
|
3
|
+
import { NoeticConfigError } from '../errors/noetic-config-error.js';
|
|
4
|
+
import { isFunctionCall } from '../interpreter/typeguards.js';
|
|
5
|
+
import { emitFrameworkEvent, getBroadcaster, shouldEmit } from '../runtime/broadcaster-utils.js';
|
|
6
|
+
import { frameworkCast } from '../util/framework-cast.js';
|
|
7
7
|
import { buildItemSchemaRegistry, createToolResultItem } from './model-schema.js';
|
|
8
8
|
const MAX_TOOL_ROUNDS = 32;
|
|
9
9
|
const MAX_RECOVERY_CONTINUATIONS = 3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ItemSchemaRegistry } from '../schemas/item';
|
|
2
|
-
import type { Item } from '../types/items';
|
|
3
|
-
import type { MemoryLayer } from '../types/memory';
|
|
4
|
-
import type { Tool } from '../types/tool';
|
|
1
|
+
import type { ItemSchemaRegistry } from '../schemas/item.js';
|
|
2
|
+
import type { Item } from '../types/items.js';
|
|
3
|
+
import type { MemoryLayer } from '../types/memory.js';
|
|
4
|
+
import type { Tool } from '../types/tool.js';
|
|
5
5
|
export declare function buildItemSchemaRegistry({ base, layers, tools, }: {
|
|
6
6
|
base: ItemSchemaRegistry;
|
|
7
7
|
layers?: ReadonlyArray<MemoryLayer>;
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* errors are caught and reported through the same envelope so the parent
|
|
23
23
|
* never sees a silent crash.
|
|
24
24
|
*/
|
|
25
|
-
import { lookupStep } from '../runtime/step-registry';
|
|
26
|
-
import { AgentHarness } from './agent-harness';
|
|
25
|
+
import { lookupStep } from '../runtime/step-registry.js';
|
|
26
|
+
import { AgentHarness } from './agent-harness.js';
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region Helpers
|
|
29
29
|
function isRecord(value) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,188 +1,190 @@
|
|
|
1
1
|
/** @public */
|
|
2
|
-
export { createInMemoryFsAdapter } from './adapters/in-memory-fs-adapter';
|
|
2
|
+
export { createInMemoryFsAdapter } from './adapters/in-memory-fs-adapter.js';
|
|
3
3
|
/** @public */
|
|
4
|
-
export { createInMemoryShellAdapter } from './adapters/in-memory-shell-adapter';
|
|
4
|
+
export { createInMemoryShellAdapter } from './adapters/in-memory-shell-adapter.js';
|
|
5
5
|
/** @public */
|
|
6
|
-
export { createInMemorySubprocessAdapter } from './adapters/in-memory-subprocess-adapter';
|
|
6
|
+
export { createInMemorySubprocessAdapter } from './adapters/in-memory-subprocess-adapter.js';
|
|
7
7
|
/** @public */
|
|
8
|
-
export { createOpenRouterEmbed } from './adapters/openrouter';
|
|
8
|
+
export { createOpenRouterEmbed } from './adapters/openrouter.js';
|
|
9
9
|
/** @public */
|
|
10
|
-
export { channel } from './builders/channel-builder';
|
|
10
|
+
export { channel } from './builders/channel-builder.js';
|
|
11
11
|
/** @public */
|
|
12
|
-
export { branch, fork } from './builders/control-flow-builders';
|
|
12
|
+
export { branch, fork } from './builders/control-flow-builders.js';
|
|
13
13
|
/** @public */
|
|
14
|
-
export type { EveryOptions } from './builders/every';
|
|
14
|
+
export type { EveryOptions } from './builders/every.js';
|
|
15
15
|
/** @public */
|
|
16
|
-
export { every } from './builders/every';
|
|
16
|
+
export { every } from './builders/every.js';
|
|
17
17
|
/** @public */
|
|
18
|
-
export { layerData, layerFn } from './builders/layer-provides-builders';
|
|
18
|
+
export { layerData, layerFn } from './builders/layer-provides-builders.js';
|
|
19
19
|
/** @public */
|
|
20
|
-
export type { LoopConfig } from './builders/loop-builder';
|
|
20
|
+
export type { LoopConfig } from './builders/loop-builder.js';
|
|
21
21
|
/** @public */
|
|
22
|
-
export { loop } from './builders/loop-builder';
|
|
22
|
+
export { loop } from './builders/loop-builder.js';
|
|
23
23
|
/** @public */
|
|
24
|
-
export { memory } from './builders/memory-builder';
|
|
24
|
+
export { memory } from './builders/memory-builder.js';
|
|
25
25
|
/** @public */
|
|
26
|
-
export { provide } from './builders/provide-builder';
|
|
26
|
+
export { provide } from './builders/provide-builder.js';
|
|
27
27
|
/** @public */
|
|
28
|
-
export { spawn } from './builders/spawn-builder';
|
|
28
|
+
export { spawn } from './builders/spawn-builder.js';
|
|
29
29
|
/** @public */
|
|
30
|
-
export { step } from './builders/step-builders';
|
|
30
|
+
export { step } from './builders/step-builders.js';
|
|
31
31
|
/** @public */
|
|
32
|
-
export { tool, toolWithGenerator } from './builders/tool-builder';
|
|
32
|
+
export { tool, toolWithGenerator } from './builders/tool-builder.js';
|
|
33
33
|
/** @public */
|
|
34
|
-
export type { HydrationContext } from './builders/workflow-hydrator';
|
|
34
|
+
export type { HydrationContext } from './builders/workflow-hydrator.js';
|
|
35
35
|
/** @public */
|
|
36
|
-
export { hydrateNode, hydrateWorkflow } from './builders/workflow-hydrator';
|
|
36
|
+
export { hydrateNode, hydrateWorkflow } from './builders/workflow-hydrator.js';
|
|
37
37
|
/** @public */
|
|
38
|
-
export type { Condition, OtherwiseClause, WhenClause } from './conditions';
|
|
38
|
+
export type { Condition, OtherwiseClause, WhenClause } from './conditions/conditions.js';
|
|
39
39
|
/** @public */
|
|
40
|
-
export { aiCondition, allCondition, anyCondition,
|
|
40
|
+
export { aiCondition, allCondition, anyCondition, embeddingMatch, otherwise, semanticRoute, semanticSwitch, when, } from './conditions/conditions.js';
|
|
41
41
|
/** @public */
|
|
42
|
-
export {
|
|
42
|
+
export { cosineSimilarity } from './conditions/cosine-similarity.js';
|
|
43
43
|
/** @public */
|
|
44
|
-
export {
|
|
44
|
+
export { isNoeticConfigError, NoeticConfigError } from './errors/noetic-config-error.js';
|
|
45
45
|
/** @public */
|
|
46
|
-
export
|
|
46
|
+
export { isNoeticError, NoeticErrorImpl } from './errors/noetic-error.js';
|
|
47
47
|
/** @public */
|
|
48
|
-
export {
|
|
48
|
+
export type { AskUserAnnotation, AskUserInput, AskUserOption, AskUserOutput, AskUserQuestion, } from './types/ask-user-types.js';
|
|
49
49
|
/** @public */
|
|
50
|
-
export {
|
|
50
|
+
export { AskUserAnnotationSchema, AskUserInputSchema, AskUserOptionSchema, AskUserOutputSchema, AskUserQuestionSchema, } from './types/ask-user-types.js';
|
|
51
51
|
/** @public */
|
|
52
|
-
export {
|
|
52
|
+
export { execute } from './interpreter/execute.js';
|
|
53
53
|
/** @public */
|
|
54
|
-
export
|
|
54
|
+
export { findFunctionCall } from './memory/function-call-utils.js';
|
|
55
55
|
/** @public */
|
|
56
|
-
export {
|
|
56
|
+
export type { DurableTaskState, DurableTaskStateConfig } from './memory/layers/durable-task-state.js';
|
|
57
57
|
/** @public */
|
|
58
|
-
export {
|
|
58
|
+
export { durableTaskState } from './memory/layers/durable-task-state.js';
|
|
59
59
|
/** @public */
|
|
60
|
-
export
|
|
60
|
+
export { fileReference } from './memory/layers/file-reference.js';
|
|
61
61
|
/** @public */
|
|
62
|
-
export {
|
|
62
|
+
export type { HistoryWindowConfig } from './memory/layers/history-window.js';
|
|
63
63
|
/** @public */
|
|
64
|
-
export
|
|
64
|
+
export { historyWindow } from './memory/layers/history-window.js';
|
|
65
65
|
/** @public */
|
|
66
|
-
export {
|
|
66
|
+
export type { ObservationalMemoryConfig, ObservationalState, } from './memory/layers/observational-memory.js';
|
|
67
67
|
/** @public */
|
|
68
|
-
export
|
|
68
|
+
export { observationalMemory } from './memory/layers/observational-memory.js';
|
|
69
69
|
/** @public */
|
|
70
|
-
export {
|
|
70
|
+
export type { PlanEnterSessionCallback, PlanExecutionEntry, PlanExitCallback, PlanMemoryConfig, PlanState, } from './memory/layers/plan.js';
|
|
71
71
|
/** @public */
|
|
72
|
-
export {
|
|
72
|
+
export { PlanPhase, planMemory } from './memory/layers/plan.js';
|
|
73
73
|
/** @public */
|
|
74
|
-
export {
|
|
74
|
+
export { staticContent } from './memory/layers/static-content.js';
|
|
75
75
|
/** @public */
|
|
76
|
-
export {
|
|
76
|
+
export { steering } from './memory/layers/steering.js';
|
|
77
77
|
/** @public */
|
|
78
|
-
export
|
|
78
|
+
export { toolMemoryLayer } from './memory/layers/tool-memory-layer.js';
|
|
79
79
|
/** @public */
|
|
80
|
-
export {
|
|
80
|
+
export type { WorkingMemoryConfig, WorkingMemoryState } from './memory/layers/working-memory.js';
|
|
81
81
|
/** @public */
|
|
82
|
-
export {
|
|
82
|
+
export { workingMemory } from './memory/layers/working-memory.js';
|
|
83
83
|
/** @public */
|
|
84
|
-
export {
|
|
84
|
+
export { stripUnresolvedToolCalls } from './memory/strip-unresolved.js';
|
|
85
85
|
/** @public */
|
|
86
|
-
export {
|
|
86
|
+
export { createMessage, estimateTokens } from './util/message-helpers.js';
|
|
87
87
|
/** @public */
|
|
88
|
-
export {
|
|
88
|
+
export { GenAI, ToolAttr } from './observability/genai-attributes.js';
|
|
89
89
|
/** @public */
|
|
90
|
-
export {
|
|
90
|
+
export { InMemoryExporter, NoopExporter } from './observability/trace-exporter.js';
|
|
91
91
|
/** @public */
|
|
92
|
-
export
|
|
92
|
+
export { createInMemoryStorage } from './runtime/in-memory-storage.js';
|
|
93
93
|
/** @public */
|
|
94
|
-
export {
|
|
94
|
+
export type { DynamicWorkflowOpts, ParseAndRunWorkflowOpts } from './patterns/dynamic-workflow.js';
|
|
95
95
|
/** @public */
|
|
96
|
-
export
|
|
96
|
+
export { dynamicWorkflow, parseAndRunWorkflow } from './patterns/dynamic-workflow.js';
|
|
97
97
|
/** @public */
|
|
98
|
-
export {
|
|
98
|
+
export type { FlowNode, ForkFlowNode, LlmFlowNode, SequenceFlowNode, SpawnFlowNode, SubagentFlowNode, } from './patterns/flow.js';
|
|
99
99
|
/** @public */
|
|
100
|
-
export
|
|
100
|
+
export { FlowSchema, flowDepth, validateFlow, walkFlow } from './patterns/flow.js';
|
|
101
101
|
/** @public */
|
|
102
|
-
export {
|
|
102
|
+
export type { InterviewOpts, InterviewQuestionAnswer, InterviewResult } from './patterns/interview.js';
|
|
103
103
|
/** @public */
|
|
104
|
-
export
|
|
104
|
+
export { interview } from './patterns/interview.js';
|
|
105
105
|
/** @public */
|
|
106
|
-
export {
|
|
106
|
+
export type { PlanConstraints, PlanNode } from './patterns/plans.js';
|
|
107
107
|
/** @public */
|
|
108
|
-
export {
|
|
108
|
+
export { adaptivePlan, compilePlan, PlanNodeSchema } from './patterns/plans.js';
|
|
109
109
|
/** @public */
|
|
110
|
-
export {
|
|
110
|
+
export { ralphWiggum } from './patterns/ralph-wiggum.js';
|
|
111
111
|
/** @public */
|
|
112
|
-
export {
|
|
112
|
+
export { react } from './patterns/react.js';
|
|
113
113
|
/** @public */
|
|
114
|
-
export
|
|
114
|
+
export { AgentHarness } from './harness/agent-harness.js';
|
|
115
115
|
/** @public */
|
|
116
|
-
export {
|
|
116
|
+
export type { AfterFirstTurnContext, CheckpointStore, CreateCheckpointStoreOptions, CreateNudgeMessageOpts, DetachedSignal, RunnableLoopHarness, RunnableLoopOpts, SessionSeedHarness, StallNudgeOpts, } from './runtime/durable/index.js';
|
|
117
117
|
/** @public */
|
|
118
|
-
export {
|
|
118
|
+
export { CheckpointKeys, createCheckpointStore, createDetachedSignal, createNudgeMessage, createStallNudgeHook, DEFAULT_NUDGE_MESSAGE_TEXT, runnableLoop, seedFromItems, } from './runtime/durable/index.js';
|
|
119
119
|
/** @public */
|
|
120
|
-
export {
|
|
120
|
+
export { getRegistry, lookupStep, registerStep } from './runtime/step-registry.js';
|
|
121
121
|
/** @public */
|
|
122
|
-
export
|
|
122
|
+
export { defaultItemSchemaRegistry, ItemSchema, ItemSchemaRegistry } from './schemas/item.js';
|
|
123
123
|
/** @public */
|
|
124
|
-
export {
|
|
124
|
+
export type { BranchRoute, BranchWorkflowNode, EveryWorkflowNode, ForkWorkflowNode, LlmWorkflowNode, LoopWorkflowNode, MergeStrategy, ProvideWorkflowNode, SequenceWorkflowNode, SpawnWorkflowNode, ToolWorkflowNode, UntilPredicate, WorkflowDocument, WorkflowNode, } from './schemas/workflow.js';
|
|
125
125
|
/** @public */
|
|
126
|
-
export
|
|
126
|
+
export { MergeStrategySchema, UntilPredicateSchema, validateWorkflow, WorkflowDocumentSchema, WorkflowNodeSchema, walkWorkflow, workflowDepth, } from './schemas/workflow.js';
|
|
127
127
|
/** @public */
|
|
128
|
-
export type {
|
|
128
|
+
export type { Channel, ChannelHandle, ExternalChannel } from './types/channel.js';
|
|
129
129
|
/** @public */
|
|
130
|
-
export type {
|
|
130
|
+
export type { LLMResponse, LlmProviderConfig, ModelParams, RetryPolicy, StepMeta, TokenUsage, } from './types/common.js';
|
|
131
131
|
/** @public */
|
|
132
|
-
export {
|
|
132
|
+
export type { Tool, ToolMemoryDeclaration } from './types/tool.js';
|
|
133
133
|
/** @public */
|
|
134
|
-
export
|
|
134
|
+
export { getToolCwd, setToolCwd, snapshotCwdState } from './runtime/cwd-helpers.js';
|
|
135
135
|
/** @public */
|
|
136
|
-
export type {
|
|
136
|
+
export type { Context, ContextHarness, CwdState, } from './types/context.js';
|
|
137
137
|
/** @public */
|
|
138
|
-
export type {
|
|
138
|
+
export type { ItemLog } from './types/context-parts/item-log.js';
|
|
139
139
|
/** @public */
|
|
140
|
-
export type {
|
|
140
|
+
export type { LastLayerUsage, LayerUsageEntry } from './types/context-parts/layer-usage.js';
|
|
141
141
|
/** @public */
|
|
142
|
-
export {
|
|
142
|
+
export type { DetachedHandle } from './types/detached.js';
|
|
143
143
|
/** @public */
|
|
144
|
-
export
|
|
144
|
+
export { DetachedStatus } from './types/detached.js';
|
|
145
145
|
/** @public */
|
|
146
|
-
export type {
|
|
146
|
+
export type { EmbedFn } from './types/embed.js';
|
|
147
147
|
/** @public */
|
|
148
|
-
export {
|
|
148
|
+
export type { CheckpointSnapshot, CwdSnapshot, FrontierFrame, ItemLogSnapshot, PendingAskUserSnapshot, } from './types/checkpoint.js';
|
|
149
149
|
/** @public */
|
|
150
|
-
export
|
|
150
|
+
export { CheckpointSchemaVersion, CheckpointSnapshotSchema, CwdSnapshotSchema, FrontierFrameSchema, ItemLogSnapshotSchema, PendingAskUserSnapshotSchema, } from './types/checkpoint.js';
|
|
151
151
|
/** @public */
|
|
152
|
-
export type {
|
|
152
|
+
export type { NoeticError } from './types/error.js';
|
|
153
153
|
/** @public */
|
|
154
|
-
export type {
|
|
154
|
+
export type { ContentPart, DeveloperMessageExtensionItem, ExecuteInput, ExtendedItem, ExtensionItem, FileSearchItem, FunctionCallItem, FunctionCallOutputItem, ImageGenerationItem, InferExtendedItem, InputContentPart, InputFilePart, InputImagePart, InputMessageItem, InputTextPart, Item, ItemBase, ItemSchemaExtensions, MessageItem, OutputItem, OutputTextPart, ReasoningItem, ReasoningTextPart, RefusalPart, ServerToolItem, SummaryTextPart, WebSearchItem, } from './types/items.js';
|
|
155
155
|
/** @public */
|
|
156
|
-
export {
|
|
156
|
+
export type { BudgetConfig, CompleteParams, ContextMemory, DisposeParams, InferMemory, InferMemoryShape, InitParams, InitResult, LayerDataDecl, LayerFunctionDecl, LayerProvides, LayerTimeouts, MemoryConfig, MemoryHooks, MemoryLayer, ProjectionPolicy, RecallParams, RecallResult, ReturnParams, ReturnResult, ScopedStorage, SpawnParams, SpawnResult, StorageAdapter, StoreParams, StoreResult, } from './types/memory.js';
|
|
157
157
|
/** @public */
|
|
158
|
-
export
|
|
158
|
+
export { Slot } from './types/memory.js';
|
|
159
159
|
/** @public */
|
|
160
|
-
export type {
|
|
160
|
+
export type { ExecutionContext, ExecutionOutcome, MemoryCallModelRequest, MemoryScope, } from './types/memory-context.js';
|
|
161
161
|
/** @public */
|
|
162
|
-
export type {
|
|
162
|
+
export type { MemoryTraceSpan, Span, TraceExporter } from './types/observability.js';
|
|
163
163
|
/** @public */
|
|
164
|
-
export type {
|
|
164
|
+
export type { FrameworkStreamEvent, HarnessResponse, SdkStreamEvent, StreamEvent, StreamingItem, } from './types/harness-result.js';
|
|
165
165
|
/** @public */
|
|
166
|
-
export type {
|
|
166
|
+
export type { AgentConfig, AgentHarnessContract, AgentHooks, CallModelRequest, DeliveryMode, ExecuteOptions, HarnessStatus, RecallLayerOutput, SessionScope, } from './types/runtime.js';
|
|
167
167
|
/** @public */
|
|
168
|
-
export {
|
|
168
|
+
export type { AfterModelCallParams, AfterModelCallResult, BeforeToolCallParams, BeforeToolCallResult, LedgerEntry, SteeringConfig, SteeringDecision, SteeringRule, SteeringState, } from './types/steering.js';
|
|
169
169
|
/** @public */
|
|
170
|
-
export
|
|
170
|
+
export { LedgerEntryKind, SteeringAction } from './types/steering.js';
|
|
171
171
|
/** @public */
|
|
172
|
-
export type {
|
|
172
|
+
export type { ExecuteStepFn, SettleResult, Snapshot, Step, StepBranch, StepFork, StepForkAll, StepForkRace, StepForkSettle, StepLLM, StepLoop, StepProvide, StepRun, StepSpawn, StepTool, Until, Verdict, } from './types/step.js';
|
|
173
|
+
/** @public */
|
|
174
|
+
export type { FsAdapter, FsStats } from './types/fs-adapter.js';
|
|
173
175
|
/** @public Reusable error-serialiser used by custom SubprocessAdapter implementations. */
|
|
174
|
-
export { serializeError } from './adapters/in-memory-subprocess/metadata';
|
|
176
|
+
export { serializeError } from './adapters/in-memory-subprocess/metadata.js';
|
|
175
177
|
/** @public */
|
|
176
|
-
export type { ShellAdapter, ShellExecOptions, ShellExecResult } from './types/shell-adapter';
|
|
178
|
+
export type { ShellAdapter, ShellExecOptions, ShellExecResult } from './types/shell-adapter.js';
|
|
177
179
|
/** @public */
|
|
178
|
-
export { TIMEOUT_ERROR_PREFIX } from './types/shell-adapter';
|
|
180
|
+
export { TIMEOUT_ERROR_PREFIX } from './types/shell-adapter.js';
|
|
179
181
|
/** @public */
|
|
180
|
-
export type { ProcessSubprocessRequest, SerializedError, StepSubprocessOverrides, StepSubprocessRequest, SubprocessAdapter, SubprocessControlResult, SubprocessHandle, SubprocessHandleMetadata, SubprocessRequest, SubprocessStatus, SubprocessStopResult, } from './types/subprocess-adapter';
|
|
182
|
+
export type { ProcessSubprocessRequest, SerializedError, StepSubprocessOverrides, StepSubprocessRequest, SubprocessAdapter, SubprocessControlResult, SubprocessHandle, SubprocessHandleMetadata, SubprocessRequest, SubprocessStatus, SubprocessStopResult, } from './types/subprocess-adapter.js';
|
|
181
183
|
/** @public */
|
|
182
|
-
export type { ToolExecutionContext, ToolMemory } from './types/tool-context';
|
|
184
|
+
export type { ToolExecutionContext, ToolMemory } from './types/tool-context.js';
|
|
183
185
|
/** @public */
|
|
184
|
-
export { all, any } from './until/combinators';
|
|
186
|
+
export { all, any } from './until/combinators.js';
|
|
185
187
|
/** @public */
|
|
186
|
-
export type { ConvergeConfig, VerifyFn } from './until/predicates';
|
|
188
|
+
export type { ConvergeConfig, VerifyFn } from './until/predicates.js';
|
|
187
189
|
/** @public */
|
|
188
|
-
export { until } from './until/predicates';
|
|
190
|
+
export { until } from './until/predicates.js';
|