@omercnet/paseo-omp 5.6.1-next.452.1 → 5.6.1-next.453.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-omp",
3
- "version": "5.6.1-next.452.1",
3
+ "version": "5.6.1-next.453.1",
4
4
  "type": "module",
5
5
  "description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
6
6
  "license": "MIT",
@@ -1,2 +1,2 @@
1
1
  /** Release Please keeps this bundle-safe constant aligned with package.json. */
2
- export const PASEO_OMP_PACKAGE_VERSION = "5.6.1-next.452.1"; // x-release-please-version
2
+ export const PASEO_OMP_PACKAGE_VERSION = "5.6.1-next.453.1"; // x-release-please-version
@@ -19,18 +19,18 @@ export type OmpTurnRowReader = (
19
19
  * turn of such an agent, every reader may append one timeline row built from that file.
20
20
  */
21
21
  export function registerOmpTurnRows(
22
- server: Pick<PluginServerContext, "addHook">,
22
+ server: Pick<PluginServerContext, "on">,
23
23
  readers: readonly OmpTurnRowReader[],
24
24
  ): () => void {
25
25
  // One Paseo turn can report several native turn starts; keep the earliest. Hooks run
26
26
  // concurrently, so state is read and cleared before the first await.
27
27
  const turnStarts = new Map<string, number>();
28
28
  const turnKey = (agentId: string, turnId: string | null) => `${agentId}\0${turnId ?? ""}`;
29
- const removeBefore = server.addHook("agent.turn.before", async ({ agent, turnId }) => {
29
+ const removeBefore = server.on("agent.turn_started", async ({ agent, turnId }) => {
30
30
  const key = turnKey(agent.id, turnId);
31
31
  if (agent.provider === "omp" && !turnStarts.has(key)) turnStarts.set(key, Date.now());
32
32
  });
33
- const removeAfter = server.addHook("agent.turn.after", async ({ agent, turnId }, { paseo }) => {
33
+ const removeAfter = server.on("agent.turn_ended", async ({ agent, turnId }, { paseo }) => {
34
34
  const key = turnKey(agent.id, turnId);
35
35
  const since = turnStarts.get(key);
36
36
  const until = Date.now();