diff --git a/IMPLEMENTATION.md b/IMPLEMENTATION.md index b51a8df52..45b2394a5 100644 --- a/IMPLEMENTATION.md +++ b/IMPLEMENTATION.md @@ -244,7 +244,7 @@ handshake. list a workbench host launches with (`workbenchHostInferencePreferences` on the chat adapter; also `tenantDefaultModel` on agent-definition routes). It keeps credentialed completion-capable offerings -(`preferCompletionCapable` in `@workbench/hub-client/model-capability` +(`preferCompletionCapable` in `@workbench/connections/model-capability` — embedding names never win) and, when any survivor is `origin.direct`, picks from that direct set only. Inherit-only catalogs still sort among inherited completion rows. diff --git a/README.md b/README.md index 5a009de2b..5addba643 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ account: anyone who signs up gets a personal bench with no default routines deployed, and first-run tells them exactly that. Onboarding walks them through picking a provider — Anthropic, OpenAI, Google, OpenRouter, Hugging Face, Groq, or another of the curated providers in -[`packages/hub-client/src/catalog-seed-data.ts`](packages/hub-client/src/catalog-seed-data.ts) +[`packages/seeding/src/catalog-seed-data.ts`](packages/seeding/src/catalog-seed-data.ts) — and pasting their own key (or, for OpenRouter, completing a PKCE OAuth connect), which is stored right away — no separate seeding step, no docs to read. A wrong key isn't caught up front; it surfaces the first time diff --git a/apps/hub/package.json b/apps/hub/package.json index 80040fc3a..569791bf5 100644 --- a/apps/hub/package.json +++ b/apps/hub/package.json @@ -66,7 +66,6 @@ "@workbench/connections": "workspace:*", "@corbits/hub-api-client": "workspace:*", "@corbits/seeding": "workspace:*", - "@workbench/hub-client": "workspace:*", "@workbench/onboarding": "workspace:*", "@workbench/templates": "workspace:*", "arktype": "catalog:", diff --git a/apps/hub/src/config.ts b/apps/hub/src/config.ts index 8e7b8bd78..5c4754b79 100644 --- a/apps/hub/src/config.ts +++ b/apps/hub/src/config.ts @@ -44,7 +44,7 @@ import { envProviderBaseUrlsFrom, envProviderKeysFrom, } from "@workbench/onboarding"; -import type { SupportedCredentialProvider } from "@workbench/hub-client"; +import type { SupportedCredentialProvider } from "@workbench/connections/credential-test"; const HTTP_URL = /^https?:\/\/.+$/; diff --git a/apps/hub/src/env-credential-plant.ts b/apps/hub/src/env-credential-plant.ts index 87ff17d44..31daf2e9e 100644 --- a/apps/hub/src/env-credential-plant.ts +++ b/apps/hub/src/env-credential-plant.ts @@ -22,7 +22,7 @@ // virgin, open-signup database. Falling through to sign-up the way // those interactive commands do would let a boot-time retry tick mint // the default admin account (and its default password) on its own — -// so this module authenticates with `@workbench/hub-client`'s +// so this module authenticates with `@corbits/hub-api-client`'s // sign-in-only `signIn`, and an unresolved admin account is treated // exactly like an unresolved bench: retried quietly, never a reason to // self-provision the account. diff --git a/apps/hub/src/index.ts b/apps/hub/src/index.ts index 95c549ab3..3c968d0bc 100644 --- a/apps/hub/src/index.ts +++ b/apps/hub/src/index.ts @@ -287,7 +287,7 @@ import { createPresenceRoutes, type PresenceRoomKey, } from "@corbits/presence"; -import { supportedCredentialProviders } from "@workbench/hub-client"; +import { supportedCredentialProviders } from "@workbench/connections/credential-test"; import { createGitWorkflowPusher } from "@corbits/seeding"; import { createHubAPI } from "@corbits/hub-api-client"; import { @@ -1300,7 +1300,7 @@ export async function createHub(config: HubConfig) { // Mounted outside the tenant prefix — the sidecar reaches it as a // plain inference endpoint, never through tenant-scoped auth, the // same way it reaches a real provider's API. Pinned by the heartbeat - // and workbench-digest workflows' seeds (`@corbits/hub-client`), whose + // and workbench-digest workflows' seeds (`@corbits/seeding`), whose // agents never produce text. `config.baseUrl` (not `localhost`) is // what makes the URL usable from a sidecar on another machine. app.route("/api/chat/noop-inference", createNoopInferenceRoutes()); diff --git a/apps/sidecar/src/config.ts b/apps/sidecar/src/config.ts index 9ab3923dc..d1ecd3299 100644 --- a/apps/sidecar/src/config.ts +++ b/apps/sidecar/src/config.ts @@ -14,7 +14,7 @@ import { parseToolRegistries } from "./tool-materialization"; /** * The shipped default manifest: registers `@corbits/ollama-adapter`'s * `createOllamaAdapter` for the `"ollama"` provider key so a seeded - * Ollama deployment's `quirks.numCtx` (see `@corbits/hub-client`'s + * Ollama deployment's `quirks.numCtx` (see `@corbits/seeding`'s * seed and `./workflow-substrate-factory/context-budget`) actually * reaches Ollama's `options.num_ctx` instead of silently falling back * to the built-in adapter's defaults. An operator who sets diff --git a/apps/sidecar/test/adapter-registry.test.ts b/apps/sidecar/test/adapter-registry.test.ts index e4ab8f0cc..8127f232c 100644 --- a/apps/sidecar/test/adapter-registry.test.ts +++ b/apps/sidecar/test/adapter-registry.test.ts @@ -34,7 +34,7 @@ test("a seeded Ollama model's quirks.numCtx reaches the built request as options provider: "ollama", model: "gpt-oss:20b", }; - // Shaped exactly like `@corbits/hub-client`'s seed writes onto a + // Shaped exactly like `@corbits/seeding`'s seed writes onto a // catalog offering's `quirks` column (`quirksForDeployment`). const quirks = { default: { numCtx: 32_768 } }; const adapter = registry.resolve(source, quirks); diff --git a/apps/web/package.json b/apps/web/package.json index 0d2a94a51..e42d1cc64 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -48,7 +48,6 @@ "@radix-ui/react-slot": "^1.2.3", "@tanstack/react-query": "catalog:", "@workbench/connections": "workspace:*", - "@workbench/hub-client": "workspace:*", "@workbench/templates": "workspace:*", "arktype": "catalog:", "react": "^19.2.0", diff --git a/apps/web/src/agents-api.ts b/apps/web/src/agents-api.ts index 2ba1329e1..8b046ecd1 100644 --- a/apps/web/src/agents-api.ts +++ b/apps/web/src/agents-api.ts @@ -23,7 +23,7 @@ import { UnauthenticatedError, toAPIQuery, } from "@corbits/api-query"; -import { isChatPickerModelName } from "@workbench/hub-client/model-capability"; +import { isChatPickerModelName } from "@workbench/connections/model-capability"; import { tenantKeys } from "./query-client"; export type AgentDefinition = typeof WorkflowDefinitionResponse.infer; diff --git a/apps/web/src/myra-workbench.ts b/apps/web/src/myra-workbench.ts index 1a109706e..2e225b4df 100644 --- a/apps/web/src/myra-workbench.ts +++ b/apps/web/src/myra-workbench.ts @@ -16,7 +16,7 @@ import { listAgentDefinitions, type AgentDefinition } from "./agents-api"; export const MYRA_WORKBENCH_TITLE = "Myra"; -/** The seeded workflow asset backing Myra (`packages/hub-client/src/seed.ts` +/** The seeded workflow asset backing Myra (`packages/seeding/src/seed.ts` * deploys it as `assistant`, stamped with catalog displayName "Myra"). A * chat's `definitionId` names this deployed definition's row id, never the * asset name itself. */ diff --git a/apps/web/src/onboarding.ts b/apps/web/src/onboarding.ts index 63c28f207..239de040d 100644 --- a/apps/web/src/onboarding.ts +++ b/apps/web/src/onboarding.ts @@ -6,7 +6,7 @@ // so a broken provisioning call never leaves the user silently benchless. import { type } from "arktype"; -import type { SupportedCredentialProvider } from "@workbench/hub-client/credential-test"; +import type { SupportedCredentialProvider } from "@workbench/connections/credential-test"; const ProvisionResult = type({ kind: "'existing-member' | 'provisioned' | 'needs-onboarding'", diff --git a/apps/web/src/pages/onboarding-page.tsx b/apps/web/src/pages/onboarding-page.tsx index a3c3a0646..ba695684c 100644 --- a/apps/web/src/pages/onboarding-page.tsx +++ b/apps/web/src/pages/onboarding-page.tsx @@ -32,7 +32,7 @@ import { Key, WarningCircle } from "@corbits/icons"; import { WorkbenchLoadingState } from "@corbits/chat-ui"; import { useCallback, useEffect, useState } from "react"; import type { FormEvent } from "react"; -import { OLLAMA_PLACEHOLDER_SECRET } from "@workbench/hub-client/credential-test"; +import { OLLAMA_PLACEHOLDER_SECRET } from "@workbench/connections/credential-test"; import { useNavigate } from "../navigation"; import { diff --git a/apps/web/test/onboarding.test.tsx b/apps/web/test/onboarding.test.tsx index ab7ebb80c..9c47168c3 100644 --- a/apps/web/test/onboarding.test.tsx +++ b/apps/web/test/onboarding.test.tsx @@ -13,7 +13,7 @@ import { renderToStaticMarkup } from "react-dom/server"; import { OLLAMA_PLACEHOLDER_SECRET, supportedCredentialProviders, -} from "@workbench/hub-client/credential-test"; +} from "@workbench/connections/credential-test"; import { App } from "../src/app"; import { NavigationProvider } from "../src/navigation"; @@ -62,7 +62,7 @@ const signedIn: SessionState = { describe("CREDENTIAL_PROVIDERS", () => { // ProviderPicker (onboarding-page.tsx) renders one card per entry here — // this is the data the cards are built from, so covering it covers what - // actually shows up: one card per `@workbench/hub-client` provider the + // actually shows up: one card per `@workbench/connections` provider the // hub can actually test a credential against, each with a distinct // honest one-liner and a real key-console link. Compared against // `supportedCredentialProviders()` directly, not a second hand-copied diff --git a/bun.lock b/bun.lock index 96c562ad0..79021e9dc 100644 --- a/bun.lock +++ b/bun.lock @@ -87,7 +87,6 @@ "@modelcontextprotocol/sdk": "catalog:", "@workbench/access-policy": "workspace:*", "@workbench/connections": "workspace:*", - "@workbench/hub-client": "workspace:*", "@workbench/onboarding": "workspace:*", "@workbench/templates": "workspace:*", "arktype": "catalog:", @@ -171,7 +170,6 @@ "@radix-ui/react-slot": "^1.2.3", "@tanstack/react-query": "catalog:", "@workbench/connections": "workspace:*", - "@workbench/hub-client": "workspace:*", "@workbench/templates": "workspace:*", "arktype": "catalog:", "react": "^19.2.0", @@ -225,7 +223,6 @@ "@intx/log": "0.3.0", "@intx/types": "workspace:*", "@intx/workflow": "workspace:*", - "@workbench/hub-client": "workspace:*", "@workbench/templates": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", @@ -355,7 +352,6 @@ "@intx/db": "workspace:*", "@intx/hub-api": "workspace:*", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -373,7 +369,6 @@ "@corbits/error-sink": "workspace:*", "@corbits/migration-runner": "workspace:*", "@intx/hub-api": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -454,7 +449,6 @@ "@intx/workflow": "workspace:*", "@intx/workflow-deploy": "workspace:*", "@workbench/connections": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -545,7 +539,6 @@ "dependencies": { "@corbits/error-sink": "workspace:*", "@intx/hub-api": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "hono": "^4.11.9", }, @@ -571,7 +564,6 @@ "@intx/hub-api": "workspace:*", "@intx/types": "workspace:*", "@modelcontextprotocol/sdk": "catalog:", - "@workbench/hub-client": "workspace:*", "@workbench/templates": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", @@ -687,7 +679,6 @@ "@intx/workflow": "workspace:*", "@modelcontextprotocol/sdk": "catalog:", "@workbench/connections": "workspace:*", - "@workbench/hub-client": "workspace:*", "@workbench/onboarding": "workspace:*", "@workbench/templates": "workspace:*", "arktype": "catalog:", @@ -805,18 +796,6 @@ "typescript": "catalog:", }, }, - "packages/hub-client": { - "name": "@workbench/hub-client", - "version": "0.0.1", - "dependencies": { - "@intx/types": "workspace:*", - "arktype": "catalog:", - }, - "devDependencies": { - "@types/bun": "catalog:", - "typescript": "catalog:", - }, - }, "packages/icons": { "name": "@corbits/icons", "version": "0.0.1", @@ -862,7 +841,6 @@ "@intx/hub-api": "workspace:*", "@intx/inference-catalog": "0.3.0", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -878,7 +856,7 @@ "version": "0.0.1", "dependencies": { "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", + "@workbench/connections": "workspace:*", "arktype": "catalog:", }, "devDependencies": { @@ -898,7 +876,6 @@ "@intx/hub-common": "0.3.0", "@intx/log": "0.3.0", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -1000,7 +977,6 @@ "@corbits/artifacts-hub": "workspace:*", "@corbits/error-sink": "workspace:*", "@corbits/memory": "github:corbitsdev/corbits-memory#9e6f213fa2c002b531d3f6af1aa0abd737b8afe3", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "hono": "^4.11.9", }, @@ -1042,7 +1018,6 @@ }, "devDependencies": { "@types/bun": "catalog:", - "@workbench/hub-client": "workspace:*", "typescript": "catalog:", }, }, @@ -1088,7 +1063,6 @@ "@intx/types": "workspace:*", "@workbench/access-policy": "workspace:*", "@workbench/connections": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -1128,7 +1102,6 @@ "@corbits/error-sink": "workspace:*", "@corbits/migration-runner": "workspace:*", "@intx/hub-api": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -1145,7 +1118,6 @@ "dependencies": { "@corbits/error-sink": "workspace:*", "@intx/hub-api": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "hono": "^4.11.9", "y-protocols": "^1.0.7", @@ -1161,7 +1133,7 @@ "version": "0.0.1", "dependencies": { "@intx/inference-catalog": "0.3.0", - "@workbench/hub-client": "workspace:*", + "@workbench/connections": "workspace:*", }, "devDependencies": { "@types/bun": "catalog:", @@ -1197,7 +1169,6 @@ "@intx/hub-common": "0.3.0", "@intx/log": "0.3.0", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "cronstrue": "^3.24.0", "drizzle-orm": "catalog:", @@ -1232,7 +1203,6 @@ "@intx/db": "workspace:*", "@intx/hub-api": "workspace:*", "@intx/log": "0.3.0", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -1252,7 +1222,6 @@ "@intx/db": "workspace:*", "@intx/hub-api": "workspace:*", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -1305,7 +1274,7 @@ "@corbits/workflows": "workspace:*", "@intx/inference": "workspace:*", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", + "@workbench/connections": "workspace:*", "@workbench/templates": "workspace:*", "arktype": "catalog:", }, @@ -1364,7 +1333,6 @@ "@intx/db": "workspace:*", "@intx/hub-api": "workspace:*", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -1382,7 +1350,6 @@ "@intx/db": "workspace:*", "@intx/hub-api": "workspace:*", "@intx/hub-sessions": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -1516,7 +1483,6 @@ "@intx/hub-sessions": "workspace:*", "@intx/log": "0.3.0", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -1553,7 +1519,6 @@ "@intx/hub-api": "workspace:*", "@intx/hub-sessions": "workspace:*", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", @@ -2762,8 +2727,6 @@ "@workbench/hub": ["@workbench/hub@workspace:apps/hub"], - "@workbench/hub-client": ["@workbench/hub-client@workspace:packages/hub-client"], - "@workbench/onboarding": ["@workbench/onboarding@workspace:packages/onboarding"], "@workbench/sidecar": ["@workbench/sidecar@workspace:apps/sidecar"], @@ -3616,14 +3579,6 @@ "@corbits/artifacts-hub/@corbits/artifacts": ["@corbits/artifacts@github:corbitsdev/corbits-artifacts#81049ed", { "dependencies": { "@hono/standard-validator": "^0.2.3" }, "peerDependencies": { "@intx/types": "^0.2.2", "arktype": "^2.1.29", "drizzle-orm": "^0.45.2", "hono": "^4.12.32", "hono-openapi": "^1.2.0", "postgres": "^3.4.9" } }, "corbitsdev-corbits-artifacts-81049ed", "sha512-oTE0iFDyQdz0ifG1epo39pwaCaYaw19YcKXwfaZqAEQ56a1g9YIozXwH9CG4NaUTwcJKUeYGuNls6oJsMPisCw=="], - "@corbits/chat-ui/@corbits/react-ui": ["@corbits/react-ui@github:corbitsdev/react-ui#3b12281", { "dependencies": { "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "tailwind-merge": "^3.3.1" }, "peerDependencies": { "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dropdown-menu": "^2.1.16", "@radix-ui/react-slot": "^1.2.3", "@radix-ui/react-tooltip": "^1.2.8", "@tanstack/react-query": "^5.90.2", "lucide-react": "^0.545.0 || ^1.0.0", "react": "^18.2.0 || ^19.0.0", "react-dom": "^18.2.0 || ^19.0.0", "sonner": "^2.0.7" }, "optionalPeers": ["@tanstack/react-query"] }, "corbitsdev-react-ui-3b12281", "sha512-Abvm/DO0Gqg0ITHGT9355ZxyKRPMVJLSSQSjpd3a8qt4JPrSMOLIOS4sX8ZMNNaArIbnY9F+VKrOWkUJUyO4Nw=="], - - "@corbits/context-menu/@corbits/react-ui": ["@corbits/react-ui@github:corbitsdev/react-ui#3b12281", { "dependencies": { "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "tailwind-merge": "^3.3.1" }, "peerDependencies": { "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dropdown-menu": "^2.1.16", "@radix-ui/react-slot": "^1.2.3", "@radix-ui/react-tooltip": "^1.2.8", "@tanstack/react-query": "^5.90.2", "lucide-react": "^0.545.0 || ^1.0.0", "react": "^18.2.0 || ^19.0.0", "react-dom": "^18.2.0 || ^19.0.0", "sonner": "^2.0.7" }, "optionalPeers": ["@tanstack/react-query"] }, "corbitsdev-react-ui-3b12281", "sha512-Abvm/DO0Gqg0ITHGT9355ZxyKRPMVJLSSQSjpd3a8qt4JPrSMOLIOS4sX8ZMNNaArIbnY9F+VKrOWkUJUyO4Nw=="], - - "@corbits/plugins-ui/@corbits/react-ui": ["@corbits/react-ui@github:corbitsdev/react-ui#3b12281", { "dependencies": { "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "tailwind-merge": "^3.3.1" }, "peerDependencies": { "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dropdown-menu": "^2.1.16", "@radix-ui/react-slot": "^1.2.3", "@radix-ui/react-tooltip": "^1.2.8", "@tanstack/react-query": "^5.90.2", "lucide-react": "^0.545.0 || ^1.0.0", "react": "^18.2.0 || ^19.0.0", "react-dom": "^18.2.0 || ^19.0.0", "sonner": "^2.0.7" }, "optionalPeers": ["@tanstack/react-query"] }, "corbitsdev-react-ui-3b12281", "sha512-Abvm/DO0Gqg0ITHGT9355ZxyKRPMVJLSSQSjpd3a8qt4JPrSMOLIOS4sX8ZMNNaArIbnY9F+VKrOWkUJUyO4Nw=="], - - "@corbits/settings-ui/@corbits/react-ui": ["@corbits/react-ui@github:corbitsdev/react-ui#3b12281", { "dependencies": { "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "tailwind-merge": "^3.3.1" }, "peerDependencies": { "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dropdown-menu": "^2.1.16", "@radix-ui/react-slot": "^1.2.3", "@radix-ui/react-tooltip": "^1.2.8", "@tanstack/react-query": "^5.90.2", "lucide-react": "^0.545.0 || ^1.0.0", "react": "^18.2.0 || ^19.0.0", "react-dom": "^18.2.0 || ^19.0.0", "sonner": "^2.0.7" }, "optionalPeers": ["@tanstack/react-query"] }, "corbitsdev-react-ui-3b12281", "sha512-Abvm/DO0Gqg0ITHGT9355ZxyKRPMVJLSSQSjpd3a8qt4JPrSMOLIOS4sX8ZMNNaArIbnY9F+VKrOWkUJUyO4Nw=="], - "@esbuild-kit/core-utils/esbuild": ["esbuild@0.18.20", "", { "optionalDependencies": { "@esbuild/android-arm": "0.18.20", "@esbuild/android-arm64": "0.18.20", "@esbuild/android-x64": "0.18.20", "@esbuild/darwin-arm64": "0.18.20", "@esbuild/darwin-x64": "0.18.20", "@esbuild/freebsd-arm64": "0.18.20", "@esbuild/freebsd-x64": "0.18.20", "@esbuild/linux-arm": "0.18.20", "@esbuild/linux-arm64": "0.18.20", "@esbuild/linux-ia32": "0.18.20", "@esbuild/linux-loong64": "0.18.20", "@esbuild/linux-mips64el": "0.18.20", "@esbuild/linux-ppc64": "0.18.20", "@esbuild/linux-riscv64": "0.18.20", "@esbuild/linux-s390x": "0.18.20", "@esbuild/linux-x64": "0.18.20", "@esbuild/netbsd-x64": "0.18.20", "@esbuild/openbsd-x64": "0.18.20", "@esbuild/sunos-x64": "0.18.20", "@esbuild/win32-arm64": "0.18.20", "@esbuild/win32-ia32": "0.18.20", "@esbuild/win32-x64": "0.18.20" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA=="], "@eslint-community/eslint-utils/eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="], @@ -3648,8 +3603,6 @@ "@workbench/hub/@corbits/artifacts": ["@corbits/artifacts@github:corbitsdev/corbits-artifacts#81049ed", { "dependencies": { "@hono/standard-validator": "^0.2.3" }, "peerDependencies": { "@intx/types": "^0.2.2", "arktype": "^2.1.29", "drizzle-orm": "^0.45.2", "hono": "^4.12.32", "hono-openapi": "^1.2.0", "postgres": "^3.4.9" } }, "corbitsdev-corbits-artifacts-81049ed", "sha512-oTE0iFDyQdz0ifG1epo39pwaCaYaw19YcKXwfaZqAEQ56a1g9YIozXwH9CG4NaUTwcJKUeYGuNls6oJsMPisCw=="], - "@workbench/web/@corbits/react-ui": ["@corbits/react-ui@github:corbitsdev/react-ui#3b12281", { "dependencies": { "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "tailwind-merge": "^3.3.1" }, "peerDependencies": { "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dropdown-menu": "^2.1.16", "@radix-ui/react-slot": "^1.2.3", "@radix-ui/react-tooltip": "^1.2.8", "@tanstack/react-query": "^5.90.2", "lucide-react": "^0.545.0 || ^1.0.0", "react": "^18.2.0 || ^19.0.0", "react-dom": "^18.2.0 || ^19.0.0", "sonner": "^2.0.7" }, "optionalPeers": ["@tanstack/react-query"] }, "corbitsdev-react-ui-3b12281", "sha512-Abvm/DO0Gqg0ITHGT9355ZxyKRPMVJLSSQSjpd3a8qt4JPrSMOLIOS4sX8ZMNNaArIbnY9F+VKrOWkUJUyO4Nw=="], - "ajv-formats/ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="], "better-call/@better-auth/utils": ["@better-auth/utils@0.5.0", "", { "dependencies": { "@noble/hashes": "^2.0.1" } }, "sha512-BL8W4EfIZFwlu0r54m3v1ztjDhu6dDe/amLTm0xybmbZaNgYUqhD3SjpAsnq0q8YD6/ki4iwIgxJNLP/N3TxiA=="], diff --git a/docs/GLOSSARY.md b/docs/GLOSSARY.md index 1ec2ee4fa..fe51676cf 100644 --- a/docs/GLOSSARY.md +++ b/docs/GLOSSARY.md @@ -64,5 +64,4 @@ Naming conventions for this repository's packages: package is one of a family (`-agent`, `-tool`). - `@workbench/*` is a legacy scope being migrated to `@corbits/*` package by package; a handful of packages still carry it (`access-policy`, - `cli`, `connections`, `echo`, `hub-client`, `onboarding`). New packages - never use it. + `connections`, `onboarding`). New packages never use it. diff --git a/docs/local-rip.md b/docs/local-rip.md index ac5db81c5..1c0c851af 100644 --- a/docs/local-rip.md +++ b/docs/local-rip.md @@ -18,13 +18,13 @@ a real inference provider wired up end to end. [README.md](../README.md#running-locally) for the `brew install` line - `git` on your `PATH` — the onboarding connect flow pushes the default workflow definitions into the hub over git smart-HTTP - (`packages/hub-client/src/workflow-push.ts`'s `createGitWorkflowPusher` + (`packages/seeding/src/workflow-push.ts`'s `createGitWorkflowPusher` shells out to the system `git` binary; it fails loud with an install hint if `git` isn't found) - A real API key for the provider you want to connect (this walkthrough uses OpenRouter's OAuth connect, which needs no key of your own to paste — see below — but any of the providers in - [`packages/hub-client/src/catalog-seed-data.ts`](../packages/hub-client/src/catalog-seed-data.ts) + [`packages/seeding/src/catalog-seed-data.ts`](../packages/seeding/src/catalog-seed-data.ts) works the same way with a pasted key) ## 1. Bring up a clean stack @@ -83,12 +83,12 @@ Either path: 1. proves your key or exchanged token with a real, free call against the provider's own auth-gated endpoint (`testProviderCredential` — - `packages/hub-client/src/credential-test.ts`) before storing anything; + `packages/connections/src/credential-test.ts`) before storing anything; 2. plants it as a credential on your bench alongside that provider's curated model catalog; 3. deploys and (unlike the OAuth callback's own fast half) confirms every default workflow the platform ships: **echo**, **assistant**, and - **workbench-digest** (`packages/hub-client/src/seed.ts`'s + **workbench-digest** (`packages/seeding/src/seed.ts`'s `DEFAULT_WORKFLOWS`). Expect the page to show a short "setting up your workbench" wait while @@ -122,7 +122,7 @@ Back in Settings → Connections, the provider you connected shows as (`GET /api/tenants/:id/credentials`) the same way `packages/settings-ui/src/connections-status.ts`'s `connectorStatus` does — the credential named `-default` -(`inferenceCredentialName`, `packages/hub-client/src/seed.ts`), `status: +(`inferenceCredentialName`, `packages/seeding/src/seed.ts`), `status: "active"`. That's the onboard → connect leg, proven with your own real key end to diff --git a/docs/model-seeding.md b/docs/model-seeding.md index 3866a81e5..2c145bd00 100644 --- a/docs/model-seeding.md +++ b/docs/model-seeding.md @@ -13,7 +13,7 @@ Everything about "which providers and models a bench knows about" is curated, hand-authored data, planted through the hub's native catalog HTTP API — never discovered at runtime: -- **`packages/hub-client/src/catalog-seed-data.ts` (`CATALOG_SEEDS`)** — one +- **`packages/seeding/src/catalog-seed-data.ts` (`CATALOG_SEEDS`)** — one curated seed per supported credential provider: a provider row (its adapter plugin and base URL) and a small hand-picked model set. This is what boot-time seeding (`apps/hub/src/system-seed.ts`) plants for the @@ -21,7 +21,7 @@ API — never discovered at runtime: onboarding plants for whichever provider a person connects — including the OpenRouter PKCE connect (see [onboarding-openrouter-connect.md](onboarding-openrouter-connect.md)). -- **`packages/hub-client/src/seed.ts` (`seedCatalog`)** — walks one +- **`packages/seeding/src/seed.ts` (`seedCatalog`)** — walks one provider's seed through `POST /api/tenants/:id/catalog/{model,providers,credentials,offerings}`, idempotently. The offering's `capabilities` field (see @@ -35,7 +35,7 @@ API — never discovered at runtime: open-weight relay — is seeded with an empty list, said out loud in the seed log, because a guessed capability routes real work to a model that cannot do it. -- **`packages/hub-client/src/credential-test.ts` (`PROVIDER_TEST_CONFIG`)** — +- **`packages/connections/src/credential-test.ts` (`PROVIDER_TEST_CONFIG`)** — a second, independent hardcoded table: each provider's free auth-gated probe endpoint, used to prove a freshly-entered key works before it is ever stored. Its own `probeModel`/`baseURL` fields exist only to build diff --git a/docs/seed-reconciliation.md b/docs/seed-reconciliation.md index ccae3b404..cc2d6f8f4 100644 --- a/docs/seed-reconciliation.md +++ b/docs/seed-reconciliation.md @@ -49,7 +49,7 @@ answers 503 — never a 404, which would read as "no such template". ## Default routine presets (onboarding / boot-time seeding) -`ensureDefaultRoutines` (`packages/hub-client/src/default-routines.ts`) +`ensureDefaultRoutines` (`packages/seeding/src/default-routines.ts`) plants `DEFAULT_ROUTINE_PRESETS` through `POST /routines` with a `presetKey`, backed by `@corbits/routines`' `createRoutineIfAbsent`. @@ -68,7 +68,7 @@ plants `DEFAULT_ROUTINE_PRESETS` through `POST /routines` with a ## Default skills (boot-time seeding) -`plantDefaultSkills` (`packages/hub-client/src/seed.ts`) plants each +`plantDefaultSkills` (`packages/seeding/src/seed.ts`) plants each `DEFAULT_SKILLS` entry through `POST /api/tenants/:id/skills`, after first checking `GET /api/tenants/:id/skills/:name`. @@ -104,7 +104,7 @@ usable-looking-but-empty asset: ## Workflow deployments (boot-time seeding) -`ensureDeployment` (`packages/hub-client/src/seed.ts`) treats a +`ensureDeployment` (`packages/seeding/src/seed.ts`) treats a workflow's `workflow_run` deployment row as seed-owned state, but the row's `status` column is not the whole story: the hub only routes mail to a deployment through an in-memory table (`sidecarRouter`'s diff --git a/packages/agent-directory/package.json b/packages/agent-directory/package.json index 2f4c4b657..a633aa165 100644 --- a/packages/agent-directory/package.json +++ b/packages/agent-directory/package.json @@ -27,7 +27,6 @@ "@intx/log": "0.3.0", "@intx/types": "workspace:*", "@intx/workflow": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/packages/artifacts-hub/package.json b/packages/artifacts-hub/package.json index 44c656bbd..b3fb0574d 100644 --- a/packages/artifacts-hub/package.json +++ b/packages/artifacts-hub/package.json @@ -22,7 +22,6 @@ "@intx/db": "workspace:*", "@intx/hub-api": "workspace:*", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9" diff --git a/packages/bench/package.json b/packages/bench/package.json index 4f2a29513..6c7709ccc 100644 --- a/packages/bench/package.json +++ b/packages/bench/package.json @@ -19,7 +19,6 @@ "@corbits/error-sink": "workspace:*", "@corbits/migration-runner": "workspace:*", "@intx/hub-api": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/packages/bench/tsconfig.json b/packages/bench/tsconfig.json index 0a981930f..859618998 100644 --- a/packages/bench/tsconfig.json +++ b/packages/bench/tsconfig.json @@ -21,9 +21,6 @@ { "path": "../error-sink/tsconfig.src.json" }, - { - "path": "../hub-client/tsconfig.src.json" - }, { "path": "../migration-runner/tsconfig.src.json" } diff --git a/packages/bench/tsconfig.src.json b/packages/bench/tsconfig.src.json index 573063af3..517ced775 100644 --- a/packages/bench/tsconfig.src.json +++ b/packages/bench/tsconfig.src.json @@ -19,9 +19,6 @@ { "path": "../error-sink/tsconfig.src.json" }, - { - "path": "../hub-client/tsconfig.src.json" - }, { "path": "../migration-runner/tsconfig.src.json" } diff --git a/packages/chat/package.json b/packages/chat/package.json index 2407f9121..19a0413ec 100644 --- a/packages/chat/package.json +++ b/packages/chat/package.json @@ -51,7 +51,6 @@ "@intx/workflow-deploy": "workspace:*", "@corbits/url-path": "workspace:*", "@workbench/connections": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/packages/chat/src/inference-preferences.ts b/packages/chat/src/inference-preferences.ts index 9f42c0279..d8182efa5 100644 --- a/packages/chat/src/inference-preferences.ts +++ b/packages/chat/src/inference-preferences.ts @@ -18,7 +18,7 @@ import { type ResolvedOffering, } from "@intx/db"; import type { InferencePreference } from "@intx/agent"; -import { preferCompletionCapable } from "@workbench/hub-client/model-capability"; +import { preferCompletionCapable } from "@workbench/connections/model-capability"; /** Reads back the provider names a tenant (or an ancestor it inherits * catalog rows from) actually has a usable credential for. */ diff --git a/packages/chat/src/noop-inference.ts b/packages/chat/src/noop-inference.ts index d9aeebeab..be24f9582 100644 --- a/packages/chat/src/noop-inference.ts +++ b/packages/chat/src/noop-inference.ts @@ -1,7 +1,7 @@ // A hub-served stand-in for a real Anthropic endpoint, spoken by // agents that must never produce text: `workflows/heartbeat` and // `workflows/workbench-digest` pin their `ModelSource` here (see -// `@corbits/hub-client`'s `seed.ts`) so their scheduled turns complete +// `@corbits/seeding`'s `seed.ts`) so their scheduled turns complete // instantly against a constant empty reply instead of burning a live // model call whose output would be discarded. // diff --git a/packages/commands/package.json b/packages/commands/package.json index ed17328d0..055c7c1ac 100644 --- a/packages/commands/package.json +++ b/packages/commands/package.json @@ -15,7 +15,6 @@ "dependencies": { "@corbits/error-sink": "workspace:*", "@intx/hub-api": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "hono": "^4.11.9" }, diff --git a/packages/commands/tsconfig.json b/packages/commands/tsconfig.json index 2292acf3a..6e7e759ce 100644 --- a/packages/commands/tsconfig.json +++ b/packages/commands/tsconfig.json @@ -17,9 +17,6 @@ }, { "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" } ] } diff --git a/packages/commands/tsconfig.src.json b/packages/commands/tsconfig.src.json index f4bb20362..69802c4fc 100644 --- a/packages/commands/tsconfig.src.json +++ b/packages/commands/tsconfig.src.json @@ -15,9 +15,6 @@ }, { "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" } ] } diff --git a/packages/connections/README.md b/packages/connections/README.md index ba713199f..18ce53691 100644 --- a/packages/connections/README.md +++ b/packages/connections/README.md @@ -7,7 +7,7 @@ resolve a connector's credential across a tenant chain. ## How it composes with Interchange -- Credentials are stored and read through `@workbench/hub-client`'s +- Credentials are stored and read through `@corbits/seeding`'s `ensureProvider`/`ensureCredential` helpers over the native hub API — this package never reimplements credential storage. - `plugins.ts`'s tenant-inheritance resolution calls the native, already diff --git a/packages/connections/package.json b/packages/connections/package.json index 2e6f25f9b..a38ff6eb7 100644 --- a/packages/connections/package.json +++ b/packages/connections/package.json @@ -14,7 +14,9 @@ "./mcp-presets": "./src/mcp-presets.ts", "./connect-github-routes": "./src/connect-github-routes.ts", "./connect-github-setup": "./src/connect-github-setup.ts", - "./reconcile-duplicate-repo-grants": "./src/reconcile-duplicate-repo-grants.ts" + "./reconcile-duplicate-repo-grants": "./src/reconcile-duplicate-repo-grants.ts", + "./credential-test": "./src/credential-test.ts", + "./model-capability": "./src/model-capability.ts" }, "scripts": { "typecheck": "tsc --noEmit", @@ -34,7 +36,6 @@ "@modelcontextprotocol/sdk": "catalog:", "@corbits/hub-api-client": "workspace:*", "@corbits/seeding": "workspace:*", - "@workbench/hub-client": "workspace:*", "@workbench/templates": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", diff --git a/packages/connections/src/connect-github-routes.ts b/packages/connections/src/connect-github-routes.ts index e86cc4b46..da98b1861 100644 --- a/packages/connections/src/connect-github-routes.ts +++ b/packages/connections/src/connect-github-routes.ts @@ -46,7 +46,7 @@ import { templateReposSettingsPatch } from "@workbench/templates/settings"; // client failure both carry provider/internal detail (a rejected repo id, // an HTTP status line) that a person pasting a token never needs to read — // the CL-6360 idiom this route follows throughout via -// `@workbench/hub-client`'s `makeErrorEnvelope`: log the real cause behind +// `@corbits/error-sink`'s `makeErrorEnvelope`: log the real cause behind // a `refId`, answer with one honest, actionable `userMessage`. const REPOS_UNREADABLE_MESSAGE = "Couldn't read your GitHub repositories. Try reconnecting."; diff --git a/packages/hub-client/src/credential-test.ts b/packages/connections/src/credential-test.ts similarity index 100% rename from packages/hub-client/src/credential-test.ts rename to packages/connections/src/credential-test.ts diff --git a/packages/connections/src/descriptor.ts b/packages/connections/src/descriptor.ts index 53dfb35f7..9dd283187 100644 --- a/packages/connections/src/descriptor.ts +++ b/packages/connections/src/descriptor.ts @@ -3,7 +3,7 @@ // a card and, for an api-key connector, drive the test-then-store flow // `./routes.ts` exposes, or for an oauth-pkce/oauth-code connector, // drive the connect flow `./oauth-routes.ts` exposes. -import type { CredentialTestResult } from "@workbench/hub-client/credential-test"; +import type { CredentialTestResult } from "./credential-test"; export type ConnectorAuthKind = "oauth-pkce" | "oauth-code" | "api-key" | "webhook-secret"; diff --git a/packages/hub-client/src/model-capability.test.ts b/packages/connections/src/model-capability.test.ts similarity index 100% rename from packages/hub-client/src/model-capability.test.ts rename to packages/connections/src/model-capability.test.ts diff --git a/packages/hub-client/src/model-capability.ts b/packages/connections/src/model-capability.ts similarity index 100% rename from packages/hub-client/src/model-capability.ts rename to packages/connections/src/model-capability.ts diff --git a/packages/connections/src/persist-credential.ts b/packages/connections/src/persist-credential.ts index 78be4c6e8..6eca122dc 100644 --- a/packages/connections/src/persist-credential.ts +++ b/packages/connections/src/persist-credential.ts @@ -17,7 +17,7 @@ import { PROVIDER_TEST_CONFIG, type SupportedCredentialProvider, -} from "@workbench/hub-client"; +} from "./credential-test"; import { ensureCredential, ensureProvider, diff --git a/packages/connections/src/probes.test.ts b/packages/connections/src/probes.test.ts index 63ab58dc1..27d1fce2a 100644 --- a/packages/connections/src/probes.test.ts +++ b/packages/connections/src/probes.test.ts @@ -1,10 +1,10 @@ // Each of the four tool connector probes against a fake `FetchLike`: no // real network calls, no real keys — a 401 must reject, a 2xx must -// accept, matching `@workbench/hub-client/credential-test`'s own +// accept, matching `./credential-test`'s own // contract for `testProviderCredential`. import { describe, expect, spyOn, test } from "bun:test"; import * as errorSink from "@corbits/error-sink"; -import type { FetchLike } from "@workbench/hub-client/credential-test"; +import type { FetchLike } from "./credential-test"; import { testExaCredential, testGitHubCredential, diff --git a/packages/connections/src/probes.ts b/packages/connections/src/probes.ts index 770fed12d..dedbf1f1c 100644 --- a/packages/connections/src/probes.ts +++ b/packages/connections/src/probes.ts @@ -2,15 +2,12 @@ // adds — Granola, Exa, ScrapeCreators, Linear, GitHub, and Manus — each hitting the // same production endpoint its tool client (`packages/*-tools/src/ // client.ts`) already calls, authenticated with the real key. This -// mirrors `@workbench/hub-client/credential-test`'s +// mirrors `./credential-test`'s // `testProviderCredential` pattern exactly: a 5s timeout, a network // failure caught as a plain rejection, `response.ok` (or a // provider-specific override) as acceptance, and a 401 as the standard // "key rejected" signal. No credential is ever stored here. -import type { - CredentialTestResult, - FetchLike, -} from "@workbench/hub-client/credential-test"; +import type { CredentialTestResult, FetchLike } from "./credential-test"; import { reportError } from "@corbits/error-sink"; const PROBE_TIMEOUT_MS = 5000; diff --git a/packages/connections/src/registry.ts b/packages/connections/src/registry.ts index 15cdea538..7fdbd5f18 100644 --- a/packages/connections/src/registry.ts +++ b/packages/connections/src/registry.ts @@ -2,11 +2,10 @@ // connector this ticket exposes, as one `ConnectorDescriptor` map. This // is the `./registry` subpath — imported directly by // `packages/settings-ui`, a browser bundle — so it imports only from -// `./descriptor.ts`, `./probes.ts`, and `@workbench/hub-client`'s own -// light `./credential-test` subpath, never `hono`, `./routes.ts`, or -// `@workbench/hub-client`'s main index (which pulls in `@intx/inference` -// and every workflow package). See `credential-test.ts`'s own header -// comment for why that subpath exists in the first place. +// `./descriptor.ts`, `./probes.ts`, and this package's own light +// `./credential-test` subpath, never `hono` or `./routes.ts`. See +// `credential-test.ts`'s own header comment for why that subpath exists +// in the first place. // // The eight non-OAuth inference providers come straight from // `PROVIDER_TEST_CONFIG` — the one source of provider metadata, @@ -20,7 +19,7 @@ import { PROVIDER_TEST_CONFIG, testProviderCredential, type SupportedCredentialProvider, -} from "@workbench/hub-client/credential-test"; +} from "./credential-test"; export { missingCredentialDetail, parseMissingCredentialDetail, diff --git a/packages/connections/src/routes.test.ts b/packages/connections/src/routes.test.ts index cbd23fea7..889781681 100644 --- a/packages/connections/src/routes.test.ts +++ b/packages/connections/src/routes.test.ts @@ -820,7 +820,7 @@ describe("GET /provider-health", () => { // A fake `ApiCall` for `disconnectConnector` itself: unlike the route // tests above (which stub the whole function), these exercise the real // cleanup ordering against a scripted native-hub double, the same -// `fakeAPI`-style pattern `packages/hub-client/test/helpers.ts` uses for +// `fakeAPI`-style pattern `packages/seeding/test/helpers.ts` uses for // `ensureProvider`/`ensureCredential`/`seedCatalog`. type FakeCall = { readonly method: string; diff --git a/packages/connections/src/routes.ts b/packages/connections/src/routes.ts index 55a1db51d..42a4dc5cc 100644 --- a/packages/connections/src/routes.ts +++ b/packages/connections/src/routes.ts @@ -23,7 +23,7 @@ import { import type { RequireGrant, TenantEnv } from "@intx/hub-api"; import { hasUsableModel } from "@corbits/inference-settings"; import { makeErrorEnvelope, reportError } from "@corbits/error-sink"; -import { OLLAMA_PLACEHOLDER_SECRET } from "@workbench/hub-client"; +import { OLLAMA_PLACEHOLDER_SECRET } from "./credential-test"; import { ensureCredential, ensureProvider, diff --git a/packages/hub-client/test/credential-test.test.ts b/packages/connections/test/credential-test.test.ts similarity index 100% rename from packages/hub-client/test/credential-test.test.ts rename to packages/connections/test/credential-test.test.ts diff --git a/packages/error-sink/src/context.ts b/packages/error-sink/src/context.ts index cdbbedd3e..91cedb8bb 100644 --- a/packages/error-sink/src/context.ts +++ b/packages/error-sink/src/context.ts @@ -2,8 +2,8 @@ // operation that failed, optional tenant/room/agent identifiers scoping // it, and a `refId` a person can quote back to support -- the same // `refId` pattern `packages/onboarding/src/routes.ts`'s -// `reportOnboardingError` already establishes (see `generateRefId` / -// `makeErrorEnvelope` in `@workbench/hub-client`). Free-form detail +// `reportOnboardingError` already establishes (see this package's own +// `generateRefId` / `makeErrorEnvelope`). Free-form detail // beyond these named fields belongs in `extra`, never inlined into a // string message. import { type } from "arktype"; diff --git a/packages/error-sink/src/ref-id.ts b/packages/error-sink/src/ref-id.ts index 612242a15..327532812 100644 --- a/packages/error-sink/src/ref-id.ts +++ b/packages/error-sink/src/ref-id.ts @@ -1,9 +1,8 @@ // The sole implementation of the short, quotable, grep-able refId shape -// (CL-7253). `@workbench/hub-client` re-exports this rather than keeping -// its own copy; this package stays free of `@workbench/hub-client`'s -// workflow-catalog and inference stack, which this package's browser -// callers (and its own server-side ones) have no reason to carry just to -// mint an id. +// (CL-7253), and the one this package's own `makeErrorEnvelope` calls. +// This package stays free of the workflow-catalog and inference stack, +// which this package's browser callers (and its own server-side ones) +// have no reason to carry just to mint an id. export function generateRefId(): string { const random = Math.random().toString(36).slice(2, 8); return `${Date.now().toString(36)}-${random}`; diff --git a/packages/evals/package.json b/packages/evals/package.json index b948576de..f2be706b8 100644 --- a/packages/evals/package.json +++ b/packages/evals/package.json @@ -31,7 +31,6 @@ "@workbench/connections": "workspace:*", "@corbits/hub-api-client": "workspace:*", "@corbits/seeding": "workspace:*", - "@workbench/hub-client": "workspace:*", "@workbench/onboarding": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", diff --git a/packages/evals/src/targets/real-target.ts b/packages/evals/src/targets/real-target.ts index a8055298f..2d1feb681 100644 --- a/packages/evals/src/targets/real-target.ts +++ b/packages/evals/src/targets/real-target.ts @@ -21,7 +21,7 @@ import { mkdtemp, rm } from "node:fs/promises"; import { tmpdir } from "node:os"; import path from "node:path"; -import { OLLAMA_PLACEHOLDER_SECRET } from "@workbench/hub-client"; +import { OLLAMA_PLACEHOLDER_SECRET } from "@workbench/connections/credential-test"; import { createGitWorkflowPusher } from "@corbits/seeding"; import { createHubAPI, type ApiCall } from "@corbits/hub-api-client"; import { getLogger } from "@intx/log"; diff --git a/packages/folded-runs/src/launch.ts b/packages/folded-runs/src/launch.ts index 3cd19e0bd..e44b55d35 100644 --- a/packages/folded-runs/src/launch.ts +++ b/packages/folded-runs/src/launch.ts @@ -119,7 +119,7 @@ export type FoldedRunMode = AgentRuntimeConfig["mode"]; * run config. * * `ollamaOfferingIds` names every offering whose provider row is - * literally `"ollama"` (`@corbits/hub-client`'s `CATALOG_SEEDS.ollama`) — + * literally `"ollama"` (`@corbits/seeding`'s `CATALOG_SEEDS.ollama`) — * the same identity `quirksForDeployment` keys its own override on * (`@corbits/inference-catalog`'s `ollama-context-defaults.ts`). A * source whose id names none of them is returned unchanged. diff --git a/packages/hub-client/LICENSE b/packages/hub-client/LICENSE deleted file mode 100644 index c6487f4fd..000000000 --- a/packages/hub-client/LICENSE +++ /dev/null @@ -1,176 +0,0 @@ -GNU LESSER GENERAL PUBLIC LICENSE - -Version 2.1, February 1999 - -Copyright (C) 1991, 1999 Free Software Foundation, Inc. -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] - -Preamble - -The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. - -This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. - -When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. - -To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. - -For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. - -We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. - -To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. - -Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. - -Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. - -When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. - -We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. - -For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. - -In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. - -Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. - -The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. - -GNU LESSER GENERAL PUBLIC LICENSE -TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - -0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". - -A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. - -The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) - -"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. - -Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. - -1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. - -You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. - -2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. - -(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. - -3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. - -Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. - -This option is useful when you wish to copy part of the code of the Library into a program that is not a library. - -4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. - -If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. - -5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. - -However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. - -When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. - -If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) - -Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. - -6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. - -You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: - - a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. - - e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. - -For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. - -It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. - -7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. - - b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. - -8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. - -9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. - -10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. - -11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. - -This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. - -12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. - -13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. - -14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. - -NO WARRANTY - -15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - -16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -END OF TERMS AND CONDITIONS - -How to Apply These Terms to Your New Libraries - -If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). - -To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - - one line to give the library's name and an idea of what it does. - Copyright (C) year name of author - - This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: - -Yoyodyne, Inc., hereby disclaims all copyright interest in -the library `Frob' (a library for tweaking knobs) written -by James Random Hacker. - -signature of Ty Coon, 1 April 1990 -Ty Coon, President of Vice -That's all there is to it! diff --git a/packages/hub-client/README.md b/packages/hub-client/README.md deleted file mode 100644 index 0839892c6..000000000 --- a/packages/hub-client/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# @workbench/hub-client - -The hub's native HTTP API as a typed client, plus tenant seeding: -authenticate, deploy the default workflow set, seed the dev model catalog, -and confirm every deployment actually answers before reporting success. -Both the CLI's own `seed` verb and the first-login provisioning hook -consume this package so the seeding logic exists in one place. - -## Composing with `@intx/*` - -This package wraps Interchange's hub HTTP API rather than reimplementing -it — `createHubAPI` is a thin `fetch` boundary against the hub's own -routes, and `@intx/inference`/`@intx/types` supply the model-source and -response types it validates responses against with `arktype`. Workflow -definitions come from this repo's own `@corbits/*-workflow` packages -(`assistant-workflow`, `workbench-digest-workflow`, `echo-workflow`, -`heartbeat-workflow`, `recurring-task-workflow`), and tool-package -publishing is delegated to `@corbits/tool-registry-publish` rather than -duplicated here. - -## Key modules - -- **`src/hub.ts`** — `createHubAPI`: the `ApiCall` fetch boundary - (JSON in, JSON out, cookie jar for better-auth sessions), plus - `authenticate` and `parseAs` response validation. -- **`src/seed.ts`** — `seedTenant`/`seedCatalog`: pushes and deploys - `DEFAULT_WORKFLOWS`, ensures credentials/providers, and confirms every - deployment answers. Safe to re-run — every skipped step says so. -- **`src/workflow-push.ts`** — `createGitWorkflowPusher`: pushes a - workflow definition to its asset repo over the hub's smart-HTTP git - route using the system `git` binary, rendering the source tree via - `@corbits/workflows`'s `renderWorkflowSourceTree`; content-aware, so an - identical tree is a reported skip, not a duplicate commit. -- **`src/credential-test.ts`** — a real, free test call for a credential - before it's stored, one per `SupportedCredentialProvider`; exported from - the `./credential-test` subpath so a browser bundle (the onboarding - wizard) never pulls in the seed workflows or `@intx/inference`. -- **`src/catalog-seed-data.ts`** — `CATALOG_SEEDS`: the curated - per-provider dev model catalog `seedCatalog` plants. -- **`src/errors.ts`** — `CliError`: an operator-actionable error carrying - both the problem and its fix, used throughout this package's failures. - -## Running tests - -```sh -cd packages/hub-client && bun test -``` - -Tests run against a mocked `ApiCall`/`fetch` (see `test/helpers.ts`); no -`DATABASE_URL` or live hub is required. diff --git a/packages/hub-client/package.json b/packages/hub-client/package.json deleted file mode 100644 index f94ebc0ce..000000000 --- a/packages/hub-client/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@workbench/hub-client", - "private": true, - "description": "Credential probing and completion-capability filtering shared by onboarding, connections, and tenant seeding", - "version": "0.0.1", - "license": "LGPL-2.1-or-later", - "type": "module", - "exports": { - ".": "./src/index.ts", - "./credential-test": "./src/credential-test.ts", - "./model-capability": "./src/model-capability.ts" - }, - "scripts": { - "typecheck": "tsc --noEmit", - "test": "bun test" - }, - "dependencies": { - "@intx/types": "workspace:*", - "arktype": "catalog:" - }, - "devDependencies": { - "@types/bun": "catalog:", - "typescript": "catalog:" - } -} diff --git a/packages/hub-client/src/index.ts b/packages/hub-client/src/index.ts deleted file mode 100644 index a72129a90..000000000 --- a/packages/hub-client/src/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -// The library entry for `@workbench/hub-client`: credential probing and -// completion-capability filtering shared by onboarding, connections, and -// tenant seeding (`@corbits/seeding`). - -export { - fetchOllamaModelCatalog, - ollamaApiRoot, - ollamaOpenAICompatBaseURL, - OLLAMA_PLACEHOLDER_SECRET, - PROVIDER_TEST_CONFIG, - providerModelSource, - supportedCredentialProviders, - testProviderCredential, -} from "./credential-test"; -export type { - AdapterPluginId, - CredentialTestResult, - OllamaCatalogModel, - ProviderModelSource, - ProviderTestConfig, - SupportedCredentialProvider, - TestProviderCredentialArgs, -} from "./credential-test"; diff --git a/packages/hub-client/tsconfig.json b/packages/hub-client/tsconfig.json deleted file mode 100644 index 495d046ac..000000000 --- a/packages/hub-client/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "./tsconfig.src.json", - "compilerOptions": { - "composite": false, - "noEmit": true, - "disableSourceOfProjectReferenceRedirect": true, - "declaration": false, - "declarationMap": false, - "emitDeclarationOnly": false, - "rootDir": "../.." - }, - "include": ["src", "test"], - "exclude": [], - "references": [ - { - "path": "../../vendor/intx/types/tsconfig.src.json" - } - ] -} diff --git a/packages/hub-client/tsconfig.src.json b/packages/hub-client/tsconfig.src.json deleted file mode 100644 index fb751701a..000000000 --- a/packages/hub-client/tsconfig.src.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "include": ["src", "package.json", "src/**/*.json"], - "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"], - "compilerOptions": { - "types": ["bun"], - "composite": true, - "emitDeclarationOnly": true, - "outDir": "dist", - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo" - }, - "references": [ - { - "path": "../../vendor/intx/types/tsconfig.src.json" - } - ] -} diff --git a/packages/inference-catalog/package.json b/packages/inference-catalog/package.json index 790c72551..4264b4685 100644 --- a/packages/inference-catalog/package.json +++ b/packages/inference-catalog/package.json @@ -25,7 +25,6 @@ "@intx/hub-api": "workspace:*", "@intx/inference-catalog": "0.3.0", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/packages/inference-catalog/tsconfig.json b/packages/inference-catalog/tsconfig.json index 68741f7e7..f5311ba6a 100644 --- a/packages/inference-catalog/tsconfig.json +++ b/packages/inference-catalog/tsconfig.json @@ -24,9 +24,6 @@ { "path": "../error-sink/tsconfig.src.json" }, - { - "path": "../hub-client/tsconfig.src.json" - }, { "path": "../migration-runner/tsconfig.src.json" }, diff --git a/packages/inference-catalog/tsconfig.src.json b/packages/inference-catalog/tsconfig.src.json index e2c7adab2..6a425e76a 100644 --- a/packages/inference-catalog/tsconfig.src.json +++ b/packages/inference-catalog/tsconfig.src.json @@ -22,9 +22,6 @@ { "path": "../error-sink/tsconfig.src.json" }, - { - "path": "../hub-client/tsconfig.src.json" - }, { "path": "../migration-runner/tsconfig.src.json" }, diff --git a/packages/inference-settings/package.json b/packages/inference-settings/package.json index 7117d9aa9..754b27f4e 100644 --- a/packages/inference-settings/package.json +++ b/packages/inference-settings/package.json @@ -16,7 +16,7 @@ }, "dependencies": { "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", + "@workbench/connections": "workspace:*", "arktype": "catalog:" }, "devDependencies": { diff --git a/packages/inference-settings/src/api.ts b/packages/inference-settings/src/api.ts index 16b084346..24fe45df8 100644 --- a/packages/inference-settings/src/api.ts +++ b/packages/inference-settings/src/api.ts @@ -265,7 +265,7 @@ export type ShadowOfferingInput = { * module doc for why that is not even reachable from here), then a * tenant-local model and model-provider that reference it, then the * offering itself. Each step tolerates the row already existing - * (idempotent, mirroring `@workbench/hub-client`'s `seedCatalog` helpers) + * (idempotent, mirroring `@corbits/seeding`'s `seedCatalog` helpers) * so retrying a partial failure never 409s the whole flow. * * Order matters beyond idempotency: creating this tenant's model-provider diff --git a/packages/inference-settings/src/effective-list.test.ts b/packages/inference-settings/src/effective-list.test.ts index 5ee42edd1..abe2877f8 100644 --- a/packages/inference-settings/src/effective-list.test.ts +++ b/packages/inference-settings/src/effective-list.test.ts @@ -122,7 +122,7 @@ describe("defaultModelForProvider", () => { test("CL-6351: skips an embedding-capability offering tied at the same priority even when its name sorts first", () => { // Two offerings tied at the same priority -- exactly what - // `packages/hub-client/src/seed.ts`'s `seedCatalog` does for a fresh + // `packages/seeding/src/seed.ts`'s `seedCatalog` does for a fresh // Ollama connect. The embedding offering's real capability data (no // "plain-text") is what routes around it; "all-minilm" sorting before // "qwen3:8b" alone is no longer enough to make it win. diff --git a/packages/inference-settings/src/effective-list.ts b/packages/inference-settings/src/effective-list.ts index fd9d64fe1..bda9e87e8 100644 --- a/packages/inference-settings/src/effective-list.ts +++ b/packages/inference-settings/src/effective-list.ts @@ -5,8 +5,8 @@ // a plain unit test, no DOM or network stub required. import type { Capability, ModelInfo, ModelOfferingResponse } from "@intx/types"; -import { PROVIDER_TEST_CONFIG } from "@workbench/hub-client/credential-test"; -import { preferCompletionCapable } from "@workbench/hub-client/model-capability"; +import { PROVIDER_TEST_CONFIG } from "@workbench/connections/credential-test"; +import { preferCompletionCapable } from "@workbench/connections/model-capability"; /** * The provider's own display name (e.g. "Ollama (local)", "Opencode Zen") diff --git a/packages/inference-settings/tsconfig.json b/packages/inference-settings/tsconfig.json index aac6ce2d2..68035e9a3 100644 --- a/packages/inference-settings/tsconfig.json +++ b/packages/inference-settings/tsconfig.json @@ -1,22 +1,10 @@ { - "extends": "./tsconfig.src.json", + "extends": "../../tsconfig.base.json", + "include": ["src", "test"], "compilerOptions": { - "composite": false, - "noEmit": true, - "disableSourceOfProjectReferenceRedirect": true, - "declaration": false, - "declarationMap": false, - "emitDeclarationOnly": false, - "rootDir": "../.." - }, - "include": ["src"], - "exclude": [], - "references": [ - { - "path": "../../vendor/intx/types/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" - } - ] + "jsx": "react-jsx", + "lib": ["ESNext", "DOM", "DOM.Iterable"], + "types": ["bun"], + "noEmit": true + } } diff --git a/packages/inference-settings/tsconfig.src.json b/packages/inference-settings/tsconfig.src.json deleted file mode 100644 index b35e5a406..000000000 --- a/packages/inference-settings/tsconfig.src.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "include": ["src", "package.json", "src/**/*.json"], - "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"], - "compilerOptions": { - "jsx": "react-jsx", - "lib": ["ESNext", "DOM", "DOM.Iterable"], - "types": ["bun"], - "composite": true, - "emitDeclarationOnly": true, - "outDir": "dist", - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo" - }, - "references": [ - { - "path": "../../vendor/intx/types/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" - } - ] -} diff --git a/packages/insights/package.json b/packages/insights/package.json index 39486b5aa..bfe01927f 100644 --- a/packages/insights/package.json +++ b/packages/insights/package.json @@ -23,7 +23,6 @@ "@intx/hub-common": "0.3.0", "@intx/log": "0.3.0", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/packages/insights/tsconfig.json b/packages/insights/tsconfig.json index 727b03ee4..d7611c122 100644 --- a/packages/insights/tsconfig.json +++ b/packages/insights/tsconfig.json @@ -1,37 +1,8 @@ { - "extends": "./tsconfig.src.json", - "compilerOptions": { - "composite": false, - "noEmit": true, - "disableSourceOfProjectReferenceRedirect": true, - "declaration": false, - "declarationMap": false, - "emitDeclarationOnly": false, - "rootDir": "../.." - }, + "extends": "../../tsconfig.base.json", "include": ["src", "test"], - "exclude": [], - "references": [ - { - "path": "../../vendor/intx/db/tsconfig.src.json" - }, - { - "path": "../../vendor/intx/hub-api/tsconfig.src.json" - }, - { - "path": "../../vendor/intx/types/tsconfig.src.json" - }, - { - "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" - }, - { - "path": "../migration-runner/tsconfig.src.json" - }, - { - "path": "../provider-pricing/tsconfig.src.json" - } - ] + "compilerOptions": { + "types": ["bun"], + "noEmit": true + } } diff --git a/packages/insights/tsconfig.src.json b/packages/insights/tsconfig.src.json deleted file mode 100644 index 830952c08..000000000 --- a/packages/insights/tsconfig.src.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "include": ["src", "package.json", "src/**/*.json"], - "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"], - "compilerOptions": { - "types": ["bun"], - "composite": true, - "emitDeclarationOnly": true, - "outDir": "dist", - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo" - }, - "references": [ - { - "path": "../../vendor/intx/db/tsconfig.src.json" - }, - { - "path": "../../vendor/intx/hub-api/tsconfig.src.json" - }, - { - "path": "../../vendor/intx/types/tsconfig.src.json" - }, - { - "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" - }, - { - "path": "../migration-runner/tsconfig.src.json" - }, - { - "path": "../provider-pricing/tsconfig.src.json" - } - ] -} diff --git a/packages/longevity-sim/src/stack.ts b/packages/longevity-sim/src/stack.ts index 8a25269c3..7c0aedbad 100644 --- a/packages/longevity-sim/src/stack.ts +++ b/packages/longevity-sim/src/stack.ts @@ -9,7 +9,7 @@ // + heartbeat-deploy shape) without reinventing any of it — only the // inference source differs: every catalog provider here rides the // `openai-compatible` adapter against an Ollama origin, matching how -// `packages/hub-client/src/credential-test.ts` documents Ollama's own +// `packages/connections/src/credential-test.ts` documents Ollama's own // `/v1` wire shape. import { mkdtemp, rm, appendFile } from "node:fs/promises"; diff --git a/packages/memory-hub/package.json b/packages/memory-hub/package.json index c16c2dd2b..d22c65278 100644 --- a/packages/memory-hub/package.json +++ b/packages/memory-hub/package.json @@ -16,7 +16,6 @@ "@corbits/artifacts-hub": "workspace:*", "@corbits/error-sink": "workspace:*", "@corbits/memory": "github:corbitsdev/corbits-memory#9e6f213fa2c002b531d3f6af1aa0abd737b8afe3", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "hono": "^4.11.9" }, diff --git a/packages/mocks/README.md b/packages/mocks/README.md index 78c078335..f146118ad 100644 --- a/packages/mocks/README.md +++ b/packages/mocks/README.md @@ -188,7 +188,7 @@ turn assembler is a follow-up — this package proves the shape, it does not Routes covered: `GET /api/tags` (native catalogue), `POST /api/show` (per-model capability probe), `POST /v1/chat/completions` (openai-compatible chat, tool calls, streaming and non-streaming) — the -exact three endpoints `@workbench/hub-client`'s `credential-test.ts` and +exact three endpoints `@workbench/connections`'s `credential-test.ts` and the openai adapter's request-building actually call. No `/api/generate`, `/api/embeddings`, or anything else Ollama exposes that we don't. diff --git a/packages/mocks/package.json b/packages/mocks/package.json index 70e8f218d..910248541 100644 --- a/packages/mocks/package.json +++ b/packages/mocks/package.json @@ -18,7 +18,6 @@ }, "devDependencies": { "@types/bun": "catalog:", - "@workbench/hub-client": "workspace:*", "typescript": "catalog:" } } diff --git a/packages/mocks/src/ollama/hub-client-consumer.test.ts b/packages/mocks/src/ollama/connections-consumer.test.ts similarity index 90% rename from packages/mocks/src/ollama/hub-client-consumer.test.ts rename to packages/mocks/src/ollama/connections-consumer.test.ts index a04fee7ec..79c7c6596 100644 --- a/packages/mocks/src/ollama/hub-client-consumer.test.ts +++ b/packages/mocks/src/ollama/connections-consumer.test.ts @@ -1,5 +1,5 @@ // Wires the mock into the REAL call sites it exists to plug into — -// `@workbench/hub-client`'s `FetchLike`-shaped functions — rather than +// `@workbench/connections`'s `FetchLike`-shaped functions — rather than // calling `mock.fetch` directly the way `mock.test.ts` does. That // distinction matters: `mock.fetch(new Request(...))` typechecking says // nothing about whether the mock satisfies the two-argument @@ -15,13 +15,13 @@ import { fetchOllamaModelCatalog, testProviderCredential, OLLAMA_PLACEHOLDER_SECRET, -} from "@workbench/hub-client/credential-test"; -import { preferCompletionCapable } from "@workbench/hub-client/model-capability"; +} from "@workbench/connections/credential-test"; +import { preferCompletionCapable } from "@workbench/connections/model-capability"; import { createOllamaMock } from "./index"; const BASE_URL = "http://mock-ollama"; -describe("OllamaMock as a real hub-client FetchLike consumer", () => { +describe("OllamaMock as a real connections FetchLike consumer", () => { test("testProviderCredential proves reachability through the mock with no cast", async () => { const ollama = createOllamaMock({ models: [{ name: "qwen3.8:27b" }] }); diff --git a/packages/mocks/src/ollama/mock.ts b/packages/mocks/src/ollama/mock.ts index a54839a66..25358da86 100644 --- a/packages/mocks/src/ollama/mock.ts +++ b/packages/mocks/src/ollama/mock.ts @@ -155,7 +155,7 @@ export class OllamaMock { /** * The whole mock as a `fetch`-shaped function — `(input, init?)`, the * same two-argument shape as global `fetch` and, load-bearingly, - * `@workbench/hub-client`'s `FetchLike` (the seam every real caller — + * `@workbench/connections`'s `FetchLike` (the seam every real caller — * `testProviderCredential`, `fetchOllamaModelCatalog`, * `fetchOllamaModelCapabilities` — actually threads a `fetchImpl` * through as). A caller passing a bare `Request` diff --git a/packages/mocks/src/ollama/types.ts b/packages/mocks/src/ollama/types.ts index 2b0e135bb..6936aaf74 100644 --- a/packages/mocks/src/ollama/types.ts +++ b/packages/mocks/src/ollama/types.ts @@ -1,7 +1,7 @@ import { type } from "arktype"; // Ollama's own `/api/show` capability vocabulary — the same strings -// `@workbench/hub-client`'s `OLLAMA_CAPABILITY_MAP` translates from. A +// `@workbench/connections`'s `OLLAMA_CAPABILITY_MAP` translates from. A // catalogue entry scripts these directly so model-selection logic // (`preferCompletionCapable`, capability probing) is testable against the // exact values the real instance would answer, with no translation layer diff --git a/packages/onboarding/README.md b/packages/onboarding/README.md index 513df4609..ae9fc07c3 100644 --- a/packages/onboarding/README.md +++ b/packages/onboarding/README.md @@ -9,10 +9,10 @@ workflow deploys. - `provision.ts`'s `provisionPersonalTenantIfNeeded` mints the personal bench through the hub's native tenant-creation route and - `@workbench/hub-client`'s `seedTenant`/`DEFAULT_WORKFLOWS` — never a + `@corbits/seeding`'s `seedTenant`/`DEFAULT_WORKFLOWS` — never a product-owned tenant table of its own. - `complete-credential.ts` proves a pasted key with - `@workbench/hub-client`'s `testProviderCredential` before storing it + `@workbench/connections`'s `testProviderCredential` before storing it through the hub's native `POST /api/tenants/:id/credentials` (`ensureCredential`/`ensureProvider`), then runs the same `seedCatalog`/`seedTenant` path an operator-configured key runs. @@ -23,7 +23,7 @@ workflow deploys. imports don't break. - `@intx/crypto`'s `CredentialCipher` seals the plaintext key carried from an OAuth callback to onboarding's own follow-up request (see - `pending-seed.ts`); `@workbench/access-policy` and `@workbench/hub-client` + `pending-seed.ts`); `@workbench/access-policy` and `@corbits/hub-api-client` supply the grant and tenant primitives provisioning reuses. ## Key modules diff --git a/packages/onboarding/package.json b/packages/onboarding/package.json index b775578f1..5521a25ac 100644 --- a/packages/onboarding/package.json +++ b/packages/onboarding/package.json @@ -23,7 +23,6 @@ "@workbench/connections": "workspace:*", "@corbits/hub-api-client": "workspace:*", "@corbits/seeding": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/packages/onboarding/src/complete-credential.ts b/packages/onboarding/src/complete-credential.ts index 255477c96..9e8e87ef4 100644 --- a/packages/onboarding/src/complete-credential.ts +++ b/packages/onboarding/src/complete-credential.ts @@ -63,8 +63,8 @@ import { import { ollamaOpenAICompatBaseURL, type SupportedCredentialProvider, -} from "@workbench/hub-client"; -import { preferCompletionCapable } from "@workbench/hub-client/model-capability"; +} from "@workbench/connections/credential-test"; +import { preferCompletionCapable } from "@workbench/connections/model-capability"; import { CATALOG_SEEDS, DEFAULT_WORKFLOWS, @@ -447,7 +447,7 @@ export async function testAndPersistCredential( // UI — a pasted key or a completed OAuth exchange — always rotates a // name-conflicting credential (a regenerated key, or a retry after a // bad paste): see `ensureCredential`'s own `verified` doc comment in - // `@workbench/hub-client`'s `seed.ts` for the full rotation rule. + // `@corbits/seeding`'s `seed.ts` for the full rotation rule. await persistConnectorCredential({ api: args.api, cookies: args.cookies, diff --git a/packages/onboarding/src/pending-seed.ts b/packages/onboarding/src/pending-seed.ts index 258f6e43c..7e53b543b 100644 --- a/packages/onboarding/src/pending-seed.ts +++ b/packages/onboarding/src/pending-seed.ts @@ -64,7 +64,7 @@ import type { CredentialCipher } from "@intx/types"; import { supportedCredentialProviders, type SupportedCredentialProvider, -} from "@workbench/hub-client"; +} from "@workbench/connections/credential-test"; import { pendingSeed } from "./schema"; /** diff --git a/packages/onboarding/src/plant-env-credentials.ts b/packages/onboarding/src/plant-env-credentials.ts index 46db6b6ee..49a1ab0be 100644 --- a/packages/onboarding/src/plant-env-credentials.ts +++ b/packages/onboarding/src/plant-env-credentials.ts @@ -11,7 +11,7 @@ // // Never reimplements credential planting: the live probe is // `testProviderCredential` and the actual plant is `seedCatalog` (same -// `@workbench/hub-client` functions `completeCredentialSetup` calls), +// `@workbench/connections` functions `completeCredentialSetup` calls), // reused here exactly as onboarding's own guided step uses them. This // module's only job is the env-map-to-provider translation, the // idempotency check that skips overwriting a provider already carrying @@ -32,7 +32,7 @@ import { testProviderCredential, type SupportedCredentialProvider, type TestProviderCredentialArgs, -} from "@workbench/hub-client"; +} from "@workbench/connections/credential-test"; import { inferenceCredentialName, seedCatalog, diff --git a/packages/onboarding/src/routes.ts b/packages/onboarding/src/routes.ts index ad5f8d729..004cf3586 100644 --- a/packages/onboarding/src/routes.ts +++ b/packages/onboarding/src/routes.ts @@ -12,7 +12,7 @@ import type { CredentialCipher } from "@intx/types"; import { supportedCredentialProviders, type SupportedCredentialProvider, -} from "@workbench/hub-client"; +} from "@workbench/connections/credential-test"; import { inferenceCredentialName, SETUP_AGENT_ASSET_NAME, diff --git a/packages/preferences/package.json b/packages/preferences/package.json index 96d1c55fc..9a319ca3c 100644 --- a/packages/preferences/package.json +++ b/packages/preferences/package.json @@ -19,7 +19,6 @@ "@corbits/error-sink": "workspace:*", "@corbits/migration-runner": "workspace:*", "@intx/hub-api": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/packages/preferences/tsconfig.json b/packages/preferences/tsconfig.json index 0a981930f..859618998 100644 --- a/packages/preferences/tsconfig.json +++ b/packages/preferences/tsconfig.json @@ -21,9 +21,6 @@ { "path": "../error-sink/tsconfig.src.json" }, - { - "path": "../hub-client/tsconfig.src.json" - }, { "path": "../migration-runner/tsconfig.src.json" } diff --git a/packages/preferences/tsconfig.src.json b/packages/preferences/tsconfig.src.json index 573063af3..517ced775 100644 --- a/packages/preferences/tsconfig.src.json +++ b/packages/preferences/tsconfig.src.json @@ -19,9 +19,6 @@ { "path": "../error-sink/tsconfig.src.json" }, - { - "path": "../hub-client/tsconfig.src.json" - }, { "path": "../migration-runner/tsconfig.src.json" } diff --git a/packages/presence/package.json b/packages/presence/package.json index 348a4819b..5041ac083 100644 --- a/packages/presence/package.json +++ b/packages/presence/package.json @@ -17,7 +17,6 @@ "dependencies": { "@corbits/error-sink": "workspace:*", "@intx/hub-api": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "hono": "^4.11.9", "y-protocols": "^1.0.7", diff --git a/packages/presence/tsconfig.json b/packages/presence/tsconfig.json index 2292acf3a..6e7e759ce 100644 --- a/packages/presence/tsconfig.json +++ b/packages/presence/tsconfig.json @@ -17,9 +17,6 @@ }, { "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" } ] } diff --git a/packages/presence/tsconfig.src.json b/packages/presence/tsconfig.src.json index f4bb20362..69802c4fc 100644 --- a/packages/presence/tsconfig.src.json +++ b/packages/presence/tsconfig.src.json @@ -15,9 +15,6 @@ }, { "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" } ] } diff --git a/packages/provider-pricing/package.json b/packages/provider-pricing/package.json index cc2ac8f31..6b56ea991 100644 --- a/packages/provider-pricing/package.json +++ b/packages/provider-pricing/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@intx/inference-catalog": "0.3.0", - "@workbench/hub-client": "workspace:*" + "@workbench/connections": "workspace:*" }, "devDependencies": { "@types/bun": "catalog:", diff --git a/packages/provider-pricing/src/rates.ts b/packages/provider-pricing/src/rates.ts index 353359e93..3138cfbb1 100644 --- a/packages/provider-pricing/src/rates.ts +++ b/packages/provider-pricing/src/rates.ts @@ -1,4 +1,4 @@ -import type { SupportedCredentialProvider } from "@workbench/hub-client/credential-test"; +import type { SupportedCredentialProvider } from "@workbench/connections/credential-test"; import type { CatalogModelName } from "./catalog-models"; import type { ModelPrice, RateTier, TokenRates } from "./types"; diff --git a/packages/provider-pricing/src/types.ts b/packages/provider-pricing/src/types.ts index 13386283c..77bcd2f85 100644 --- a/packages/provider-pricing/src/types.ts +++ b/packages/provider-pricing/src/types.ts @@ -1,4 +1,4 @@ -import type { SupportedCredentialProvider } from "@workbench/hub-client/credential-test"; +import type { SupportedCredentialProvider } from "@workbench/connections/credential-test"; import type { CatalogModelName } from "./catalog-models"; @@ -32,7 +32,7 @@ export type RateTier = { * A priced (provider, model) pair. `provider` is typed against * `SupportedCredentialProvider` — the same provider identity workbench * already uses for credentials and the catalog's adapter plugin mapping - * (see `@workbench/hub-client/credential-test`) — so a misspelled or + * (see `@workbench/connections/credential-test`) — so a misspelled or * unsupported provider is a compile error. * * `model` is the actual wire id billed on a usage turn, which is not diff --git a/packages/provider-pricing/tsconfig.json b/packages/provider-pricing/tsconfig.json index c5186efbd..d7611c122 100644 --- a/packages/provider-pricing/tsconfig.json +++ b/packages/provider-pricing/tsconfig.json @@ -1,19 +1,8 @@ { - "extends": "./tsconfig.src.json", + "extends": "../../tsconfig.base.json", + "include": ["src", "test"], "compilerOptions": { - "composite": false, - "noEmit": true, - "disableSourceOfProjectReferenceRedirect": true, - "declaration": false, - "declarationMap": false, - "emitDeclarationOnly": false, - "rootDir": "../.." - }, - "include": ["src"], - "exclude": [], - "references": [ - { - "path": "../hub-client/tsconfig.src.json" - } - ] + "types": ["bun"], + "noEmit": true + } } diff --git a/packages/provider-pricing/tsconfig.src.json b/packages/provider-pricing/tsconfig.src.json deleted file mode 100644 index a4dee963f..000000000 --- a/packages/provider-pricing/tsconfig.src.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "include": ["src", "package.json", "src/**/*.json"], - "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"], - "compilerOptions": { - "types": ["bun"], - "composite": true, - "emitDeclarationOnly": true, - "outDir": "dist", - "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo" - }, - "references": [ - { - "path": "../hub-client/tsconfig.src.json" - } - ] -} diff --git a/packages/routines/package.json b/packages/routines/package.json index a7404ea16..d83d73f0a 100644 --- a/packages/routines/package.json +++ b/packages/routines/package.json @@ -29,7 +29,6 @@ "@intx/hub-common": "0.3.0", "@intx/log": "0.3.0", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "catalog:", diff --git a/packages/run-key-history/package.json b/packages/run-key-history/package.json index 437cc40b8..8e8e53ac6 100644 --- a/packages/run-key-history/package.json +++ b/packages/run-key-history/package.json @@ -18,7 +18,6 @@ "@intx/db": "workspace:*", "@intx/hub-api": "workspace:*", "@intx/log": "0.3.0", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/packages/run-key-history/tsconfig.json b/packages/run-key-history/tsconfig.json index 381f78404..87d19ffd0 100644 --- a/packages/run-key-history/tsconfig.json +++ b/packages/run-key-history/tsconfig.json @@ -20,9 +20,6 @@ }, { "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" } ] } diff --git a/packages/run-key-history/tsconfig.src.json b/packages/run-key-history/tsconfig.src.json index 0d4dfdd21..47f844519 100644 --- a/packages/run-key-history/tsconfig.src.json +++ b/packages/run-key-history/tsconfig.src.json @@ -18,9 +18,6 @@ }, { "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" } ] } diff --git a/packages/run-scope/package.json b/packages/run-scope/package.json index fcd4e8382..5fd7c6432 100644 --- a/packages/run-scope/package.json +++ b/packages/run-scope/package.json @@ -18,7 +18,6 @@ "@intx/db": "workspace:*", "@intx/hub-api": "workspace:*", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9" diff --git a/packages/seeding/package.json b/packages/seeding/package.json index 2a784fdec..0b8c9123e 100644 --- a/packages/seeding/package.json +++ b/packages/seeding/package.json @@ -24,7 +24,7 @@ "@corbits/workflows": "workspace:*", "@intx/inference": "workspace:*", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", + "@workbench/connections": "workspace:*", "@workbench/templates": "workspace:*", "arktype": "catalog:" }, diff --git a/packages/seeding/src/catalog-seed-data.ts b/packages/seeding/src/catalog-seed-data.ts index f5d0614c9..ce050dac8 100644 --- a/packages/seeding/src/catalog-seed-data.ts +++ b/packages/seeding/src/catalog-seed-data.ts @@ -15,7 +15,7 @@ import type { AdapterPluginId, SupportedCredentialProvider, -} from "@workbench/hub-client/credential-test"; +} from "@workbench/connections/credential-test"; export type CatalogModelSpec = { readonly canonicalName: string; diff --git a/packages/seeding/src/seed.ts b/packages/seeding/src/seed.ts index 8f3be7023..599fb9efe 100644 --- a/packages/seeding/src/seed.ts +++ b/packages/seeding/src/seed.ts @@ -62,8 +62,8 @@ import { fetchOllamaModelCatalog, ollamaOpenAICompatBaseURL, type SupportedCredentialProvider, -} from "@workbench/hub-client/credential-test"; -import { hasCompletionCapableModel } from "@workbench/hub-client/model-capability"; +} from "@workbench/connections/credential-test"; +import { hasCompletionCapableModel } from "@workbench/connections/model-capability"; const GIT_TOKEN_TTL_MS = 10 * 60 * 1000; const ECHO_TURN_TIMEOUT_MS = 2 * 60 * 1000; @@ -873,7 +873,7 @@ export async function seedTenant(args: SeedTenantArgs): Promise { if (workflows.length === 0) { throw new HubApiError( "the default workflow set is empty; seeding zero workflows is a failure, not a success", - "restore the default workflow set in @workbench/hub-client before running: workbench seed", + "restore the default workflow set in @corbits/seeding before running: workbench seed", ); } diff --git a/packages/seeding/test/catalog-seed-data.test.ts b/packages/seeding/test/catalog-seed-data.test.ts index 915332363..5362ec9f4 100644 --- a/packages/seeding/test/catalog-seed-data.test.ts +++ b/packages/seeding/test/catalog-seed-data.test.ts @@ -14,7 +14,7 @@ import { import { supportedCredentialProviders, type SupportedCredentialProvider, -} from "@workbench/hub-client/credential-test"; +} from "@workbench/connections/credential-test"; describe("CATALOG_SEEDS", () => { test("has one seed for every supported credential provider", () => { diff --git a/packages/settings-ui/src/connections-status.ts b/packages/settings-ui/src/connections-status.ts index 9e8d12b0a..f0741bf53 100644 --- a/packages/settings-ui/src/connections-status.ts +++ b/packages/settings-ui/src/connections-status.ts @@ -14,7 +14,7 @@ export type ConnectorStatusResult = /** * The backend names a connector's provider row after the connector's * lowercase `id` (see `packages/connections/src/routes.ts`'s and - * `@workbench/hub-client`'s `seed.ts`'s own `ensureProvider` calls, + * `@corbits/seeding`'s `seed.ts`'s own `ensureProvider` calls, * both of which pass `descriptor.id`/`seed.provider.name`, never a * display label) — matching on that id is how a card finds its provider * without a new list route. `displayName` is UI-only and never reaches diff --git a/packages/sidecar-placement/package.json b/packages/sidecar-placement/package.json index c71fe598f..c34efb985 100644 --- a/packages/sidecar-placement/package.json +++ b/packages/sidecar-placement/package.json @@ -17,7 +17,6 @@ "@intx/db": "workspace:*", "@intx/hub-api": "workspace:*", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9" diff --git a/packages/sidecar-placement/tsconfig.json b/packages/sidecar-placement/tsconfig.json index 4477c7bfd..af53fca71 100644 --- a/packages/sidecar-placement/tsconfig.json +++ b/packages/sidecar-placement/tsconfig.json @@ -23,9 +23,6 @@ }, { "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" } ] } diff --git a/packages/sidecar-placement/tsconfig.src.json b/packages/sidecar-placement/tsconfig.src.json index 09996b549..12fa96509 100644 --- a/packages/sidecar-placement/tsconfig.src.json +++ b/packages/sidecar-placement/tsconfig.src.json @@ -21,9 +21,6 @@ }, { "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" } ] } diff --git a/packages/skills/package.json b/packages/skills/package.json index 80491cea1..a666838b6 100644 --- a/packages/skills/package.json +++ b/packages/skills/package.json @@ -18,7 +18,6 @@ "@intx/db": "workspace:*", "@intx/hub-api": "workspace:*", "@intx/hub-sessions": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/packages/skills/tsconfig.json b/packages/skills/tsconfig.json index 86a4dfe79..964cd4a19 100644 --- a/packages/skills/tsconfig.json +++ b/packages/skills/tsconfig.json @@ -23,9 +23,6 @@ }, { "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" } ] } diff --git a/packages/skills/tsconfig.src.json b/packages/skills/tsconfig.src.json index 8d38f4db6..b46adbe32 100644 --- a/packages/skills/tsconfig.src.json +++ b/packages/skills/tsconfig.src.json @@ -21,9 +21,6 @@ }, { "path": "../error-sink/tsconfig.src.json" - }, - { - "path": "../hub-client/tsconfig.src.json" } ] } diff --git a/packages/tool-registry-publish/README.md b/packages/tool-registry-publish/README.md index e4025710c..238ecaee3 100644 --- a/packages/tool-registry-publish/README.md +++ b/packages/tool-registry-publish/README.md @@ -49,14 +49,14 @@ for how a pin resolves through it). **Never imports:** -- `@workbench/hub-client` — the dependency direction runs the other - way (`workbench setup` calls `publishCorbitsToolsRegistry` via - hub-client's re-export), so this package declares its own - structurally-compatible `ApiCall` type rather than importing - `hub-client`'s. -- `CliError` or any operator-facing error-wrapping convention — every +- `@corbits/hub-api-client` — the dependency direction runs the other + way (boot-time seeding and `@corbits/seeding` call + `publishCorbitsToolsRegistry` via `@corbits/seeding`'s re-export), so + this package declares its own structurally-compatible `ApiCall` type + rather than importing `@corbits/hub-api-client`'s. +- `HubApiError` or any operator-facing error-wrapping convention — every failure here is a plain `Error`; wrapping it as an actionable - `CliError` (problem + fix) is the calling setup step's job, not this + `HubApiError` (problem + fix) is the calling setup step's job, not this package's. - Any workflow definition or `DEFAULT_WORKFLOWS` — this package knows which tool packages to publish, never which workflows pin them. diff --git a/packages/tool-registry-publish/src/pack.ts b/packages/tool-registry-publish/src/pack.ts index 54fd4692b..450ba60ce 100644 --- a/packages/tool-registry-publish/src/pack.ts +++ b/packages/tool-registry-publish/src/pack.ts @@ -92,7 +92,7 @@ export async function packToolPackageTarball( // nondeterministically — a bundler-internal "Unexpected reading file" // on a package this exact process had already loaded fine moments // earlier — once the calling process has itself transpiled a large -// module graph (this monorepo's own onboarding/hub-client/e2e code, in +// module graph (this monorepo's own onboarding/seeding/e2e code, in // particular) and other `bun` processes (a spawned hub, a spawned // sidecar) are alive alongside it. Shelling out to the `bun build` CLI // as an isolated subprocess sidesteps whatever shared, reentrant diff --git a/packages/tool-registry-publish/src/publish.ts b/packages/tool-registry-publish/src/publish.ts index 27a3fe5c0..e4cb30e3b 100644 --- a/packages/tool-registry-publish/src/publish.ts +++ b/packages/tool-registry-publish/src/publish.ts @@ -27,7 +27,7 @@ export function sha512Integrity(bytes: Uint8Array): string { return `sha512-${createHash("sha512").update(bytes).digest("base64")}`; } -/** Structurally compatible with `@workbench/hub-client`'s `ApiCall` — declared locally so this package never depends on hub-client, which depends on this one. */ +/** Structurally compatible with `@corbits/hub-api-client`'s `ApiCall` — declared locally so this package never depends on it, which depends on this one. */ export type ApiCall = ( method: string, path: string, diff --git a/packages/webhook-triggers/package.json b/packages/webhook-triggers/package.json index aa0dd474e..bc1fe4620 100644 --- a/packages/webhook-triggers/package.json +++ b/packages/webhook-triggers/package.json @@ -23,7 +23,6 @@ "@intx/hub-sessions": "workspace:*", "@intx/log": "0.3.0", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/packages/workflows/package.json b/packages/workflows/package.json index 222647f09..8593ad30f 100644 --- a/packages/workflows/package.json +++ b/packages/workflows/package.json @@ -22,7 +22,6 @@ "@intx/hub-api": "workspace:*", "@intx/hub-sessions": "workspace:*", "@intx/types": "workspace:*", - "@workbench/hub-client": "workspace:*", "arktype": "catalog:", "drizzle-orm": "catalog:", "hono": "^4.11.9", diff --git a/scripts/checks/report-error-baseline.txt b/scripts/checks/report-error-baseline.txt index e60797ec2..dcefb0449 100644 --- a/scripts/checks/report-error-baseline.txt +++ b/scripts/checks/report-error-baseline.txt @@ -160,6 +160,10 @@ packages/connections-tools/src/tool.ts 3 return errorResult(call.id, err); packages/connections-tools/src/tool.ts 4 return errorResult(call.id, err); packages/connections/src/connect-github-routes.ts 1 // A repoId `state.repos` doesn't carry means the card's own packages/connections/src/connect-github-routes.ts 1 // The GitHub client's own errors (transport, HTTP status, shape +packages/connections/src/credential-test.ts 1 // Not JSON, or didn't match either shape — fall through to the +packages/connections/src/credential-test.ts 1 return []; +packages/connections/src/credential-test.ts 1 return undefined; +packages/connections/src/credential-test.ts 1 return { packages/error-sink/src/index.ts 1 return context.refId ?? UNKNOWN_OPERATION; packages/folded-run-one-shot/src/one-shot-reply.ts 1 log.error`one-shot run ${triggerAddress}: undeploy failed during teardown (${reason}): ${ packages/folded-run-one-shot/src/one-shot-reply.ts 1 void settle("planning-run-send-failed", () => { @@ -173,10 +177,6 @@ packages/github-tools/src/tool.ts 1 return { packages/granola-tools/src/tool.ts 1 return null; packages/granola-tools/src/tool.ts 1 return { packages/granola-tools/src/tool.ts 2 return { -packages/hub-client/src/credential-test.ts 1 // Not JSON, or didn't match either shape — fall through to the -packages/hub-client/src/credential-test.ts 1 return []; -packages/hub-client/src/credential-test.ts 1 return undefined; -packages/hub-client/src/credential-test.ts 1 return { packages/inbox/src/routes.ts 1 publishLog.error( packages/interaction-tools/src/tool.ts 1 if (err instanceof NoOwnChannelError) { packages/jimmy-agent/src/gif-search-tool.ts 1 return false; diff --git a/scripts/checks/test/packages.test.ts b/scripts/checks/test/packages.test.ts index 5448cac3f..f1bf0015d 100644 --- a/scripts/checks/test/packages.test.ts +++ b/scripts/checks/test/packages.test.ts @@ -7,8 +7,8 @@ import { } from "../packages"; test("tarballNameFor flattens a scoped name the way bun pm pack does", () => { - expect(tarballNameFor("@workbench/hub-client", "0.0.1")).toBe( - "workbench-hub-client-0.0.1.tgz", + expect(tarballNameFor("@workbench/connections", "0.0.1")).toBe( + "workbench-connections-0.0.1.tgz", ); expect(tarballNameFor("plain", "1.2.3")).toBe("plain-1.2.3.tgz"); }); diff --git a/scripts/e2e/browser/walkthrough.ts b/scripts/e2e/browser/walkthrough.ts index 3772d8e37..ea16d8bc9 100644 --- a/scripts/e2e/browser/walkthrough.ts +++ b/scripts/e2e/browser/walkthrough.ts @@ -43,7 +43,7 @@ import { ensureSeeded, testAndPersistCredential, } from "../../../packages/onboarding/src/complete-credential.ts"; -import { OLLAMA_PLACEHOLDER_SECRET } from "../../../packages/hub-client/src/credential-test.ts"; +import { OLLAMA_PLACEHOLDER_SECRET } from "../../../packages/connections/src/credential-test.ts"; const REPO_ROOT = path.resolve(import.meta.dir, "..", "..", ".."); const WEB_DIR = path.join(REPO_ROOT, "apps", "web"); diff --git a/scripts/e2e/chat.test.ts b/scripts/e2e/chat.test.ts index dfba8315a..deea7c826 100644 --- a/scripts/e2e/chat.test.ts +++ b/scripts/e2e/chat.test.ts @@ -210,7 +210,7 @@ describe.skipIf(databaseUrl === undefined)("chat e2e", () => { // principal, user2 carries no grants of its own by default (only // the tenant creator gets the platform's wildcard owner grant), // so this also plants the read/write grants chat's routes gate - // on, exactly as `packages/hub-client/src/seed.ts`'s + // on, exactly as `packages/seeding/src/seed.ts`'s // `plantGrant` does for a tenant's own owner. const invited = await api( "POST", diff --git a/scripts/e2e/cl-6324-launch-proof.ts b/scripts/e2e/cl-6324-launch-proof.ts index bc7a03d7a..674315090 100644 --- a/scripts/e2e/cl-6324-launch-proof.ts +++ b/scripts/e2e/cl-6324-launch-proof.ts @@ -52,7 +52,7 @@ import { import { OLLAMA_PLACEHOLDER_SECRET, ollamaOpenAICompatBaseURL, -} from "../../packages/hub-client/src/credential-test.ts"; +} from "../../packages/connections/src/credential-test.ts"; import { api, e2eDatabaseUrl, diff --git a/scripts/e2e/cl-6329-turn-swap-proof.ts b/scripts/e2e/cl-6329-turn-swap-proof.ts index 6e4389039..3e478f94e 100644 --- a/scripts/e2e/cl-6329-turn-swap-proof.ts +++ b/scripts/e2e/cl-6329-turn-swap-proof.ts @@ -44,7 +44,7 @@ import { import { OLLAMA_PLACEHOLDER_SECRET, ollamaOpenAICompatBaseURL, -} from "../../packages/hub-client/src/credential-test.ts"; +} from "../../packages/connections/src/credential-test.ts"; import { api, e2eDatabaseUrl, diff --git a/scripts/e2e/cl-6451-single-run-proof.ts b/scripts/e2e/cl-6451-single-run-proof.ts index e18e53aeb..2a14f89b8 100644 --- a/scripts/e2e/cl-6451-single-run-proof.ts +++ b/scripts/e2e/cl-6451-single-run-proof.ts @@ -50,7 +50,7 @@ import { import { OLLAMA_PLACEHOLDER_SECRET, ollamaOpenAICompatBaseURL, -} from "../../packages/hub-client/src/credential-test.ts"; +} from "../../packages/connections/src/credential-test.ts"; import { api, e2eDatabaseUrl, diff --git a/scripts/e2e/greeting-delivery.test.ts b/scripts/e2e/greeting-delivery.test.ts index 430775592..0ac6e26bb 100644 --- a/scripts/e2e/greeting-delivery.test.ts +++ b/scripts/e2e/greeting-delivery.test.ts @@ -33,7 +33,7 @@ import { ensureSeeded, modelSourceFor, } from "../../packages/onboarding/src/complete-credential.ts"; -import { OLLAMA_PLACEHOLDER_SECRET } from "../../packages/hub-client/src/credential-test.ts"; +import { OLLAMA_PLACEHOLDER_SECRET } from "../../packages/connections/src/credential-test.ts"; import { api, createCleanupHarness, diff --git a/scripts/e2e/play.ts b/scripts/e2e/play.ts index 97f96b14e..f3d34b94d 100644 --- a/scripts/e2e/play.ts +++ b/scripts/e2e/play.ts @@ -30,7 +30,7 @@ import { ensureSeeded, modelSourceFor, } from "../../packages/onboarding/src/complete-credential.ts"; -import { OLLAMA_PLACEHOLDER_SECRET } from "../../packages/hub-client/src/credential-test.ts"; +import { OLLAMA_PLACEHOLDER_SECRET } from "../../packages/connections/src/credential-test.ts"; import { api, e2eDatabaseUrl, diff --git a/scripts/e2e/routine-alignment.test.ts b/scripts/e2e/routine-alignment.test.ts index 8ce8c1880..1ed214825 100644 --- a/scripts/e2e/routine-alignment.test.ts +++ b/scripts/e2e/routine-alignment.test.ts @@ -28,7 +28,7 @@ // Approval of the `workflow_deploy` *tool call* itself (the `ask`-gated // step a real Myra turn would hit before ever reaching the deploy route) // is a runtime-approval concern exercised elsewhere; scenario 4 below -// calls the deploy route directly, the same way `packages/hub-client`'s +// calls the deploy route directly, the same way `packages/seeding`'s // seed and CL-7361's own route tests do. import { describe, test } from "bun:test"; diff --git a/scripts/generate-tsconfig-references.ts b/scripts/generate-tsconfig-references.ts index 171997268..a838929d1 100644 --- a/scripts/generate-tsconfig-references.ts +++ b/scripts/generate-tsconfig-references.ts @@ -11,8 +11,8 @@ // 1. A composite project's `references` must form a DAG, and test files // routinely break that: they import `scripts/e2e/harness.ts` (a shared // test helper, not a workspace package) which itself imports production -// packages like `@corbits/hub-client` -- so a package upstream of -// `hub-client` whose *tests* import the harness would otherwise put +// packages like `@corbits/seeding` -- so a package upstream of +// `seeding` whose *tests* import the harness would otherwise put // that package's own composite project in a cycle with itself. // 2. Every tool that discovers a project by convention -- ESLint's // `projectService`, an editor's language server, a bare `tsc` in the @@ -199,7 +199,7 @@ function srcReferencePathsFor( * are shared test/setup helpers that many packages import by relative path * -- they are not workspace packages (no `package.json` dependency records * the edge), are not composite, and pull in production packages themselves - * (`harness.ts` imports `@workbench/hub-client`), so they can never + * (`harness.ts` imports `@corbits/seeding`), so they can never * legally appear in a `references` array. A package's `test/` directory * importing one is fine -- the combined non-composite project resolves it * via plain source, same as any other undeclared import. A package's `src` diff --git a/tsconfig.build.json b/tsconfig.build.json index 227605239..7a4de489a 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -76,9 +76,6 @@ { "path": "./packages/hub-api-client/tsconfig.src.json" }, - { - "path": "./packages/hub-client/tsconfig.src.json" - }, { "path": "./packages/icons/tsconfig.src.json" }, @@ -88,12 +85,6 @@ { "path": "./packages/inference-catalog/tsconfig.src.json" }, - { - "path": "./packages/inference-settings/tsconfig.src.json" - }, - { - "path": "./packages/insights/tsconfig.src.json" - }, { "path": "./packages/interaction-tools/tsconfig.src.json" }, @@ -130,9 +121,6 @@ { "path": "./packages/presence/tsconfig.src.json" }, - { - "path": "./packages/provider-pricing/tsconfig.src.json" - }, { "path": "./packages/reddit-tools/tsconfig.src.json" }, diff --git a/workflows/README.md b/workflows/README.md index 9da6f5dbf..5dd19cd62 100644 --- a/workflows/README.md +++ b/workflows/README.md @@ -25,6 +25,6 @@ re-explaining these three independent flags each time: approval gate is a poor fit for unattended scheduling. - **Seeded** — whether the workflow is provisioned into every tenant's bench by default, via `DEFAULT_WORKFLOWS` in - `packages/hub-client/src/seed.ts`. A workflow can be `automatable` + `packages/seeding/src/seed.ts`. A workflow can be `automatable` without being seeded (opt-in, e.g. because it needs a credential not every tenant has connected) — the two are independent decisions. diff --git a/workflows/heartbeat/README.md b/workflows/heartbeat/README.md index 61e5c5ccf..727d6da83 100644 --- a/workflows/heartbeat/README.md +++ b/workflows/heartbeat/README.md @@ -24,7 +24,7 @@ going through an agent, so this definition is deployed with its `inferencePreferences` pinned to the hub's `noop-inference` endpoint (`packages/chat/src/noop-inference.ts`), the same trick channel-host anchors use to avoid burning a real model call on every message. See -`NOOP_MODEL_SOURCE` in `packages/hub-client/src/seed.ts` for the pin. +`NOOP_MODEL_SOURCE` in `packages/seeding/src/seed.ts` for the pin. Under that pin, every run resolves against a constant, locally served SSE response — no request ever reaches a real provider, so triggering diff --git a/workflows/heartbeat/src/index.ts b/workflows/heartbeat/src/index.ts index b2ad47317..31991fcde 100644 --- a/workflows/heartbeat/src/index.ts +++ b/workflows/heartbeat/src/index.ts @@ -15,7 +15,7 @@ // this package's README). A deployer therefore pins this definition's // `inferencePreferences` to the hub's `noop-inference` endpoint (see // `packages/chat/src/noop-inference.ts` and -// `packages/hub-client/src/seed.ts`'s `NOOP_MODEL_SOURCE`): the turn +// `packages/seeding/src/seed.ts`'s `NOOP_MODEL_SOURCE`): the turn // completes instantly against a constant, never reaching a real model // provider, so running this workflow every few seconds costs nothing. // diff --git a/workflows/workbench-digest/README.md b/workflows/workbench-digest/README.md index bdd527278..38f4fdaad 100644 --- a/workflows/workbench-digest/README.md +++ b/workflows/workbench-digest/README.md @@ -21,7 +21,7 @@ input. **Pinned to `noop-inference` (default, zero cost):** deployed the same way as `@corbits/heartbeat-workflow` — `inferencePreferences` pointed at the hub's `noop-inference` endpoint (see `NOOP_MODEL_SOURCE` in -`packages/hub-client/src/seed.ts`). Every run resolves against a +`packages/seeding/src/seed.ts`). Every run resolves against a constant, locally served SSE response, so running this on a tight schedule costs nothing. The trade-off: `noop-inference` always replies with empty text by design (see its header comment), so under this pin diff --git a/workflows/workbench-digest/src/index.ts b/workflows/workbench-digest/src/index.ts index a200b6d0f..54acecc63 100644 --- a/workflows/workbench-digest/src/index.ts +++ b/workflows/workbench-digest/src/index.ts @@ -14,7 +14,7 @@ // definition is deployed with its `inferencePreferences` pinned to the // hub's `noop-inference` endpoint (see // `packages/chat/src/noop-inference.ts` and -// `packages/hub-client/src/seed.ts`'s `NOOP_MODEL_SOURCE`). Under that +// `packages/seeding/src/seed.ts`'s `NOOP_MODEL_SOURCE`). Under that // pin the turn completes instantly against a constant, empty reply — // by design, `noop-inference` never produces real text (see that // file's header comment) — so this deployment proves the scheduling