connectry-architect-mcp 0.1.8 → 0.1.9

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 CHANGED
@@ -254,8 +254,8 @@ import fs3 from "fs";
254
254
  import path3 from "path";
255
255
  import { fileURLToPath } from "url";
256
256
  var __filename = fileURLToPath(import.meta.url);
257
- var __dirname2 = path3.dirname(__filename);
258
- var DATA_DIR = fs3.existsSync(path3.join(__dirname2, "data", "curriculum.json")) ? path3.join(__dirname2, "data") : __dirname2;
257
+ var __dirname = path3.dirname(__filename);
258
+ var DATA_DIR = fs3.existsSync(path3.join(__dirname, "data", "curriculum.json")) ? path3.join(__dirname, "data") : __dirname;
259
259
  var cachedCurriculum = null;
260
260
  var cachedQuestions = null;
261
261
  function loadCurriculum() {
@@ -968,8 +968,8 @@ import fs4 from "fs";
968
968
  import path4 from "path";
969
969
  import { fileURLToPath as fileURLToPath2 } from "url";
970
970
  import { z as z4 } from "zod";
971
- var __dirname3 = path4.dirname(fileURLToPath2(import.meta.url));
972
- var PROJECTS_DIR = path4.resolve(__dirname3, "..", "..", "projects");
971
+ var __dirname2 = path4.dirname(fileURLToPath2(import.meta.url));
972
+ var PROJECTS_DIR = path4.resolve(__dirname2, "..", "..", "projects");
973
973
  var PROJECTS = [
974
974
  { id: "capstone", name: "Capstone \u2014 Multi-Agent Research System", domains: [1, 2, 3, 4, 5] },
975
975
  { id: "d1-agentic", name: "D1 Mini \u2014 Agentic Loop", domains: [1] },
@@ -2677,6 +2677,8 @@ function registerCapstoneBuildStatus(server2, db2, userConfig2) {
2677
2677
  import http from "http";
2678
2678
  import fs5 from "fs";
2679
2679
  import path5 from "path";
2680
+ import { fileURLToPath as fileURLToPath3 } from "url";
2681
+ var __dirname3 = path5.dirname(fileURLToPath3(import.meta.url));
2680
2682
  var DOMAIN_NAMES3 = {
2681
2683
  1: "Agentic Architecture",
2682
2684
  2: "Tool Design & MCP",
@@ -2787,7 +2789,9 @@ function getMimeType(filePath) {
2787
2789
  return MIME_TYPES[ext] ?? "application/octet-stream";
2788
2790
  }
2789
2791
  function startDashboardServer(db2, userConfig2) {
2790
- const distUiDir = path5.resolve(__dirname, "../../dist/ui");
2792
+ const bundledPath = path5.resolve(__dirname3, "ui");
2793
+ const devPath = path5.resolve(__dirname3, "..", "..", "dist", "ui");
2794
+ const distUiDir = fs5.existsSync(bundledPath) ? bundledPath : devPath;
2791
2795
  const userId = userConfig2.userId;
2792
2796
  const server2 = http.createServer((req, res) => {
2793
2797
  const url = new URL(req.url ?? "/", `http://localhost`);
@@ -3085,14 +3089,14 @@ Choose (1-2):` }
3085
3089
  // src/resources/index.ts
3086
3090
  import fs6 from "fs";
3087
3091
  import path6 from "path";
3088
- import { fileURLToPath as fileURLToPath4 } from "url";
3092
+ import { fileURLToPath as fileURLToPath5 } from "url";
3089
3093
  import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
3090
3094
 
3091
3095
  // src/ui/loader.ts
3092
3096
  import { readFileSync } from "fs";
3093
3097
  import { resolve, dirname } from "path";
3094
- import { fileURLToPath as fileURLToPath3 } from "url";
3095
- var __dirname4 = dirname(fileURLToPath3(import.meta.url));
3098
+ import { fileURLToPath as fileURLToPath4 } from "url";
3099
+ var __dirname4 = dirname(fileURLToPath4(import.meta.url));
3096
3100
  var quizWidgetHtml = null;
3097
3101
  function getQuizWidgetHtml() {
3098
3102
  if (!quizWidgetHtml) {
@@ -3102,7 +3106,7 @@ function getQuizWidgetHtml() {
3102
3106
  }
3103
3107
 
3104
3108
  // src/resources/index.ts
3105
- var __dirname5 = path6.dirname(fileURLToPath4(import.meta.url));
3109
+ var __dirname5 = path6.dirname(fileURLToPath5(import.meta.url));
3106
3110
  function registerResources(server2, db2, userConfig2) {
3107
3111
  server2.resource(
3108
3112
  "handout",