@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,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isToolEditRepoResult = exports.toolEditRepoOutputSchema = exports.toolEditRepoArgsSchema = exports.TOOL_EDIT_REPO_DESCRIPTION = void 0;
|
|
3
|
+
exports.isToolEditRepoResult = exports.toolEditRepoOutputSchema = exports.toolEditRepoStructuredContentSchema = exports.toolEditRepoArgsSchema = exports.TOOL_EDIT_REPO_DESCRIPTION = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const outputMetadata_1 = require("../outputMetadata");
|
|
5
6
|
const builtInToolResultGuard_1 = require("./builtInToolResultGuard");
|
|
6
7
|
exports.TOOL_EDIT_REPO_DESCRIPTION = [
|
|
7
8
|
'Make a code change to one of the repositories your organization can write to, and open (or update) a pull request with it.',
|
|
@@ -28,6 +29,20 @@ exports.toolEditRepoArgsSchema = zod_1.z.object({
|
|
|
28
29
|
.nullable()
|
|
29
30
|
.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.'),
|
|
30
31
|
});
|
|
32
|
+
exports.toolEditRepoStructuredContentSchema = zod_1.z.object({
|
|
33
|
+
repository: zod_1.z
|
|
34
|
+
.string()
|
|
35
|
+
.describe('The repository the change targeted, as "owner/repo".'),
|
|
36
|
+
pullRequestAction: zod_1.z
|
|
37
|
+
.enum(['opened', 'updated'])
|
|
38
|
+
.nullable()
|
|
39
|
+
.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.'),
|
|
40
|
+
agentSummary: zod_1.z
|
|
41
|
+
.string()
|
|
42
|
+
.describe("The coding agent's own summary of the change it made."),
|
|
43
|
+
});
|
|
44
|
+
// Same envelope as `structuredToolOutputSchema`, spelled out because the
|
|
45
|
+
// metadata here is a discriminated union rather than a plain object.
|
|
31
46
|
exports.toolEditRepoOutputSchema = zod_1.z.object({
|
|
32
47
|
result: zod_1.z.string(),
|
|
33
48
|
metadata: zod_1.z.discriminatedUnion('status', [
|
|
@@ -93,6 +108,10 @@ exports.toolEditRepoOutputSchema = zod_1.z.object({
|
|
|
93
108
|
reason: zod_1.z.string().nullish(),
|
|
94
109
|
}),
|
|
95
110
|
]),
|
|
111
|
+
structuredContent: zod_1.z.union([
|
|
112
|
+
exports.toolEditRepoStructuredContentSchema,
|
|
113
|
+
outputMetadata_1.toolErrorStructuredContentSchema,
|
|
114
|
+
]),
|
|
96
115
|
});
|
|
97
116
|
exports.isToolEditRepoResult = (0, builtInToolResultGuard_1.makeBuiltInToolResultGuard)('editRepo', exports.toolEditRepoOutputSchema.shape.metadata);
|
|
98
117
|
//# sourceMappingURL=toolEditRepoArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolEditRepoArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolEditRepoArgs.ts"],"names":[],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"toolEditRepoArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolEditRepoArgs.ts"],"names":[],"mappings":"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"}
|
|
@@ -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,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toolExploreRepoOutputSchema = exports.toolExploreRepoArgsSchema = exports.TOOL_EXPLORE_REPO_DESCRIPTION = void 0;
|
|
3
|
+
exports.toolExploreRepoOutputSchema = exports.toolExploreRepoStructuredContentSchema = exports.toolExploreRepoArgsSchema = exports.TOOL_EXPLORE_REPO_DESCRIPTION = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const outputMetadata_1 = require("../outputMetadata");
|
|
5
6
|
exports.TOOL_EXPLORE_REPO_DESCRIPTION = [
|
|
6
7
|
'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.',
|
|
7
8
|
'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.',
|
|
@@ -22,10 +23,15 @@ exports.toolExploreRepoArgsSchema = zod_1.z.object({
|
|
|
22
23
|
.nullable()
|
|
23
24
|
.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.'),
|
|
24
25
|
});
|
|
25
|
-
exports.
|
|
26
|
-
|
|
26
|
+
exports.toolExploreRepoStructuredContentSchema = zod_1.z.object({
|
|
27
|
+
output: zod_1.z
|
|
28
|
+
.string()
|
|
29
|
+
.describe('The command output exactly as shown in `result`: stdout (clamped to the output limit), followed by any stderr diagnostic and truncation notes.'),
|
|
30
|
+
});
|
|
31
|
+
exports.toolExploreRepoOutputSchema = (0, outputMetadata_1.structuredToolOutputSchema)({
|
|
27
32
|
metadata: zod_1.z.object({
|
|
28
33
|
status: zod_1.z.enum(['success', 'error']),
|
|
29
34
|
}),
|
|
35
|
+
structuredContent: exports.toolExploreRepoStructuredContentSchema,
|
|
30
36
|
});
|
|
31
37
|
//# sourceMappingURL=toolExploreRepoArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolExploreRepoArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolExploreRepoArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"toolExploreRepoArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolExploreRepoArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAA+D;AAElD,QAAA,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;AAEC,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC;SACL,MAAM,EAAE;SACR,QAAQ,CACL,0ZAA0Z,CAC7Z;IACL,MAAM,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,iXAAiX,CACpX;CACR,CAAC,CAAC;AAEU,QAAA,sCAAsC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,MAAM,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACL,gJAAgJ,CACnJ;CACR,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,IAAA,2CAA0B,EAAC;IAClE,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;KACvC,CAAC;IACF,iBAAiB,EAAE,QAAA,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,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toolFindChartsOutputSchema = exports.toolFindChartsArgsSchemaTransformed = exports.toolFindChartsArgsSchema = exports.TOOL_FIND_CHARTS_DESCRIPTION = void 0;
|
|
3
|
+
exports.toolFindChartsOutputSchema = exports.toolFindChartsStructuredContentSchema = exports.toolFindChartsArgsSchemaTransformed = exports.toolFindChartsArgsSchema = exports.TOOL_FIND_CHARTS_DESCRIPTION = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const outputMetadata_1 = require("../outputMetadata");
|
|
6
6
|
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
|
7
|
+
const toolFindContentArgs_1 = require("./toolFindContentArgs");
|
|
7
8
|
exports.TOOL_FIND_CHARTS_DESCRIPTION = `Tool: "findCharts"
|
|
8
9
|
Purpose:
|
|
9
10
|
Finds charts by name or description within a project, returning detailed info about each.
|
|
@@ -27,8 +28,18 @@ exports.toolFindChartsArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)()
|
|
|
27
28
|
.withPagination()
|
|
28
29
|
.build();
|
|
29
30
|
exports.toolFindChartsArgsSchemaTransformed = exports.toolFindChartsArgsSchema;
|
|
30
|
-
exports.
|
|
31
|
-
|
|
31
|
+
exports.toolFindChartsStructuredContentSchema = zod_1.z.object({
|
|
32
|
+
searchResults: zod_1.z
|
|
33
|
+
.array(zod_1.z.object({
|
|
34
|
+
searchQuery: zod_1.z.string(),
|
|
35
|
+
charts: zod_1.z
|
|
36
|
+
.array(toolFindContentArgs_1.findContentChartItemSchema)
|
|
37
|
+
.describe('Matching charts, verified first.'),
|
|
38
|
+
}))
|
|
39
|
+
.describe('One entry per search query, in the order given.'),
|
|
40
|
+
});
|
|
41
|
+
exports.toolFindChartsOutputSchema = (0, outputMetadata_1.structuredToolOutputSchema)({
|
|
32
42
|
metadata: outputMetadata_1.baseOutputMetadataSchema,
|
|
43
|
+
structuredContent: exports.toolFindChartsStructuredContentSchema,
|
|
33
44
|
});
|
|
34
45
|
//# sourceMappingURL=toolFindChartsArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolFindChartsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindChartsArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"toolFindChartsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindChartsArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAG2B;AAC3B,4DAAwD;AACxD,+DAAmE;AAEtD,QAAA,4BAA4B,GAAG;;;;;;;;;;;CAW3C,CAAC;AAEW,QAAA,wBAAwB,GAAG,IAAA,oCAAgB,GAAE;KACrD,MAAM,CAAC;IACJ,kBAAkB,EAAE,OAAC,CAAC,KAAK,CACvB,OAAC,CAAC,MAAM,CAAC;QACL,KAAK,EAAE,OAAC;aACH,MAAM,EAAE;aACR,QAAQ,CACL,qIAAqI,CACxI;KACR,CAAC,CACL;CACJ,CAAC;KACD,cAAc,EAAE;KAChB,KAAK,EAAE,CAAC;AAIA,QAAA,mCAAmC,GAAG,QAAA,wBAAwB,CAAC;AAI/D,QAAA,qCAAqC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,aAAa,EAAE,OAAC;SACX,KAAK,CACF,OAAC,CAAC,MAAM,CAAC;QACL,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;QACvB,MAAM,EAAE,OAAC;aACJ,KAAK,CAAC,gDAA0B,CAAC;aACjC,QAAQ,CAAC,kCAAkC,CAAC;KACpD,CAAC,CACL;SACA,QAAQ,CAAC,iDAAiD,CAAC;CACnE,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,IAAA,2CAA0B,EAAC;IACjE,QAAQ,EAAE,yCAAwB;IAClC,iBAAiB,EAAE,QAAA,qCAAqC;CAC3D,CAAC,CAAC"}
|