allagents 0.13.0 → 0.13.1

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -22790,6 +22790,20 @@ async function getMarketplace(name) {
22790
22790
  const registry = await loadRegistry();
22791
22791
  return registry.marketplaces[name] || null;
22792
22792
  }
22793
+ async function findMarketplace(name, sourceLocation) {
22794
+ const registry = await loadRegistry();
22795
+ if (registry.marketplaces[name]) {
22796
+ return registry.marketplaces[name];
22797
+ }
22798
+ if (sourceLocation) {
22799
+ for (const entry of Object.values(registry.marketplaces)) {
22800
+ if (entry.source.location === sourceLocation) {
22801
+ return entry;
22802
+ }
22803
+ }
22804
+ }
22805
+ return null;
22806
+ }
22793
22807
  async function updateMarketplace(name) {
22794
22808
  const registry = await loadRegistry();
22795
22809
  const results = [];
@@ -22985,7 +22999,8 @@ async function resolvePluginSpecWithAutoRegister(spec) {
22985
22999
  };
22986
23000
  }
22987
23001
  const { plugin: pluginName, marketplaceName, owner, repo, subpath } = parsed;
22988
- let marketplace = await getMarketplace(marketplaceName);
23002
+ const sourceLocation = owner && repo ? `${owner}/${repo}` : undefined;
23003
+ let marketplace = await findMarketplace(marketplaceName, sourceLocation);
22989
23004
  if (!marketplace) {
22990
23005
  const sourceToRegister = owner && repo ? `${owner}/${repo}` : marketplaceName;
22991
23006
  const autoRegResult = await autoRegisterMarketplace(sourceToRegister);
@@ -24310,7 +24325,7 @@ var package_default;
24310
24325
  var init_package = __esm(() => {
24311
24326
  package_default = {
24312
24327
  name: "allagents",
24313
- version: "0.13.0",
24328
+ version: "0.13.1",
24314
24329
  description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
24315
24330
  type: "module",
24316
24331
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allagents",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
5
5
  "type": "module",
6
6
  "bin": {