@plotday/twister 0.44.0 → 0.46.0

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 (113) hide show
  1. package/dist/connector.d.ts +7 -7
  2. package/dist/connector.d.ts.map +1 -1
  3. package/dist/connector.js +5 -6
  4. package/dist/connector.js.map +1 -1
  5. package/dist/docs/assets/hierarchy.js +1 -1
  6. package/dist/docs/assets/navigation.js +1 -1
  7. package/dist/docs/assets/search.js +1 -1
  8. package/dist/docs/classes/index.Connector.html +55 -44
  9. package/dist/docs/classes/index.Imap.html +1 -1
  10. package/dist/docs/classes/index.Options.html +1 -1
  11. package/dist/docs/classes/index.Smtp.html +1 -1
  12. package/dist/docs/classes/tool.ITool.html +1 -1
  13. package/dist/docs/classes/tool.Tool.html +23 -25
  14. package/dist/docs/classes/tools_ai.AI.html +1 -1
  15. package/dist/docs/classes/tools_callbacks.Callbacks.html +1 -1
  16. package/dist/docs/classes/tools_integrations.Integrations.html +11 -10
  17. package/dist/docs/classes/tools_network.Network.html +29 -4
  18. package/dist/docs/classes/tools_plot.Plot.html +41 -28
  19. package/dist/docs/classes/tools_store.Store.html +1 -1
  20. package/dist/docs/classes/tools_tasks.Tasks.html +1 -1
  21. package/dist/docs/classes/tools_twists.Twists.html +1 -1
  22. package/dist/docs/classes/twist.Twist.html +50 -35
  23. package/dist/docs/documents/Built-in_Tools.html +5 -3
  24. package/dist/docs/enums/plot.ActorType.html +4 -4
  25. package/dist/docs/enums/tools_integrations.AuthProvider.html +12 -12
  26. package/dist/docs/enums/tools_plot.LinkAccess.html +2 -2
  27. package/dist/docs/enums/tools_plot.PriorityAccess.html +5 -5
  28. package/dist/docs/enums/tools_plot.ThreadAccess.html +1 -1
  29. package/dist/docs/hierarchy.html +1 -1
  30. package/dist/docs/media/AGENTS.md +31 -11
  31. package/dist/docs/media/SYNC_STRATEGIES.md +5 -1
  32. package/dist/docs/modules/index.html +1 -1
  33. package/dist/docs/modules/plot.html +1 -1
  34. package/dist/docs/modules/tools_integrations.html +1 -1
  35. package/dist/docs/types/plot.Actor.html +5 -5
  36. package/dist/docs/types/plot.Contact.html +9 -0
  37. package/dist/docs/types/plot.ContentType.html +1 -1
  38. package/dist/docs/types/plot.Link.html +15 -15
  39. package/dist/docs/types/plot.LinkUpdate.html +2 -2
  40. package/dist/docs/types/plot.NewActor.html +1 -1
  41. package/dist/docs/types/plot.NewContact.html +1 -1
  42. package/dist/docs/types/plot.NewLink.html +9 -8
  43. package/dist/docs/types/plot.NewLinkWithNotes.html +1 -1
  44. package/dist/docs/types/plot.NewNote.html +9 -3
  45. package/dist/docs/types/plot.NewThread.html +7 -5
  46. package/dist/docs/types/plot.NewThreadWithNotes.html +1 -1
  47. package/dist/docs/types/plot.Note.html +5 -2
  48. package/dist/docs/types/plot.NoteUpdate.html +4 -3
  49. package/dist/docs/types/plot.PlanOperation.html +1 -1
  50. package/dist/docs/types/plot.Thread.html +1 -1
  51. package/dist/docs/types/plot.ThreadAccessLevel.html +7 -0
  52. package/dist/docs/types/plot.ThreadCommon.html +5 -9
  53. package/dist/docs/types/plot.ThreadFilter.html +2 -2
  54. package/dist/docs/types/plot.ThreadUpdate.html +1 -1
  55. package/dist/docs/types/plot.ThreadWithNotes.html +1 -1
  56. package/dist/docs/types/tools_integrations.ArchiveLinkFilter.html +5 -5
  57. package/dist/docs/types/tools_integrations.AuthToken.html +4 -4
  58. package/dist/docs/types/tools_integrations.Authorization.html +4 -4
  59. package/dist/docs/types/tools_integrations.Channel.html +3 -5
  60. package/dist/docs/types/tools_integrations.LinkTypeConfig.html +14 -9
  61. package/dist/docs/types/tools_integrations.SyncContext.html +10 -0
  62. package/dist/docs/types/tools_plot.SearchOptions.html +4 -2
  63. package/dist/llm-docs/connector.d.ts +1 -1
  64. package/dist/llm-docs/connector.d.ts.map +1 -1
  65. package/dist/llm-docs/connector.js +1 -1
  66. package/dist/llm-docs/connector.js.map +1 -1
  67. package/dist/llm-docs/plot.d.ts +1 -1
  68. package/dist/llm-docs/plot.d.ts.map +1 -1
  69. package/dist/llm-docs/plot.js +1 -1
  70. package/dist/llm-docs/plot.js.map +1 -1
  71. package/dist/llm-docs/tool.d.ts +1 -1
  72. package/dist/llm-docs/tool.d.ts.map +1 -1
  73. package/dist/llm-docs/tool.js +1 -1
  74. package/dist/llm-docs/tool.js.map +1 -1
  75. package/dist/llm-docs/tools/integrations.d.ts +1 -1
  76. package/dist/llm-docs/tools/integrations.d.ts.map +1 -1
  77. package/dist/llm-docs/tools/integrations.js +1 -1
  78. package/dist/llm-docs/tools/integrations.js.map +1 -1
  79. package/dist/llm-docs/tools/network.d.ts +1 -1
  80. package/dist/llm-docs/tools/network.d.ts.map +1 -1
  81. package/dist/llm-docs/tools/network.js +1 -1
  82. package/dist/llm-docs/tools/network.js.map +1 -1
  83. package/dist/llm-docs/tools/plot.d.ts +1 -1
  84. package/dist/llm-docs/tools/plot.d.ts.map +1 -1
  85. package/dist/llm-docs/tools/plot.js +1 -1
  86. package/dist/llm-docs/tools/plot.js.map +1 -1
  87. package/dist/llm-docs/twist.d.ts +1 -1
  88. package/dist/llm-docs/twist.d.ts.map +1 -1
  89. package/dist/llm-docs/twist.js +1 -1
  90. package/dist/llm-docs/twist.js.map +1 -1
  91. package/dist/plot.d.ts +72 -61
  92. package/dist/plot.d.ts.map +1 -1
  93. package/dist/plot.js.map +1 -1
  94. package/dist/tool.d.ts +3 -5
  95. package/dist/tool.d.ts.map +1 -1
  96. package/dist/tool.js +2 -4
  97. package/dist/tool.js.map +1 -1
  98. package/dist/tools/integrations.d.ts +28 -4
  99. package/dist/tools/integrations.d.ts.map +1 -1
  100. package/dist/tools/integrations.js.map +1 -1
  101. package/dist/tools/network.d.ts +30 -0
  102. package/dist/tools/network.d.ts.map +1 -1
  103. package/dist/tools/network.js.map +1 -1
  104. package/dist/tools/plot.d.ts +41 -15
  105. package/dist/tools/plot.d.ts.map +1 -1
  106. package/dist/tools/plot.js +9 -9
  107. package/dist/tools/plot.js.map +1 -1
  108. package/dist/twist.d.ts +38 -14
  109. package/dist/twist.d.ts.map +1 -1
  110. package/dist/twist.js +37 -13
  111. package/dist/twist.js.map +1 -1
  112. package/package.json +1 -1
  113. package/dist/docs/types/plot.PickPriorityConfig.html +0 -20
@@ -1 +1 @@
1
- {"version":3,"file":"network.js","sourceRoot":"","sources":["../../src/tools/network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAkC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,MAAM,OAAgB,OAAQ,SAAQ,KAAK;IACzC,MAAM,CAAU,OAAO,CAMrB;CAoFH"}
1
+ {"version":3,"file":"network.js","sourceRoot":"","sources":["../../src/tools/network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAkC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,MAAM,OAAgB,OAAQ,SAAQ,KAAK;IACzC,MAAM,CAAU,OAAO,CAMrB;CAkHH"}
@@ -14,7 +14,7 @@ export declare enum ThreadAccess {
14
14
  */
15
15
  Create = 1,
16
16
  /**
17
- * List/query all Threads in the twist's priority scope.
17
+ * List/query all Threads owned by the twist's user.
18
18
  * Update any Thread (title, tags, archived, type, priority) regardless of creator.
19
19
  * Create Notes on any Thread (not just own or mentioned).
20
20
  * All Create permissions.
@@ -23,14 +23,14 @@ export declare enum ThreadAccess {
23
23
  }
24
24
  export declare enum PriorityAccess {
25
25
  /**
26
- * Create a new Priority within the twist's Priority.
27
- * Update Priority created by the twist.
26
+ * Create new Priorities under the twist owner's priority tree.
27
+ * Update Priorities created by the twist.
28
28
  */
29
29
  Create = 0,
30
30
  /**
31
- * Read all Priority within the twist's Priority.
32
- * Create a new Priority within the twist's Priority.
33
- * Update and archive any Priority within the twist's Priority.
31
+ * Read all Priorities owned by the twist's user.
32
+ * Create new Priorities under the twist owner's priority tree.
33
+ * Update and archive any Priority owned by the twist's user.
34
34
  */
35
35
  Full = 1
36
36
  }
@@ -39,9 +39,9 @@ export declare enum ContactAccess {
39
39
  Read = 0
40
40
  }
41
41
  export declare enum LinkAccess {
42
- /** Read links on any thread in the twist's priority scope. */
42
+ /** Read links on any thread owned by the twist's user. */
43
43
  Read = 0,
44
- /** Read + update links, including moving links between threads within scope. */
44
+ /** Read + update links, including moving links between threads owned by the twist's user. */
45
45
  Full = 1
46
46
  }
47
47
  /**
@@ -102,7 +102,11 @@ export type SearchOptions = {
102
102
  limit?: number;
103
103
  /** Minimum similarity score 0-1 (default: 0.3) */
104
104
  threshold?: number;
105
- /** Scope search to this priority + descendants (default: twist's installed priority). Must be within the twist's allowed scope. */
105
+ /**
106
+ * Scope search to this priority + descendants. Must be owned by the twist
107
+ * owner. When omitted, the server scopes the search to the owner's entire
108
+ * priority tree.
109
+ */
106
110
  priorityId?: string;
107
111
  };
108
112
  /**
@@ -122,7 +126,7 @@ export type SearchOptions = {
122
126
  * this.plot = tools.get(Plot);
123
127
  * }
124
128
  *
125
- * async activate(priority) {
129
+ * async activate() {
126
130
  * // Create a welcome thread
127
131
  * await this.plot.createThread({
128
132
  * title: "Welcome to Plot!",
@@ -226,7 +230,7 @@ export declare abstract class Plot extends ITool {
226
230
  contact?: {
227
231
  access?: ContactAccess;
228
232
  };
229
- /** Enable semantic search across notes and links in the twist's priority scope. */
233
+ /** Enable semantic search across notes and links owned by the twist's user. */
230
234
  search?: true;
231
235
  /**
232
236
  * When true, admin write operations (on threads/notes/links/priorities not created by this twist)
@@ -481,6 +485,22 @@ export declare abstract class Plot extends ITool {
481
485
  * the owner's name or email is needed.
482
486
  */
483
487
  abstract getOwner(): Promise<Actor>;
488
+ /**
489
+ * Returns the user ID (`twist_instance.owner_id`) that installed this
490
+ * twist. This is the same value exposed on Twist via `this.userId`.
491
+ */
492
+ abstract getUserId(): Promise<string>;
493
+ /**
494
+ * Returns the owner user's root priority ID. Used as the implicit default
495
+ * when an operation needs a priority but the caller didn't supply one —
496
+ * for example, `plot.createPriority()` without a parent, or
497
+ * `plot.getThreads()` without an explicit `priorityId`.
498
+ *
499
+ * On the server, priority resolution for newly created threads/links
500
+ * happens automatically via `match_priority_for_user`; twists rarely need
501
+ * to call this directly.
502
+ */
503
+ abstract getDefaultPriorityId(): Promise<string>;
484
504
  /**
485
505
  * Creates a new schedule for a thread.
486
506
  *
@@ -535,7 +555,7 @@ export declare abstract class Plot extends ITool {
535
555
  */
536
556
  abstract search(query: string, options?: SearchOptions): Promise<SearchResult[]>;
537
557
  /**
538
- * Lists threads in a priority and optionally its descendants.
558
+ * Lists threads owned by the twist's user.
539
559
  *
540
560
  * Requires `ThreadAccess.Full`.
541
561
  *
@@ -543,7 +563,10 @@ export declare abstract class Plot extends ITool {
543
563
  * @returns Promise resolving to array of threads
544
564
  */
545
565
  abstract getThreads(options?: {
546
- /** Priority to list threads from. Defaults to the twist's installed priority. */
566
+ /**
567
+ * Priority to list threads from. Must be owned by the twist owner.
568
+ * When omitted, defaults to the owner's root priority.
569
+ */
547
570
  priorityId?: Uuid;
548
571
  /** Include threads from descendant priorities. Default: true. */
549
572
  includeDescendants?: boolean;
@@ -555,7 +578,7 @@ export declare abstract class Plot extends ITool {
555
578
  offset?: number;
556
579
  }): Promise<Thread[]>;
557
580
  /**
558
- * Lists priorities within the twist's scope.
581
+ * Lists priorities owned by the twist's user.
559
582
  *
560
583
  * Requires `PriorityAccess.Full`.
561
584
  *
@@ -563,7 +586,10 @@ export declare abstract class Plot extends ITool {
563
586
  * @returns Promise resolving to array of priorities
564
587
  */
565
588
  abstract getPriorities(options?: {
566
- /** Parent priority to list children of. Defaults to the twist's installed priority. */
589
+ /**
590
+ * Parent priority to list children of. Must be owned by the twist
591
+ * owner. When omitted, defaults to the owner's root priority.
592
+ */
567
593
  parentId?: Uuid;
568
594
  /** Include all descendants, not just direct children. Default: false. */
569
595
  includeDescendants?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"plot.d.ts","sourceRoot":"","sources":["../../src/tools/plot.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,EACL,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,IAAI,EACL,MAAM,IAAI,CAAC;AACZ,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,oBAAY,YAAY;IACtB;;;OAGG;IACH,OAAO,IAAA;IACP;;;;OAIG;IACH,MAAM,IAAA;IACN;;;;;OAKG;IACH,IAAI,IAAA;CACL;AAED,oBAAY,cAAc;IACxB;;;OAGG;IACH,MAAM,IAAA;IACN;;;;OAIG;IACH,IAAI,IAAA;CACL;AAED,oBAAY,aAAa;IACvB,iFAAiF;IACjF,IAAI,IAAA;CACL;AAED,oBAAY,UAAU;IACpB,8DAA8D;IAC9D,IAAI,IAAA;IACJ,gFAAgF;IAChF,IAAI,IAAA;CACL;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,uDAAuD;IACvD,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC,CAAC;A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,aAAa,EAAE,CAAC;QAC5B,+EAA+E;QAC/E,QAAQ,EAAE,QAAQ,CAAC;KACpB,GAAG,MAAM;CACX"}
@@ -13,7 +13,7 @@ export var ThreadAccess;
13
13
  */
14
14
  ThreadAccess[ThreadAccess["Create"] = 1] = "Create";
15
15
  /**
16
- * List/query all Threads in the twist's priority scope.
16
+ * List/query all Threads owned by the twist's user.
17
17
  * Update any Thread (title, tags, archived, type, priority) regardless of creator.
18
18
  * Create Notes on any Thread (not just own or mentioned).
19
19
  * All Create permissions.
@@ -23,14 +23,14 @@ export var ThreadAccess;
23
23
  export var PriorityAccess;
24
24
  (function (PriorityAccess) {
25
25
  /**
26
- * Create a new Priority within the twist's Priority.
27
- * Update Priority created by the twist.
26
+ * Create new Priorities under the twist owner's priority tree.
27
+ * Update Priorities created by the twist.
28
28
  */
29
29
  PriorityAccess[PriorityAccess["Create"] = 0] = "Create";
30
30
  /**
31
- * Read all Priority within the twist's Priority.
32
- * Create a new Priority within the twist's Priority.
33
- * Update and archive any Priority within the twist's Priority.
31
+ * Read all Priorities owned by the twist's user.
32
+ * Create new Priorities under the twist owner's priority tree.
33
+ * Update and archive any Priority owned by the twist's user.
34
34
  */
35
35
  PriorityAccess[PriorityAccess["Full"] = 1] = "Full";
36
36
  })(PriorityAccess || (PriorityAccess = {}));
@@ -41,9 +41,9 @@ export var ContactAccess;
41
41
  })(ContactAccess || (ContactAccess = {}));
42
42
  export var LinkAccess;
43
43
  (function (LinkAccess) {
44
- /** Read links on any thread in the twist's priority scope. */
44
+ /** Read links on any thread owned by the twist's user. */
45
45
  LinkAccess[LinkAccess["Read"] = 0] = "Read";
46
- /** Read + update links, including moving links between threads within scope. */
46
+ /** Read + update links, including moving links between threads owned by the twist's user. */
47
47
  LinkAccess[LinkAccess["Full"] = 1] = "Full";
48
48
  })(LinkAccess || (LinkAccess = {}));
49
49
  /** Default number of search results returned */
@@ -67,7 +67,7 @@ export const SEARCH_MAX_LIMIT = 30;
67
67
  * this.plot = tools.get(Plot);
68
68
  * }
69
69
  *
70
- * async activate(priority) {
70
+ * async activate() {
71
71
  * // Create a welcome thread
72
72
  * await this.plot.createThread({
73
73
  * title: "Welcome to Plot!",
@@ -1 +1 @@
1
- {"version":3,"file":"plot.js","sourceRoot":"","sources":["../../src/tools/plot.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,GAaN,MAAM,IAAI,CAAC;AAOZ,MAAM,CAAN,IAAY,YAmBX;AAnBD,WAAY,YAAY;IACtB;;;OAGG;IACH,qDAAO,CAAA;IACP;;;;OAIG;IACH,mDAAM,CAAA;IACN;;;;;OAKG;IACH,+CAAI,CAAA;AACN,CAAC,EAnBW,YAAY,KAAZ,YAAY,QAmBvB;AAED,MAAM,CAAN,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB;;;OAGG;IACH,uDAAM,CAAA;IACN;;;;OAIG;IACH,mDAAI,CAAA;AACN,CAAC,EAZW,cAAc,KAAd,cAAc,QAYzB;AAED,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iFAAiF;IACjF,iDAAI,CAAA;AACN,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,8DAA8D;IAC9D,2CAAI,CAAA;IACJ,gFAAgF;IAChF,2CAAI,CAAA;AACN,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAmDD,gDAAgD;AAChD,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AACvC,+CAA+C;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAWnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,OAAgB,IAAK,SAAQ,KAAK;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,MAAM,CAAU,OAAO,CAqDrB;CA8YH"}
1
+ {"version":3,"file":"plot.js","sourceRoot":"","sources":["../../src/tools/plot.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,GAaN,MAAM,IAAI,CAAC;AAOZ,MAAM,CAAN,IAAY,YAmBX;AAnBD,WAAY,YAAY;IACtB;;;OAGG;IACH,qDAAO,CAAA;IACP;;;;OAIG;IACH,mDAAM,CAAA;IACN;;;;;OAKG;IACH,+CAAI,CAAA;AACN,CAAC,EAnBW,YAAY,KAAZ,YAAY,QAmBvB;AAED,MAAM,CAAN,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB;;;OAGG;IACH,uDAAM,CAAA;IACN;;;;OAIG;IACH,mDAAI,CAAA;AACN,CAAC,EAZW,cAAc,KAAd,cAAc,QAYzB;AAED,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iFAAiF;IACjF,iDAAI,CAAA;AACN,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,0DAA0D;IAC1D,2CAAI,CAAA;IACJ,6FAA6F;IAC7F,2CAAI,CAAA;AACN,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAmDD,gDAAgD;AAChD,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AACvC,+CAA+C;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAenC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,OAAgB,IAAK,SAAQ,KAAK;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,MAAM,CAAU,OAAO,CAqDrB;CAsaH"}
package/dist/twist.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type Action, type Actor, type ActorId, type Link, type Note, type Priority, type Thread, Uuid } from "./plot";
1
+ import { type Action, type Actor, type ActorId, type Link, type Note, type Thread, Uuid } from "./plot";
2
2
  import type { Tag } from "./tag";
3
3
  import { type ITool } from "./tool";
4
4
  import type { Callback } from "./tools/callbacks";
@@ -7,10 +7,13 @@ import type { InferTools, ToolBuilder, ToolShed } from "./utils/types";
7
7
  /**
8
8
  * Base class for all twists.
9
9
  *
10
- * Twists are activated in a Plot priority and have access to that priority and all
11
- * its descendants.
10
+ * A twist is installed at the workspace level and is owned by a single user
11
+ * (see `this.userId`). It has no inherent priority scope: threads, notes, and
12
+ * links it creates are filed against the owner's priorities, with automatic
13
+ * priority matching when no explicit target is provided.
12
14
  *
13
- * Override build() to declare tool dependencies and lifecycle methods to handle events.
15
+ * Override `build()` to declare tool dependencies and lifecycle methods to
16
+ * handle events.
14
17
  *
15
18
  * @example
16
19
  * ```typescript
@@ -21,8 +24,7 @@ import type { InferTools, ToolBuilder, ToolShed } from "./utils/types";
21
24
  * };
22
25
  * }
23
26
  *
24
- * async activate(priority: Pick<Priority, "id">) {
25
- * // Initialize twist for the given priority
27
+ * async activate() {
26
28
  * await this.tools.plot.createThread({
27
29
  * title: "Hello, good looking!",
28
30
  * });
@@ -33,6 +35,27 @@ import type { InferTools, ToolBuilder, ToolShed } from "./utils/types";
33
35
  export declare abstract class Twist<TSelf> {
34
36
  protected id: Uuid;
35
37
  private toolShed;
38
+ /**
39
+ * When `true`, users may install multiple instances of this twist within
40
+ * the same scope (personal workspace or team). Each instance must have a
41
+ * distinct name.
42
+ *
43
+ * Defaults to `false` (single instance per scope).
44
+ *
45
+ * @example
46
+ * ```typescript
47
+ * class WorkflowTwist extends Twist<WorkflowTwist> {
48
+ * static readonly multipleInstances = true;
49
+ * // ...
50
+ * }
51
+ * ```
52
+ */
53
+ static readonly multipleInstances?: boolean;
54
+ /**
55
+ * The user ID (`twist_instance.owner_id`) that installed this twist.
56
+ * Populated by the runtime before any lifecycle method runs.
57
+ */
58
+ protected userId: Uuid;
36
59
  constructor(id: Uuid, toolShed: ToolShed);
37
60
  /**
38
61
  * Gets the initialized tools for this twist.
@@ -209,24 +232,25 @@ export declare abstract class Twist<TSelf> {
209
232
  */
210
233
  protected cancelAllTasks(): Promise<void>;
211
234
  /**
212
- * Called when the twist is activated for a specific priority.
235
+ * Called when the twist is installed by a user.
213
236
  *
214
- * This method should contain initialization logic such as setting up
215
- * initial threads, configuring webhooks, or establishing external connections.
237
+ * This method should contain initialization logic such as seeding
238
+ * initial threads, configuring webhooks, or establishing external
239
+ * connections. When it runs, `this.userId` is already populated with
240
+ * the installing user's ID.
216
241
  *
217
- * @param priority - The priority context containing the priority ID
218
242
  * @param context - Optional context containing the actor who triggered activation
219
243
  * @returns Promise that resolves when activation is complete
220
244
  */
221
- activate(priority: Pick<Priority, "id">, context?: {
245
+ activate(context?: {
222
246
  actor: Actor;
223
247
  }): Promise<void>;
224
248
  /**
225
- * Called when a new version of the twist is deployed to an existing priority.
249
+ * Called when a new version of the twist is deployed.
226
250
  *
227
251
  * This method should contain migration logic for updating old data structures
228
252
  * or setting up new resources that weren't needed by the previous version.
229
- * It is called with the new version for each active priorityTwist.
253
+ * It is called once per active twist_instance with the new version.
230
254
  *
231
255
  * @returns Promise that resolves when upgrade is complete
232
256
  */
@@ -243,7 +267,7 @@ export declare abstract class Twist<TSelf> {
243
267
  */
244
268
  onOptionsChanged(oldOptions: Record<string, any>, newOptions: Record<string, any>): Promise<void>;
245
269
  /**
246
- * Called when the twist is removed from a priority.
270
+ * Called when the twist is uninstalled.
247
271
  *
248
272
  * This method should contain cleanup logic such as removing webhooks,
249
273
  * cleaning up external resources, or performing final data operations.
@@ -1 +1 @@
1
- {"version":3,"file":"twist.d.ts","sourceRoot":"","sources":["../src/twist.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,KAAK,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACvH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,K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IAAI,CAAC;IAIvD;;;;;;OAMG;IAEH,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD;;;;;;OAMG;IAEH,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD;;;;OAIG;IACG,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAGpC"}
package/dist/twist.js CHANGED
@@ -1,10 +1,13 @@
1
1
  /**
2
2
  * Base class for all twists.
3
3
  *
4
- * Twists are activated in a Plot priority and have access to that priority and all
5
- * its descendants.
4
+ * A twist is installed at the workspace level and is owned by a single user
5
+ * (see `this.userId`). It has no inherent priority scope: threads, notes, and
6
+ * links it creates are filed against the owner's priorities, with automatic
7
+ * priority matching when no explicit target is provided.
6
8
  *
7
- * Override build() to declare tool dependencies and lifecycle methods to handle events.
9
+ * Override `build()` to declare tool dependencies and lifecycle methods to
10
+ * handle events.
8
11
  *
9
12
  * @example
10
13
  * ```typescript
@@ -15,8 +18,7 @@
15
18
  * };
16
19
  * }
17
20
  *
18
- * async activate(priority: Pick<Priority, "id">) {
19
- * // Initialize twist for the given priority
21
+ * async activate() {
20
22
  * await this.tools.plot.createThread({
21
23
  * title: "Hello, good looking!",
22
24
  * });
@@ -27,6 +29,27 @@
27
29
  export class Twist {
28
30
  id;
29
31
  toolShed;
32
+ /**
33
+ * When `true`, users may install multiple instances of this twist within
34
+ * the same scope (personal workspace or team). Each instance must have a
35
+ * distinct name.
36
+ *
37
+ * Defaults to `false` (single instance per scope).
38
+ *
39
+ * @example
40
+ * ```typescript
41
+ * class WorkflowTwist extends Twist<WorkflowTwist> {
42
+ * static readonly multipleInstances = true;
43
+ * // ...
44
+ * }
45
+ * ```
46
+ */
47
+ static multipleInstances;
48
+ /**
49
+ * The user ID (`twist_instance.owner_id`) that installed this twist.
50
+ * Populated by the runtime before any lifecycle method runs.
51
+ */
52
+ userId;
30
53
  constructor(id, toolShed) {
31
54
  this.id = id;
32
55
  this.toolShed = toolShed;
@@ -197,25 +220,26 @@ export class Twist {
197
220
  return this.tools.tasks.cancelAllTasks();
198
221
  }
199
222
  /**
200
- * Called when the twist is activated for a specific priority.
223
+ * Called when the twist is installed by a user.
201
224
  *
202
- * This method should contain initialization logic such as setting up
203
- * initial threads, configuring webhooks, or establishing external connections.
225
+ * This method should contain initialization logic such as seeding
226
+ * initial threads, configuring webhooks, or establishing external
227
+ * connections. When it runs, `this.userId` is already populated with
228
+ * the installing user's ID.
204
229
  *
205
- * @param priority - The priority context containing the priority ID
206
230
  * @param context - Optional context containing the actor who triggered activation
207
231
  * @returns Promise that resolves when activation is complete
208
232
  */
209
233
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
210
- activate(priority, context) {
234
+ activate(context) {
211
235
  return Promise.resolve();
212
236
  }
213
237
  /**
214
- * Called when a new version of the twist is deployed to an existing priority.
238
+ * Called when a new version of the twist is deployed.
215
239
  *
216
240
  * This method should contain migration logic for updating old data structures
217
241
  * or setting up new resources that weren't needed by the previous version.
218
- * It is called with the new version for each active priorityTwist.
242
+ * It is called once per active twist_instance with the new version.
219
243
  *
220
244
  * @returns Promise that resolves when upgrade is complete
221
245
  */
@@ -237,7 +261,7 @@ export class Twist {
237
261
  return Promise.resolve();
238
262
  }
239
263
  /**
240
- * Called when the twist is removed from a priority.
264
+ * Called when the twist is uninstalled.
241
265
  *
242
266
  * This method should contain cleanup logic such as removing webhooks,
243
267
  * cleaning up external resources, or performing final data operations.
package/dist/twist.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"twist.js","sourceRoot":"","sources":["../src/twist.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,OAAgB,KAAK;IACH;IAAkB;IAAxC,YAAsB,EAAQ,EAAU,QAAkB;QAApC,OAAE,GAAF,EAAE,CAAM;QAAU,aAA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H,6DAA6D;IAC7D,aAAa,CAAC,IAAU,EAAE,KAAa;QACrC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED;;;;;;OAMG;IACH,6DAA6D;IAC7D,aAAa,CAAC,IAAU,EAAE,KAAc;QACtC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED;;;;;;OAMG;IACH,6DAA6D;IAC7D,iBAAiB,CAAC,IAAU,EAAE,IAAU;QACtC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plotday/twister",
3
- "version": "0.44.0",
3
+ "version": "0.46.0",
4
4
  "description": "Plot Twist Creator - Build intelligent extensions that integrate and automate",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,20 +0,0 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PickPriorityConfig | Creating Plot Twists</title><link rel="icon" href="../assets/favicon.svg" type="image/svg+xml"/><meta name="description" content="Documentation for Creating Plot Twists"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="/" class="title">Creating Plot Twists</a><div id="tsd-toolbar-links"><a href="https://plot.day">Plot</a><a href="https://github.com/plotday/plot">GitHub</a><a href="https://www.npmjs.com/package/@plotday/twister">NPM</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/plot.html">plot</a></li><li><a href="" aria-current="page">PickPriorityConfig</a></li></ul><h1>Type Alias PickPriorityConfig</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Configuration for automatic priority selection based on thread similarity.</p>
2
- <p>Maps thread fields to scoring weights or required exact matches:</p>
3
- <ul>
4
- <li>Number value: Maximum score for similarity matching on this field</li>
5
- <li><code>true</code> value: Required exact match - threads must match exactly or be excluded</li>
6
- </ul>
7
- <p>Scoring rules:</p>
8
- <ul>
9
- <li>content: Uses vector similarity on thread embedding (cosine similarity)</li>
10
- <li>mentions: Percentage of existing thread's mentions that appear in new thread</li>
11
- <li>meta.field: Exact match on top-level meta fields (e.g., &quot;meta.sourceId&quot;)</li>
12
- </ul>
13
- <p>When content is <code>true</code>, applies a strong similarity threshold to ensure only close matches.
14
- Default (when neither priority nor pickPriority specified): <code>{content: true}</code></p>
15
- </div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example">Example<a href="#example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="typescript"><span class="hl-7">// Require exact content match with strong similarity</span><br/><span class="hl-15">pickPriority</span><span class="hl-1">: { </span><span class="hl-15">content</span><span class="hl-1">: </span><span class="hl-4">true</span><span class="hl-1"> }</span><br/><br/><span class="hl-7">// Score based on content (max 100 points) and mentions</span><br/><span class="hl-15">pickPriority</span><span class="hl-1">: { </span><span class="hl-15">content</span><span class="hl-1">: </span><span class="hl-14">100</span><span class="hl-1">, </span><span class="hl-15">mentions</span><span class="hl-1">: </span><span class="hl-4">true</span><span class="hl-1"> }</span><br/><br/><span class="hl-7">// Match on meta and score content</span><br/><span class="hl-15">pickPriority</span><span class="hl-1">: { </span><span class="hl-3">&quot;meta.projectId&quot;</span><span class="hl-1">: </span><span class="hl-4">true</span><span class="hl-1">, </span><span class="hl-15">content</span><span class="hl-1">: </span><span class="hl-14">50</span><span class="hl-1"> }</span>
16
- </code><button type="button">Copy</button></pre>
17
-
18
- </div></div></section><div class="tsd-signature"><span class="tsd-signature-keyword">type</span> <span class="tsd-kind-type-alias">PickPriorityConfig</span> <span class="tsd-signature-symbol">=</span> <span class="tsd-signature-symbol">{</span><br/>    <a class="tsd-kind-property" href="#content">content</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#mentions">mentions</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">`</span><span class="tsd-signature-type">meta.</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><section class="tsd-panel"><h4 class="tsd-before-signature">Indexable</h4><ul class="tsd-signatures"><li class="tsd-index-signature"><div class="tsd-signature"><span class="tsd-signature-symbol">[</span><span class="tsd-kind-parameter">key</span>: <span class="tsd-signature-symbol">`</span><span class="tsd-signature-type">meta.</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">true</span></div></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/plotday/plot/blob/main/twist/twister/src/plot.ts#L463">plot.ts:463</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="#content" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>content?</span></a>
19
- <a href="#mentions" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>mentions?</span></a>
20
- </div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Properties</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="content"><code class="tsd-tag">Optional</code><span>content</span><a href="#content" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">content</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">true</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/plotday/plot/blob/main/twist/twister/src/plot.ts#L464">plot.ts:464</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="mentions"><code class="tsd-tag">Optional</code><span>mentions</span><a href="#mentions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">mentions</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">true</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/plotday/plot/blob/main/twist/twister/src/plot.ts#L465">plot.ts:465</a></li></ul></aside></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#content"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>content</span></a><a href="#mentions"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>mentions</span></a></div></details></div></details></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://plot.day" class="tsd-nav-link">Plot</a><a href="https://github.com/plotday/plot" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/@plotday/twister" class="tsd-nav-link">NPM</a></nav><nav class="tsd-navigation"><a href="../modules.html">Creating Plot Twists</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>