minecodex 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +149 -0
- package/apps/dashboard/DESIGN.md +45 -0
- package/features/images/DESIGN.md +71 -0
- package/features/images/README.md +2 -0
- package/features/images/codex-feature.json +2 -1
- package/features/images/src/adapters/codex/cloud-import.mjs +52 -0
- package/features/images/src/adapters/codex/image-prompt.mjs +22 -0
- package/features/images/src/adapters/codex/library-api.mjs +55 -0
- package/features/images/src/adapters/codex/library-viewer.mjs +18 -0
- package/features/images/src/adapters/codex/prompt-resolver-source.mjs +8 -0
- package/features/images/src/backend/cloud-library.mjs +10 -0
- package/features/images/src/domain/library-prompt.mjs +7 -0
- package/features/images/src/library-prompt-page.mjs +7 -75
- package/features/images/src/library-prompt-source.mjs +10 -0
- package/features/images/web/app.js +9 -9
- package/features/images/web/styles.css +219 -219
- package/features/model-slider/DESIGN.md +34 -0
- package/features/model-slider/src/adapters/codex/controller.mjs +93 -0
- package/features/model-slider/src/domain/model-rules.mjs +143 -0
- package/features/model-slider/src/frontend/install.mjs +2110 -0
- package/features/model-slider/src/injection-source.mjs +10 -0
- package/features/notes/DESIGN.md +13 -15
- package/features/notes/README.md +7 -1
- package/features/notes/assets/icons/book-open-nav-fill.svg +1 -0
- package/features/notes/codex-feature.json +5 -1
- package/features/notes/src/{default-prompts.mjs → backend/default-prompts.mjs} +1 -1
- package/features/notes/src/{product.mjs → backend/product.mjs} +1 -1
- package/features/notes/src/{quick-prompts-server.mjs → backend/quick-prompts-server.mjs} +2 -2
- package/features/notes/src/{quick-prompts-page.mjs → frontend/entry.mjs} +64 -257
- package/features/notes/src/frontend/icons.json +13 -0
- package/features/notes/src/frontend/styles.css +110 -0
- package/features/notes/src/main.mjs +2 -2
- package/features/notes/vendor/phosphor-LICENSE +21 -0
- package/features/session-status/DESIGN.md +10 -8
- package/features/session-status/README.md +4 -0
- package/features/session-status/codex-feature.json +1 -1
- package/features/session-status/src/adapters/codex/context-usage.mjs +46 -0
- package/features/session-status/src/adapters/codex/session-log.mjs +81 -0
- package/features/session-status/src/adapters/codex/session-reader.mjs +106 -0
- package/features/session-status/src/domain/session-stats.mjs +141 -0
- package/features/session-status/src/injection-source.mjs +6 -0
- package/features/session-status/src/session-status.mjs +42 -102
- package/features/sidebar-focus/DESIGN.md +6 -5
- package/features/sidebar-focus/codex-feature.json +2 -1
- package/features/sidebar-focus/src/adapters/codex/renderer.mjs +28 -0
- package/features/sidebar-focus/src/injection-source.mjs +6 -0
- package/features/sidebar-focus/src/sidebar-focus.mjs +19 -66
- package/features/sites/DESIGN.md +60 -0
- package/features/sites/README.md +27 -0
- package/features/sites/codex-feature.json +28 -0
- package/features/sites/src/adapters/codex/catalog.mjs +26 -0
- package/features/sites/src/adapters/codex/renderer.mjs +83 -0
- package/features/sites/src/backend/discovery.mjs +73 -0
- package/features/sites/src/backend/project-sites.mjs +34 -0
- package/features/sites/src/backend/site-launcher.mjs +54 -0
- package/features/sites/src/backend/sites-preview.mjs +53 -0
- package/features/sites/src/backend/sites-service.mjs +162 -0
- package/features/sites/src/domain/site.mjs +40 -0
- package/features/sites/src/frontend/entry.mjs +383 -0
- package/features/sites/src/frontend/icons.json +12 -0
- package/features/sites/src/frontend/styles.css +72 -0
- package/features/sites/src/injection-source.mjs +7 -0
- package/features/sites/vendor/lucide-LICENSE +35 -0
- package/features/unread-inbox/DESIGN.md +6 -2
- package/features/unread-inbox/codex-feature.json +2 -1
- package/features/unread-inbox/src/adapters/codex/renderer.mjs +66 -0
- package/features/unread-inbox/src/injection-source.mjs +6 -0
- package/features/unread-inbox/src/unread-inbox.mjs +34 -89
- package/features/usage-meter/DESIGN.md +9 -9
- package/features/usage-meter/README.md +2 -1
- package/features/usage-meter/codex-feature.json +3 -3
- package/features/usage-meter/src/adapters/codex/renderer.mjs +61 -0
- package/features/usage-meter/src/injection-source.mjs +6 -0
- package/features/usage-meter/src/usage-meter.mjs +27 -66
- package/package.json +17 -4
- package/packages/cli/src/config.mjs +2 -1
- package/packages/codex-adapter/README.md +15 -0
- package/packages/codex-adapter/package.json +1 -0
- package/packages/codex-adapter/src/renderer/environment.mjs +53 -0
- package/packages/runtime-host/README.md +27 -0
- package/packages/runtime-host/src/codex-injection.mjs +32 -2393
- package/packages/runtime-host/src/codex-runtime.mjs +21 -3
- package/packages/runtime-host/src/feature-registry.mjs +28 -3
- package/packages/ui/DESIGN.md +31 -0
- package/packages/ui/package.json +8 -0
- package/packages/ui/src/components/button.mjs +21 -0
- package/packages/ui/src/components/composer-menu.mjs +18 -0
- package/packages/ui/src/components/dialog.mjs +55 -0
- package/packages/ui/src/components/navigation-rail.mjs +77 -0
- package/packages/ui/src/components/page.mjs +8 -0
- package/packages/ui/src/components/tooltip.mjs +96 -0
- package/packages/ui/src/foundation/layers.mjs +14 -0
- package/packages/ui/src/foundation/surfaces.mjs +34 -0
- package/packages/ui/src/install.mjs +22 -0
- package/packages/ui/src/native/navigation-rail.mjs +33 -0
- package/packages/ui/src/native/theme.mjs +35 -0
- package/packages/{runtime-host/src/codex-design-contract.mjs → ui/src/native/tokens.mjs} +67 -24
- package/packages/runtime-host/src/cloud-images.mjs +0 -123
- package/packages/runtime-host/src/feature-tooltips.mjs +0 -65
- package/packages/runtime-host/src/session-status-reader.mjs +0 -340
- /package/features/notes/src/{prompt-schema.mjs → backend/prompt-schema.mjs} +0 -0
|
@@ -141,14 +141,14 @@ function applyHostTheme(payload) {
|
|
|
141
141
|
appliedHostTokens.add(name);
|
|
142
142
|
}
|
|
143
143
|
const editorTokens = [
|
|
144
|
-
"--color-surface-tertiary", "--color-surface-elevated-secondary",
|
|
145
|
-
"--color-border-subtle", "--color-background-primary-ghost-hover",
|
|
146
|
-
"--color-chart-blue", "--color-text-inverse",
|
|
147
|
-
"--color-token-main-surface-primary", "--color-token-input-foreground",
|
|
148
|
-
"--color-text-foreground", "--color-text-foreground-tertiary", "--color-text-on-accent",
|
|
149
|
-
"--color-border", "--color-border-focus", "--color-token-list-hover-background",
|
|
150
|
-
"--color-text-accent", "--font-sans-default", "--font-weight-normal", "--text-sm", "--text-sm--line-height",
|
|
151
|
-
"--radius-md", "--radius-xl", "--shadow-md", "--shadow-xl",
|
|
144
|
+
"--mcx-color-surface-tertiary", "--mcx-color-surface-elevated-secondary",
|
|
145
|
+
"--mcx-color-border-subtle", "--mcx-color-background-primary-ghost-hover",
|
|
146
|
+
"--mcx-color-chart-blue", "--mcx-color-text-inverse",
|
|
147
|
+
"--mcx-color-token-main-surface-primary", "--mcx-color-token-input-foreground",
|
|
148
|
+
"--mcx-color-text-foreground", "--mcx-color-text-foreground-tertiary", "--mcx-color-text-on-accent",
|
|
149
|
+
"--mcx-color-border", "--mcx-color-border-focus", "--mcx-color-token-list-hover-background",
|
|
150
|
+
"--mcx-color-text-accent", "--mcx-font-sans-default", "--mcx-font-weight-normal", "--mcx-text-sm", "--mcx-text-sm--line-height",
|
|
151
|
+
"--mcx-radius-md", "--mcx-radius-xl", "--mcx-shadow-md", "--mcx-shadow-xl",
|
|
152
152
|
];
|
|
153
153
|
editorControls.hidden = !editorTokens.every((name) => appliedHostTokens.has(name));
|
|
154
154
|
const missingTokens = editorTokens.filter((name) => !appliedHostTokens.has(name));
|
|
@@ -1531,7 +1531,7 @@ function repaintMask() {
|
|
|
1531
1531
|
if (!context || !drawerImage.naturalWidth) return;
|
|
1532
1532
|
editMask.width = drawerImage.naturalWidth; editMask.height = drawerImage.naturalHeight;
|
|
1533
1533
|
context.clearRect(0, 0, editMask.width, editMask.height);
|
|
1534
|
-
context.strokeStyle = context.fillStyle = getComputedStyle(root).getPropertyValue("--color-text-accent");
|
|
1534
|
+
context.strokeStyle = context.fillStyle = getComputedStyle(root).getPropertyValue("--mcx-color-text-accent");
|
|
1535
1535
|
context.lineCap = context.lineJoin = "round";
|
|
1536
1536
|
for (const stroke of editStrokes) {
|
|
1537
1537
|
context.lineWidth = Math.min(editMask.width, editMask.height) * stroke.size / 250;
|