@cavelon/cli 0.2.9 → 0.2.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/dist/setup-agents.js
CHANGED
|
@@ -174,8 +174,8 @@ async function pluginState(kind, program, env) {
|
|
|
174
174
|
return { marketplace: names.includes(MARKETPLACE), installed: Boolean(mine), enabled: mine?.enabled !== false };
|
|
175
175
|
}
|
|
176
176
|
const installed = (plugins.value?.installed ?? []).find((p) => p.pluginId === PLUGIN_ID && p.installed !== false);
|
|
177
|
-
const
|
|
178
|
-
return { marketplace:
|
|
177
|
+
const marketplace = (markets.value?.marketplaces ?? []).find((m) => m.name === MARKETPLACE);
|
|
178
|
+
return { marketplace: Boolean(marketplace), installed: Boolean(installed), enabled: installed?.enabled !== false, marketplaceSource: marketplace?.marketplaceSource };
|
|
179
179
|
}
|
|
180
180
|
function firstLine(text) {
|
|
181
181
|
return (text.split(/\r?\n/).find((l) => l.trim()) ?? "").trim().slice(0, 300);
|
|
@@ -292,8 +292,13 @@ export async function planAgent(agent, found, env, command, skills, platform = p
|
|
|
292
292
|
if (!state.marketplace && commands.marketplaceAdd.length) {
|
|
293
293
|
plan.changes.push({ kind: "marketplace", summary: "add the Cavelon plugin marketplace", target: display(program, commands.marketplaceAdd), outcome: "planned" });
|
|
294
294
|
}
|
|
295
|
-
if (update && state.marketplace && commands.marketplaceUpdate.length)
|
|
296
|
-
|
|
295
|
+
if (update && state.marketplace && commands.marketplaceUpdate.length) {
|
|
296
|
+
const local = kind === "codex" && state.marketplaceSource?.sourceType === "local";
|
|
297
|
+
plan.changes.push(local
|
|
298
|
+
? { kind: "marketplace", summary: "keep the local Cavelon plugin marketplace", target: state.marketplaceSource?.source ?? MARKETPLACE, outcome: "unchanged",
|
|
299
|
+
reason: "refresh the plugin from the existing local files; unpack the new offline release or update your checkout first to use a newer version" }
|
|
300
|
+
: { kind: "marketplace", summary: "refresh the Cavelon plugin marketplace", target: display(program, commands.marketplaceUpdate), outcome: "planned", refresh: true });
|
|
301
|
+
}
|
|
297
302
|
const refresh = update && state.installed && state.enabled;
|
|
298
303
|
plan.changes.push({
|
|
299
304
|
kind: "plugin",
|
package/dist/update-check.js
CHANGED
|
@@ -222,7 +222,7 @@ async function initSkillsVersion(cwd) {
|
|
|
222
222
|
}
|
|
223
223
|
const PLUGIN_UPDATE = {
|
|
224
224
|
claude: "`claude plugin marketplace update cavelon-dev-kit` and `claude plugin update cavelon@cavelon-dev-kit`",
|
|
225
|
-
codex: "`
|
|
225
|
+
codex: "`cavelon setup --update --agents codex`",
|
|
226
226
|
};
|
|
227
227
|
const INSTALL_DOCS = `https://github.com/${REPOSITORY}/blob/main/docs/install`;
|
|
228
228
|
function pluginUpdate(client) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cavelon/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "The cavelon binary: CLI and local MCP server for building Cavelon solutions with a coding agent.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/goodguys-gmbh/cavelon-dev-kit",
|