@lightdash/common 3.268.1 → 3.268.2
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js +3 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js.map +1 -1
- package/dist/cjs/schemas/json/mcp-tools-1.0.json +2 -2
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js +3 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js.map +1 -1
- package/dist/esm/schemas/json/mcp-tools-1.0.json +2 -2
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js +3 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.js.map +1 -1
- package/dist/types/schemas/json/mcp-tools-1.0.json +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolCreateScheduledDeliveryArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAI5D,eAAO,MAAM,0CAA0C,iBAEpD,sBAAsB,KAAG,
|
|
1
|
+
{"version":3,"file":"toolCreateScheduledDeliveryArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAI5D,eAAO,MAAM,0CAA0C,iBAEpD,sBAAsB,KAAG,MAWb,CAAC;AAiBhB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuEhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,qCAAqC,CAC/C,CAAC;AAoBF,eAAO,MAAM,kDAAkD;;;;;;;;;;;;;;;;iBA8B7D,CAAC;AAEH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAC9D,OAAO,kDAAkD,CAC5D,CAAC;AAIF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOlD,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,uCAAuC,CACjD,CAAC"}
|
|
@@ -3,11 +3,12 @@ import { toolErrorStructuredContentSchema } from '../outputMetadata';
|
|
|
3
3
|
import { toolNameFor } from './discoveryToolNames';
|
|
4
4
|
export const TOOL_CREATE_SCHEDULED_DELIVERY_DESCRIPTION = ({ runtime, }) => [
|
|
5
5
|
'Create a scheduled delivery that sends a saved chart or dashboard to Slack channels or email recipients on a cron schedule.',
|
|
6
|
+
'SQL charts cannot be scheduled, so tell the user that before saving or proposing one for a delivery.',
|
|
6
7
|
'An enabled delivery sends from the moment it is created, so first propose the full configuration to the user (name, schedule in plain words, cron, timezone, destinations, format, AI augmentation prompt if any) and wait for their explicit confirmation in the conversation.',
|
|
7
8
|
// MCP has no system prompt to carry the save-then-schedule order.
|
|
8
9
|
...(runtime === 'mcp'
|
|
9
10
|
? [
|
|
10
|
-
`Content that exists only in this conversation is saved with ${toolNameFor('createContent', runtime)} first, then scheduled by the
|
|
11
|
+
`Content that exists only in this conversation is saved with ${toolNameFor('createContent', runtime)} first, then scheduled by the slug it returns: propose the save and the schedule as one plan with a single confirmation.`,
|
|
11
12
|
]
|
|
12
13
|
: []),
|
|
13
14
|
].join(' ');
|
|
@@ -28,7 +29,7 @@ export const toolCreateScheduledDeliveryArgsSchema = z.object({
|
|
|
28
29
|
.describe('Type of saved content to deliver.'),
|
|
29
30
|
resourceUuidOrSlug: z
|
|
30
31
|
.string()
|
|
31
|
-
.describe('
|
|
32
|
+
.describe('Slug of the saved chart or dashboard, as the tool that created or found it returned it. A uuid also works.'),
|
|
32
33
|
name: z.string().min(1).describe('Human-readable delivery name.'),
|
|
33
34
|
cron: z
|
|
34
35
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolCreateScheduledDeliveryArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,EACvD,OAAO,GACc,EAAU,EAAE,CACjC;IACI,6HAA6H;IAC7H,iRAAiR;IACjR,kEAAkE;IAClE,GAAG,CAAC,OAAO,KAAK,KAAK;QACjB,CAAC,CAAC;YACI,+DAA+D,WAAW,CAAC,eAAe,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"toolCreateScheduledDeliveryArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolCreateScheduledDeliveryArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAA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Q,CAAC,iDAAiD,CAAC;IAChE,sBAAsB,EAAE,CAAC;SACpB,OAAO,EAAE;SACT,QAAQ,CAAC,0DAA0D,CAAC;IACzE,IAAI,EAAE,CAAC;SACF,MAAM,EAAE;SACR,QAAQ,CACL,kHAAkH,CACrH;IACL,QAAQ,EAAE,CAAC;SACN,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,CAAC,sDAAsD,CAAC;CACxE,CAAC,CAAC;AAMH,2EAA2E;AAC3E,qEAAqE;AACrE,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,yCAAyC;IACnD,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC;QACvB,kDAAkD;QAClD,gCAAgC;KACnC,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
"readOnlyHint": false,
|
|
324
324
|
"title": "Create scheduled delivery"
|
|
325
325
|
},
|
|
326
|
-
"description": "Create a scheduled delivery that sends a saved chart or dashboard to Slack channels or email recipients on a cron schedule. An enabled delivery sends from the moment it is created, so first propose the full configuration to the user (name, schedule in plain words, cron, timezone, destinations, format, AI augmentation prompt if any) and wait for their explicit confirmation in the conversation. Content that exists only in this conversation is saved with create_content first, then scheduled by the
|
|
326
|
+
"description": "Create a scheduled delivery that sends a saved chart or dashboard to Slack channels or email recipients on a cron schedule. SQL charts cannot be scheduled, so tell the user that before saving or proposing one for a delivery. An enabled delivery sends from the moment it is created, so first propose the full configuration to the user (name, schedule in plain words, cron, timezone, destinations, format, AI augmentation prompt if any) and wait for their explicit confirmation in the conversation. Content that exists only in this conversation is saved with create_content first, then scheduled by the slug it returns: propose the save and the schedule as one plan with a single confirmation.",
|
|
327
327
|
"inputSchema": {
|
|
328
328
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
329
329
|
"properties": {
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
"type": "string"
|
|
389
389
|
},
|
|
390
390
|
"resourceUuidOrSlug": {
|
|
391
|
-
"description": "
|
|
391
|
+
"description": "Slug of the saved chart or dashboard, as the tool that created or found it returned it. A uuid also works.",
|
|
392
392
|
"type": "string"
|
|
393
393
|
},
|
|
394
394
|
"targets": {
|