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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ sse-stream = "0.2.3"
which = "8.0"
similar = "2.5"
urlencoding = "2.1"
oxc = { version = "0.138.0", default-features = false, features = ["ast_visit", "codegen", "semantic", "transformer"] }

# Tauri (desktop only)
tauri = { version = "2.11", features = ["unstable", "macos-private-api", "tray-icon"] }
Expand Down
2 changes: 1 addition & 1 deletion scripts/audit-theme-colors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ function audit(options) {
incrementMap(tokenColorCounts, color);
} else if (exceptionFile) {
incrementMap(exceptionColorCounts, color);
} else {
} else if (colorDomain === 'appUi') {
componentColorOccurrences += 1;
incrementMap(componentColorCounts, color);
addToSetMap(componentColorFiles, color, relativePath);
Expand Down
11 changes: 7 additions & 4 deletions scripts/core-boundaries/rules/feature-rules.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const optionalDependencyFeatureOwnerRules = [
ownerFeatures: ['mcp', 'miniapp-runtime', 'remote-connect', 'remote-ssh-concrete'],
},
{ depName: 'bitfun-agent-runtime', ownerFeatures: ['deep-research'] },
{ depName: 'bitfun-product-domains', ownerFeatures: ['function-agents', 'miniapp-runtime'] },
{ depName: 'bitfun-product-domains', ownerFeatures: ['canvas-runtime', 'function-agents', 'miniapp-runtime'] },
{ depName: 'bitfun-runtime-ports', ownerFeatures: ['remote-connect'] },
{
depName: 'bitfun-services-core',
Expand All @@ -73,6 +73,7 @@ export const optionalDependencyFeatureOwnerRules = [
{ depName: 'mac_address', ownerFeatures: ['remote-connect'] },
{ depName: 'md5', ownerFeatures: ['remote-connect'] },
{ depName: 'notify', ownerFeatures: ['file-watch'] },
{ depName: 'oxc', ownerFeatures: ['canvas-runtime'] },
{ depName: 'qrcode', ownerFeatures: ['remote-connect'] },
{ depName: 'rand', ownerFeatures: ['mcp', 'remote-connect', 'remote-ssh-concrete'] },
{ depName: 'reqwest', ownerFeatures: ['announcement', 'browser-control', 'debug-log', 'mcp', 'miniapp-runtime', 'remote-connect', 'review-platform', 'web-tools'] },
Expand All @@ -83,16 +84,16 @@ export const optionalDependencyFeatureOwnerRules = [
{ depName: 'rustls', ownerFeatures: ['remote-connect'] },
{ depName: 'rustls-native-certs', ownerFeatures: ['remote-connect'] },
{ depName: 'schannel', ownerFeatures: ['remote-connect'] },
{ depName: 'sha2', ownerFeatures: ['remote-connect', 'remote-ssh'] },
{ depName: 'sha2', ownerFeatures: ['canvas-runtime', 'remote-connect', 'remote-ssh'] },
{ depName: 'shellexpand', ownerFeatures: ['remote-ssh-concrete'] },
{ depName: 'sse-stream', ownerFeatures: ['mcp'] },
{ depName: 'ssh_config', ownerFeatures: ['remote-ssh-concrete', 'ssh_config'] },
{ depName: 'terminal-core', ownerFeatures: ['remote-ssh-concrete'] },
{ depName: 'thiserror', ownerFeatures: ['browser-control', 'git', 'remote-ssh-concrete', 'review-platform', 'web-tools', 'workspace-search'] },
{ depName: 'tokio-tungstenite', ownerFeatures: ['remote-connect'] },
{ depName: 'tokio-util', ownerFeatures: ['remote-ssh'] },
{ depName: 'urlencoding', ownerFeatures: ['remote-connect'] },
{ depName: 'uuid', ownerFeatures: ['miniapp-runtime', 'remote-connect', 'remote-ssh-concrete'] },
{ depName: 'urlencoding', ownerFeatures: ['canvas-runtime', 'remote-connect'] },
{ depName: 'uuid', ownerFeatures: ['canvas-runtime', 'miniapp-runtime', 'remote-connect', 'remote-ssh-concrete'] },
{ depName: 'which', ownerFeatures: ['miniapp-runtime', 'remote-connect', 'workspace-search'] },
{ depName: 'x25519-dalek', ownerFeatures: ['remote-connect'] },
],
Expand Down Expand Up @@ -161,6 +162,7 @@ export const ownerCrateFeatureAssemblyRules = [
'computer-use',
'image-analysis',
'miniapp',
'canvas',
'agent-control',
],
},
Expand All @@ -170,6 +172,7 @@ export const ownerCrateFeatureAssemblyRules = [
requiredProductFullFeatures: [
'announcement',
'browser-control',
'canvas-runtime',
'debug-log',
'deep-research',
'file-watch',
Expand Down
2 changes: 2 additions & 0 deletions scripts/core-boundaries/self-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3014,6 +3014,8 @@ export function runManifestParserSelfTest({
'bitfun-product-domains = \\{ path = "\\.\\.\\/\\.\\.\\/contracts\\/product-domains", default-features = false, optional = true \\}',
'dep:bitfun-ai-adapters',
'ai-adapter-runtime',
'canvas-runtime',
'bitfun-services-integrations\\/canvas-runtime',
'bitfun-services-integrations\\/function-agents',
'bitfun-services-integrations\\/miniapp-runtime',
'dep:bitfun-product-capabilities',
Expand Down
14 changes: 13 additions & 1 deletion scripts/theme-color-governance-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"max": 0
},
"colorDomainContracts.registeredUnique": {
"max": 13
"max": 14
},
"colorDomainContracts.missingRegisteredUnique": {
"max": 0
Expand Down Expand Up @@ -179,6 +179,12 @@
"colorDomainNearPairs.generatedWidget.nearTotal": {
"max": 0
},
"colorDomainNearPairs.bitfunCanvas.indistinguishableTotal": {
"max": 0
},
"colorDomainNearPairs.bitfunCanvas.nearTotal": {
"max": 0
},
"colorDomainNearPairs.boundaryFallback.indistinguishableTotal": {
"max": 0
},
Expand Down Expand Up @@ -257,6 +263,12 @@
"colorDomainScopes.generatedWidget.uniqueColors": {
"max": 0
},
"colorDomainScopes.bitfunCanvas.occurrences": {
"max": 0
},
"colorDomainScopes.bitfunCanvas.uniqueColors": {
"max": 0
},
"colorDomainScopes.boundaryFallback.occurrences": {
"max": 18
},
Expand Down
17 changes: 17 additions & 0 deletions scripts/theme-css-var-contract.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const CONTRACT_VAR_DEFINITION_PATH_PARTS = [
'component-library/styles',
'infrastructure/theme',
'src/mobile-web/src/theme/presets',
'tools/bitfun-canvas/runtime/styles',
'tools/generative-widget/themePayload.ts',
];

Expand Down Expand Up @@ -68,6 +69,11 @@ export const COLOR_DOMAIN_RULES = [
label: 'Generated widget',
pathParts: ['tools/generative-widget'],
},
{
key: 'bitfunCanvas',
label: 'BitFun Canvas',
pathParts: ['tools/bitfun-canvas'],
},
{
key: 'boundaryFallback',
label: 'Boundary fallback',
Expand Down Expand Up @@ -157,6 +163,12 @@ export const COLOR_DOMAIN_CONTRACTS = [
reason: 'Generated widgets run in an isolated iframe boundary and need an explicit payload instead of scraping host CSS variables.',
mergePolicy: 'Keep payload variables canonical; keep legacy aliases in iframe fallback until widget consumers no longer read them.',
},
{
key: 'bitfunCanvas',
owner: 'src/web-ui/src/tools/bitfun-canvas',
reason: 'BitFun Canvas renders generated TSX inside a dedicated iframe runtime with an SDK palette that must stay isolated from app chrome tokens.',
mergePolicy: 'Keep Canvas iframe and SDK colors in the Canvas runtime contract; promote only reusable host chrome roles to shared app tokens.',
},
{
key: 'boundaryFallback',
owner: 'src/web-ui/src/shared/theme/themeBoundaryFallbacks.ts',
Expand Down Expand Up @@ -292,6 +304,11 @@ export const SURFACE_TOKEN_RENAME_CONTRACTS = [
];

export const DYNAMIC_VAR_FAMILY_CONTRACTS = [
{
prefix: '--bitfun-canvas-',
owner: 'src/web-ui/src/tools/bitfun-canvas/runtime/canvasRuntimeInstaller.ts; src/web-ui/src/tools/bitfun-canvas/runtime/styles/canvas-runtime.scss',
reason: 'BitFun Canvas iframe runtime receives host theme values through a scoped CSS variable family that must stay isolated from app root tokens.',
},
{
prefix: '--blur-',
owner: 'src/web-ui/src/infrastructure/theme/core/ThemeService.ts',
Expand Down
2 changes: 2 additions & 0 deletions src/apps/desktop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ serde_json = { workspace = true }
[dependencies]
# Internal crates
bitfun-core = { path = "../../crates/assembly/core", default-features = false, features = ["product-full"] }
bitfun-product-domains = { path = "../../crates/contracts/product-domains", default-features = false }
bitfun-services-integrations = { path = "../../crates/services/services-integrations", default-features = false, features = ["canvas-runtime"] }
bitfun-agent-tools = { path = "../../crates/execution/tool-contracts" }
bitfun-transport = { path = "../../crates/adapters/transport", features = ["tauri-adapter"] }
bitfun-webdriver = { path = "../../crates/adapters/webdriver" }
Expand Down
Loading
Loading