@anthusai/papyrus 2.0.0-next.3 → 2.0.0-next.31

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 (105) hide show
  1. package/amplify/data/resource.js +22 -3
  2. package/amplify/data/resource.ts +24 -3
  3. package/amplify/data/schema.js +2029 -1967
  4. package/amplify/data/schema.ts +72 -2
  5. package/amplify/functions/assignment-action/data-access.js +88 -0
  6. package/amplify/functions/assignment-action/data-access.ts +87 -0
  7. package/amplify/functions/content-actions/handler.py +33 -0
  8. package/amplify/functions/content-actions/requirements.txt +1 -0
  9. package/amplify/functions/content-actions/resource.js +1 -1
  10. package/amplify/functions/content-actions/resource.ts +1 -1
  11. package/amplify/functions/editorial-checks/handler.py +14 -0
  12. package/amplify/functions/editorial-checks/requirements.txt +1 -0
  13. package/amplify/functions/editorial-checks/resource.js +43 -0
  14. package/amplify/functions/editorial-checks/resource.ts +60 -0
  15. package/amplify/functions/editorial-checks/schema.js +121 -0
  16. package/amplify/functions/editorial-checks/schema.ts +123 -0
  17. package/amplify/functions/editorial-checks/wire.js +53 -0
  18. package/amplify/functions/editorial-checks/wire.ts +61 -0
  19. package/amplify/functions/monitoring-view/handler.py +11 -0
  20. package/amplify/functions/monitoring-view/resource.js +24 -0
  21. package/amplify/functions/monitoring-view/resource.ts +34 -0
  22. package/amplify/functions/monitoring-view/schema.js +16 -0
  23. package/amplify/functions/monitoring-view/schema.ts +18 -0
  24. package/amplify/functions/monitoring-view/wire.js +37 -0
  25. package/amplify/functions/monitoring-view/wire.ts +47 -0
  26. package/amplify/functions/public-forms/core.js +247 -0
  27. package/amplify/functions/public-forms/core.ts +310 -0
  28. package/amplify/functions/public-forms/handler.ts +41 -0
  29. package/amplify/functions/public-forms/origins.js +35 -0
  30. package/amplify/functions/public-forms/origins.ts +43 -0
  31. package/amplify/functions/public-forms/resource.js +9 -0
  32. package/amplify/functions/public-forms/resource.ts +10 -0
  33. package/amplify/functions/public-forms/wire.js +25 -0
  34. package/amplify/functions/public-forms/wire.ts +32 -0
  35. package/amplify/functions/shared/python-bundle.js +20 -14
  36. package/amplify/functions/shared/python-bundle.ts +25 -18
  37. package/amplify/publication/redirect-and-index.js +83 -0
  38. package/amplify/publication/redirect-rules.js +61 -0
  39. package/amplify/publication/redirect-rules.ts +79 -0
  40. package/amplify/publication/s3-projection.js +5 -1
  41. package/amplify/publication/s3-projection.ts +7 -1
  42. package/amplify/site-backend-config.ts +17 -0
  43. package/amplify/site-backend.js +36 -1
  44. package/amplify/site-backend.ts +44 -1
  45. package/app/api/newsroom/curation/context/route.ts +9 -0
  46. package/app/api/newsroom/curation/priming/route.ts +9 -0
  47. package/app/api/newsroom/curation/publication/route.ts +9 -0
  48. package/bin/papyrus-infra.mjs +20 -1
  49. package/components/editorial-checks-admin-panel.tsx +362 -0
  50. package/components/editorial-finding-card.tsx +162 -0
  51. package/components/editorial-findings-panel.tsx +91 -0
  52. package/components/editorial-preview-popover.tsx +103 -0
  53. package/components/markus-body-editor.tsx +213 -0
  54. package/components/markus-ir-preview.tsx +147 -6
  55. package/components/monitoring-overview-view.tsx +240 -0
  56. package/components/monitoring-panel.tsx +40 -0
  57. package/components/newsroom-article-editor.tsx +136 -11
  58. package/components/newsroom-board-view.tsx +6 -7
  59. package/components/newsroom-curation-bootstrap.tsx +45 -0
  60. package/components/newsroom-ops-shell.tsx +7 -3
  61. package/components/newsroom-organizer.css +74 -61
  62. package/components/newsroom-references-view.tsx +14 -14
  63. package/components/newsroom-theme-fonts/broadsheet-green.css +10 -0
  64. package/components/newsroom-theme-fonts/broadsheet-green.tsx +6 -0
  65. package/components/newsroom-theme-fonts/newspaper-gothic.css +9 -0
  66. package/components/newsroom-theme-fonts/newspaper-gothic.tsx +6 -0
  67. package/components/newsroom-theme-fonts/night-desk.css +10 -0
  68. package/components/newsroom-theme-fonts/night-desk.tsx +6 -0
  69. package/components/newsroom-theme-fonts/refined-newsprint.css +11 -0
  70. package/components/newsroom-theme-fonts/refined-newsprint.tsx +6 -0
  71. package/components/newsroom-theme.css +39 -0
  72. package/components/newsroom-theme.tsx +33 -0
  73. package/components/publication-cyclotron-panel.tsx +10 -10
  74. package/components/reference-add-entry.tsx +75 -0
  75. package/components/reference-curation-controls.tsx +30 -21
  76. package/components/reference-cyclotron-priming.tsx +4 -4
  77. package/components/reference-cyclotron-suggestion.tsx +1 -1
  78. package/components/reference-priming.tsx +14 -10
  79. package/components/reference-section-suggestion.tsx +1 -1
  80. package/components/topic-steering-workspace.tsx +27 -2
  81. package/components/use-editorial-checks.ts +133 -0
  82. package/lib/category-repository.ts +11 -9
  83. package/lib/curation-routes.ts +342 -0
  84. package/lib/editorial-checks-backend.ts +16 -0
  85. package/lib/editorial-checks-client.ts +212 -0
  86. package/lib/editorial-checks-demo.ts +147 -0
  87. package/lib/editorial-checks-settings.ts +27 -0
  88. package/lib/editorial-checks.ts +171 -0
  89. package/lib/editorial-preview.ts +228 -0
  90. package/lib/monitoring-client.ts +29 -0
  91. package/lib/monitoring-overview-fixture.ts +51 -0
  92. package/lib/monitoring-overview.ts +144 -0
  93. package/lib/newsroom-board.ts +27 -2
  94. package/lib/relevance-status.ts +2 -2
  95. package/lib/site-brand-tenant.ts +11 -6
  96. package/lib/site-brand.ts +23 -3
  97. package/package.json +47 -3
  98. package/routes.manifest.json +34 -1
  99. package/components/newsroom-fonts/playfair-display-700.ttf +0 -0
  100. package/components/newsroom-fonts/playfair-display-900.ttf +0 -0
  101. package/components/newsroom-fonts/playfair-display-OFL.txt +0 -93
  102. package/components/newsroom-fonts/plus-jakarta-sans-400.ttf +0 -0
  103. package/components/newsroom-fonts/plus-jakarta-sans-600.ttf +0 -0
  104. package/components/newsroom-fonts/plus-jakarta-sans-OFL.txt +0 -93
  105. package/components/newsroom-newsprint-board.css +0 -7
@@ -0,0 +1,144 @@
1
+ /** Shapes and wording for the newsroom Monitoring page. The function in src/papyrus_content/monitoring_view.py produces them. */
2
+ import { getNewsroomNavHref } from "./newsroom-nav";
3
+
4
+ export type MonitoringDeliveryState = "delivered" | "failed" | "pending" | "not_applicable" | null;
5
+
6
+ export type MonitoringRelevance = {
7
+ publicationId: string;
8
+ site: string | null;
9
+ relevant: boolean | null;
10
+ label: string | null;
11
+ confidence: number | null;
12
+ delivery: {
13
+ state: MonitoringDeliveryState;
14
+ referenceId?: string | null;
15
+ referenceLineageId?: string | null;
16
+ deliveredAt?: string | null;
17
+ error?: string | null;
18
+ attempts?: number | null;
19
+ };
20
+ };
21
+
22
+ export type MonitoringItem = {
23
+ sourceId: string;
24
+ revision: number;
25
+ title: string;
26
+ url: string | null;
27
+ discussionUrl: string | null;
28
+ observedAt: string | null;
29
+ routing: string;
30
+ routingNote: string | null;
31
+ decidedAt: string | null;
32
+ relevance: MonitoringRelevance[];
33
+ };
34
+
35
+ export type MonitoringRun = {
36
+ runId: string;
37
+ startedAt: string;
38
+ status: string;
39
+ new: number;
40
+ revised: number;
41
+ unchanged: number;
42
+ itemCount: number | null;
43
+ errorCount: number;
44
+ errors: (string | null)[];
45
+ };
46
+
47
+ export type MonitoringRouterRun = {
48
+ runId: string;
49
+ startedAt: string;
50
+ mode: string;
51
+ status: string;
52
+ stoppedBy: string | null;
53
+ counts: Record<string, number>;
54
+ errorCount: number;
55
+ };
56
+
57
+ export type MonitoringFeed = {
58
+ id: string;
59
+ sourceUrl: string | null;
60
+ intervalSeconds: number | null;
61
+ limit: number | null;
62
+ enabled: boolean;
63
+ lastStatus: string | null;
64
+ lastFinishedAt: string | null;
65
+ nextDueAt: string | null;
66
+ };
67
+
68
+ export type MonitoringOverview = {
69
+ state: "ready" | "empty";
70
+ asOf: string;
71
+ notice?: "publication_not_routed";
72
+ scope: { mode: "publication" | "all"; publicationId: string | null; site: string | null; canViewAll: boolean };
73
+ feeds: MonitoringFeed[];
74
+ runs: MonitoringRun[];
75
+ routerRuns: MonitoringRouterRun[];
76
+ router: { mode: string; feedback: boolean; enabled: boolean; maxItemsPerRun: number | null } | null;
77
+ usage: {
78
+ day: string;
79
+ decisionsToday: number;
80
+ decisionsTotal: number;
81
+ ceilings: { decisionsTotal?: number; decisionsPerDay?: number; items?: number } | null;
82
+ } | null;
83
+ items: MonitoringItem[];
84
+ hiddenNotRelevant: number;
85
+ };
86
+
87
+ export type MonitoringResult =
88
+ | MonitoringOverview
89
+ | { state: "not_configured" }
90
+ | { state: "unavailable" }
91
+ | { error: "forbidden" | "bad_request" };
92
+
93
+ const ROUTING_WORDS: Record<string, string> = {
94
+ collected: "Collected, waiting for the router",
95
+ "dry-run-validated": "Checked in a dry run, not sent",
96
+ decided: "Judged, delivery not finished",
97
+ routed: "Routed",
98
+ refused: "Refused by the shared Cyclotron",
99
+ uncertain: "Uncertain, needs a person",
100
+ error: "Error",
101
+ };
102
+
103
+ export function routingLabel(routing: string): string {
104
+ return ROUTING_WORDS[routing] ?? routing;
105
+ }
106
+
107
+ /** Fixed-format UTC time so the page reads the same everywhere. */
108
+ export function formatUtc(iso: string | null | undefined): string {
109
+ if (!iso) return "never";
110
+ const match = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})/.exec(iso);
111
+ return match ? `${match[1]} ${match[2]} UTC` : iso;
112
+ }
113
+
114
+ export function confidenceText(confidence: number | null): string {
115
+ return confidence === null ? "confidence not reported" : `${Math.round(confidence * 100)}% confidence`;
116
+ }
117
+
118
+ export function usageText(used: number, ceiling: number | undefined): string {
119
+ return ceiling === undefined ? `${used} used, no ceiling set` : `${used} of ${ceiling}`;
120
+ }
121
+
122
+ export function everyText(seconds: number | null): string {
123
+ if (!seconds) return "on a schedule";
124
+ return seconds % 3600 === 0 ? `every ${seconds / 3600} h` : seconds % 60 === 0 ? `every ${seconds / 60} min` : `every ${seconds} s`;
125
+ }
126
+
127
+ export function referenceHref(lineageId: string, demo?: boolean): string {
128
+ return getNewsroomNavHref(`/newsroom/references/${encodeURIComponent(lineageId)}`, demo);
129
+ }
130
+
131
+ export function describeRelevance(entry: MonitoringRelevance): string {
132
+ if (entry.relevant === null) return "Not judged yet";
133
+ return entry.relevant ? "Relevant" : "Not relevant";
134
+ }
135
+
136
+ export function describeDelivery(entry: MonitoringRelevance): string {
137
+ switch (entry.delivery.state) {
138
+ case "delivered": return "In the References queue";
139
+ case "failed": return "Not in the References queue: delivery failed";
140
+ case "pending": return "Not in the References queue yet";
141
+ case "not_applicable": return "Nothing to deliver";
142
+ default: return "";
143
+ }
144
+ }
@@ -21,6 +21,31 @@ export interface NativeBoardIssue extends KanbanIssue {
21
21
  href: string;
22
22
  /** A few lines to show under the headline: the blurb, else the subtitle. */
23
23
  excerpt?: string;
24
+ /** The quiet path shown where a board would print the ID, e.g. `articles/my-slug` or `assignments/write-it`. */
25
+ displayId: string;
26
+ }
27
+
28
+ function slugify(text: string): string {
29
+ return text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
30
+ }
31
+
32
+ /** Section and slug for a content item, falling back to the publication's board path segment. */
33
+ export function contentItemDisplayId(version: { section?: string | null; slug?: string | null; lineageId: string }): string {
34
+ const section = slugify(version.section ?? "") || contentItemBoardPathSegment();
35
+ return `${section}/${slugify(version.slug ?? "") || version.lineageId.slice(0, 8)}`;
36
+ }
37
+
38
+ /** Assignments have no slug: use the title as one, else a short id. */
39
+ export function assignmentDisplayId(assignment: { id: string; title?: string | null }): string {
40
+ const titleSlug = slugify(assignment.title ?? "").slice(0, 48).replace(/-+$/g, "");
41
+ return `assignments/${titleSlug || assignment.id.slice(0, 8)}`;
42
+ }
43
+
44
+ /** `formatIssueId` for the Kanbus UI: the host-provided path, never the raw `kind:id` prefix. */
45
+ export function formatNativeIssueId(issue: KanbanIssue): string {
46
+ const displayId = (issue as Partial<NativeBoardIssue>).displayId;
47
+ if (displayId) return displayId;
48
+ return issue.id.replace(/^[A-Za-z]+:/, "").slice(0, 12);
24
49
  }
25
50
 
26
51
  export function contentItemBoardPathSegment(): string {
@@ -60,7 +85,7 @@ export function projectContentItemBoard(records: {
60
85
  title: version.headline || version.title || version.slug, nativeStatus: stage, status: `${contentItemType}/${stage}`,
61
86
  priority: 2, description: workCount ? `${workCount} assignment${workCount === 1 ? "" : "s"} on this ${contentItemType}.` : undefined,
62
87
  updated_at: version.updatedAt ?? undefined, href: `/newsroom/articles/${encodeURIComponent(version.id)}`,
63
- excerpt: contentItemExcerpt(version),
88
+ excerpt: contentItemExcerpt(version), displayId: contentItemDisplayId(version),
64
89
  };
65
90
  });
66
91
  }
@@ -73,7 +98,7 @@ export function projectAssignmentBoard(assignments: readonly AssignmentRecord[])
73
98
  priority: row.priority ?? 2, assignee: row.assigneeId || undefined,
74
99
  description: row.summary || row.brief || undefined,
75
100
  created_at: row.createdAt, updated_at: row.updatedAt,
76
- href: `/newsroom/assignments/${encodeURIComponent(row.id)}`,
101
+ href: `/newsroom/assignments/${encodeURIComponent(row.id)}`, displayId: assignmentDisplayId(row),
77
102
  }));
78
103
  }
79
104
 
@@ -52,10 +52,10 @@ export const DEMO_CYCLOTRON_STATUS: CyclotronStatus = {
52
52
  },
53
53
  calibration: { saysSure: null, isRight: null, gapPoints: null, curve: [] },
54
54
  reviewRate: {
55
- state: "onboarding", rate: 1, reason: "Onboarding: every decision is reviewed until the cyclotron earns a lower rate.",
55
+ state: "onboarding", rate: 1, reason: "Getting started: every suggestion is reviewed until suggestions earn a lower review rate.",
56
56
  auditFloor: 0.05, confidenceThreshold: 0.7, override: null,
57
57
  nextCheckAfterDecisions: 99,
58
- nextStep: "Steps down to 50% after 2 more windows of 100 decisions with accuracy on confident decisions of at least 85% (at least 20 reviewed) and a calibration gap under 5 points. Next check in 99 decisions.",
58
+ nextStep: "Steps down to 50% after 2 more windows of 100 decisions with accuracy on confident decisions of at least 85% (at least 20 reviewed) and a gap under 5 points between how sure suggestions say they are and how often they are right. Next check in 99 decisions.",
59
59
  expectedReviewsPerWeek: 1,
60
60
  },
61
61
  lastChange: null,
@@ -9,14 +9,19 @@ export function resolveBrandConfigPath(relativePath: string): string {
9
9
  return path.isAbsolute(relativePath) ? relativePath : path.join(process.cwd(), relativePath);
10
10
  }
11
11
 
12
- export function getBrandSteeringConfigPath(brand: SiteBrand = resolveActiveSiteBrand()): string {
13
- return resolveBrandConfigPath(brand.steeringConfigPath);
12
+ /** Optional repo files a brand may still name; undefined means the site keeps that configuration as backend data and nothing is looked up. */
13
+ function optionalBrandConfigPath(relativePath: string | undefined): string | undefined {
14
+ return relativePath ? resolveBrandConfigPath(relativePath) : undefined;
14
15
  }
15
16
 
16
- export function getBrandNewsroomSectionsConfigPath(brand: SiteBrand = resolveActiveSiteBrand()): string {
17
- return resolveBrandConfigPath(brand.newsroomSectionsConfigPath);
17
+ export function getBrandSteeringConfigPath(brand: SiteBrand = resolveActiveSiteBrand()): string | undefined {
18
+ return optionalBrandConfigPath(brand.steeringConfigPath);
18
19
  }
19
20
 
20
- export function getBrandAnalysisProfilesPath(brand: SiteBrand = resolveActiveSiteBrand()): string {
21
- return resolveBrandConfigPath(brand.analysisProfilesPath);
21
+ export function getBrandNewsroomSectionsConfigPath(brand: SiteBrand = resolveActiveSiteBrand()): string | undefined {
22
+ return optionalBrandConfigPath(brand.newsroomSectionsConfigPath);
23
+ }
24
+
25
+ export function getBrandAnalysisProfilesPath(brand: SiteBrand = resolveActiveSiteBrand()): string | undefined {
26
+ return optionalBrandConfigPath(brand.analysisProfilesPath);
22
27
  }
package/lib/site-brand.ts CHANGED
@@ -3,6 +3,7 @@ import type { ComponentType } from "react";
3
3
  import type { EditionPresentationFormat } from "./content-types";
4
4
  import type { Article, ArticleVideoAsset } from "./articles";
5
5
  import type { BlogPageBackgroundProps } from "../components/blog-page-background";
6
+ import type { KanbusThemeId } from "@kanbus/ui";
6
7
  import type { SiteBrandFont } from "./brand-fonts";
7
8
  import type { PictogramFigureProps } from "../components/pictogram-figure";
8
9
  import papyrusSite from "papyrus-site";
@@ -118,6 +119,13 @@ export type SiteBrand = {
118
119
  defaultVideoCredit?: string;
119
120
  themePack: ThemePackId;
120
121
  themeTokens: ThemePackTokens;
122
+ /**
123
+ * The Kanbus editorial theme the whole newsroom (sidebar, toolbar, boards,
124
+ * detail panel) renders in. Hard-coded per publication: editors cannot
125
+ * change it. Per-publication tweaks are `--kb-theme-*` overrides in the
126
+ * publication's `theme.css`, scoped to `[data-kanbus-theme]`.
127
+ */
128
+ kanbusTheme: KanbusThemeId;
121
129
  renderer: RendererConfig;
122
130
  hosting: HostingConfig;
123
131
  /** Static reader app when it is not co-hosted with this Papyrus checkout. */
@@ -134,9 +142,12 @@ export type SiteBrand = {
134
142
  readerBasePath?: string;
135
143
  opsChrome: OpsChrome;
136
144
  corpusKey: string;
137
- steeringConfigPath: string;
138
- newsroomSectionsConfigPath: string;
139
- analysisProfilesPath: string;
145
+ /** Optional repo file for topic steering. Editorial and steering configuration is backend data; a data-driven site sets none and nothing is looked up. */
146
+ steeringConfigPath?: string;
147
+ /** Optional repo file for the local-preview demo sections only. Sections live in the backend. */
148
+ newsroomSectionsConfigPath?: string;
149
+ /** Optional repo file listing analysis profiles. */
150
+ analysisProfilesPath?: string;
140
151
  publicationName: string;
141
152
  components?: SiteBrandComponents;
142
153
  /**
@@ -182,6 +193,7 @@ const REFERENCE_SITE_BRANDS: Record<SiteBrandId, SiteBrand> = {
182
193
  sectionLinkStrategy: "route",
183
194
  themePack: "papyrus",
184
195
  themeTokens: DEFAULT_THEME_PACK_TOKENS,
196
+ kanbusTheme: "broadsheet-green",
185
197
  renderer: { kind: "pretext" },
186
198
  hosting: { kind: "amplify-ssr" },
187
199
  opsChrome: "app",
@@ -237,6 +249,14 @@ export function getSiteBrand(id: SiteBrandId = resolveSiteBrandId()): SiteBrand
237
249
 
238
250
  export const SITE_BRAND = getSiteBrand();
239
251
 
252
+ /** Mirrors `DEFAULT_KANBUS_THEME` from `@kanbus/ui` (a test keeps the two equal) without a runtime import. */
253
+ export const FALLBACK_KANBUS_THEME: KanbusThemeId = "newspaper-gothic";
254
+
255
+ /** The newsroom theme for a brand; a brand that predates the field falls back to the default theme. */
256
+ export function getKanbusTheme(brand: Pick<SiteBrand, "kanbusTheme"> = SITE_BRAND): KanbusThemeId {
257
+ return brand.kanbusTheme ?? FALLBACK_KANBUS_THEME;
258
+ }
259
+
240
260
  export function getContentItemName(brand: SiteBrand = SITE_BRAND): ContentItemName {
241
261
  return brand.contentItemName ?? DEFAULT_CONTENT_ITEM_NAME;
242
262
  }
package/package.json CHANGED
@@ -78,8 +78,15 @@
78
78
  "./components/blog-page-background": "./components/blog-page-background.tsx",
79
79
  "./components/curation-delegation-client": "./components/curation-delegation-client.ts",
80
80
  "./components/dev-sandbox-editor-sign-in": "./components/dev-sandbox-editor-sign-in.tsx",
81
+ "./components/editorial-checks-admin-panel": "./components/editorial-checks-admin-panel.tsx",
82
+ "./components/editorial-finding-card": "./components/editorial-finding-card.tsx",
83
+ "./components/editorial-findings-panel": "./components/editorial-findings-panel.tsx",
84
+ "./components/editorial-preview-popover": "./components/editorial-preview-popover.tsx",
81
85
  "./components/item-stream-view": "./components/item-stream-view.tsx",
86
+ "./components/markus-body-editor": "./components/markus-body-editor.tsx",
82
87
  "./components/markus-ir-preview": "./components/markus-ir-preview.tsx",
88
+ "./components/monitoring-overview-view": "./components/monitoring-overview-view.tsx",
89
+ "./components/monitoring-panel": "./components/monitoring-panel.tsx",
83
90
  "./components/news-desk-client-provider": "./components/news-desk-client-provider.tsx",
84
91
  "./components/news-desk-page": "./components/news-desk-page.tsx",
85
92
  "./components/news-desk-taxonomy-client": "./components/news-desk-taxonomy-client.ts",
@@ -91,10 +98,16 @@
91
98
  "./components/newsroom-assignments-view": "./components/newsroom-assignments-view.tsx",
92
99
  "./components/newsroom-board-view": "./components/newsroom-board-view.tsx",
93
100
  "./components/newsroom-client-shell": "./components/newsroom-client-shell.tsx",
101
+ "./components/newsroom-curation-bootstrap": "./components/newsroom-curation-bootstrap.tsx",
94
102
  "./components/newsroom-curation-provider": "./components/newsroom-curation-provider.tsx",
95
103
  "./components/newsroom-ops-overview": "./components/newsroom-ops-overview.tsx",
96
104
  "./components/newsroom-ops-shell": "./components/newsroom-ops-shell.tsx",
97
105
  "./components/newsroom-references-view": "./components/newsroom-references-view.tsx",
106
+ "./components/newsroom-theme-fonts/broadsheet-green": "./components/newsroom-theme-fonts/broadsheet-green.tsx",
107
+ "./components/newsroom-theme-fonts/newspaper-gothic": "./components/newsroom-theme-fonts/newspaper-gothic.tsx",
108
+ "./components/newsroom-theme-fonts/night-desk": "./components/newsroom-theme-fonts/night-desk.tsx",
109
+ "./components/newsroom-theme-fonts/refined-newsprint": "./components/newsroom-theme-fonts/refined-newsprint.tsx",
110
+ "./components/newsroom-theme": "./components/newsroom-theme.tsx",
98
111
  "./components/newsroom-topics-view": "./components/newsroom-topics-view.tsx",
99
112
  "./components/papyrus-console-shell": "./components/papyrus-console-shell.tsx",
100
113
  "./components/pictogram-figure": "./components/pictogram-figure.tsx",
@@ -108,6 +121,7 @@
108
121
  "./components/reader-auth-state": "./components/reader-auth-state.ts",
109
122
  "./components/reader-settings": "./components/reader-settings.ts",
110
123
  "./components/reader-theme-control": "./components/reader-theme-control.tsx",
124
+ "./components/reference-add-entry": "./components/reference-add-entry.tsx",
111
125
  "./components/reference-curation-controls": "./components/reference-curation-controls.tsx",
112
126
  "./components/reference-cyclotron-priming": "./components/reference-cyclotron-priming.tsx",
113
127
  "./components/reference-cyclotron-status": "./components/reference-cyclotron-status.tsx",
@@ -143,6 +157,7 @@
143
157
  "./components/ui/tooltip": "./components/ui/tooltip.tsx",
144
158
  "./components/use-blog-header-obstacles": "./components/use-blog-header-obstacles.ts",
145
159
  "./components/use-brand-fonts-ready": "./components/use-brand-fonts-ready.ts",
160
+ "./components/use-editorial-checks": "./components/use-editorial-checks.ts",
146
161
  "./components/use-near-viewport": "./components/use-near-viewport.ts",
147
162
  "./components/use-paged-content-item-versions": "./components/use-paged-content-item-versions.ts",
148
163
  "./components/use-resolved-papyrus-theme": "./components/use-resolved-papyrus-theme.ts",
@@ -177,6 +192,7 @@
177
192
  "./lib/content-types": "./lib/content-types.ts",
178
193
  "./lib/curation-client": "./lib/curation-client.ts",
179
194
  "./lib/curation-delegation-helpers": "./lib/curation-delegation-helpers.ts",
195
+ "./lib/curation-routes": "./lib/curation-routes.ts",
180
196
  "./lib/cyclotron-suggestions": "./lib/cyclotron-suggestions.ts",
181
197
  "./lib/define-site": "./lib/define-site.ts",
182
198
  "./lib/demo-amplify-outputs": "./lib/demo-amplify-outputs.ts",
@@ -184,6 +200,12 @@
184
200
  "./lib/doctrine": "./lib/doctrine.ts",
185
201
  "./lib/edition-routes": "./lib/edition-routes.ts",
186
202
  "./lib/edition-sections": "./lib/edition-sections.ts",
203
+ "./lib/editorial-checks-backend": "./lib/editorial-checks-backend.ts",
204
+ "./lib/editorial-checks-client": "./lib/editorial-checks-client.ts",
205
+ "./lib/editorial-checks-demo": "./lib/editorial-checks-demo.ts",
206
+ "./lib/editorial-checks-settings": "./lib/editorial-checks-settings.ts",
207
+ "./lib/editorial-checks": "./lib/editorial-checks.ts",
208
+ "./lib/editorial-preview": "./lib/editorial-preview.ts",
187
209
  "./lib/empty-edition-layout-plan": "./lib/empty-edition-layout-plan.ts",
188
210
  "./lib/excerpts": "./lib/excerpts.ts",
189
211
  "./lib/front-matter-fields": "./lib/front-matter-fields.ts",
@@ -207,6 +229,9 @@
207
229
  "./lib/markus-projection": "./lib/markus-projection.ts",
208
230
  "./lib/markus-to-article": "./lib/markus-to-article.ts",
209
231
  "./lib/media-route-response": "./lib/media-route-response.ts",
232
+ "./lib/monitoring-client": "./lib/monitoring-client.ts",
233
+ "./lib/monitoring-overview-fixture": "./lib/monitoring-overview-fixture.ts",
234
+ "./lib/monitoring-overview": "./lib/monitoring-overview.ts",
210
235
  "./lib/news-desk-session": "./lib/news-desk-session.ts",
211
236
  "./lib/newspaper-layout": "./lib/newspaper-layout.ts",
212
237
  "./lib/newsroom-articles": "./lib/newsroom-articles.ts",
@@ -313,6 +338,9 @@
313
338
  "./app/api/local-preview/derive/route": "./app/api/local-preview/derive/route.ts",
314
339
  "./app/api/local-preview/media/route": "./app/api/local-preview/media/route.ts",
315
340
  "./app/api/media/[...path]/route": "./app/api/media/[...path]/route.ts",
341
+ "./app/api/newsroom/curation/context/route": "./app/api/newsroom/curation/context/route.ts",
342
+ "./app/api/newsroom/curation/priming/route": "./app/api/newsroom/curation/priming/route.ts",
343
+ "./app/api/newsroom/curation/publication/route": "./app/api/newsroom/curation/publication/route.ts",
316
344
  "./app/api/revalidate/route": "./app/api/revalidate/route.ts",
317
345
  "./app/archive/page": "./app/archive/page.tsx",
318
346
  "./app/articles/[slug]/page": "./app/articles/[slug]/page.tsx",
@@ -378,11 +406,12 @@
378
406
  "optional": true
379
407
  }
380
408
  },
381
- "version": "2.0.0-next.3",
409
+ "version": "2.0.0-next.31",
382
410
  "dependencies": {
383
411
  "@aws-amplify/adapter-nextjs": "^1.7.3",
384
412
  "@aws-crypto/sha256-js": "5.2.0",
385
413
  "@aws-sdk/client-cognito-identity-provider": "3.1045.0",
414
+ "@aws-sdk/client-dynamodb": "^3.1045.0",
386
415
  "@aws-sdk/client-lambda": "^3.1045.0",
387
416
  "@aws-sdk/client-s3": "^3.1045.0",
388
417
  "@aws-sdk/client-secrets-manager": "3.1045.0",
@@ -391,7 +420,22 @@
391
420
  "@aws-sdk/s3-request-presigner": "^3.1045.0",
392
421
  "@base-ui/react": "^1.5.0",
393
422
  "@chenglou/pretext": "^0.0.7",
394
- "@kanbus/ui": "https://github.com/AnthusAI/Kanbus/releases/download/ui-v0.3.1/kanbus-ui-0.3.1.tgz",
423
+ "@codemirror/commands": "^6.11.1",
424
+ "@codemirror/lang-markdown": "^6.5.2",
425
+ "@codemirror/language": "^6.13.1",
426
+ "@codemirror/state": "^6.7.6",
427
+ "@codemirror/view": "^6.43.15",
428
+ "@fontsource-variable/hanken-grotesk": "5.3.0",
429
+ "@fontsource-variable/jetbrains-mono": "5.3.0",
430
+ "@fontsource-variable/libre-franklin": "5.3.0",
431
+ "@fontsource-variable/literata": "5.3.0",
432
+ "@fontsource-variable/newsreader": "5.3.0",
433
+ "@fontsource-variable/public-sans": "5.3.0",
434
+ "@fontsource-variable/source-serif-4": "5.3.1",
435
+ "@fontsource/ibm-plex-mono": "5.3.0",
436
+ "@fontsource/ibm-plex-sans": "5.3.0",
437
+ "@kanbus/ui": "https://github.com/AnthusAI/Kanbus/releases/download/ui-v0.4.1/kanbus-ui-0.4.1.tgz",
438
+ "@lezer/highlight": "^1.2.5",
395
439
  "@radix-ui/colors": "3.0.0",
396
440
  "@smithy/protocol-http": "5.4.1",
397
441
  "@smithy/signature-v4": "5.7.4",
@@ -403,7 +447,7 @@
403
447
  "class-variance-authority": "^0.7.1",
404
448
  "clsx": "^2.1.1",
405
449
  "cmdk": "^1.1.1",
406
- "cyclotron": "https://github.com/AnthusAI/Cyclotron/releases/download/ui-v0.2.2/cyclotron-0.2.2.tgz",
450
+ "cyclotron": "https://github.com/AnthusAI/Cyclotron/releases/download/ui-v0.2.3/cyclotron-0.2.3.tgz",
407
451
  "d3": "^7.9.0",
408
452
  "esbuild": "^0.28.2",
409
453
  "framer-motion": "^14.3.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.0-next.3",
2
+ "version": "2.0.0-next.31",
3
3
  "routes": [
4
4
  {
5
5
  "file": "app/%5F_preview/[[...path]]/route.ts",
@@ -170,6 +170,39 @@
170
170
  "dynamic": "\"force-dynamic\""
171
171
  }
172
172
  },
173
+ {
174
+ "file": "app/api/newsroom/curation/context/route.ts",
175
+ "hasDefault": false,
176
+ "exports": [
177
+ "GET"
178
+ ],
179
+ "config": {
180
+ "dynamic": "\"force-dynamic\"",
181
+ "runtime": "\"nodejs\""
182
+ }
183
+ },
184
+ {
185
+ "file": "app/api/newsroom/curation/priming/route.ts",
186
+ "hasDefault": false,
187
+ "exports": [
188
+ "POST"
189
+ ],
190
+ "config": {
191
+ "dynamic": "\"force-dynamic\"",
192
+ "runtime": "\"nodejs\""
193
+ }
194
+ },
195
+ {
196
+ "file": "app/api/newsroom/curation/publication/route.ts",
197
+ "hasDefault": false,
198
+ "exports": [
199
+ "POST"
200
+ ],
201
+ "config": {
202
+ "dynamic": "\"force-dynamic\"",
203
+ "runtime": "\"nodejs\""
204
+ }
205
+ },
173
206
  {
174
207
  "file": "app/api/revalidate/route.ts",
175
208
  "hasDefault": false,
@@ -1,93 +0,0 @@
1
- Copyright 2017 The Playfair Display Project Authors (https://github.com/clauseggers/Playfair-Display), with Reserved Font Name "Playfair Display"
2
-
3
- This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
- This license is copied below, and is also available with a FAQ at:
5
- http://scripts.sil.org/OFL
6
-
7
-
8
- -----------------------------------------------------------
9
- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
- -----------------------------------------------------------
11
-
12
- PREAMBLE
13
- The goals of the Open Font License (OFL) are to stimulate worldwide
14
- development of collaborative font projects, to support the font creation
15
- efforts of academic and linguistic communities, and to provide a free and
16
- open framework in which fonts may be shared and improved in partnership
17
- with others.
18
-
19
- The OFL allows the licensed fonts to be used, studied, modified and
20
- redistributed freely as long as they are not sold by themselves. The
21
- fonts, including any derivative works, can be bundled, embedded,
22
- redistributed and/or sold with any software provided that any reserved
23
- names are not used by derivative works. The fonts and derivatives,
24
- however, cannot be released under any other type of license. The
25
- requirement for fonts to remain under this license does not apply
26
- to any document created using the fonts or their derivatives.
27
-
28
- DEFINITIONS
29
- "Font Software" refers to the set of files released by the Copyright
30
- Holder(s) under this license and clearly marked as such. This may
31
- include source files, build scripts and documentation.
32
-
33
- "Reserved Font Name" refers to any names specified as such after the
34
- copyright statement(s).
35
-
36
- "Original Version" refers to the collection of Font Software components as
37
- distributed by the Copyright Holder(s).
38
-
39
- "Modified Version" refers to any derivative made by adding to, deleting,
40
- or substituting -- in part or in whole -- any of the components of the
41
- Original Version, by changing formats or by porting the Font Software to a
42
- new environment.
43
-
44
- "Author" refers to any designer, engineer, programmer, technical
45
- writer or other person who contributed to the Font Software.
46
-
47
- PERMISSION & CONDITIONS
48
- Permission is hereby granted, free of charge, to any person obtaining
49
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
- redistribute, and sell modified and unmodified copies of the Font
51
- Software, subject to the following conditions:
52
-
53
- 1) Neither the Font Software nor any of its individual components,
54
- in Original or Modified Versions, may be sold by itself.
55
-
56
- 2) Original or Modified Versions of the Font Software may be bundled,
57
- redistributed and/or sold with any software, provided that each copy
58
- contains the above copyright notice and this license. These can be
59
- included either as stand-alone text files, human-readable headers or
60
- in the appropriate machine-readable metadata fields within text or
61
- binary files as long as those fields can be easily viewed by the user.
62
-
63
- 3) No Modified Version of the Font Software may use the Reserved Font
64
- Name(s) unless explicit written permission is granted by the corresponding
65
- Copyright Holder. This restriction only applies to the primary font name as
66
- presented to the users.
67
-
68
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
- Software shall not be used to promote, endorse or advertise any
70
- Modified Version, except to acknowledge the contribution(s) of the
71
- Copyright Holder(s) and the Author(s) or with their explicit written
72
- permission.
73
-
74
- 5) The Font Software, modified or unmodified, in part or in whole,
75
- must be distributed entirely under this license, and must not be
76
- distributed under any other license. The requirement for fonts to
77
- remain under this license does not apply to any document created
78
- using the Font Software.
79
-
80
- TERMINATION
81
- This license becomes null and void if any of the above conditions are
82
- not met.
83
-
84
- DISCLAIMER
85
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
- OTHER DEALINGS IN THE FONT SOFTWARE.