eve-hub 0.6.55 → 0.6.56

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.56
4
+
5
+ ### Patch Changes
6
+
7
+ - Deployed bots always carry the Vercel Kit connection (it resolves to nothing without a `KIT_CONNECTOR`), so a workspace's onboarding-profile skill reaches Slack; onboarding and the upgrade give the bots project the hub's Kit connector.
8
+
3
9
  ## 0.6.55
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve-hub",
3
- "version": "0.6.55",
3
+ "version": "0.6.56",
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",
package/prepare.mjs CHANGED
@@ -10,8 +10,7 @@
10
10
  // off the hub's machine (DEPLOYED_KIT_FILES); a hosted bot whose sandbox.ts
11
11
  // is the host's fails the build, and the build never writes a sandbox;
12
12
  // - the kit extension, host-only workers and kit stubs are dropped, the hub's
13
- // workflow world is wired in (and the Vercel Kit connection, if GITHUB_PATH
14
- // says "kit"), every bot gets eve's git extension, and the
13
+ // workflow world is wired in (and the Vercel Kit connection), every bot gets eve's git extension, and the
15
14
  // workspace's memory is embedded in the bots' memory providers (a function
16
15
  // has no workspace cwd);
17
16
  // - /hub/manifest: the roster and the commit sha the deployment was built
@@ -19,7 +18,6 @@
19
18
  // vercel.mjs. Bearer BOT_TOKEN, as on each bot's eve channel (bot-token.mjs).
20
19
  import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, rmdirSync, unlinkSync, writeFileSync } from "node:fs";
21
20
  import { basename, dirname, join } from "node:path";
22
- import { GITHUB_PATH } from "./github-path.mjs";
23
21
  import { DEPLOYED_KIT_FILES, KIT_FILES, MAIN_KIT_FILES } from "./stubs.mjs";
24
22
  import KIT_MODULES from "./kit-modules.json" with { type: "json" };
25
23
  import { applyKit, readBotFiles, syncKit } from "./sync-kit.mjs";
@@ -152,12 +150,10 @@ export function prepareDeployment(dir) {
152
150
  }
153
151
  const agentFile = join(bot, "agent.ts");
154
152
  writeFileSync(agentFile, injectWorkflowWorld(readFileSync(agentFile, "utf8"), agentFile));
155
- // GITHUB_PATH "kit": the human's connected services (GitHub) come through Vercel Kit,
156
- // with the project's KIT_CONNECTOR. "gh" deploys no Kit connection.
157
- if (GITHUB_PATH === "kit") {
158
- mkdirSync(join(bot, "connections"), { recursive: true });
159
- writeFileSync(join(bot, "connections", "vercel-kit.ts"), 'export { default } from "eve-hub/connections/vercel-kit";\n');
160
- }
153
+ // Slack for the onboarding skill comes through Vercel Kit, with the project's KIT_CONNECTOR;
154
+ // without one the connection resolves to nothing.
155
+ mkdirSync(join(bot, "connections"), { recursive: true });
156
+ writeFileSync(join(bot, "connections", "vercel-kit.ts"), 'export { default } from "eve-hub/connections/vercel-kit";\n');
161
157
  mkdirSync(join(bot, "memory"), { recursive: true });
162
158
  const botDir = join(dir, "agents", name);
163
159
  writeFileSync(join(bot, "memory", "workspace.ts"), memoryProvider("workspace", readMemory(dir, { folders: domainFolders(botDomains(dir, botDir)) }).entries, "Standing decision", "workspace"));
package/github-path.d.mts DELETED
@@ -1 +0,0 @@
1
- export const GITHUB_PATH: "gh" | "kit";
package/github-path.mjs DELETED
@@ -1,8 +0,0 @@
1
- // How every deployed bot reaches GitHub, decided here and nowhere else:
2
- // "gh" `gh` and `git` in bash (the firewall token and eve's git extension, both
3
- // always on, prepare.mjs); no Vercel Kit connection, so no bot can pick
4
- // Kit for GitHub, and onboarding sets up no Kit connector.
5
- // "kit" the same, plus the Kit connection on every bot (prepare.mjs, and the
6
- // peer dependencies it needs in hosted-hub/scripts/stage-workspace.mjs) and
7
- // the Kit connector on each new bots project (hosted-hub/src/onboard/provision-steps.ts).
8
- export const GITHUB_PATH = "gh";