Changeset fa33214 in Klonkt for src/services/guardianship
- Timestamp:
- 08/04/2026 12:55:55 PM (5 weeks ago)
- Branches:
- main
- Children:
- 04aca12, 12bed59
- Parents:
- 3d882bd
- Location:
- src/services/guardianship
- Files:
-
- 1 added
- 3 edited
-
index.js (modified) (1 diff)
-
outgoing.js (added)
-
queues.js (modified) (3 diffs)
-
relations.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/guardianship/index.js
r3d882bd rfa33214 19 19 export { wireDelivery, c2sVisibility, deliverDirectNote } from './delivery.js'; 20 20 export { wireHandshake, handleOutbox as handleGuardianshipOutbox, handleInbox as handleGuardianshipInbox, parseRelationship, parseUndoRelationship, endGuardianship } from './handshake.js'; 21 export { offersCollection, followsCollection, wardsCollection, guardiansCollection } from './queues.js';21 export { offersCollection, followsCollection, outgoingFollowsCollection, wardsCollection, guardiansCollection } from './queues.js'; 22 22 export * as availability from './availability.js'; 23 23 export { wireAvailability } from './availability.js'; 24 24 export * as follows from './follows.js'; 25 export * as outgoing from './outgoing.js'; 25 26 export { listForParty as listOffersForParty, getOffer, findOfferAnywhere } from './offers.js'; 26 27 export { -
src/services/guardianship/queues.js
r3d882bd rfa33214 12 12 import * as relations from './relations.js'; 13 13 import * as availability from './availability.js'; 14 import * as outgoing from './outgoing.js'; 14 15 import * as handshake from './handshake.js'; 15 16 … … 39 40 } 40 41 42 /** §5.3 outbound: this ward's own follow requests, waiting for its guardians. */ 43 export function outgoingFollowsCollection(id, slug, me) { 44 return collection(id, outgoing.listForWard(slug).map((o) => outgoing.queueItem(o, me))); 45 } 46 41 47 /** The guardian's committed wards, with cached handle for display. */ 42 48 export function wardsCollection(id, slug) { … … 53 59 } 54 60 55 export default { offersCollection, followsCollection, wardsCollection, guardiansCollection };61 export default { offersCollection, followsCollection, outgoingFollowsCollection, wardsCollection, guardiansCollection }; -
src/services/guardianship/relations.js
r3d882bd rfa33214 73 73 offers: `${id}/queues/offers`, 74 74 follows: `${id}/queues/follows`, 75 // Both directions of §5.3, kept apart on purpose: a guardian must be able 76 // to tell "someone wants to follow your ward" from "your ward wants to 77 // follow someone". Same mechanism, opposite question, different words in 78 // the interface (shaer-p729). 79 outgoingFollows: `${id}/queues/outgoing-follows`, 75 80 wards: `${id}/queues/wards`, 76 81 guardians: `${id}/queues/guardians`,
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)