@anthusai/papyrus 5.136.0-next.4 → 5.136.0-next.6
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.
|
@@ -112,6 +112,8 @@ export const announcementsSchemaDefinitions = {
|
|
|
112
112
|
index("announcementId").sortKeys(["createdAt"]).queryField("listDeliveriesByAnnouncementAndCreatedAt"),
|
|
113
113
|
index("accountKey").sortKeys(["createdAt"]).queryField("listDeliveriesByAccountKeyAndCreatedAt"),
|
|
114
114
|
index("dueKey").sortKeys(["dueAt"]).queryField("listDeliveriesByDueKeyAndDueAt"),
|
|
115
|
+
// Sparse: only a Delivery that is an active example carries exampleKey, so the drafter reads a scope's examples newest first and never scans.
|
|
116
|
+
index("exampleKey").sortKeys(["exampleAt"]).queryField("listDeliveriesByExampleKeyAndExampleAt"),
|
|
115
117
|
])
|
|
116
118
|
.disableOperations(["subscriptions"])
|
|
117
119
|
.authorization((allow) => [allow.groups(editors).to(["read"])]),
|
|
@@ -115,6 +115,8 @@ export const announcementsSchemaDefinitions = {
|
|
|
115
115
|
index("announcementId").sortKeys(["createdAt"]).queryField("listDeliveriesByAnnouncementAndCreatedAt"),
|
|
116
116
|
index("accountKey").sortKeys(["createdAt"]).queryField("listDeliveriesByAccountKeyAndCreatedAt"),
|
|
117
117
|
index("dueKey").sortKeys(["dueAt"]).queryField("listDeliveriesByDueKeyAndDueAt"),
|
|
118
|
+
// Sparse: only a Delivery that is an active example carries exampleKey, so the drafter reads a scope's examples newest first and never scans.
|
|
119
|
+
index("exampleKey").sortKeys(["exampleAt"]).queryField("listDeliveriesByExampleKeyAndExampleAt"),
|
|
118
120
|
])
|
|
119
121
|
.disableOperations(["subscriptions"])
|
|
120
122
|
.authorization((allow) => [allow.groups(editors).to(["read"])]),
|
|
@@ -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. */
|
|
@@ -1624,17 +1655,19 @@ export type AnnouncementsRecentResult = {
|
|
|
1624
1655
|
next: string | null;
|
|
1625
1656
|
};
|
|
1626
1657
|
|
|
1627
|
-
/** Why a Story was or was not announced, for each channel, naming the rule. Reads the rules; writes nothing. */
|
|
1658
|
+
/** Why a Story was or was not announced, for each channel, naming the rule; or what a Delivery's draft read. Reads the rules; writes nothing. */
|
|
1628
1659
|
export type AnnouncementsExplainInput = {
|
|
1629
1660
|
/** The lineage id of the Story. */
|
|
1630
|
-
story
|
|
1661
|
+
story?: string;
|
|
1662
|
+
/** Ask instead about a Delivery: the guideline layers (scope, item, version, hash) and the examples its draft read. */
|
|
1663
|
+
delivery?: string;
|
|
1631
1664
|
};
|
|
1632
1665
|
|
|
1633
1666
|
export type AnnouncementsExplainResult = {
|
|
1634
|
-
story
|
|
1667
|
+
story?: string;
|
|
1635
1668
|
title?: string;
|
|
1636
1669
|
stars?: number;
|
|
1637
|
-
channels
|
|
1670
|
+
channels?: {
|
|
1638
1671
|
channel: string;
|
|
1639
1672
|
announced: boolean;
|
|
1640
1673
|
/** The rule: announced, off, not_published, type_not_announced, section_not_announced, below_bar, below_floor, machine_five, story_not_reviewed, no_delivery or would_announce. */
|
|
@@ -1642,6 +1675,20 @@ export type AnnouncementsExplainResult = {
|
|
|
1642
1675
|
words: string;
|
|
1643
1676
|
delivery?: string;
|
|
1644
1677
|
}[];
|
|
1678
|
+
/** The Delivery asked about. */
|
|
1679
|
+
delivery?: string;
|
|
1680
|
+
recorded?: boolean;
|
|
1681
|
+
words?: string;
|
|
1682
|
+
storyVersion?: number | null;
|
|
1683
|
+
model?: string | null;
|
|
1684
|
+
/** Each guideline layer the draft read: scope, itemId, versionNumber, contentHash. */
|
|
1685
|
+
guidelineLayers?: Record<string, unknown>[];
|
|
1686
|
+
/** The examples the draft read, and whether each is still on. */
|
|
1687
|
+
examples?: ({
|
|
1688
|
+
delivery: string;
|
|
1689
|
+
state: string;
|
|
1690
|
+
scope?: string | null;
|
|
1691
|
+
})[];
|
|
1645
1692
|
};
|
|
1646
1693
|
|
|
1647
1694
|
/** Give a Story a star rating, 1 to 5. An agent may give only three or four stars, and only to a Story nobody has rated. */
|
|
@@ -1730,6 +1777,7 @@ export interface ImageOperations {
|
|
|
1730
1777
|
announcements_release: { input: AnnouncementsReleaseInput; result: AnnouncementsReleaseResult };
|
|
1731
1778
|
announcements_unlock: { input: AnnouncementsUnlockInput; result: AnnouncementsUnlockResult };
|
|
1732
1779
|
announcements_example: { input: AnnouncementsExampleInput; result: AnnouncementsExampleResult };
|
|
1780
|
+
announcements_preferred: { input: AnnouncementsPreferredInput; result: AnnouncementsPreferredResult };
|
|
1733
1781
|
announcements_correct: { input: AnnouncementsCorrectInput; result: AnnouncementsCorrectResult };
|
|
1734
1782
|
announcements_record_manual: { input: AnnouncementsRecordManualInput; result: AnnouncementsRecordManualResult };
|
|
1735
1783
|
announcements_withdraw: { input: AnnouncementsWithdrawInput; result: AnnouncementsWithdrawResult };
|
|
@@ -1791,6 +1839,7 @@ export const IMAGE_OPERATIONS = {
|
|
|
1791
1839
|
announcements_release: { effect: "write", agentAllowed: true, agentRung: "publish_auto", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements release" },
|
|
1792
1840
|
announcements_unlock: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements unlock" },
|
|
1793
1841
|
announcements_example: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements example" },
|
|
1842
|
+
announcements_preferred: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements preferred" },
|
|
1794
1843
|
announcements_correct: { effect: "write", agentAllowed: true, agentRung: "prepare", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements correct" },
|
|
1795
1844
|
announcements_record_manual: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements record-manual" },
|
|
1796
1845
|
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