Skip to content

Commit a2adafe

Browse files
committed
Merge remote-tracking branch 'origin/main' into okcode/multi-language-support
# Conflicts: # apps/web/src/hooks/useTheme.ts
2 parents 18c0bc4 + e32e0f3 commit a2adafe

75 files changed

Lines changed: 2391 additions & 302 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.

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ jobs:
208208
printf '%s' "$APPLE_API_KEY" > "$key_path"
209209
export APPLE_API_KEY="$key_path"
210210
echo "macOS signing + notarization enabled."
211-
args+=(--signed)
211+
args+=(--signed --require-signed)
212212
elif [[ "${{ matrix.platform }}" == "win" ]]; then
213213
if has_all \
214214
"$AZURE_TENANT_ID" \

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- [x] Projects should be sorted by latest thread update
77
- [x] Submitting new messages should scroll to bottom — [#13](https://github.com/OpenKnots/okcode/issues/13)
88
- [ ] Thread archiving — [#10](https://github.com/OpenKnots/okcode/issues/10)
9-
- [ ] New projects should go on top — [#11](https://github.com/OpenKnots/okcode/issues/11)
9+
- [x] New projects should go on top — [#11](https://github.com/OpenKnots/okcode/issues/11)
1010

1111
## Bigger things
1212

apps/desktop/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@okcode/desktop",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"private": true,
55
"main": "dist-electron/main.js",
66
"scripts": {
@@ -11,7 +11,8 @@
1111
"start": "bun run scripts/start-electron.mjs",
1212
"typecheck": "tsc --noEmit",
1313
"test": "vitest run --passWithNoTests",
14-
"smoke-test": "node scripts/smoke-test.mjs"
14+
"smoke-test": "node scripts/smoke-test.mjs",
15+
"release-smoke": "node ../../scripts/release-smoke.ts"
1516
},
1617
"dependencies": {
1718
"effect": "catalog:",

apps/desktop/scripts/smoke-test.mjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { spawn } from "node:child_process";
2+
import { createRequire } from "node:module";
23
import { dirname, resolve } from "node:path";
34
import { fileURLToPath } from "node:url";
45

56
const __dirname = dirname(fileURLToPath(import.meta.url));
67
const desktopDir = resolve(__dirname, "..");
7-
const electronBin = resolve(desktopDir, "node_modules/.bin/electron");
88
const mainJs = resolve(desktopDir, "dist-electron/main.js");
9+
const require = createRequire(import.meta.url);
10+
const electronBin = require("electron");
911

1012
console.log("\nLaunching Electron smoke test...");
1113

@@ -26,6 +28,13 @@ child.stderr.on("data", (chunk) => {
2628
output += chunk.toString();
2729
});
2830

31+
child.on("error", (error) => {
32+
clearTimeout(timeout);
33+
console.error("\nDesktop smoke test failed to launch Electron:");
34+
console.error(error);
35+
process.exit(1);
36+
});
37+
2938
const timeout = setTimeout(() => {
3039
child.kill();
3140
}, 8_000);

apps/desktop/turbo.jsonc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@
2020
"cache": false,
2121
"outputs": [],
2222
},
23+
"release-smoke": {
24+
"cache": false,
25+
"outputs": [],
26+
},
2327
},
2428
}

apps/marketing/turbo.jsonc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"preview": {
6+
"dependsOn": ["build"],
7+
"cache": false,
8+
"persistent": true,
9+
},
10+
},
11+
}

apps/server/integration/OrchestrationEngineHarness.integration.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ function runGit(cwd: string, args: ReadonlyArray<string>) {
7474
cwd,
7575
stdio: ["ignore", "pipe", "pipe"],
7676
encoding: "utf8",
77+
env: {
78+
...process.env,
79+
GIT_CONFIG_COUNT: "1",
80+
GIT_CONFIG_KEY_0: "commit.gpgsign",
81+
GIT_CONFIG_VALUE_0: "false",
82+
},
7783
});
7884
}
7985

apps/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "okcodes",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

apps/server/src/checkpointing/Layers/CheckpointDiffQuery.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ const make = Effect.gen(function* () {
133133
fromCheckpointRef,
134134
toCheckpointRef,
135135
fallbackFromToHead: false,
136+
...(input.relativePath ? { relativePath: input.relativePath } : {}),
137+
...(input.contextMode ? { contextMode: input.contextMode } : {}),
136138
});
137139

138140
const turnDiff: OrchestrationGetTurnDiffResultType = {
@@ -158,6 +160,8 @@ const make = Effect.gen(function* () {
158160
threadId: input.threadId,
159161
fromTurnCount: 0,
160162
toTurnCount: input.toTurnCount,
163+
relativePath: input.relativePath,
164+
contextMode: input.contextMode,
161165
}).pipe(Effect.map((result): OrchestrationGetFullThreadDiffResult => result));
162166

163167
return {

apps/server/src/checkpointing/Layers/CheckpointStore.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,21 @@ const makeCheckpointStore = Effect.gen(function* () {
240240
});
241241
}
242242

243+
const args = [
244+
"diff",
245+
"--patch",
246+
"--minimal",
247+
"--no-color",
248+
...(input.contextMode === "full" ? ["--unified=999999"] : []),
249+
fromCommitOid,
250+
toCommitOid,
251+
...(input.relativePath ? ["--", input.relativePath] : []),
252+
];
253+
243254
const result = yield* git.execute({
244255
operation,
245256
cwd: input.cwd,
246-
args: ["diff", "--patch", "--minimal", "--no-color", fromCommitOid, toCommitOid],
257+
args,
247258
});
248259

249260
return result.stdout;

0 commit comments

Comments
 (0)