@xera-ai/cli 0.9.1 → 0.9.2
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/index.js +11 -9
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -266,6 +266,7 @@ var TEMPLATE_DIR = TEMPLATE_ROOT;
|
|
|
266
266
|
|
|
267
267
|
// src/commands/init.ts
|
|
268
268
|
var require2 = createRequire(import.meta.url);
|
|
269
|
+
var CLI_VERSION = require2("../package.json").version;
|
|
269
270
|
function cancel2() {
|
|
270
271
|
p.cancel("Aborted.");
|
|
271
272
|
process.exit(0);
|
|
@@ -414,7 +415,7 @@ async function initCommand(opts) {
|
|
|
414
415
|
const skillsDir = join3(skillsSrc, "..");
|
|
415
416
|
for (const target of [".claude/skills", ".claude/commands"]) {
|
|
416
417
|
copyDir(skillsDir, join3(cwd, target));
|
|
417
|
-
for (const name of ["package.json", "version.json"]) {
|
|
418
|
+
for (const name of ["package.json", "version.json", "CHANGELOG.md"]) {
|
|
418
419
|
const f = join3(cwd, target, name);
|
|
419
420
|
if (existsSync3(f))
|
|
420
421
|
unlinkSync(f);
|
|
@@ -445,12 +446,12 @@ async function initCommand(opts) {
|
|
|
445
446
|
pkg.scripts["xera:heal-prepare"] = "xera-internal heal-prepare";
|
|
446
447
|
pkg.scripts["xera:disputes"] = "xera-internal disputes";
|
|
447
448
|
pkg.dependencies = pkg.dependencies ?? {};
|
|
448
|
-
pkg.dependencies["@xera-ai/core"] =
|
|
449
|
-
pkg.dependencies["@xera-ai/prompts"] =
|
|
449
|
+
pkg.dependencies["@xera-ai/core"] = `^${CLI_VERSION}`;
|
|
450
|
+
pkg.dependencies["@xera-ai/prompts"] = `^${CLI_VERSION}`;
|
|
450
451
|
if (wantsWeb)
|
|
451
|
-
pkg.dependencies["@xera-ai/web"] =
|
|
452
|
+
pkg.dependencies["@xera-ai/web"] = `^${CLI_VERSION}`;
|
|
452
453
|
if (wantsHttp)
|
|
453
|
-
pkg.dependencies["@xera-ai/http"] =
|
|
454
|
+
pkg.dependencies["@xera-ai/http"] = `^${CLI_VERSION}`;
|
|
454
455
|
pkg.devDependencies = pkg.devDependencies ?? {};
|
|
455
456
|
pkg.devDependencies["@playwright/test"] = "^1.60.0";
|
|
456
457
|
pkg.devDependencies["@types/node"] = "^25.8.0";
|
|
@@ -498,6 +499,7 @@ import { join as join4 } from "path";
|
|
|
498
499
|
import * as p2 from "@clack/prompts";
|
|
499
500
|
import pc3 from "picocolors";
|
|
500
501
|
var require3 = createRequire2(import.meta.url);
|
|
502
|
+
var CLI_VERSION2 = require3("../package.json").version;
|
|
501
503
|
async function initUpdateCommand(_opts) {
|
|
502
504
|
const cwd = process.cwd();
|
|
503
505
|
p2.intro(pc3.cyan("xera init --update"));
|
|
@@ -508,12 +510,12 @@ async function initUpdateCommand(_opts) {
|
|
|
508
510
|
}
|
|
509
511
|
const pkg = JSON.parse(readFileSync4(pkgPath, "utf8"));
|
|
510
512
|
pkg.dependencies = pkg.dependencies ?? {};
|
|
511
|
-
pkg.dependencies["@xera-ai/core"] =
|
|
512
|
-
pkg.dependencies["@xera-ai/prompts"] =
|
|
513
|
+
pkg.dependencies["@xera-ai/core"] = `^${CLI_VERSION2}`;
|
|
514
|
+
pkg.dependencies["@xera-ai/prompts"] = `^${CLI_VERSION2}`;
|
|
513
515
|
if (pkg.dependencies["@xera-ai/web"])
|
|
514
|
-
pkg.dependencies["@xera-ai/web"] =
|
|
516
|
+
pkg.dependencies["@xera-ai/web"] = `^${CLI_VERSION2}`;
|
|
515
517
|
if (pkg.dependencies["@xera-ai/http"])
|
|
516
|
-
pkg.dependencies["@xera-ai/http"] =
|
|
518
|
+
pkg.dependencies["@xera-ai/http"] = `^${CLI_VERSION2}`;
|
|
517
519
|
pkg.scripts = pkg.scripts ?? {};
|
|
518
520
|
pkg.scripts["xera:auth-setup"] = "xera-internal auth-setup";
|
|
519
521
|
pkg.scripts["xera:graph-record"] = "xera-internal graph-record";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xera-ai/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"xera": "./bin/xera"
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"typecheck": "tsc --noEmit"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@xera-ai/core": "^0.9.
|
|
19
|
-
"@xera-ai/skills": "^0.9.
|
|
18
|
+
"@xera-ai/core": "^0.9.2",
|
|
19
|
+
"@xera-ai/skills": "^0.9.2",
|
|
20
20
|
"@clack/prompts": "1.4.0",
|
|
21
21
|
"cac": "7.0.0",
|
|
22
22
|
"picocolors": "1.1.1"
|