@agentskit/cli 0.13.11 → 0.13.13
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/README.md +13 -0
- package/dist/bin.cjs +14 -0
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-LQVBQ374.js → chunk-RNOYLQCV.js} +16 -2
- package/dist/chunk-RNOYLQCV.js.map +1 -0
- package/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +14 -14
- package/dist/chunk-LQVBQ374.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4717,8 +4717,22 @@ async function defaultExists(path5) {
|
|
|
4717
4717
|
return false;
|
|
4718
4718
|
}
|
|
4719
4719
|
}
|
|
4720
|
+
function assertInstallable(agent) {
|
|
4721
|
+
if (agent.status === "draft" || agent.installable === false) {
|
|
4722
|
+
throw new Error(
|
|
4723
|
+
`"${agent.id}" is a catalog draft \u2014 not installable yet. Browse the roadmap at https://registry.agentskit.io/r/catalog.json`
|
|
4724
|
+
);
|
|
4725
|
+
}
|
|
4726
|
+
if (agent.status === "alpha") {
|
|
4727
|
+
console.warn(`[agentskit] "${agent.id}" is alpha \u2014 experimental; review before production use.`);
|
|
4728
|
+
}
|
|
4729
|
+
if (agent.status === "deprecated") {
|
|
4730
|
+
throw new Error(`"${agent.id}" is deprecated and no longer installable from the registry.`);
|
|
4731
|
+
}
|
|
4732
|
+
}
|
|
4720
4733
|
async function addAgent(id, options = {}) {
|
|
4721
4734
|
const agent = await fetchAgent(id, options);
|
|
4735
|
+
assertInstallable(agent);
|
|
4722
4736
|
const baseDir = options.outDir ?? "agents";
|
|
4723
4737
|
const targetDir = path.join(baseDir, id);
|
|
4724
4738
|
const exists = options.existsImpl ?? defaultExists;
|