@anthusai/papyrus 5.136.0-next.4 → 5.136.0-next.5
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.
|
@@ -52,6 +52,7 @@ export type ImageOperationName =
|
|
|
52
52
|
| "announcements_release"
|
|
53
53
|
| "announcements_unlock"
|
|
54
54
|
| "announcements_example"
|
|
55
|
+
| "announcements_preferred"
|
|
55
56
|
| "announcements_correct"
|
|
56
57
|
| "announcements_record_manual"
|
|
57
58
|
| "announcements_withdraw"
|
|
@@ -1402,6 +1403,36 @@ export type AnnouncementsExampleResult = {
|
|
|
1402
1403
|
reason?: string | null;
|
|
1403
1404
|
};
|
|
1404
1405
|
|
|
1406
|
+
/** Save how a Delivery that went out should have read, as a preferred version that is never sent. It teaches; it changes no public text. */
|
|
1407
|
+
export type AnnouncementsPreferredInput = {
|
|
1408
|
+
/** The Delivery's id: one that went out, or has an attempt open. */
|
|
1409
|
+
delivery: string;
|
|
1410
|
+
/** The version of the Delivery you read. */
|
|
1411
|
+
replaces: number;
|
|
1412
|
+
/** How it should have read. */
|
|
1413
|
+
text: string;
|
|
1414
|
+
/** Also record how far it reaches, in the same step. Leave it out to keep it as a candidate. */
|
|
1415
|
+
scope?: "this_one" | "channel" | "kind" | "publication";
|
|
1416
|
+
/** One line on why. It goes with a scope. */
|
|
1417
|
+
reason?: string;
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1420
|
+
export type AnnouncementsPreferredResult = {
|
|
1421
|
+
id: string;
|
|
1422
|
+
/** saved: a new version. preferred: saved while an attempt is open, so it never changes that attempt. unchanged: the words are the ones you read. dropped: a machine's redraft that the person's newer version outranks. candidate: kept beside the draft. */
|
|
1423
|
+
status: "saved" | "preferred" | "unchanged" | "dropped" | "candidate";
|
|
1424
|
+
version?: number;
|
|
1425
|
+
replaces?: number | null;
|
|
1426
|
+
reason?: string;
|
|
1427
|
+
/** The candidate's id, when one was kept. */
|
|
1428
|
+
candidate?: string;
|
|
1429
|
+
approvedVersion?: number | null;
|
|
1430
|
+
lockedVersion?: number | null;
|
|
1431
|
+
preferredVersion?: number | null;
|
|
1432
|
+
/** Each block's owner (human or machine) and whether it is pinned. */
|
|
1433
|
+
blocks?: Record<string, unknown>[];
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1405
1436
|
/** Correct a Delivery that went with a new public text: the next generation, which supersedes the one that went. */
|
|
1406
1437
|
export type AnnouncementsCorrectInput = {
|
|
1407
1438
|
/** The id of the Delivery that went and is to be corrected. */
|
|
@@ -1730,6 +1761,7 @@ export interface ImageOperations {
|
|
|
1730
1761
|
announcements_release: { input: AnnouncementsReleaseInput; result: AnnouncementsReleaseResult };
|
|
1731
1762
|
announcements_unlock: { input: AnnouncementsUnlockInput; result: AnnouncementsUnlockResult };
|
|
1732
1763
|
announcements_example: { input: AnnouncementsExampleInput; result: AnnouncementsExampleResult };
|
|
1764
|
+
announcements_preferred: { input: AnnouncementsPreferredInput; result: AnnouncementsPreferredResult };
|
|
1733
1765
|
announcements_correct: { input: AnnouncementsCorrectInput; result: AnnouncementsCorrectResult };
|
|
1734
1766
|
announcements_record_manual: { input: AnnouncementsRecordManualInput; result: AnnouncementsRecordManualResult };
|
|
1735
1767
|
announcements_withdraw: { input: AnnouncementsWithdrawInput; result: AnnouncementsWithdrawResult };
|
|
@@ -1791,6 +1823,7 @@ export const IMAGE_OPERATIONS = {
|
|
|
1791
1823
|
announcements_release: { effect: "write", agentAllowed: true, agentRung: "publish_auto", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements release" },
|
|
1792
1824
|
announcements_unlock: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements unlock" },
|
|
1793
1825
|
announcements_example: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements example" },
|
|
1826
|
+
announcements_preferred: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements preferred" },
|
|
1794
1827
|
announcements_correct: { effect: "write", agentAllowed: true, agentRung: "prepare", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements correct" },
|
|
1795
1828
|
announcements_record_manual: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements record-manual" },
|
|
1796
1829
|
announcements_withdraw: { effect: "write", agentAllowed: true, agentRung: "prepare", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements withdraw" },
|
package/package.json
CHANGED
package/routes.manifest.json
CHANGED