@plotday/twister 0.21.0 → 0.22.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 +3 -3
- package/dist/common/calendar.d.ts.map +1 -1
- package/dist/common/messaging.d.ts +8 -7
- package/dist/common/messaging.d.ts.map +1 -1
- package/dist/docs/assets/hierarchy.js +1 -1
- package/dist/docs/assets/highlight.css +8 -8
- 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 +1 -1
- package/dist/docs/classes/tools_ai.AI.html +3 -3
- package/dist/docs/classes/tools_callbacks.Callbacks.html +1 -1
- package/dist/docs/classes/tools_integrations.Integrations.html +1 -1
- package/dist/docs/classes/tools_network.Network.html +1 -1
- package/dist/docs/classes/tools_plot.Plot.html +52 -31
- package/dist/docs/classes/tools_store.Store.html +1 -1
- package/dist/docs/classes/tools_tasks.Tasks.html +2 -2
- package/dist/docs/classes/tools_twists.Twists.html +6 -6
- package/dist/docs/classes/twist.Twist.html +1 -1
- package/dist/docs/documents/Building_Custom_Tools.html +8 -9
- package/dist/docs/documents/Built-in_Tools.html +26 -14
- package/dist/docs/documents/Core_Concepts.html +25 -7
- package/dist/docs/documents/Getting_Started.html +12 -3
- package/dist/docs/documents/Runtime_Environment.html +6 -7
- package/dist/docs/enums/plot.ActorType.html +4 -4
- package/dist/docs/enums/tools_plot.ActivityAccess.html +6 -6
- package/dist/docs/enums/tools_plot.ContactAccess.html +3 -3
- package/dist/docs/enums/tools_plot.PriorityAccess.html +3 -3
- package/dist/docs/functions/utils_hash.quickHash.html +1 -0
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/index.html +2 -11
- package/dist/docs/interfaces/common_calendar.CalendarTool.html +5 -5
- package/dist/docs/interfaces/tools_ai.AIRequest.html +4 -4
- package/dist/docs/modules/index.html +1 -1
- package/dist/docs/modules/plot.html +1 -1
- package/dist/docs/modules/tools_plot.html +1 -1
- package/dist/docs/modules/utils_hash.html +1 -0
- package/dist/docs/modules.html +1 -1
- package/dist/docs/types/plot.Activity.html +16 -52
- package/dist/docs/types/plot.ActivityCommon.html +20 -0
- package/dist/docs/types/plot.ActivityUpdate.html +2 -8
- package/dist/docs/types/plot.ActivityWithNotes.html +1 -0
- package/dist/docs/types/plot.Actor.html +5 -5
- package/dist/docs/types/plot.NewActivity.html +3 -3
- package/dist/docs/types/plot.NewActivityWithNotes.html +1 -0
- package/dist/docs/types/plot.NewContact.html +4 -4
- package/dist/docs/types/plot.NewNote.html +10 -0
- package/dist/docs/types/plot.Note.html +7 -0
- package/dist/docs/types/plot.NoteType.html +1 -1
- package/dist/docs/types/plot.NoteUpdate.html +14 -0
- package/dist/docs/types/plot.PickPriorityConfig.html +3 -3
- package/dist/docs/types/tools_network.WebhookRequest.html +1 -1
- package/dist/docs/types/{tools_plot.ActivityIntentHandler.html → tools_plot.NoteIntentHandler.html} +5 -5
- 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/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/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/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/plot.d.ts +75 -33
- package/dist/plot.d.ts.map +1 -1
- package/dist/plot.js.map +1 -1
- package/dist/tools/plot.d.ts +118 -29
- package/dist/tools/plot.d.ts.map +1 -1
- package/dist/tools/plot.js +4 -4
- package/dist/tools/plot.js.map +1 -1
- package/dist/utils/hash.d.ts +2 -0
- package/dist/utils/hash.d.ts.map +1 -0
- package/dist/utils/hash.js +9 -0
- package/dist/utils/hash.js.map +1 -0
- package/package.json +5 -1
- package/dist/docs/documents/Advanced.html +0 -91
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* This file is auto-generated during build. Do not edit manually.
|
|
5
5
|
* Generated from: prebuild.ts
|
|
6
6
|
*/
|
|
7
|
-
export default "import {\n type Activity,\n type ActivityMeta,\n type ActivityUpdate,\n type Actor,\n type ActorId,\n ITool,\n type NewActivity,\n type NewContact,\n type NewPriority,\n type Priority,\n type Tag,\n} from \"..\";\n\nexport enum ActivityAccess {\n /**\n * Create new Activity on a thread where the twist was mentioned.\n * Add/remove tags on Activity where the twist was mentioned.\n */\n Respond,\n /**\n * Create new, top-level Activity.\n * Create new Activity in a thread the twist created.\n * All Respond permissions.\n */\n Create,\n}\n\nexport enum PriorityAccess {\n /**\n * Create a new Priority within the twist's Priority.\n * Update Priority created by the twist.\n */\n Create,\n /**\n * Read all Priority within the twist's Priority.\n * Create a new Priority within the twist's Priority.\n * Update and archive any Priority within the twist's Priority.\n */\n Full,\n}\n\nexport enum ContactAccess {\n /** Read existing contacts. */\n Read,\n /** Create and update contacts. */\n Write,\n}\n\n/**\n * Intent handler for activity mentions.\n * Defines how the twist should respond when mentioned in an activity.\n */\nexport type ActivityIntentHandler = {\n /** Human-readable description of what this intent handles */\n description: string;\n /** Example phrases or activity content that would match this intent */\n examples: string[];\n /** The function to call when this intent is matched */\n handler: (activity: Activity) => Promise<void>;\n};\n\n/**\n * Built-in tool for interacting with the core Plot data layer.\n *\n * The Plot tool provides twists with the ability to create and manage activities,\n * priorities, and contacts within the Plot system. This is the primary interface\n * for twists to persist data and interact with the Plot database.\n *\n * @example\n * ```typescript\n * class MyTwist extends Twist {\n * private plot: Plot;\n *\n * constructor(id: string, tools: ToolBuilder) {\n * super();\n * this.plot = tools.get(Plot);\n * }\n *\n * async activate(priority) {\n * // Create a welcome activity\n * await this.plot.createActivity({\n * type: ActivityType.Note,\n * title: \"Welcome to Plot!\",\n * links: [{\n * title: \"Get Started\",\n * type: ActivityLinkType.external,\n * url: \"https://plot.day/docs\"\n * }]\n * });\n * }\n * }\n * ```\n */\nexport abstract class Plot extends ITool {\n static readonly Options: {\n /**\n * Activity event callbacks.\n */\n activity?: {\n access?: ActivityAccess;\n\n /**\n * Called when an activity is updated.\n *\n * @param activity - The updated activity\n * @param changes - Optional changes object containing the previous version and tag modifications\n */\n updated?: (\n activity: Activity,\n changes?: {\n previous: Activity;\n tagsAdded: Record<Tag, ActorId[]>;\n tagsRemoved: Record<Tag, ActorId[]>;\n }\n ) => Promise<void>;\n\n /**\n * Intent handlers for activity mentions.\n * When an activity mentions this twist, the system will match the activity\n * content against these intent descriptions and call the matching handler.\n *\n * @example\n * ```typescript\n * intents: [{\n * description: \"Schedule or reschedule calendar events\",\n * examples: [\"Schedule a meeting tomorrow at 2pm\", \"Move my 3pm meeting to 4pm\"],\n * handler: this.onSchedulingRequest\n * }, {\n * description: \"Find available meeting times\",\n * examples: [\"When am I free this week?\", \"Find time for a 1 hour meeting\"],\n * handler: this.onAvailabilityRequest\n * }]\n * ```\n */\n intents?: ActivityIntentHandler[];\n };\n priority?: {\n access?: PriorityAccess;\n };\n contact?: {\n access?: ContactAccess;\n };\n };\n\n /**\n * Creates a new activity in the Plot system.\n *\n * The activity will be automatically assigned an ID and author information\n * based on the current execution context. All other fields from NewActivity\n * will be preserved in the created activity.\n *\n * @param activity - The activity data to create\n * @returns Promise resolving to the complete created activity\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract createActivity(activity: NewActivity): Promise<Activity>;\n\n /**\n * Creates multiple activities in a single batch operation.\n *\n * This method efficiently creates multiple activities at once, which is\n * more performant than calling createActivity() multiple times individually.\n * All activities are created with the same author and access control rules.\n *\n * @param activities - Array of activity data to create\n * @returns Promise resolving to array of created activities\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract createActivities(activities: NewActivity[]): Promise<Activity[]>;\n\n /**\n * Updates an existing activity in the Plot system.\n *\n * Only the fields provided in the update object will be modified - all other fields\n * remain unchanged. This enables partial updates without needing to fetch and resend\n * the entire activity object.\n *\n * For tags, provide a Record<number, boolean> where true adds a tag and false removes it.\n * Tags not included in the update remain unchanged.\n *\n * When updating the parent, the activity's path will be automatically recalculated to\n * maintain the correct hierarchical structure.\n *\n * When updating scheduling fields (start, end, recurrence*), the database will\n * automatically recalculate duration and range values to maintain consistency.\n *\n * @param activity - The activity update containing the ID and fields to change\n * @returns Promise that resolves when the update is complete\n *\n * @example\n * ```typescript\n * // Mark a task as complete\n * await this.plot.updateActivity({\n * id: \"task-123\",\n * doneAt: new Date()\n * });\n *\n * // Reschedule an event\n * await this.plot.updateActivity({\n * id: \"event-456\",\n * start: new Date(\"2024-03-15T10:00:00Z\"),\n * end: new Date(\"2024-03-15T11:00:00Z\")\n * });\n *\n * // Add and remove tags\n * await this.plot.updateActivity({\n * id: \"activity-789\",\n * tags: {\n * 1: true, // Add tag with ID 1\n * 2: false // Remove tag with ID 2\n * }\n * });\n *\n * // Update a recurring event exception\n * await this.plot.updateActivity({\n * id: \"exception-123\",\n * occurrence: new Date(\"2024-03-20T09:00:00Z\"),\n * title: \"Rescheduled meeting\"\n * });\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract updateActivity(activity: ActivityUpdate): Promise<void>;\n\n /**\n * Retrieves all activities in the same thread as the specified activity.\n *\n * A thread consists of related activities linked through parent-child\n * relationships or other associative connections. This is useful for\n * finding conversation histories or related task sequences.\n *\n * @param activity - The activity whose thread to retrieve\n * @returns Promise resolving to array of activities in the thread\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract getThread(activity: Activity): Promise<Activity[]>;\n\n /**\n * Finds an activity by its metadata.\n *\n * This method enables lookup of activities that were created from external\n * systems, using the metadata to locate the corresponding Plot activity.\n * Useful for preventing duplicate imports and maintaining sync state.\n *\n * @param meta - The activity metadata to search for\n * @returns Promise resolving to the matching activity or null if not found\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract getActivityByMeta(meta: ActivityMeta): Promise<Activity | null>;\n\n /**\n * Creates a new priority in the Plot system.\n *\n * Priorities serve as organizational containers for activities and twists.\n * The created priority will be automatically assigned a unique ID.\n *\n * @param priority - The priority data to create\n * @returns Promise resolving to the complete created priority\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract createPriority(priority: NewPriority): Promise<Priority>;\n\n /**\n * Adds contacts to the Plot system.\n *\n * Contacts are used for associating people with activities, such as\n * event attendees or task assignees. Duplicate contacts (by email)\n * will be merged or updated as appropriate.\n * This method requires ContactAccess.Write permission.\n *\n * @param contacts - Array of contact information to add\n * @returns Promise resolving to array of created/updated actors\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract addContacts(contacts: Array<NewContact>): Promise<Actor[]>;\n\n /**\n * Retrieves actors by their IDs.\n *\n * Actors represent users, contacts, or twists in the Plot system.\n * This method requires ContactAccess.Read permission.\n *\n * @param ids - Array of actor IDs to retrieve\n * @returns Promise resolving to array of actors\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract getActors(ids: ActorId[]): Promise<Actor[]>;\n}\n";
|
|
7
|
+
export default "import {\n type Activity,\n type ActivityUpdate,\n type Actor,\n type ActorId,\n ITool,\n type NewActivity,\n type NewActivityWithNotes,\n type NewContact,\n type NewNote,\n type NewPriority,\n type Note,\n type NoteUpdate,\n type Priority,\n type Tag,\n} from \"..\";\n\nexport enum ActivityAccess {\n /**\n * Create new Note on an Activity where the twist was mentioned.\n * Add/remove tags on Activity or Note where the twist was mentioned.\n */\n Respond,\n /**\n * Create new Activity.\n * Create new Note in an Activity the twist created.\n * All Respond permissions.\n */\n Create,\n}\n\nexport enum PriorityAccess {\n /**\n * Create a new Priority within the twist's Priority.\n * Update Priority created by the twist.\n */\n Create,\n /**\n * Read all Priority within the twist's Priority.\n * Create a new Priority within the twist's Priority.\n * Update and archive any Priority within the twist's Priority.\n */\n Full,\n}\n\nexport enum ContactAccess {\n /** Read existing contacts. */\n Read,\n /** Create and update contacts. */\n Write,\n}\n\n/**\n * Intent handler for activity mentions.\n * Defines how the twist should respond when mentioned in an activity.\n */\nexport type NoteIntentHandler = {\n /** Human-readable description of what this intent handles */\n description: string;\n /** Example phrases or activity content that would match this intent */\n examples: string[];\n /** The function to call when this intent is matched */\n handler: (note: Note) => Promise<void>;\n};\n\n/**\n * Built-in tool for interacting with the core Plot data layer.\n *\n * The Plot tool provides twists with the ability to create and manage activities,\n * priorities, and contacts within the Plot system. This is the primary interface\n * for twists to persist data and interact with the Plot database.\n *\n * @example\n * ```typescript\n * class MyTwist extends Twist {\n * private plot: Plot;\n *\n * constructor(id: string, tools: ToolBuilder) {\n * super();\n * this.plot = tools.get(Plot);\n * }\n *\n * async activate(priority) {\n * // Create a welcome activity\n * await this.plot.createActivity({\n * type: ActivityType.Note,\n * title: \"Welcome to Plot!\",\n * links: [{\n * title: \"Get Started\",\n * type: ActivityLinkType.external,\n * url: \"https://plot.day/docs\"\n * }]\n * });\n * }\n * }\n * ```\n */\nexport abstract class Plot extends ITool {\n static readonly Options: {\n activity?: {\n /**\n * Capability to create Notes and modify tags.\n */\n access?: ActivityAccess;\n /**\n * Called when an activity created by this twist is updated.\n * This is often used to implement two-way sync with an external system.\n *\n * @param activity - The updated activity\n * @param changes - Optional changes object containing the previous version and tag modifications\n */\n updated?: (\n activity: Activity,\n changes: {\n previous: Activity;\n tagsAdded: Record<Tag, ActorId[]>;\n tagsRemoved: Record<Tag, ActorId[]>;\n }\n ) => Promise<void>;\n };\n note?: {\n /**\n * Respond to mentions in notes.\n *\n * When a note mentions this twist, the system will match the note\n * content against these intents and call the matching handler.\n *\n * @example\n * ```typescript\n * intents: [{\n * description: \"Schedule or reschedule calendar events\",\n * examples: [\"Schedule a meeting tomorrow at 2pm\", \"Move my 3pm meeting to 4pm\"],\n * handler: this.onSchedulingRequest\n * }, {\n * description: \"Find available meeting times\",\n * examples: [\"When am I free this week?\", \"Find time for a 1 hour meeting\"],\n * handler: this.onAvailabilityRequest\n * }]\n * ```\n */\n intents?: NoteIntentHandler[];\n };\n priority?: {\n access?: PriorityAccess;\n };\n contact?: {\n access?: ContactAccess;\n };\n };\n\n /**\n * Creates a new activity in the Plot system.\n *\n * The activity will be automatically assigned an ID and author information\n * based on the current execution context. All other fields from NewActivity\n * will be preserved in the created activity.\n *\n * @param activity - The activity data to create\n * @returns Promise resolving to the complete created activity\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract createActivity(\n activity: NewActivity | NewActivityWithNotes\n ): Promise<Activity>;\n\n /**\n * Creates multiple activities in a single batch operation.\n *\n * This method efficiently creates multiple activities at once, which is\n * more performant than calling createActivity() multiple times individually.\n * All activities are created with the same author and access control rules.\n *\n * @param activities - Array of activity data to create\n * @returns Promise resolving to array of created activities\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract createActivities(\n activities: (NewActivity | NewActivityWithNotes)[]\n ): Promise<Activity[]>;\n\n /**\n * Updates an existing activity in the Plot system.\n *\n * Only the fields provided in the update object will be modified - all other fields\n * remain unchanged. This enables partial updates without needing to fetch and resend\n * the entire activity object.\n *\n * For tags, provide a Record<number, boolean> where true adds a tag and false removes it.\n * Tags not included in the update remain unchanged.\n *\n * When updating the parent, the activity's path will be automatically recalculated to\n * maintain the correct hierarchical structure.\n *\n * When updating scheduling fields (start, end, recurrence*), the database will\n * automatically recalculate duration and range values to maintain consistency.\n *\n * @param activity - The activity update containing the ID and fields to change\n * @returns Promise that resolves when the update is complete\n *\n * @example\n * ```typescript\n * // Mark a task as complete\n * await this.plot.updateActivity({\n * id: \"task-123\",\n * doneAt: new Date()\n * });\n *\n * // Reschedule an event\n * await this.plot.updateActivity({\n * id: \"event-456\",\n * start: new Date(\"2024-03-15T10:00:00Z\"),\n * end: new Date(\"2024-03-15T11:00:00Z\")\n * });\n *\n * // Add and remove tags\n * await this.plot.updateActivity({\n * id: \"activity-789\",\n * tags: {\n * 1: true, // Add tag with ID 1\n * 2: false // Remove tag with ID 2\n * }\n * });\n *\n * // Update a recurring event exception\n * await this.plot.updateActivity({\n * id: \"exception-123\",\n * occurrence: new Date(\"2024-03-20T09:00:00Z\"),\n * title: \"Rescheduled meeting\"\n * });\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract updateActivity(activity: ActivityUpdate): Promise<void>;\n\n /**\n * Retrieves all notes within an activity.\n *\n * Notes are detailed entries within an activity, ordered by creation time.\n * Each note can contain markdown content, links, and other detailed information\n * related to the parent activity.\n *\n * @param activity - The activity whose notes to retrieve\n * @returns Promise resolving to array of notes in the activity\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract getNotes(activity: Activity): Promise<Note[]>;\n\n /**\n * Creates a new note in an activity.\n *\n * Notes provide detailed content within an activity, supporting markdown,\n * links, and other rich content. The note will be automatically assigned\n * an ID and author information based on the current execution context.\n *\n * @param note - The note data to create\n * @returns Promise resolving to the complete created note\n *\n * @example\n * ```typescript\n * // Create a note with content\n * await this.plot.createNote({\n * activity: { id: \"activity-123\" },\n * note: \"Discussion notes from the meeting...\",\n * noteType: \"markdown\"\n * });\n *\n * // Create a note with links\n * await this.plot.createNote({\n * activity: { id: \"activity-456\" },\n * note: \"Meeting recording available\",\n * links: [{\n * type: ActivityLinkType.external,\n * title: \"View Recording\",\n * url: \"https://example.com/recording\"\n * }]\n * });\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract createNote(note: NewNote): Promise<Note>;\n\n /**\n * Creates multiple notes in a single batch operation.\n *\n * This method efficiently creates multiple notes at once, which is\n * more performant than calling createNote() multiple times individually.\n * All notes are created with the same author and access control rules.\n *\n * @param notes - Array of note data to create\n * @returns Promise resolving to array of created notes\n *\n * @example\n * ```typescript\n * // Create multiple notes in one batch\n * await this.plot.createNotes([\n * {\n * activity: { id: \"activity-123\" },\n * note: \"First message in thread\"\n * },\n * {\n * activity: { id: \"activity-123\" },\n * note: \"Second message in thread\"\n * }\n * ]);\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract createNotes(notes: NewNote[]): Promise<Note[]>;\n\n /**\n * Updates an existing note in the Plot system.\n *\n * Only the fields provided in the update object will be modified - all other fields\n * remain unchanged. This enables partial updates without needing to fetch and resend\n * the entire note object.\n *\n * @param note - The note update containing the ID and fields to change\n * @returns Promise that resolves when the update is complete\n *\n * @example\n * ```typescript\n * // Update note content\n * await this.plot.updateNote({\n * id: \"note-123\",\n * note: \"Updated content with more details\"\n * });\n *\n * // Add tags to a note\n * await this.plot.updateNote({\n * id: \"note-456\",\n * twistTags: {\n * [Tag.Important]: true\n * }\n * });\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract updateNote(note: NoteUpdate): Promise<void>;\n\n /**\n * Finds an activity by its meta.source.\n *\n * This method enables lookup of activities that were created from external\n * systems, using the metadata to locate the corresponding Plot activity.\n *\n * @param source - The meta.source value to search for\n * @returns Promise resolving to the matching activity or null if not found\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract getActivityBySource(source: string): Promise<Activity | null>;\n\n /**\n * Creates a new priority in the Plot system.\n *\n * Priorities serve as organizational containers for activities and twists.\n * The created priority will be automatically assigned a unique ID.\n *\n * @param priority - The priority data to create\n * @returns Promise resolving to the complete created priority\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract createPriority(priority: NewPriority): Promise<Priority>;\n\n /**\n * Adds contacts to the Plot system.\n *\n * Contacts are used for associating people with activities, such as\n * event attendees or task assignees. Duplicate contacts (by email)\n * will be merged or updated as appropriate.\n * This method requires ContactAccess.Write permission.\n *\n * @param contacts - Array of contact information to add\n * @returns Promise resolving to array of created/updated actors\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract addContacts(contacts: Array<NewContact>): Promise<Actor[]>;\n\n /**\n * Retrieves actors by their IDs.\n *\n * Actors represent users, contacts, or twists in the Plot system.\n * This method requires ContactAccess.Read permission.\n *\n * @param ids - Array of actor IDs to retrieve\n * @returns Promise resolving to array of actors\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n abstract getActors(ids: ActorId[]): Promise<Actor[]>;\n}\n";
|
|
8
8
|
//# sourceMappingURL=plot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.js","sourceRoot":"","sources":["../../../src/llm-docs/tools/plot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe,
|
|
1
|
+
{"version":3,"file":"plot.js","sourceRoot":"","sources":["../../../src/llm-docs/tools/plot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe,07YAA07Y,CAAC"}
|
package/dist/plot.d.ts
CHANGED
|
@@ -202,7 +202,6 @@ export type ActivityMeta = {
|
|
|
202
202
|
* type: ActivityType.Action,
|
|
203
203
|
* title: "Review budget proposal",
|
|
204
204
|
* author: { id: "user-1", name: "John Doe", type: ActorType.User },
|
|
205
|
-
* end: null,
|
|
206
205
|
* priority: { id: "work", title: "Work" },
|
|
207
206
|
* // ... other fields
|
|
208
207
|
* };
|
|
@@ -217,17 +216,29 @@ export type ActivityMeta = {
|
|
|
217
216
|
* };
|
|
218
217
|
* ```
|
|
219
218
|
*/
|
|
220
|
-
export type
|
|
219
|
+
export type ActivityCommon = {
|
|
221
220
|
/** Unique identifier for the activity */
|
|
222
221
|
id: string;
|
|
223
|
-
/** The type of activity (Note, Task, or Event) */
|
|
224
|
-
type: ActivityType;
|
|
225
222
|
/** Information about who created the activity */
|
|
226
223
|
author: Actor;
|
|
224
|
+
/** Whether this activity is in draft state (not shown in do now view) */
|
|
225
|
+
draft: boolean;
|
|
226
|
+
/** Whether this activity is private (only visible to author) */
|
|
227
|
+
private: boolean;
|
|
228
|
+
/** Tags attached to this activity. Maps tag ID to array of actor IDs who added that tag. */
|
|
229
|
+
tags: Partial<Record<Tag, ActorId[]>> | null;
|
|
230
|
+
/** Array of actor IDs (users, contacts, or twists) mentioned in this activity via @-mentions */
|
|
231
|
+
mentions: ActorId[] | null;
|
|
232
|
+
};
|
|
233
|
+
export type Activity = ActivityCommon & {
|
|
227
234
|
/** The display title/summary of the activity */
|
|
228
235
|
title: string | null;
|
|
229
|
-
/**
|
|
230
|
-
|
|
236
|
+
/** The type of activity (Note, Task, or Event) */
|
|
237
|
+
type: ActivityType;
|
|
238
|
+
/** Who this activity note is assigned to */
|
|
239
|
+
assignee: Actor | null;
|
|
240
|
+
/** Timestamp when the activity was marked as complete. Null if not completed. */
|
|
241
|
+
doneAt: Date | null;
|
|
231
242
|
/**
|
|
232
243
|
* Start time of a scheduled activity. Notes are not typically scheduled unless they're about specific times.
|
|
233
244
|
* For recurring events, this represents the start of the first occurrence.
|
|
@@ -254,14 +265,6 @@ export type Activity = {
|
|
|
254
265
|
* Null for non-recurring activities or indefinite recurrence.
|
|
255
266
|
*/
|
|
256
267
|
recurrenceCount: number | null;
|
|
257
|
-
/** Timestamp when the activity was marked as complete. Null if not completed. */
|
|
258
|
-
doneAt: Date | null;
|
|
259
|
-
/** Reference to a parent activity for creating hierarchical relationships */
|
|
260
|
-
parent: Activity | null;
|
|
261
|
-
/** For nested activities in a thread, references the top-level activity of that thread */
|
|
262
|
-
threadRoot?: Activity;
|
|
263
|
-
/** Array of interactive links attached to the activity */
|
|
264
|
-
links: Array<ActivityLink> | null;
|
|
265
268
|
/** The priority context this activity belongs to */
|
|
266
269
|
priority: Priority;
|
|
267
270
|
/** Recurrence rule in RFC 5545 RRULE format (e.g., "FREQ=WEEKLY;BYDAY=MO,WE,FR") */
|
|
@@ -282,10 +285,12 @@ export type Activity = {
|
|
|
282
285
|
occurrence: Date | null;
|
|
283
286
|
/** Metadata about the activity, typically from an external system that created it */
|
|
284
287
|
meta: ActivityMeta | null;
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
288
|
+
};
|
|
289
|
+
export type ActivityWithNotes = Activity & {
|
|
290
|
+
notes: Note[];
|
|
291
|
+
};
|
|
292
|
+
export type NewActivityWithNotes = NewActivity & {
|
|
293
|
+
notes: Omit<NewNote, "activity">[];
|
|
289
294
|
};
|
|
290
295
|
/**
|
|
291
296
|
* Configuration for automatic priority selection based on activity similarity.
|
|
@@ -358,8 +363,49 @@ export type PickPriorityConfig = {
|
|
|
358
363
|
* };
|
|
359
364
|
* ```
|
|
360
365
|
*/
|
|
361
|
-
export type NewActivity = Pick<Activity, "type"> & Partial<Omit<Activity, "id" | "author" | "type" | "
|
|
362
|
-
|
|
366
|
+
export type NewActivity = Pick<Activity, "type"> & Partial<Omit<Activity, "id" | "author" | "type" | "priority" | "mentions">> & ({
|
|
367
|
+
/** Explicit priority (required when specified) - disables automatic priority matching */
|
|
368
|
+
priority: Pick<Priority, "id">;
|
|
369
|
+
} | {
|
|
370
|
+
/** Configuration for automatic priority selection based on similarity */
|
|
371
|
+
pickPriority?: PickPriorityConfig;
|
|
372
|
+
} | {});
|
|
373
|
+
export type ActivityUpdate = Pick<Activity, "id"> & Partial<Pick<Activity, "type" | "start" | "end" | "doneAt" | "title" | "draft" | "private" | "meta" | "recurrenceRule" | "recurrenceDates" | "recurrenceExdates" | "recurrenceUntil" | "recurrenceCount" | "occurrence">> & {
|
|
374
|
+
/**
|
|
375
|
+
* Full tags object from Activity. Maps tag ID to array of actor IDs who added that tag.
|
|
376
|
+
* Only allowed for activities created by the twist.
|
|
377
|
+
* Use twistTags instead for adding/removing the twist's tags on other activities.
|
|
378
|
+
*/
|
|
379
|
+
tags?: Partial<Record<Tag, ActorId[]>>;
|
|
380
|
+
/**
|
|
381
|
+
* Add or remove the twist's tags.
|
|
382
|
+
* Maps tag ID to boolean: true = add tag, false = remove tag.
|
|
383
|
+
* This is allowed on all activities the twist has access to.
|
|
384
|
+
*/
|
|
385
|
+
twistTags?: Partial<Record<Tag, boolean>>;
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* Represents a note within an activity.
|
|
389
|
+
*
|
|
390
|
+
* Notes contain the detailed content (note text, links) associated with an activity.
|
|
391
|
+
* They are always ordered by creation time within their parent activity.
|
|
392
|
+
*/
|
|
393
|
+
export type Note = Omit<ActivityCommon, "type"> & {
|
|
394
|
+
/** The parent activity this note belongs to */
|
|
395
|
+
activity: Activity;
|
|
396
|
+
/** Primary content for the note (markdown) */
|
|
397
|
+
note: string | null;
|
|
398
|
+
/** Array of interactive links attached to the note */
|
|
399
|
+
links: Array<ActivityLink> | null;
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* Type for creating new notes.
|
|
403
|
+
*
|
|
404
|
+
* Requires the activity reference, with all other fields optional.
|
|
405
|
+
*/
|
|
406
|
+
export type NewNote = Partial<Omit<Note, "id" | "author" | "activity">> & {
|
|
407
|
+
/** Reference to the parent activity (required) */
|
|
408
|
+
activity: Pick<Activity, "id">;
|
|
363
409
|
/**
|
|
364
410
|
* Format of the note content. Determines how the note is processed:
|
|
365
411
|
* - 'text': Plain text that will be converted to markdown (auto-links URLs, preserves line breaks)
|
|
@@ -367,15 +413,11 @@ export type NewActivity = Pick<Activity, "type"> & Partial<Omit<Activity, "id" |
|
|
|
367
413
|
* - 'html': HTML content that will be converted to markdown
|
|
368
414
|
*/
|
|
369
415
|
noteType?: NoteType;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
pickPriority?: PickPriorityConfig;
|
|
376
|
-
} | {});
|
|
377
|
-
export type ActivityUpdate = Pick<Activity, "id"> & Partial<Pick<Activity, "type" | "start" | "end" | "doneAt" | "note" | "title" | "meta" | "links" | "recurrenceRule" | "recurrenceDates" | "recurrenceExdates" | "recurrenceUntil" | "recurrenceCount" | "occurrence" | "mentions">> & {
|
|
378
|
-
parent?: Pick<Activity, "id"> | null;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Type for updating existing notes.
|
|
419
|
+
*/
|
|
420
|
+
export type NoteUpdate = Pick<Note, "id"> & Partial<Pick<Note, "draft" | "private" | "note" | "links" | "mentions">> & {
|
|
379
421
|
/**
|
|
380
422
|
* Format of the note content. Determines how the note is processed:
|
|
381
423
|
* - 'text': Plain text that will be converted to markdown (auto-links URLs, preserves line breaks)
|
|
@@ -384,15 +426,15 @@ export type ActivityUpdate = Pick<Activity, "id"> & Partial<Pick<Activity, "type
|
|
|
384
426
|
*/
|
|
385
427
|
noteType?: NoteType;
|
|
386
428
|
/**
|
|
387
|
-
* Full tags object from
|
|
388
|
-
* Only allowed for
|
|
389
|
-
* Use twistTags instead for adding/removing the twist's tags on other
|
|
429
|
+
* Full tags object from Note. Maps tag ID to array of actor IDs who added that tag.
|
|
430
|
+
* Only allowed for notes created by the twist.
|
|
431
|
+
* Use twistTags instead for adding/removing the twist's tags on other notes.
|
|
390
432
|
*/
|
|
391
433
|
tags?: Partial<Record<Tag, ActorId[]>>;
|
|
392
434
|
/**
|
|
393
435
|
* Add or remove the twist's tags.
|
|
394
436
|
* Maps tag ID to boolean: true = add tag, false = remove tag.
|
|
395
|
-
* This is allowed on all
|
|
437
|
+
* This is allowed on all notes the twist has access to.
|
|
396
438
|
*/
|
|
397
439
|
twistTags?: Partial<Record<Tag, boolean>>;
|
|
398
440
|
};
|
package/dist/plot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.d.ts","sourceRoot":"","sources":["../src/plot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG;IAAE,Q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AAC;CACjB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC"}
|
package/dist/plot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.js","sourceRoot":"","sources":["../src/plot.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAkC5B;;;;;GAKG;AACH,MAAM,CAAN,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,qEAAqE;IACrE,+CAAI,CAAA;IACJ,+CAA+C;IAC/C,mDAAM,CAAA;IACN,8DAA8D;IAC9D,iDAAK,CAAA;AACP,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,8CAA8C;IAC9C,yCAAqB,CAAA;IACrB,mDAAmD;IACnD,iCAAa,CAAA;IACb,6DAA6D;IAC7D,yCAAqB,CAAA;IACrB,+DAA+D;IAC/D,iDAA6B,CAAA;AAC/B,CAAC,EATW,gBAAgB,KAAhB,gBAAgB,QAS3B;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC9B,kBAAkB;IAClB,iDAAyB,CAAA;IACzB,WAAW;IACX,qCAAa,CAAA;IACb,sBAAsB;IACtB,yDAAiC,CAAA;IACjC,kBAAkB;IAClB,uCAAe,CAAA;IACf,6CAA6C;IAC7C,uCAAe,CAAA;AACjB,CAAC,EAXW,oBAAoB,KAApB,oBAAoB,QAW/B;
|
|
1
|
+
{"version":3,"file":"plot.js","sourceRoot":"","sources":["../src/plot.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAkC5B;;;;;GAKG;AACH,MAAM,CAAN,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,qEAAqE;IACrE,+CAAI,CAAA;IACJ,+CAA+C;IAC/C,mDAAM,CAAA;IACN,8DAA8D;IAC9D,iDAAK,CAAA;AACP,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,8CAA8C;IAC9C,yCAAqB,CAAA;IACrB,mDAAmD;IACnD,iCAAa,CAAA;IACb,6DAA6D;IAC7D,yCAAqB,CAAA;IACrB,+DAA+D;IAC/D,iDAA6B,CAAA;AAC/B,CAAC,EATW,gBAAgB,KAAhB,gBAAgB,QAS3B;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC9B,kBAAkB;IAClB,iDAAyB,CAAA;IACzB,WAAW;IACX,qCAAa,CAAA;IACb,sBAAsB;IACtB,yDAAiC,CAAA;IACjC,kBAAkB;IAClB,uCAAe,CAAA;IACf,6CAA6C;IAC7C,uCAAe,CAAA;AACjB,CAAC,EAXW,oBAAoB,KAApB,oBAAoB,QAW/B;AAibD;;;;;GAKG;AACH,MAAM,CAAN,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,wCAAwC;IACxC,yCAAI,CAAA;IACJ,8CAA8C;IAC9C,+CAAO,CAAA;IACP,6CAA6C;IAC7C,2CAAK,CAAA;AACP,CAAC,EAPW,SAAS,KAAT,SAAS,QAOpB"}
|
package/dist/tools/plot.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { type Activity, type
|
|
1
|
+
import { type Activity, type ActivityUpdate, type Actor, type ActorId, ITool, type NewActivity, type NewActivityWithNotes, type NewContact, type NewNote, type NewPriority, type Note, type NoteUpdate, type Priority, type Tag } from "..";
|
|
2
2
|
export declare enum ActivityAccess {
|
|
3
3
|
/**
|
|
4
|
-
* Create new
|
|
5
|
-
* Add/remove tags on Activity where the twist was mentioned.
|
|
4
|
+
* Create new Note on an Activity where the twist was mentioned.
|
|
5
|
+
* Add/remove tags on Activity or Note where the twist was mentioned.
|
|
6
6
|
*/
|
|
7
7
|
Respond = 0,
|
|
8
8
|
/**
|
|
9
|
-
* Create new
|
|
10
|
-
* Create new
|
|
9
|
+
* Create new Activity.
|
|
10
|
+
* Create new Note in an Activity the twist created.
|
|
11
11
|
* All Respond permissions.
|
|
12
12
|
*/
|
|
13
13
|
Create = 1
|
|
@@ -35,13 +35,13 @@ export declare enum ContactAccess {
|
|
|
35
35
|
* Intent handler for activity mentions.
|
|
36
36
|
* Defines how the twist should respond when mentioned in an activity.
|
|
37
37
|
*/
|
|
38
|
-
export type
|
|
38
|
+
export type NoteIntentHandler = {
|
|
39
39
|
/** Human-readable description of what this intent handles */
|
|
40
40
|
description: string;
|
|
41
41
|
/** Example phrases or activity content that would match this intent */
|
|
42
42
|
examples: string[];
|
|
43
43
|
/** The function to call when this intent is matched */
|
|
44
|
-
handler: (
|
|
44
|
+
handler: (note: Note) => Promise<void>;
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
* Built-in tool for interacting with the core Plot data layer.
|
|
@@ -77,26 +77,30 @@ export type ActivityIntentHandler = {
|
|
|
77
77
|
*/
|
|
78
78
|
export declare abstract class Plot extends ITool {
|
|
79
79
|
static readonly Options: {
|
|
80
|
-
/**
|
|
81
|
-
* Activity event callbacks.
|
|
82
|
-
*/
|
|
83
80
|
activity?: {
|
|
81
|
+
/**
|
|
82
|
+
* Capability to create Notes and modify tags.
|
|
83
|
+
*/
|
|
84
84
|
access?: ActivityAccess;
|
|
85
85
|
/**
|
|
86
|
-
* Called when an activity is updated.
|
|
86
|
+
* Called when an activity created by this twist is updated.
|
|
87
|
+
* This is often used to implement two-way sync with an external system.
|
|
87
88
|
*
|
|
88
89
|
* @param activity - The updated activity
|
|
89
90
|
* @param changes - Optional changes object containing the previous version and tag modifications
|
|
90
91
|
*/
|
|
91
|
-
updated?: (activity: Activity, changes
|
|
92
|
+
updated?: (activity: Activity, changes: {
|
|
92
93
|
previous: Activity;
|
|
93
94
|
tagsAdded: Record<Tag, ActorId[]>;
|
|
94
95
|
tagsRemoved: Record<Tag, ActorId[]>;
|
|
95
96
|
}) => Promise<void>;
|
|
97
|
+
};
|
|
98
|
+
note?: {
|
|
96
99
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
+
* Respond to mentions in notes.
|
|
101
|
+
*
|
|
102
|
+
* When a note mentions this twist, the system will match the note
|
|
103
|
+
* content against these intents and call the matching handler.
|
|
100
104
|
*
|
|
101
105
|
* @example
|
|
102
106
|
* ```typescript
|
|
@@ -111,7 +115,7 @@ export declare abstract class Plot extends ITool {
|
|
|
111
115
|
* }]
|
|
112
116
|
* ```
|
|
113
117
|
*/
|
|
114
|
-
intents?:
|
|
118
|
+
intents?: NoteIntentHandler[];
|
|
115
119
|
};
|
|
116
120
|
priority?: {
|
|
117
121
|
access?: PriorityAccess;
|
|
@@ -130,7 +134,7 @@ export declare abstract class Plot extends ITool {
|
|
|
130
134
|
* @param activity - The activity data to create
|
|
131
135
|
* @returns Promise resolving to the complete created activity
|
|
132
136
|
*/
|
|
133
|
-
abstract createActivity(activity: NewActivity): Promise<Activity>;
|
|
137
|
+
abstract createActivity(activity: NewActivity | NewActivityWithNotes): Promise<Activity>;
|
|
134
138
|
/**
|
|
135
139
|
* Creates multiple activities in a single batch operation.
|
|
136
140
|
*
|
|
@@ -141,7 +145,7 @@ export declare abstract class Plot extends ITool {
|
|
|
141
145
|
* @param activities - Array of activity data to create
|
|
142
146
|
* @returns Promise resolving to array of created activities
|
|
143
147
|
*/
|
|
144
|
-
abstract createActivities(activities: NewActivity[]): Promise<Activity[]>;
|
|
148
|
+
abstract createActivities(activities: (NewActivity | NewActivityWithNotes)[]): Promise<Activity[]>;
|
|
145
149
|
/**
|
|
146
150
|
* Updates an existing activity in the Plot system.
|
|
147
151
|
*
|
|
@@ -195,27 +199,112 @@ export declare abstract class Plot extends ITool {
|
|
|
195
199
|
*/
|
|
196
200
|
abstract updateActivity(activity: ActivityUpdate): Promise<void>;
|
|
197
201
|
/**
|
|
198
|
-
* Retrieves all
|
|
202
|
+
* Retrieves all notes within an activity.
|
|
203
|
+
*
|
|
204
|
+
* Notes are detailed entries within an activity, ordered by creation time.
|
|
205
|
+
* Each note can contain markdown content, links, and other detailed information
|
|
206
|
+
* related to the parent activity.
|
|
207
|
+
*
|
|
208
|
+
* @param activity - The activity whose notes to retrieve
|
|
209
|
+
* @returns Promise resolving to array of notes in the activity
|
|
210
|
+
*/
|
|
211
|
+
abstract getNotes(activity: Activity): Promise<Note[]>;
|
|
212
|
+
/**
|
|
213
|
+
* Creates a new note in an activity.
|
|
214
|
+
*
|
|
215
|
+
* Notes provide detailed content within an activity, supporting markdown,
|
|
216
|
+
* links, and other rich content. The note will be automatically assigned
|
|
217
|
+
* an ID and author information based on the current execution context.
|
|
218
|
+
*
|
|
219
|
+
* @param note - The note data to create
|
|
220
|
+
* @returns Promise resolving to the complete created note
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* ```typescript
|
|
224
|
+
* // Create a note with content
|
|
225
|
+
* await this.plot.createNote({
|
|
226
|
+
* activity: { id: "activity-123" },
|
|
227
|
+
* note: "Discussion notes from the meeting...",
|
|
228
|
+
* noteType: "markdown"
|
|
229
|
+
* });
|
|
230
|
+
*
|
|
231
|
+
* // Create a note with links
|
|
232
|
+
* await this.plot.createNote({
|
|
233
|
+
* activity: { id: "activity-456" },
|
|
234
|
+
* note: "Meeting recording available",
|
|
235
|
+
* links: [{
|
|
236
|
+
* type: ActivityLinkType.external,
|
|
237
|
+
* title: "View Recording",
|
|
238
|
+
* url: "https://example.com/recording"
|
|
239
|
+
* }]
|
|
240
|
+
* });
|
|
241
|
+
* ```
|
|
242
|
+
*/
|
|
243
|
+
abstract createNote(note: NewNote): Promise<Note>;
|
|
244
|
+
/**
|
|
245
|
+
* Creates multiple notes in a single batch operation.
|
|
246
|
+
*
|
|
247
|
+
* This method efficiently creates multiple notes at once, which is
|
|
248
|
+
* more performant than calling createNote() multiple times individually.
|
|
249
|
+
* All notes are created with the same author and access control rules.
|
|
199
250
|
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
* finding conversation histories or related task sequences.
|
|
251
|
+
* @param notes - Array of note data to create
|
|
252
|
+
* @returns Promise resolving to array of created notes
|
|
203
253
|
*
|
|
204
|
-
* @
|
|
205
|
-
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```typescript
|
|
256
|
+
* // Create multiple notes in one batch
|
|
257
|
+
* await this.plot.createNotes([
|
|
258
|
+
* {
|
|
259
|
+
* activity: { id: "activity-123" },
|
|
260
|
+
* note: "First message in thread"
|
|
261
|
+
* },
|
|
262
|
+
* {
|
|
263
|
+
* activity: { id: "activity-123" },
|
|
264
|
+
* note: "Second message in thread"
|
|
265
|
+
* }
|
|
266
|
+
* ]);
|
|
267
|
+
* ```
|
|
268
|
+
*/
|
|
269
|
+
abstract createNotes(notes: NewNote[]): Promise<Note[]>;
|
|
270
|
+
/**
|
|
271
|
+
* Updates an existing note in the Plot system.
|
|
272
|
+
*
|
|
273
|
+
* Only the fields provided in the update object will be modified - all other fields
|
|
274
|
+
* remain unchanged. This enables partial updates without needing to fetch and resend
|
|
275
|
+
* the entire note object.
|
|
276
|
+
*
|
|
277
|
+
* @param note - The note update containing the ID and fields to change
|
|
278
|
+
* @returns Promise that resolves when the update is complete
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* ```typescript
|
|
282
|
+
* // Update note content
|
|
283
|
+
* await this.plot.updateNote({
|
|
284
|
+
* id: "note-123",
|
|
285
|
+
* note: "Updated content with more details"
|
|
286
|
+
* });
|
|
287
|
+
*
|
|
288
|
+
* // Add tags to a note
|
|
289
|
+
* await this.plot.updateNote({
|
|
290
|
+
* id: "note-456",
|
|
291
|
+
* twistTags: {
|
|
292
|
+
* [Tag.Important]: true
|
|
293
|
+
* }
|
|
294
|
+
* });
|
|
295
|
+
* ```
|
|
206
296
|
*/
|
|
207
|
-
abstract
|
|
297
|
+
abstract updateNote(note: NoteUpdate): Promise<void>;
|
|
208
298
|
/**
|
|
209
|
-
* Finds an activity by its
|
|
299
|
+
* Finds an activity by its meta.source.
|
|
210
300
|
*
|
|
211
301
|
* This method enables lookup of activities that were created from external
|
|
212
302
|
* systems, using the metadata to locate the corresponding Plot activity.
|
|
213
|
-
* Useful for preventing duplicate imports and maintaining sync state.
|
|
214
303
|
*
|
|
215
|
-
* @param
|
|
304
|
+
* @param source - The meta.source value to search for
|
|
216
305
|
* @returns Promise resolving to the matching activity or null if not found
|
|
217
306
|
*/
|
|
218
|
-
abstract
|
|
307
|
+
abstract getActivityBySource(source: string): Promise<Activity | null>;
|
|
219
308
|
/**
|
|
220
309
|
* Creates a new priority in the Plot system.
|
|
221
310
|
*
|
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,
|
|
1
|
+
{"version":3,"file":"plot.d.ts","sourceRoot":"","sources":["../../src/tools/plot.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,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,GAAG,EACT,MAAM,IAAI,CAAC;AAEZ,oBAAY,cAAc;IACxB;;;OAGG;IACH,OAAO,IAAA;IACP;;;;OAIG;IACH,MAAM,IAAA;CACP;AAED,oBAAY,cAAc;IACxB;;;OAGG;IACH,MAAM,IAAA;IACN;;;;OAIG;IACH,IAAI,IAAA;CACL;AAED,oBAAY,aAAa;IACvB,8BAA8B;IAC9B,IAAI,IAAA;IACJ,kCAAkC;I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import { ITool, } from "..";
|
|
|
2
2
|
export var ActivityAccess;
|
|
3
3
|
(function (ActivityAccess) {
|
|
4
4
|
/**
|
|
5
|
-
* Create new
|
|
6
|
-
* Add/remove tags on Activity where the twist was mentioned.
|
|
5
|
+
* Create new Note on an Activity where the twist was mentioned.
|
|
6
|
+
* Add/remove tags on Activity or Note where the twist was mentioned.
|
|
7
7
|
*/
|
|
8
8
|
ActivityAccess[ActivityAccess["Respond"] = 0] = "Respond";
|
|
9
9
|
/**
|
|
10
|
-
* Create new
|
|
11
|
-
* Create new
|
|
10
|
+
* Create new Activity.
|
|
11
|
+
* Create new Note in an Activity the twist created.
|
|
12
12
|
* All Respond permissions.
|
|
13
13
|
*/
|
|
14
14
|
ActivityAccess[ActivityAccess["Create"] = 1] = "Create";
|
package/dist/tools/plot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.js","sourceRoot":"","sources":["../../src/tools/plot.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"plot.js","sourceRoot":"","sources":["../../src/tools/plot.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,GAUN,MAAM,IAAI,CAAC;AAEZ,MAAM,CAAN,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB;;;OAGG;IACH,yDAAO,CAAA;IACP;;;;OAIG;IACH,uDAAM,CAAA;AACR,CAAC,EAZW,cAAc,KAAd,cAAc,QAYzB;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,aAKX;AALD,WAAY,aAAa;IACvB,8BAA8B;IAC9B,iDAAI,CAAA;IACJ,kCAAkC;IAClC,mDAAK,CAAA;AACP,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAeD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,OAAgB,IAAK,SAAQ,KAAK;IACtC,MAAM,CAAU,OAAO,CAkDrB;CAgPH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/utils/hash.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,UAOpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash.js","sourceRoot":"","sources":["../../src/utils/hash.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,IAAI,IAAI,GAAG,UAAU,CAAC;IACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;QACpC,IAAI,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC1B,IAAI,GAAG,CAAC,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plotday/twister",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Plot Twist Creator - Build intelligent Twists that organize and prioritize your activities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -65,6 +65,10 @@
|
|
|
65
65
|
"types": "./dist/utils/types.d.ts",
|
|
66
66
|
"default": "./dist/utils/types.js"
|
|
67
67
|
},
|
|
68
|
+
"./utils/hash": {
|
|
69
|
+
"types": "./dist/utils/hash.d.ts",
|
|
70
|
+
"default": "./dist/utils/hash.js"
|
|
71
|
+
},
|
|
68
72
|
"./common/calendar": {
|
|
69
73
|
"types": "./dist/common/calendar.d.ts",
|
|
70
74
|
"default": "./dist/common/calendar.js"
|