cursor-kit-cli 1.2.0-beta → 1.2.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cursor-reinstall-instance.sh +102 -0
- package/dist/cli.cjs +366 -69
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +367 -70
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +39 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +33 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/commands/docs.md +5 -3
- package/templates/commands/explain.md +5 -3
- package/templates/commands/fix.md +5 -3
- package/templates/commands/implement.md +5 -3
- package/templates/commands/refactor.md +5 -3
- package/templates/commands/review.md +5 -3
- package/templates/commands/test.md +5 -3
- package/templates/manifest.json +11 -8
- package/templates/rules/git.mdc +0 -2
- package/templates/rules/toc.mdc +17 -9
- package/templates/skills/aesthetic/SKILL.md +121 -0
- package/templates/skills/aesthetic/assets/design-guideline-template.md +163 -0
- package/templates/skills/aesthetic/assets/design-story-template.md +135 -0
- package/templates/skills/aesthetic/references/design-principles.md +62 -0
- package/templates/skills/aesthetic/references/design-resources.md +75 -0
- package/templates/skills/aesthetic/references/micro-interactions.md +53 -0
- package/templates/skills/aesthetic/references/storytelling-design.md +50 -0
- package/templates/skills/backend-development/SKILL.mdc +95 -0
- package/templates/skills/backend-development/references/backend-api-design.md +495 -0
- package/templates/skills/backend-development/references/backend-architecture.md +454 -0
- package/templates/skills/backend-development/references/backend-authentication.md +338 -0
- package/templates/skills/backend-development/references/backend-code-quality.md +659 -0
- package/templates/skills/backend-development/references/backend-debugging.md +904 -0
- package/templates/skills/backend-development/references/backend-devops.md +494 -0
- package/templates/skills/backend-development/references/backend-mindset.md +387 -0
- package/templates/skills/backend-development/references/backend-performance.md +397 -0
- package/templates/skills/backend-development/references/backend-security.md +290 -0
- package/templates/skills/backend-development/references/backend-technologies.md +256 -0
- package/templates/skills/backend-development/references/backend-testing.md +429 -0
- package/templates/skills/frontend-design/SKILL.mdc +41 -0
- package/templates/skills/frontend-design/references/animejs.md +396 -0
- package/templates/skills/frontend-development/SKILL.mdc +399 -0
- package/templates/skills/frontend-development/resources/common-patterns.md +331 -0
- package/templates/skills/frontend-development/resources/complete-examples.md +872 -0
- package/templates/skills/frontend-development/resources/component-patterns.md +502 -0
- package/templates/skills/frontend-development/resources/data-fetching.md +767 -0
- package/templates/skills/frontend-development/resources/file-organization.md +502 -0
- package/templates/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/templates/skills/frontend-development/resources/performance.md +406 -0
- package/templates/skills/frontend-development/resources/routing-guide.md +364 -0
- package/templates/skills/frontend-development/resources/styling-guide.md +428 -0
- package/templates/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/templates/skills/problem-solving/SKILL.mdc +96 -0
- package/templates/skills/problem-solving/references/attribution.md +69 -0
- package/templates/skills/problem-solving/references/collision-zone-thinking.md +79 -0
- package/templates/skills/problem-solving/references/inversion-exercise.md +91 -0
- package/templates/skills/problem-solving/references/meta-pattern-recognition.md +87 -0
- package/templates/skills/problem-solving/references/scale-game.md +95 -0
- package/templates/skills/problem-solving/references/simplification-cascades.md +80 -0
- package/templates/skills/problem-solving/references/when-stuck.md +72 -0
- package/templates/skills/research/SKILL.mdc +168 -0
- package/templates/skills/sequential-thinking/.env.example +8 -0
- package/templates/skills/sequential-thinking/README.md +183 -0
- package/templates/skills/sequential-thinking/SKILL.mdc +94 -0
- package/templates/skills/sequential-thinking/package.json +31 -0
- package/templates/skills/sequential-thinking/references/advanced-strategies.md +79 -0
- package/templates/skills/sequential-thinking/references/advanced-techniques.md +76 -0
- package/templates/skills/sequential-thinking/references/core-patterns.md +95 -0
- package/templates/skills/sequential-thinking/references/examples-api.md +88 -0
- package/templates/skills/sequential-thinking/references/examples-architecture.md +94 -0
- package/templates/skills/sequential-thinking/references/examples-debug.md +90 -0
- package/templates/skills/sequential-thinking/scripts/format-thought.js +159 -0
- package/templates/skills/sequential-thinking/scripts/process-thought.js +236 -0
- package/templates/skills/sequential-thinking/tests/format-thought.test.js +133 -0
- package/templates/skills/sequential-thinking/tests/process-thought.test.js +215 -0
- package/templates/skills/ui-styling/LICENSE.txt +202 -0
- package/templates/skills/ui-styling/SKILL.mdc +321 -0
- package/templates/skills/ui-styling/references/canvas-design-system.md +320 -0
- package/templates/skills/ui-styling/references/shadcn-accessibility.md +471 -0
- package/templates/skills/ui-styling/references/shadcn-components.md +424 -0
- package/templates/skills/ui-styling/references/shadcn-theming.md +373 -0
- package/templates/skills/ui-styling/references/tailwind-customization.md +483 -0
- package/templates/skills/ui-styling/references/tailwind-responsive.md +382 -0
- package/templates/skills/ui-styling/references/tailwind-utilities.md +455 -0
- package/templates/rules/frontend-design.mdc +0 -48
- package/templates/rules/performance.mdc +0 -54
- package/templates/rules/react.mdc +0 -58
- package/templates/rules/security.mdc +0 -50
- package/templates/rules/testing.mdc +0 -54
- package/templates/rules/typescript.mdc +0 -36
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
# OS guard – must be macOS
|
|
5
|
+
if [ "$(uname)" != "Darwin" ]; then
|
|
6
|
+
echo "This command only works on macOS." >&2
|
|
7
|
+
exit 1
|
|
8
|
+
fi
|
|
9
|
+
|
|
10
|
+
# === Parse arguments ===
|
|
11
|
+
SKIP_CONFIRM=false
|
|
12
|
+
NEW_APP_NAME=""
|
|
13
|
+
|
|
14
|
+
while [[ $# -gt 0 ]]; do
|
|
15
|
+
case "$1" in
|
|
16
|
+
-y|--yes|--force)
|
|
17
|
+
SKIP_CONFIRM=true
|
|
18
|
+
shift
|
|
19
|
+
;;
|
|
20
|
+
*)
|
|
21
|
+
NEW_APP_NAME="$1"
|
|
22
|
+
shift
|
|
23
|
+
;;
|
|
24
|
+
esac
|
|
25
|
+
done
|
|
26
|
+
|
|
27
|
+
if [ -z "$NEW_APP_NAME" ]; then
|
|
28
|
+
echo "Usage: $0 [-y|--yes] \"App Name (e.g. Cursor Enterprise)\"" >&2
|
|
29
|
+
exit 1
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
APP_PATH="$HOME/Applications/$NEW_APP_NAME.app"
|
|
33
|
+
|
|
34
|
+
# Calculate slug and paths (must match cursor-new-instance logic)
|
|
35
|
+
SLUG="$(echo "$NEW_APP_NAME" | tr '[:upper:]' '[:lower:]' | tr -cd '[:alnum:]')"
|
|
36
|
+
[ -z "$SLUG" ] && SLUG="custom"
|
|
37
|
+
|
|
38
|
+
BUNDLE_ID="com.cursor.$SLUG"
|
|
39
|
+
DATA_DIR="$HOME/Library/Application Support/${NEW_APP_NAME// /}"
|
|
40
|
+
|
|
41
|
+
# Verify instance exists
|
|
42
|
+
if [ ! -d "$APP_PATH" ]; then
|
|
43
|
+
echo "❌ Instance not found at: $APP_PATH" >&2
|
|
44
|
+
exit 1
|
|
45
|
+
fi
|
|
46
|
+
|
|
47
|
+
echo "This will reinstall:"
|
|
48
|
+
echo " App bundle: $APP_PATH"
|
|
49
|
+
echo " Bundle ID: $BUNDLE_ID"
|
|
50
|
+
echo " Data dir: $DATA_DIR (preserved)"
|
|
51
|
+
echo
|
|
52
|
+
|
|
53
|
+
# Skip confirmation if --yes flag is provided
|
|
54
|
+
if [ "$SKIP_CONFIRM" = true ]; then
|
|
55
|
+
ans="y"
|
|
56
|
+
else
|
|
57
|
+
read -r -p "Are you sure? [y/N] " ans
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
case "$ans" in
|
|
61
|
+
y|Y|yes|YES)
|
|
62
|
+
echo "🔄 Reinstalling $NEW_APP_NAME..."
|
|
63
|
+
|
|
64
|
+
# === Step 1: Remove the app bundle ===
|
|
65
|
+
echo "🗑️ Removing old app bundle..."
|
|
66
|
+
rm -rf "$APP_PATH"
|
|
67
|
+
|
|
68
|
+
# === Step 2: Copy the original app bundle ===
|
|
69
|
+
echo "📦 Copying fresh app bundle..."
|
|
70
|
+
if [ ! -d "/Applications/Cursor.app" ]; then
|
|
71
|
+
echo "❌ Original Cursor.app not found at /Applications/Cursor.app" >&2
|
|
72
|
+
exit 1
|
|
73
|
+
fi
|
|
74
|
+
cp -R "/Applications/Cursor.app" "$APP_PATH"
|
|
75
|
+
|
|
76
|
+
# === Step 3: Give the app its identity ===
|
|
77
|
+
APP="$APP_PATH"
|
|
78
|
+
PLIST="$APP/Contents/Info.plist"
|
|
79
|
+
|
|
80
|
+
echo "📝 Setting CFBundleIdentifier to $BUNDLE_ID..."
|
|
81
|
+
if /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier $BUNDLE_ID" "$PLIST"; then
|
|
82
|
+
echo "✅ CFBundleIdentifier updated."
|
|
83
|
+
else
|
|
84
|
+
echo "ℹ️ CFBundleIdentifier not found, adding..."
|
|
85
|
+
/usr/libexec/PlistBuddy -c "Add :CFBundleIdentifier string $BUNDLE_ID" "$PLIST"
|
|
86
|
+
echo "✅ CFBundleIdentifier added."
|
|
87
|
+
fi
|
|
88
|
+
|
|
89
|
+
echo "🔏 Re-signing app (ad-hoc signature)..."
|
|
90
|
+
codesign --force --deep --sign - "$APP"
|
|
91
|
+
|
|
92
|
+
# === Step 4: Launch with existing data ===
|
|
93
|
+
echo "🚀 Launching $NEW_APP_NAME with preserved data..."
|
|
94
|
+
open -n "$APP" --args --user-data-dir "$DATA_DIR"
|
|
95
|
+
|
|
96
|
+
echo "✅ Done."
|
|
97
|
+
;;
|
|
98
|
+
*)
|
|
99
|
+
echo "Cancelled."
|
|
100
|
+
exit 0
|
|
101
|
+
;;
|
|
102
|
+
esac
|