@plotday/twister 0.44.0 → 0.45.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.
- package/dist/connector.d.ts +7 -7
- package/dist/connector.d.ts.map +1 -1
- package/dist/connector.js +5 -6
- package/dist/connector.js.map +1 -1
- package/dist/docs/assets/hierarchy.js +1 -1
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/classes/index.Connector.html +47 -44
- package/dist/docs/classes/index.Imap.html +1 -1
- package/dist/docs/classes/index.Options.html +1 -1
- package/dist/docs/classes/index.Smtp.html +1 -1
- package/dist/docs/classes/tool.ITool.html +1 -1
- package/dist/docs/classes/tool.Tool.html +23 -25
- package/dist/docs/classes/tools_ai.AI.html +1 -1
- package/dist/docs/classes/tools_callbacks.Callbacks.html +1 -1
- package/dist/docs/classes/tools_integrations.Integrations.html +11 -10
- package/dist/docs/classes/tools_network.Network.html +29 -4
- package/dist/docs/classes/tools_plot.Plot.html +41 -28
- package/dist/docs/classes/tools_store.Store.html +1 -1
- package/dist/docs/classes/tools_tasks.Tasks.html +1 -1
- package/dist/docs/classes/tools_twists.Twists.html +1 -1
- package/dist/docs/classes/twist.Twist.html +42 -35
- package/dist/docs/documents/Built-in_Tools.html +5 -3
- package/dist/docs/enums/plot.ActorType.html +4 -4
- package/dist/docs/enums/tools_integrations.AuthProvider.html +12 -12
- package/dist/docs/enums/tools_plot.LinkAccess.html +2 -2
- package/dist/docs/enums/tools_plot.PriorityAccess.html +5 -5
- package/dist/docs/enums/tools_plot.ThreadAccess.html +1 -1
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/media/AGENTS.md +1 -1
- package/dist/docs/modules/index.html +1 -1
- package/dist/docs/modules/plot.html +1 -1
- package/dist/docs/modules/tools_integrations.html +1 -1
- package/dist/docs/types/plot.Actor.html +5 -5
- package/dist/docs/types/plot.Contact.html +9 -0
- package/dist/docs/types/plot.ContentType.html +1 -1
- package/dist/docs/types/plot.Link.html +15 -15
- package/dist/docs/types/plot.LinkUpdate.html +2 -2
- package/dist/docs/types/plot.NewActor.html +1 -1
- package/dist/docs/types/plot.NewContact.html +1 -1
- package/dist/docs/types/plot.NewLink.html +9 -8
- package/dist/docs/types/plot.NewLinkWithNotes.html +1 -1
- package/dist/docs/types/plot.NewNote.html +9 -3
- package/dist/docs/types/plot.NewThread.html +7 -5
- package/dist/docs/types/plot.NewThreadWithNotes.html +1 -1
- package/dist/docs/types/plot.Note.html +5 -2
- package/dist/docs/types/plot.NoteUpdate.html +4 -3
- package/dist/docs/types/plot.PlanOperation.html +1 -1
- package/dist/docs/types/plot.Thread.html +1 -1
- package/dist/docs/types/plot.ThreadAccessLevel.html +7 -0
- package/dist/docs/types/plot.ThreadCommon.html +5 -9
- package/dist/docs/types/plot.ThreadFilter.html +2 -2
- package/dist/docs/types/plot.ThreadUpdate.html +1 -1
- package/dist/docs/types/plot.ThreadWithNotes.html +1 -1
- package/dist/docs/types/tools_integrations.ArchiveLinkFilter.html +5 -5
- package/dist/docs/types/tools_integrations.AuthToken.html +4 -4
- package/dist/docs/types/tools_integrations.Authorization.html +4 -4
- package/dist/docs/types/tools_integrations.Channel.html +3 -5
- package/dist/docs/types/tools_integrations.LinkTypeConfig.html +14 -9
- package/dist/docs/types/tools_integrations.SyncContext.html +10 -0
- package/dist/docs/types/tools_plot.SearchOptions.html +4 -2
- package/dist/llm-docs/connector.d.ts +1 -1
- package/dist/llm-docs/connector.d.ts.map +1 -1
- package/dist/llm-docs/connector.js +1 -1
- package/dist/llm-docs/connector.js.map +1 -1
- package/dist/llm-docs/plot.d.ts +1 -1
- package/dist/llm-docs/plot.d.ts.map +1 -1
- package/dist/llm-docs/plot.js +1 -1
- package/dist/llm-docs/plot.js.map +1 -1
- package/dist/llm-docs/tool.d.ts +1 -1
- package/dist/llm-docs/tool.d.ts.map +1 -1
- package/dist/llm-docs/tool.js +1 -1
- package/dist/llm-docs/tool.js.map +1 -1
- package/dist/llm-docs/tools/integrations.d.ts +1 -1
- package/dist/llm-docs/tools/integrations.d.ts.map +1 -1
- package/dist/llm-docs/tools/integrations.js +1 -1
- package/dist/llm-docs/tools/integrations.js.map +1 -1
- package/dist/llm-docs/tools/network.d.ts +1 -1
- package/dist/llm-docs/tools/network.d.ts.map +1 -1
- package/dist/llm-docs/tools/network.js +1 -1
- package/dist/llm-docs/tools/network.js.map +1 -1
- package/dist/llm-docs/tools/plot.d.ts +1 -1
- package/dist/llm-docs/tools/plot.d.ts.map +1 -1
- package/dist/llm-docs/tools/plot.js +1 -1
- package/dist/llm-docs/tools/plot.js.map +1 -1
- package/dist/llm-docs/twist.d.ts +1 -1
- package/dist/llm-docs/twist.d.ts.map +1 -1
- package/dist/llm-docs/twist.js +1 -1
- package/dist/llm-docs/twist.js.map +1 -1
- package/dist/plot.d.ts +72 -61
- package/dist/plot.d.ts.map +1 -1
- package/dist/plot.js.map +1 -1
- package/dist/tool.d.ts +3 -5
- package/dist/tool.d.ts.map +1 -1
- package/dist/tool.js +2 -4
- package/dist/tool.js.map +1 -1
- package/dist/tools/integrations.d.ts +28 -4
- package/dist/tools/integrations.d.ts.map +1 -1
- package/dist/tools/integrations.js.map +1 -1
- package/dist/tools/network.d.ts +30 -0
- package/dist/tools/network.d.ts.map +1 -1
- package/dist/tools/network.js.map +1 -1
- package/dist/tools/plot.d.ts +41 -15
- package/dist/tools/plot.d.ts.map +1 -1
- package/dist/tools/plot.js +9 -9
- package/dist/tools/plot.js.map +1 -1
- package/dist/twist.d.ts +21 -13
- package/dist/twist.d.ts.map +1 -1
- package/dist/twist.js +20 -12
- package/dist/twist.js.map +1 -1
- package/package.json +1 -1
- 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;
|
|
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"}
|
package/dist/tools/plot.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare enum ThreadAccess {
|
|
|
14
14
|
*/
|
|
15
15
|
Create = 1,
|
|
16
16
|
/**
|
|
17
|
-
* List/query all Threads
|
|
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
|
|
27
|
-
* Update
|
|
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
|
|
32
|
-
* Create
|
|
33
|
-
* Update and archive any 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
|
|
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
|
|
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
|
-
/**
|
|
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(
|
|
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
|
|
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
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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;
|
package/dist/tools/plot.d.ts.map
CHANGED
|
@@ -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,
|
|
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,0DAA0D;IAC1D,IAAI,IAAA;IACJ,6FAA6F;IAC7F,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,K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AkB,CAAC,EAAE,OAAO,CAAC;QAC7B,gDAAgD;QAChD,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,kEAAkE;QAClE,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,4DAA4D;QAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAErB;;;;;;;OAOG;IAEH,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE;QAC/B;;;WAGG;QACH,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,yEAAyE;QACzE,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,mDAAmD;QACnD,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAEvB;;;;;;;OAOG;IAEH,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAEpD;;;;;;;;;;OAUG;IAEH,QAAQ,CAAC,UAAU,CAAC,OAAO,EAAE;QAC3B,gDAAgD;QAChD,KAAK,EAAE,MAAM,CAAC;QACd,iDAAiD;QACjD,UAAU,EAAE,aAAa,EAAE,CAAC;QAC5B,+EAA+E;QAC/E,QAAQ,EAAE,QAAQ,CAAC;KACpB,GAAG,MAAM;CACX"}
|
package/dist/tools/plot.js
CHANGED
|
@@ -13,7 +13,7 @@ export var ThreadAccess;
|
|
|
13
13
|
*/
|
|
14
14
|
ThreadAccess[ThreadAccess["Create"] = 1] = "Create";
|
|
15
15
|
/**
|
|
16
|
-
* List/query all Threads
|
|
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
|
|
27
|
-
* Update
|
|
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
|
|
32
|
-
* Create
|
|
33
|
-
* Update and archive any 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
|
|
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
|
|
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(
|
|
70
|
+
* async activate() {
|
|
71
71
|
* // Create a welcome thread
|
|
72
72
|
* await this.plot.createThread({
|
|
73
73
|
* title: "Welcome to Plot!",
|
package/dist/tools/plot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.js","sourceRoot":"","sources":["../../src/tools/plot.ts"],"names":[],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0D;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
|
|
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
|
-
*
|
|
11
|
-
*
|
|
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
|
|
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(
|
|
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,11 @@ 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
|
+
* The user ID (`twist_instance.owner_id`) that installed this twist.
|
|
40
|
+
* Populated by the runtime before any lifecycle method runs.
|
|
41
|
+
*/
|
|
42
|
+
protected userId: Uuid;
|
|
36
43
|
constructor(id: Uuid, toolShed: ToolShed);
|
|
37
44
|
/**
|
|
38
45
|
* Gets the initialized tools for this twist.
|
|
@@ -209,24 +216,25 @@ export declare abstract class Twist<TSelf> {
|
|
|
209
216
|
*/
|
|
210
217
|
protected cancelAllTasks(): Promise<void>;
|
|
211
218
|
/**
|
|
212
|
-
* Called when the twist is
|
|
219
|
+
* Called when the twist is installed by a user.
|
|
213
220
|
*
|
|
214
|
-
* This method should contain initialization logic such as
|
|
215
|
-
* initial threads, configuring webhooks, or establishing external
|
|
221
|
+
* This method should contain initialization logic such as seeding
|
|
222
|
+
* initial threads, configuring webhooks, or establishing external
|
|
223
|
+
* connections. When it runs, `this.userId` is already populated with
|
|
224
|
+
* the installing user's ID.
|
|
216
225
|
*
|
|
217
|
-
* @param priority - The priority context containing the priority ID
|
|
218
226
|
* @param context - Optional context containing the actor who triggered activation
|
|
219
227
|
* @returns Promise that resolves when activation is complete
|
|
220
228
|
*/
|
|
221
|
-
activate(
|
|
229
|
+
activate(context?: {
|
|
222
230
|
actor: Actor;
|
|
223
231
|
}): Promise<void>;
|
|
224
232
|
/**
|
|
225
|
-
* Called when a new version of the twist is deployed
|
|
233
|
+
* Called when a new version of the twist is deployed.
|
|
226
234
|
*
|
|
227
235
|
* This method should contain migration logic for updating old data structures
|
|
228
236
|
* or setting up new resources that weren't needed by the previous version.
|
|
229
|
-
* It is called with the new version
|
|
237
|
+
* It is called once per active twist_instance with the new version.
|
|
230
238
|
*
|
|
231
239
|
* @returns Promise that resolves when upgrade is complete
|
|
232
240
|
*/
|
package/dist/twist.d.ts.map
CHANGED
|
@@ -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,
|
|
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,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACxG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,8BAAsB,KAAK,CAAC,KAAK;IAOnB,SAAS,CAAC,EAAE,EAAE,IAAI;IAAE,OAAO,CAAC,QAAQ;IANhD;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAG,IAAI,CAAC;gBAEF,EAAE,EAAE,IAAI,EAAU,QAAQ,EAAE,QAAQ;IAE1D;;;OAGG;IACH,SAAS,KAA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AAE,OAAO,EAAE,CAAC,CAAC;QAClC,WAAW,EAAE,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;KACrC,GACA,OAAO,CAAC,IAAI,CAAC;IAIhB;;;;;;;;;;;;OAYG;IAEH,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIjE;;;;;;OAMG;IAEH,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,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
|
-
*
|
|
5
|
-
*
|
|
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
|
|
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(
|
|
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,11 @@
|
|
|
27
29
|
export class Twist {
|
|
28
30
|
id;
|
|
29
31
|
toolShed;
|
|
32
|
+
/**
|
|
33
|
+
* The user ID (`twist_instance.owner_id`) that installed this twist.
|
|
34
|
+
* Populated by the runtime before any lifecycle method runs.
|
|
35
|
+
*/
|
|
36
|
+
userId;
|
|
30
37
|
constructor(id, toolShed) {
|
|
31
38
|
this.id = id;
|
|
32
39
|
this.toolShed = toolShed;
|
|
@@ -197,25 +204,26 @@ export class Twist {
|
|
|
197
204
|
return this.tools.tasks.cancelAllTasks();
|
|
198
205
|
}
|
|
199
206
|
/**
|
|
200
|
-
* Called when the twist is
|
|
207
|
+
* Called when the twist is installed by a user.
|
|
201
208
|
*
|
|
202
|
-
* This method should contain initialization logic such as
|
|
203
|
-
* initial threads, configuring webhooks, or establishing external
|
|
209
|
+
* This method should contain initialization logic such as seeding
|
|
210
|
+
* initial threads, configuring webhooks, or establishing external
|
|
211
|
+
* connections. When it runs, `this.userId` is already populated with
|
|
212
|
+
* the installing user's ID.
|
|
204
213
|
*
|
|
205
|
-
* @param priority - The priority context containing the priority ID
|
|
206
214
|
* @param context - Optional context containing the actor who triggered activation
|
|
207
215
|
* @returns Promise that resolves when activation is complete
|
|
208
216
|
*/
|
|
209
217
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
210
|
-
activate(
|
|
218
|
+
activate(context) {
|
|
211
219
|
return Promise.resolve();
|
|
212
220
|
}
|
|
213
221
|
/**
|
|
214
|
-
* Called when a new version of the twist is deployed
|
|
222
|
+
* Called when a new version of the twist is deployed.
|
|
215
223
|
*
|
|
216
224
|
* This method should contain migration logic for updating old data structures
|
|
217
225
|
* or setting up new resources that weren't needed by the previous version.
|
|
218
|
-
* It is called with the new version
|
|
226
|
+
* It is called once per active twist_instance with the new version.
|
|
219
227
|
*
|
|
220
228
|
* @returns Promise that resolves when upgrade is complete
|
|
221
229
|
*/
|
package/dist/twist.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twist.js","sourceRoot":"","sources":["../src/twist.ts"],"names":[],"mappings":"AAOA
|
|
1
|
+
{"version":3,"file":"twist.js","sourceRoot":"","sources":["../src/twist.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,OAAgB,KAAK;IAOH;IAAkB;IANxC;;;OAGG;IACO,MAAM,CAAQ;IAExB,YAAsB,EAAQ,EAAU,QAAkB;QAApC,OAAE,GAAF,EAAE,CAAM;QAAU,aAAQ,GAAR,QAAQ,CAAU;IAAG,CAAC;IAE9D;;;OAGG;IACH,IAAc,KAAK;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAqB,CAAC;IACrD,CAAC;IA4CS,KAAK,CAAC,QAAQ,CAGtB,EAAM,EAAE,GAAG,SAAgB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACO,KAAK,CAAC,cAAc,CAG5B,EAAM,EAAE,GAAG,SAAgB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC,CAAC;IACvD,CAAC;IAED;;;;;OAKG;IACO,KAAK,CAAC,cAAc,CAAC,KAAe;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACO,KAAK,CAAC,kBAAkB;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;IAC1C,CAAC;IAED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="../"><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., "meta.sourceId")</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">"meta.projectId"</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>
|