@xevy/cli 0.1.2 → 0.1.3

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/bin/xevy.mjs +12 -2
  2. package/package.json +1 -1
package/bin/xevy.mjs CHANGED
@@ -194,12 +194,21 @@ function writeCredentials(base, token) {
194
194
  async function setup(opts) {
195
195
  console.log("Setting up Xevy for pi\n");
196
196
 
197
- // 1. pi + the extension
197
+ // 1. Ensure pi is installed (installs it if missing).
198
198
  ensurePi();
199
+
200
+ // 2. Extensions:
201
+ // • xevy.ts → ~/.xevy/extensions (tools/workflow; loaded by `xevy`)
202
+ // • xevy-model.ts → pi's GLOBAL extensions dir, so the xevy/* models are
203
+ // available in EVERY pi session (plain `pi` too), not just via `xevy`.
199
204
  await downloadExtension(opts.base, XEVY_EXTENSION_FILE, XEVY_EXTENSIONS_DIR, [
200
205
  "EXTENSION_VERSION",
201
206
  "registerCommand",
202
207
  ]);
208
+ await downloadExtension(opts.base, "xevy-model.ts", PI_EXTENSION_DIR, [
209
+ "xevyModelExtension",
210
+ "registerCommand",
211
+ ]);
203
212
 
204
213
  // 2. API key — with a direct link to the exact page to generate one.
205
214
  console.log("\nGet your API key (this link opens the API keys tab directly):");
@@ -215,7 +224,8 @@ async function setup(opts) {
215
224
  console.log(`✓ API key stored at ${CREDENTIALS_FILE} (key not shown).`);
216
225
 
217
226
  console.log("\n✓ Setup complete.");
218
- console.log(" • Run `xevy` to open pi with the Xevy extension loaded.");
227
+ console.log(" • Xevy models (xevy/auto, xevy/fast, …) are available in any pi session no /login needed.");
228
+ console.log(" • Run `xevy` to open pi with the Xevy tools + models loaded.");
219
229
  if (opts.base !== DEFAULT_BASE) console.log(` • Host: ${opts.base}`);
220
230
  }
221
231
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xevy/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Xevy CLI — `xevy setup` installs the pi agent + the Xevy pi extension and stores your API key; `xevy` opens pi with it.",
5
5
  "type": "module",
6
6
  "keywords": [