@a-company/paradigm 3.13.0 → 3.14.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.
@@ -4750,8 +4750,16 @@ function createApp(options) {
4750
4750
  app.get("/api/health", (_req, res) => {
4751
4751
  res.json({ status: "ok", timestamp: (/* @__PURE__ */ new Date()).toISOString() });
4752
4752
  });
4753
- const uiDistPath = path6.join(__dirname2, "..", "..", "ui", "dist");
4754
- if (fs5.existsSync(uiDistPath)) {
4753
+ const uiCandidates = [
4754
+ path6.join(__dirname2, "sentinel-ui"),
4755
+ // bundled: paradigm/dist/sentinel-ui/ (copied during build)
4756
+ path6.join(__dirname2, "..", "..", "ui", "dist"),
4757
+ // standalone: sentinel/dist/server/ → sentinel/ui/dist
4758
+ path6.join(__dirname2, "..", "ui", "dist")
4759
+ // standalone flat: sentinel/dist/ → sentinel/ui/dist
4760
+ ];
4761
+ const uiDistPath = uiCandidates.find((p) => fs5.existsSync(p));
4762
+ if (uiDistPath) {
4755
4763
  app.use(express.static(uiDistPath));
4756
4764
  app.get("{*path}", (req, res) => {
4757
4765
  if (!req.path.startsWith("/api")) {
package/dist/index.js CHANGED
@@ -695,11 +695,11 @@ habitsCmd.action(async () => {
695
695
  });
696
696
  var sentinelCmd = program.command("sentinel").description("Sentinel \u2014 semantic error monitoring");
697
697
  sentinelCmd.command("defend [path]", { isDefault: true }).description("Launch the Sentinel UI - unified codebase intelligence visualizer").option("-p, --port <port>", "Port to run on", "3838").option("--no-open", "Don't open browser automatically").action(async (path2, options) => {
698
- const { sentinelCommand } = await import("./sentinel-RERNMWSE.js");
698
+ const { sentinelCommand } = await import("./sentinel-FUR3QKCJ.js");
699
699
  await sentinelCommand(path2, options);
700
700
  });
701
701
  program.command("university").description("Launch Paradigm University - interactive learning platform & PLSAT certification").option("-p, --port <port>", "Port to run on", "3839").option("--no-open", "Don't open browser automatically").action(async (options) => {
702
- const { universityCommand } = await import("./university-KVYNACJZ.js");
702
+ const { universityCommand } = await import("./university-A66BMZ4Z.js");
703
703
  await universityCommand(void 0, options);
704
704
  });
705
705
  program.parse();
@@ -9,7 +9,7 @@ async function sentinelCommand(path, options) {
9
9
  const shouldOpen = options.open !== false;
10
10
  console.log(chalk.cyan("\nStarting Sentinel...\n"));
11
11
  try {
12
- const { startServer } = await import("./server-CAXNYVV7.js");
12
+ const { startServer } = await import("./server-2VICPDUR.js");
13
13
  console.log(chalk.gray(`Project: ${projectDir}`));
14
14
  console.log(chalk.gray(`Port: ${port}`));
15
15
  console.log();