@lightdash/common 2.46.0 → 2.47.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.
@@ -1 +1 @@
1
- {"version":3,"file":"toolFindContentArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAI5D,KAAK,mCAAmC,GAClC,oBAAoB,GACpB,aAAa,GACb,cAAc,CAAC;AAErB,eAAO,MAAM,6BAA6B,4CAGvC;IACC,QAAQ,EAAE,MAAM,CAAC;IACjB,wBAAwB,EAAE,mCAAmC,CAAC;CACjE,KAAG,MAmBkF,CAAC;AAEvF,eAAO,MAAM,6BAA6B,2BAGvC,sBAAsB,KAAG,MAKtB,CAAC;AAEP,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;EAwB1B,CAAC;AAEb,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,8BAA8B,GAAG,mBAAmB,CAAC;AACjE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
1
+ {"version":3,"file":"toolFindContentArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAI5D,KAAK,mCAAmC,GAClC,oBAAoB,GACpB,aAAa,GACb,cAAc,CAAC;AAErB,eAAO,MAAM,6BAA6B,4CAGvC;IACC,QAAQ,EAAE,MAAM,CAAC;IACjB,wBAAwB,EAAE,mCAAmC,CAAC;CACjE,KAAG,MAmBkF,CAAC;AAEvF,eAAO,MAAM,6BAA6B,2BAGvC,sBAAsB,KAAG,MAQf,CAAC;AAEd,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;EAwB1B,CAAC;AAEb,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,8BAA8B,GAAG,mBAAmB,CAAC;AACjE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -22,7 +22,10 @@ ${dashboardDetailsToolName === 'getDashboardCharts'
22
22
  export const TOOL_FIND_CONTENT_DESCRIPTION = ({ runtime, toolName, }) => getFindContentToolDescription({
23
23
  toolName,
24
24
  dashboardDetailsToolName: runtime === 'mcp' ? 'read_content' : 'readContent',
25
- });
25
+ }) +
26
+ (runtime === 'mcp'
27
+ ? '\n- If query-execution tools (run_metric_query, run_sql) are NOT available in this session, use this tool FIRST: saved charts and dashboards often already answer the question. Never tell the user information is unavailable, and never suggest raw SQL or elevated permissions, before searching here.'
28
+ : '');
26
29
  export const toolFindContentArgsSchema = createToolSchema()
27
30
  .extend({
28
31
  searchQueries: z.array(z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"toolFindContentArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CA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
+ {"version":3,"file":"toolFindContentArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAOxD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,EAC1C,QAAQ,EACR,wBAAwB,GAI3B,EAAU,EAAE,CAAC,UAAU,QAAQ;;;;;;;;;;;;;oFAaoD,wBAAwB;EAExG,wBAAwB,KAAK,oBAAoB;IAC7C,CAAC,CAAC,EAAE;IACJ,CAAC,CAAC,mCAAmC,wBAAwB;CAErE,sFAAsF,CAAC;AAEvF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,EAC1C,OAAO,EACP,QAAQ,GACa,EAAU,EAAE,CACjC,6BAA6B,CAAC;IAC1B,QAAQ;IACR,wBAAwB,EACpB,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,aAAa;CACzD,CAAC;IACF,CAAC,OAAO,KAAK,KAAK;QACd,CAAC,CAAC,2SAA2S;QAC7S,CAAC,CAAC,EAAE,CAAC,CAAC;AAEd,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,EAAE;KACtD,MAAM,CAAC;IACJ,aAAa,EAAE,CAAC,CAAC,KAAK,CAClB,CAAC,CAAC,MAAM,CAAC;QACL,KAAK,EAAE,CAAC;aACH,MAAM,EAAE;aACR,QAAQ,CACL,qIAAqI,CACxI;KACR,CAAC,CACL;IACD,SAAS,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,mIAAmI,CACtI;IACL,YAAY,EAAE,CAAC;SACV,OAAO,EAAE;SACT,OAAO,EAAE;SACT,QAAQ,CACL,kLAAkL,CACrL;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAEb,MAAM,CAAC,MAAM,oCAAoC,GAAG,yBAAyB,CAAC;AAE9E,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,wBAAwB;CACrC,CAAC,CAAC"}
@@ -374,7 +374,7 @@
374
374
  "openWorldHint": false,
375
375
  "readOnlyHint": true
376
376
  },
377
- "description": "Tool: \"find_content\"\nPurpose:\nFinds spaces, charts, dashboards, or Data Apps by name or description within a project, returning detailed information about each.\n\nUsage tips:\n- IMPORTANT: Pass the user's full query or relevant portion directly (e.g., \"revenue based on campaigns\" instead of just \"campaigns\").\n- The search engine understands natural language and context — more descriptive queries yield better results.\n- You can provide multiple search queries to look for different topics simultaneously (e.g., [\"monthly revenue\", \"user acquisition trends\"]).\n- Pass spaceSlug to search only inside that space and its descendants.\n- verifiedOnly=true searches only admin-verified charts/dashboards (spaces omitted). Data Apps have no verification state and remain included. Verification is a status, not text — search topic keywords, never the word \"verified\". If nothing matches, verified content may still exist under other terms, so never claim the project has none from one query. Re-run with verifiedOnly=false only if unverified charts or dashboards are acceptable.\n- If results aren't relevant, retry with the full user query or more specific terms.\n- Dashboards with validation errors will be deprioritized.\n- Returns space breadcrumb/path metadata and canonical chart, dashboard, and Data App URLs when available.\n- Dashboards show a preview of the first 5 charts and the total chart count. Use \"read_content\" to see all charts for a specific dashboard.\n- Data Apps are readable: call \"read_content\" with type \"data_app\" and the app slug to see what the app shows, the charts and dashboard it was generated from, and the explores, fields, filters, parameters and external connections it queries.\n- It doesn't provide summaries for dashboards yet, so don't suggest this capability.",
377
+ "description": "Tool: \"find_content\"\nPurpose:\nFinds spaces, charts, dashboards, or Data Apps by name or description within a project, returning detailed information about each.\n\nUsage tips:\n- IMPORTANT: Pass the user's full query or relevant portion directly (e.g., \"revenue based on campaigns\" instead of just \"campaigns\").\n- The search engine understands natural language and context — more descriptive queries yield better results.\n- You can provide multiple search queries to look for different topics simultaneously (e.g., [\"monthly revenue\", \"user acquisition trends\"]).\n- Pass spaceSlug to search only inside that space and its descendants.\n- verifiedOnly=true searches only admin-verified charts/dashboards (spaces omitted). Data Apps have no verification state and remain included. Verification is a status, not text — search topic keywords, never the word \"verified\". If nothing matches, verified content may still exist under other terms, so never claim the project has none from one query. Re-run with verifiedOnly=false only if unverified charts or dashboards are acceptable.\n- If results aren't relevant, retry with the full user query or more specific terms.\n- Dashboards with validation errors will be deprioritized.\n- Returns space breadcrumb/path metadata and canonical chart, dashboard, and Data App URLs when available.\n- Dashboards show a preview of the first 5 charts and the total chart count. Use \"read_content\" to see all charts for a specific dashboard.\n- Data Apps are readable: call \"read_content\" with type \"data_app\" and the app slug to see what the app shows, the charts and dashboard it was generated from, and the explores, fields, filters, parameters and external connections it queries.\n- It doesn't provide summaries for dashboards yet, so don't suggest this capability.\n- If query-execution tools (run_metric_query, run_sql) are NOT available in this session, use this tool FIRST: saved charts and dashboards often already answer the question. Never tell the user information is unavailable, and never suggest raw SQL or elevated permissions, before searching here.",
378
378
  "inputSchema": {
379
379
  "$schema": "http://json-schema.org/draft-07/schema#",
380
380
  "additionalProperties": false,