navori 0.2.6 → 0.2.7
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 +13 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3508,6 +3508,7 @@ var ES = {
|
|
|
3508
3508
|
detectionFailedYes: "No detect\xE9 el nombre del proyecto. Corre sin --yes/--recommended para darlo.",
|
|
3509
3509
|
wroteConfig: (path) => `Escrib\xED ${path}`,
|
|
3510
3510
|
recPluginsEnabled: (list) => `Plugins recomendados activados: ${list}`,
|
|
3511
|
+
pluginsAlwaysOn: (list) => `Incluidos siempre con navori: ${list} (no hace falta elegirlos)`,
|
|
3511
3512
|
presetGapNotice: (stack) => `Detect\xE9 un proyecto '${stack}', pero todav\xEDa no hay un preset oficial para ese stack. Se instala el harness completo (agentes, gates, protocolo, SDD) y funciona desde ya; lo \xFAnico que falta son skills espec\xEDficas de '${stack}'. Quedas con el baseline (preset: custom). Para cubrir el hueco: crea tu preset local con 'navori preset init ${stack}', o agrega skills sueltas en project.localSkills.`,
|
|
3512
3513
|
placeholderNameNotice: (name) => `El name '${name}' parece un placeholder de scaffold (heredado del package.json sin renombrar). Ren\xF3mbralo en package.json o edita "name" en navori.config.json si no es el nombre real del repo.`,
|
|
3513
3514
|
workspaceDefaultsTitle: (name) => `Defaults del workspace \xB7 ${name}`,
|
|
@@ -3615,6 +3616,7 @@ var EN = {
|
|
|
3615
3616
|
detectionFailedYes: "Could not detect project name. Run without --yes/--recommended to provide one.",
|
|
3616
3617
|
wroteConfig: (path) => `Wrote ${path}`,
|
|
3617
3618
|
recPluginsEnabled: (list) => `Recommended plugins enabled: ${list}`,
|
|
3619
|
+
pluginsAlwaysOn: (list) => `Always included with navori: ${list} (no need to pick them)`,
|
|
3618
3620
|
presetGapNotice: (stack) => `Detected a '${stack}' project, but there's no official preset for that stack yet. The full harness installs (agents, gates, protocol, SDD) and works right away; the only thing missing are '${stack}'-specific skills. You stay on the baseline (preset: custom). To cover the gap: scaffold your local preset with 'navori preset init ${stack}', or add individual skills via project.localSkills.`,
|
|
3619
3621
|
placeholderNameNotice: (name) => `The name '${name}' looks like a scaffold placeholder (carried over from an un-renamed package.json). Rename it in package.json or edit "name" in navori.config.json if it isn't the repo's real name.`,
|
|
3620
3622
|
workspaceDefaultsTitle: (name) => `Workspace defaults \xB7 ${name}`,
|
|
@@ -3981,7 +3983,8 @@ var initCommand = defineCommand2({
|
|
|
3981
3983
|
}
|
|
3982
3984
|
const wsPlugins2 = wsDefaults?.plugins ?? {};
|
|
3983
3985
|
const recommendedPlugins = args.recommended ? buildRecommendedPlugins(cwd) : {};
|
|
3984
|
-
const mergedPlugins2 = { ...wsPlugins2, ...recommendedPlugins };
|
|
3986
|
+
const mergedPlugins2 = { ...ALWAYS_ON_PLUGINS, ...wsPlugins2, ...recommendedPlugins };
|
|
3987
|
+
p2.log.info(tr.pluginsAlwaysOn(Object.keys(ALWAYS_ON_PLUGINS).join(", ")));
|
|
3985
3988
|
if (args.recommended && Object.keys(recommendedPlugins).length > 0) {
|
|
3986
3989
|
p2.log.info(tr.recPluginsEnabled(Object.keys(recommendedPlugins).join(", ")));
|
|
3987
3990
|
}
|
|
@@ -4298,7 +4301,7 @@ var initCommand = defineCommand2({
|
|
|
4298
4301
|
}
|
|
4299
4302
|
}
|
|
4300
4303
|
const wsPlugins = wsDefaults?.plugins ?? {};
|
|
4301
|
-
const mergedPlugins = { ...wsPlugins, ...pluginsConfig };
|
|
4304
|
+
const mergedPlugins = { ...ALWAYS_ON_PLUGINS, ...wsPlugins, ...pluginsConfig };
|
|
4302
4305
|
const monorepoBlock = await buildMonorepoBlock(cwd, detected, {
|
|
4303
4306
|
scanMonorepo: Boolean(args["scan-monorepo"]),
|
|
4304
4307
|
autoYes: false,
|
|
@@ -4360,6 +4363,7 @@ async function chooseAdoptionMode(cwd, infra, projectName, args) {
|
|
|
4360
4363
|
const tr = t(args.lang);
|
|
4361
4364
|
if (args.yes) {
|
|
4362
4365
|
p2.log.warn(tr.existingInfraYesMode);
|
|
4366
|
+
p2.note(formatInfraSummary(infra, args.lang), tr.filesFoundTitle);
|
|
4363
4367
|
return "coexist";
|
|
4364
4368
|
}
|
|
4365
4369
|
p2.log.warn(tr.existingInfraDetected);
|
|
@@ -4388,7 +4392,9 @@ async function chooseAdoptionMode(cwd, infra, projectName, args) {
|
|
|
4388
4392
|
return "coexist";
|
|
4389
4393
|
}
|
|
4390
4394
|
async function pickPlugins(lang) {
|
|
4391
|
-
const
|
|
4395
|
+
const alwaysOn = Object.keys(ALWAYS_ON_PLUGINS);
|
|
4396
|
+
p2.log.info(t(lang).pluginsAlwaysOn(alwaysOn.join(", ")));
|
|
4397
|
+
const ids = listKnownPluginIds().filter((id) => !(id in ALWAYS_ON_PLUGINS));
|
|
4392
4398
|
if (ids.length === 0) return [];
|
|
4393
4399
|
const options = ids.map((id) => {
|
|
4394
4400
|
const plugin = (() => {
|
|
@@ -4467,10 +4473,11 @@ ${summary}`);
|
|
|
4467
4473
|
}
|
|
4468
4474
|
return overrides;
|
|
4469
4475
|
}
|
|
4476
|
+
var ALWAYS_ON_PLUGINS = {
|
|
4477
|
+
engram: { enabled: true }
|
|
4478
|
+
};
|
|
4470
4479
|
function buildRecommendedPlugins(cwd) {
|
|
4471
|
-
const result = {
|
|
4472
|
-
engram: { enabled: true }
|
|
4473
|
-
};
|
|
4480
|
+
const result = {};
|
|
4474
4481
|
if (isGitHubRepo(cwd)) {
|
|
4475
4482
|
result.gh = { enabled: true };
|
|
4476
4483
|
}
|