Skip to content

Commit b4a32ff

Browse files
committed
Merge origin/main into feat/workspace-team
# Conflicts: # apps/daemon/src/routes/runs.ts # apps/daemon/tests/chat-route.test.ts # apps/packaged/src/index.ts # apps/packaged/src/protocol.ts # apps/packaged/tests/protocol.test.ts # apps/web/src/App.tsx # apps/web/src/components/SettingsDialog.tsx # apps/web/src/state/config.ts # apps/web/tests/components/SettingsDialog.execution.test.tsx # e2e/ui/project-management-flows.test.ts
2 parents 4c1ed3b + 2523669 commit b4a32ff

134 files changed

Lines changed: 6613 additions & 4414 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/daemon/src/byok/credential-service.ts

Lines changed: 0 additions & 596 deletions
This file was deleted.

apps/daemon/src/cli.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { DESIGN_SYSTEMS_USAGE, isDesignSystemsHelpArg } from './cli-help/index.j
1313
import { BRAND_USAGE, isBrandHelpArg } from './cli-help/index.js';
1414
import { parseDesignSystemRenameArgs } from './design-systems/rename-args.js';
1515
import { runLiveArtifactsToolCli } from './tools-live-artifacts-cli.js';
16-
import { runByokToolCli } from './tools-byok-cli.js';
1716
import { splitResearchSubcommand } from './research/cli-args.js';
1817
import { resolveDaemonUrl } from './daemon-url.js';
1918
import { requestJsonIpc } from '@open-design/sidecar';
@@ -372,7 +371,6 @@ const SUBCOMMAND_MAP = {
372371
artifacts: runArtifacts,
373372
media: runMedia,
374373
mcp: runMcp,
375-
byok: runByok,
376374
amr: runAmr,
377375
collab: runCollab,
378376
'message-center': runMessageCenter,
@@ -1844,15 +1842,6 @@ artifact / message body. The daemon writes the bytes into the project's
18441842
files folder so the FileViewer can preview them immediately.`);
18451843
}
18461844

1847-
// ---------------------------------------------------------------------------
1848-
// Subcommand: od byok
1849-
// ---------------------------------------------------------------------------
1850-
1851-
async function runByok(args) {
1852-
const result = await runByokToolCli(args);
1853-
if (result.exitCode !== 0) process.exit(result.exitCode);
1854-
}
1855-
18561845
// ---------------------------------------------------------------------------
18571846
// Subcommand: od mcp
18581847
// ---------------------------------------------------------------------------

apps/daemon/src/mcp-brief.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const BRIEF_COPY: Record<LocalMcpBriefLocale, LocalizedBriefCopy> = {
5151
artifactNames: ENGLISH_ARTIFACT_NAMES,
5252
title: (artifactName) => `Choose the ${artifactName} direction`,
5353
description:
54-
'Choose one option for each decision. The same readable brief can be used with Open Design Cloud, Local Codex, or Secure BYOK.',
54+
'Choose one option for each decision. The same readable brief can be used with Open Design Cloud or Local Codex.',
5555
submitLabel: 'Confirm brief',
5656
completeCard:
5757
'Complete the rendered Open Design brief card. The confirmation returns a readable summary; internal correlation values must remain hidden.',

apps/daemon/src/mcp-observability.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,30 @@ export function validateExternalPluginContext(
147147
};
148148
}
149149

150-
export function validatePluginWorkflowId(value: unknown): string {
150+
function validateCanonicalPluginCorrelationId(
151+
value: unknown,
152+
fieldName: 'pluginWorkflowId' | 'requestId',
153+
): string {
151154
if (
152155
typeof value !== 'string'
153156
|| value.length > 64
154157
|| !WORKFLOW_ID_PATTERN.test(value)
155158
) {
156159
throw pluginContractError(
157-
'pluginWorkflowId must be a canonical UUID or ULID',
160+
`${fieldName} must be a canonical UUID or ULID`,
158161
);
159162
}
160163
return value;
161164
}
162165

166+
export function validatePluginWorkflowId(value: unknown): string {
167+
return validateCanonicalPluginCorrelationId(value, 'pluginWorkflowId');
168+
}
169+
170+
export function validatePluginRequestId(value: unknown): string {
171+
return validateCanonicalPluginCorrelationId(value, 'requestId');
172+
}
173+
163174
export function mapMcpHostProduct(
164175
clientInfo: { name?: unknown; version?: unknown } | null | undefined,
165176
): AnalyticsHostProduct {

apps/daemon/src/mcp.ts

Lines changed: 15 additions & 98 deletions
Large diffs are not rendered by default.

apps/daemon/src/routes/byok-credentials.ts

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)