@postnesia/hooks 0.1.4 → 0.1.5
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/handler.d.ts +1 -1
- package/dist/handler.js +2 -1
- package/package.json +1 -1
package/dist/handler.d.ts
CHANGED
|
@@ -42,5 +42,5 @@ export type AgentBootstrapHookEvent = InternalHookEvent & {
|
|
|
42
42
|
action: "bootstrap";
|
|
43
43
|
context: AgentBootstrapHookContext;
|
|
44
44
|
};
|
|
45
|
-
declare function handler(event: AgentBootstrapHookEvent):
|
|
45
|
+
declare function handler(event: AgentBootstrapHookEvent): AgentBootstrapHookEvent;
|
|
46
46
|
export default handler;
|
package/dist/handler.js
CHANGED
|
@@ -9,10 +9,11 @@ export const DEFAULT_BOOTSTRAP_FILENAME = "BOOTSTRAP.md";
|
|
|
9
9
|
export const DEFAULT_MEMORY_FILENAME = "MEMORY.md";
|
|
10
10
|
export const DEFAULT_MEMORY_ALT_FILENAME = "memory.md";
|
|
11
11
|
function handler(event) {
|
|
12
|
-
|
|
12
|
+
event.context.bootstrapFiles.map((file) => {
|
|
13
13
|
if (file.name === 'BOOTSTRAP.md') {
|
|
14
14
|
file.content = format(loadL1Memories());
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
+
return event;
|
|
17
18
|
}
|
|
18
19
|
export default handler;
|