@lightdash/common 2.89.0 → 2.89.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"toolGenerateDataAppArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGH,KAAK,gBAAgB,EAExB,MAAM,qBAAqB,CAAC;AAG7B,kFAAkF;AAClF,eAAO,MAAM,kCAAkC,QAAiB,CAAC;AAEjE,8FAA8F;AAC9F,eAAO,MAAM,wBAAwB,sDAKU,CAAC;AAChD,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7E,6FAA6F;AAC7F,eAAO,MAAM,wBAAwB,6DACyB,CAAC;AAE/D,eAAO,MAAM,kCAAkC,QAMpC,CAAC;AAEZ,eAAO,MAAM,6BAA6B;;;;;;;;;;iBA2BxC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;iBAyB1C,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,6BAA6B,CACvC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,+BAA+B,CACzC,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CACb,yBAAyB,CAAC,UAAU,CAAC,EACrC;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE,CACxB,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;CAGvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBAAiB,MAAM,WAAW,MAA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,CAC3C,OAAO,+BAA+B,CACzC,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CACb,yBAAyB,CAAC,UAAU,CAAC,EACrC;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE,CACxB,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;CAGvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBAAiB,MAAM,WAAW,MAAM,WAC5B,CAAC;AAI/C,eAAO,MAAM,8BAA8B,0FAUxC;IACC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,KAAG,iCAAiC,GAAG,IA6BvC,CAAC;AAEF,eAAO,MAAM,qCAAqC,YACrC,MAAM,KAChB,iCAQF,CAAC"}
@@ -16,13 +16,12 @@ export const TOOL_GENERATE_DATA_APP_DESCRIPTION = [
16
16
  "Start building a new data app — an interactive application generated from a brief on top of this project's semantic layer.",
17
17
  'Use it when the user asks to build, make, or generate a data app (or an app, slide show, or PDF report); questions, charts, dashboards, and other saved content have their own tools.',
18
18
  'This tool always creates a new app: to change an app that already exists, use iterateDataApp instead.',
19
- 'The build runs in the background for several minutes, so the call returns as soon as it has started (status: "pending"). One request, one call: tell the user the build has started and that you will link them to the app afterwards, then end your turn — never wait, poll, or call this tool again for the same request.',
20
- 'A later turn sees the outcome on this call\'s result: "success" carries the app name and the builder link (href) to share; "error" carries the failure message.',
19
+ 'The build runs in the background for several minutes, so the call returns as soon as it has started (status: "pending") and the outcome lands on this result for a later turn. One request, one call — never wait, poll, or call this tool again for the same request.',
21
20
  ].join(' ');
22
21
  export const toolGenerateDataAppArgsSchema = z.object({
23
22
  prompt: z
24
23
  .string()
25
- .describe(`A self-contained brief for the coding agent that builds the app: what the app shows, for whom, and how it behaves. Carry this thread's analysis in as a collection of visualizations — for each one, its title, a one-line description, and a metric query line \`${DATA_APP_VIZ_LINE_FORMAT}\`. The coding agent sees the semantic layer but not this conversation, so include every detail it needs.`),
24
+ .describe(`A self-contained brief for the coding agent that builds the app: what the app shows, for whom, and how it behaves. The coding agent explores the semantic layer itself but sees neither this conversation nor its query results: when this thread has already settled the analysis, carry it over — for each visualization, its title, a one-line description, and a metric query line \`${DATA_APP_VIZ_LINE_FORMAT}\` — as queries, never pasted numbers, which would be hardcoded into the app.`),
26
25
  template: z
27
26
  .enum(DATA_APP_BUILD_TEMPLATES)
28
27
  .nullish()
@@ -1 +1 @@
1
- {"version":3,"file":"toolGenerateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,6BAA6B,EAC7B,sBAAsB,GAGzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,kFAAkF;AAClF,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEjE,8FAA8F;AAC9F,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,WAAW;IACX,WAAW;IACX,KAAK;IACL,QAAQ;CACmC,CAAC;AAGhD,6FAA6F;AAC7F,MAAM,CAAC,MAAM,wBAAwB,GACjC,0DAA0D,CAAC;AAE/D,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAC9C,4HAA4H;IAC5H,uLAAuL;IACvL,uGAAuG;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E,OAAO;YACH,MAAM,EAAE,GAAG,WAAW,4DAA4D,IAAI,EAAE;YACxF,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;SACtE,CAAC;IACN,CAAC;IACD,MAAM,SAAS,GAAG,KAAK,KAAK,6BAA6B,CAAC;IAC1D,MAAM,OAAO,GAAG,SAAS;QACrB,CAAC,CAAC,0BAA0B;QAC5B,CAAC,CAAC,CAAC,aAAa,IAAI,mBAAmB,CAAC,CAAC;IAC7C,OAAO;QACH,MAAM,EAAE,sCAAsC,OAAO,EAAE;QACvD,QAAQ,EAAE;YACN,MAAM,EAAE,OAAO;YACf,OAAO;YACP,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ;YAC1C,OAAO;SACV;KACJ,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACjD,OAAe,EACkB,EAAE;IACnC,MAAM,OAAO,GAAG,8CACZ,kCAAkC,GAAG,KACzC,WAAW,CAAC;IACZ,OAAO;QACH,MAAM,EAAE,sCAAsC,OAAO,EAAE;QACvD,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE;KACpE,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"toolGenerateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,6BAA6B,EAC7B,sBAAsB,GAGzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,kFAAkF;AAClF,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,GA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adds a version to an existing data app from a follow-up brief.',
6
6
  'Use it when the user wants to change, fix, or extend a data app that already exists — one built earlier in this thread, or one found with findContent; use generateDataApp only for a brand-new app.',
7
7
  "The coding agent works from the app's current source, so the brief should describe the change, not restate the whole app.",
8
- 'The build runs in the background for several minutes, so the call returns as soon as it has started (status: "pending"). One request, one call: tell the user the build has started, then end your turn — never wait, poll, or call this tool again for the same request.',
9
- 'A later turn sees the outcome on this call\'s result: "success" carries the app name and the builder link (href) to share; "error" carries the failure message. While a version is already building for the app, the call fails — relay that the user should wait for the current build to finish.',
8
+ 'The build runs in the background for several minutes, so the call returns as soon as it has started (status: "pending") and the outcome lands on this result for a later turn. One request, one call — never wait, poll, or call this tool again for the same request.',
9
+ 'While a version is already building for the app, the call fails — relay that the user should wait for the current build to finish.',
10
10
  ].join(' ');
11
11
  export const toolIterateDataAppArgsSchema = z.object({
12
12
  appSlug: z
@@ -14,7 +14,7 @@ export const toolIterateDataAppArgsSchema = z.object({
14
14
  .describe('Slug of the data app to change — from an earlier generateDataApp or iterateDataApp result, findContent, or readContent.'),
15
15
  prompt: z
16
16
  .string()
17
- .describe("A self-contained brief of the change for the coding agent, which sees the app's current source and the semantic layer but not this conversation. Describe what to change and the outcome you expect, and include every detail from this thread the change depends on."),
17
+ .describe("A self-contained brief of the change for the coding agent, which works from the app's current source and explores the semantic layer itself, but sees neither this conversation nor its query results. Describe what to change and the outcome you expect; carry over any analysis this thread already settled as queries — a number pasted into the brief gets hardcoded into the app."),
18
18
  dashboardSlug: z
19
19
  .string()
20
20
  .nullish()
@@ -1 +1 @@
1
- {"version":3,"file":"toolIterateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EACH,2BAA2B,EAC3B,+BAA+B,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