@anthusai/papyrus 5.138.0-next.2 → 5.138.0-next.3
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.
|
@@ -786,7 +786,7 @@ def save_item_draft_action(arguments: dict, actor: str, approved_by: str | None
|
|
|
786
786
|
},
|
|
787
787
|
}
|
|
788
788
|
if record["status"] == "published" and projection_configured():
|
|
789
|
-
published = publish_item(client, record["id"], actor=actor, approved_by=approved_by
|
|
789
|
+
published = publish_item(client, record["id"], actor=actor, approved_by=approved_by)
|
|
790
790
|
response["item"]["versionNumber"] = published.version_number
|
|
791
791
|
response.update(project_item_action(client, record["id"], unpublished=False))
|
|
792
792
|
return response
|
|
@@ -881,7 +881,7 @@ def drain_publish_queue_action() -> dict:
|
|
|
881
881
|
return {"ok": True, "scheduled": bool(schedule_projection_task({"task": "drain"}, "batch publish"))}
|
|
882
882
|
|
|
883
883
|
|
|
884
|
-
def publish_item_action(arguments: dict, actor: str, approved_by: str | None = None
|
|
884
|
+
def publish_item_action(arguments: dict, actor: str, approved_by: str | None = None) -> dict:
|
|
885
885
|
if arguments.get("jobStatus"):
|
|
886
886
|
return projection_status_action(arguments)
|
|
887
887
|
if arguments.get("drain") is True:
|
|
@@ -890,7 +890,7 @@ def publish_item_action(arguments: dict, actor: str, approved_by: str | None = N
|
|
|
890
890
|
candidate = client.get_record("Item", arguments["id"]) or {}
|
|
891
891
|
live = client.get_record("PublishedItem", published_item_id_for(candidate.get("lineageId") or arguments["id"]))
|
|
892
892
|
render_preflight(client, arguments["id"]) # a page the site cannot render is refused before any published data is written
|
|
893
|
-
result = publish_item(client, arguments["id"], actor=actor, approved_by=approved_by
|
|
893
|
+
result = publish_item(client, arguments["id"], actor=actor, approved_by=approved_by)
|
|
894
894
|
response = {
|
|
895
895
|
"ok": True,
|
|
896
896
|
"changed": result.changed,
|
|
@@ -1169,7 +1169,7 @@ def _handle_field(event):
|
|
|
1169
1169
|
return save_item_draft_action(arguments, actor, person_from_event(event))
|
|
1170
1170
|
if field == "publishItem":
|
|
1171
1171
|
person = person_from_event(event)
|
|
1172
|
-
return publish_item_action(arguments, actor, person
|
|
1172
|
+
return publish_item_action(arguments, actor, person)
|
|
1173
1173
|
if field == "createStoryFromReference":
|
|
1174
1174
|
return create_story_from_reference_action(arguments, actor)
|
|
1175
1175
|
if field == "moveStoryStage":
|
package/lib/story-checklist.ts
CHANGED
|
@@ -63,8 +63,8 @@ export interface SubTaskItemRecord {
|
|
|
63
63
|
metadata?: unknown;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
/** The steps whose done needs a short findings note (the four review lenses); mirrors `manual` in src/papyrus_content/newsroom_process.py. */
|
|
67
|
-
export const MANUAL_STEP_KEYS: readonly string[] = ["review_people", "review_reader_agents", "review_search", "review_social", "concepts", "related_content"];
|
|
66
|
+
/** The steps whose done needs a short findings note (the four review lenses, and a translation's `human_review`); mirrors `manual` in src/papyrus_content/newsroom_process.py and TRANSLATION_STEPS in src/papyrus_content/story_checklist.py. */
|
|
67
|
+
export const MANUAL_STEP_KEYS: readonly string[] = ["review_people", "human_review", "review_reader_agents", "review_search", "review_social", "concepts", "related_content"];
|
|
68
68
|
|
|
69
69
|
/** What an editor must give for a change, the same rules the backend enforces (src/papyrus_content/story_checklist.py): a reason to skip or mark not applicable, findings to mark a review done. */
|
|
70
70
|
export function stepChangeProblem(stepKey: string, state: StoryStepState, input: { reason?: string; note?: string }): string | null {
|
package/package.json
CHANGED
package/routes.manifest.json
CHANGED