@fias/create-fias-plugin 1.1.3 → 1.1.4

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/create-fias-plugin",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -499,6 +499,7 @@ navigateTo('/settings');
499
499
 
500
500
  ### `useStepNavigation()` — Multi-step workflows
501
501
 
502
+ **Permission:** None for in-memory use; `storage:sandbox` when `persistKey` is set (it reads/writes `__state/<persistKey>` via the storage bridge).
502
503
  **Returns:** `StepNavigationApi`
503
504
 
504
505
  ```tsx
@@ -780,6 +781,44 @@ If the AI review rejects your submission, the listing-fee portion is
780
781
  refunded automatically (the per-review portion is not, since review work
781
782
  happened either way).
782
783
 
784
+ ### Managing the asset library (for `useArcheAssets`)
785
+
786
+ `useArcheAssets()` reads a contributor-curated set of images pinned to the arche's published version. Populate that library with the `assets` subcommands. Each command accepts `--env <staging|prod|local>` (default `staging`) and `--arche-id <id>` (auto-resolved from the manifest when omitted).
787
+
788
+ ```bash
789
+ npx fias-dev assets enable # Turn on the asset library for this arche
790
+ npx fias-dev assets status # Quota usage + billing summary
791
+ npx fias-dev assets upload <dir> # Bulk-upload images; subfolder name → default tag
792
+ # Flags: --concurrency <1-16>, --dry-run
793
+ npx fias-dev assets list # List assets; --tag <tag>, --limit <1-100>
794
+ npx fias-dev assets tag <assetId> --add <t> # Add or remove tags; --remove <t> also supported
795
+ npx fias-dev assets delete <assetId> # Soft-delete (excluded from future publishes); -y to skip confirm
796
+ npx fias-dev assets disable # Turn off the asset library
797
+ ```
798
+
799
+ Uploads stage into the contributor's draft set; they only become visible to plugin runtimes after the next `npm run submit` publishes a new arche version. Existing published versions keep their original frozen snapshot.
800
+
801
+ ### Managing collaborators
802
+
803
+ Multi-developer plugins use `arche_collaborators` for operational ownership (publishing, team management) — distinct from financial ownership (`contributor_id`, which is immutable in v1). Every arche must keep ≥1 active owner; revokes that would drop to zero return `MUST_KEEP_ONE_OWNER`.
804
+
805
+ ```bash
806
+ npx fias-dev collaborators list # List active collaborators
807
+ npx fias-dev collaborators add <email|username|userId> \ # Default role: publisher
808
+ --role <owner|publisher|viewer> --expires <iso> # Owners cannot have expiry
809
+ npx fias-dev collaborators set <identifier> \ # Change role and/or expiry
810
+ --role <role> --expires <iso> # --no-expires clears expiry
811
+ npx fias-dev collaborators remove <identifier> # Revoke a collaborator
812
+ ```
813
+
814
+ All commands accept `--env <staging|production|local>` (default `staging`).
815
+
816
+ ### Other CLI diagnostics
817
+
818
+ ```bash
819
+ npx fias-dev check-auth # Print per-environment auth status (which envs have saved keys)
820
+ ```
821
+
783
822
  ## Common Patterns
784
823
 
785
824
  ### Theme-Aware Card Component
@@ -499,6 +499,7 @@ navigateTo('/settings');
499
499
 
500
500
  ### `useStepNavigation()` — Multi-step workflows
501
501
 
502
+ **Permission:** None for in-memory use; `storage:sandbox` when `persistKey` is set (it reads/writes `__state/<persistKey>` via the storage bridge).
502
503
  **Returns:** `StepNavigationApi`
503
504
 
504
505
  ```tsx
@@ -780,6 +781,44 @@ If the AI review rejects your submission, the listing-fee portion is
780
781
  refunded automatically (the per-review portion is not, since review work
781
782
  happened either way).
782
783
 
784
+ ### Managing the asset library (for `useArcheAssets`)
785
+
786
+ `useArcheAssets()` reads a contributor-curated set of images pinned to the arche's published version. Populate that library with the `assets` subcommands. Each command accepts `--env <staging|prod|local>` (default `staging`) and `--arche-id <id>` (auto-resolved from the manifest when omitted).
787
+
788
+ ```bash
789
+ npx fias-dev assets enable # Turn on the asset library for this arche
790
+ npx fias-dev assets status # Quota usage + billing summary
791
+ npx fias-dev assets upload <dir> # Bulk-upload images; subfolder name → default tag
792
+ # Flags: --concurrency <1-16>, --dry-run
793
+ npx fias-dev assets list # List assets; --tag <tag>, --limit <1-100>
794
+ npx fias-dev assets tag <assetId> --add <t> # Add or remove tags; --remove <t> also supported
795
+ npx fias-dev assets delete <assetId> # Soft-delete (excluded from future publishes); -y to skip confirm
796
+ npx fias-dev assets disable # Turn off the asset library
797
+ ```
798
+
799
+ Uploads stage into the contributor's draft set; they only become visible to plugin runtimes after the next `npm run submit` publishes a new arche version. Existing published versions keep their original frozen snapshot.
800
+
801
+ ### Managing collaborators
802
+
803
+ Multi-developer plugins use `arche_collaborators` for operational ownership (publishing, team management) — distinct from financial ownership (`contributor_id`, which is immutable in v1). Every arche must keep ≥1 active owner; revokes that would drop to zero return `MUST_KEEP_ONE_OWNER`.
804
+
805
+ ```bash
806
+ npx fias-dev collaborators list # List active collaborators
807
+ npx fias-dev collaborators add <email|username|userId> \ # Default role: publisher
808
+ --role <owner|publisher|viewer> --expires <iso> # Owners cannot have expiry
809
+ npx fias-dev collaborators set <identifier> \ # Change role and/or expiry
810
+ --role <role> --expires <iso> # --no-expires clears expiry
811
+ npx fias-dev collaborators remove <identifier> # Revoke a collaborator
812
+ ```
813
+
814
+ All commands accept `--env <staging|production|local>` (default `staging`).
815
+
816
+ ### Other CLI diagnostics
817
+
818
+ ```bash
819
+ npx fias-dev check-auth # Print per-environment auth status (which envs have saved keys)
820
+ ```
821
+
783
822
  ## Common Patterns
784
823
 
785
824
  ### Theme-Aware Card Component