@hyphaene/hexa-ts-kit 1.13.0 → 1.13.1

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.
@@ -3407,8 +3407,18 @@ import { basename as basename6 } from "path";
3407
3407
  import { execSync as execSync2 } from "child_process";
3408
3408
  import { readFileSync as readFileSync5, existsSync as existsSync6 } from "fs";
3409
3409
  import fg10 from "fast-glob";
3410
- import matter from "gray-matter";
3410
+ import { parse as parseYaml2 } from "yaml";
3411
3411
  import { minimatch } from "minimatch";
3412
+ function parseFrontmatter(content) {
3413
+ const match = /^---\r?\n([\s\S]*?)\r?\n---/.exec(content);
3414
+ if (!match?.[1]) return {};
3415
+ try {
3416
+ const data = parseYaml2(match[1]);
3417
+ return data && typeof data === "object" ? data : {};
3418
+ } catch {
3419
+ return {};
3420
+ }
3421
+ }
3412
3422
  function expandPath(p) {
3413
3423
  if (p.startsWith("~")) {
3414
3424
  return p.replace("~", process.env.HOME || "");
@@ -3443,7 +3453,7 @@ function loadKnowledgeMappings(knowledgePath) {
3443
3453
  for (const file of knowledgeFiles) {
3444
3454
  try {
3445
3455
  const content = readFileSync5(file, "utf-8");
3446
- const { data } = matter(content);
3456
+ const data = parseFrontmatter(content);
3447
3457
  if (data.match) {
3448
3458
  mappings.push({
3449
3459
  name: data.name || basename6(file, ".knowledge.md"),
package/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  lintCommand,
6
6
  loadConfig,
7
7
  scaffoldCommand
8
- } from "./chunk-73G2DONK.js";
8
+ } from "./chunk-ULS2JDC4.js";
9
9
  import {
10
10
  scanForVaultRepos
11
11
  } from "./chunk-WXFSGE4N.js";
@@ -3,7 +3,7 @@ import {
3
3
  analyzeCore,
4
4
  lintCore,
5
5
  scaffoldCore
6
- } from "./chunk-73G2DONK.js";
6
+ } from "./chunk-ULS2JDC4.js";
7
7
 
8
8
  // src/mcp-server.ts
9
9
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyphaene/hexa-ts-kit",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "TypeScript dev kit for Claude Code agents: architecture linting, scaffolding, knowledge analysis",
5
5
  "type": "module",
6
6
  "bin": {
@@ -49,7 +49,6 @@
49
49
  "@modelcontextprotocol/sdk": "^1.25.1",
50
50
  "commander": "^14.0.3",
51
51
  "fast-glob": "^3.3.2",
52
- "gray-matter": "^4.0.3",
53
52
  "ink": "^6.6.0",
54
53
  "ink-select-input": "^6.2.0",
55
54
  "ink-spinner": "^5.0.0",
@@ -75,6 +74,9 @@
75
74
  "engines": {
76
75
  "node": ">=20"
77
76
  },
77
+ "overrides": {
78
+ "esbuild": "^0.28.1"
79
+ },
78
80
  "release": {
79
81
  "branches": [
80
82
  "main"