Skip to content
Open
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
18 changes: 9 additions & 9 deletions lib/constants/claudeModels.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type ClaudeModelId =
| 'claude-opus-4-1-20250805'
| 'claude-opus-4-5-20251101'
| 'claude-sonnet-4-5-20250929'
| 'claude-haiku-4-5-20251001';

Expand All @@ -17,19 +17,19 @@ export interface ClaudeModelDefinition {

export const CLAUDE_MODEL_DEFINITIONS: ClaudeModelDefinition[] = [
{
id: 'claude-opus-4-1-20250805',
name: 'Claude Opus 4.1',
id: 'claude-opus-4-5-20251101',
name: 'Claude Opus 4.5',
description: 'Newest Opus release with the strongest reasoning skills',
supportsImages: true,
aliases: [
'claude-opus-4-1-20250805',
'claude-opus-4-1',
'claude-opus-4.1',
'claude-opus-4-5-20251101',
'claude-opus-4-5',
'claude-opus-4.5',
'claude-opus-4',
'claude-opus',
'opus-4-1-20250805',
'opus-4-1',
'opus-4.1',
'opus-4-5-20251101',
'opus-4-5',
'opus-4.5',
'opus-4',
'opus',
'claude-3-opus',
Expand Down
2 changes: 1 addition & 1 deletion lib/services/cli/claude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ export async function executeClaude(
const response = query({
prompt: instruction,
options: {
cwd: absoluteProjectPath, // Work only in project folder (protects Claudable root)
workingDirectory: absoluteProjectPath, // Work only in project folder (protects Claudable root)
additionalDirectories: [absoluteProjectPath],
model: resolvedModel,
resume: sessionId, // Resume previous session
Expand Down
2 changes: 1 addition & 1 deletion lib/services/cli/glm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ async function executeGLM(
const response = query({
prompt: promptWithContext,
options: {
cwd: repoPath,
workingDirectory: repoPath,
additionalDirectories: [repoPath],
model: normalizedModel,
resume: sessionId,
Expand Down
22 changes: 17 additions & 5 deletions lib/services/project-services.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
import { prisma } from '@/lib/db/client';
import type { ProjectServiceConnection } from '@prisma/client';

/** Deserialized service connection with parsed serviceData */
export interface DeserializedServiceConnection {
id: string;
projectId: string;
provider: string;
status: string;
serviceData: Record<string, unknown>;
createdAt: Date;
updatedAt: Date;
lastSyncAt: Date | null;
}

function serializeServiceData(data: Record<string, unknown>): string {
return JSON.stringify(data ?? {});
}

function deserializeServiceData(connection: ProjectServiceConnection) {
function deserializeServiceData(connection: ProjectServiceConnection): DeserializedServiceConnection {
try {
return {
...connection,
Expand All @@ -25,7 +37,7 @@ function deserializeServiceData(connection: ProjectServiceConnection) {
}
}

export async function listProjectServices(projectId: string) {
export async function listProjectServices(projectId: string): Promise<DeserializedServiceConnection[]> {
const connections = await prisma.projectServiceConnection.findMany({
where: { projectId },
orderBy: { createdAt: 'desc' },
Expand All @@ -34,7 +46,7 @@ export async function listProjectServices(projectId: string) {
return connections.map(deserializeServiceData);
}

export async function getProjectService(projectId: string, provider: string) {
export async function getProjectService(projectId: string, provider: string): Promise<DeserializedServiceConnection | null> {
const connection = await prisma.projectServiceConnection.findFirst({
where: { projectId, provider },
});
Expand All @@ -46,7 +58,7 @@ export async function upsertProjectServiceConnection(
projectId: string,
provider: string,
serviceData: Record<string, unknown>
) {
): Promise<DeserializedServiceConnection> {
const existing = await prisma.projectServiceConnection.findFirst({
where: { projectId, provider },
});
Expand Down Expand Up @@ -89,7 +101,7 @@ export async function updateProjectServiceData(
projectId: string,
provider: string,
patch: Record<string, unknown>
) {
): Promise<DeserializedServiceConnection> {
const existing = await prisma.projectServiceConnection.findFirst({
where: { projectId, provider },
});
Expand Down
86 changes: 82 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0",
"description": "AI-Powered Web App Builder - Build apps with natural language using Claude Code, Cursor, and more",
"private": true,
"main": "index.js",
"main": "electron/main.js",
"scripts": {
"dev": "node scripts/run-web.js",
"dev:web": "node scripts/run-web.js",
Expand All @@ -28,7 +28,7 @@
"postinstall": "npm run ensure:env"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.22",
"@anthropic-ai/claude-agent-sdk": "^0.1.58",
"@prisma/client": "^6.1.0",
"dotenv": "^16.4.5",
"framer-motion": "^11.11.17",
Expand Down