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
7 changes: 5 additions & 2 deletions packages/worker/src/app/permissions-server.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ import {
import {
requireUserWithPermission,
requireUserWithRole,
} from '#app/permissions-server.ts'
import {
type PermissionString,
type RoleName,
userHasPermission,
userHasRole,
} from '#app/permissions-server.ts'
import { type PermissionString, type RoleName } from '#universal/permissions.ts'
} from '#universal/permissions.ts'
import { testStableUserIdFromEmail } from '#worker/test-support/stable-user-id.ts'

const testCookieSecret = 'test-cookie-secret-0123456789abcdef0123456789'
Expand Down
1 change: 0 additions & 1 deletion packages/worker/src/app/permissions-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export {
removeAdminRolePreservingLastAdmin,
removeUserRole,
} from '#worker/identity/permissions-db.ts'
export { userHasPermission, userHasRole } from '#universal/permissions.ts'

function unauthorizedResponse(request: Request) {
if (wantsJson(request)) {
Expand Down
6 changes: 4 additions & 2 deletions packages/worker/src/dr/exporter.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ import {
drExportMaxStorageDumpBufferBytes,
__testOnlyCreateInitialProgress,
__testOnlyParseProgress,
listPlatformStorageInventory,
runDrExportTick,
runDrExportWatchdogTick,
shouldRunDrExportCatchUpCron,
shouldRunDrExportCron,
shouldRunDrExportWatchdogCron,
} from '#worker/dr/exporter.ts'
import { listPlatformOwnerInventory } from '#worker/dr/exporter-inventory.ts'
import {
listPlatformOwnerInventory,
listPlatformStorageInventory,
} from '#worker/dr/exporter-inventory.ts'
import { encodeStorageIdentity } from '#worker/dr/storage-identity.ts'
import {
DrBackupPreconditionFailedError,
Expand Down
1 change: 0 additions & 1 deletion packages/worker/src/dr/exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ import {
shouldRunDrExportCron,
} from '#worker/dr/exporter-schedule.ts'

export { listPlatformStorageInventory } from '#worker/dr/exporter-inventory.ts'
export {
drExportCatchUpLookbackDays,
isDrExportConfigured,
Expand Down
6 changes: 2 additions & 4 deletions packages/worker/src/email/outbound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ import {
recordEmailReportingEvent,
type EmailReportingEnv,
} from './reporting-events.ts'
import {
emailAttachmentBlobKey,
ensurePlatformSenderIdentity,
} from './service.ts'
import { emailAttachmentBlobKey } from './blob-keys.ts'
import { ensurePlatformSenderIdentity } from './repo.ts'
import { type EmailMessageRecord, type EmailProcessingStatus } from './types.ts'

type SendEmailEnv = Pick<
Expand Down
6 changes: 1 addition & 5 deletions packages/worker/src/email/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { bytesToBase64 } from '@kody-internal/shared/base64.ts'
import { isoTimestampDayKey } from '@kody-internal/shared/date-keys.ts'
import PostalMime from 'postal-mime'
import {
EmailRawMimeStorageError,
putEmailRawMime,
RetryableInboundStorageError,
} from './email-raw-mime-store.ts'
Expand Down Expand Up @@ -35,10 +34,7 @@ import {
type ParsedInboundEmail,
} from './types.ts'

export { EmailRawMimeStorageError, RetryableInboundStorageError }

export { emailAttachmentBlobKey, emailRawMimeKey } from './blob-keys.ts'
export { ensurePlatformSenderIdentity } from './repo.ts'
export { RetryableInboundStorageError }

function nowIso() {
return new Date().toISOString()
Expand Down
2 changes: 1 addition & 1 deletion packages/worker/src/mcp/executor.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
createMissingSecretMessage,
createPackageSecretAccessDeniedBatchMessage,
} from '#mcp/secrets/errors.ts'
import { createKodyProviderProxySource } from '#mcp/kody-provider-proxy-source.ts'
import { EntitlementLimitError } from '#worker/entitlements/errors.ts'
import { createUnboundRuntimeHelperMessage } from '#worker/package-runtime/unbound-runtime-helpers.ts'
import { createStorageEstimateReadError } from '#worker/storage-estimate-error.ts'
import {
createKodyRemoteProxy,
createKodyProviderProxySource,
createExecuteExecutor,
createExecutorModuleSource,
createExecutorSandboxTimeoutMessage,
Expand Down
2 changes: 0 additions & 2 deletions packages/worker/src/mcp/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ import {
} from '#worker/sentry-options.ts'
import { parseStorageEstimateReadErrorMessage } from '#worker/storage-estimate-error.ts'

export { createKodyProviderProxySource } from '#mcp/kody-provider-proxy-source.ts'

type WorkerLoopbackExports = Exclude<typeof workerExports, undefined>

export const defaultExecutionResponseLimitBytes = 102_400
Expand Down
3 changes: 2 additions & 1 deletion packages/worker/src/mcp/run-kody-registry.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
runModuleWithRegistry,
} from './run-kody-registry.ts'
import * as mcpExecutor from '#mcp/executor.ts'
import { createKodyProviderProxySource } from '#mcp/kody-provider-proxy-source.ts'
import { type KodyResolvedProvider } from '#mcp/kody-remote-types.ts'
import { PackageSecretMountError } from '#mcp/secrets/package-access.ts'
import * as packageAccess from '#mcp/secrets/package-access.ts'
Expand Down Expand Up @@ -1444,7 +1445,7 @@ test('remote connector calls round-trip through sanitized ToolDispatcher names',
const dispatchers = mcpExecutor.createToolDispatchers([provider], {
active: true,
})
const source = mcpExecutor.createKodyProviderProxySource({
const source = createKodyProviderProxySource({
providerName: provider.name,
remoteConnectors,
})
Expand Down
3 changes: 0 additions & 3 deletions packages/worker/src/mcp/tools/search-descriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ import {
extractSearchTokens,
} from './understand-search-query.ts'

export { buildIntegrationSearchDocument } from './search-entity-plugins/integration.ts'
export { flattenReferencedTypeFields } from './search-entity-plugins/package.ts'

function buildPackageRelationTokens(
match: Extract<SearchMatch, { type: 'package' }>,
) {
Expand Down
1 change: 0 additions & 1 deletion packages/worker/src/package-runtime/module-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export {
parsePackageRuntimeModulePathPackageId,
refreshKodyRuntimeModules,
} from './runtime-source-modules.ts'
export { createPublishedBundleArtifact } from './module-graph-artifacts.ts'
export {
buildKodyAppBundle,
buildKodyImportableModuleBundle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from 'vitest'
import { userScopedConnectorIngressPath } from '@kody-internal/shared/remote-connectors.ts'
import {
parseUserScopedConnectorRoutePath,
userScopedConnectorIngressPath,
userScopedConnectorSessionKey,
} from './connector-session-key.ts'

Expand Down
2 changes: 0 additions & 2 deletions packages/worker/src/remote-connector/connector-session-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import {
} from '@kody-internal/shared/remote-connectors.ts'
import { durableObjectNameFromParts } from '#worker/user-scoped-durable-object-name.ts'

export { userScopedConnectorIngressPath } from '@kody-internal/shared/remote-connectors.ts'

export type UserScopedConnectorRouteMatch = {
username: string
instanceId: string
Expand Down
1 change: 0 additions & 1 deletion packages/worker/src/run-records/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,6 @@ export type {
ActivationMilestoneRecord,
PackageRunSuccessRecord,
} from './package-activation-state.ts'
export { countsTowardPackageActivation } from './package-activation-state.ts'
export type {
JobRunObservabilityRecord,
JobRunObservabilityStatus,
Expand Down
Loading