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 @@ -64,6 +64,7 @@
"@modelcontextprotocol/sdk": "catalog:",
"@workbench/access-policy": "workspace:*",
"@workbench/connections": "workspace:*",
"@corbits/hub-api-client": "workspace:*",
"@workbench/hub-client": "workspace:*",
"@workbench/onboarding": "workspace:*",
"@workbench/templates": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion apps/hub/src/env-credential-plant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import {
parseAs,
type ApiCall,
type Session,
} from "@workbench/hub-client";
} from "@corbits/hub-api-client";
import {
plantEnvProviderCredentials,
type PlantEnvProviderCredentialsOutcome,
Expand Down
2 changes: 1 addition & 1 deletion apps/hub/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ import {
} from "@corbits/presence";
import {
createGitWorkflowPusher,
createHubAPI,
supportedCredentialProviders,
} from "@workbench/hub-client";
import { createHubAPI } from "@corbits/hub-api-client";
import {
createDrizzlePendingSeedStore,
createBenchProvisioner,
Expand Down
2 changes: 1 addition & 1 deletion apps/hub/src/native-repo-grants.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// never a SQL insert into Interchange grant/role tables.
import { afterEach, beforeEach, describe, expect, test } from "bun:test";
import { configureSync, resetSync } from "@intx/log";
import type { ApiCall } from "@workbench/hub-client";
import type { ApiCall } from "@corbits/hub-api-client";

import {
hasRepoGrantViaHttp,
Expand Down
2 changes: 1 addition & 1 deletion apps/hub/src/native-repo-grants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// `/api/tenants/:id/grants` surface as the requesting user. Never
// SQL-inserts Interchange grant/role rows.
import { GrantResponse, RoleResponse, paginatedSchema } from "@intx/types";
import { parseAs, type ApiCall } from "@workbench/hub-client";
import { parseAs, type ApiCall } from "@corbits/hub-api-client";
import { reportError } from "@corbits/error-sink";

type RepoName = { name: string };
Expand Down
4 changes: 1 addition & 3 deletions apps/hub/src/system-seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,16 @@
import { reportError } from "@corbits/error-sink";
import { getLogger } from "@intx/log";
import {
createHubAPI,
signIn,
seedTenant,
seedCatalog,
ensureDefaultRoutines,
createGitWorkflowPusher,
publishCorbitsToolsRegistry,
DEFAULT_WORKFLOWS,
PLACEHOLDER_CATALOG_API_KEY,
type ApiCall,
type ModelSource,
} from "@workbench/hub-client";
import { createHubAPI, signIn, type ApiCall } from "@corbits/hub-api-client";
import { findPersonalTenant } from "@workbench/onboarding";

const log = getLogger(["hub", "system-seed"]);
Expand Down
24 changes: 21 additions & 3 deletions bun.lock

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

2 changes: 1 addition & 1 deletion packages/access-policy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@corbits/error-sink": "workspace:*",
"@corbits/migration-runner": "workspace:*",
"@intx/hub-api": "workspace:*",
"@workbench/hub-client": "workspace:*",
"@corbits/hub-api-client": "workspace:*",
"arktype": "catalog:",
"drizzle-orm": "catalog:",
"hono": "^4.11.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/access-policy/src/gate.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test";
import type { ApiCall, ApiResult } from "@workbench/hub-client";
import type { ApiCall, ApiResult } from "@corbits/hub-api-client";

import { checkSignupGate, resolvePendingInviteOnLogin } from "./gate";
import { createInMemoryAccessPolicyStore } from "./store";
Expand Down
2 changes: 1 addition & 1 deletion packages/access-policy/src/gate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// /tenants/:id/members/invite`) and an immediate status flip to
// "active" (`PATCH /tenants/:id/principals/:id`), the same two native
// primitives `packages/settings-ui` already drives by hand.
import type { ApiCall } from "@workbench/hub-client";
import type { ApiCall } from "@corbits/hub-api-client";

import { evaluateSignupGate, type SignupGateResult } from "./policy";
import type { AccessPolicyStore } from "./store";
Expand Down
2 changes: 1 addition & 1 deletion packages/access-policy/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Hono } from "hono";
import { type } from "arktype";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import { makeErrorEnvelope, reportError } from "@corbits/error-sink";
import { cookiesFromHeader, type ApiCall } from "@workbench/hub-client";
import { cookiesFromHeader, type ApiCall } from "@corbits/hub-api-client";

import { canCreateTenancy } from "./policy";
import type { AccessPolicyStore } from "./store";
Expand Down
30 changes: 25 additions & 5 deletions packages/access-policy/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
{
"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-api-client/tsconfig.src.json"
},
{
"path": "../migration-runner/tsconfig.src.json"
}
]
}
27 changes: 27 additions & 0 deletions packages/access-policy/tsconfig.src.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"extends": "../../tsconfig.base.json",
"include": ["src", "package.json", "src/**/*.json"],
"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"],
"compilerOptions": {
"types": ["bun"],
"noEmit": true,
"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-api-client/tsconfig.src.json"
},
{
"path": "../migration-runner/tsconfig.src.json"
}
]
}
1 change: 1 addition & 0 deletions packages/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@corbits/collections": "workspace:*",
"@corbits/commands": "workspace:*",
"@corbits/error-sink": "workspace:*",
"@corbits/hub-api-client": "workspace:*",
"@corbits/folded-runs": "workspace:*",
"@corbits/memory": "github:corbitsdev/corbits-memory#9e6f213fa2c002b531d3f6af1aa0abd737b8afe3",
"@corbits/turn-artifacts": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/chat/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ import {
DefinitionProjectionMissingError,
} from "@corbits/folded-runs";
import type { WorkbenchTenancyStore } from "./workbench-tenancy";
import { cookiesFromHeader } from "@workbench/hub-client";
import { cookiesFromHeader } from "@corbits/hub-api-client";
import type { AgentTurnStore } from "./agent-turns";
import type { ThreadStore } from "./threads";
import { ThreadDepthCapError } from "./threads";
Expand Down
2 changes: 1 addition & 1 deletion packages/chat/src/workbench-tenancy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
TenantResponse,
} from "@intx/types";
import { reportError } from "@corbits/error-sink";
import { parseAs, type ApiCall } from "@workbench/hub-client";
import { parseAs, type ApiCall } from "@corbits/hub-api-client";
import { workbenchTenancy } from "./schema";

const log = getLogger(["chat", "workbench-tenancy"]);
Expand Down
2 changes: 1 addition & 1 deletion packages/chat/test/workbench-tenancy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// exercised here as an outcome of `moveWorkbenchTenancy` itself, never
// as a separate pre-check call.
import { expect, test } from "bun:test";
import type { ApiCall } from "@workbench/hub-client";
import type { ApiCall } from "@corbits/hub-api-client";
import {
createInMemoryNativeTenantApi,
createInMemoryWorkbenchTenancyStore,
Expand Down
1 change: 1 addition & 0 deletions packages/connections/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@intx/hub-api": "workspace:*",
"@intx/types": "workspace:*",
"@modelcontextprotocol/sdk": "catalog:",
"@corbits/hub-api-client": "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,8 @@ 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 { ApiCall, EnsureCredentialArgs } from "@workbench/hub-client";
import type { EnsureCredentialArgs } from "@workbench/hub-client";
import type { ApiCall } from "@corbits/hub-api-client";
import {
CONNECTOR_REGISTRY,
persistConnectorCredential,
Expand Down
2 changes: 1 addition & 1 deletion packages/connections/src/connect-github-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import { Hono } from "hono";
import { type } from "arktype";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import { cookiesFromHeader } from "@workbench/hub-client";
import { cookiesFromHeader } from "@corbits/hub-api-client";
import { makeErrorEnvelope, reportError } from "@corbits/error-sink";

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/connections/src/mcp-oauth-routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as errorSink from "@corbits/error-sink";
import { Hono, type MiddlewareHandler } from "hono";
import { createNoopCredentialCipher } from "@intx/crypto";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import type { ApiCall } from "@workbench/hub-client";
import type { ApiCall } from "@corbits/hub-api-client";
import { createMcpOAuthRoutes } from "./mcp-oauth-routes";
import { mcpPresetBySlug } from "./mcp-presets";
import type { McpProbeResult } from "./mcp-probe";
Expand Down
7 changes: 3 additions & 4 deletions packages/connections/src/mcp-oauth-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ 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 {
cookiesFromHeader,
ensureCredential,
ensureProvider,
createHubAPI,
type ApiCall,
} from "@workbench/hub-client";
import { createHubAPI } from "@workbench/hub-client";
} from "@corbits/hub-api-client";
import type { OAuthClientInformationMixed } from "@modelcontextprotocol/sdk/shared/auth.js";
import { createMcpOAuthProvider, type McpOAuthSession } from "./mcp-oauth";
import { createConnectStateStore, randomToken } from "./pkce";
Expand Down
2 changes: 1 addition & 1 deletion packages/connections/src/mcp-server-routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as errorSink from "@corbits/error-sink";
import { Hono } from "hono";
import type { MiddlewareHandler } from "hono";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import type { ApiCall } from "@workbench/hub-client";
import type { ApiCall } from "@corbits/hub-api-client";
import { createMcpServerRoutes } from "./mcp-server-routes";
import type { McpProbeResult } from "./mcp-probe";

Expand Down
5 changes: 2 additions & 3 deletions packages/connections/src/mcp-server-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ import {
ProviderResponse,
paginatedSchema,
} from "@intx/types";
import { ensureCredential, ensureProvider } from "@workbench/hub-client";
import {
cookiesFromHeader,
createHubAPI,
ensureCredential,
ensureProvider,
parseAs,
type ApiCall,
} from "@workbench/hub-client";
} from "@corbits/hub-api-client";
import {
MCP_NO_TOKEN_SENTINEL,
MCP_STREAMABLE_HTTP_PROVIDER_KEY,
Expand Down
2 changes: 1 addition & 1 deletion packages/connections/src/oauth-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { deleteCookie, getCookie, setCookie } from "hono/cookie";
import { type } from "arktype";
import type { AppEnv } from "@intx/hub-api";
import type { CredentialCipher } from "@intx/types";
import { cookiesFromHeader } from "@workbench/hub-client";
import { cookiesFromHeader } from "@corbits/hub-api-client";
import {
createConnectStateStore,
generatePKCEPair,
Expand Down
2 changes: 1 addition & 1 deletion packages/connections/src/oauth-tenant-connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// there is no separate probe step here (unlike `/complete`'s pasted-key
// path, which has nothing else vouching for the secret).
import type { TenantEnv } from "@intx/hub-api";
import { createHubAPI } from "@workbench/hub-client";
import { createHubAPI } from "@corbits/hub-api-client";
import { reportError } from "@corbits/error-sink";
import type { ConnectorDescriptor } from "./descriptor";
import type { ProviderHealthStore } from "./provider-health";
Expand Down
Loading
Loading