mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-05 21:39:54 +02:00
Follow-ups on the onboarding flow shipped in #1411. Pin state synchronization: - ImportStarterContent now publishes pin:created after commit so the sidebar refreshes without a hard reload (previously the pins landed in the DB but no event was fired). - ReorderPins publishes pin:reordered, keeping order in sync across web + desktop sessions. - StarterContentPrompt.onImport invalidates queries locally, mirroring the useCreatePin / useDeletePin / useReorderPins onSettled pattern, so the originating session's refresh doesn't depend on the WS round-trip (WS is the signal for OTHER sessions). - ImportStarterContent rejects malformed workspace_id up front with 400 instead of falling through to a misleading 403. Welcome step layout: - Switch the two-column hero from CSS Grid to a flex row. Both columns share the container's full height via items-stretch + justify-center, so the bg-muted/40 backdrop fills edge-to-edge on tall viewports and left/right content stays vertically centred. Desktop runtime bootstrap state: - New DesktopRuntimesPage wrapper subscribes to window.daemonAPI and forwards a `bootstrapping` prop to RuntimeList. While the bundled daemon is booting, the empty state renders "Starting local runtime…" instead of the misleading "Run multica daemon start" hint. Web leaves the prop undefined — behaviour unchanged. Small polish: - CLI install dialog caps at 85vh with an internal scroll so the Connect button stays reachable when multiple runtimes are registered. - Drop the env-aware CLI setup command; onboarding always targets cloud, so `multica setup` is enough — no need to thread apiUrl / appUrl through the dialog. Developer tooling: - pnpm dev:desktop:staging — parallel dev command that loads .env.staging (copilothub backend) via `electron-vite --mode staging`, so switching between local and staging no longer requires hand-editing env files. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
75 lines
2.6 KiB
JSON
75 lines
2.6 KiB
JSON
{
|
|
"name": "@multica/desktop",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Multica Desktop — native desktop client for the Multica platform.",
|
|
"homepage": "https://multica.ai",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/multica-ai/multica.git",
|
|
"directory": "apps/desktop"
|
|
},
|
|
"author": {
|
|
"name": "Multica",
|
|
"email": "support@multica.ai"
|
|
},
|
|
"license": "UNLICENSED",
|
|
"main": "./out/main/index.js",
|
|
"scripts": {
|
|
"bundle-cli": "node scripts/bundle-cli.mjs",
|
|
"brand-dev-electron": "node scripts/brand-dev-electron.mjs",
|
|
"dev": "pnpm run bundle-cli && pnpm run brand-dev-electron && electron-vite dev",
|
|
"dev:staging": "pnpm run bundle-cli && pnpm run brand-dev-electron && electron-vite dev --mode staging",
|
|
"build": "pnpm run bundle-cli && electron-vite build",
|
|
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
|
|
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
|
|
"typecheck": "pnpm run typecheck:node && pnpm run typecheck:web",
|
|
"preview": "electron-vite preview",
|
|
"package": "node scripts/package.mjs",
|
|
"package:all": "node scripts/package.mjs --all-platforms --publish never",
|
|
"lint": "eslint .",
|
|
"test": "vitest run",
|
|
"postinstall": "electron-builder install-app-deps"
|
|
},
|
|
"dependencies": {
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@electron-toolkit/preload": "^3.0.2",
|
|
"@electron-toolkit/utils": "^4.0.0",
|
|
"@fontsource-variable/inter": "^5.2.5",
|
|
"@fontsource-variable/source-serif-4": "^5.2.9",
|
|
"@fontsource/geist-mono": "^5.2.7",
|
|
"@multica/core": "workspace:*",
|
|
"@multica/ui": "workspace:*",
|
|
"@multica/views": "workspace:*",
|
|
"electron-updater": "^6.8.3",
|
|
"fix-path": "^5.0.0",
|
|
"react-router-dom": "^7.6.0",
|
|
"shadcn": "^4.1.0",
|
|
"sonner": "^2.0.7",
|
|
"tw-animate-css": "^1.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@electron-toolkit/tsconfig": "^2.0.0",
|
|
"@multica/tsconfig": "workspace:*",
|
|
"@tailwindcss/vite": "^4",
|
|
"@testing-library/jest-dom": "catalog:",
|
|
"@testing-library/react": "catalog:",
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"@vitejs/plugin-react": "^5.1.1",
|
|
"electron": "^39.2.6",
|
|
"electron-builder": "^26.0.12",
|
|
"electron-vite": "^5.0.0",
|
|
"jsdom": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"tailwindcss": "^4",
|
|
"typescript": "catalog:",
|
|
"vitest": "catalog:"
|
|
}
|
|
}
|