@lightdash/common 2.350.1 → 2.351.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.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.d.ts +43 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.js +16 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.d.ts +39 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.js +13 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts +35 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.js +36 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts +72 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js +10 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.d.ts +25 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.js +39 -20
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditRepoArgs.d.ts +19 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditRepoArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditRepoArgs.js +20 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditRepoArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolExploreRepoArgs.d.ts +29 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolExploreRepoArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolExploreRepoArgs.js +9 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolExploreRepoArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts +93 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindChartsArgs.js +14 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindChartsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindContentArgs.d.ts +370 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindContentArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindContentArgs.js +153 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindContentArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.d.ts +57 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.js +36 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts +111 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js +14 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.d.ts +43 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.js +15 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.d.ts +39 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.js +13 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts +35 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.js +35 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts +72 -4
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js +9 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.d.ts +25 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.js +38 -19
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditRepoArgs.d.ts +19 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditRepoArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditRepoArgs.js +19 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditRepoArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolExploreRepoArgs.d.ts +29 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolExploreRepoArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolExploreRepoArgs.js +8 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolExploreRepoArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts +93 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindChartsArgs.js +14 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindChartsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindContentArgs.d.ts +370 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindContentArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindContentArgs.js +153 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindContentArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.d.ts +57 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.js +36 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts +111 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js +14 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.d.ts +43 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.js +15 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolDescribeWarehouseTableArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.d.ts +39 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.js +13 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolDiscoverReposArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts +35 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.js +35 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts +72 -4
- package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js +9 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.d.ts +25 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.js +38 -19
- package/dist/types/ee/AiAgent/schemas/tools/toolEditProjectContextArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditRepoArgs.d.ts +19 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolEditRepoArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditRepoArgs.js +19 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolEditRepoArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolExploreRepoArgs.d.ts +29 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolExploreRepoArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolExploreRepoArgs.js +8 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolExploreRepoArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts +93 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindChartsArgs.js +14 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolFindChartsArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindContentArgs.d.ts +370 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolFindContentArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindContentArgs.js +153 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolFindContentArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.d.ts +57 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.js +36 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolFindCustomChartTypesArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts +111 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js +14 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,15 @@ export declare const toolEditRepoArgsSchema: z.ZodObject<{
|
|
|
6
6
|
prUrl: z.ZodNullable<z.ZodString>;
|
|
7
7
|
startNewPullRequest: z.ZodNullable<z.ZodBoolean>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
+
export declare const toolEditRepoStructuredContentSchema: z.ZodObject<{
|
|
10
|
+
repository: z.ZodString;
|
|
11
|
+
pullRequestAction: z.ZodNullable<z.ZodEnum<{
|
|
12
|
+
opened: "opened";
|
|
13
|
+
updated: "updated";
|
|
14
|
+
}>>;
|
|
15
|
+
agentSummary: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type ToolEditRepoStructuredContent = z.infer<typeof toolEditRepoStructuredContentSchema>;
|
|
9
18
|
export declare const toolEditRepoOutputSchema: z.ZodObject<{
|
|
10
19
|
result: z.ZodString;
|
|
11
20
|
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -43,6 +52,16 @@ export declare const toolEditRepoOutputSchema: z.ZodObject<{
|
|
|
43
52
|
}>>>;
|
|
44
53
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
54
|
}, z.core.$strip>], "status">;
|
|
55
|
+
structuredContent: z.ZodUnion<readonly [z.ZodObject<{
|
|
56
|
+
repository: z.ZodString;
|
|
57
|
+
pullRequestAction: z.ZodNullable<z.ZodEnum<{
|
|
58
|
+
opened: "opened";
|
|
59
|
+
updated: "updated";
|
|
60
|
+
}>>;
|
|
61
|
+
agentSummary: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
error: z.ZodString;
|
|
64
|
+
}, z.core.$strip>]>;
|
|
46
65
|
}, z.core.$strip>;
|
|
47
66
|
export type ToolEditRepoArgs = z.infer<typeof toolEditRepoArgsSchema>;
|
|
48
67
|
export type ToolEditRepoOutput = z.infer<typeof toolEditRepoOutputSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolEditRepoArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolEditRepoArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"toolEditRepoArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolEditRepoArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B,QAO5B,CAAC;AAEZ,eAAO,MAAM,sBAAsB;;;;;iBAwBjC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;iBAa9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,mCAAmC,CAC7C,CAAC;AAIF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuEnC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;CAGhC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { toolErrorStructuredContentSchema } from '../outputMetadata';
|
|
2
3
|
import { makeBuiltInToolResultGuard } from './builtInToolResultGuard';
|
|
3
4
|
export const TOOL_EDIT_REPO_DESCRIPTION = [
|
|
4
5
|
'Make a code change to one of the repositories your organization can write to, and open (or update) a pull request with it.',
|
|
@@ -25,6 +26,20 @@ export const toolEditRepoArgsSchema = z.object({
|
|
|
25
26
|
.nullable()
|
|
26
27
|
.describe('Set true to open a brand-new pull request even when this conversation already has one open against the same repository — use it when the user asks for a separate/independent change rather than a follow-up to existing work. Leave null (the default) to continue the most recent pull request for the repo. Ignored when prUrl is set.'),
|
|
27
28
|
});
|
|
29
|
+
export const toolEditRepoStructuredContentSchema = z.object({
|
|
30
|
+
repository: z
|
|
31
|
+
.string()
|
|
32
|
+
.describe('The repository the change targeted, as "owner/repo".'),
|
|
33
|
+
pullRequestAction: z
|
|
34
|
+
.enum(['opened', 'updated'])
|
|
35
|
+
.nullable()
|
|
36
|
+
.describe('Whether the run opened a new pull request or updated an existing one; null when it made no file changes, so no pull request was opened.'),
|
|
37
|
+
agentSummary: z
|
|
38
|
+
.string()
|
|
39
|
+
.describe("The coding agent's own summary of the change it made."),
|
|
40
|
+
});
|
|
41
|
+
// Same envelope as `structuredToolOutputSchema`, spelled out because the
|
|
42
|
+
// metadata here is a discriminated union rather than a plain object.
|
|
28
43
|
export const toolEditRepoOutputSchema = z.object({
|
|
29
44
|
result: z.string(),
|
|
30
45
|
metadata: z.discriminatedUnion('status', [
|
|
@@ -90,6 +105,10 @@ export const toolEditRepoOutputSchema = z.object({
|
|
|
90
105
|
reason: z.string().nullish(),
|
|
91
106
|
}),
|
|
92
107
|
]),
|
|
108
|
+
structuredContent: z.union([
|
|
109
|
+
toolEditRepoStructuredContentSchema,
|
|
110
|
+
toolErrorStructuredContentSchema,
|
|
111
|
+
]),
|
|
93
112
|
});
|
|
94
113
|
export const isToolEditRepoResult = makeBuiltInToolResultGuard('editRepo', toolEditRepoOutputSchema.shape.metadata);
|
|
95
114
|
//# sourceMappingURL=toolEditRepoArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolEditRepoArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolEditRepoArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,4HAA4H;IAC5H,kLAAkL;IAClL,4RAA4R;IAC5R,0OAA0O;IAC1O,wKAAwK;IACxK,wKAAwK;CAC3K,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,CACL,uPAAuP,CAC1P;IACL,MAAM,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,mUAAmU,CACtU;IACL,KAAK,EAAE,CAAC;SACH,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,qVAAqV,CACxV;IACL,mBAAmB,EAAE,CAAC;SACjB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACL,2UAA2U,CAC9U;CACR,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;QACrC,CAAC,CAAC,MAAM,CAAC;YACL,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;YAC5B,kEAAkE;YAClE,mDAAmD;YACnD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CA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,MAAM;oBACN,MAAM;oBACN,QAAQ;oBACR,SAAS;oBACT,OAAO;iBACV,CAAC;gBACF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;aACpB,CAAC,CACL;iBACA,OAAO,EAAE;SACjB,CAAC;QACF,CAAC,CAAC,MAAM,CAAC;YACL,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;YAC1B,8DAA8D;YAC9D,oEAAoE;YACpE,mEAAmE;YACnE,kEAAkE;YAClE,SAAS,EAAE,CAAC;iBACP,IAAI,CAAC;gBACF,sBAAsB;gBACtB,sBAAsB;gBACtB,sBAAsB;gBACtB,uBAAuB;gBACvB,sBAAsB;gBACtB,gBAAgB;gBAChB,aAAa;gBACb,SAAS;aACZ,CAAC;iBACD,OAAO,EAAE;YACd,mEAAmE;YACnE,mEAAmE;YACnE,iEAAiE;YACjE,oEAAoE;YACpE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;SAC/B,CAAC;KACL,CAAC;IACF,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC;QACvB,mCAAmC;QACnC,gCAAgC;KACnC,CAAC;CACL,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,oBAAoB,GAAG,0BAA0B,CAC1D,UAAU,EACV,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAC1C,CAAC"}
|
|
@@ -4,15 +4,41 @@ export declare const toolExploreRepoArgsSchema: z.ZodObject<{
|
|
|
4
4
|
command: z.ZodString;
|
|
5
5
|
target: z.ZodNullable<z.ZodString>;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const toolExploreRepoStructuredContentSchema: z.ZodObject<{
|
|
8
|
+
output: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const toolExploreRepoOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
8
11
|
result: z.ZodString;
|
|
9
|
-
metadata: z.ZodObject<{
|
|
12
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
10
13
|
status: z.ZodEnum<{
|
|
11
14
|
error: "error";
|
|
12
15
|
success: "success";
|
|
13
16
|
}>;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
status: z.ZodEnum<{
|
|
19
|
+
success: "success";
|
|
20
|
+
}>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
structuredContent: z.ZodObject<{
|
|
23
|
+
output: z.ZodString;
|
|
14
24
|
}, z.core.$strip>;
|
|
15
|
-
}, z.core.$strip
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
result: z.ZodString;
|
|
27
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
28
|
+
status: z.ZodEnum<{
|
|
29
|
+
error: "error";
|
|
30
|
+
success: "success";
|
|
31
|
+
}>;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
status: z.ZodEnum<{
|
|
34
|
+
error: "error";
|
|
35
|
+
}>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
structuredContent: z.ZodObject<{
|
|
38
|
+
error: z.ZodString;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
}, z.core.$strip>]>;
|
|
16
41
|
export type ToolExploreRepoArgs = z.infer<typeof toolExploreRepoArgsSchema>;
|
|
42
|
+
export type ToolExploreRepoStructuredContent = z.infer<typeof toolExploreRepoStructuredContentSchema>;
|
|
17
43
|
export type ToolExploreRepoOutput = z.infer<typeof toolExploreRepoOutputSchema>;
|
|
18
44
|
//# sourceMappingURL=toolExploreRepoArgs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolExploreRepoArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolExploreRepoArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"toolExploreRepoArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolExploreRepoArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,6BAA6B,QAU/B,CAAC;AAEZ,eAAO,MAAM,yBAAyB;;;iBAYpC,CAAC;AAEH,eAAO,MAAM,sCAAsC;;iBAMjD,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAKtC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,sCAAsC,CAChD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { structuredToolOutputSchema } from '../outputMetadata';
|
|
2
3
|
export const TOOL_EXPLORE_REPO_DESCRIPTION = [
|
|
3
4
|
'Read-only access to source code via a real bash shell restricted to a read-only command set, over a single virtual filesystem that mounts every repository this organization can access.',
|
|
4
5
|
'The dbt project is mounted at `/dbt` (its files at the top, e.g. `/dbt/dbt_project.yml`, `/dbt/models`). Every other accessible repository is mounted whole on its default branch at `/<owner>/<repo>` (e.g. `/lightdash/lightdash`). Run `ls /` to see what is mounted, or use `discoverRepos` to list repositories. Do NOT ask the user to connect the GitHub MCP for this.',
|
|
@@ -19,10 +20,15 @@ export const toolExploreRepoArgsSchema = z.object({
|
|
|
19
20
|
.nullable()
|
|
20
21
|
.describe('Optional starting directory, as a repository "owner/repo" (e.g. "lightdash/lightdash") — the command then starts in that repository\'s mount (`/owner/repo`). Use `discoverRepos` to find accessible repos. Pass null to start in the dbt project mount (`/dbt`). This only sets the working directory; absolute paths in the command can reach any mount regardless of target.'),
|
|
21
22
|
});
|
|
22
|
-
export const
|
|
23
|
-
|
|
23
|
+
export const toolExploreRepoStructuredContentSchema = z.object({
|
|
24
|
+
output: z
|
|
25
|
+
.string()
|
|
26
|
+
.describe('The command output exactly as shown in `result`: stdout (clamped to the output limit), followed by any stderr diagnostic and truncation notes.'),
|
|
27
|
+
});
|
|
28
|
+
export const toolExploreRepoOutputSchema = structuredToolOutputSchema({
|
|
24
29
|
metadata: z.object({
|
|
25
30
|
status: z.enum(['success', 'error']),
|
|
26
31
|
}),
|
|
32
|
+
structuredContent: toolExploreRepoStructuredContentSchema,
|
|
27
33
|
});
|
|
28
34
|
//# sourceMappingURL=toolExploreRepoArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolExploreRepoArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolExploreRepoArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"toolExploreRepoArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolExploreRepoArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE/D,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,0LAA0L;IAC1L,+WAA+W;IAC/W,oNAAoN;IACpN,oNAAoN;IACpN,yJAAyJ;IACzJ,yUAAyU;IACzU,8EAA8E;IAC9E,yWAAyW;IACzW,kLAAkL;CACrL,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,CACL,0ZAA0Z,CAC7Z;IACL,MAAM,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,iXAAiX,CACpX;CACR,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3D,MAAM,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACL,gJAAgJ,CACnJ;CACR,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,0BAA0B,CAAC;IAClE,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;KACvC,CAAC;IACF,iBAAiB,EAAE,sCAAsC;CAC5D,CAAC,CAAC"}
|
|
@@ -16,14 +16,104 @@ export declare const toolFindChartsArgsSchemaTransformed: z.ZodObject<{
|
|
|
16
16
|
page: z.ZodNullable<z.ZodNumber>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export type ToolFindChartsArgsTransformed = ToolFindChartsArgs;
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const toolFindChartsStructuredContentSchema: z.ZodObject<{
|
|
20
|
+
searchResults: z.ZodArray<z.ZodObject<{
|
|
21
|
+
searchQuery: z.ZodString;
|
|
22
|
+
charts: z.ZodArray<z.ZodObject<{
|
|
23
|
+
contentType: z.ZodLiteral<"chart">;
|
|
24
|
+
uuid: z.ZodString;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
slug: z.ZodString;
|
|
27
|
+
searchRank: z.ZodNumber;
|
|
28
|
+
chartType: z.ZodString;
|
|
29
|
+
chartSource: z.ZodEnum<{
|
|
30
|
+
saved: "saved";
|
|
31
|
+
sql: "sql";
|
|
32
|
+
}>;
|
|
33
|
+
spaceUuid: z.ZodString;
|
|
34
|
+
viewsCount: z.ZodNumber;
|
|
35
|
+
href: z.ZodString;
|
|
36
|
+
space: z.ZodObject<{
|
|
37
|
+
uuid: z.ZodString;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
slug: z.ZodString;
|
|
40
|
+
breadcrumb: z.ZodString;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
description: z.ZodNullable<z.ZodString>;
|
|
43
|
+
verification: z.ZodNullable<z.ZodObject<{
|
|
44
|
+
verifiedBy: z.ZodString;
|
|
45
|
+
verifiedAt: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
firstViewedAt: z.ZodNullable<z.ZodString>;
|
|
48
|
+
lastModified: z.ZodNullable<z.ZodString>;
|
|
49
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
50
|
+
lastUpdatedBy: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export declare const toolFindChartsOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
20
55
|
result: z.ZodString;
|
|
21
|
-
metadata: z.ZodObject<{
|
|
56
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
22
57
|
status: z.ZodEnum<{
|
|
23
58
|
error: "error";
|
|
24
59
|
success: "success";
|
|
25
60
|
}>;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
status: z.ZodEnum<{
|
|
63
|
+
success: "success";
|
|
64
|
+
}>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
structuredContent: z.ZodObject<{
|
|
67
|
+
searchResults: z.ZodArray<z.ZodObject<{
|
|
68
|
+
searchQuery: z.ZodString;
|
|
69
|
+
charts: z.ZodArray<z.ZodObject<{
|
|
70
|
+
contentType: z.ZodLiteral<"chart">;
|
|
71
|
+
uuid: z.ZodString;
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
slug: z.ZodString;
|
|
74
|
+
searchRank: z.ZodNumber;
|
|
75
|
+
chartType: z.ZodString;
|
|
76
|
+
chartSource: z.ZodEnum<{
|
|
77
|
+
saved: "saved";
|
|
78
|
+
sql: "sql";
|
|
79
|
+
}>;
|
|
80
|
+
spaceUuid: z.ZodString;
|
|
81
|
+
viewsCount: z.ZodNumber;
|
|
82
|
+
href: z.ZodString;
|
|
83
|
+
space: z.ZodObject<{
|
|
84
|
+
uuid: z.ZodString;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
slug: z.ZodString;
|
|
87
|
+
breadcrumb: z.ZodString;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
description: z.ZodNullable<z.ZodString>;
|
|
90
|
+
verification: z.ZodNullable<z.ZodObject<{
|
|
91
|
+
verifiedBy: z.ZodString;
|
|
92
|
+
verifiedAt: z.ZodString;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
firstViewedAt: z.ZodNullable<z.ZodString>;
|
|
95
|
+
lastModified: z.ZodNullable<z.ZodString>;
|
|
96
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
97
|
+
lastUpdatedBy: z.ZodNullable<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
26
100
|
}, z.core.$strip>;
|
|
27
|
-
}, z.core.$strip
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
result: z.ZodString;
|
|
103
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
104
|
+
status: z.ZodEnum<{
|
|
105
|
+
error: "error";
|
|
106
|
+
success: "success";
|
|
107
|
+
}>;
|
|
108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
+
status: z.ZodEnum<{
|
|
110
|
+
error: "error";
|
|
111
|
+
}>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
structuredContent: z.ZodObject<{
|
|
114
|
+
error: z.ZodString;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
}, z.core.$strip>]>;
|
|
117
|
+
export type ToolFindChartsStructuredContent = z.infer<typeof toolFindChartsStructuredContentSchema>;
|
|
28
118
|
export type ToolFindChartsOutput = z.infer<typeof toolFindChartsOutputSchema>;
|
|
29
119
|
//# sourceMappingURL=toolFindChartsArgs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolFindChartsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindChartsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"toolFindChartsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindChartsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,4BAA4B,0qBAWxC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;iBAazB,CAAC;AAEb,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,mCAAmC;;;;;;iBAA2B,CAAC;AAE5E,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAAC;AAE/D,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWhD,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGrC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,qCAAqC,CAC/C,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { baseOutputMetadataSchema } from '../outputMetadata';
|
|
2
|
+
import { baseOutputMetadataSchema, structuredToolOutputSchema, } from '../outputMetadata';
|
|
3
3
|
import { createToolSchema } from '../toolSchemaBuilder';
|
|
4
|
+
import { findContentChartItemSchema } from './toolFindContentArgs';
|
|
4
5
|
export const TOOL_FIND_CHARTS_DESCRIPTION = `Tool: "findCharts"
|
|
5
6
|
Purpose:
|
|
6
7
|
Finds charts by name or description within a project, returning detailed info about each.
|
|
@@ -24,8 +25,18 @@ export const toolFindChartsArgsSchema = createToolSchema()
|
|
|
24
25
|
.withPagination()
|
|
25
26
|
.build();
|
|
26
27
|
export const toolFindChartsArgsSchemaTransformed = toolFindChartsArgsSchema;
|
|
27
|
-
export const
|
|
28
|
-
|
|
28
|
+
export const toolFindChartsStructuredContentSchema = z.object({
|
|
29
|
+
searchResults: z
|
|
30
|
+
.array(z.object({
|
|
31
|
+
searchQuery: z.string(),
|
|
32
|
+
charts: z
|
|
33
|
+
.array(findContentChartItemSchema)
|
|
34
|
+
.describe('Matching charts, verified first.'),
|
|
35
|
+
}))
|
|
36
|
+
.describe('One entry per search query, in the order given.'),
|
|
37
|
+
});
|
|
38
|
+
export const toolFindChartsOutputSchema = structuredToolOutputSchema({
|
|
29
39
|
metadata: baseOutputMetadataSchema,
|
|
40
|
+
structuredContent: toolFindChartsStructuredContentSchema,
|
|
30
41
|
});
|
|
31
42
|
//# sourceMappingURL=toolFindChartsArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolFindChartsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindChartsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"toolFindChartsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindChartsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,wBAAwB,EACxB,0BAA0B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,MAAM,CAAC,MAAM,4BAA4B,GAAG;;;;;;;;;;;CAW3C,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,gBAAgB,EAAE;KACrD,MAAM,CAAC;IACJ,kBAAkB,EAAE,CAAC,CAAC,KAAK,CACvB,CAAC,CAAC,MAAM,CAAC;QACL,KAAK,EAAE,CAAC;aACH,MAAM,EAAE;aACR,QAAQ,CACL,qIAAqI,CACxI;KACR,CAAC,CACL;CACJ,CAAC;KACD,cAAc,EAAE;KAChB,KAAK,EAAE,CAAC;AAIb,MAAM,CAAC,MAAM,mCAAmC,GAAG,wBAAwB,CAAC;AAI5E,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,aAAa,EAAE,CAAC;SACX,KAAK,CACF,CAAC,CAAC,MAAM,CAAC;QACL,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,MAAM,EAAE,CAAC;aACJ,KAAK,CAAC,0BAA0B,CAAC;aACjC,QAAQ,CAAC,kCAAkC,CAAC;KACpD,CAAC,CACL;SACA,QAAQ,CAAC,iDAAiD,CAAC;CACnE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,0BAA0B,CAAC;IACjE,QAAQ,EAAE,wBAAwB;IAClC,iBAAiB,EAAE,qCAAqC;CAC3D,CAAC,CAAC"}
|