jorgex-stack 1.0.17 → 1.0.19
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/cli.js
CHANGED
|
@@ -3003,7 +3003,8 @@ function parseFlags(args) {
|
|
|
3003
3003
|
list: false,
|
|
3004
3004
|
check: false,
|
|
3005
3005
|
removeEngram: false,
|
|
3006
|
-
positional: []
|
|
3006
|
+
positional: [],
|
|
3007
|
+
unknownFlags: []
|
|
3007
3008
|
};
|
|
3008
3009
|
const readValue = (index) => {
|
|
3009
3010
|
const value = args[index + 1];
|
|
@@ -3039,6 +3040,7 @@ function parseFlags(args) {
|
|
|
3039
3040
|
else if (arg === "--list") flags.list = true;
|
|
3040
3041
|
else if (arg === "--check") flags.check = true;
|
|
3041
3042
|
else if (arg === "--remove-engram") flags.removeEngram = true;
|
|
3043
|
+
else if (arg.startsWith("-")) flags.unknownFlags.push(arg);
|
|
3042
3044
|
else flags.positional.push(arg);
|
|
3043
3045
|
}
|
|
3044
3046
|
return flags;
|
|
@@ -3119,6 +3121,7 @@ function parseCliArgs(argv) {
|
|
|
3119
3121
|
const flags = parseFlags(isCommand ? rest : argv);
|
|
3120
3122
|
if (first === "--help" || first === "-h" || flags.help) return { action: "help", command, flags };
|
|
3121
3123
|
if (first === "--version" || first === "-v" || flags.version) return { action: "version", command, flags };
|
|
3124
|
+
if (flags.unknownFlags.length > 0) return { action: "unknown-flags", command, flags };
|
|
3122
3125
|
return { action: "run", command, flags };
|
|
3123
3126
|
}
|
|
3124
3127
|
async function resolveRuntimes(flags) {
|
|
@@ -3172,6 +3175,18 @@ async function main() {
|
|
|
3172
3175
|
process.exitCode = 1;
|
|
3173
3176
|
return;
|
|
3174
3177
|
}
|
|
3178
|
+
if (parsed.action === "unknown-flags") {
|
|
3179
|
+
const { unknownFlags } = parsed.flags;
|
|
3180
|
+
const plural = unknownFlags.length > 1;
|
|
3181
|
+
console.error(`Flag${plural ? "s" : ""} no reconocido${plural ? "s" : ""}: ${unknownFlags.join(", ")}`);
|
|
3182
|
+
console.error(
|
|
3183
|
+
`jorgex-stack v${VERSION} no reconoce ${plural ? "esos flags" : "ese flag"}. Si esperabas que existiera, puede que est\xE9s ejecutando un binario cacheado antiguo:
|
|
3184
|
+
pnpm dlx jorgex-stack@latest ...
|
|
3185
|
+
Flags disponibles: jorgex-stack --help`
|
|
3186
|
+
);
|
|
3187
|
+
process.exitCode = 1;
|
|
3188
|
+
return;
|
|
3189
|
+
}
|
|
3175
3190
|
const { command, flags } = parsed;
|
|
3176
3191
|
if (flags.targetDir !== void 0 && flags.agents.length !== 1) {
|
|
3177
3192
|
console.error("--target-dir requiere exactamente un runtime en --agents.");
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: backend-analyst
|
|
3
3
|
description: Read-only backend analyst. Use it BEFORE implementing to map services, database, APIs, server functions or data-access patterns, and to surface performance/security/consistency risks. Returns analysis and recommendations only — never writes code or applies changes. Not for implementing features or fixing bugs.
|
|
4
4
|
mode: subagent
|
|
5
|
-
tier:
|
|
5
|
+
tier: standard
|
|
6
6
|
readonly: true
|
|
7
7
|
bash: git-read
|
|
8
8
|
---
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: code-simplifier
|
|
3
3
|
description: Read-only code simplifier. Use it AFTER code is written or changed to propose simplifications that improve readability and reduce complexity while preserving exact behavior. Returns proposed refinements only — never writes or edits code. Not for implementing features, finding bugs (that's code-reviewer) or broad rewrites.
|
|
4
4
|
mode: subagent
|
|
5
|
-
tier:
|
|
5
|
+
tier: standard
|
|
6
6
|
readonly: true
|
|
7
7
|
bash: git-read
|
|
8
8
|
---
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: frontend-analyst
|
|
3
3
|
description: Read-only frontend analyst. Use it BEFORE implementing or reviewing to map components, hooks, state, rendering and UI patterns, and to surface re-render, hydration, coupling or complexity risks. Returns analysis and recommendations only — never writes code. Not for implementing features or fixing bugs.
|
|
4
4
|
mode: subagent
|
|
5
|
-
tier:
|
|
5
|
+
tier: standard
|
|
6
6
|
readonly: true
|
|
7
7
|
bash: git-read
|
|
8
8
|
---
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: test-analyzer
|
|
3
3
|
description: Read-only test coverage analyst. Use it AFTER code changes to review the diff for test coverage quality and completeness, surfacing critical gaps and brittle tests. Reports analysis only — NEVER writes tests (that's the tester). Not for implementing features or writing tests.
|
|
4
4
|
mode: subagent
|
|
5
|
-
tier:
|
|
5
|
+
tier: standard
|
|
6
6
|
readonly: true
|
|
7
7
|
bash: git-read
|
|
8
8
|
---
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: type-design-analyzer
|
|
3
3
|
description: Read-only type design analyst. Use it AFTER code changes to evaluate type invariants, type safety and encapsulation quality in the diff. Reports analysis and recommendations only — never writes or edits code. Not for implementing features or general code review.
|
|
4
4
|
mode: subagent
|
|
5
|
-
tier:
|
|
5
|
+
tier: standard
|
|
6
6
|
readonly: true
|
|
7
7
|
bash: git-read
|
|
8
8
|
---
|