Skip to content

Commit b5e5f65

Browse files
committed
fix: restore ci pipeline
1 parent fa7f026 commit b5e5f65

3 files changed

Lines changed: 29 additions & 17 deletions

File tree

packages/web/src/styles/components.css

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6890,9 +6890,9 @@ textarea.input {
68906890
align-items: center;
68916891
justify-content: flex-end;
68926892
flex-wrap: wrap;
6893-
gap: 6px;
6893+
gap: var(--gap-tight);
68946894
margin-left: auto;
6895-
padding: 4px;
6895+
padding: var(--sp-1);
68966896
border-radius: var(--radius-lg);
68976897
background: color-mix(in srgb, var(--bg-hover) 72%, var(--bg-surface) 28%);
68986898
}
@@ -6924,12 +6924,14 @@ textarea.input {
69246924

69256925
.image-diff-preview__meta {
69266926
display: flex;
6927-
gap: 12px;
6927+
gap: var(--sp-3);
69286928
align-items: center;
6929-
padding: 10px 14px;
6929+
padding: calc(var(--sp-2) + var(--gap-compact)) calc(var(--sp-3) + var(--gap-compact));
69306930
border-bottom: 1px solid var(--border);
69316931
color: var(--text-tertiary);
6932-
font-size: 11px;
6932+
font-size: var(--type-body-6-size);
6933+
line-height: var(--type-body-6-line-height);
6934+
font-weight: var(--type-body-6-weight);
69336935
font-family: var(--font-mono);
69346936
}
69356937

@@ -6952,11 +6954,11 @@ textarea.input {
69526954
}
69536955

69546956
.image-diff-preview__pane-header {
6955-
padding: 8px 14px;
6957+
padding: var(--sp-2) calc(var(--sp-3) + var(--gap-compact));
69566958
color: var(--text-secondary);
6957-
font-size: var(--type-meta-size);
6958-
line-height: var(--type-meta-line-height);
6959-
font-weight: var(--type-meta-weight);
6959+
font-size: var(--type-body-6-size);
6960+
line-height: var(--type-body-6-line-height);
6961+
font-weight: var(--type-body-6-weight);
69606962
}
69616963

69626964
.image-diff-preview__canvas {
@@ -6965,9 +6967,9 @@ textarea.input {
69656967
display: flex;
69666968
align-items: center;
69676969
justify-content: center;
6968-
padding: 16px;
6970+
padding: var(--sp-4);
69696971
overflow: auto;
6970-
background-color: rgba(0, 0, 0, 0.18);
6972+
background-color: color-mix(in srgb, var(--bg-terminal) 90%, var(--bg-page) 10%);
69716973
background-image:
69726974
linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
69736975
linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
@@ -6985,7 +6987,7 @@ textarea.input {
69856987
max-width: 100%;
69866988
max-height: 100%;
69876989
object-fit: contain;
6988-
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
6990+
box-shadow: var(--shadow-md);
69896991
}
69906992

69916993
.code-file-path {
@@ -8332,7 +8334,7 @@ textarea.input {
83328334

83338335
.topbar-tab-content {
83348336
position: relative;
8335-
z-index: 1;
8337+
z-index: var(--z-inline);
83368338
display: inline-flex;
83378339
align-items: center;
83388340
gap: var(--gap-tight);
@@ -8347,7 +8349,7 @@ textarea.input {
83478349

83488350
.topbar-tab-name {
83498351
position: relative;
8350-
z-index: 1;
8352+
z-index: var(--z-inline);
83518353
flex: 1 1 auto;
83528354
min-width: 0;
83538355
overflow: hidden;
@@ -8357,7 +8359,7 @@ textarea.input {
83578359

83588360
.topbar-unread {
83598361
position: relative;
8360-
z-index: 1;
8362+
z-index: var(--z-inline);
83618363
flex: 0 0 auto;
83628364
}
83638365

scripts/build-cli.test.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { mkdir, mkdtemp, readdir, readFile, writeFile } from "node:fs/promises";
22
import { tmpdir } from "node:os";
3-
import { join } from "node:path";
3+
import { join, resolve } from "node:path";
44
import { describe, expect, it } from "vitest";
55
import { prepareCliOutputDirs } from "./build-cli.js";
6-
import { CLI_DIR, getProductionDeps } from "./shared/index.js";
6+
import { CLI_DIR, CORE_DIR, createCliBuildOptions, getProductionDeps } from "./shared/index.js";
77

88
describe("build-cli", () => {
99
it("removes stale CLI dist files before recreating output directories", async () => {
@@ -45,4 +45,13 @@ describe("build-cli", () => {
4545

4646
expect(productionDeps.filter((dep) => !declaredDeps.has(dep))).toEqual([]);
4747
});
48+
49+
it("maps core subpath exports to source files for the CLI bundle", async () => {
50+
const buildOptions = await createCliBuildOptions("esm");
51+
52+
expect(buildOptions.alias).toMatchObject({
53+
"@coder-studio/core/runtime": resolve(CORE_DIR, "src/runtime.ts"),
54+
"@coder-studio/core/state-paths": resolve(CORE_DIR, "src/state-paths.ts"),
55+
});
56+
});
4857
});

scripts/shared/esbuild.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export async function createCliBuildOptions(format: "esm" | "cjs"): Promise<Buil
7474
alias: {
7575
"@coder-studio/server": resolve(SERVER_DIR, "src/index.ts"),
7676
"@coder-studio/core/runtime": resolve(CORE_DIR, "src/runtime.ts"),
77+
"@coder-studio/core/state-paths": resolve(CORE_DIR, "src/state-paths.ts"),
7778
"@coder-studio/core": resolve(CORE_DIR, "src/index.ts"),
7879
"@coder-studio/providers": resolve(PROVIDERS_DIR, "src/index.ts"),
7980
"@coder-studio/utils": resolve(UTILS_DIR, "src/index.ts"),

0 commit comments

Comments
 (0)