@fias/arche-sdk 1.2.0 → 1.2.1

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": "@fias/arche-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "SDK for building FIAS platform plugin arches",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -259,17 +259,21 @@ This opens the FIAS platform in your browser. If you're already signed in, the A
259
259
 
260
260
  ### Step 2: Start development
261
261
 
262
+ **With real AI (recommended — requires login first):**
262
263
  ```bash
263
264
  npm start # Starts both Vite + dev harness with real AI (uses credits)
264
265
  ```
265
266
 
266
- Or for offline development without credits (AI calls return canned responses):
267
-
267
+ **Without AI (offline, for UI-only work):**
268
268
  ```bash
269
- npm run start:mock # Starts both Vite + dev harness with mock AI
269
+ npm run start:mock # Starts both Vite + dev harness with mock responses
270
270
  ```
271
271
 
272
- Open http://localhost:3200 in your browser.
272
+ `npm start` will fail with "Not logged in" if `npx fias-dev login` hasn't been run. If that happens, run the login command first, then retry `npm start`.
273
+
274
+ **IMPORTANT:** Always tell the user to open **http://localhost:3200** in their browser to see the plugin running. Port 3200 is the dev harness that wraps the plugin in the platform iframe. Port 3100 is just the raw Vite server and won't work correctly on its own.
275
+
276
+ **IMPORTANT:** `npm start` uses real AI and costs credits. `npm run start:mock` returns canned responses and does NOT call real AI models. If the user wants actual AI-powered features to work during testing, they MUST use `npm start` (not `start:mock`).
273
277
 
274
278
  **Advanced:** If you prefer separate terminals, use `npm run dev` (Vite on port 3100) and `npm run dev:harness` or `npm run dev:mock` (harness on port 3200) independently.
275
279
 
@@ -259,17 +259,21 @@ This opens the FIAS platform in your browser. If you're already signed in, the A
259
259
 
260
260
  ### Step 2: Start development
261
261
 
262
+ **With real AI (recommended — requires login first):**
262
263
  ```bash
263
264
  npm start # Starts both Vite + dev harness with real AI (uses credits)
264
265
  ```
265
266
 
266
- Or for offline development without credits (AI calls return canned responses):
267
-
267
+ **Without AI (offline, for UI-only work):**
268
268
  ```bash
269
- npm run start:mock # Starts both Vite + dev harness with mock AI
269
+ npm run start:mock # Starts both Vite + dev harness with mock responses
270
270
  ```
271
271
 
272
- Open http://localhost:3200 in your browser.
272
+ `npm start` will fail with "Not logged in" if `npx fias-dev login` hasn't been run. If that happens, run the login command first, then retry `npm start`.
273
+
274
+ **IMPORTANT:** Always tell the user to open **http://localhost:3200** in their browser to see the plugin running. Port 3200 is the dev harness that wraps the plugin in the platform iframe. Port 3100 is just the raw Vite server and won't work correctly on its own.
275
+
276
+ **IMPORTANT:** `npm start` uses real AI and costs credits. `npm run start:mock` returns canned responses and does NOT call real AI models. If the user wants actual AI-powered features to work during testing, they MUST use `npm start` (not `start:mock`).
273
277
 
274
278
  **Advanced:** If you prefer separate terminals, use `npm run dev` (Vite on port 3100) and `npm run dev:harness` or `npm run dev:mock` (harness on port 3200) independently.
275
279
 
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "start": "vite & sleep 2 && fias-dev --live",
6
+ "start": "fias-dev check-auth && vite & sleep 2 && fias-dev --live",
7
7
  "start:mock": "vite & sleep 2 && fias-dev",
8
8
  "dev": "vite",
9
9
  "build": "vite build",