@noetic-tools/context 1.10.0 → 1.11.1-next.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.
|
@@ -282,7 +282,8 @@ export declare function afterModelCallLayers({ layers, response, ctx, store, }:
|
|
|
282
282
|
/**
|
|
283
283
|
* Run a steer through every layer's `onSteer` hook in slot order. Each layer
|
|
284
284
|
* sees the action and items the previous layer left, so the last layer to
|
|
285
|
-
* speak wins. A hook that throws or
|
|
285
|
+
* speak wins. Any layer asking to recall is enough. A hook that throws or
|
|
286
|
+
* times out leaves the verdict unchanged.
|
|
286
287
|
*/
|
|
287
288
|
export declare function onSteerLayers({ layers, steer, point, action, pendingCalls, ctx, store, }: OnSteerLayersParams): Promise<SteerVerdict>;
|
|
288
289
|
/**
|
|
@@ -892,7 +892,8 @@ export async function afterModelCallLayers({ layers, response, ctx, store, }) {
|
|
|
892
892
|
/**
|
|
893
893
|
* Run a steer through every layer's `onSteer` hook in slot order. Each layer
|
|
894
894
|
* sees the action and items the previous layer left, so the last layer to
|
|
895
|
-
* speak wins. A hook that throws or
|
|
895
|
+
* speak wins. Any layer asking to recall is enough. A hook that throws or
|
|
896
|
+
* times out leaves the verdict unchanged.
|
|
896
897
|
*/
|
|
897
898
|
export async function onSteerLayers({ layers, steer, point, action, pendingCalls, ctx, store, }) {
|
|
898
899
|
const sorted = [
|
|
@@ -942,6 +943,7 @@ export async function onSteerLayers({ layers, steer, point, action, pendingCalls
|
|
|
942
943
|
verdict = {
|
|
943
944
|
action: result.action ?? current.action,
|
|
944
945
|
items: result.items ?? current.items,
|
|
946
|
+
recall: current.recall || result.recall,
|
|
945
947
|
};
|
|
946
948
|
}
|
|
947
949
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noetic-tools/context",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.1-next.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Context layer system for Noetic agents: the ContextLayer contract, lifecycle, budget/projection machinery, and built-in layer implementations.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"zod": "^4.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@noetic-tools/types": "^3.
|
|
47
|
+
"@noetic-tools/types": "^3.17.1-next.1",
|
|
48
48
|
"zod": "^4.0.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|