eve-hub 0.6.69 → 0.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # eve-hub
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - main's compact schedule is gone: the hub's sweep compacts a session whose turn ended at 130k+ input tokens. The kit no longer has `schedules/compact` or `hub.compact`.
8
+
9
+ ## 0.6.70
10
+
11
+ ### Patch Changes
12
+
13
+ - Hosted hub: the hub no longer sends its own project OIDC token to a workspace's bots, only the workspace's BOT_TOKEN. A bot runs its owner's code, which could replay that token against another workspace's bot or anything that trusts the hub project's identity. A bot still accepts a hub token if one comes.
14
+
3
15
  ## 0.6.69
4
16
 
5
17
  ### Patch Changes
package/kit-modules.json CHANGED
@@ -10,7 +10,6 @@
10
10
  "memory/bot",
11
11
  "memory/team",
12
12
  "memory/workspace",
13
- "schedules/compact",
14
13
  "schedules/dash",
15
14
  "schedules/prune",
16
15
  "skills/onboarding-profile",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve-hub",
3
- "version": "0.6.69",
3
+ "version": "0.7.0",
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",
@@ -14,7 +14,6 @@ export type Hub = {
14
14
  commit(id: string, withState: { state?: unknown }, posts: Post[]): Promise<unknown>;
15
15
  post(id: string, text: string, key?: string): Promise<unknown>;
16
16
  track<T>(id: string, fn: () => Promise<T>): Promise<T | undefined>;
17
- compact(threadId: string, bot: string, by: string, report?: { trigger?: string; reportTo?: string }): Promise<{ status: number; ok: boolean; body: unknown }>;
18
17
  dashChecked(prFacts?: Record<string, { head: string | null; ci: string }>): Promise<Ok & { checkedAt: string }>;
19
18
  setSummary(path: string, text: string): Promise<unknown>;
20
19
  dashClassified(): Promise<Ok & { classifiedAt: string }>;
package/schedules/hub.mjs CHANGED
@@ -61,9 +61,6 @@ export function createHub({ base = registryBase(), agent = "main", fetchImpl = f
61
61
  },
62
62
  // A one-off post outside a run (runOnce commits through `commit`).
63
63
  post: (id, text, key) => must(`/api/threads/${encodeURIComponent(threadOf(id))}/messages`, { method: "POST", body: JSON.stringify({ author: "system", text, ...(key ? { clientId: key } : {}) }) }),
64
- // With `report` ({ trigger, reportTo: "<bot>/<schedule>" }) the hub posts
65
- // this compaction's report lines into that schedule's thread itself.
66
- compact: (threadId, bot, by, report = {}) => call(`/api/threads/${encodeURIComponent(threadId)}/compact`, { method: "POST", body: JSON.stringify({ agent: bot, by, ...report }) }),
67
64
  // The Dash was scanned now (hosted-hub/src/domain/dash.mjs checkedAt), changed or not.
68
65
  // `prFacts` ({ "owner/repo#12": { head, ci } }): what the scan's GitHub query said of the PRs reviews are about.
69
66
  dashChecked: (prFacts = {}) => must("/api/dash/checked", { method: "POST", body: JSON.stringify({ by: agent, prFacts }) }),
package/stubs.mjs CHANGED
@@ -38,7 +38,6 @@ export const MAIN_KIT_FILES = {
38
38
  "tools/dash_update.ts": ["Set Dash entries: importance, lane, reason and deferred per thread."],
39
39
  "tools/apply_tags.ts": ["Retag threads, merge or rename tags: applies a staged proposal or a new batch directly."],
40
40
  // Handler schedules: the hub fires them from its minute clock (registry/schedules.mjs).
41
- "schedules/compact.ts": ["Every 10 minutes: compacts idle sessions once their prompt cache has gone cold, reported in sch-main-compact."],
42
41
  "schedules/dash.ts": ["When a bot's turn ends (fired by the hub), and every 8 minutes: the human's PRs, a Dash entry for each thread that changed, and a new summary for each track with news."],
43
42
  "schedules/prune.ts": ["Every 10 minutes: one prune pass over what archived or deleted threads leave on disk: worktrees, scratch, their-only uploads, idle bots' traces and workflow runs; unsaved work kept as refs/bundles."],
44
43
  };
@@ -51,12 +50,10 @@ export const MAIN_KIT_FILES = {
51
50
  // the kit's bash (HostSandbox's root, the daemon's env; eve's own bash runs
52
51
  // instead), the browser and the screenshot paths of attach_image/view_image,
53
52
  // restart_hub (the hub's own code), memory (the workspace's files), and main's prune schedule (it cleans the hub machine's disk).
54
- // main's compact and dash schedules stay: off the hub's machine compact finds no session to compact
55
- // (hosted sessions carry no last-model-call time), and dash has no PR data (its lookup runs `gh`).
53
+ // main's dash schedule stays: off the hub's machine it has no PR data (its lookup runs `gh`).
56
54
  export const DEPLOYED_KIT_FILES = new Set([
57
55
  "channels/eve.ts",
58
56
  "hooks/mention-gate.ts",
59
- "schedules/compact.ts",
60
57
  "schedules/dash.ts",
61
58
  "skills/onboarding-profile.ts",
62
59
  "tools/onboarding_scripts.ts",