@@ -20,31 +20,33 @@ Composer Installation
2020---------------------
2121
2222Consumer repositories are expected to install Fast Forward resource bundles with
23- Composer installer paths :
23+ `` fast-forward/composer-installers `` :
2424
2525.. code-block :: json
2626
2727 {
28+ "require" : {
29+ "fast-forward/agents" : " dev-main"
30+ },
2831 "config" : {
2932 "allow-plugins" : {
30- "composer/installers" : true ,
31- "oomphinc/composer-installers-extender" : true
33+ "fast-forward/composer-installers" : true
3234 }
3335 },
3436 "extra" : {
35- "installer-types" : [" fast-forward-resource-bundle" ],
3637 "installer-paths" : {
37- ".agents/{$name}/ " : [" fast-forward/agents" ]
38+ ".agents/" : [" fast-forward/agents" ]
3839 }
3940 }
4041 }
4142
42- ``composer/installers `` is a package dependency of this bundle, so consumers do
43- not need to require it separately. The custom ``fast-forward-resource-bundle `` type
44- is outside the finite list handled directly by ``composer/installers ``, so the
45- bundle also requires ``oomphinc/composer-installers-extender ``. Consumer roots
46- still own the plugin allow-list and the ``installer-types `` /
47- ``installer-paths `` configuration.
43+ ``fast-forward/composer-installers `` is a package dependency of this bundle, so
44+ consumers do not need to require the installer separately once the package is
45+ available from normal Composer metadata. Until the first tagged installer
46+ release exists, consumer smoke projects can add a repository entry for
47+ ``php-fast-forward/composer-installers `` and install the ``dev-main `` version.
48+ Consumer roots still own the plugin allow-list and the ``installer-paths ``
49+ configuration.
4850
4951The resource-bundle type is generic on purpose. Different bundle kinds can still
5052install into different target directories by matching explicit package names in
@@ -54,16 +56,18 @@ install into different target directories by matching explicit package names in
5456
5557 {
5658 "extra" : {
57- "installer-types" : [" fast-forward-resource-bundle" ],
5859 "installer-paths" : {
59- ".agents/{$name}/ " : [" fast-forward/agents" ],
60- ".github/workflows/{$name}/ " : [" fast-forward/github-workflows" ]
60+ ".agents/" : [" fast-forward/agents" ],
61+ ".github/workflows/" : [" fast-forward/github-workflows" ]
6162 }
6263 }
6364 }
6465
6566 This keeps the Composer type reusable while preserving one target directory per
66- bundle package or bundle kind.
67+ bundle package or bundle kind. The installer copies only the declared payload
68+ contents into each target, so ``fast-forward/agents `` materializes
69+ ``.agents/agents `` and ``.agents/skills `` directly under the consumer
70+ ``.agents/ `` directory.
6771
6872The follow-up ``fast-forward/dev-tools `` work tracked in
6973`php-fast-forward/dev-tools#195 <https://github.com/php-fast-forward/dev-tools/issues/195 >`_
0 commit comments