@nebulacomponents/citable 1.17.0 → 1.18.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 (84) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/universal/.agents/skills/citable/SKILL.md +20 -1
  3. package/dist/universal/.agents/skills/citable/VERSION +1 -1
  4. package/dist/universal/.agents/skills/citable/manifest.json +6 -5
  5. package/dist/universal/.agents/skills/citable/schemas/sow.schema.json +92 -0
  6. package/dist/universal/.claude/agents/citable/manifest.json +2 -2
  7. package/dist/universal/.claude/skills/citable/SKILL.md +20 -1
  8. package/dist/universal/.claude/skills/citable/VERSION +1 -1
  9. package/dist/universal/.claude/skills/citable/manifest.json +6 -5
  10. package/dist/universal/.claude/skills/citable/schemas/sow.schema.json +92 -0
  11. package/dist/universal/.cursor/skills/citable/SKILL.md +20 -1
  12. package/dist/universal/.cursor/skills/citable/VERSION +1 -1
  13. package/dist/universal/.cursor/skills/citable/manifest.json +6 -5
  14. package/dist/universal/.cursor/skills/citable/schemas/sow.schema.json +92 -0
  15. package/dist/universal/.gemini/skills/citable/SKILL.md +20 -1
  16. package/dist/universal/.gemini/skills/citable/VERSION +1 -1
  17. package/dist/universal/.gemini/skills/citable/manifest.json +6 -5
  18. package/dist/universal/.gemini/skills/citable/schemas/sow.schema.json +92 -0
  19. package/dist/universal/.github/skills/citable/SKILL.md +20 -1
  20. package/dist/universal/.github/skills/citable/VERSION +1 -1
  21. package/dist/universal/.github/skills/citable/manifest.json +6 -5
  22. package/dist/universal/.github/skills/citable/schemas/sow.schema.json +92 -0
  23. package/dist/universal/.kiro/skills/citable/SKILL.md +20 -1
  24. package/dist/universal/.kiro/skills/citable/VERSION +1 -1
  25. package/dist/universal/.kiro/skills/citable/manifest.json +6 -5
  26. package/dist/universal/.kiro/skills/citable/schemas/sow.schema.json +92 -0
  27. package/dist/universal/.opencode/skills/citable/SKILL.md +20 -1
  28. package/dist/universal/.opencode/skills/citable/VERSION +1 -1
  29. package/dist/universal/.opencode/skills/citable/manifest.json +6 -5
  30. package/dist/universal/.opencode/skills/citable/schemas/sow.schema.json +92 -0
  31. package/dist/universal/.pi/agent/skills/citable/SKILL.md +20 -1
  32. package/dist/universal/.pi/agent/skills/citable/VERSION +1 -1
  33. package/dist/universal/.pi/agent/skills/citable/manifest.json +6 -5
  34. package/dist/universal/.pi/agent/skills/citable/schemas/sow.schema.json +92 -0
  35. package/dist/universal/.qoder/skills/citable/SKILL.md +20 -1
  36. package/dist/universal/.qoder/skills/citable/VERSION +1 -1
  37. package/dist/universal/.qoder/skills/citable/manifest.json +6 -5
  38. package/dist/universal/.qoder/skills/citable/schemas/sow.schema.json +92 -0
  39. package/dist/universal/.rovodev/skills/citable/SKILL.md +20 -1
  40. package/dist/universal/.rovodev/skills/citable/VERSION +1 -1
  41. package/dist/universal/.rovodev/skills/citable/manifest.json +6 -5
  42. package/dist/universal/.rovodev/skills/citable/schemas/sow.schema.json +92 -0
  43. package/dist/universal/.trae/skills/citable/SKILL.md +20 -1
  44. package/dist/universal/.trae/skills/citable/VERSION +1 -1
  45. package/dist/universal/.trae/skills/citable/manifest.json +6 -5
  46. package/dist/universal/.trae/skills/citable/schemas/sow.schema.json +92 -0
  47. package/dist/universal/.trae-cn/skills/citable/SKILL.md +20 -1
  48. package/dist/universal/.trae-cn/skills/citable/VERSION +1 -1
  49. package/dist/universal/.trae-cn/skills/citable/manifest.json +6 -5
  50. package/dist/universal/.trae-cn/skills/citable/schemas/sow.schema.json +92 -0
  51. package/dist/universal/manifest.json +76 -64
  52. package/package.json +1 -1
  53. package/schemas/sow.schema.json +92 -0
  54. package/skill/SKILL.md +20 -1
  55. package/src/analysis/behavioral.js +126 -0
  56. package/src/analysis/croAudit.js +302 -0
  57. package/src/analysis/croRoadmap.js +121 -0
  58. package/src/analysis/eeat.js +300 -0
  59. package/src/analysis/funnelAnalysis.js +171 -0
  60. package/src/analysis/iceMatrix.js +205 -0
  61. package/src/analysis/offpage.js +228 -0
  62. package/src/analysis/readiness.js +253 -0
  63. package/src/analysis/schemaRecommendations.js +173 -0
  64. package/src/analysis/strategicRoadmap.js +148 -0
  65. package/src/cli/index.js +149 -3
  66. package/src/commands/answerEngineReadiness.js +48 -0
  67. package/src/commands/auditBacklinks.js +79 -0
  68. package/src/commands/croBacklog.js +182 -0
  69. package/src/commands/croSuite.js +156 -0
  70. package/src/commands/executive.js +6 -0
  71. package/src/commands/executiveCro.js +30 -0
  72. package/src/commands/executiveSearch.js +28 -0
  73. package/src/commands/inspectCro.js +7 -0
  74. package/src/commands/inspectEeat.js +53 -0
  75. package/src/commands/prioritize.js +42 -6
  76. package/src/commands/roadmapCmd.js +69 -0
  77. package/src/commands/schemaCmd.js +10 -2
  78. package/src/commands/sowCmd.js +67 -0
  79. package/src/commands/sweep.js +357 -0
  80. package/src/reporting/executiveCroReport.js +731 -0
  81. package/src/reporting/executiveExport.js +62 -0
  82. package/src/reporting/executiveSearchReport.js +704 -0
  83. package/src/sow/admissibilityGate.js +194 -0
  84. package/src/sow/generateSow.js +762 -0
@@ -1,6 +1,19 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import { readJson } from "../shared/io.js";
4
+ import { exportExecutiveSearchReport, buildExecutiveSearchReport, renderSearchReportMarkdown, renderSearchReportHtml } from "./executiveSearchReport.js";
5
+ import { exportExecutiveCroReport, buildExecutiveCroReport, renderCroReportMarkdown, renderCroReportHtml } from "./executiveCroReport.js";
6
+
7
+ export {
8
+ exportExecutiveSearchReport,
9
+ buildExecutiveSearchReport,
10
+ renderSearchReportMarkdown,
11
+ renderSearchReportHtml,
12
+ exportExecutiveCroReport,
13
+ buildExecutiveCroReport,
14
+ renderCroReportMarkdown,
15
+ renderCroReportHtml,
16
+ };
4
17
 
5
18
  /**
6
19
  * Generates an executive briefing deliverable (HTML brief or Markdown deck)
@@ -10,7 +23,56 @@ export async function exportExecutiveReport(root, runId, {
10
23
  format = "html-brief",
11
24
  clientName = "Nebula Client",
12
25
  output = null,
26
+ type = null,
27
+ target = null,
28
+ baseUrl = null,
29
+ refDate = null,
30
+ input = null,
31
+ funnelId = null,
13
32
  } = {}) {
33
+ if (type === 'search' || type === 'seo' || format === 'search') {
34
+ const r = await exportExecutiveSearchReport(root, {
35
+ runId,
36
+ format: ['html-brief', 'html'].includes(format) ? 'html' : format === 'search' ? 'markdown' : format,
37
+ clientName,
38
+ output,
39
+ target,
40
+ baseUrl,
41
+ refDate,
42
+ backlinksInput: input,
43
+ });
44
+ return {
45
+ format: r.format,
46
+ client_name: r.client_name,
47
+ run_id: runId,
48
+ output_path: r.output_path,
49
+ content: r.content,
50
+ data: r.data,
51
+ };
52
+ }
53
+
54
+ if (type === 'cro' || format === 'cro') {
55
+ const r = await exportExecutiveCroReport(root, {
56
+ runId,
57
+ format: ['html-brief', 'html'].includes(format) ? 'html' : format === 'cro' ? 'markdown' : format,
58
+ clientName,
59
+ output,
60
+ target,
61
+ baseUrl,
62
+ refDate,
63
+ telemetryInput: input,
64
+ funnelId,
65
+ });
66
+ return {
67
+ format: r.format,
68
+ client_name: r.client_name,
69
+ run_id: runId,
70
+ output_path: r.output_path,
71
+ content: r.content,
72
+ data: r.data,
73
+ };
74
+ }
75
+
14
76
  const runsDir = path.join(root, ".citable", "runs");
15
77
  let targetRun = runId;
16
78