@plotday/twister 0.59.0 → 0.61.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 +52 -3
- package/dist/connector.d.ts.map +1 -1
- package/dist/connector.js +29 -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 +73 -35
- 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 +23 -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 +32 -2
- package/dist/docs/classes/tools_twists.Twists.html +1 -1
- package/dist/docs/classes/twist.Twist.html +27 -11
- package/dist/docs/documents/Built-in_Tools.html +15 -1
- package/dist/docs/documents/Runtime_Environment.html +10 -2
- package/dist/docs/enums/plot.ActorType.html +4 -4
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/media/AGENTS.md +44 -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 -4
- 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 +5 -5
- package/dist/docs/types/plot.NoteUpdate.html +1 -1
- package/dist/docs/types/plot.PlanOperation.html +1 -1
- package/dist/facets.d.ts +17 -1
- package/dist/facets.d.ts.map +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/facets.d.ts +1 -1
- package/dist/llm-docs/facets.d.ts.map +1 -1
- package/dist/llm-docs/facets.js +1 -1
- package/dist/llm-docs/facets.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 +84 -1
- package/dist/plot.d.ts.map +1 -1
- package/dist/plot.js.map +1 -1
- package/dist/tool.d.ts +25 -0
- package/dist/tool.d.ts.map +1 -1
- package/dist/tool.js +27 -0
- package/dist/tool.js.map +1 -1
- package/dist/tools/tasks.d.ts +46 -0
- package/dist/tools/tasks.d.ts.map +1 -1
- package/dist/tools/tasks.js.map +1 -1
- package/dist/twist.d.ts +25 -0
- package/dist/twist.d.ts.map +1 -1
- package/dist/twist.js +27 -0
- package/dist/twist.js.map +1 -1
- package/package.json +1 -1
- package/src/connector.ts +55 -3
- package/src/facets.ts +21 -1
- package/src/llm-docs/connector.ts +1 -1
- package/src/llm-docs/facets.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 +87 -1
- package/src/tool.ts +33 -0
- package/src/tools/tasks.ts +52 -0
- package/src/twist.ts +33 -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
|
|
@@ -188,8 +210,6 @@ export type OptionalScopeGroup = {
|
|
|
188
210
|
*/
|
|
189
211
|
export type ScopeConfig = {
|
|
190
212
|
required: string[];
|
|
191
|
-
/** Friendly bullets describing what the always-on (required) access does. */
|
|
192
|
-
description?: string[];
|
|
193
213
|
optional?: OptionalScopeGroup[];
|
|
194
214
|
};
|
|
195
215
|
/**
|
|
@@ -248,6 +268,14 @@ export declare abstract class Connector<TSelf> extends Twist<TSelf> {
|
|
|
248
268
|
/** OAuth scopes to request for this connector — a flat list (all required), or
|
|
249
269
|
* a {@link ScopeConfig} declaring required + optional scope groups. */
|
|
250
270
|
readonly scopes?: string[] | ScopeConfig;
|
|
271
|
+
/**
|
|
272
|
+
* Plain-language bullets describing what access connecting this service
|
|
273
|
+
* grants the user — shown on the connect screen regardless of auth mechanism
|
|
274
|
+
* (OAuth, API key, or hosted). For OAuth connectors it also previews what the
|
|
275
|
+
* provider's consent screen will request. These are justifications for what
|
|
276
|
+
* Plot accesses, not a one-to-one mapping of scope strings.
|
|
277
|
+
*/
|
|
278
|
+
readonly access?: string[];
|
|
251
279
|
/**
|
|
252
280
|
* When true, one credential is shared across all users in the workspace,
|
|
253
281
|
* entered once by the installer. When false (default), each user provides
|
|
@@ -309,6 +337,27 @@ export declare abstract class Connector<TSelf> extends Twist<TSelf> {
|
|
|
309
337
|
* toggle always wins, and existing connections keep their stored preference.
|
|
310
338
|
*/
|
|
311
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;
|
|
312
361
|
/**
|
|
313
362
|
* Registry of link types this connector creates (e.g., issue, event, message).
|
|
314
363
|
* Used for display in the UI (icons, labels, statuses).
|
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,MAAM,EAAE,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
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,aAAa,EAAE,KAAK,IAAI,EAAE,KAAK,gBAAgB,EAAE,KAAK,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzJ,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACtD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,MAAM,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EAAE,MAAM,EAAE,qBAAqB,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAInJ;;;;;;;;;;;;;;;;;;;;;OAqBG;IAEH,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,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
|
@@ -56,6 +56,14 @@ export class Connector extends Twist {
|
|
|
56
56
|
/** OAuth scopes to request for this connector — a flat list (all required), or
|
|
57
57
|
* a {@link ScopeConfig} declaring required + optional scope groups. */
|
|
58
58
|
scopes;
|
|
59
|
+
/**
|
|
60
|
+
* Plain-language bullets describing what access connecting this service
|
|
61
|
+
* grants the user — shown on the connect screen regardless of auth mechanism
|
|
62
|
+
* (OAuth, API key, or hosted). For OAuth connectors it also previews what the
|
|
63
|
+
* provider's consent screen will request. These are justifications for what
|
|
64
|
+
* Plot accesses, not a one-to-one mapping of scope strings.
|
|
65
|
+
*/
|
|
66
|
+
access;
|
|
59
67
|
// ---- Auth model ----
|
|
60
68
|
/**
|
|
61
69
|
* When true, one credential is shared across all users in the workspace,
|
|
@@ -116,6 +124,27 @@ export class Connector extends Twist {
|
|
|
116
124
|
* toggle always wins, and existing connections keep their stored preference.
|
|
117
125
|
*/
|
|
118
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;
|
|
119
148
|
/**
|
|
120
149
|
* Registry of link types this connector creates (e.g., issue, event, message).
|
|
121
150
|
* Used for display in the UI (icons, labels, statuses).
|
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,CAA0B;I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