@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/bin.js
CHANGED
|
@@ -4708,8 +4708,22 @@ async function defaultExists(path5) {
|
|
|
4708
4708
|
return false;
|
|
4709
4709
|
}
|
|
4710
4710
|
}
|
|
4711
|
+
function assertInstallable(agent) {
|
|
4712
|
+
if (agent.status === "draft" || agent.installable === false) {
|
|
4713
|
+
throw new Error(
|
|
4714
|
+
`"${agent.id}" is a catalog draft \u2014 not installable yet. Browse the roadmap at https://registry.agentskit.io/r/catalog.json`
|
|
4715
|
+
);
|
|
4716
|
+
}
|
|
4717
|
+
if (agent.status === "alpha") {
|
|
4718
|
+
console.warn(`[agentskit] "${agent.id}" is alpha \u2014 experimental; review before production use.`);
|
|
4719
|
+
}
|
|
4720
|
+
if (agent.status === "deprecated") {
|
|
4721
|
+
throw new Error(`"${agent.id}" is deprecated and no longer installable from the registry.`);
|
|
4722
|
+
}
|
|
4723
|
+
}
|
|
4711
4724
|
async function addAgent(id, options = {}) {
|
|
4712
4725
|
const agent = await fetchAgent(id, options);
|
|
4726
|
+
assertInstallable(agent);
|
|
4713
4727
|
const baseDir = options.outDir ?? "agents";
|
|
4714
4728
|
const targetDir = join(baseDir, id);
|
|
4715
4729
|
const exists = options.existsImpl ?? defaultExists;
|
|
@@ -5695,5 +5709,5 @@ function createCli() {
|
|
|
5695
5709
|
}
|
|
5696
5710
|
|
|
5697
5711
|
export { ChatApp, HookDispatcher, McpClient, applyPolicyToTool, applyPolicyToTools, bridgeMcpServers, buildRagFromConfig, computeCost, configHooksToHandlers, createCli, createOpenAiEmbedder, defaultPolicy, derivePreview, disposeMcpClients, evaluatePolicy, findLatestSession, findSession, forkSession, generateSessionId, getPricing, indexSources, listSessions, loadConfig, loadPlugins, mergePluginsIntoBundle, registerPricing, renameSession, renderChatHeader, renderReport, resolveChatProvider, resolveSession, runAgent, runDoctor, sessionFilePath, startDev, startTunnel, writeSessionMeta, writeStarterProject };
|
|
5698
|
-
//# sourceMappingURL=chunk-
|
|
5699
|
-
//# sourceMappingURL=chunk-
|
|
5712
|
+
//# sourceMappingURL=chunk-RNOYLQCV.js.map
|
|
5713
|
+
//# sourceMappingURL=chunk-RNOYLQCV.js.map
|