@fias/arche-sdk 1.1.7 → 1.1.9

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.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "SDK for building FIAS platform plugin arches",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -253,31 +253,28 @@ These are hard limits enforced by the platform. Code that violates these will fa
253
253
 
254
254
  ## Development Workflow
255
255
 
256
- ```bash
257
- # Terminal 1: Start plugin dev server (Vite, port 3100)
258
- npm run dev
259
-
260
- # Terminal 2: Start dev harness (mock mode, port 3200)
261
- npm run dev:mock
256
+ ### Step 1: Authenticate (one-time)
262
257
 
263
- # Open http://localhost:3200 in browser
258
+ ```bash
259
+ npx fias-dev login # Opens browser to sign in, saves API key automatically
264
260
  ```
265
261
 
266
- ### Authenticating with the FIAS Platform
262
+ ### Step 2: Start development
267
263
 
268
264
  ```bash
269
- npx fias-dev login # Opens browser to authenticate (recommended)
270
- npx fias-dev login --key fias_sk_... # Or paste an API key directly
265
+ npm start # Starts both Vite + dev harness with real AI (uses credits)
271
266
  ```
272
267
 
273
- Running `npx fias-dev login` opens your browser to the FIAS platform. After signing in, an API key is created automatically and saved to `~/.fias/credentials`. No manual key copying needed.
274
-
275
- ### Testing with Real AI Entities (costs credits)
268
+ Or for offline development without credits (AI calls return canned responses):
276
269
 
277
270
  ```bash
278
- npm run dev:harness # Start harness in live mode (requires login first)
271
+ npm run start:mock # Starts both Vite + dev harness with mock AI
279
272
  ```
280
273
 
274
+ Open http://localhost:3200 in your browser.
275
+
276
+ **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.
277
+
281
278
  ### Browsing Available Entities
282
279
 
283
280
  ```bash
@@ -253,31 +253,28 @@ These are hard limits enforced by the platform. Code that violates these will fa
253
253
 
254
254
  ## Development Workflow
255
255
 
256
- ```bash
257
- # Terminal 1: Start plugin dev server (Vite, port 3100)
258
- npm run dev
259
-
260
- # Terminal 2: Start dev harness (mock mode, port 3200)
261
- npm run dev:mock
256
+ ### Step 1: Authenticate (one-time)
262
257
 
263
- # Open http://localhost:3200 in browser
258
+ ```bash
259
+ npx fias-dev login # Opens browser to sign in, saves API key automatically
264
260
  ```
265
261
 
266
- ### Authenticating with the FIAS Platform
262
+ ### Step 2: Start development
267
263
 
268
264
  ```bash
269
- npx fias-dev login # Opens browser to authenticate (recommended)
270
- npx fias-dev login --key fias_sk_... # Or paste an API key directly
265
+ npm start # Starts both Vite + dev harness with real AI (uses credits)
271
266
  ```
272
267
 
273
- Running `npx fias-dev login` opens your browser to the FIAS platform. After signing in, an API key is created automatically and saved to `~/.fias/credentials`. No manual key copying needed.
274
-
275
- ### Testing with Real AI Entities (costs credits)
268
+ Or for offline development without credits (AI calls return canned responses):
276
269
 
277
270
  ```bash
278
- npm run dev:harness # Start harness in live mode (requires login first)
271
+ npm run start:mock # Starts both Vite + dev harness with mock AI
279
272
  ```
280
273
 
274
+ Open http://localhost:3200 in your browser.
275
+
276
+ **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.
277
+
281
278
  ### Browsing Available Entities
282
279
 
283
280
  ```bash
@@ -3,6 +3,8 @@
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
+ "start": "vite & fias-dev --live",
7
+ "start:mock": "vite & fias-dev",
6
8
  "dev": "vite",
7
9
  "build": "vite build",
8
10
  "validate": "tsc --noEmit",