@detergent-software/atk 9.5.0 → 9.6.0-dev.10
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/CHANGELOG.md +82 -0
- package/README.md +10 -7
- package/build/command-manifest.json +151 -26
- package/build/commands/browse.d.ts +1 -0
- package/build/commands/browse.d.ts.map +1 -1
- package/build/commands/browse.js +12 -7
- package/build/commands/browse.js.map +1 -1
- package/build/commands/deprecate.d.ts +6 -5
- package/build/commands/deprecate.d.ts.map +1 -1
- package/build/commands/deprecate.js +31 -43
- package/build/commands/deprecate.js.map +1 -1
- package/build/commands/freeze.d.ts +1 -0
- package/build/commands/freeze.d.ts.map +1 -1
- package/build/commands/info.d.ts +1 -0
- package/build/commands/info.d.ts.map +1 -1
- package/build/commands/info.js +20 -39
- package/build/commands/info.js.map +1 -1
- package/build/commands/init.js +1 -1
- package/build/commands/init.js.map +1 -1
- package/build/commands/install.d.ts.map +1 -1
- package/build/commands/install.js +65 -12
- package/build/commands/install.js.map +1 -1
- package/build/commands/list.d.ts +1 -0
- package/build/commands/list.d.ts.map +1 -1
- package/build/commands/list.js +7 -7
- package/build/commands/list.js.map +1 -1
- package/build/commands/move.d.ts +6 -4
- package/build/commands/move.d.ts.map +1 -1
- package/build/commands/move.js +219 -89
- package/build/commands/move.js.map +1 -1
- package/build/commands/outdated.d.ts +1 -0
- package/build/commands/outdated.d.ts.map +1 -1
- package/build/commands/outdated.js +6 -4
- package/build/commands/outdated.js.map +1 -1
- package/build/commands/pin.d.ts +1 -0
- package/build/commands/pin.d.ts.map +1 -1
- package/build/commands/promote.d.ts +4 -3
- package/build/commands/promote.d.ts.map +1 -1
- package/build/commands/promote.js +19 -16
- package/build/commands/promote.js.map +1 -1
- package/build/commands/register.d.ts +1 -0
- package/build/commands/register.d.ts.map +1 -1
- package/build/commands/schema.d.ts +1 -0
- package/build/commands/schema.d.ts.map +1 -1
- package/build/commands/schema.js +3 -2
- package/build/commands/schema.js.map +1 -1
- package/build/commands/search.d.ts +1 -0
- package/build/commands/search.d.ts.map +1 -1
- package/build/commands/search.js +9 -5
- package/build/commands/search.js.map +1 -1
- package/build/commands/star.d.ts +23 -0
- package/build/commands/star.d.ts.map +1 -0
- package/build/commands/star.js +36 -0
- package/build/commands/star.js.map +1 -0
- package/build/commands/stars.d.ts +11 -0
- package/build/commands/stars.d.ts.map +1 -0
- package/build/commands/stars.js +57 -0
- package/build/commands/stars.js.map +1 -0
- package/build/commands/sync.d.ts +1 -0
- package/build/commands/sync.d.ts.map +1 -1
- package/build/commands/thaw.d.ts +1 -0
- package/build/commands/thaw.d.ts.map +1 -1
- package/build/commands/uninstall.d.ts +1 -0
- package/build/commands/uninstall.d.ts.map +1 -1
- package/build/commands/unpin.d.ts +1 -0
- package/build/commands/unpin.d.ts.map +1 -1
- package/build/commands/unpublish.d.ts +4 -3
- package/build/commands/unpublish.d.ts.map +1 -1
- package/build/commands/unpublish.js +20 -37
- package/build/commands/unpublish.js.map +1 -1
- package/build/commands/unstar.d.ts +23 -0
- package/build/commands/unstar.d.ts.map +1 -0
- package/build/commands/unstar.js +36 -0
- package/build/commands/unstar.js.map +1 -0
- package/build/commands/update.d.ts +2 -0
- package/build/commands/update.d.ts.map +1 -1
- package/build/commands/update.js +82 -4
- package/build/commands/update.js.map +1 -1
- package/build/commands/why.d.ts +1 -0
- package/build/commands/why.d.ts.map +1 -1
- package/build/components/AssetTable.d.ts +3 -1
- package/build/components/AssetTable.d.ts.map +1 -1
- package/build/components/AssetTable.js +11 -4
- package/build/components/AssetTable.js.map +1 -1
- package/build/components/BrowseExpandedRow.d.ts.map +1 -1
- package/build/components/BrowseExpandedRow.js +1 -1
- package/build/components/BrowseExpandedRow.js.map +1 -1
- package/build/components/BrowseList.d.ts +1 -1
- package/build/components/BrowseList.d.ts.map +1 -1
- package/build/components/BrowseList.js +10 -7
- package/build/components/BrowseList.js.map +1 -1
- package/build/components/DeprecationSummary.d.ts.map +1 -1
- package/build/components/DeprecationSummary.js +22 -5
- package/build/components/DeprecationSummary.js.map +1 -1
- package/build/components/InstallSummary.d.ts +4 -2
- package/build/components/InstallSummary.d.ts.map +1 -1
- package/build/components/InstallSummary.js +13 -4
- package/build/components/InstallSummary.js.map +1 -1
- package/build/components/ListBrowseList.d.ts +7 -6
- package/build/components/ListBrowseList.d.ts.map +1 -1
- package/build/components/ListBrowseList.js +15 -11
- package/build/components/ListBrowseList.js.map +1 -1
- package/build/components/PluginReviewQuestion.d.ts +22 -0
- package/build/components/PluginReviewQuestion.d.ts.map +1 -0
- package/build/components/PluginReviewQuestion.js +30 -0
- package/build/components/PluginReviewQuestion.js.map +1 -0
- package/build/components/RegistryChangeSummary.d.ts +6 -0
- package/build/components/RegistryChangeSummary.d.ts.map +1 -1
- package/build/components/RegistryChangeSummary.js +19 -1
- package/build/components/RegistryChangeSummary.js.map +1 -1
- package/build/components/StarCommand.d.ts +17 -0
- package/build/components/StarCommand.d.ts.map +1 -0
- package/build/components/StarCommand.js +53 -0
- package/build/components/StarCommand.js.map +1 -0
- package/build/components/StarResult.d.ts +7 -0
- package/build/components/StarResult.d.ts.map +1 -0
- package/build/components/StarResult.js +24 -0
- package/build/components/StarResult.js.map +1 -0
- package/build/components/UsageFields.d.ts +1 -1
- package/build/components/UsageFields.d.ts.map +1 -1
- package/build/components/UsageFields.js +2 -2
- package/build/components/UsageFields.js.map +1 -1
- package/build/hooks/useBrowseState.d.ts +4 -2
- package/build/hooks/useBrowseState.d.ts.map +1 -1
- package/build/hooks/useBrowseState.js +18 -11
- package/build/hooks/useBrowseState.js.map +1 -1
- package/build/hooks/useInitState.js +2 -2
- package/build/hooks/useInitState.js.map +1 -1
- package/build/hooks/useListState.d.ts.map +1 -1
- package/build/hooks/useListState.js +1 -0
- package/build/hooks/useListState.js.map +1 -1
- package/build/lib/adapter.d.ts.map +1 -1
- package/build/lib/adapter.js +1 -0
- package/build/lib/adapter.js.map +1 -1
- package/build/lib/atk-api/client.d.ts +65 -13
- package/build/lib/atk-api/client.d.ts.map +1 -1
- package/build/lib/atk-api/client.js +82 -32
- package/build/lib/atk-api/client.js.map +1 -1
- package/build/lib/atk-api/domain.d.ts +23 -2
- package/build/lib/atk-api/domain.d.ts.map +1 -1
- package/build/lib/atk-api/domain.js.map +1 -1
- package/build/lib/atk-api/errors.d.ts +9 -1
- package/build/lib/atk-api/errors.d.ts.map +1 -1
- package/build/lib/atk-api/errors.js +8 -1
- package/build/lib/atk-api/errors.js.map +1 -1
- package/build/lib/atk-api/generated/index.d.ts +2 -2
- package/build/lib/atk-api/generated/index.d.ts.map +1 -1
- package/build/lib/atk-api/generated/index.js +1 -1
- package/build/lib/atk-api/generated/index.js.map +1 -1
- package/build/lib/atk-api/generated/sdk.gen.d.ts +20 -8
- package/build/lib/atk-api/generated/sdk.gen.d.ts.map +1 -1
- package/build/lib/atk-api/generated/sdk.gen.js +31 -7
- package/build/lib/atk-api/generated/sdk.gen.js.map +1 -1
- package/build/lib/atk-api/generated/types.gen.d.ts +391 -39
- package/build/lib/atk-api/generated/types.gen.d.ts.map +1 -1
- package/build/lib/atk-api/index.d.ts +4 -4
- package/build/lib/atk-api/index.d.ts.map +1 -1
- package/build/lib/atk-api/index.js +1 -1
- package/build/lib/atk-api/index.js.map +1 -1
- package/build/lib/atk-api/testing.d.ts +6 -1
- package/build/lib/atk-api/testing.d.ts.map +1 -1
- package/build/lib/atk-api/testing.js +31 -1
- package/build/lib/atk-api/testing.js.map +1 -1
- package/build/lib/atk-api/web-routes.d.ts +17 -4
- package/build/lib/atk-api/web-routes.d.ts.map +1 -1
- package/build/lib/atk-api/web-routes.js +15 -1
- package/build/lib/atk-api/web-routes.js.map +1 -1
- package/build/lib/atk-schemas/bundle.d.ts +2 -0
- package/build/lib/atk-schemas/bundle.d.ts.map +1 -1
- package/build/lib/atk-schemas/index.d.ts +3 -0
- package/build/lib/atk-schemas/index.d.ts.map +1 -1
- package/build/lib/atk-schemas/index.js +3 -0
- package/build/lib/atk-schemas/index.js.map +1 -1
- package/build/lib/atk-schemas/manifest.d.ts +13 -0
- package/build/lib/atk-schemas/manifest.d.ts.map +1 -1
- package/build/lib/atk-schemas/manifest.js +8 -1
- package/build/lib/atk-schemas/manifest.js.map +1 -1
- package/build/lib/atk-schemas/registry.d.ts +30 -0
- package/build/lib/atk-schemas/registry.d.ts.map +1 -1
- package/build/lib/atk-schemas/registry.js +10 -0
- package/build/lib/atk-schemas/registry.js.map +1 -1
- package/build/lib/atk-schemas/unknown-types.d.ts +27 -0
- package/build/lib/atk-schemas/unknown-types.d.ts.map +1 -0
- package/build/lib/atk-schemas/unknown-types.js +116 -0
- package/build/lib/atk-schemas/unknown-types.js.map +1 -0
- package/build/lib/checksum.d.ts +4 -3
- package/build/lib/checksum.d.ts.map +1 -1
- package/build/lib/checksum.js +5 -4
- package/build/lib/checksum.js.map +1 -1
- package/build/lib/claude-code-version.d.ts +37 -0
- package/build/lib/claude-code-version.d.ts.map +1 -0
- package/build/lib/claude-code-version.js +75 -0
- package/build/lib/claude-code-version.js.map +1 -0
- package/build/lib/cross-scope.d.ts +2 -0
- package/build/lib/cross-scope.d.ts.map +1 -1
- package/build/lib/cross-scope.js +4 -3
- package/build/lib/cross-scope.js.map +1 -1
- package/build/lib/diagnostics.d.ts.map +1 -1
- package/build/lib/diagnostics.js +19 -9
- package/build/lib/diagnostics.js.map +1 -1
- package/build/lib/init.d.ts +4 -2
- package/build/lib/init.d.ts.map +1 -1
- package/build/lib/init.js +15 -1
- package/build/lib/init.js.map +1 -1
- package/build/lib/mover.d.ts +50 -0
- package/build/lib/mover.d.ts.map +1 -1
- package/build/lib/mover.js +207 -54
- package/build/lib/mover.js.map +1 -1
- package/build/lib/multi-tool-install.d.ts +5 -2
- package/build/lib/multi-tool-install.d.ts.map +1 -1
- package/build/lib/multi-tool-install.js +8 -5
- package/build/lib/multi-tool-install.js.map +1 -1
- package/build/lib/owned-paths.d.ts +5 -0
- package/build/lib/owned-paths.d.ts.map +1 -1
- package/build/lib/owned-paths.js +8 -0
- package/build/lib/owned-paths.js.map +1 -1
- package/build/lib/plugin-review.d.ts +77 -0
- package/build/lib/plugin-review.d.ts.map +1 -0
- package/build/lib/plugin-review.js +124 -0
- package/build/lib/plugin-review.js.map +1 -0
- package/build/lib/publisher.d.ts.map +1 -1
- package/build/lib/publisher.js +23 -16
- package/build/lib/publisher.js.map +1 -1
- package/build/lib/registry-change-json.d.ts +95 -4
- package/build/lib/registry-change-json.d.ts.map +1 -1
- package/build/lib/registry-change-json.js +76 -7
- package/build/lib/registry-change-json.js.map +1 -1
- package/build/lib/registry-mutate.d.ts +41 -1
- package/build/lib/registry-mutate.d.ts.map +1 -1
- package/build/lib/registry-mutate.js +178 -6
- package/build/lib/registry-mutate.js.map +1 -1
- package/build/lib/registry.d.ts.map +1 -1
- package/build/lib/registry.js +10 -3
- package/build/lib/registry.js.map +1 -1
- package/build/lib/schemas/adapter.d.ts +3 -0
- package/build/lib/schemas/adapter.d.ts.map +1 -1
- package/build/lib/schemas/config.d.ts +2 -0
- package/build/lib/schemas/config.d.ts.map +1 -1
- package/build/lib/schemas/index.d.ts +1 -1
- package/build/lib/schemas/index.d.ts.map +1 -1
- package/build/lib/schemas/index.js +1 -1
- package/build/lib/schemas/index.js.map +1 -1
- package/build/lib/schemas/lockfile.d.ts +8 -0
- package/build/lib/schemas/lockfile.d.ts.map +1 -1
- package/build/lib/search.d.ts +4 -4
- package/build/lib/search.d.ts.map +1 -1
- package/build/lib/search.js +7 -7
- package/build/lib/search.js.map +1 -1
- package/build/lib/stars.d.ts +46 -0
- package/build/lib/stars.d.ts.map +1 -0
- package/build/lib/stars.js +100 -0
- package/build/lib/stars.js.map +1 -0
- package/build/lib/subject.d.ts +52 -0
- package/build/lib/subject.d.ts.map +1 -0
- package/build/lib/subject.js +51 -0
- package/build/lib/subject.js.map +1 -0
- package/build/lib/usage.d.ts +11 -2
- package/build/lib/usage.d.ts.map +1 -1
- package/build/lib/usage.js +24 -8
- package/build/lib/usage.js.map +1 -1
- package/package.json +1 -1
- package/tool-adapters/claude-code.json +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,85 @@
|
|
|
1
|
+
## [9.6.0-dev.10](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.6.0-dev.9&targetVersion=GTv9.6.0-dev.10) (2026-11-07)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **registry:** also skip what names a skipped asset (ATK-934) ([2c62cb6](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/2c62cb69d8bd9fd28e66e3bb0989bcd52ddd6a25))
|
|
6
|
+
* **registry:** skip registry entries whose asset type is unknown (ATK-934) ([3c3f119](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/3c3f1194d9386d2069c26c94fdff1d36d7c07647))
|
|
7
|
+
|
|
8
|
+
## [9.6.0-dev.9](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.6.0-dev.8&targetVersion=GTv9.6.0-dev.9) (2026-11-07)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **cli:** star and unstar assets and bundles, and show star counts (ATK-927) ([fa4c80c](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/fa4c80c8a59d6990871f304e0030fd73af27ee73))
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **cli:** tighten star not-found, the old usage cache and --org help (ATK-927) ([44f7791](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/44f77912cf6fa1f863a9c9bf12978538af3cde26))
|
|
17
|
+
|
|
18
|
+
## [9.6.0-dev.8](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.6.0-dev.7&targetVersion=GTv9.6.0-dev.8) (2026-11-07)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **api:** let users star assets and bundles (ATK-925) ([bc1070d](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/bc1070d808efc6c43607914e2bc80d66649f8656))
|
|
23
|
+
|
|
24
|
+
## [9.6.0-dev.7](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.6.0-dev.6&targetVersion=GTv9.6.0-dev.7) (2026-11-07)
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **cli:** unpublish, deprecate and promote take several names in one PR (ATK-913) ([ea11516](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/ea11516924de14c3ec8db3ce16872f53a204aae8))
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **cli:** keep the API's heading for a batch that names an item twice (ATK-913) ([35994fc](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/35994fc02a1ce2d94bd55fe8950dcdf4f9469165))
|
|
33
|
+
* **cli:** leave a batch's request-level refusal as the API words it (ATK-913) ([e4bcd77](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/e4bcd776965bc195ad6846d2f232c26132384f62))
|
|
34
|
+
|
|
35
|
+
## [9.6.0-dev.6](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.6.0-dev.5&targetVersion=GTv9.6.0-dev.6) (2026-11-07)
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* **cli:** say in install --help that --yes skips the plugin review (ATK-930) ([d699b49](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/d699b492f52e8da64b65b5714f54ac1ed279215f))
|
|
40
|
+
|
|
41
|
+
## [9.6.0-dev.5](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.6.0-dev.4&targetVersion=GTv9.6.0-dev.5) (2026-11-06)
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* **cli:** allow a plugin at the user scope (ATK-924) ([52dc230](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/52dc230a72a33266a3bc76b9dc9954fb0b1553d1))
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* **cli:** review a moved plugin's version and note what a move placed (ATK-924) ([5ced455](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/5ced455d04383fb556eeda6465f85b93c9296b50))
|
|
50
|
+
|
|
51
|
+
## [9.6.0-dev.4](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.6.0-dev.3&targetVersion=GTv9.6.0-dev.4) (2026-11-06)
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
* **cli:** place, confirm and audit a plugin asset (ATK-916) ([a390722](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/a39072232c0e64f26c2af00d1f4a9aa45606e02d))
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
* **cli:** review every plugin an update moves, at the version confirmed (ATK-916) ([8be5a93](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/8be5a93ec2d4e9af5cdbdd4b5e4526bd6140bd27))
|
|
60
|
+
|
|
61
|
+
## [9.6.0-dev.3](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.6.0-dev.2&targetVersion=GTv9.6.0-dev.3) (2026-11-06)
|
|
62
|
+
|
|
63
|
+
### Features
|
|
64
|
+
|
|
65
|
+
* **schemas:** a plugin version's scan report in the registry index (ATK-917) ([b60bdc0](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/b60bdc0ba595f1867192b56afc45f964b030d272))
|
|
66
|
+
|
|
67
|
+
## [9.6.0-dev.2](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.6.0-dev.1&targetVersion=GTv9.6.0-dev.2) (2026-11-06)
|
|
68
|
+
|
|
69
|
+
### Features
|
|
70
|
+
|
|
71
|
+
* **cli:** atk move takes several names (ATK-911) ([3ff3e4e](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/3ff3e4e8db0a632b7c52b8de44d08b580e83a149))
|
|
72
|
+
|
|
73
|
+
## [9.6.0-dev.1](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.5.0&targetVersion=GTv9.6.0-dev.1) (2026-11-06)
|
|
74
|
+
|
|
75
|
+
### Features
|
|
76
|
+
|
|
77
|
+
* **api:** add a plugin asset type and publish it with .claude-plugin (ATK-915) ([5fd2af5](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/5fd2af5b008f892ffb2617ad7b511db117a9291a))
|
|
78
|
+
|
|
79
|
+
### Bug Fixes
|
|
80
|
+
|
|
81
|
+
* **api:** name a non-string plugin.json version and list plugin in atk schema (ATK-915) ([b6c30f7](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/commit/b6c30f7719f0f9692e16ef17db3a94dcba463324))
|
|
82
|
+
|
|
1
83
|
## [9.5.0](https://emergentcode.visualstudio.com/Emergent%20Software/_git/Emergent.AgenticToolkit/branchCompare?baseVersion=GTv9.4.0&targetVersion=GTv9.5.0) (2026-11-05)
|
|
2
84
|
|
|
3
85
|
### Features
|
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ atk update
|
|
|
81
81
|
| `atk checkout <name>` | Fetch a writable working copy of a registry asset for updating |
|
|
82
82
|
| `atk completion <shell>` | Print a completion script for bash, zsh or PowerShell (`pwsh`) |
|
|
83
83
|
| `atk config` | Manage user configuration (`~/.atkrc.json`) |
|
|
84
|
-
| `atk deprecate <name>` | Deprecate
|
|
84
|
+
| `atk deprecate <name>` | Deprecate one or more assets or bundles (or `--undo`) in one PR |
|
|
85
85
|
| `atk diff <asset>` | Show changes against the latest, a chosen version or two versions |
|
|
86
86
|
| `atk doctor` | Run environment diagnostics |
|
|
87
87
|
| `atk info <asset>` | Show asset details, what depends on it and the bundles with it |
|
|
@@ -90,10 +90,10 @@ atk update
|
|
|
90
90
|
| `atk list` | List all installed assets (`--tree`: with their dependencies) |
|
|
91
91
|
| `atk login` | Sign in with your Emergent (Microsoft Entra) account |
|
|
92
92
|
| `atk logout` | Sign out of your Emergent account |
|
|
93
|
-
| `atk move <
|
|
93
|
+
| `atk move <assets...>` | Move installed assets between the project and the user scope |
|
|
94
94
|
| `atk outdated` | Show assets with available updates |
|
|
95
95
|
| `atk pin <assets...>` | Pin assets at their installed versions |
|
|
96
|
-
| `atk promote <name>` | Promote
|
|
96
|
+
| `atk promote <name>` | Promote org-scoped assets or bundles to global in one PR |
|
|
97
97
|
| `atk prune` | Remove orphaned dependencies |
|
|
98
98
|
| `atk publish` | Publish one or more assets, or a bundle, to the registry |
|
|
99
99
|
| `atk register <dir>` | Drop a manifest.json into an existing local directory |
|
|
@@ -102,7 +102,7 @@ atk update
|
|
|
102
102
|
| `atk sync [names...]` | Re-apply the lockfile's assets, all of them or only those named |
|
|
103
103
|
| `atk uninstall <asset>` | Remove an asset and clean up placed files |
|
|
104
104
|
| `atk unpin <assets...>` | Remove the version pins from assets |
|
|
105
|
-
| `atk unpublish <name>` | Remove
|
|
105
|
+
| `atk unpublish <name>` | Remove assets, bundles or versions from the registry in one PR |
|
|
106
106
|
| `atk update [asset]` | Update installed assets to latest versions |
|
|
107
107
|
| `atk upgrade` | Upgrade the CLI itself to the newest on its npm channel |
|
|
108
108
|
| `atk validate [path...]` | Check asset or bundle directories for errors before publishing |
|
|
@@ -209,6 +209,9 @@ GitHub sign-in to ATK has ended. GitHub tokens are no longer read from `gh`, `GI
|
|
|
209
209
|
| **Hooks** | Shell scripts triggered by tool events | Pre-commit validation, post-install setup |
|
|
210
210
|
| **Memory Templates** | Persistent memory structures | Project context templates |
|
|
211
211
|
| **MCP Configs** | Model Context Protocol server configs | External tool integrations |
|
|
212
|
+
| **Plugins** | Code Claude Code runs in every session | A status band in each session |
|
|
213
|
+
|
|
214
|
+
A plugin is for Claude Code only: `atk install` places it in `.claude/skills/<name>/` with its `.claude-plugin/plugin.json`, and Copilot CLI and Codex CLI skip it. With `--user` it goes in `~/.claude/skills/<name>/` (`$CLAUDE_CONFIG_DIR/skills/<name>/` when that is set). When a project and the user scope both have it, Claude Code loads only the user copy, and the two copies share the data the plugin stores. `atk move` moves a plugin between the scopes at its version without asking again, and refuses a move that would install a plugin at a version nobody reviewed; run `/reload-plugins` in open sessions after a move. A plugin runs its code in every session without asking, so `atk install` and `atk update` show what each version declares it can do (`security.permissions`), and on an update what changed, and ask before they write; `--yes` skips the question, and a run that can't ask (`--json`, no TTY) fails without it. Several names, an `@org` and `atk browse` can't show the review: install the plugin alone, or add `--yes`. After a first install, run `/reload-plugins` in the Claude Code sessions already open; an update reloads them on its own. `atk doctor` checks that Claude Code is 2.1.319 or later when a plugin is installed.
|
|
212
215
|
|
|
213
216
|
## How It Works
|
|
214
217
|
|
|
@@ -244,7 +247,7 @@ atk init rule --offline
|
|
|
244
247
|
|
|
245
248
|
For `init`, the global `--offline` skips the registry name-availability check and the dependency prompt during scaffolding.
|
|
246
249
|
|
|
247
|
-
Supported types: `skill`, `agent`, `rule`, `hook`, `memory-template`, `mcp-config`, `bundle`.
|
|
250
|
+
Supported types: `skill`, `agent`, `rule`, `hook`, `memory-template`, `mcp-config`, `plugin`, `bundle`.
|
|
248
251
|
|
|
249
252
|
This creates a directory with:
|
|
250
253
|
|
|
@@ -363,8 +366,8 @@ atk list --user
|
|
|
363
366
|
atk outdated --user
|
|
364
367
|
atk update --user
|
|
365
368
|
|
|
366
|
-
# Move
|
|
367
|
-
atk move my-skill --to user
|
|
369
|
+
# Move project installs to your user scope, or back
|
|
370
|
+
atk move my-skill my-rule --to user
|
|
368
371
|
atk move my-skill --to project
|
|
369
372
|
```
|
|
370
373
|
|
|
@@ -57,12 +57,13 @@
|
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"flags": "-s, --sort [sort]",
|
|
60
|
-
"description": "Order by name, type, version, or
|
|
60
|
+
"description": "Order by name, type, version, installs or stars (most first); interactively the s key changes it, and --json keeps registry order without it",
|
|
61
61
|
"choices": [
|
|
62
62
|
"name",
|
|
63
63
|
"type",
|
|
64
64
|
"version",
|
|
65
|
-
"installs"
|
|
65
|
+
"installs",
|
|
66
|
+
"stars"
|
|
66
67
|
]
|
|
67
68
|
},
|
|
68
69
|
{
|
|
@@ -189,9 +190,13 @@
|
|
|
189
190
|
{
|
|
190
191
|
"description": "Asset or bundle name; accepts @org/name",
|
|
191
192
|
"name": "<name>"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"description": "More to deprecate (or undo) in the same pull request, with the same reason and replacement",
|
|
196
|
+
"name": "[names...]"
|
|
192
197
|
}
|
|
193
198
|
],
|
|
194
|
-
"description": "Deprecate
|
|
199
|
+
"description": "Deprecate one or more assets or bundles (or undo a deprecation) via one PR, without publishing a version",
|
|
195
200
|
"file": "deprecate.js",
|
|
196
201
|
"options": [
|
|
197
202
|
{
|
|
@@ -231,6 +236,7 @@
|
|
|
231
236
|
"hook",
|
|
232
237
|
"memory-template",
|
|
233
238
|
"mcp-config",
|
|
239
|
+
"plugin",
|
|
234
240
|
"bundle"
|
|
235
241
|
]
|
|
236
242
|
},
|
|
@@ -406,7 +412,8 @@
|
|
|
406
412
|
"rule",
|
|
407
413
|
"hook",
|
|
408
414
|
"memory-template",
|
|
409
|
-
"mcp-config"
|
|
415
|
+
"mcp-config",
|
|
416
|
+
"plugin"
|
|
410
417
|
]
|
|
411
418
|
},
|
|
412
419
|
{
|
|
@@ -462,7 +469,8 @@
|
|
|
462
469
|
"rule",
|
|
463
470
|
"hook",
|
|
464
471
|
"memory-template",
|
|
465
|
-
"mcp-config"
|
|
472
|
+
"mcp-config",
|
|
473
|
+
"plugin"
|
|
466
474
|
]
|
|
467
475
|
},
|
|
468
476
|
{
|
|
@@ -481,7 +489,7 @@
|
|
|
481
489
|
"name": "init",
|
|
482
490
|
"args": [
|
|
483
491
|
{
|
|
484
|
-
"description": "Asset type (skill, agent, rule, hook, memory-template, mcp-config, bundle)",
|
|
492
|
+
"description": "Asset type (skill, agent, rule, hook, memory-template, mcp-config, plugin, bundle)",
|
|
485
493
|
"name": "<type>"
|
|
486
494
|
}
|
|
487
495
|
],
|
|
@@ -612,7 +620,7 @@
|
|
|
612
620
|
},
|
|
613
621
|
{
|
|
614
622
|
"flags": "-y, --yes",
|
|
615
|
-
"description": "Alias for --all: install every asset from an org scope without prompting; also installs at the scope asked without asking about an asset's preferred scope",
|
|
623
|
+
"description": "Alias for --all: install every asset from an org scope without prompting; also installs at the scope asked without asking about an asset's preferred scope, and installs plugins without confirming their capabilities (a run that can't prompt needs it for a plugin)",
|
|
616
624
|
"defaultValue": false
|
|
617
625
|
}
|
|
618
626
|
]
|
|
@@ -656,7 +664,8 @@
|
|
|
656
664
|
"rule",
|
|
657
665
|
"hook",
|
|
658
666
|
"memory-template",
|
|
659
|
-
"mcp-config"
|
|
667
|
+
"mcp-config",
|
|
668
|
+
"plugin"
|
|
660
669
|
]
|
|
661
670
|
},
|
|
662
671
|
{
|
|
@@ -704,9 +713,13 @@
|
|
|
704
713
|
{
|
|
705
714
|
"description": "Asset name to move (supports @org/name and global:name)",
|
|
706
715
|
"name": "<name>"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"description": "More assets to move with the first; every name is checked before any moves, and a failure stops the rest",
|
|
719
|
+
"name": "[names...]"
|
|
707
720
|
}
|
|
708
721
|
],
|
|
709
|
-
"description": "Move
|
|
722
|
+
"description": "Move installed assets between the project and the user scope",
|
|
710
723
|
"file": "move.js",
|
|
711
724
|
"options": [
|
|
712
725
|
{
|
|
@@ -730,7 +743,7 @@
|
|
|
730
743
|
},
|
|
731
744
|
{
|
|
732
745
|
"flags": "--to <to>",
|
|
733
|
-
"description": "The scope to move the
|
|
746
|
+
"description": "The scope to move the assets to: user (the user root, ~ by default) or project",
|
|
734
747
|
"choices": [
|
|
735
748
|
"project",
|
|
736
749
|
"user"
|
|
@@ -738,14 +751,15 @@
|
|
|
738
751
|
},
|
|
739
752
|
{
|
|
740
753
|
"flags": "-t, --type [type]",
|
|
741
|
-
"description": "Asset type, when
|
|
754
|
+
"description": "Asset type, when a name is installed as more than one type",
|
|
742
755
|
"choices": [
|
|
743
756
|
"skill",
|
|
744
757
|
"agent",
|
|
745
758
|
"rule",
|
|
746
759
|
"hook",
|
|
747
760
|
"memory-template",
|
|
748
|
-
"mcp-config"
|
|
761
|
+
"mcp-config",
|
|
762
|
+
"plugin"
|
|
749
763
|
]
|
|
750
764
|
}
|
|
751
765
|
]
|
|
@@ -793,7 +807,8 @@
|
|
|
793
807
|
"rule",
|
|
794
808
|
"hook",
|
|
795
809
|
"memory-template",
|
|
796
|
-
"mcp-config"
|
|
810
|
+
"mcp-config",
|
|
811
|
+
"plugin"
|
|
797
812
|
]
|
|
798
813
|
},
|
|
799
814
|
{
|
|
@@ -837,7 +852,8 @@
|
|
|
837
852
|
"rule",
|
|
838
853
|
"hook",
|
|
839
854
|
"memory-template",
|
|
840
|
-
"mcp-config"
|
|
855
|
+
"mcp-config",
|
|
856
|
+
"plugin"
|
|
841
857
|
]
|
|
842
858
|
},
|
|
843
859
|
{
|
|
@@ -854,9 +870,13 @@
|
|
|
854
870
|
{
|
|
855
871
|
"description": "Org-scoped asset or bundle name (e.g. @org/name)",
|
|
856
872
|
"name": "<name>"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"description": "More org-scoped names to promote in the same pull request",
|
|
876
|
+
"name": "[names...]"
|
|
857
877
|
}
|
|
858
878
|
],
|
|
859
|
-
"description": "Promote
|
|
879
|
+
"description": "Promote one or more org-scoped assets or bundles to the global namespace via one PR",
|
|
860
880
|
"file": "promote.js",
|
|
861
881
|
"options": [
|
|
862
882
|
{
|
|
@@ -888,6 +908,7 @@
|
|
|
888
908
|
"hook",
|
|
889
909
|
"memory-template",
|
|
890
910
|
"mcp-config",
|
|
911
|
+
"plugin",
|
|
891
912
|
"bundle"
|
|
892
913
|
]
|
|
893
914
|
},
|
|
@@ -1087,7 +1108,8 @@
|
|
|
1087
1108
|
"rule",
|
|
1088
1109
|
"hook",
|
|
1089
1110
|
"memory-template",
|
|
1090
|
-
"mcp-config"
|
|
1111
|
+
"mcp-config",
|
|
1112
|
+
"plugin"
|
|
1091
1113
|
]
|
|
1092
1114
|
}
|
|
1093
1115
|
]
|
|
@@ -1154,7 +1176,7 @@
|
|
|
1154
1176
|
"name": "schema",
|
|
1155
1177
|
"args": [
|
|
1156
1178
|
{
|
|
1157
|
-
"description": "Schema to show: skill | agent | rule | hook | memory-template | mcp-config | bundle | adapter | lockfile | config | registry",
|
|
1179
|
+
"description": "Schema to show: skill | agent | rule | hook | memory-template | mcp-config | plugin | bundle | adapter | lockfile | config | registry",
|
|
1158
1180
|
"name": "<schema>",
|
|
1159
1181
|
"choices": [
|
|
1160
1182
|
"skill",
|
|
@@ -1163,6 +1185,7 @@
|
|
|
1163
1185
|
"hook",
|
|
1164
1186
|
"memory-template",
|
|
1165
1187
|
"mcp-config",
|
|
1188
|
+
"plugin",
|
|
1166
1189
|
"bundle",
|
|
1167
1190
|
"adapter",
|
|
1168
1191
|
"lockfile",
|
|
@@ -1219,12 +1242,13 @@
|
|
|
1219
1242
|
},
|
|
1220
1243
|
{
|
|
1221
1244
|
"flags": "-s, --sort [sort]",
|
|
1222
|
-
"description": "Order results by relevance, by name, by updated (newest published first), or by installs (most first); deprecated ones always come last",
|
|
1245
|
+
"description": "Order results by relevance, by name, by updated (newest published first), or by installs or stars (most first); deprecated ones always come last",
|
|
1223
1246
|
"choices": [
|
|
1224
1247
|
"relevance",
|
|
1225
1248
|
"name",
|
|
1226
1249
|
"updated",
|
|
1227
|
-
"installs"
|
|
1250
|
+
"installs",
|
|
1251
|
+
"stars"
|
|
1228
1252
|
],
|
|
1229
1253
|
"defaultValue": "relevance"
|
|
1230
1254
|
},
|
|
@@ -1277,6 +1301,55 @@
|
|
|
1277
1301
|
}
|
|
1278
1302
|
]
|
|
1279
1303
|
},
|
|
1304
|
+
{
|
|
1305
|
+
"isDefault": false,
|
|
1306
|
+
"name": "star",
|
|
1307
|
+
"args": [
|
|
1308
|
+
{
|
|
1309
|
+
"description": "Asset or bundle name (supports @org/name and global:name), resolved as atk info resolves it",
|
|
1310
|
+
"name": "<name>"
|
|
1311
|
+
}
|
|
1312
|
+
],
|
|
1313
|
+
"description": "Star an asset or bundle (every version), which counts in its Stars",
|
|
1314
|
+
"file": "star.js",
|
|
1315
|
+
"options": [
|
|
1316
|
+
{
|
|
1317
|
+
"flags": "-j, --json",
|
|
1318
|
+
"description": "Output raw JSON (for scripting and CI)",
|
|
1319
|
+
"defaultValue": false
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"flags": "-o, --org [org]",
|
|
1323
|
+
"description": "The asset's or bundle's org, as @org/name gives it"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"flags": "-t, --type [type]",
|
|
1327
|
+
"description": "The asset of that type, rather than a bundle of the name (skill, agent, rule, hook, ...)",
|
|
1328
|
+
"choices": [
|
|
1329
|
+
"skill",
|
|
1330
|
+
"agent",
|
|
1331
|
+
"rule",
|
|
1332
|
+
"hook",
|
|
1333
|
+
"memory-template",
|
|
1334
|
+
"mcp-config",
|
|
1335
|
+
"plugin"
|
|
1336
|
+
]
|
|
1337
|
+
}
|
|
1338
|
+
]
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"isDefault": false,
|
|
1342
|
+
"name": "stars",
|
|
1343
|
+
"description": "List the assets and bundles you starred, newest first",
|
|
1344
|
+
"file": "stars.js",
|
|
1345
|
+
"options": [
|
|
1346
|
+
{
|
|
1347
|
+
"flags": "-j, --json",
|
|
1348
|
+
"description": "Output raw JSON (for scripting and CI)",
|
|
1349
|
+
"defaultValue": false
|
|
1350
|
+
}
|
|
1351
|
+
]
|
|
1352
|
+
},
|
|
1280
1353
|
{
|
|
1281
1354
|
"isDefault": false,
|
|
1282
1355
|
"name": "sync",
|
|
@@ -1331,7 +1404,8 @@
|
|
|
1331
1404
|
"rule",
|
|
1332
1405
|
"hook",
|
|
1333
1406
|
"memory-template",
|
|
1334
|
-
"mcp-config"
|
|
1407
|
+
"mcp-config",
|
|
1408
|
+
"plugin"
|
|
1335
1409
|
]
|
|
1336
1410
|
},
|
|
1337
1411
|
{
|
|
@@ -1375,7 +1449,8 @@
|
|
|
1375
1449
|
"rule",
|
|
1376
1450
|
"hook",
|
|
1377
1451
|
"memory-template",
|
|
1378
|
-
"mcp-config"
|
|
1452
|
+
"mcp-config",
|
|
1453
|
+
"plugin"
|
|
1379
1454
|
]
|
|
1380
1455
|
},
|
|
1381
1456
|
{
|
|
@@ -1442,7 +1517,8 @@
|
|
|
1442
1517
|
"rule",
|
|
1443
1518
|
"hook",
|
|
1444
1519
|
"memory-template",
|
|
1445
|
-
"mcp-config"
|
|
1520
|
+
"mcp-config",
|
|
1521
|
+
"plugin"
|
|
1446
1522
|
]
|
|
1447
1523
|
},
|
|
1448
1524
|
{
|
|
@@ -1491,7 +1567,8 @@
|
|
|
1491
1567
|
"rule",
|
|
1492
1568
|
"hook",
|
|
1493
1569
|
"memory-template",
|
|
1494
|
-
"mcp-config"
|
|
1570
|
+
"mcp-config",
|
|
1571
|
+
"plugin"
|
|
1495
1572
|
]
|
|
1496
1573
|
},
|
|
1497
1574
|
{
|
|
@@ -1508,9 +1585,13 @@
|
|
|
1508
1585
|
{
|
|
1509
1586
|
"description": "Asset or bundle name; accepts @org/name and optional @version (e.g. my-skill@1.0.0)",
|
|
1510
1587
|
"name": "<name>"
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
"description": "More to unpublish in the same pull request (each may carry @org/ and @version)",
|
|
1591
|
+
"name": "[names...]"
|
|
1511
1592
|
}
|
|
1512
1593
|
],
|
|
1513
|
-
"description": "Unpublish
|
|
1594
|
+
"description": "Unpublish one or more assets or bundles from the registry via one PR",
|
|
1514
1595
|
"file": "unpublish.js",
|
|
1515
1596
|
"options": [
|
|
1516
1597
|
{
|
|
@@ -1542,6 +1623,7 @@
|
|
|
1542
1623
|
"hook",
|
|
1543
1624
|
"memory-template",
|
|
1544
1625
|
"mcp-config",
|
|
1626
|
+
"plugin",
|
|
1545
1627
|
"bundle"
|
|
1546
1628
|
]
|
|
1547
1629
|
},
|
|
@@ -1552,6 +1634,42 @@
|
|
|
1552
1634
|
}
|
|
1553
1635
|
]
|
|
1554
1636
|
},
|
|
1637
|
+
{
|
|
1638
|
+
"isDefault": false,
|
|
1639
|
+
"name": "unstar",
|
|
1640
|
+
"args": [
|
|
1641
|
+
{
|
|
1642
|
+
"description": "Asset or bundle name (supports @org/name and global:name), resolved as atk info resolves it",
|
|
1643
|
+
"name": "<name>"
|
|
1644
|
+
}
|
|
1645
|
+
],
|
|
1646
|
+
"description": "Remove your star from an asset or bundle",
|
|
1647
|
+
"file": "unstar.js",
|
|
1648
|
+
"options": [
|
|
1649
|
+
{
|
|
1650
|
+
"flags": "-j, --json",
|
|
1651
|
+
"description": "Output raw JSON (for scripting and CI)",
|
|
1652
|
+
"defaultValue": false
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
"flags": "-o, --org [org]",
|
|
1656
|
+
"description": "The asset's or bundle's org, as @org/name gives it"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"flags": "-t, --type [type]",
|
|
1660
|
+
"description": "The asset of that type, rather than a bundle of the name (skill, agent, rule, hook, ...)",
|
|
1661
|
+
"choices": [
|
|
1662
|
+
"skill",
|
|
1663
|
+
"agent",
|
|
1664
|
+
"rule",
|
|
1665
|
+
"hook",
|
|
1666
|
+
"memory-template",
|
|
1667
|
+
"mcp-config",
|
|
1668
|
+
"plugin"
|
|
1669
|
+
]
|
|
1670
|
+
}
|
|
1671
|
+
]
|
|
1672
|
+
},
|
|
1555
1673
|
{
|
|
1556
1674
|
"isDefault": false,
|
|
1557
1675
|
"name": "update",
|
|
@@ -1610,13 +1728,19 @@
|
|
|
1610
1728
|
"rule",
|
|
1611
1729
|
"hook",
|
|
1612
1730
|
"memory-template",
|
|
1613
|
-
"mcp-config"
|
|
1731
|
+
"mcp-config",
|
|
1732
|
+
"plugin"
|
|
1614
1733
|
]
|
|
1615
1734
|
},
|
|
1616
1735
|
{
|
|
1617
1736
|
"flags": "--user",
|
|
1618
1737
|
"description": "Use the user scope (the user root, ~ by default) instead of the project",
|
|
1619
1738
|
"defaultValue": false
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"flags": "-y, --yes",
|
|
1742
|
+
"description": "Update plugins without confirming their capabilities (a run that can't prompt needs it)",
|
|
1743
|
+
"defaultValue": false
|
|
1620
1744
|
}
|
|
1621
1745
|
]
|
|
1622
1746
|
},
|
|
@@ -1708,7 +1832,8 @@
|
|
|
1708
1832
|
"rule",
|
|
1709
1833
|
"hook",
|
|
1710
1834
|
"memory-template",
|
|
1711
|
-
"mcp-config"
|
|
1835
|
+
"mcp-config",
|
|
1836
|
+
"plugin"
|
|
1712
1837
|
]
|
|
1713
1838
|
},
|
|
1714
1839
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browse.d.ts","sourceRoot":"","sources":["../../src/commands/browse.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"browse.d.ts","sourceRoot":"","sources":["../../src/commands/browse.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0DxB,eAAO,MAAM,WAAW,4CAA4C,CAAC;AASrE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;iBAgElB,CAAC;AAEH,eAAO,MAAM,IAAI,gDAKf,CAAC;AAkBH,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;IAC3B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;CAClC,CAAC;AAKF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,IAAI,EAAE,CAAC,SAAS,CAAC,EACjB,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAChF,EAAE,KAAK,+BA4BP"}
|
package/build/commands/browse.js
CHANGED
|
@@ -7,7 +7,7 @@ import FilterBar from '../components/FilterBar.js';
|
|
|
7
7
|
import HelpBar, { helpBarText } from '../components/HelpBar.js';
|
|
8
8
|
import { errorGuidanceRows, ErrorView, Spinner } from '../components/index.js';
|
|
9
9
|
import InstallConfirmBar, { resultLine } from '../components/InstallConfirmBar.js';
|
|
10
|
-
import { computeSortedItems, TYPE_TAB_LABELS, TYPE_TABS, useBrowseInput, useBrowseState, } from '../hooks/useBrowseState.js';
|
|
10
|
+
import { computeSortedItems, isCountSort, TYPE_TAB_LABELS, TYPE_TABS, useBrowseInput, useBrowseState, } from '../hooks/useBrowseState.js';
|
|
11
11
|
import { useCommand } from '../hooks/useCommand.js';
|
|
12
12
|
import { useResolvedScope } from '../hooks/useResolvedScope.js';
|
|
13
13
|
import { loadConfig } from '../lib/config.js';
|
|
@@ -20,6 +20,7 @@ import { executeInstallPlanForTools } from '../lib/multi-tool-install.js';
|
|
|
20
20
|
import { formatOrgName, resolveActiveOrg } from '../lib/org.js';
|
|
21
21
|
import { renderJson, useNonInteractive } from '../lib/output.js';
|
|
22
22
|
import { argument, option } from '../lib/pastel/index.js';
|
|
23
|
+
import { pluginsToReview, refuseUnreviewedPlugins } from '../lib/plugin-review.js';
|
|
23
24
|
import { fetchRegistry, filterVisibleAssets, filterVisibleBundles, findBundle } from '../lib/registry.js';
|
|
24
25
|
import { resolveBundleInstallPlan, resolveInstallPlan } from '../lib/resolver.js';
|
|
25
26
|
import { resolveScope, scopeLabel } from '../lib/scope.js';
|
|
@@ -31,6 +32,7 @@ const UNRESOLVED_TOOLS = { error: new Error('The tools have not resolved yet.')
|
|
|
31
32
|
const BROWSE_SORT_FIELD_LABELS = {
|
|
32
33
|
installs: 'Installs',
|
|
33
34
|
name: 'Name',
|
|
35
|
+
stars: 'Stars',
|
|
34
36
|
type: 'Type',
|
|
35
37
|
version: 'Version',
|
|
36
38
|
};
|
|
@@ -71,11 +73,11 @@ export const options = z.object({
|
|
|
71
73
|
description: 'Bypass the registry cache and fetch fresh data',
|
|
72
74
|
})),
|
|
73
75
|
sort: z
|
|
74
|
-
.enum(['name', 'type', 'version', 'installs'])
|
|
76
|
+
.enum(['name', 'type', 'version', 'installs', 'stars'])
|
|
75
77
|
.optional()
|
|
76
78
|
.describe(option({
|
|
77
79
|
alias: 's',
|
|
78
|
-
description: 'Order by name, type, version, or
|
|
80
|
+
description: 'Order by name, type, version, installs or stars (most first); interactively the s key changes it, and --json keeps registry order without it',
|
|
79
81
|
})),
|
|
80
82
|
type: z
|
|
81
83
|
.string()
|
|
@@ -323,11 +325,11 @@ function BrowseJson({ cliOrg, filterArg, projectRoot, refresh, sort, typeOpt, us
|
|
|
323
325
|
});
|
|
324
326
|
bundles = bundles.filter((b) => b.name.toLowerCase().includes(query) || b.description.toLowerCase().includes(query));
|
|
325
327
|
}
|
|
326
|
-
// --sort orders each list as the interactive view would. Without it, or with installs
|
|
327
|
-
// counts, they keep registry order, the default.
|
|
328
|
-
const field = sort
|
|
328
|
+
// --sort orders each list as the interactive view would. Without it, or with installs or stars
|
|
329
|
+
// and no counts, they keep registry order, the default.
|
|
330
|
+
const field = sort && isCountSort(sort) && !usage ? undefined : sort;
|
|
329
331
|
if (field) {
|
|
330
|
-
const direction = field
|
|
332
|
+
const direction = isCountSort(field) ? 'desc' : 'asc';
|
|
331
333
|
assets = computeSortedItems(assets.map((data) => ({ data, kind: 'asset' })), field, direction, usage).flatMap((item) => (item.kind === 'asset' ? [item.data] : []));
|
|
332
334
|
bundles = computeSortedItems(bundles.map((data) => ({ data, kind: 'bundle' })), field, direction, usage).flatMap((item) => (item.kind === 'bundle' ? [item.data] : []));
|
|
333
335
|
}
|
|
@@ -389,6 +391,8 @@ async function executeInstallFromBrowse({ assetName, assetOrg, dispatch, isCance
|
|
|
389
391
|
const plan = itemKind === 'bundle'
|
|
390
392
|
? resolveBundleInstallPlan(registry, bundle)
|
|
391
393
|
: resolveInstallPlan(registry, assetName, undefined, undefined, assetOrg);
|
|
394
|
+
// Browse can't show a plugin's review: `atk install <name>` does.
|
|
395
|
+
refuseUnreviewedPlugins(pluginsToReview(plan, await readLockfile(projectDir), tools.map((t) => t.adapter)), { yesWaives: false });
|
|
392
396
|
const toolResults = await executeInstallPlanForTools(plan, tools, {
|
|
393
397
|
...(itemKind === 'bundle' && bundle
|
|
394
398
|
? { bundleOrigin: { name: bundle.name, ...(bundle.org ? { org: bundle.org } : {}), version: bundle.version } }
|
|
@@ -452,6 +456,7 @@ async function executeSetInstallFromBrowse({ dispatch, isCancelled, items, regis
|
|
|
452
456
|
type: item.data.type,
|
|
453
457
|
});
|
|
454
458
|
const planned = planTargetsInstall(registry, targets, lockfile, tools, { force: false, projectDir });
|
|
459
|
+
refuseUnreviewedPlugins(pluginsToReview(planned.plan, lockfile, tools.map((t) => t.adapter)), { yesWaives: false });
|
|
455
460
|
const toolResults = await installPlannedTargets(planned, tools, {
|
|
456
461
|
onProgress: (message) => {
|
|
457
462
|
if (!isCancelled())
|