@a-company/paradigm 3.1.6 → 3.6.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 (80) hide show
  1. package/dist/{accept-orchestration-CWZNCGZX.js → accept-orchestration-DIGPJVUR.js} +6 -5
  2. package/dist/{aggregate-W7Q6VIM2.js → aggregate-V4KPR3RW.js} +2 -2
  3. package/dist/{beacon-B47XSTL7.js → beacon-XRXL5KZB.js} +2 -2
  4. package/dist/{chunk-YCLN7WXV.js → chunk-2QNZ6PVD.js} +219 -35
  5. package/dist/{chunk-UM54F7G5.js → chunk-4N6AYEEA.js} +1 -1
  6. package/dist/{chunk-MVXJVRFI.js → chunk-5TUAVVIG.js} +65 -1
  7. package/dist/{chunk-5C4SGQKH.js → chunk-6P4IFIK2.js} +4 -2
  8. package/dist/{chunk-WS5KM7OL.js → chunk-6RNYVBSG.js} +1 -1
  9. package/dist/{chunk-VZ7CXFRZ.js → chunk-ADOBV4PH.js} +1387 -17
  10. package/dist/{chunk-N6PJAPDE.js → chunk-AK5M6KJB.js} +18 -0
  11. package/dist/{chunk-4LGLU2LO.js → chunk-GY5KO3YZ.js} +679 -183
  12. package/dist/{chunk-MC7XC7XQ.js → chunk-GZDFVP2N.js} +20 -13
  13. package/dist/chunk-HPC3JAUP.js +42 -0
  14. package/dist/chunk-IRVA7NKV.js +657 -0
  15. package/dist/{chunk-ZPN7MXRA.js → chunk-KFHK6EBI.js} +184 -1
  16. package/dist/{chunk-UUZ2DMG5.js → chunk-KWDTBXP2.js} +1 -1
  17. package/dist/{chunk-HXY6AY52.js → chunk-M2XMTJHQ.js} +667 -70
  18. package/dist/{chunk-PW2EXJQT.js → chunk-MRENOFTR.js} +24 -1
  19. package/dist/{chunk-QS36NGWV.js → chunk-QHJGB5TV.js} +1 -1
  20. package/dist/chunk-UI3XXVJ6.js +449 -0
  21. package/dist/{chunk-AD2LSCHB.js → chunk-Y4XZWCHK.js} +40 -74
  22. package/dist/{constellation-K3CIQCHI.js → constellation-GNK5DIMH.js} +2 -2
  23. package/dist/{cost-AEK6R7HK.js → cost-AGO5N7DD.js} +1 -1
  24. package/dist/{cursorrules-KI5QWHIX.js → cursorrules-LQFA7M62.js} +2 -2
  25. package/dist/{delete-W67IVTLJ.js → delete-3YXAJ5AA.js} +12 -1
  26. package/dist/{diff-AJJ5H6HV.js → diff-J6C5IHPV.js} +6 -5
  27. package/dist/{dist-2F7NO4H4-KSL6SJIO.js → dist-AG5JNIZU-XSEZ2LLK.js} +28 -3
  28. package/dist/dist-JOHRYQUA.js +7294 -0
  29. package/dist/{dist-GPQ4LAY3.js → dist-OLFOTUHS.js} +26 -6
  30. package/dist/{dist-NHJQVVUW.js → dist-Q6SAZI7X.js} +2 -2
  31. package/dist/{doctor-JBIV5PMN.js → doctor-TQYRF7KK.js} +2 -2
  32. package/dist/{edit-Y7XPYSMK.js → edit-EOMPXOG5.js} +1 -1
  33. package/dist/flow-7JUH6D4H.js +185 -0
  34. package/dist/global-AXILUM5X.js +136 -0
  35. package/dist/{habits-FA65W77Y.js → habits-ZJBAL4HD.js} +234 -5
  36. package/dist/{hooks-RLJFGKPF.js → hooks-DLZEYHI3.js} +1 -1
  37. package/dist/index.js +125 -100
  38. package/dist/{lint-HXKTWRNO.js → lint-N4LMMEXH.js} +141 -1
  39. package/dist/{list-R3QWW4SC.js → list-JKBJ7ESH.js} +1 -1
  40. package/dist/mcp.js +7982 -5065
  41. package/dist/{orchestrate-4ZH5GUQH.js → orchestrate-FAV64G2R.js} +6 -5
  42. package/dist/{probe-OYCP4JYG.js → probe-X3J2JX62.js} +18 -3
  43. package/dist/{promote-E6NBZ3BK.js → promote-HZH5E5CO.js} +1 -1
  44. package/dist/{providers-4PGPZEWP.js → providers-NQ67LO2Z.js} +1 -1
  45. package/dist/{record-OHQNWOUP.js → record-EECZ3E4I.js} +1 -1
  46. package/dist/{remember-6VZ74B7E.js → remember-3KJZGDUG.js} +1 -1
  47. package/dist/{review-RUHX25A5.js → review-BF26ILZB.js} +1 -1
  48. package/dist/{ripple-SBQOSTZD.js → ripple-JIUAMBLA.js} +2 -2
  49. package/dist/sentinel-KDIGZWKT.js +63 -0
  50. package/dist/{server-MV4HNFVF.js → server-NN7WDAZJ.js} +4413 -9
  51. package/dist/{setup-DF4F3ICN.js → setup-363IB6MO.js} +1 -1
  52. package/dist/{setup-JHBPZAG7.js → setup-UKJ3VGHI.js} +4 -4
  53. package/dist/{shift-YELZUPYG.js → shift-KDVYB6CR.js} +16 -13
  54. package/dist/{show-WTOJXUTN.js → show-SAMTXEHG.js} +1 -1
  55. package/dist/{snapshot-GTVPRYZG.js → snapshot-KCMONZAO.js} +2 -2
  56. package/dist/{spawn-BJRQA2NR.js → spawn-EO7B2UM3.js} +2 -2
  57. package/dist/{summary-5SBFO7QK.js → summary-E2PU4UN2.js} +3 -3
  58. package/dist/{switch-6EANJ7O6.js → switch-CC2KACXO.js} +1 -1
  59. package/dist/{sync-5KSTPJ4B.js → sync-5VJPZQNX.js} +2 -2
  60. package/dist/sync-llms-7QDA3ZWC.js +166 -0
  61. package/dist/{team-NWP2KJAB.js → team-6CCNANKE.js} +7 -6
  62. package/dist/{test-MA5TWJQV.js → test-DK2RWLTK.js} +91 -8
  63. package/dist/{thread-JCJVRUQR.js → thread-RNSLADXN.js} +18 -2
  64. package/dist/{timeline-P7BARFLI.js → timeline-TJDVVVA3.js} +1 -1
  65. package/dist/{triage-TBIWJA6R.js → triage-B5W6GZLT.js} +2 -2
  66. package/dist/university-content/courses/para-101.json +2 -1
  67. package/dist/university-content/courses/para-201.json +102 -3
  68. package/dist/university-content/courses/para-301.json +14 -11
  69. package/dist/university-content/courses/para-401.json +57 -3
  70. package/dist/university-content/courses/para-501.json +204 -6
  71. package/dist/university-content/plsat/v3.0.json +808 -3
  72. package/dist/university-content/reference.json +270 -0
  73. package/dist/{upgrade-TIYFQYPO.js → upgrade-RBSE4M6I.js} +1 -1
  74. package/dist/{validate-QEEY6KFS.js → validate-2LTHHORX.js} +1 -1
  75. package/dist/{watch-4LT4O6K7.js → watch-NBPOMOEX.js} +76 -0
  76. package/dist/{watch-2XEYUH43.js → watch-PAEH6MOG.js} +1 -1
  77. package/package.json +1 -1
  78. package/dist/chunk-GWM2WRXL.js +0 -1095
  79. package/dist/sentinel-WB7GIK4V.js +0 -43
  80. /package/dist/{chunk-TAP5N3HH.js → chunk-CCG6KYBT.js} +0 -0
@@ -350,20 +350,26 @@ function getServersFromConfig(client) {
350
350
  const config = JSON.parse(content);
351
351
  if (client.id === "continue") {
352
352
  const mcpServers = config?.experimental?.modelContextProtocolServers || [];
353
- return mcpServers.map((server, i) => ({
354
- name: `server-${i + 1}`,
355
- cwd: server?.transport?.cwd || "unknown",
356
- command: server?.transport?.command || "unknown",
357
- args: server?.transport?.args || []
358
- }));
353
+ return mcpServers.map((server, i) => {
354
+ const transport = server?.transport;
355
+ return {
356
+ name: `server-${i + 1}`,
357
+ cwd: transport?.cwd || "unknown",
358
+ command: transport?.command || "unknown",
359
+ args: transport?.args || []
360
+ };
361
+ });
359
362
  } else {
360
363
  const mcpServers = config?.mcpServers || {};
361
- return Object.entries(mcpServers).map(([name, server]) => ({
362
- name,
363
- cwd: server?.cwd || "unknown",
364
- command: server?.command || "unknown",
365
- args: server?.args || []
366
- }));
364
+ return Object.entries(mcpServers).map(([name, server]) => {
365
+ const s = server;
366
+ return {
367
+ name,
368
+ cwd: s?.cwd || "unknown",
369
+ command: s?.command || "unknown",
370
+ args: s?.args || []
371
+ };
372
+ });
367
373
  }
368
374
  } catch {
369
375
  return [];
@@ -452,7 +458,8 @@ async function mcpRemoveCommand(serverName, options) {
452
458
  const servers = config?.experimental?.modelContextProtocolServers || [];
453
459
  const originalLength = servers.length;
454
460
  const filtered = servers.filter((server) => {
455
- const serverCwd = server?.transport?.cwd || "";
461
+ const transport = server?.transport;
462
+ const serverCwd = transport?.cwd || "";
456
463
  return serverCwd !== projectPath;
457
464
  });
458
465
  if (filtered.length < originalLength) {
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/core/portal-compliance.ts
4
+ import * as fs from "fs";
5
+ import * as path from "path";
6
+ import * as yaml from "js-yaml";
7
+ function loadPortalConfig(rootDir) {
8
+ const portalPath = path.join(rootDir, "portal.yaml");
9
+ if (!fs.existsSync(portalPath)) {
10
+ return null;
11
+ }
12
+ try {
13
+ const content = fs.readFileSync(portalPath, "utf-8");
14
+ return yaml.load(content);
15
+ } catch {
16
+ return null;
17
+ }
18
+ }
19
+ function extractDeclaredGates(config) {
20
+ const gates = /* @__PURE__ */ new Set();
21
+ if (config.gates) {
22
+ for (const key of Object.keys(config.gates)) {
23
+ const gateName = key.startsWith("^") ? key.slice(1) : key;
24
+ gates.add(gateName);
25
+ }
26
+ }
27
+ if (config.routes) {
28
+ for (const routeConfig of Object.values(config.routes)) {
29
+ const gateList = Array.isArray(routeConfig) ? routeConfig : routeConfig.gates || [];
30
+ for (const gate of gateList) {
31
+ const gateName = gate.startsWith("^") ? gate.slice(1) : gate;
32
+ gates.add(gateName);
33
+ }
34
+ }
35
+ }
36
+ return Array.from(gates);
37
+ }
38
+
39
+ export {
40
+ loadPortalConfig,
41
+ extractDeclaredGates
42
+ };