@massu/core 1.5.1 → 1.5.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/cli.js CHANGED
@@ -16427,7 +16427,17 @@ function listTemplates() {
16427
16427
  function resolveTemplatesDir() {
16428
16428
  const cwd = process.cwd();
16429
16429
  const candidates = [
16430
+ // Project-local install: `<project>/node_modules/@massu/core/templates`.
16430
16431
  resolve6(cwd, "node_modules/@massu/core/templates"),
16432
+ // Bundled cli.js layout: cli.js sits at `<package>/dist/cli.js`, so
16433
+ // templates live one level up at `<package>/templates`. (Plan 1.5.1
16434
+ // bug discovery: pre-existing layout assumed `dist/commands/init.js`
16435
+ // depth which never matched the bundled cli, so resolveTemplatesDir
16436
+ // returned null in production for both `--template` mode AND the
16437
+ // applyVariantTemplate path.)
16438
+ resolve6(__dirname2, "../templates"),
16439
+ // Legacy nested layouts retained as fallbacks (in case a future
16440
+ // build moves cli.js back into a subdirectory).
16431
16441
  resolve6(__dirname2, "../../templates"),
16432
16442
  resolve6(__dirname2, "../../../templates")
16433
16443
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massu/core",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "type": "module",
5
5
  "description": "AI Engineering Governance MCP Server - Session memory, knowledge system, feature registry, code intelligence, rule enforcement, tiered tooling (12 free / 72 total), 55+ workflow commands, 11 agents, 20+ patterns",
6
6
  "main": "src/server.ts",
@@ -900,7 +900,17 @@ export function listTemplates(): readonly string[] {
900
900
  export function resolveTemplatesDir(): string | null {
901
901
  const cwd = process.cwd();
902
902
  const candidates = [
903
+ // Project-local install: `<project>/node_modules/@massu/core/templates`.
903
904
  resolve(cwd, 'node_modules/@massu/core/templates'),
905
+ // Bundled cli.js layout: cli.js sits at `<package>/dist/cli.js`, so
906
+ // templates live one level up at `<package>/templates`. (Plan 1.5.1
907
+ // bug discovery: pre-existing layout assumed `dist/commands/init.js`
908
+ // depth which never matched the bundled cli, so resolveTemplatesDir
909
+ // returned null in production for both `--template` mode AND the
910
+ // applyVariantTemplate path.)
911
+ resolve(__dirname, '../templates'),
912
+ // Legacy nested layouts retained as fallbacks (in case a future
913
+ // build moves cli.js back into a subdirectory).
904
914
  resolve(__dirname, '../../templates'),
905
915
  resolve(__dirname, '../../../templates'),
906
916
  ];
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/bundle-pubkey.mjs at 2026-05-08T19:39:50.956Z.
1
+ // AUTO-GENERATED by scripts/bundle-pubkey.mjs at 2026-05-08T19:47:18.792Z.
2
2
  // Source pem: packages/core/security/registry-pubkey.pem
3
3
  // RAW-bytes sha256: 3b6226d036c472e533110d11a7d0cd2773ce1d7d4f1003517d5bd69c5418ed4c
4
4
  // DO NOT EDIT — regenerate via `node scripts/bundle-pubkey.mjs` or