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
2 changes: 1 addition & 1 deletion apps/hub/src/hub-error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import type { Context } from "hono";
import type { TenantEnv } from "@intx/hub-api";
import { reportError } from "@corbits/error-sink";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

/**
* Duck-typed rather than an `instanceof` allowlist: any error carrying a
Expand Down
2 changes: 1 addition & 1 deletion apps/hub/src/templates/template-block-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// `AssetService` are touched and this stays testable with plain fakes.
import { Hono } from "hono";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

import {
buildBlockWorkflowSource,
Expand Down
2 changes: 1 addition & 1 deletion apps/hub/src/tenant-create-guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
checkSignupGate,
type AccessPolicyStore,
} from "@workbench/access-policy";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

const NATIVE_TENANT_CREATE_PATH = "/api/tenants";

Expand Down
27 changes: 27 additions & 0 deletions bun.lock

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

8 changes: 2 additions & 6 deletions packages/access-policy/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@
import { Hono } from "hono";
import { type } from "arktype";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import { reportError } from "@corbits/error-sink";
import {
cookiesFromHeader,
makeErrorEnvelope,
type ApiCall,
} from "@workbench/hub-client";
import { makeErrorEnvelope, reportError } from "@corbits/error-sink";
import { cookiesFromHeader, type ApiCall } from "@workbench/hub-client";

import { canCreateTenancy } from "./policy";
import type { AccessPolicyStore } from "./store";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
FoldedRunFailedError,
FoldedRunTimedOutError,
} from "@corbits/folded-run-one-shot";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";
import {
AgentDefinitionDraftReferenceOutOfInventoryError,
AgentDefinitionDraftReplyUnparseableError,
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-directory/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import {
import type { DefinitionAssetHistory } from "./definition-history";
import { listVisibleAgentDefinitions } from "./visible-definitions";
import { reportError } from "@corbits/error-sink";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

/**
* Resolves the pinned skill names a definition carries into the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ import {
} from "./definition-asset";
import type { PinnedSkillIndexResolver } from "./routes";
import type { DefinitionSkillsStore } from "./skills-store";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

/**
* The tenant + principal + run a presented sidecar token and run
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-directory/src/workflow-create-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import {
CapabilityOutOfInventoryError,
type CapabilityInventoryProvider,
} from "./capability-inventory";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";
import type {
WorkflowCapabilityRunScope,
WorkflowRunAuthenticator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import {
} from "./definition-asset";
import type { PinnedSkillIndexResolver } from "./routes";
import type { DefinitionSkillsStore } from "./skills-store";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";
import type {
WorkflowCapabilityRunScope,
WorkflowRunAuthenticator as WorkflowCapabilityRunAuthenticator,
Expand Down
1 change: 1 addition & 0 deletions packages/artifacts-hub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@corbits/artifact-ui": "workspace:*",
"@corbits/artifacts": "github:corbitsdev/corbits-artifacts#81049ed24a64e927498c7238bda6ffa66b63d2ab",
"@corbits/collections": "workspace:*",
"@corbits/error-sink": "workspace:*",
"@corbits/folded-runs": "workspace:*",
"@intx/crypto": "0.3.0",
"@intx/db": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/artifacts-hub/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
import { isTextDecodableMediaType } from "@corbits/artifact-ui/renderer-kind";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import { Hono } from "hono";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

const DEFAULT_LIMIT = 50;
const MAX_LIMIT = 100;
Expand Down
2 changes: 1 addition & 1 deletion packages/artifacts-hub/src/template-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import { hexEncode } from "@intx/types";
import { and, eq, sql } from "drizzle-orm";
import { Hono } from "hono";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

export const WORKBENCH_TEMPLATE_ARTIFACT_KIND = "workbench-template";

Expand Down
2 changes: 1 addition & 1 deletion packages/artifacts-hub/src/workflow-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
type SerializedArtifactListItem,
} from "@corbits/artifacts";
import { Hono } from "hono";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

import type {
ResolvedWorkflowRunScope,
Expand Down
1 change: 1 addition & 0 deletions packages/bench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"dependencies": {
"@corbits/api-query": "workspace:*",
"@corbits/error-sink": "workspace:*",
"@corbits/migration-runner": "workspace:*",
"@intx/hub-api": "workspace:*",
"@workbench/hub-client": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/bench/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { type } from "arktype";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";

import type { BenchSettingsStore } from "./store";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

// `BenchCreateType` in packages/bench-ui/src/create-bench-dialog.tsx allows
// exactly "global" | "sub" today; validated strictly here rather than as a
Expand Down
4 changes: 2 additions & 2 deletions packages/chat/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type { Context } from "hono";
import { streamSSE } from "hono/streaming";
import { type } from "arktype";
import { decodedOrNull } from "@corbits/url-path";
import { reportError } from "@corbits/error-sink";
import { makeErrorEnvelope, reportError } from "@corbits/error-sink";

import type { TenantEnv } from "@intx/hub-api";
import type { RequireGrant } from "@intx/hub-api";
Expand Down Expand Up @@ -110,7 +110,7 @@ import {
DefinitionProjectionMissingError,
} from "@corbits/folded-runs";
import type { WorkbenchTenancyStore } from "./workbench-tenancy";
import { cookiesFromHeader, makeErrorEnvelope } from "@workbench/hub-client";
import { cookiesFromHeader } from "@workbench/hub-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-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import type { AppEnv } from "@intx/hub-api";
import { Hono } from "hono";
import { type } from "arktype";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

import type { WorkbenchTenancyStore } from "./workbench-tenancy";

Expand Down
2 changes: 1 addition & 1 deletion packages/chat/src/workflow-participant-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import {
import type { WorkbenchTenancyStore } from "./workbench-tenancy";
import { MODEL_UNAVAILABLE_CONSUMER_MESSAGE } from "./model-unavailable";
import { reportError } from "@corbits/error-sink";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

/**
* The tenant + principal + run a presented sidecar token and run
Expand Down
1 change: 1 addition & 0 deletions packages/commands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"test": "bun test"
},
"dependencies": {
"@corbits/error-sink": "workspace:*",
"@intx/hub-api": "workspace:*",
"@workbench/hub-client": "workspace:*",
"arktype": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { TenantEnv } from "@intx/hub-api";
import type { RequireGrant } from "@intx/hub-api";
import { dispatchSlashCommand } from "./dispatch";
import type { CommandListing, CommandRegistry } from "./registry";
import { makeErrorEnvelope } from "@workbench/hub-client";
import { makeErrorEnvelope } from "@corbits/error-sink";

export type CreateCommandRoutesDeps = {
registry: CommandRegistry;
Expand Down
4 changes: 2 additions & 2 deletions packages/connections/src/connect-github-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import { Hono } from "hono";
import { type } from "arktype";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import { cookiesFromHeader, makeErrorEnvelope } from "@workbench/hub-client";
import { reportError } from "@corbits/error-sink";
import { cookiesFromHeader } from "@workbench/hub-client";
import { makeErrorEnvelope, reportError } from "@corbits/error-sink";

import {
fetchAuthenticatedLogin,
Expand Down
3 changes: 1 addition & 2 deletions packages/connections/src/mcp-server-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
createHubAPI,
ensureCredential,
ensureProvider,
makeErrorEnvelope,
parseAs,
type ApiCall,
} from "@workbench/hub-client";
Expand All @@ -35,7 +34,7 @@ import {
} from "@corbits/credential-providers";
import { probeMcpServer } from "./mcp-probe";
import { fireConnectedHook, type ServiceConnectedHook } from "./connected-hook";
import { reportError } from "@corbits/error-sink";
import { makeErrorEnvelope, reportError } from "@corbits/error-sink";
import { MCP_PRESETS, mcpPresetBySlug } from "./mcp-presets";

/** Every stored MCP server provider is named `mcp:<slug>` — the same
Expand Down
3 changes: 1 addition & 2 deletions packages/connections/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ import {
} from "@intx/types";
import type { RequireGrant, TenantEnv } from "@intx/hub-api";
import { hasUsableModel } from "@corbits/inference-settings";
import { reportError } from "@corbits/error-sink";
import { makeErrorEnvelope, reportError } from "@corbits/error-sink";
import {
cookiesFromHeader,
createHubAPI,
ensureCredential,
ensureProvider,
makeErrorEnvelope,
parseAs,
OLLAMA_PLACEHOLDER_SECRET,
seedCatalog,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
// hub's own logger, keyed by the same `refId`, so an operator can find
// it without the client ever having seen it. See CL-6360.

import { generateRefId } from "@corbits/error-sink";
import { type } from "arktype";

export { generateRefId };
import { generateRefId } from "./ref-id";

export const ErrorEnvelopeShape = type({
error: {
Expand Down
Loading
Loading