@noetic-tools/core 3.1.0 → 4.0.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/dist/adapters/in-memory-subprocess/manifest-persistence.d.ts +1 -1
- package/dist/adapters/in-memory-subprocess/types.d.ts +1 -1
- package/dist/adapters/openrouter.d.ts +2 -2
- package/dist/adapters/openrouter.js +2 -2
- package/dist/builders/context-builder.d.ts +11 -0
- package/dist/builders/context-builder.js +15 -0
- package/dist/builders/context-option.d.ts +23 -0
- package/dist/builders/context-option.js +22 -0
- package/dist/builders/control-flow-builders.d.ts +19 -19
- package/dist/builders/every.d.ts +4 -4
- 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 +3 -3
- package/dist/builders/provide-builder.d.ts +14 -7
- package/dist/builders/provide-builder.js +15 -4
- package/dist/builders/spawn-builder.d.ts +8 -6
- package/dist/builders/spawn-builder.js +7 -2
- package/dist/builders/step-builders.d.ts +19 -20
- package/dist/builders/tool-builder.d.ts +9 -5
- package/dist/builders/tool-builder.js +3 -2
- package/dist/builders/workflow-hydrator.d.ts +17 -4
- package/dist/builders/workflow-hydrator.js +87 -8
- package/dist/builders/workflow-step.d.ts +61 -0
- package/dist/builders/workflow-step.js +126 -0
- package/dist/conditions/conditions.d.ts +17 -17
- package/dist/conditions/conditions.js +1 -1
- package/dist/deprecated.d.ts +30 -0
- package/dist/deprecated.js +28 -0
- package/dist/harness/agent-harness.d.ts +84 -27
- package/dist/harness/agent-harness.js +101 -20
- package/dist/harness/deps/context.d.ts +2 -0
- package/dist/harness/deps/context.js +1 -0
- package/dist/harness/deps/runtime.d.ts +4 -4
- package/dist/harness/deps/runtime.js +3 -3
- package/dist/harness/deps/types.d.ts +1 -1
- package/dist/harness/model-schema.d.ts +2 -2
- package/dist/index.d.ts +23 -19
- package/dist/index.js +15 -9
- package/dist/interpreter/action-deps.d.ts +3 -3
- package/dist/interpreter/action-deps.js +2 -2
- package/dist/interpreter/action-types.d.ts +1 -1
- package/dist/interpreter/collect-tools.d.ts +1 -1
- package/dist/interpreter/execute-action.d.ts +10 -10
- package/dist/interpreter/execute-action.js +33 -14
- package/dist/interpreter/execute-control.d.ts +4 -4
- package/dist/interpreter/execute-control.js +25 -16
- package/dist/interpreter/execute-sub-harness.d.ts +1 -1
- package/dist/interpreter/execute-sub-harness.js +22 -1
- package/dist/interpreter/execute.d.ts +3 -3
- package/dist/interpreter/execute.js +78 -31
- package/dist/interpreter/step-dispatcher.d.ts +3 -3
- package/dist/interpreter/sub-harness-events.d.ts +2 -2
- package/dist/interpreter/typeguards.d.ts +4 -4
- package/dist/patterns/dynamic-workflow.d.ts +7 -4
- package/dist/patterns/dynamic-workflow.js +2 -0
- package/dist/patterns/interview.d.ts +2 -2
- package/dist/patterns/plans.d.ts +5 -5
- package/dist/patterns/ralph-wiggum.d.ts +2 -2
- package/dist/patterns/react.d.ts +7 -5
- package/dist/patterns/react.js +6 -4
- package/dist/portable/builders.js +2 -0
- package/dist/portable/context-layers.d.ts +8 -0
- package/dist/portable/context-layers.js +8 -0
- package/dist/portable.d.ts +2 -2
- package/dist/portable.js +2 -2
- package/dist/runtime/context-deps.d.ts +2 -2
- package/dist/runtime/context-deps.js +1 -1
- package/dist/runtime/context-impl.d.ts +48 -9
- package/dist/runtime/context-impl.js +95 -10
- package/dist/runtime/context-type-deps.d.ts +1 -1
- package/dist/runtime/durable/checkpoint-store.d.ts +1 -1
- package/dist/runtime/durable/harness-checkpoints.d.ts +17 -4
- package/dist/runtime/durable/harness-checkpoints.js +21 -3
- package/dist/runtime/durable/index.d.ts +2 -0
- package/dist/runtime/durable/index.js +1 -0
- package/dist/runtime/durable/step-ledger.d.ts +107 -5
- package/dist/runtime/durable/step-ledger.js +179 -10
- package/dist/runtime/in-memory-storage.d.ts +1 -1
- package/dist/runtime/session-runner.d.ts +1 -1
- package/dist/runtime/step-registry.d.ts +3 -3
- package/dist/runtime/{tool-memory.d.ts → tool-context.d.ts} +1 -2
- package/dist/runtime/{tool-memory.js → tool-context.js} +5 -2
- package/dist/runtime/tool-ui.d.ts +1 -1
- package/dist/runtime/tool-ui.js +1 -1
- package/dist/schemas/workflow.d.ts +5 -279
- package/dist/schemas/workflow.js +4 -376
- package/dist/types/mutable-context.d.ts +2 -2
- package/dist/types/step-registrar.d.ts +1 -1
- package/dist/unstable.d.ts +5 -5
- package/dist/unstable.js +3 -3
- package/dist/until/predicates.d.ts +1 -1
- package/package.json +4 -4
- package/schema/noetic-workflow.schema.json +28 -0
- package/dist/builders/memory-builder.d.ts +0 -11
- package/dist/builders/memory-builder.js +0 -15
- package/dist/harness/deps/memory.d.ts +0 -2
- package/dist/harness/deps/memory.js +0 -1
- package/dist/patterns/flow.d.ts +0 -2
- package/dist/patterns/flow.js +0 -1
- package/dist/portable/memory-layers.d.ts +0 -8
- package/dist/portable/memory-layers.js +0 -8
package/dist/unstable.d.ts
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
* Unstable exports for framework extenders.
|
|
4
4
|
*
|
|
5
5
|
* Symbols exported from this module may change in any minor release.
|
|
6
|
-
* They are intended for authors of custom
|
|
6
|
+
* They are intended for authors of custom context layers, runtime backends,
|
|
7
7
|
* and other framework extensions. Do not depend on them in application code.
|
|
8
8
|
*/
|
|
9
|
-
/** @unstable Budget allocation algorithm for
|
|
9
|
+
/** @unstable Budget allocation algorithm for context layer token budgets. */
|
|
10
10
|
/** @unstable Layer state store type for managing per-layer state during execution. */
|
|
11
|
-
export type { BudgetAllocation, BudgetLimits, LayerStateStore } from '@noetic-tools/
|
|
11
|
+
export type { BudgetAllocation, BudgetLimits, LayerStateStore } from '@noetic-tools/context';
|
|
12
12
|
/** @unstable Budget allocation and checking utilities. */
|
|
13
13
|
/** @unstable Factory for creating layer state stores. */
|
|
14
|
-
/** @unstable View assembly algorithm that converges
|
|
14
|
+
/** @unstable View assembly algorithm that converges context layer outputs into the LLM context. */
|
|
15
15
|
/** @unstable Factory for creating scoped storage wrappers around a StorageAdapter. */
|
|
16
|
-
export { allocateBudgets, assembleView, checkBudget, createLayerStateStore, createScopedStorage, } from '@noetic-tools/
|
|
16
|
+
export { allocateBudgets, assembleView, checkBudget, createLayerStateStore, createScopedStorage, } from '@noetic-tools/context';
|
|
17
17
|
/** @unstable Unsafe cast utility for bridging internal type boundaries. */
|
|
18
18
|
export { frameworkCast } from '@noetic-tools/types';
|
|
19
19
|
/**
|
package/dist/unstable.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Unstable exports for framework extenders.
|
|
4
4
|
*
|
|
5
5
|
* Symbols exported from this module may change in any minor release.
|
|
6
|
-
* They are intended for authors of custom
|
|
6
|
+
* They are intended for authors of custom context layers, runtime backends,
|
|
7
7
|
* and other framework extensions. Do not depend on them in application code.
|
|
8
8
|
*/
|
|
9
9
|
/** @unstable Budget allocation and checking utilities. */
|
|
10
10
|
/** @unstable Factory for creating layer state stores. */
|
|
11
|
-
/** @unstable View assembly algorithm that converges
|
|
11
|
+
/** @unstable View assembly algorithm that converges context layer outputs into the LLM context. */
|
|
12
12
|
/** @unstable Factory for creating scoped storage wrappers around a StorageAdapter. */
|
|
13
|
-
export { allocateBudgets, assembleView, checkBudget, createLayerStateStore, createScopedStorage, } from '@noetic-tools/
|
|
13
|
+
export { allocateBudgets, assembleView, checkBudget, createLayerStateStore, createScopedStorage, } from '@noetic-tools/context';
|
|
14
14
|
/** @unstable Unsafe cast utility for bridging internal type boundaries. */
|
|
15
15
|
export { frameworkCast } from '@noetic-tools/types';
|
|
16
16
|
/**
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noetic-tools/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Step primitives, interpreter, runtime, and
|
|
5
|
+
"description": "Step primitives, interpreter, runtime, and context layer contract for Noetic agents.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@noetic-tools/
|
|
70
|
-
"@noetic-tools/types": "^2.
|
|
69
|
+
"@noetic-tools/context": "^1.0.0",
|
|
70
|
+
"@noetic-tools/types": "^2.3.0",
|
|
71
71
|
"@openrouter/agent": "^0.6.0",
|
|
72
72
|
"zod": "^4.0.0"
|
|
73
73
|
},
|
|
@@ -455,6 +455,34 @@
|
|
|
455
455
|
],
|
|
456
456
|
"additionalProperties": false
|
|
457
457
|
},
|
|
458
|
+
{
|
|
459
|
+
"type": "object",
|
|
460
|
+
"properties": {
|
|
461
|
+
"kind": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"const": "subflow"
|
|
464
|
+
},
|
|
465
|
+
"id": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"minLength": 1
|
|
468
|
+
},
|
|
469
|
+
"document": {
|
|
470
|
+
"$ref": "#"
|
|
471
|
+
},
|
|
472
|
+
"ref": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"minLength": 1
|
|
475
|
+
},
|
|
476
|
+
"input": {
|
|
477
|
+
"type": "string"
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"required": [
|
|
481
|
+
"kind",
|
|
482
|
+
"id"
|
|
483
|
+
],
|
|
484
|
+
"additionalProperties": false
|
|
485
|
+
},
|
|
458
486
|
{
|
|
459
487
|
"type": "object",
|
|
460
488
|
"properties": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { MemoryConfig, MemoryLayer } from '@noetic-tools/memory';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a type-safe memory configuration from a tuple of memory layers.
|
|
4
|
-
* The returned config preserves literal layer types for compile-time inference
|
|
5
|
-
* via `InferMemory<typeof config>`.
|
|
6
|
-
*
|
|
7
|
-
* @public
|
|
8
|
-
* @param layers - Tuple of memory layers to include in the configuration.
|
|
9
|
-
* @returns A `MemoryConfig` carrying the inferred memory shape as a phantom type.
|
|
10
|
-
*/
|
|
11
|
-
export declare function memory<const T extends readonly MemoryLayer[]>(layers: T): MemoryConfig<T>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { frameworkCast } from '@noetic-tools/types';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a type-safe memory configuration from a tuple of memory layers.
|
|
4
|
-
* The returned config preserves literal layer types for compile-time inference
|
|
5
|
-
* via `InferMemory<typeof config>`.
|
|
6
|
-
*
|
|
7
|
-
* @public
|
|
8
|
-
* @param layers - Tuple of memory layers to include in the configuration.
|
|
9
|
-
* @returns A `MemoryConfig` carrying the inferred memory shape as a phantom type.
|
|
10
|
-
*/
|
|
11
|
-
export function memory(layers) {
|
|
12
|
-
return frameworkCast({
|
|
13
|
-
layers,
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export type { LayerStateStore, RecallCache } from '@noetic-tools/memory';
|
|
2
|
-
export { afterModelCallLayers, allocateBudgets, assembleView, beforeToolCallLayers, contextToExecCtx, createLayerStateStore, createRecallCache, DEFAULT_PROJECTION, disposeLayers, executeRerender, initLayers, projectHistoryLayers, recallLayers, recallLayersAtomic, recallLayersEventual, resolveLayerTools, runAppendPipeline, storeLayers, } from '@noetic-tools/memory';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { afterModelCallLayers, allocateBudgets, assembleView, beforeToolCallLayers, contextToExecCtx, createLayerStateStore, createRecallCache, DEFAULT_PROJECTION, disposeLayers, executeRerender, initLayers, projectHistoryLayers, recallLayers, recallLayersAtomic, recallLayersEventual, resolveLayerTools, runAppendPipeline, storeLayers, } from '@noetic-tools/memory';
|
package/dist/patterns/flow.d.ts
DELETED
package/dist/patterns/flow.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FlowSchema, flowDepth, validateFlow, walkFlow } from '@noetic-tools/memory';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** @public */
|
|
2
|
-
/** @public */
|
|
3
|
-
/** @public */
|
|
4
|
-
/** @public */
|
|
5
|
-
/** @public */
|
|
6
|
-
/** @public */
|
|
7
|
-
/** @public */
|
|
8
|
-
export { durableTaskState, historyWindow, observationalMemory, planMemory, temporalMemory, toolMemoryLayer, workingMemory, } from '@noetic-tools/memory';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** @public */
|
|
2
|
-
/** @public */
|
|
3
|
-
/** @public */
|
|
4
|
-
/** @public */
|
|
5
|
-
/** @public */
|
|
6
|
-
/** @public */
|
|
7
|
-
/** @public */
|
|
8
|
-
export { durableTaskState, historyWindow, observationalMemory, planMemory, temporalMemory, toolMemoryLayer, workingMemory, } from '@noetic-tools/memory';
|