eve-hub 0.6.33 → 0.6.34

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # eve-hub
2
2
 
3
+ ## 0.6.34
4
+
5
+ ### Patch Changes
6
+
7
+ - Run on eve 0.81.1: the Dash schedule calls eve's `decide` (renamed from `evaluate`), the sandbox handle hooks are onSandboxStop/onSandboxDelete, and the `ai` peer range is ^7.0.137.
8
+
3
9
  ## 0.6.33
4
10
 
5
11
  ### Patch Changes
package/host-sandbox.d.ts CHANGED
@@ -39,8 +39,8 @@ export declare function hostEnvironment(options?: HostOptions): {
39
39
  worktree?: SessionWorktree;
40
40
  };
41
41
  onRuntimeShutdown: () => Promise<void>;
42
- onSessionStop: () => Promise<void>;
43
- onSessionDelete: () => Promise<void>;
42
+ onSandboxStop: () => Promise<void>;
43
+ onSandboxDelete: () => Promise<void>;
44
44
  };
45
45
  state: HostState;
46
46
  }>;
@@ -53,8 +53,8 @@ export declare function hostEnvironment(options?: HostOptions): {
53
53
  worktree?: SessionWorktree;
54
54
  };
55
55
  onRuntimeShutdown: () => Promise<void>;
56
- onSessionStop: () => Promise<void>;
57
- onSessionDelete: () => Promise<void>;
56
+ onSandboxStop: () => Promise<void>;
57
+ onSandboxDelete: () => Promise<void>;
58
58
  }>;
59
59
  };
60
60
  export declare const HostSandbox: import("eve/sandbox/provider").SandboxProvider<HostOptions, undefined, SandboxSession>;
@@ -65,8 +65,8 @@ export declare function hostHandle(rootOrState: string | HostState, sessionId: s
65
65
  worktree?: SessionWorktree;
66
66
  };
67
67
  onRuntimeShutdown: () => Promise<void>;
68
- onSessionStop: () => Promise<void>;
69
- onSessionDelete: () => Promise<void>;
68
+ onSandboxStop: () => Promise<void>;
69
+ onSandboxDelete: () => Promise<void>;
70
70
  };
71
71
  export declare function killTree(child: ChildProcess): void;
72
72
  declare const forkConfig: (sessionId: string) => Promise<{
package/host-sandbox.js CHANGED
@@ -123,8 +123,8 @@ export function hostHandle(rootOrState, sessionId) {
123
123
  return {
124
124
  sandbox: hostSession(root, children, sessionId, { worktree, rootSessionId }),
125
125
  onRuntimeShutdown: killAll,
126
- onSessionStop: killAll,
127
- onSessionDelete: killAll,
126
+ onSandboxStop: killAll,
127
+ onSandboxDelete: killAll,
128
128
  };
129
129
  }
130
130
  // SIGTERM the whole process group; whatever ignores it gets SIGKILL after
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve-hub",
3
- "version": "0.6.33",
3
+ "version": "0.6.34",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Bot-side code shared by every hub agent: registry tools, the roster hook, the eve channel, the host sandbox and browser, and model helpers.",
6
6
  "type": "module",
@@ -37,6 +37,6 @@
37
37
  "@vercel/oidc": "4.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "ai": "^7.0.122"
40
+ "ai": "^7.0.137"
41
41
  }
42
42
  }
package/schedules/dash.js CHANGED
@@ -1,12 +1,12 @@
1
1
  // main's dash schedule: every 8 minutes, and off-cron as soon as a bot's turn
2
2
  // ends (the hub fires it, so a question shows on the sidebar within seconds),
3
3
  // the one pass behind the Dash: the human's PRs, a model call per thread
4
- // whose facts changed (openai/gpt-6-luna-decisions through eve's `evaluate`,
4
+ // whose facts changed (openai/gpt-6-luna-decisions through eve`s `decide`,
5
5
  // eve's gateway credentials) and a model call per track with news
6
6
  // (anthropic/claude-sonnet-5.5 through the AI SDK). The pass: runPass in
7
7
  // ./dash-pass.mjs.
8
8
  import { defineSchedule } from "eve/schedules";
9
- import { evaluate } from "eve/ai";
9
+ import { decide as evaluate } from "eve/ai";
10
10
  import { generateText } from "ai";
11
11
  import { createHub } from "./hub.mjs";
12
12
  import { modelClassify } from "./dash-classify.mjs";
package/tools/bash.js CHANGED
@@ -1,12 +1,11 @@
1
1
  import { defineTool } from "eve/tools";
2
- import { bash } from "eve/tools/bash";
3
2
  import { z } from "zod";
4
3
  import { MAX_TIMEOUT_S, bashDescription, runBash, workspaceCode } from "../bash-run.mjs";
5
4
  import { HOST_ROOT } from "../host-sandbox.js";
6
5
  // eve's bash, with a time limit and a pointer to the workspace's code (see
7
6
  // ../bash-run.mjs). Same output shape, plus `timedOut` when the limit fired.
8
7
  export default defineTool({
9
- label: bash.label,
8
+ label: { start: (input) => `Run ${input.command}`.trimEnd() },
10
9
  description: bashDescription({ hostRoot: HOST_ROOT }),
11
10
  inputSchema: z.object({
12
11
  command: z.string().describe("The shell command to execute."),