Skip to content

Commit ae83b4e

Browse files
authored
feat(cli): add interactive UI for artifact experimental setup (Fission-AI#560)
* feat(cli): add interactive UI for artifact experimental setup Add animated welcome screen and searchable multi-select prompt when running `openspec artifact-experimental-setup` without the --tool flag in interactive mode. Users can now browse and select multiple tools for setup instead of requiring the --tool flag. - Add welcome screen with ASCII art animation - Add searchable multi-select prompt component - Support multi-tool setup in single command invocation * fix(nix): update flake version and reset hash for rebuild - Update version from 0.20.0 to 0.23.0 to match package.json - Set pnpmDeps hash to empty string to trigger rebuild - Fix update-flake.sh to work on macOS (use portable grep/sed) CI will fail with correct hash which we'll then apply. * fix(nix): set correct pnpmDeps hash * feat(cli): improve error handling for multi-tool setup - Continue setup for remaining tools when one fails - Collect and report all failures at the end - Only throw if all tools fail - Show partial success summary (configured vs failed)
1 parent d485281 commit ae83b4e

7 files changed

Lines changed: 797 additions & 207 deletions

File tree

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
{
2020
default = pkgs.stdenv.mkDerivation (finalAttrs: {
2121
pname = "openspec";
22-
version = "0.20.0";
22+
version = "0.23.0";
2323

2424
src = ./.;
2525

2626
pnpmDeps = pkgs.fetchPnpmDeps {
2727
inherit (finalAttrs) pname version src;
2828
pnpm = pkgs.pnpm_9;
2929
fetcherVersion = 3;
30-
hash = "sha256-m/7IdY1ou9ljjYAcx3W8AyEJvIZfCBWIWxproQ/INPA=";
30+
hash = "sha256-9s2kdvd7svK4hofnD66HkDc86WTQeayfF5y7L2dmjNg=";
3131
};
3232

3333
nativeBuildInputs = with pkgs; [

pnpm-lock.yaml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/update-flake.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ sed "${SED_INPLACE[@]}" "s|hash = \"sha256-[^\"]*\"|hash = \"$PLACEHOLDER\"|" "$
4141
echo " Building to get correct hash (this will fail)..."
4242
BUILD_OUTPUT=$(nix build 2>&1 || true)
4343

44-
# Extract the correct hash from error output
45-
CORRECT_HASH=$(echo "$BUILD_OUTPUT" | grep -oP 'got:\s+\Ksha256-[A-Za-z0-9+/=]+' | head -1)
44+
# Extract the correct hash from error output (portable - works on macOS and Linux)
45+
CORRECT_HASH=$(echo "$BUILD_OUTPUT" | grep -o 'got:[[:space:]]*sha256-[A-Za-z0-9+/=]*' | head -1 | sed 's/got:[[:space:]]*//')
4646

4747
if [ -z "$CORRECT_HASH" ]; then
4848
echo "❌ Error: Could not extract hash from build output"

0 commit comments

Comments
 (0)