@a-company/paradigm 3.43.0 → 3.46.0

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.
Files changed (37) hide show
  1. package/dist/{chunk-YW5OCVKB.js → chunk-FKJUBQU3.js} +14 -1
  2. package/dist/chunk-KVDYJLTC.js +121 -0
  3. package/dist/{symphony-ROEKK7VD.js → chunk-S2HO5MLR.js} +53 -431
  4. package/dist/{chunk-RGFANZ4Q.js → chunk-ZDHLG5VP.js} +14 -1
  5. package/dist/{chunk-CZEIK3Y2.js → chunk-ZMQA6SCO.js} +1 -1
  6. package/dist/{chunk-7WEKMZ46.js → chunk-ZSYVKSY6.js} +1 -1
  7. package/dist/{commands-LEPFD7S5.js → commands-5N4ILTPH.js} +13 -0
  8. package/dist/{dist-RVKYUCRU.js → dist-CM3MVWWW.js} +1 -1
  9. package/dist/{dist-Y7I3CFY5.js → dist-POMVY6WP.js} +2 -2
  10. package/dist/{habits-O37HTUKE.js → habits-RG5SVKXP.js} +2 -2
  11. package/dist/index.js +69 -48
  12. package/dist/mcp.js +89 -9
  13. package/dist/peers-RFQCWVLV.js +82 -0
  14. package/dist/{platform-server-KK4OCRTV.js → platform-server-H7Y6Q7O4.js} +10 -1
  15. package/dist/{reindex-NZQRGKPN.js → reindex-WIJMCJ4A.js} +1 -1
  16. package/dist/{sentinel-BKYTBT7M.js → sentinel-UOIGJWHH.js} +1 -1
  17. package/dist/{sentinel-bridge-IZTXYS5M.js → sentinel-bridge-APDXYAZS.js} +1 -1
  18. package/dist/sentinel-mcp.js +13 -0
  19. package/dist/sentinel.js +6 -6
  20. package/dist/{serve-3V2WXLGM.js → serve-KKEHE44G.js} +1 -1
  21. package/dist/{server-OFEJ2HJP.js → server-JV6UFGWZ.js} +1 -1
  22. package/dist/symphony-6K3HD7AW.js +791 -0
  23. package/dist/symphony-YCHBYN3E.js +326 -0
  24. package/dist/symphony-peers-APOGJPF4.js +120 -0
  25. package/dist/symphony-peers-HSY3RI3S.js +34 -0
  26. package/dist/symphony-relay-GTAJRCVF.js +683 -0
  27. package/dist/{triage-POXJ2TIX.js → triage-IZ4MDYNB.js} +2 -2
  28. package/dist/university-content/courses/para-501.json +84 -0
  29. package/package.json +1 -1
  30. package/platform-ui/dist/assets/{GitSection-DvyJBF_-.js → GitSection-BD3Ze06e.js} +1 -1
  31. package/platform-ui/dist/assets/{GraphSection-BiQrXqfs.js → GraphSection-SglITfSs.js} +1 -1
  32. package/platform-ui/dist/assets/{LoreSection-BaH1FaRb.js → LoreSection-bR5Km4Fd.js} +1 -1
  33. package/platform-ui/dist/assets/{SentinelSection-DemAznjI.js → SentinelSection-QSpAZArG.js} +1 -1
  34. package/platform-ui/dist/assets/SymphonySection-CobYJgvg.js +1 -0
  35. package/platform-ui/dist/assets/SymphonySection-zY0C5tFl.css +1 -0
  36. package/platform-ui/dist/assets/{index-DDKhCt-w.js → index-DbxeSMkV.js} +11 -11
  37. package/platform-ui/dist/index.html +1 -1
@@ -845,7 +845,7 @@ async function startPlatformServer(options) {
845
845
  app.use("/api/platform/agent-command", createAgentRouter(wsContext));
846
846
  if (sections.has("sentinel")) {
847
847
  try {
848
- const { createSentinelBridge } = await import("./sentinel-bridge-IZTXYS5M.js");
848
+ const { createSentinelBridge } = await import("./sentinel-bridge-APDXYAZS.js");
849
849
  const sentinelRouter = await createSentinelBridge(options.projectDir, wsContext.broadcast);
850
850
  if (sentinelRouter) {
851
851
  app.use("/api/sentinel", sentinelRouter);
@@ -855,6 +855,15 @@ async function startPlatformServer(options) {
855
855
  log.component("platform-server").warn("Sentinel not available");
856
856
  }
857
857
  }
858
+ if (sections.has("symphony")) {
859
+ try {
860
+ const { createSymphonyRouter } = await import("./symphony-YCHBYN3E.js");
861
+ app.use("/api/symphony", createSymphonyRouter(options.projectDir, wsContext.broadcast));
862
+ log.component("platform-server").success("Symphony routes mounted");
863
+ } catch (err) {
864
+ log.component("platform-server").warn("Symphony routes failed to mount");
865
+ }
866
+ }
858
867
  return new Promise((resolve, reject) => {
859
868
  httpServer.listen(options.port, () => {
860
869
  log.component("platform-server").success("Platform running", { url: `http://localhost:${options.port}` });
@@ -3,7 +3,7 @@ import {
3
3
  getReindexToolsList,
4
4
  handleReindexTool,
5
5
  rebuildStaticFiles
6
- } from "./chunk-CZEIK3Y2.js";
6
+ } from "./chunk-ZMQA6SCO.js";
7
7
  import "./chunk-CDMAMDSG.js";
8
8
  import "./chunk-L27I3CPZ.js";
9
9
  export {
@@ -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-OFEJ2HJP.js");
12
+ const { startServer } = await import("./server-JV6UFGWZ.js");
13
13
  console.log(chalk.gray(`Project: ${projectDir}`));
14
14
  console.log(chalk.gray(`Port: ${port}`));
15
15
  console.log();
@@ -37,7 +37,7 @@ async function createSentinelBridge(projectDir, broadcast) {
37
37
  broadcast({ type: "sentinel:event", event });
38
38
  };
39
39
  var onLogReceived = onLogReceived2, onEventReceived = onEventReceived2;
40
- const sentinel = await import("./server-OFEJ2HJP.js");
40
+ const sentinel = await import("./server-JV6UFGWZ.js");
41
41
  const {
42
42
  SentinelStorage,
43
43
  loadServerConfig,
@@ -604,6 +604,19 @@ var SentinelStorage = class {
604
604
  );
605
605
  this.save();
606
606
  }
607
+ resolveIncident(id, options) {
608
+ this.updateIncident(id, {
609
+ status: "resolved",
610
+ resolvedAt: (/* @__PURE__ */ new Date()).toISOString()
611
+ });
612
+ if (options?.notes) {
613
+ this.addIncidentNote(id, {
614
+ author: "system",
615
+ content: options.notes,
616
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
617
+ });
618
+ }
619
+ }
607
620
  addIncidentNote(incidentId, note) {
608
621
  this.initializeSync();
609
622
  const incident = this.getIncident(incidentId);
package/dist/sentinel.js CHANGED
@@ -8,28 +8,28 @@ var { version: VERSION } = require2("../package.json");
8
8
  var program = new Command();
9
9
  program.name("sentinel").description("Semantic error monitoring \u2014 errors that speak your language").version(VERSION);
10
10
  program.command("defend", { isDefault: true }).description("Launch the Sentinel dashboard").option("-p, --port <port>", "Port number", "3838").option("--no-open", "Don't open browser").action(async (opts) => {
11
- const { launchDashboard } = await import("./commands-LEPFD7S5.js");
11
+ const { launchDashboard } = await import("./commands-5N4ILTPH.js");
12
12
  await launchDashboard(opts);
13
13
  });
14
14
  program.command("init").description("Initialize Sentinel in current project").option("--detect", "Auto-detect symbols from codebase").action(async (opts) => {
15
- const { initProject } = await import("./commands-LEPFD7S5.js");
15
+ const { initProject } = await import("./commands-5N4ILTPH.js");
16
16
  await initProject(opts);
17
17
  });
18
18
  var triage = program.command("triage").description("Incident triage");
19
19
  triage.command("list").description("List incidents").option("-s, --status <status>", "Filter by status (open, investigating, resolved, wont-fix)").option("-e, --env <env>", "Filter by environment").option("--symbol <symbol>", "Filter by symbol").option("-n, --limit <n>", "Max results", "10").action(async (opts) => {
20
- const { triageList } = await import("./commands-LEPFD7S5.js");
20
+ const { triageList } = await import("./commands-5N4ILTPH.js");
21
21
  await triageList(opts);
22
22
  });
23
23
  triage.command("show <id>").description("Show incident details").option("--timeline", "Include flow timeline").action(async (id, opts) => {
24
- const { triageShow } = await import("./commands-LEPFD7S5.js");
24
+ const { triageShow } = await import("./commands-5N4ILTPH.js");
25
25
  await triageShow(id, opts);
26
26
  });
27
27
  triage.command("resolve <id>").description("Resolve an incident").option("--pattern <id>", "Pattern that resolved it").option("--commit <hash>", "Fix commit").option("--notes <text>", "Resolution notes").action(async (id, opts) => {
28
- const { triageResolve } = await import("./commands-LEPFD7S5.js");
28
+ const { triageResolve } = await import("./commands-5N4ILTPH.js");
29
29
  await triageResolve(id, opts);
30
30
  });
31
31
  triage.command("stats").description("Show incident statistics").option("-p, --period <period>", "Period (7d, 30d, 90d)", "7d").action(async (opts) => {
32
- const { triageStats } = await import("./commands-LEPFD7S5.js");
32
+ const { triageStats } = await import("./commands-5N4ILTPH.js");
33
33
  await triageStats(opts);
34
34
  });
35
35
  program.parse();
@@ -10,7 +10,7 @@ async function serveCommand(options) {
10
10
  const sections = options.sections ? options.sections.split(",").map((s) => s.trim()) : void 0;
11
11
  console.log(chalk.cyan("\n Starting Paradigm Platform...\n"));
12
12
  try {
13
- const { startPlatformServer } = await import("./platform-server-KK4OCRTV.js");
13
+ const { startPlatformServer } = await import("./platform-server-H7Y6Q7O4.js");
14
14
  await startPlatformServer({ port, projectDir, open: shouldOpen, sections });
15
15
  console.log(chalk.green(` Platform running at ${chalk.bold(`http://localhost:${port}`)}`));
16
16
  console.log(chalk.gray(" Press Ctrl+C to stop\n"));
@@ -4,7 +4,7 @@ import {
4
4
  SYMPHONY_SCHEMA,
5
5
  SentinelStorage,
6
6
  loadServerConfig
7
- } from "./chunk-YW5OCVKB.js";
7
+ } from "./chunk-FKJUBQU3.js";
8
8
  import "./chunk-ZXMDA7VB.js";
9
9
 
10
10
  // ../sentinel/dist/server/index.js