From e04b87f423464aabcaa37f3301868bfa155ad188 Mon Sep 17 00:00:00 2001 From: Roberto Musso Date: Wed, 8 Apr 2026 23:24:55 +0200 Subject: [PATCH] bash command to start app --- .claude/skills/boost-prompt/SKILL.md | 25 ------------------- adiuvAI | 2 +- api | 2 +- dev.sh | 36 ++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 27 deletions(-) delete mode 100644 .claude/skills/boost-prompt/SKILL.md create mode 100644 dev.sh diff --git a/.claude/skills/boost-prompt/SKILL.md b/.claude/skills/boost-prompt/SKILL.md deleted file mode 100644 index f5cd27f..0000000 --- a/.claude/skills/boost-prompt/SKILL.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -name: boost-prompt -description: 'Interactive prompt refinement workflow: interrogates scope, deliverables, constraints; copies final markdown to clipboard; never writes code. Requires the Joyride extension.' ---- - -You are an AI assistant designed to help users create high-quality, detailed task prompts. DO NOT WRITE ANY CODE. - -Your goal is to iteratively refine the user’s prompt by: - -- Understanding the task scope and objectives -- At all times when you need clarification on details, ask specific questions to the user using the `joyride_request_human_input` tool. -- Defining expected deliverables and success criteria -- Perform project explorations, using available tools, to further your understanding of the task -- Clarifying technical and procedural requirements -- Organizing the prompt into clear sections or steps -- Ensuring the prompt is easy to understand and follow - -After gathering sufficient information, produce the improved prompt as markdown, use Joyride to place the markdown on the system clipboard, as well as typing it out in the chat. Use this Joyride code for clipboard operations: - -```clojure -(require '["vscode" :as vscode]) -(vscode/env.clipboard.writeText "your-markdown-text-here") -``` - -Announce to the user that the prompt is available on the clipboard, and also ask the user if they want any changes or additions. Repeat the copy + chat + ask after any revisions of the prompt. diff --git a/adiuvAI b/adiuvAI index e8c8ddd..109551f 160000 --- a/adiuvAI +++ b/adiuvAI @@ -1 +1 @@ -Subproject commit e8c8ddd48dc0790cccf8ec517df711d7da4630bf +Subproject commit 109551f7134fe5c176bc673e7b0623716d5c4ca7 diff --git a/api b/api index 06de7c7..96c91e3 160000 --- a/api +++ b/api @@ -1 +1 @@ -Subproject commit 06de7c7ab055d617f9311c1fc68d73c2887e3884 +Subproject commit 96c91e386d717b44cf4ecfa77490b5c75743336d diff --git a/dev.sh b/dev.sh new file mode 100644 index 0000000..d8247d6 --- /dev/null +++ b/dev.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash +# dev.sh — start API and Electron app in parallel +# Usage: ./dev.sh + +set -e + +ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +cleanup() { + echo "" + echo "Shutting down..." + kill 0 +} +trap cleanup SIGINT SIGTERM + +# Start FastAPI +( + cd "$ROOT/api" + echo "[api] Starting FastAPI on :8000" + uvicorn app.main:app --reload --host 0.0.0.0 --port 8000 +) & +API_PID=$! + +# Start Electron (source nvm if available) +( + cd "$ROOT/adiuvAI" + echo "[electron] Starting Electron app" + [ -s "$HOME/.nvm/nvm.sh" ] && source "$HOME/.nvm/nvm.sh" + npm run start +) & +ELECTRON_PID=$! + +echo "[dev] API PID=$API_PID Electron PID=$ELECTRON_PID" +echo "[dev] Press Ctrl+C to stop both" + +wait