@fias/arche-sdk 1.11.0 → 1.12.0
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/dist/coverage-fills.test.d.ts +8 -0
- package/dist/coverage-fills.test.d.ts.map +1 -0
- package/dist/coverage-fills.test.js +302 -0
- package/dist/coverage-fills.test.js.map +1 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +105 -1
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.test.js +595 -0
- package/dist/hooks.test.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +110 -3
- package/dist/types.d.ts +128 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/templates/default/AGENTS.md +45 -0
- package/templates/default/CLAUDE.md +45 -0
|
@@ -446,6 +446,18 @@ If newer package versions are available, tell the user and ask if they want to u
|
|
|
446
446
|
|
|
447
447
|
If `sync --dry-run` shows pending changes, tell the user and offer to run `npx fias-dev sync` to update AI instruction files and config from the latest SDK templates. This never touches source code or project-specific files (`package.json`, `fias-plugin.json`, `src/`).
|
|
448
448
|
|
|
449
|
+
#### UI cache after a harness upgrade
|
|
450
|
+
|
|
451
|
+
The harness pulls its host-page UI (toolbar, mode toggle, sign-in modal) from a CDN and caches it in `~/.fias/harness-cache/`. The cached UI takes priority over the bundled copy that ships in the npm package.
|
|
452
|
+
|
|
453
|
+
When you upgrade `@fias/plugin-dev-harness` but the CDN hasn't been redeployed yet, the cached UI can be older than the CLI. fias-dev now detects this case automatically and falls back to the bundled UI — look for this line in the startup log:
|
|
454
|
+
|
|
455
|
+
```
|
|
456
|
+
ℹ Cached harness UI v1.14.3 is older than CLI v1.18.0 — using bundled UI.
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
That message means everything is fine; the bundled UI exactly matches your CLI version. If you ever see stale behavior persist across an upgrade (and the line above didn't appear), delete `~/.fias/harness-cache/` and restart.
|
|
460
|
+
|
|
449
461
|
### Starting Development
|
|
450
462
|
|
|
451
463
|
```bash
|
|
@@ -482,6 +494,39 @@ npx fias-dev entities --type "model-definition" # Filter by type
|
|
|
482
494
|
npx fias-dev entities --detail ent_modeldef_gpt_image_1_5 # Full entity details (capabilities, sizes, pricing)
|
|
483
495
|
```
|
|
484
496
|
|
|
497
|
+
### Debugging — Read the Browser's View Directly
|
|
498
|
+
|
|
499
|
+
The harness mirrors every browser-side event to a per-port log file at `/tmp/fias-dev-<port>.log` (so usually `/tmp/fias-dev-3200.log`). The file path is also printed at startup:
|
|
500
|
+
|
|
501
|
+
```
|
|
502
|
+
Browser dev-log mirror: /tmp/fias-dev-3200.log
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
What's captured:
|
|
506
|
+
|
|
507
|
+
- Every Dev Console entry (`send` / `recv` / `info` / `error` / `toast` / `cost` / `nav`)
|
|
508
|
+
- Every uncaught JS error (`window.error`)
|
|
509
|
+
- Every unhandled promise rejection (`unhandledrejection`)
|
|
510
|
+
- Bridge requests + responses with payload previews
|
|
511
|
+
|
|
512
|
+
Format is one line per event:
|
|
513
|
+
|
|
514
|
+
```
|
|
515
|
+
2026-05-24T07:14:33.123Z [ERROR] window.error {"message":"...","file":"...","line":42}
|
|
516
|
+
2026-05-24T07:14:35.456Z [SEND] image_generate {"entityId":"ent_modeldef_..."}
|
|
517
|
+
2026-05-24T07:14:36.789Z [RECV] response {...}
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
**For AI agents pair-debugging with a developer:** tail this file instead of asking the developer to open DevTools and copy-paste output. Reproduce the failing action in the browser, then read the file — you'll see exactly what the iframe and harness exchanged.
|
|
521
|
+
|
|
522
|
+
```bash
|
|
523
|
+
tail -f /tmp/fias-dev-3200.log
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
The file is truncated on every `fias-dev` start, so it always reflects the current session.
|
|
527
|
+
|
|
528
|
+
The mirror uses `navigator.sendBeacon` (with a `fetch` fallback) so there's a sub-second delay before the most recent events land in the file. If you're chasing a race, give it a beat before reading.
|
|
529
|
+
|
|
485
530
|
### Validating the Manifest
|
|
486
531
|
|
|
487
532
|
```bash
|
|
@@ -446,6 +446,18 @@ If newer package versions are available, tell the user and ask if they want to u
|
|
|
446
446
|
|
|
447
447
|
If `sync --dry-run` shows pending changes, tell the user and offer to run `npx fias-dev sync` to update AI instruction files and config from the latest SDK templates. This never touches source code or project-specific files (`package.json`, `fias-plugin.json`, `src/`).
|
|
448
448
|
|
|
449
|
+
#### UI cache after a harness upgrade
|
|
450
|
+
|
|
451
|
+
The harness pulls its host-page UI (toolbar, mode toggle, sign-in modal) from a CDN and caches it in `~/.fias/harness-cache/`. The cached UI takes priority over the bundled copy that ships in the npm package.
|
|
452
|
+
|
|
453
|
+
When you upgrade `@fias/plugin-dev-harness` but the CDN hasn't been redeployed yet, the cached UI can be older than the CLI. fias-dev now detects this case automatically and falls back to the bundled UI — look for this line in the startup log:
|
|
454
|
+
|
|
455
|
+
```
|
|
456
|
+
ℹ Cached harness UI v1.14.3 is older than CLI v1.18.0 — using bundled UI.
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
That message means everything is fine; the bundled UI exactly matches your CLI version. If you ever see stale behavior persist across an upgrade (and the line above didn't appear), delete `~/.fias/harness-cache/` and restart.
|
|
460
|
+
|
|
449
461
|
### Starting Development
|
|
450
462
|
|
|
451
463
|
```bash
|
|
@@ -482,6 +494,39 @@ npx fias-dev entities --type "model-definition" # Filter by type
|
|
|
482
494
|
npx fias-dev entities --detail ent_modeldef_gpt_image_1_5 # Full entity details (capabilities, sizes, pricing)
|
|
483
495
|
```
|
|
484
496
|
|
|
497
|
+
### Debugging — Read the Browser's View Directly
|
|
498
|
+
|
|
499
|
+
The harness mirrors every browser-side event to a per-port log file at `/tmp/fias-dev-<port>.log` (so usually `/tmp/fias-dev-3200.log`). The file path is also printed at startup:
|
|
500
|
+
|
|
501
|
+
```
|
|
502
|
+
Browser dev-log mirror: /tmp/fias-dev-3200.log
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
What's captured:
|
|
506
|
+
|
|
507
|
+
- Every Dev Console entry (`send` / `recv` / `info` / `error` / `toast` / `cost` / `nav`)
|
|
508
|
+
- Every uncaught JS error (`window.error`)
|
|
509
|
+
- Every unhandled promise rejection (`unhandledrejection`)
|
|
510
|
+
- Bridge requests + responses with payload previews
|
|
511
|
+
|
|
512
|
+
Format is one line per event:
|
|
513
|
+
|
|
514
|
+
```
|
|
515
|
+
2026-05-24T07:14:33.123Z [ERROR] window.error {"message":"...","file":"...","line":42}
|
|
516
|
+
2026-05-24T07:14:35.456Z [SEND] image_generate {"entityId":"ent_modeldef_..."}
|
|
517
|
+
2026-05-24T07:14:36.789Z [RECV] response {...}
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
**For AI agents pair-debugging with a developer:** tail this file instead of asking the developer to open DevTools and copy-paste output. Reproduce the failing action in the browser, then read the file — you'll see exactly what the iframe and harness exchanged.
|
|
521
|
+
|
|
522
|
+
```bash
|
|
523
|
+
tail -f /tmp/fias-dev-3200.log
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
The file is truncated on every `fias-dev` start, so it always reflects the current session.
|
|
527
|
+
|
|
528
|
+
The mirror uses `navigator.sendBeacon` (with a `fetch` fallback) so there's a sub-second delay before the most recent events land in the file. If you're chasing a race, give it a beat before reading.
|
|
529
|
+
|
|
485
530
|
### Validating the Manifest
|
|
486
531
|
|
|
487
532
|
```bash
|