@codexa/cli 8.6.9 → 8.6.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/commands/utils.ts +5 -2
- package/package.json +1 -1
- package/workflow.ts +20 -1
package/commands/utils.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { getDb } from "../db/connection";
|
|
|
2
2
|
import { initSchema, getPatternsForFiles, getLastSessionSummary, getSessionSummaries, getRelatedDecisions, findContradictions, getArchitecturalAnalysisForSpec, getUtilitiesForContext } from "../db/schema";
|
|
3
3
|
import { getKnowledgeForTask } from "./knowledge";
|
|
4
4
|
import { getLibContextsForAgent } from "./research";
|
|
5
|
+
import pkg from "../package.json";
|
|
5
6
|
|
|
6
7
|
// v8.3: Limite maximo de contexto para subagents (16KB)
|
|
7
8
|
const MAX_CONTEXT_SIZE = 16384;
|
|
@@ -108,8 +109,9 @@ export function status(json: boolean = false): void {
|
|
|
108
109
|
|
|
109
110
|
if (!spec) {
|
|
110
111
|
if (json) {
|
|
111
|
-
console.log(JSON.stringify({ active: false, message: "Nenhuma feature ativa" }));
|
|
112
|
+
console.log(JSON.stringify({ active: false, version: pkg.version, message: "Nenhuma feature ativa" }));
|
|
112
113
|
} else {
|
|
114
|
+
console.log(`\nCodexa Workflow v${pkg.version}`);
|
|
113
115
|
console.log("\nNenhuma feature ativa.");
|
|
114
116
|
console.log("Inicie com: /codexa:feature\n");
|
|
115
117
|
}
|
|
@@ -130,6 +132,7 @@ export function status(json: boolean = false): void {
|
|
|
130
132
|
console.log(
|
|
131
133
|
JSON.stringify({
|
|
132
134
|
active: true,
|
|
135
|
+
version: pkg.version,
|
|
133
136
|
spec,
|
|
134
137
|
context,
|
|
135
138
|
progress: {
|
|
@@ -146,7 +149,7 @@ export function status(json: boolean = false): void {
|
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
console.log(`\n${"=".repeat(60)}`);
|
|
149
|
-
console.log(`STATUS: ${spec.name}`);
|
|
152
|
+
console.log(`Codexa Workflow v${pkg.version} | STATUS: ${spec.name}`);
|
|
150
153
|
console.log(`${"=".repeat(60)}`);
|
|
151
154
|
console.log(`\nSpec ID: ${spec.id}`);
|
|
152
155
|
console.log(`Fase: ${spec.phase}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codexa/cli",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.10",
|
|
4
4
|
"description": "Orchestrated workflow system for Claude Code - manages feature development through parallel subagents with structured phases, gates, and quality enforcement.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/workflow.ts
CHANGED
|
@@ -38,14 +38,33 @@ import {
|
|
|
38
38
|
architectCancel,
|
|
39
39
|
} from "./commands/architect";
|
|
40
40
|
import { initSchema } from "./db/schema";
|
|
41
|
+
import { execSync } from "child_process";
|
|
42
|
+
import { existsSync, readFileSync } from "fs";
|
|
43
|
+
import { join } from "path";
|
|
41
44
|
import pkg from "./package.json";
|
|
42
45
|
|
|
46
|
+
function checkVersionSync(): void {
|
|
47
|
+
try {
|
|
48
|
+
const gitRoot = execSync("git rev-parse --show-toplevel", { encoding: "utf-8" }).trim();
|
|
49
|
+
const pluginJson = join(gitRoot, "plugins", "codexa-workflow", ".claude-plugin", "plugin.json");
|
|
50
|
+
if (!existsSync(pluginJson)) return;
|
|
51
|
+
const plugin = JSON.parse(readFileSync(pluginJson, "utf-8"));
|
|
52
|
+
if (plugin.version && plugin.version !== pkg.version) {
|
|
53
|
+
console.warn(`\n⚠ Versao desatualizada: CLI=${pkg.version} Plugin=${plugin.version}`);
|
|
54
|
+
console.warn(` Atualize o CLI: bun add -g @codexa/cli\n`);
|
|
55
|
+
}
|
|
56
|
+
} catch {
|
|
57
|
+
// Not in a git repo or plugin not found — skip silently
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
43
61
|
const program = new Command();
|
|
44
62
|
|
|
45
63
|
program
|
|
46
64
|
.name("codexa")
|
|
47
65
|
.description(`Codexa Workflow v${pkg.version} - Sistema de workflow para Claude Code`)
|
|
48
|
-
.version(pkg.version)
|
|
66
|
+
.version(pkg.version)
|
|
67
|
+
.hook("preAction", () => checkVersionSync());
|
|
49
68
|
|
|
50
69
|
// ═══════════════════════════════════════════════════════════════
|
|
51
70
|
// FASE: PLAN
|