@plotday/twister 0.60.0 → 0.62.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 +58 -1
- package/dist/connector.d.ts.map +1 -1
- package/dist/connector.js +35 -0
- 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 +89 -36
- package/dist/docs/classes/index.FileNotFoundError.html +1 -1
- package/dist/docs/classes/index.Files.html +1 -1
- 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 +33 -7
- 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 +1 -1
- package/dist/docs/classes/tools_network.Network.html +1 -1
- package/dist/docs/classes/tools_plot.Plot.html +1 -1
- package/dist/docs/classes/tools_store.Store.html +1 -1
- package/dist/docs/classes/tools_tasks.Tasks.html +58 -2
- package/dist/docs/classes/tools_twists.Twists.html +1 -1
- package/dist/docs/classes/twist.Twist.html +37 -11
- package/dist/docs/documents/Built-in_Tools.html +17 -1
- package/dist/docs/documents/Runtime_Environment.html +14 -4
- package/dist/docs/enums/plot.ActorType.html +4 -4
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/media/AGENTS.md +48 -2
- package/dist/docs/modules/index.html +1 -1
- package/dist/docs/modules/plot.html +1 -1
- package/dist/docs/types/index.CreateLinkDraft.html +9 -9
- package/dist/docs/types/index.NoteWriteBackResult.html +21 -2
- package/dist/docs/types/index.OptionalScopeGroup.html +6 -6
- package/dist/docs/types/index.ResolvedRecipient.html +5 -5
- package/dist/docs/types/index.ScopeConfig.html +2 -2
- package/dist/docs/types/plot.Actor.html +5 -5
- package/dist/docs/types/plot.AutoThreadConfig.html +9 -0
- package/dist/docs/types/plot.AutoThreadMode.html +14 -0
- package/dist/docs/types/plot.Contact.html +4 -4
- package/dist/docs/types/plot.ContentType.html +1 -1
- package/dist/docs/types/plot.DeliveryError.html +17 -0
- package/dist/docs/types/plot.Link.html +17 -17
- package/dist/docs/types/plot.LinkUpdate.html +1 -1
- 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 +12 -2
- package/dist/docs/types/plot.NewLinkWithNotes.html +11 -3
- package/dist/docs/types/plot.NewNote.html +1 -1
- package/dist/docs/types/plot.Note.html +2 -5
- package/dist/docs/types/plot.NoteUpdate.html +1 -1
- package/dist/docs/types/plot.PlanOperation.html +1 -1
- 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/tasks.d.ts +1 -1
- package/dist/llm-docs/tools/tasks.d.ts.map +1 -1
- package/dist/llm-docs/tools/tasks.js +1 -1
- package/dist/llm-docs/tools/tasks.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 +77 -0
- package/dist/plot.d.ts.map +1 -1
- package/dist/plot.js.map +1 -1
- package/dist/tool.d.ts +41 -0
- package/dist/tool.d.ts.map +1 -1
- package/dist/tool.js +42 -0
- package/dist/tool.js.map +1 -1
- package/dist/tools/tasks.d.ts +92 -0
- package/dist/tools/tasks.d.ts.map +1 -1
- package/dist/tools/tasks.js.map +1 -1
- package/dist/twist.d.ts +41 -0
- package/dist/twist.d.ts.map +1 -1
- package/dist/twist.js +42 -0
- package/dist/twist.js.map +1 -1
- package/package.json +1 -1
- package/src/connector.ts +61 -1
- package/src/llm-docs/connector.ts +1 -1
- package/src/llm-docs/plot.ts +1 -1
- package/src/llm-docs/tool.ts +1 -1
- package/src/llm-docs/tools/tasks.ts +1 -1
- package/src/llm-docs/twist.ts +1 -1
- package/src/plot.ts +80 -0
- package/src/tool.ts +53 -0
- package/src/tools/tasks.ts +101 -0
- package/src/twist.ts +53 -0
package/dist/connector.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Actor, type ActorId, type Contact, type Link, type NewLinkWithNotes, type Note, type Thread, type Uuid } from "./plot";
|
|
1
|
+
import { type Actor, type ActorId, type Contact, type DeliveryError, type Link, type NewLinkWithNotes, type Note, type Thread, type Uuid } from "./plot";
|
|
2
2
|
import type { ScheduleContactStatus } from "./schedule";
|
|
3
3
|
import { type AuthProvider, type AuthToken, type Authorization, type Channel, type LinkTypeConfig, type SyncContext } from "./tools/integrations";
|
|
4
4
|
import { Twist } from "./twist";
|
|
@@ -79,6 +79,28 @@ export type NoteWriteBackResult = {
|
|
|
79
79
|
* `NewNote.content` for this note on re-ingest.
|
|
80
80
|
*/
|
|
81
81
|
externalContent?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Reports that the outbound send / write-back for this note FAILED and
|
|
84
|
+
* could not be recovered (after the connector's own retries). The runtime
|
|
85
|
+
* records it on the note — surfacing a "Failed to send" affordance (Retry /
|
|
86
|
+
* Discard) to the user — and marks the thread unread.
|
|
87
|
+
*
|
|
88
|
+
* - object → record the failure.
|
|
89
|
+
* - `null` → clear a previously-recorded failure (e.g. a successful retry).
|
|
90
|
+
* - omitted (`undefined`) → leave any existing delivery state untouched.
|
|
91
|
+
*
|
|
92
|
+
* A successful write-back (any result without a `deliveryError`) also clears
|
|
93
|
+
* a previously-recorded failure, so connectors usually only need to SET this
|
|
94
|
+
* on failure.
|
|
95
|
+
*
|
|
96
|
+
* Prefer RETURNING this over throwing for expected, user-visible failures
|
|
97
|
+
* (rejected recipient, message too large, quota exhausted): a thrown error
|
|
98
|
+
* pages error tracking, whereas a returned `deliveryError` does not. Reserve
|
|
99
|
+
* throwing for genuinely unexpected errors. Connectors that simply throw on a
|
|
100
|
+
* failed write-back still get a generic "Failed to send" surfaced by the
|
|
101
|
+
* runtime, just without a specific reason.
|
|
102
|
+
*/
|
|
103
|
+
deliveryError?: DeliveryError | null;
|
|
82
104
|
};
|
|
83
105
|
/**
|
|
84
106
|
* A Plot contact pre-resolved to its platform account ID, ready for use
|
|
@@ -315,6 +337,27 @@ export declare abstract class Connector<TSelf> extends Twist<TSelf> {
|
|
|
315
337
|
* toggle always wins, and existing connections keep their stored preference.
|
|
316
338
|
*/
|
|
317
339
|
readonly autoEnableNewChannelsByDefault?: boolean;
|
|
340
|
+
/**
|
|
341
|
+
* Whether this connector supports the platform's sequential auto-threading —
|
|
342
|
+
* folding a conversation that arrives as a run of separate top-level messages
|
|
343
|
+
* into a single thread. Set `true` for conversational connectors (chat,
|
|
344
|
+
* messaging) that mark eligible links with {@link NewLink.autoThread}. The UI
|
|
345
|
+
* shows a per-connection "Group related messages into conversations" toggle
|
|
346
|
+
* only for connectors that declare this.
|
|
347
|
+
*
|
|
348
|
+
* Leave undefined/false for connectors whose items are not conversational
|
|
349
|
+
* (calendars, issue trackers, file storage) — marking a link does nothing
|
|
350
|
+
* unless the connection both declares support and the user opted in.
|
|
351
|
+
*/
|
|
352
|
+
readonly autoThreading?: boolean;
|
|
353
|
+
/**
|
|
354
|
+
* Whether the per-connection auto-threading preference starts ON for newly
|
|
355
|
+
* added connections of this connector. Defaults to `false` (opt-in) — the
|
|
356
|
+
* least-surprise default, since a wrong fold is irreversible. Only meaningful
|
|
357
|
+
* when {@link autoThreading} is `true`. The user's explicit toggle always
|
|
358
|
+
* wins, and existing connections keep their stored preference.
|
|
359
|
+
*/
|
|
360
|
+
readonly autoThreadingByDefault?: boolean;
|
|
318
361
|
/**
|
|
319
362
|
* Registry of link types this connector creates (e.g., issue, event, message).
|
|
320
363
|
* Used for display in the UI (icons, labels, statuses).
|
|
@@ -330,6 +373,20 @@ export declare abstract class Connector<TSelf> extends Twist<TSelf> {
|
|
|
330
373
|
* reactions (calendar, file storage, issue trackers without reactions).
|
|
331
374
|
*/
|
|
332
375
|
readonly reactionCapabilities?: ReactionCapabilities;
|
|
376
|
+
/**
|
|
377
|
+
* When true, this connector's effective link types are computed dynamically
|
|
378
|
+
* from its enabled channels' per-channel link types (each channel carries the
|
|
379
|
+
* link types for whatever product/resource it represents), rather than the
|
|
380
|
+
* static union of all declared providers' link types. Lets one connection
|
|
381
|
+
* surface different link types depending on what the user has enabled — e.g.
|
|
382
|
+
* a combined Google connection shows calendar/event link types (and thus the
|
|
383
|
+
* agenda) only when a calendar channel is enabled.
|
|
384
|
+
*
|
|
385
|
+
* Defaults to false (static link types — the behavior for every connector
|
|
386
|
+
* that doesn't set this). Requires the connector to attach per-channel
|
|
387
|
+
* `linkTypes` on the channels returned by `getChannels`.
|
|
388
|
+
*/
|
|
389
|
+
readonly dynamicLinkTypes?: boolean;
|
|
333
390
|
/**
|
|
334
391
|
* When true, this connector is mentioned by default on replies to threads it created.
|
|
335
392
|
* When false (default), this connector cannot be mentioned at all.
|
package/dist/connector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,gBAAgB,EAAE,KAAK,IAAI,EAAE,KAAK,M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AAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAM7G;;;;;;;;;;;;OAYG;IAEH,QAAQ,CAAC,OAAO,EAAE;QAAE,IAAI,CAAC,EAAE,aAAa,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAG1E;AAED,2CAA2C;AAC3C,OAAO,EAAE,SAAS,IAAI,MAAM,EAAE,CAAC"}
|
package/dist/connector.js
CHANGED
|
@@ -124,6 +124,27 @@ export class Connector extends Twist {
|
|
|
124
124
|
* toggle always wins, and existing connections keep their stored preference.
|
|
125
125
|
*/
|
|
126
126
|
autoEnableNewChannelsByDefault;
|
|
127
|
+
/**
|
|
128
|
+
* Whether this connector supports the platform's sequential auto-threading —
|
|
129
|
+
* folding a conversation that arrives as a run of separate top-level messages
|
|
130
|
+
* into a single thread. Set `true` for conversational connectors (chat,
|
|
131
|
+
* messaging) that mark eligible links with {@link NewLink.autoThread}. The UI
|
|
132
|
+
* shows a per-connection "Group related messages into conversations" toggle
|
|
133
|
+
* only for connectors that declare this.
|
|
134
|
+
*
|
|
135
|
+
* Leave undefined/false for connectors whose items are not conversational
|
|
136
|
+
* (calendars, issue trackers, file storage) — marking a link does nothing
|
|
137
|
+
* unless the connection both declares support and the user opted in.
|
|
138
|
+
*/
|
|
139
|
+
autoThreading;
|
|
140
|
+
/**
|
|
141
|
+
* Whether the per-connection auto-threading preference starts ON for newly
|
|
142
|
+
* added connections of this connector. Defaults to `false` (opt-in) — the
|
|
143
|
+
* least-surprise default, since a wrong fold is irreversible. Only meaningful
|
|
144
|
+
* when {@link autoThreading} is `true`. The user's explicit toggle always
|
|
145
|
+
* wins, and existing connections keep their stored preference.
|
|
146
|
+
*/
|
|
147
|
+
autoThreadingByDefault;
|
|
127
148
|
/**
|
|
128
149
|
* Registry of link types this connector creates (e.g., issue, event, message).
|
|
129
150
|
* Used for display in the UI (icons, labels, statuses).
|
|
@@ -139,6 +160,20 @@ export class Connector extends Twist {
|
|
|
139
160
|
* reactions (calendar, file storage, issue trackers without reactions).
|
|
140
161
|
*/
|
|
141
162
|
reactionCapabilities;
|
|
163
|
+
/**
|
|
164
|
+
* When true, this connector's effective link types are computed dynamically
|
|
165
|
+
* from its enabled channels' per-channel link types (each channel carries the
|
|
166
|
+
* link types for whatever product/resource it represents), rather than the
|
|
167
|
+
* static union of all declared providers' link types. Lets one connection
|
|
168
|
+
* surface different link types depending on what the user has enabled — e.g.
|
|
169
|
+
* a combined Google connection shows calendar/event link types (and thus the
|
|
170
|
+
* agenda) only when a calendar channel is enabled.
|
|
171
|
+
*
|
|
172
|
+
* Defaults to false (static link types — the behavior for every connector
|
|
173
|
+
* that doesn't set this). Requires the connector to attach per-channel
|
|
174
|
+
* `linkTypes` on the channels returned by `getChannels`.
|
|
175
|
+
*/
|
|
176
|
+
dynamicLinkTypes;
|
|
142
177
|
/**
|
|
143
178
|
* When true, this connector is mentioned by default on replies to threads it created.
|
|
144
179
|
* When false (default), this connector cannot be mentioned at all.
|
package/dist/connector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAoNhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,OAAgB,SAAiB,SAAQ,KAAY;IACzD;;;OAGG;IACH,MAAM,CAAU,WAAW,GAAG,IAAI,CAAC;IAEnC,+DAA+D;IAE/D,4DAA4D;IACnD,QAAQ,CAAgB;IAEjC;4EACwE;IAC/D,MAAM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chyData = "eJyVlLFOwzAQht/l5qvx1WmcZKuQkLoAEmyoQiE1ENW1q9gIJNR3R05K5TLUZsmQfPd/9uXsbxis9Q6aJypKJFojDOpVq8731jhovoEoPE27U9DA42fvPCBse7OBhuYVwsegoYFOt84pd+UDwEaMvfudBpw+QQPebWahbja9QOjee70ZlAlysZDrAwIVZWRbPVqrL9qs1Wyk/iUralxIiSWXWHGBNZdInJdIXFZIcy6Q5oKQJAmkigqkStZItRDTGuu4IzlLzFjhAWEh5d9Wu1S0ex477qaWu7Sk5LFkuUoL2p4tV+ngioso+LrV+qXtthkb6H5RdipK2+qzbayMV29DO81sUthHNItL09owJpH3VvlPO2zTSjOB7FiQI5JVJLrX9vKxGy17bT0LaEb+/Ox3PXg7qLTABYyNcI5CnF0drcuZBh8wNsIZCrGIx+DaGqM6b4dLmt5s1Bc7oRkSSXGrbnqtLu5jEoxYRnhFRTzIu3afzg5UTrSML6qHnc+IDlRGdC3iltztkydvSj+CKcHh8AM6CB3+"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.navigationData = "
|
|
1
|
+
window.navigationData = "eJytnG1z2zYSx79Kxn2bu6Rpm0vzTlXsRDeOk5Hk5m46GQ1MwRYaklBJ0HJ60+9+A4CkAGIXu0o9fmf88dvF89NSv/3vzMgHc/b67I0uukrWpj17elbsVLltZH32+rcxffXfq/lmtV7O1udvF+ers6dne2F2Z6/PtkPGZxPJP3emKs+enn1R9fbs9asfXr16+fzVX09H4vvry/Vic706X25m1+t3EHEigYmfA+bbTm0lVoS30hhV3z1ZGdEYuYUM9pJNL6GKMNeNfDLXdSH3ruISnhVsBgFF+6VTpfmHqp+stS5B3KDYOAWHt7UFnuu6loXRDQq1ss1RRpb7cvFkKW9lI+tCguW+XGxGAUVbdrVRlXxyXt+rRteWADF72SaQ0R3ivd52JdojVL2VD0dblRc/c/+O2S9gwLwUbYvixwo9mih8ht7EKIiNff8irJ4Pe6N03WKMPjlHuFC+CsD8LpHKfaXNhe7q7XnT4KVJh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