Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/hub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"@workbench/access-policy": "workspace:*",
"@workbench/connections": "workspace:*",
"@corbits/hub-api-client": "workspace:*",
"@corbits/seeding": "workspace:*",
"@workbench/hub-client": "workspace:*",
"@workbench/onboarding": "workspace:*",
"@workbench/templates": "workspace:*",
Expand Down
6 changes: 2 additions & 4 deletions apps/hub/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,8 @@ import {
createPresenceRoutes,
type PresenceRoomKey,
} from "@corbits/presence";
import {
createGitWorkflowPusher,
supportedCredentialProviders,
} from "@workbench/hub-client";
import { supportedCredentialProviders } from "@workbench/hub-client";
import { createGitWorkflowPusher } from "@corbits/seeding";
import { createHubAPI } from "@corbits/hub-api-client";
import {
createDrizzlePendingSeedStore,
Expand Down
2 changes: 1 addition & 1 deletion apps/hub/src/system-seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
DEFAULT_WORKFLOWS,
PLACEHOLDER_CATALOG_API_KEY,
type ModelSource,
} from "@workbench/hub-client";
} from "@corbits/seeding";
import { createHubAPI, signIn, type ApiCall } from "@corbits/hub-api-client";
import { findPersonalTenant } from "@workbench/onboarding";

Expand Down
41 changes: 30 additions & 11 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 28 additions & 5 deletions packages/bench/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
{
"extends": "../../tsconfig.base.json",
"include": ["src", "test"],
"extends": "./tsconfig.src.json",
"compilerOptions": {
"types": ["bun"],
"noEmit": true
}
"composite": false,
"noEmit": true,
"disableSourceOfProjectReferenceRedirect": true,
"declaration": false,
"declarationMap": false,
"emitDeclarationOnly": false,
"rootDir": "../.."
},
"include": ["src", "test"],
"exclude": [],
"references": [
{
"path": "../../vendor/intx/hub-api/tsconfig.src.json"
},
{
"path": "../api-query/tsconfig.src.json"
},
{
"path": "../error-sink/tsconfig.src.json"
},
{
"path": "../hub-client/tsconfig.src.json"
},
{
"path": "../migration-runner/tsconfig.src.json"
}
]
}
29 changes: 29 additions & 0 deletions packages/bench/tsconfig.src.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"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/hub-api/tsconfig.src.json"
},
{
"path": "../api-query/tsconfig.src.json"
},
{
"path": "../error-sink/tsconfig.src.json"
},
{
"path": "../hub-client/tsconfig.src.json"
},
{
"path": "../migration-runner/tsconfig.src.json"
}
]
}
27 changes: 22 additions & 5 deletions packages/commands/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
{
"extends": "../../tsconfig.base.json",
"include": ["src", "test"],
"extends": "./tsconfig.src.json",
"compilerOptions": {
"types": ["bun"],
"noEmit": true
}
"composite": false,
"noEmit": true,
"disableSourceOfProjectReferenceRedirect": true,
"declaration": false,
"declarationMap": false,
"emitDeclarationOnly": false,
"rootDir": "../.."
},
"include": ["src", "test"],
"exclude": [],
"references": [
{
"path": "../../vendor/intx/hub-api/tsconfig.src.json"
},
{
"path": "../error-sink/tsconfig.src.json"
},
{
"path": "../hub-client/tsconfig.src.json"
}
]
}
23 changes: 23 additions & 0 deletions packages/commands/tsconfig.src.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"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/hub-api/tsconfig.src.json"
},
{
"path": "../error-sink/tsconfig.src.json"
},
{
"path": "../hub-client/tsconfig.src.json"
}
]
}
1 change: 1 addition & 0 deletions packages/connections/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@intx/types": "workspace:*",
"@modelcontextprotocol/sdk": "catalog:",
"@corbits/hub-api-client": "workspace:*",
"@corbits/seeding": "workspace:*",
"@workbench/hub-client": "workspace:*",
"@workbench/templates": "workspace:*",
"arktype": "catalog:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { describe, expect, test } from "bun:test";
import { Hono } from "hono";
import type { MiddlewareHandler } from "hono";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import type { EnsureCredentialArgs } from "@workbench/hub-client";
import type { EnsureCredentialArgs } from "@corbits/seeding";
import type { ApiCall } from "@corbits/hub-api-client";
import {
CONNECTOR_REGISTRY,
Expand Down
2 changes: 1 addition & 1 deletion packages/connections/src/mcp-oauth-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { type } from "arktype";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import type { CredentialCipher } from "@intx/types";
import { MCP_STREAMABLE_HTTP_PROVIDER_KEY } from "@corbits/credential-providers";
import { ensureCredential, ensureProvider } from "@workbench/hub-client";
import { ensureCredential, ensureProvider } from "@corbits/seeding";
import {
cookiesFromHeader,
createHubAPI,
Expand Down
2 changes: 1 addition & 1 deletion packages/connections/src/mcp-server-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
ProviderResponse,
paginatedSchema,
} from "@intx/types";
import { ensureCredential, ensureProvider } from "@workbench/hub-client";
import { ensureCredential, ensureProvider } from "@corbits/seeding";
import {
cookiesFromHeader,
createHubAPI,
Expand Down
2 changes: 1 addition & 1 deletion packages/connections/src/persist-credential.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
EnsureCredentialArgs,
EnsureProviderArgs,
SeedCatalogArgs,
} from "@workbench/hub-client";
} from "@corbits/seeding";
import type { ConnectorDescriptor } from "./descriptor";
import {
isInferenceProvider,
Expand Down
8 changes: 5 additions & 3 deletions packages/connections/src/persist-credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@
// Plugins gallery's resolver looks up. `seedCatalog` is passed that same
// `credentialName` so its own internal `ensureCredential` resolves to
// the row planted here rather than a second `<provider>-default` row.
import {
PROVIDER_TEST_CONFIG,
type SupportedCredentialProvider,
} from "@workbench/hub-client";
import {
ensureCredential,
ensureProvider,
PROVIDER_TEST_CONFIG,
seedCatalog,
type EnsureCredentialArgs,
type EnsureProviderArgs,
type SeedCatalogArgs,
type SupportedCredentialProvider,
} from "@workbench/hub-client";
} from "@corbits/seeding";
import type { ApiCall } from "@corbits/hub-api-client";
import type { ConnectorDescriptor } from "./descriptor";

Expand Down
4 changes: 2 additions & 2 deletions packages/connections/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ 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 {
ensureCredential,
ensureProvider,
OLLAMA_PLACEHOLDER_SECRET,
seedCatalog,
type EnsureCredentialArgs,
type EnsureProviderArgs,
type SeedCatalogArgs,
} from "@workbench/hub-client";
} from "@corbits/seeding";
import {
cookiesFromHeader,
createHubAPI,
Expand Down
2 changes: 1 addition & 1 deletion packages/connections/test/github-oauth-connect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type {
EnsureCredentialArgs,
EnsureProviderArgs,
SeedCatalogArgs,
} from "@workbench/hub-client";
} from "@corbits/seeding";
import type { ConnectorDescriptor } from "../src/descriptor";
import {
exchangeCodeForGithubToken,
Expand Down
1 change: 1 addition & 0 deletions packages/evals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@modelcontextprotocol/sdk": "catalog:",
"@workbench/connections": "workspace:*",
"@corbits/hub-api-client": "workspace:*",
"@corbits/seeding": "workspace:*",
"@workbench/hub-client": "workspace:*",
"@workbench/onboarding": "workspace:*",
"arktype": "catalog:",
Expand Down
6 changes: 2 additions & 4 deletions packages/evals/src/targets/real-target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ import { mkdtemp, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import path from "node:path";

import {
createGitWorkflowPusher,
OLLAMA_PLACEHOLDER_SECRET,
} from "@workbench/hub-client";
import { OLLAMA_PLACEHOLDER_SECRET } from "@workbench/hub-client";
import { createGitWorkflowPusher } from "@corbits/seeding";
import { createHubAPI, type ApiCall } from "@corbits/hub-api-client";
import { getLogger } from "@intx/log";
import { completeCredentialSetup } from "@workbench/onboarding";
Expand Down
14 changes: 1 addition & 13 deletions packages/hub-client/package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
{
"name": "@workbench/hub-client",
"private": true,
"description": "The hub's native HTTP API as a typed client, plus tenant seeding: authenticate, deploy the default workflow set, and confirm every deployment answers",
"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",
"./catalog-seed-data": "./src/catalog-seed-data.ts",
"./model-capability": "./src/model-capability.ts"
},
"scripts": {
"typecheck": "tsc --noEmit",
"test": "bun test"
},
"dependencies": {
"@corbits/assistant-workflow": "workspace:*",
"@corbits/echo-workflow": "workspace:*",
"@corbits/heartbeat-workflow": "workspace:*",
"@corbits/hub-api-client": "workspace:*",
"@corbits/inference-catalog": "workspace:*",
"@corbits/last-30-days-research-workflow": "workspace:*",
"@corbits/tool-registry-publish": "workspace:*",
"@corbits/workbench-digest-workflow": "workspace:*",
"@workbench/templates": "workspace:*",
"@corbits/workflows": "workspace:*",
"@intx/inference": "workspace:*",
"@intx/types": "workspace:*",
"arktype": "catalog:"
},
Expand Down
Loading
Loading