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
419 changes: 227 additions & 192 deletions bun.lock

Large diffs are not rendered by default.

57 changes: 28 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,47 +22,46 @@
"workos": "dist/workos"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "~0.3.0",
"@anthropic-ai/sdk": "^0.124.0",
"@anthropic-ai/claude-agent-sdk": "~0.3.295",
"@anthropic-ai/sdk": "^0.133.0",
"@inkjs/ui": "^2.0.0",
"@inquirer/prompts": "^8.5.2",
"@napi-rs/keyring": "^1.2.0",
"@workos-inc/node": "^10.13.0",
"@workos/emulate": "^0.13.1",
"@inquirer/prompts": "^8.7.3",
"@napi-rs/keyring": "^2.1.0",
"@workos-inc/node": "^11.0.0",
"@workos/emulate": "^0.14.0",
"@workos/migrations": "^2.6.0",
"@workos/openapi-spec": "^0.100.0",
"@workos/openapi-spec": "^0.123.0",
"@workos/skills": "0.7.3",
"chalk": "^5.6.2",
"diff": "^8.0.3",
"chalk": "^6.0.1",
"diff": "^9.0.0",
"fast-glob": "^3.3.3",
"ink": "^6.8.0",
"ink": "^8.0.0",
"jsonc-parser": "^3.3.1",
"open": "^11.0.0",
"open": "^11.0.4",
"react": "^19.2.4",
"semver": "^7.7.4",
"string-width": "^8.2.2",
"uuid": "^13.0.0",
"xstate": "^5.28.0",
"yaml": "^2.8.2",
"yargs": "^18.0.0",
"zod": "^4.3.6"
"string-width": "^8.3.0",
"uuid": "^14.0.2",
"xstate": "^5.33.2",
"yaml": "^2.9.1",
"yargs": "^18.2.0",
"zod": "^4.6.5"
},
"devDependencies": {
"@statelyai/inspect": "^0.7.0",
"@types/node": "~22.20.0",
"@types/opn": "5.5.0",
"@types/node": "~26.6.5",
"@types/react": "^19.2.14",
"@types/semver": "^7.7.1",
"@types/semver": "^7.8.0",
"@types/yargs": "^17.0.35",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/ui": "^4.0.18",
"dotenv": "^17.3.1",
"oxfmt": "^0.67.0",
"oxlint": "^1.50.0",
"p-limit": "^7.3.0",
"react-devtools-core": "^7.0.1",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
"@vitest/coverage-v8": "^5.0.3",
"@vitest/ui": "^5.0.3",
"dotenv": "^18.0.7",
"oxfmt": "^0.72.0",
"oxlint": "^1.87.0",
"p-limit": "^7.3.3",
"react-devtools-core": "^8.0.0",
"typescript": "^7.0.2",
"vitest": "^5.0.3"
},
"engines": {
"bun": ">=1.3.0"
Expand Down
6 changes: 5 additions & 1 deletion src/lib/dashboard-graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@ export async function dashboardGraphqlUpload<T>(
form.append('operations', JSON.stringify({ query, variables }));
form.append('map', JSON.stringify(map));
options.files.forEach((file, index) => {
form.append(String(index), new Blob([file.bytes], { type: file.contentType }), file.filename);
form.append(
String(index),
new Blob([file.bytes as Uint8Array<ArrayBuffer>], { type: file.contentType }),
file.filename,
);
});

// No explicit Content-Type: `fetch` derives it from the FormData so the
Expand Down
6 changes: 3 additions & 3 deletions src/tui/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*/

import { useEffect, useState } from 'react';
import { Box, Text, useInput } from 'ink';
import { Box, Text, useInput, useWindowSize } from 'ink';
import type { RunModel } from './model/run-model.js';
import { useRunSnapshot, useTerminalSize } from './hooks.js';
import { useRunSnapshot } from './hooks.js';
import { colors, MIN_COLUMNS, MIN_ROWS, SIDE_BY_SIDE_MIN_COLUMNS, SIDE_BY_SIDE_MIN_ROWS } from './theme.js';
import { COMPACT_HEADER_ROWS, FULL_HEADER_ROWS, Header } from './components/Header.js';
import { ProgressLine, TaskList } from './components/TaskList.js';
Expand Down Expand Up @@ -43,7 +43,7 @@ function keyFor(prompt: object): number {

export function InstallerApp({ model, answer, interrupt, projectName, tipIntervalMs = 12_000 }: InstallerAppProps) {
const snapshot = useRunSnapshot(model);
const [columns, rows] = useTerminalSize();
const { columns, rows } = useWindowSize();
const [tipIndex, setTipIndex] = useState(0);

useEffect(() => {
Expand Down
15 changes: 0 additions & 15 deletions src/tui/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
import { useEffect, useState, useSyncExternalStore } from 'react';
import { useStdout } from 'ink';
import type { RunModel, RunSnapshot } from './model/run-model.js';
import { SPINNER_FRAMES } from './theme.js';

/** [columns, rows], updated on resize (Ink's useStdout doesn't re-render on resize). */
export function useTerminalSize(): [number, number] {
const { stdout } = useStdout();
const [size, setSize] = useState<[number, number]>(() => [stdout.columns || 80, stdout.rows || 24]);
useEffect(() => {
const onResize = () => setSize([stdout.columns || 80, stdout.rows || 24]);
stdout.on('resize', onResize);
return () => {
stdout.off('resize', onResize);
};
}, [stdout]);
return size;
}

export function useRunSnapshot(model: RunModel): RunSnapshot {
return useSyncExternalStore(model.subscribe, model.getSnapshot, model.getSnapshot);
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/bash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function executeSync(command: string): string {

export function execute(command: string): Promise<string> {
return new Promise((resolve, reject) => {
child_process.exec(command, (error, stdout, _) => {
child_process.exec(command, (error, stdout) => {
if (error) {
reject(error);
return;
Expand Down
2 changes: 1 addition & 1 deletion tests/evals/agent-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class AgentExecutor {

const agentRunConfig: AgentRunConfig = {
workingDirectory: this.workDir,
model: getConfig().model,
model: process.env.EVAL_MODEL ?? getConfig().model,
allowedTools: ['Skill', 'Read', 'Write', 'Edit', 'Bash', 'Glob', 'Grep', 'WebFetch'],
sdkEnv,
claudeExecutablePath: await ensureClaudeCodeExecutable(),
Expand Down
2 changes: 1 addition & 1 deletion tests/evals/versioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function captureVersionMetadata(): Promise<VersionMetadata> {
return {
skillVersions,
cliVersion: getVersion(),
modelVersion: getConfig().model,
modelVersion: process.env.EVAL_MODEL ?? getConfig().model,
};
}

Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/vanilla-js/conflicting-auth/styles.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
body {
font-family:
system-ui,
-apple-system,
sans-serif;
font-family: system-ui, -apple-system, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/vanilla-js/example-auth0/styles.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
body {
font-family:
system-ui,
-apple-system,
sans-serif;
font-family: system-ui, -apple-system, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/vanilla-js/example/styles.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
body {
font-family:
system-ui,
-apple-system,
sans-serif;
font-family: system-ui, -apple-system, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/vanilla-js/partial-install/styles.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
body {
font-family:
system-ui,
-apple-system,
sans-serif;
font-family: system-ui, -apple-system, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
Expand Down
Loading