agent-flutter 0.1.15 → 0.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-flutter",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Portable Flutter skill/rule pack initializer for multiple AI IDEs.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -205,20 +205,16 @@ run_fvm() {
205
205
  ensure_fvm() {
206
206
  append_path_once "$HOME/.pub-cache/bin"
207
207
 
208
- if discover_working_fvm; then
209
- return
208
+ if ! discover_working_fvm; then
209
+ ensure_dart
210
210
  fi
211
211
 
212
- ensure_dart
213
-
214
- if discover_working_fvm; then
215
- return
212
+ if ! discover_working_fvm; then
213
+ echo "Installing FVM..."
214
+ dart pub global activate fvm >/dev/null
215
+ append_path_once "$HOME/.pub-cache/bin"
216
216
  fi
217
217
 
218
- echo "Installing FVM..."
219
- dart pub global activate fvm >/dev/null
220
- append_path_once "$HOME/.pub-cache/bin"
221
-
222
218
  if ! discover_working_fvm; then
223
219
  echo "Error: FVM installation failed or fvm is not runnable." >&2
224
220
  exit 1