@plotday/twister 0.33.2 → 0.35.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/common/calendar.d.ts +20 -90
- package/dist/common/calendar.d.ts.map +1 -1
- package/dist/common/documents.d.ts +122 -0
- package/dist/common/documents.d.ts.map +1 -0
- package/dist/common/documents.js +2 -0
- package/dist/common/documents.js.map +1 -0
- package/dist/common/messaging.d.ts +21 -40
- package/dist/common/messaging.d.ts.map +1 -1
- package/dist/common/projects.d.ts +27 -51
- package/dist/common/projects.d.ts.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/tool.ITool.html +1 -1
- package/dist/docs/classes/tool.Tool.html +24 -20
- 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 +33 -26
- package/dist/docs/classes/tools_network.Network.html +1 -1
- package/dist/docs/classes/tools_plot.Plot.html +3 -3
- package/dist/docs/classes/tools_store.Store.html +10 -4
- package/dist/docs/classes/tools_tasks.Tasks.html +1 -1
- package/dist/docs/classes/tools_twists.Twists.html +1 -1
- package/dist/docs/enums/plot.ActivityKind.html +2 -2
- package/dist/docs/enums/plot.ActivityLinkType.html +6 -6
- package/dist/docs/enums/plot.ActivityType.html +4 -4
- package/dist/docs/enums/plot.ActorType.html +4 -4
- package/dist/docs/enums/plot.ConferencingProvider.html +6 -6
- package/dist/docs/enums/plot.ThemeColor.html +9 -9
- package/dist/docs/enums/tools_integrations.AuthProvider.html +11 -11
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/modules/common_calendar.html +1 -1
- package/dist/docs/modules/index.html +1 -1
- package/dist/docs/modules/plot.html +1 -1
- package/dist/docs/modules/tool.html +1 -1
- package/dist/docs/modules/tools_integrations.html +1 -1
- package/dist/docs/types/common_calendar.Calendar.html +5 -5
- package/dist/docs/types/common_calendar.CalendarTool.html +17 -43
- package/dist/docs/types/common_calendar.SyncOptions.html +3 -3
- package/dist/docs/types/plot.Activity.html +2 -59
- package/dist/docs/types/plot.ActivityCommon.html +8 -8
- package/dist/docs/types/plot.ActivityFilter.html +3 -0
- package/dist/docs/types/plot.ActivityLink.html +1 -1
- package/dist/docs/types/plot.ActivityMeta.html +1 -1
- package/dist/docs/types/plot.ActivityOccurrence.html +7 -7
- package/dist/docs/types/plot.ActivityOccurrenceUpdate.html +1 -1
- package/dist/docs/types/plot.ActivityUpdate.html +3 -28
- package/dist/docs/types/plot.ActivityWithNotes.html +1 -1
- package/dist/docs/types/plot.Actor.html +5 -5
- package/dist/docs/types/plot.ActorId.html +1 -1
- package/dist/docs/types/plot.ContentType.html +1 -1
- package/dist/docs/types/plot.NewActivity.html +3 -3
- package/dist/docs/types/plot.NewActivityOccurrence.html +1 -1
- package/dist/docs/types/plot.NewActivityWithNotes.html +1 -1
- package/dist/docs/types/plot.NewActor.html +1 -1
- package/dist/docs/types/plot.NewContact.html +8 -4
- package/dist/docs/types/plot.NewNote.html +9 -2
- package/dist/docs/types/plot.NewPriority.html +1 -1
- package/dist/docs/types/plot.NewTags.html +1 -1
- package/dist/docs/types/plot.Note.html +3 -2
- package/dist/docs/types/plot.NoteUpdate.html +2 -2
- package/dist/docs/types/plot.PickPriorityConfig.html +2 -2
- package/dist/docs/types/plot.Priority.html +6 -6
- package/dist/docs/types/plot.PriorityUpdate.html +1 -1
- package/dist/docs/types/plot.Tags.html +1 -1
- package/dist/docs/types/tool.SyncToolOptions.html +9 -0
- 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.IntegrationOptions.html +4 -0
- package/dist/docs/types/tools_integrations.IntegrationProviderConfig.html +13 -0
- package/dist/docs/types/tools_integrations.Syncable.html +7 -0
- package/dist/llm-docs/common/calendar.d.ts +1 -1
- package/dist/llm-docs/common/calendar.d.ts.map +1 -1
- package/dist/llm-docs/common/calendar.js +1 -1
- package/dist/llm-docs/common/calendar.js.map +1 -1
- package/dist/llm-docs/common/documents.d.ts +9 -0
- package/dist/llm-docs/common/documents.d.ts.map +1 -0
- package/dist/llm-docs/common/documents.js +8 -0
- package/dist/llm-docs/common/documents.js.map +1 -0
- package/dist/llm-docs/common/messaging.d.ts +1 -1
- package/dist/llm-docs/common/messaging.d.ts.map +1 -1
- package/dist/llm-docs/common/messaging.js +1 -1
- package/dist/llm-docs/common/messaging.js.map +1 -1
- package/dist/llm-docs/common/projects.d.ts +1 -1
- package/dist/llm-docs/common/projects.d.ts.map +1 -1
- package/dist/llm-docs/common/projects.js +1 -1
- package/dist/llm-docs/common/projects.js.map +1 -1
- package/dist/llm-docs/index.d.ts.map +1 -1
- package/dist/llm-docs/index.js +2 -0
- package/dist/llm-docs/index.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/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/tools/store.d.ts +1 -1
- package/dist/llm-docs/tools/store.d.ts.map +1 -1
- package/dist/llm-docs/tools/store.js +1 -1
- package/dist/llm-docs/tools/store.js.map +1 -1
- package/dist/plot.d.ts +92 -17
- package/dist/plot.d.ts.map +1 -1
- package/dist/plot.js.map +1 -1
- package/dist/tool.d.ts +22 -1
- package/dist/tool.d.ts.map +1 -1
- package/dist/tool.js +9 -0
- package/dist/tool.js.map +1 -1
- package/dist/tools/integrations.d.ts +86 -46
- package/dist/tools/integrations.d.ts.map +1 -1
- package/dist/tools/integrations.js +36 -21
- package/dist/tools/integrations.js.map +1 -1
- package/dist/tools/plot.d.ts +3 -1
- package/dist/tools/plot.d.ts.map +1 -1
- package/dist/tools/store.d.ts +10 -0
- package/dist/tools/store.d.ts.map +1 -1
- package/dist/tools/store.js.map +1 -1
- package/package.json +11 -1
- package/dist/docs/types/common_calendar.CalendarAuth.html +0 -7
|
@@ -1,70 +1,110 @@
|
|
|
1
|
-
import { type Actor, type ActorId,
|
|
1
|
+
import { type Actor, type ActorId, ITool, Serializable } from "..";
|
|
2
|
+
import type { Uuid } from "../utils/uuid";
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* A resource that can be synced (e.g., a calendar, project, channel).
|
|
5
|
+
* Returned by getSyncables() and managed by users in the twist setup/edit modal.
|
|
6
|
+
*/
|
|
7
|
+
export type Syncable = {
|
|
8
|
+
/** External ID shared across users (e.g., Google calendar ID) */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Display name shown in the UI */
|
|
11
|
+
title: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Configuration for an OAuth provider in a tool's build options.
|
|
15
|
+
* Declares the provider, scopes, and lifecycle callbacks.
|
|
16
|
+
*/
|
|
17
|
+
export type IntegrationProviderConfig = {
|
|
18
|
+
/** The OAuth provider */
|
|
19
|
+
provider: AuthProvider;
|
|
20
|
+
/** OAuth scopes to request */
|
|
21
|
+
scopes: string[];
|
|
22
|
+
/** Returns available syncables for the authorized actor. Must not use Plot tool. */
|
|
23
|
+
getSyncables: (auth: Authorization, token: AuthToken) => Promise<Syncable[]>;
|
|
24
|
+
/** Called when a syncable resource is enabled for syncing */
|
|
25
|
+
onSyncEnabled: (syncable: Syncable) => Promise<void>;
|
|
26
|
+
/** Called when a syncable resource is disabled */
|
|
27
|
+
onSyncDisabled: (syncable: Syncable) => Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Options passed to Integrations in the build() method.
|
|
31
|
+
*/
|
|
32
|
+
export type IntegrationOptions = {
|
|
33
|
+
/** Provider configurations with lifecycle callbacks */
|
|
34
|
+
providers: IntegrationProviderConfig[];
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Built-in tool for managing OAuth authentication and syncable resources.
|
|
38
|
+
*
|
|
39
|
+
* The redesigned Integrations tool:
|
|
40
|
+
* 1. Declares providers/scopes in build options with lifecycle callbacks
|
|
41
|
+
* 2. Manages syncable resources (calendars, projects, etc.) per actor
|
|
42
|
+
* 3. Returns tokens for the user who enabled sync on a syncable
|
|
43
|
+
* 4. Supports per-actor auth via actAs() for write-back operations
|
|
4
44
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* OAuth flow creation, token management, and callback integration.
|
|
45
|
+
* Auth and syncable management is handled in the twist edit modal in Flutter,
|
|
46
|
+
* removing the need for tools to create auth activities or selection UIs.
|
|
8
47
|
*
|
|
9
48
|
* @example
|
|
10
49
|
* ```typescript
|
|
11
|
-
* class CalendarTool extends Tool {
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* constructor(id: string, tools: ToolBuilder) {
|
|
15
|
-
* super();
|
|
16
|
-
* this.integrations = tools.get(Integrations);
|
|
17
|
-
* }
|
|
50
|
+
* class CalendarTool extends Tool<CalendarTool> {
|
|
51
|
+
* static readonly PROVIDER = AuthProvider.Google;
|
|
52
|
+
* static readonly SCOPES = ["https://www.googleapis.com/auth/calendar"];
|
|
18
53
|
*
|
|
19
|
-
*
|
|
20
|
-
* return
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
54
|
+
* build(build: ToolBuilder) {
|
|
55
|
+
* return {
|
|
56
|
+
* integrations: build(Integrations, {
|
|
57
|
+
* providers: [{
|
|
58
|
+
* provider: AuthProvider.Google,
|
|
59
|
+
* scopes: CalendarTool.SCOPES,
|
|
60
|
+
* getSyncables: this.getSyncables,
|
|
61
|
+
* onSyncEnabled: this.onSyncEnabled,
|
|
62
|
+
* onSyncDisabled: this.onSyncDisabled,
|
|
63
|
+
* }]
|
|
64
|
+
* }),
|
|
65
|
+
* };
|
|
27
66
|
* }
|
|
28
67
|
*
|
|
29
|
-
* async
|
|
30
|
-
* const
|
|
68
|
+
* async getSyncables(auth: Authorization, token: AuthToken): Promise<Syncable[]> {
|
|
69
|
+
* const calendars = await this.listCalendars(token);
|
|
70
|
+
* return calendars.map(c => ({ id: c.id, title: c.name }));
|
|
31
71
|
* }
|
|
32
72
|
* }
|
|
33
73
|
* ```
|
|
34
74
|
*/
|
|
35
75
|
export declare abstract class Integrations extends ITool {
|
|
36
76
|
/**
|
|
37
|
-
*
|
|
77
|
+
* Merge scopes from multiple tools, deduplicating.
|
|
38
78
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* completes, the callback will be invoked with the Authorization and any extraArgs.
|
|
42
|
-
*
|
|
43
|
-
* @param auth - Authentication configuration
|
|
44
|
-
* @param auth.provider - The OAuth provider to authenticate with
|
|
45
|
-
* @param auth.scopes - Array of OAuth scopes to request
|
|
46
|
-
* @param callback - Function receiving (authorization, ...extraArgs)
|
|
47
|
-
* @param extraArgs - Additional arguments to pass to the callback (type-checked, must be serializable)
|
|
48
|
-
* @returns Promise resolving to an ActivityLink for the auth flow
|
|
79
|
+
* @param scopeArrays - Arrays of scopes to merge
|
|
80
|
+
* @returns Deduplicated array of scopes
|
|
49
81
|
*/
|
|
50
|
-
|
|
51
|
-
provider: AuthProvider;
|
|
52
|
-
scopes: string[];
|
|
53
|
-
}, callback: TCallback, ...extraArgs: TArgs): Promise<ActivityLink>;
|
|
82
|
+
static MergeScopes(...scopeArrays: string[][]): string[];
|
|
54
83
|
/**
|
|
55
|
-
* Retrieves an access token
|
|
84
|
+
* Retrieves an access token for a syncable resource.
|
|
85
|
+
*
|
|
86
|
+
* Returns the token of the user who enabled sync on the given syncable.
|
|
87
|
+
* If the syncable is not enabled or the token is expired/invalid, returns null.
|
|
56
88
|
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* returns
|
|
89
|
+
* @param provider - The OAuth provider
|
|
90
|
+
* @param syncableId - The syncable resource ID (e.g., calendar ID)
|
|
91
|
+
* @returns Promise resolving to the access token or null
|
|
92
|
+
*/
|
|
93
|
+
abstract get(provider: AuthProvider, syncableId: string): Promise<AuthToken | null>;
|
|
94
|
+
/**
|
|
95
|
+
* Execute a callback as a specific actor, requesting auth if needed.
|
|
60
96
|
*
|
|
61
|
-
*
|
|
97
|
+
* If the actor has a valid token, calls the callback immediately with it.
|
|
98
|
+
* If the actor has no token, creates a private auth note in the specified
|
|
99
|
+
* activity prompting them to connect. Once they authorize, this callback fires.
|
|
62
100
|
*
|
|
63
|
-
* @param provider - The OAuth provider
|
|
64
|
-
* @param actorId - The actor
|
|
65
|
-
* @
|
|
101
|
+
* @param provider - The OAuth provider
|
|
102
|
+
* @param actorId - The actor to act as
|
|
103
|
+
* @param activityId - The activity to create an auth note in (if needed)
|
|
104
|
+
* @param callback - Function to call with the token
|
|
105
|
+
* @param extraArgs - Additional arguments to pass to the callback
|
|
66
106
|
*/
|
|
67
|
-
abstract
|
|
107
|
+
abstract actAs<TArgs extends Serializable[], TCallback extends (token: AuthToken, ...args: TArgs) => any>(provider: AuthProvider, actorId: ActorId, activityId: Uuid, callback: TCallback, ...extraArgs: TArgs): Promise<void>;
|
|
68
108
|
}
|
|
69
109
|
/**
|
|
70
110
|
* Enumeration of supported OAuth providers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/tools/integrations.ts"],"names":[],"mappings":"AAAA,O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AM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC"}
|
|
@@ -1,38 +1,53 @@
|
|
|
1
1
|
import { ITool } from "..";
|
|
2
2
|
/**
|
|
3
|
-
* Built-in tool for managing OAuth authentication
|
|
3
|
+
* Built-in tool for managing OAuth authentication and syncable resources.
|
|
4
4
|
*
|
|
5
|
-
* The Integrations tool
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* The redesigned Integrations tool:
|
|
6
|
+
* 1. Declares providers/scopes in build options with lifecycle callbacks
|
|
7
|
+
* 2. Manages syncable resources (calendars, projects, etc.) per actor
|
|
8
|
+
* 3. Returns tokens for the user who enabled sync on a syncable
|
|
9
|
+
* 4. Supports per-actor auth via actAs() for write-back operations
|
|
10
|
+
*
|
|
11
|
+
* Auth and syncable management is handled in the twist edit modal in Flutter,
|
|
12
|
+
* removing the need for tools to create auth activities or selection UIs.
|
|
8
13
|
*
|
|
9
14
|
* @example
|
|
10
15
|
* ```typescript
|
|
11
|
-
* class CalendarTool extends Tool {
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* constructor(id: string, tools: ToolBuilder) {
|
|
15
|
-
* super();
|
|
16
|
-
* this.integrations = tools.get(Integrations);
|
|
17
|
-
* }
|
|
16
|
+
* class CalendarTool extends Tool<CalendarTool> {
|
|
17
|
+
* static readonly PROVIDER = AuthProvider.Google;
|
|
18
|
+
* static readonly SCOPES = ["https://www.googleapis.com/auth/calendar"];
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
-
* return
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
20
|
+
* build(build: ToolBuilder) {
|
|
21
|
+
* return {
|
|
22
|
+
* integrations: build(Integrations, {
|
|
23
|
+
* providers: [{
|
|
24
|
+
* provider: AuthProvider.Google,
|
|
25
|
+
* scopes: CalendarTool.SCOPES,
|
|
26
|
+
* getSyncables: this.getSyncables,
|
|
27
|
+
* onSyncEnabled: this.onSyncEnabled,
|
|
28
|
+
* onSyncDisabled: this.onSyncDisabled,
|
|
29
|
+
* }]
|
|
30
|
+
* }),
|
|
31
|
+
* };
|
|
27
32
|
* }
|
|
28
33
|
*
|
|
29
|
-
* async
|
|
30
|
-
* const
|
|
34
|
+
* async getSyncables(auth: Authorization, token: AuthToken): Promise<Syncable[]> {
|
|
35
|
+
* const calendars = await this.listCalendars(token);
|
|
36
|
+
* return calendars.map(c => ({ id: c.id, title: c.name }));
|
|
31
37
|
* }
|
|
32
38
|
* }
|
|
33
39
|
* ```
|
|
34
40
|
*/
|
|
35
41
|
export class Integrations extends ITool {
|
|
42
|
+
/**
|
|
43
|
+
* Merge scopes from multiple tools, deduplicating.
|
|
44
|
+
*
|
|
45
|
+
* @param scopeArrays - Arrays of scopes to merge
|
|
46
|
+
* @returns Deduplicated array of scopes
|
|
47
|
+
*/
|
|
48
|
+
static MergeScopes(...scopeArrays) {
|
|
49
|
+
return Array.from(new Set(scopeArrays.flat()));
|
|
50
|
+
}
|
|
36
51
|
}
|
|
37
52
|
/**
|
|
38
53
|
* Enumeration of supported OAuth providers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/tools/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/tools/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,EAAgB,MAAM,IAAI,CAAC;AAuCnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,OAAgB,YAAa,SAAQ,KAAK;IAC9C;;;;;OAKG;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,WAAuB;QAC3C,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACjD,CAAC;CAwCF;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,YAqBX;AArBD,WAAY,YAAY;IACtB,0DAA0D;IAC1D,iCAAiB,CAAA;IACjB,0DAA0D;IAC1D,uCAAuB,CAAA;IACvB,kDAAkD;IAClD,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,+BAAe,CAAA;IACf,uDAAuD;IACvD,uCAAuB,CAAA;IACvB,kDAAkD;IAClD,iCAAiB,CAAA;IACjB,gCAAgC;IAChC,iCAAiB,CAAA;IACjB,sEAAsE;IACtE,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,+BAAe,CAAA;IACf,6CAA6C;IAC7C,mCAAmB,CAAA;AACrB,CAAC,EArBW,YAAY,KAAZ,YAAY,QAqBvB"}
|
package/dist/tools/plot.d.ts
CHANGED
|
@@ -403,7 +403,9 @@ export declare abstract class Plot extends ITool {
|
|
|
403
403
|
* @param priority - The priority data to create
|
|
404
404
|
* @returns Promise resolving to the complete created priority
|
|
405
405
|
*/
|
|
406
|
-
abstract createPriority(priority: NewPriority): Promise<Priority
|
|
406
|
+
abstract createPriority(priority: NewPriority): Promise<Priority & {
|
|
407
|
+
created: boolean;
|
|
408
|
+
}>;
|
|
407
409
|
/**
|
|
408
410
|
* Retrieves a priority by ID or key.
|
|
409
411
|
*
|
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,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,GAAG,EACR,IAAI,EACL,MAAM,IA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CAAA;KAAE,CAAC;IAExF;;;;;;;OAOG;IAEH,QAAQ,CAAC,WAAW,CAClB,QAAQ,EAAE;QAAE,EAAE,EAAE,IAAI,CAAA;KAAE,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GACvC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAE3B;;;;;;;;OAQG;IAEH,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAE9D;;;;;;;;;;OAUG;IAEH,QAAQ,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAEnE;;;;;;;;OAQG;IAEH,QAAQ,CAAC,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;CACrD"}
|
package/dist/tools/store.d.ts
CHANGED
|
@@ -108,6 +108,16 @@ export declare abstract class Store extends ITool {
|
|
|
108
108
|
* ```
|
|
109
109
|
*/
|
|
110
110
|
abstract set<T extends Serializable>(key: string, value: T): Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Lists all storage keys matching a prefix.
|
|
113
|
+
*
|
|
114
|
+
* Returns an array of key strings that start with the given prefix.
|
|
115
|
+
* Useful for finding all keys in a namespace (e.g., all sync locks).
|
|
116
|
+
*
|
|
117
|
+
* @param prefix - The prefix to match keys against
|
|
118
|
+
* @returns Promise resolving to an array of matching key strings
|
|
119
|
+
*/
|
|
120
|
+
abstract list(prefix: string): Promise<string[]>;
|
|
111
121
|
/**
|
|
112
122
|
* Removes a specific key from storage.
|
|
113
123
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/tools/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,IAAI,CAAC;AAE9C;;;;;;;;;;;;;;;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AAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAEhD;;;;;;;;OAQG;IAEH,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAE1C;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CACnC"}
|
package/dist/tools/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/tools/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAqB,MAAM,IAAI,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAM,OAAgB,KAAM,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/tools/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAqB,MAAM,IAAI,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAM,OAAgB,KAAM,SAAQ,KAAK;CA2FxC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plotday/twister",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Plot Twist Creator - Build intelligent extensions that integrate and automate",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -104,6 +104,11 @@
|
|
|
104
104
|
"types": "./dist/common/projects.d.ts",
|
|
105
105
|
"default": "./dist/common/projects.js"
|
|
106
106
|
},
|
|
107
|
+
"./common/documents": {
|
|
108
|
+
"@plotday/source": "./src/common/documents.ts",
|
|
109
|
+
"types": "./dist/common/documents.d.ts",
|
|
110
|
+
"default": "./dist/common/documents.js"
|
|
111
|
+
},
|
|
107
112
|
"./twist-guide": {
|
|
108
113
|
"@plotday/source": "./src/twist-guide.ts",
|
|
109
114
|
"types": "./dist/twist-guide.d.ts",
|
|
@@ -194,6 +199,11 @@
|
|
|
194
199
|
"types": "./dist/llm-docs/common/projects.d.ts",
|
|
195
200
|
"default": "./dist/llm-docs/common/projects.js"
|
|
196
201
|
},
|
|
202
|
+
"./llm-docs/common/documents": {
|
|
203
|
+
"@plotday/source": "./src/llm-docs/common/documents.ts",
|
|
204
|
+
"types": "./dist/llm-docs/common/documents.d.ts",
|
|
205
|
+
"default": "./dist/llm-docs/common/documents.js"
|
|
206
|
+
},
|
|
197
207
|
"./tsconfig.base.json": "./tsconfig.base.json"
|
|
198
208
|
},
|
|
199
209
|
"files": [
|
|
@@ -1,7 +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>CalendarAuth | 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/common_calendar.html">common/calendar</a></li><li><a href="" aria-current="page">CalendarAuth</a></li></ul><h1>Type Alias CalendarAuth</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Represents successful calendar authorization.</p>
|
|
2
|
-
<p>Returned by calendar tools when authorization completes successfully.
|
|
3
|
-
The auth token is an opaque identifier that can be used for subsequent
|
|
4
|
-
calendar operations.</p>
|
|
5
|
-
</div></section><div class="tsd-signature"><span class="tsd-signature-keyword">type</span> <span class="tsd-kind-type-alias">CalendarAuth</span> <span class="tsd-signature-symbol">=</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#authtoken">authToken</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/plotday/plot/blob/main/twist/twister/src/common/calendar.ts#L10">common/calendar.ts:10</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="#authtoken" 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>auth<wbr/>Token</span></a>
|
|
6
|
-
</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="authtoken"><span>auth<wbr/>Token</span><a href="#authtoken" 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">authToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>Opaque token for calendar operations</p>
|
|
7
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/plotday/plot/blob/main/twist/twister/src/common/calendar.ts#L12">common/calendar.ts:12</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="#authtoken"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>auth<wbr/>Token</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>
|