@graview/core 0.1.72 → 0.1.73

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 (112) hide show
  1. package/dist/answer-seen.d.ts.map +1 -1
  2. package/dist/answer-seen.js +7 -2
  3. package/dist/answer-seen.js.map +1 -1
  4. package/dist/binding-served.d.ts +47 -0
  5. package/dist/binding-served.d.ts.map +1 -0
  6. package/dist/binding-served.js +90 -0
  7. package/dist/binding-served.js.map +1 -0
  8. package/dist/binding.d.ts +15 -0
  9. package/dist/binding.d.ts.map +1 -0
  10. package/dist/binding.js +168 -0
  11. package/dist/binding.js.map +1 -0
  12. package/dist/css/faces-words.d.ts +4 -0
  13. package/dist/css/faces-words.d.ts.map +1 -0
  14. package/dist/css/faces-words.js +48 -0
  15. package/dist/css/faces-words.js.map +1 -0
  16. package/dist/css/faces.d.ts +82 -0
  17. package/dist/css/faces.d.ts.map +1 -0
  18. package/dist/css/faces.js +317 -0
  19. package/dist/css/faces.js.map +1 -0
  20. package/dist/css/fonts.d.ts +13 -0
  21. package/dist/css/fonts.d.ts.map +1 -1
  22. package/dist/css/fonts.js +28 -5
  23. package/dist/css/fonts.js.map +1 -1
  24. package/dist/css/sanitize.d.ts +45 -7
  25. package/dist/css/sanitize.d.ts.map +1 -1
  26. package/dist/css/sanitize.js +112 -34
  27. package/dist/css/sanitize.js.map +1 -1
  28. package/dist/css.d.ts +4 -1
  29. package/dist/css.d.ts.map +1 -1
  30. package/dist/css.js +2 -0
  31. package/dist/css.js.map +1 -1
  32. package/dist/document/brand-check.d.ts.map +1 -1
  33. package/dist/document/brand-check.js +2 -0
  34. package/dist/document/brand-check.js.map +1 -1
  35. package/dist/document/compile.d.ts.map +1 -1
  36. package/dist/document/compile.js +6 -0
  37. package/dist/document/compile.js.map +1 -1
  38. package/dist/document/compiled.d.ts.map +1 -1
  39. package/dist/document/compiled.js +9 -0
  40. package/dist/document/compiled.js.map +1 -1
  41. package/dist/document/graview-template.d.ts.map +1 -1
  42. package/dist/document/graview-template.js +3 -1
  43. package/dist/document/graview-template.js.map +1 -1
  44. package/dist/document/migrate.d.ts.map +1 -1
  45. package/dist/document/migrate.js +4 -1
  46. package/dist/document/migrate.js.map +1 -1
  47. package/dist/document.schema.json +2 -2
  48. package/dist/field-sight.d.ts.map +1 -1
  49. package/dist/field-sight.js +3 -2
  50. package/dist/field-sight.js.map +1 -1
  51. package/dist/graph/archived.d.ts +10 -0
  52. package/dist/graph/archived.d.ts.map +1 -1
  53. package/dist/graph/archived.js +14 -1
  54. package/dist/graph/archived.js.map +1 -1
  55. package/dist/graph/graph.d.ts +19 -0
  56. package/dist/graph/graph.d.ts.map +1 -1
  57. package/dist/graph/graph.js +59 -4
  58. package/dist/graph/graph.js.map +1 -1
  59. package/dist/import/rows.js +2 -2
  60. package/dist/import/rows.js.map +1 -1
  61. package/dist/index.d.ts +3 -2
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +3 -2
  64. package/dist/index.js.map +1 -1
  65. package/dist/ops/withheld.d.ts +2 -0
  66. package/dist/ops/withheld.d.ts.map +1 -1
  67. package/dist/ops/withheld.js +3 -1
  68. package/dist/ops/withheld.js.map +1 -1
  69. package/dist/permissions/policy.d.ts +31 -2
  70. package/dist/permissions/policy.d.ts.map +1 -1
  71. package/dist/permissions/policy.js +54 -3
  72. package/dist/permissions/policy.js.map +1 -1
  73. package/dist/permissions/sight.d.ts +4 -0
  74. package/dist/permissions/sight.d.ts.map +1 -1
  75. package/dist/permissions/sight.js.map +1 -1
  76. package/dist/scene.d.ts +1 -1
  77. package/dist/scene.d.ts.map +1 -1
  78. package/dist/scene.js +1 -1
  79. package/dist/scene.js.map +1 -1
  80. package/dist/schema/json-schema.d.ts.map +1 -1
  81. package/dist/schema/json-schema.js +4 -1
  82. package/dist/schema/json-schema.js.map +1 -1
  83. package/dist/schema/schema.d.ts.map +1 -1
  84. package/dist/schema/schema.js +4 -1
  85. package/dist/schema/schema.js.map +1 -1
  86. package/dist/seat.d.ts +3 -1
  87. package/dist/seat.d.ts.map +1 -1
  88. package/dist/seat.js +3 -1
  89. package/dist/seat.js.map +1 -1
  90. package/dist/seen.d.ts +16 -1
  91. package/dist/seen.d.ts.map +1 -1
  92. package/dist/seen.js +112 -10
  93. package/dist/seen.js.map +1 -1
  94. package/dist/store.d.ts +26 -1
  95. package/dist/store.d.ts.map +1 -1
  96. package/dist/store.js +126 -6
  97. package/dist/store.js.map +1 -1
  98. package/dist/validate-graph.d.ts +2 -1
  99. package/dist/validate-graph.d.ts.map +1 -1
  100. package/dist/validate-graph.js +29 -0
  101. package/dist/validate-graph.js.map +1 -1
  102. package/dist/version.d.ts +1 -1
  103. package/dist/version.js +1 -1
  104. package/dist/village.d.ts +16 -1
  105. package/dist/village.d.ts.map +1 -1
  106. package/dist/village.js +29 -0
  107. package/dist/village.js.map +1 -1
  108. package/dist/who.d.ts +1 -0
  109. package/dist/who.d.ts.map +1 -1
  110. package/dist/who.js +7 -1
  111. package/dist/who.js.map +1 -1
  112. package/package.json +5 -1
package/dist/store.js CHANGED
@@ -20,11 +20,14 @@ import { namesMade, resolveMade } from "./mutations/made.js";
20
20
  import { OperationLog } from "./ops/log.js";
21
21
  import { lineageOf } from "./ops/lineage.js";
22
22
  import { KEEP_LINK, keepLinkMutation, keepLinkVia } from "./mutations/keep-link.js";
23
+ import { BIND_PERSON, BINDING } from "./binding-served.js";
24
+ import { PERSON_SEAT } from "./graph/archived.js";
25
+ import { ActRefusal } from "./refused.js";
23
26
  import { advisoryVoterOf, signedOutSeat, SIGN_IN_TO_VOTE, VOTE_SUGGESTION, VOTING, voteSuggestionMutation } from "./mutations/vote-suggestion.js";
24
27
  import { TYPE_TEXT, TYPING } from "./text/typing-hook.js";
25
28
  import { DECLINES, isAutomated, isTidyingActor, tidyingRefusal } from "./ops/tidying.js";
26
29
  import { nameOfAuthor } from "./who.js";
27
- import { actingAs, grantsTo, isSystem, meIn, meOf, ownsId, permits, profileOf, rolesSaid, withValidProfile, permittedMutations, proposes, subjectKinds } from "./permissions/policy.js";
30
+ import { actingAs, boundPersonOf, grantsTo, isSystem, meIn, meOf, ownsId, permits, profileOf, rolesSaid, seatedIn, withValidProfile, permittedMutations, proposes, subjectKinds } from "./permissions/policy.js";
28
31
  import { MOST_PROPOSED, PROPOSE_CHANGES, proposeChangesMutation } from "./mutations/propose-changes.js";
29
32
  import { namesUnseen, redact } from "./ops/withheld.js";
30
33
  import { writersBehind } from "./ops/writers.js";
@@ -168,6 +171,39 @@ const batchesOf = (ops) => new Map(ops.map((op) => [op.id, op.batch]));
168
171
  * from the platform's random source where there is one, which every page
169
172
  * and Node 22 has.
170
173
  */
174
+ /** The most seats `kindsKeptFrom` keeps an answer for at once: past it, the answers kept are let go and worked out again as asked. */
175
+ const KEPT_KINDS_SEATS = 64;
176
+ /**
177
+ * THE SEAT A KEPT-KINDS ANSWER IS FOR: exactly what working it out reads of
178
+ * a principal — its kind, its id, its roles, the profile it is judged by
179
+ * (`profileOf`'s reading, not the fields it reads that from), and the same
180
+ * of whom it acts for — each read by name, never the principal serialized
181
+ * whole, and roles in one order. What it does not read (a session, a
182
+ * display name, which visitor of a shared seat) is no part of it, so a seat
183
+ * every visitor shares is one entry. Only strings are said: a kind, an id
184
+ * or a role that is anything else, or a seat past eight deep, has no key,
185
+ * and its answer is worked out each time and kept for nobody.
186
+ */
187
+ function keptKindsSeat(principal, depth = 0) {
188
+ if (typeof principal !== "object" || principal === null)
189
+ return undefined;
190
+ const behalf = principal.onBehalfOf;
191
+ // No one to act for, as `actingAs` reads it, absent or null; said apart, since `isSystem` asks which.
192
+ const behind = behalf === undefined ? "absent" : behalf === null ? "null" : depth < 8 ? keptKindsSeat(behalf, depth + 1) : undefined;
193
+ if (behind === undefined)
194
+ return undefined;
195
+ const kind = principal.kind;
196
+ const id = principal.id;
197
+ const given = principal.roles;
198
+ if ((kind !== undefined && typeof kind !== "string") || (id !== undefined && typeof id !== "string"))
199
+ return undefined;
200
+ if (given !== undefined && (!Array.isArray(given) || !given.every((role) => typeof role === "string")))
201
+ return undefined;
202
+ const roles = given === undefined ? null : [...new Set(given)].sort();
203
+ const profile = profileOf(principal);
204
+ // And the record the store bound it to (`seatedIn`, read before this is asked): a binding and its undo are two seats.
205
+ return JSON.stringify([kind ?? null, id ?? null, roles, profile ? [profile.id, profile.name] : null, boundPersonOf(principal) ?? null, behind]);
206
+ }
171
207
  function storeTag() {
172
208
  const random = globalThis.crypto;
173
209
  const bytes = new Uint8Array(6);
@@ -191,6 +227,8 @@ export class Store {
191
227
  voter;
192
228
  /** "Propose changes" (Roadmap f-proposals-for-review), when the app declared no act by that name. */
193
229
  proposer;
230
+ /** "Bind a person" (Roadmap f-invite-binds-existing-person): answered where a kind is the people, offered by no list. */
231
+ binder;
194
232
  invariants;
195
233
  invariantOptions;
196
234
  policy;
@@ -509,6 +547,12 @@ export class Store {
509
547
  // "Type text" (Roadmap f-collab-text): answered by every store once `@graview/core/typing` is loaded, and offered by no list.
510
548
  if (name === TYPE_TEXT && !this.typer && TYPING.typeText && !this.past && !this.mutations.has(name))
511
549
  this.mutations.set(name, (this.typer = TYPING.typeText(this)));
550
+ // "Bind a person" (Roadmap f-invite-binds-existing-person): answered where a kind is the people once the host loads `@graview/core/binding`, and offered by no list.
551
+ if (name === BIND_PERSON && !this.binder && BINDING.act && !this.past && !this.mutations.has(name)) {
552
+ const binder = BINDING.act(this);
553
+ if (binder)
554
+ this.mutations.set(name, (this.binder = binder));
555
+ }
512
556
  return this.mutations.has(name) ? name : (actSpelledAs(name, this.mutations.keys()) ?? name);
513
557
  }
514
558
  /** A call with its act's name as the store spells it, so the log and every check read the one name. */
@@ -523,7 +567,7 @@ export class Store {
523
567
  return mutation.derived !== undefined && this.modules.disabledKinds.has(mutation.derived.kind);
524
568
  }
525
569
  allMutations() {
526
- return [...this.mutations.values(), ...(this.publisher ? [this.publisher] : [])].filter((mutation) => mutation !== this.keeper && mutation !== this.typer && mutation !== this.voter && mutation !== this.proposer && !this.mutationDisabled(mutation));
570
+ return [...this.mutations.values(), ...(this.publisher ? [this.publisher] : [])].filter((mutation) => mutation !== this.keeper && mutation !== this.typer && mutation !== this.voter && mutation !== this.proposer && mutation !== this.binder && !this.mutationDisabled(mutation));
527
571
  }
528
572
  /** The declared acts a derived act resolves its permission through; keeping a link, those that make or break its relation. */
529
573
  viaOf(mutation, call, principal) {
@@ -614,6 +658,8 @@ export class Store {
614
658
  /** What `permits` answers from the grants alone; on an undo, a call already made, so it asks no record of who took it back. */
615
659
  judged(call, principal, undoing = false) {
616
660
  call = this.spelledCall(call);
661
+ // The seat as it is bound now: `self`, `ownEnd` and `$me` read the record it was bound to, and nothing a caller said of one.
662
+ principal = this.seated(principal);
617
663
  /*
618
664
  * The same answer `apply` would give. A declared agent's `may` narrows
619
665
  * it before the policy does; asked without it, the chat offered a
@@ -630,6 +676,9 @@ export class Store {
630
676
  const nobody = mutation && !undoing && this.noOneToBe(mutation, principal);
631
677
  if (nobody)
632
678
  return { ok: false, refusal: nobody };
679
+ // Binding a seat to a person is judged by `@graview/core/binding`, which made the act: the host, or a grant that names it.
680
+ if (mutation && mutation === this.binder)
681
+ return BINDING.judged(this, call, principal);
633
682
  // Publishing is the declaration's `publishers`, not a grant's.
634
683
  if (mutation && mutation === this.publisher)
635
684
  return PUBLISHING.verdict(this, principal);
@@ -712,7 +761,7 @@ export class Store {
712
761
  return false;
713
762
  call = this.spelledCall(call);
714
763
  const mutation = this.mutations.get(call.name);
715
- if (!mutation || mutation === this.proposer || mutation === this.voter || this.refusesAgent(call, principal) || this.namesTurnedOff(call, principal))
764
+ if (!mutation || mutation === this.proposer || mutation === this.voter || mutation === this.binder || this.refusesAgent(call, principal) || this.namesTurnedOff(call, principal))
716
765
  return false;
717
766
  return !this.permits(call, principal).ok && proposes(this.policy, principal, call.name, this.subjectKindOf(call, principal));
718
767
  }
@@ -916,6 +965,7 @@ export class Store {
916
965
  * the store's own graph.
917
966
  */
918
967
  sighted(author) {
968
+ author = author && this.seated(author);
919
969
  // Who `$me` is: the person, for an agent acting for one (Roadmap f-act-as-me).
920
970
  const me = {
921
971
  me: author && meIn(this.schema, author),
@@ -1005,6 +1055,18 @@ export class Store {
1005
1055
  sees(principal, id) {
1006
1056
  return this.graph.has(id) && seesId(this, principal)(id);
1007
1057
  }
1058
+ /**
1059
+ * WHO `$me` IS FOR THIS SEAT HERE: the record it was bound to
1060
+ * (`bindPerson`), where it was; else its account's id, or its profile's
1061
+ * person (`meOf`). What a host or a view says "you" with.
1062
+ */
1063
+ personOf(principal) {
1064
+ return meOf(this.seated(principal));
1065
+ }
1066
+ /** The seat as this store judges it now: its bound person read from the graph (`seatedIn`). */
1067
+ seated(principal) {
1068
+ return seatedIn(this.graph, principal);
1069
+ }
1008
1070
  labels;
1009
1071
  /**
1010
1072
  * WHAT A NAME GIVEN FOR A NODE ARGUMENT MEANS, to this principal (FR-33).
@@ -1038,8 +1100,42 @@ export class Store {
1038
1100
  return { ok: true, id: candidates[0].id, label: candidates[0].label, by: exactly ? "label" : "prefix" };
1039
1101
  return refusalFor(this.schema, arg, given, candidates);
1040
1102
  }
1041
- /** The kinds of administered modules this principal may not see at all. */
1103
+ /**
1104
+ * The kinds of administered modules this principal may not see at all.
1105
+ *
1106
+ * KEPT WHILE NOTHING IT READS HAS CHANGED: for a seat under a `sees` rule
1107
+ * it is worked out from every act the seat may do, and a page asks it for
1108
+ * each link it draws. The answer is kept per seat and asked again once
1109
+ * the store has told its subscribers anything, an op is logged, a change
1110
+ * is put back, or what judges a partial sight or offers publishing is
1111
+ * loaded. A seat is what working it out reads of the principal
1112
+ * (`keptKindsSeat`), so every visitor of a shared seat is one entry; at
1113
+ * most `KEPT_KINDS_SEATS` are kept at once. Each call is handed its own
1114
+ * copy: what a caller does to it is never the next caller's answer.
1115
+ */
1042
1116
  kindsKeptFrom(principal = HUMAN) {
1117
+ // Kept for the seat as it is bound now (`seatedIn`): a binding, and its undo, is another seat's answer.
1118
+ principal = this.seated(principal);
1119
+ const all = this.log.all();
1120
+ const state = `${this.told}|${this.log.length}|${all.at(-1)?.id ?? ""}|${fieldsJudged(this) ? 1 : 0}|${PUBLISHING.act ? 1 : 0}`;
1121
+ if (this.keptKinds?.state !== state)
1122
+ this.keptKinds = { state, seats: new Map() };
1123
+ const seats = this.keptKinds.seats;
1124
+ const seat = keptKindsSeat(principal);
1125
+ if (seat === undefined)
1126
+ return this.kindsKeptNow(principal);
1127
+ let kept = seats.get(seat);
1128
+ if (!kept) {
1129
+ kept = this.kindsKeptNow(principal);
1130
+ if (seats.size >= KEPT_KINDS_SEATS)
1131
+ seats.clear();
1132
+ seats.set(seat, kept);
1133
+ }
1134
+ return new Set(kept);
1135
+ }
1136
+ /** What `kindsKeptFrom` keeps: the store's state it was worked out at, and each seat's answer there, never handed out. */
1137
+ keptKinds;
1138
+ kindsKeptNow(principal) {
1043
1139
  const kept = new Set();
1044
1140
  for (const [name, module] of this.modules.administered) {
1045
1141
  if (this.mayAdminister(name, principal))
@@ -1075,6 +1171,7 @@ export class Store {
1075
1171
  * second list to keep in step.
1076
1172
  */
1077
1173
  permittedMutations(principal = HUMAN) {
1174
+ principal = this.seated(principal);
1078
1175
  const all = this.allMutations();
1079
1176
  const declared = permittedMutations(this.policy, principal, all.filter((mutation) => !mutation.derived && mutation !== this.publisher));
1080
1177
  // Publishing is offered to the declaration's publishers (Roadmap f-publishing-lifecycle).
@@ -1395,6 +1492,7 @@ export class Store {
1395
1492
  mintBatch: () => PREVIEW_BATCH,
1396
1493
  rehearsing: true,
1397
1494
  personMade: undefined,
1495
+ keptKinds: undefined,
1398
1496
  });
1399
1497
  // Its own acts, so "Type text" reads the text back off the rehearsal's log, as the apply would off this one's.
1400
1498
  const typer = this.typer && TYPING.typeText(twin);
@@ -1483,7 +1581,8 @@ export class Store {
1483
1581
  const permitted = (call, as = author) => {
1484
1582
  // A vote is judged with no policy too: a shared seat's vote is refused whether or not the app says who may do what (Roadmap f-votes-shared-seat).
1485
1583
  const voting = this.voter !== undefined && this.mutations.get(call.name) === this.voter;
1486
- const verdict = this.policy || (this.publisher && call.name === PUBLISH) || voting || this.mutations.get(call.name) === this.proposer ? this.judged(call, as) : undefined;
1584
+ const binding = this.binder !== undefined && this.mutations.get(call.name) === this.binder;
1585
+ const verdict = this.policy || (this.publisher && call.name === PUBLISH) || voting || binding || this.mutations.get(call.name) === this.proposer ? this.judged(call, as) : undefined;
1487
1586
  // Rehearsing a proposal, an act its author may propose stands as the reviewer's would (Roadmap f-proposals-for-review).
1488
1587
  if (verdict && !verdict.ok && !(this.proposing && this.mayPropose(call, as)))
1489
1588
  this.refuse(verdict.refusal, as.id);
@@ -1597,6 +1696,10 @@ export class Store {
1597
1696
  }
1598
1697
  if (hint !== undefined && compiled.firstMinted !== undefined && compiled.firstMinted !== hint)
1599
1698
  renamed.set(hint, compiled.firstMinted);
1699
+ // Whose record a person is, only binding says (Roadmap f-invite-binds-existing-person): no other act writes the mark.
1700
+ if (definition !== this.binder && compiled.primitives.some((one) => (one.op === "add-node" && Object.hasOwn(one.node, PERSON_SEAT)) || (one.op === "patch-node" && Object.hasOwn(one.after, PERSON_SEAT)))) {
1701
+ throw new ActRefusal(`"${definition.title ?? definition.name}" cannot say whose record a person is: only binding an account to it does.`);
1702
+ }
1600
1703
  if (isAutomated(as)) {
1601
1704
  const refused = tidyingRefusal(this.schema, this.graph, compiled.primitives, this.authorName(as), { declaration: !this.suggesting && !decided });
1602
1705
  if (refused)
@@ -2066,6 +2169,19 @@ export class Store {
2066
2169
  const stop = DECLINES.undoRefusal ? DECLINES.undoRefusal(this, ops, author) : ops.some((target) => target.undoes !== undefined && target.mutation === null && (target.lineage?.stopsKind || target.lineage?.liftedStop)) ? { mutation: "undo", wouldNeed: [], message: "This cannot be taken back here yet." } : undefined;
2067
2170
  if (stop)
2068
2171
  return stop;
2172
+ /*
2173
+ * A BINDING STAYS ONCE ITS SEAT HAS ACTED AS THE RECORD (Roadmap
2174
+ * f-invite-binds-existing-person): taking it back would leave what they
2175
+ * did to whoever is bound there next. Judged by `@graview/core/binding`;
2176
+ * a store that has not loaded it takes no binding back.
2177
+ */
2178
+ for (const target of ops) {
2179
+ if (target.undoes !== undefined || target.mutation?.name !== BIND_PERSON)
2180
+ continue;
2181
+ const kept = BINDING.undo ? BINDING.undo(this, target) : "This binding cannot be taken back here.";
2182
+ if (kept)
2183
+ return { mutation: "undo", wouldNeed: [], message: kept };
2184
+ }
2069
2185
  if (this.policy || this.publisher) {
2070
2186
  for (const target of ops) {
2071
2187
  /*
@@ -2122,7 +2238,7 @@ export class Store {
2122
2238
  * it" is everybody's to run, and undoing Ann's was taking back her vote.
2123
2239
  */
2124
2240
  /* What the act wrote as them: the profile's person, where they were one. */
2125
- const names = (value) => JSON.stringify(value).includes(JSON.stringify(meOf(judged.author)));
2241
+ const names = (value) => JSON.stringify(value).includes(JSON.stringify(meOf(this.seated(judged.author))));
2126
2242
  const verdict = by !== undefined && by !== actingAs(author).id && !isSystem(author) && !names(judged.mutation.args) && names(judged.primitives)
2127
2243
  ? { ok: false, refusal: { mutation: judged.mutation.name, wouldNeed: [], message: "it was done as somebody else." } }
2128
2244
  : this.judged(judged.mutation, author, true);
@@ -2156,6 +2272,7 @@ export class Store {
2156
2272
  * record: one removed stays removed.
2157
2273
  */
2158
2274
  personFor(author) {
2275
+ author = this.seated(author);
2159
2276
  const profile = profileOf(author);
2160
2277
  const id = meOf(author);
2161
2278
  if (!profile || id === undefined)
@@ -2182,6 +2299,7 @@ export class Store {
2182
2299
  * refused in the words it would refuse in, with a profile or without.
2183
2300
  */
2184
2301
  hasNoRecord(author, bySight = true) {
2302
+ author = this.seated(author);
2185
2303
  const people = this.schema.definitions.find((definition) => definition.people);
2186
2304
  if (!people)
2187
2305
  return false;
@@ -2272,6 +2390,8 @@ export class Store {
2272
2390
  this.graph.load(rollback);
2273
2391
  if (this.log.length > kept)
2274
2392
  this.log.truncate(kept);
2393
+ // What a seat is kept from, if a host's `admit` asked it of the change put back: never an answer for whatever is logged at that length next.
2394
+ this.keptKinds = undefined;
2275
2395
  }
2276
2396
  /** Asks the host's `admit`, when there is one, with the change as planned; one it refuses is put back, and its word goes on up. */
2277
2397
  admitted(options, ops, primitives, diff, rollback, kept) {