@sentry/mcp-server 0.7.1 → 0.9.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.
- package/README.md +13 -5
- package/dist/api-client/client.cjs +2 -2
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +2 -2
- package/dist/api-client/client.test.cjs +3 -3
- package/dist/api-client/client.test.js +3 -3
- package/dist/api-client/index.cjs +3 -2
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +3 -3
- package/dist/api-client/schema.cjs +2 -1
- package/dist/api-client/schema.d.cts +2 -2
- package/dist/api-client/schema.d.ts +2 -2
- package/dist/api-client/schema.js +2 -2
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{client-7aaWrjcF.d.ts → client-1dRfG57H.d.ts} +2 -2
- package/dist/{client-7aaWrjcF.d.ts.map → client-1dRfG57H.d.ts.map} +1 -1
- package/dist/{client-Ch0w22UE.d.cts → client-BsYOQsEI.d.cts} +6 -6
- package/dist/{client-Ch0w22UE.d.cts.map → client-BsYOQsEI.d.cts.map} +1 -1
- package/dist/{client-D9mOWh6s.js → client-CTm4cvI7.js} +2 -3
- package/dist/client-CTm4cvI7.js.map +1 -0
- package/dist/{client-CLuQEpjg.cjs → client-DQ837FXP.cjs} +2 -3
- package/dist/client-DQ837FXP.cjs.map +1 -0
- package/dist/{formatting-C6Py2iOz.js → formatting-BQRAzO5v.js} +25 -11
- package/dist/formatting-BQRAzO5v.js.map +1 -0
- package/dist/{formatting-BmbJ5-Uh.cjs → formatting-C-0bHtbh.cjs} +25 -11
- package/dist/formatting-C-0bHtbh.cjs.map +1 -0
- package/dist/index.cjs +15 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -14
- package/dist/index.js.map +1 -1
- package/dist/internal/formatting.cjs +1 -1
- package/dist/internal/formatting.d.cts +3 -3
- package/dist/internal/formatting.d.cts.map +1 -1
- package/dist/internal/formatting.d.ts +3 -3
- package/dist/internal/formatting.d.ts.map +1 -1
- package/dist/internal/formatting.js +1 -1
- package/dist/internal/issue-helpers.cjs +1 -1
- package/dist/internal/issue-helpers.d.cts.map +1 -1
- package/dist/internal/issue-helpers.d.ts.map +1 -1
- package/dist/internal/issue-helpers.js +1 -1
- package/dist/internal/issue-helpers.test.cjs +2 -2
- package/dist/internal/issue-helpers.test.js +2 -2
- package/dist/{issue-helpers-Cx6bFCUv.js → issue-helpers-CyoHu5j4.js} +3 -1
- package/dist/issue-helpers-CyoHu5j4.js.map +1 -0
- package/dist/{issue-helpers-CdWMhVWJ.cjs → issue-helpers-DbsECZFq.cjs} +3 -1
- package/dist/issue-helpers-DbsECZFq.cjs.map +1 -0
- package/dist/{promptDefinitions-OnJHLqrZ.cjs → promptDefinitions-5jiZMBg5.cjs} +10 -2
- package/dist/promptDefinitions-5jiZMBg5.cjs.map +1 -0
- package/dist/promptDefinitions-CPTadtuI.js +24 -0
- package/dist/promptDefinitions-CPTadtuI.js.map +1 -0
- package/dist/promptDefinitions-Dcz3d9wL.d.cts +26 -0
- package/dist/promptDefinitions-Dcz3d9wL.d.cts.map +1 -0
- package/dist/promptDefinitions-DrGK-v8n.d.ts +26 -0
- package/dist/promptDefinitions-DrGK-v8n.d.ts.map +1 -0
- package/dist/promptDefinitions.cjs +2 -2
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +2 -2
- package/dist/prompts-DgWOD2rU.js +32 -0
- package/dist/prompts-DgWOD2rU.js.map +1 -0
- package/dist/prompts-nfFU-zY-.cjs +39 -0
- package/dist/prompts-nfFU-zY-.cjs.map +1 -0
- package/dist/prompts.cjs +1 -1
- package/dist/prompts.d.cts +21 -11
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +21 -11
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +1 -1
- package/dist/{schema-_xqdSRLo.cjs → schema-BCkBPgjj.cjs} +6 -6
- package/dist/schema-BCkBPgjj.cjs.map +1 -0
- package/dist/schema-CJrk_GUH.js +15 -0
- package/dist/schema-CJrk_GUH.js.map +1 -0
- package/dist/{schema-BbqVXLZS.d.cts → schema-CaJV2aIO.d.cts} +572 -562
- package/dist/schema-CaJV2aIO.d.cts.map +1 -0
- package/dist/{schema-BnIwkBRb.d.ts → schema-DwPOkoSP.d.ts} +520 -510
- package/dist/{schema-BnIwkBRb.d.ts.map → schema-DwPOkoSP.d.ts.map} +1 -1
- package/dist/{schema-BnXdl41H.cjs → schema-KEMqYaQn.cjs} +15 -2
- package/dist/schema-KEMqYaQn.cjs.map +1 -0
- package/dist/{schema-BzPfPMq7.js → schema-nyYqVk4Y.js} +10 -3
- package/dist/schema-nyYqVk4Y.js.map +1 -0
- package/dist/schema.cjs +1 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -1
- package/dist/{server-D35uvgO3.cjs → server-BWoJZj5B.cjs} +40 -10
- package/dist/server-BWoJZj5B.cjs.map +1 -0
- package/dist/{server-zkB6OPEz.js → server-DtNbD1c-.js} +40 -10
- package/dist/server-DtNbD1c-.js.map +1 -0
- package/dist/server.cjs +10 -10
- package/dist/server.d.cts +3 -3
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +3 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +10 -10
- package/dist/{stdio-Be17vc2M.cjs → stdio-BLzMxGqU.cjs} +2 -2
- package/dist/{stdio-Be17vc2M.cjs.map → stdio-BLzMxGqU.cjs.map} +1 -1
- package/dist/{stdio-DQcBQF6y.js → stdio-D4oW-qT6.js} +2 -2
- package/dist/{stdio-DQcBQF6y.js.map → stdio-D4oW-qT6.js.map} +1 -1
- package/dist/test-setup.cjs +2 -2
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +2 -2
- package/dist/test-setup.js.map +1 -1
- package/dist/{toolDefinitions-CfNXEIaX.js → toolDefinitions-BF-D81bS.js} +12 -34
- package/dist/toolDefinitions-BF-D81bS.js.map +1 -0
- package/dist/{toolDefinitions-abNbVXb5.d.ts → toolDefinitions-CCscRQoM.d.ts} +14 -32
- package/dist/toolDefinitions-CCscRQoM.d.ts.map +1 -0
- package/dist/{toolDefinitions-CRtHauHJ.cjs → toolDefinitions-CO65cU86.cjs} +12 -34
- package/dist/toolDefinitions-CO65cU86.cjs.map +1 -0
- package/dist/{toolDefinitions-DPePAe0y.d.cts → toolDefinitions-K_TVqaLU.d.cts} +14 -32
- package/dist/toolDefinitions-K_TVqaLU.d.cts.map +1 -0
- package/dist/toolDefinitions.cjs +2 -2
- package/dist/toolDefinitions.d.cts +1 -1
- package/dist/toolDefinitions.d.ts +1 -1
- package/dist/toolDefinitions.js +2 -2
- package/dist/toolDefinitions.test.cjs +2 -2
- package/dist/toolDefinitions.test.js +2 -2
- package/dist/{tools-DtHRkHKh.js → tools-B8ufMRZx.js} +11 -36
- package/dist/tools-B8ufMRZx.js.map +1 -0
- package/dist/{tools-LuDiLnAX.cjs → tools-BYt-G6p2.cjs} +11 -36
- package/dist/tools-BYt-G6p2.cjs.map +1 -0
- package/dist/tools.cjs +5 -5
- package/dist/tools.d.cts +16 -31
- package/dist/tools.d.cts.map +1 -1
- package/dist/tools.d.ts +16 -31
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +5 -5
- package/dist/tools.test.cjs +33 -70
- package/dist/tools.test.cjs.map +1 -1
- package/dist/tools.test.js +33 -70
- package/dist/tools.test.js.map +1 -1
- package/dist/transports/stdio.cjs +11 -11
- package/dist/transports/stdio.d.cts +3 -3
- package/dist/transports/stdio.d.ts +3 -3
- package/dist/transports/stdio.js +11 -11
- package/dist/{types-BqMKv2m7.d.cts → types-CPuN4Qmi.d.cts} +2 -2
- package/dist/{types-BqMKv2m7.d.cts.map → types-CPuN4Qmi.d.cts.map} +1 -1
- package/dist/{types-RxedZjnY.d.ts → types-Ds7qzCBB.d.ts} +2 -2
- package/dist/{types-RxedZjnY.d.ts.map → types-Ds7qzCBB.d.ts.map} +1 -1
- package/dist/{types-X3ot7x0d.d.ts → types-DyM4kaGZ.d.ts} +7 -6
- package/dist/types-DyM4kaGZ.d.ts.map +1 -0
- package/dist/{types-DFKY4nvR.d.cts → types-TaJcaAVg.d.cts} +7 -6
- package/dist/types-TaJcaAVg.d.cts.map +1 -0
- package/dist/types.d.cts +4 -4
- package/dist/types.d.ts +4 -4
- package/dist/{version-BkjSM_wB.cjs → version-B0O4KvZ9.cjs} +2 -2
- package/dist/{version-BkjSM_wB.cjs.map → version-B0O4KvZ9.cjs.map} +1 -1
- package/dist/version-dTEKpaGt.js +6 -0
- package/dist/{version-BMRCgO0F.js.map → version-dTEKpaGt.js.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{vi.ClIskdbk-TqmAThAO.cjs → vi.ClIskdbk-Bs263gvI.cjs} +5 -5
- package/dist/{vi.ClIskdbk-TqmAThAO.cjs.map → vi.ClIskdbk-Bs263gvI.cjs.map} +1 -1
- package/dist/{vi.ClIskdbk-BbUmO3mx.js → vi.ClIskdbk-De9q3829.js} +5 -5
- package/dist/{vi.ClIskdbk-BbUmO3mx.js.map → vi.ClIskdbk-De9q3829.js.map} +1 -1
- package/package.json +6 -6
- package/dist/client-CLuQEpjg.cjs.map +0 -1
- package/dist/client-D9mOWh6s.js.map +0 -1
- package/dist/formatting-BmbJ5-Uh.cjs.map +0 -1
- package/dist/formatting-C6Py2iOz.js.map +0 -1
- package/dist/issue-helpers-CdWMhVWJ.cjs.map +0 -1
- package/dist/issue-helpers-Cx6bFCUv.js.map +0 -1
- package/dist/promptDefinitions-C85r2wAk.d.ts +0 -15
- package/dist/promptDefinitions-C85r2wAk.d.ts.map +0 -1
- package/dist/promptDefinitions-C9aGYWZ6.js +0 -16
- package/dist/promptDefinitions-C9aGYWZ6.js.map +0 -1
- package/dist/promptDefinitions-CkGJr3c4.d.cts +0 -15
- package/dist/promptDefinitions-CkGJr3c4.d.cts.map +0 -1
- package/dist/promptDefinitions-OnJHLqrZ.cjs.map +0 -1
- package/dist/prompts--QCiXmR2.cjs +0 -26
- package/dist/prompts--QCiXmR2.cjs.map +0 -1
- package/dist/prompts-Tz-qECa0.js +0 -19
- package/dist/prompts-Tz-qECa0.js.map +0 -1
- package/dist/schema-BbqVXLZS.d.cts.map +0 -1
- package/dist/schema-BnXdl41H.cjs.map +0 -1
- package/dist/schema-BzPfPMq7.js.map +0 -1
- package/dist/schema-_xqdSRLo.cjs.map +0 -1
- package/dist/schema-pZrPEvtp.js +0 -15
- package/dist/schema-pZrPEvtp.js.map +0 -1
- package/dist/server-D35uvgO3.cjs.map +0 -1
- package/dist/server-zkB6OPEz.js.map +0 -1
- package/dist/toolDefinitions-CRtHauHJ.cjs.map +0 -1
- package/dist/toolDefinitions-CfNXEIaX.js.map +0 -1
- package/dist/toolDefinitions-DPePAe0y.d.cts.map +0 -1
- package/dist/toolDefinitions-abNbVXb5.d.ts.map +0 -1
- package/dist/tools-DtHRkHKh.js.map +0 -1
- package/dist/tools-LuDiLnAX.cjs.map +0 -1
- package/dist/types-DFKY4nvR.d.cts.map +0 -1
- package/dist/types-X3ot7x0d.d.ts.map +0 -1
- package/dist/version-BMRCgO0F.js +0 -6
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
//#region src/prompts.ts
|
|
4
|
+
const PROMPT_HANDLERS = {
|
|
5
|
+
find_errors_in_file: async (context, { organizationSlug, filename }) => [
|
|
6
|
+
`I want to find errors in Sentry, within the organization ${organizationSlug}, for the file ${filename}`,
|
|
7
|
+
"",
|
|
8
|
+
"You should use the tool `search_errors` to find errors in Sentry.",
|
|
9
|
+
"",
|
|
10
|
+
"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should pass it in with its direct parent.",
|
|
11
|
+
"For example: if the file is `app/utils/index.ts`, you should pass in `utils/index.ts` or `app/utils/index.ts` depending on if the file is actually part of the applications source path."
|
|
12
|
+
].join("\n"),
|
|
13
|
+
fix_issue_with_seer: async (context, { organizationSlug, issueId, issueUrl }) => {
|
|
14
|
+
let issueMessage;
|
|
15
|
+
if (issueUrl) issueMessage = `The Sentry issue is ${issueUrl}`;
|
|
16
|
+
else if (organizationSlug && issueId) issueMessage = `The Sentry issue is ${issueId} in the organization ${organizationSlug}`;
|
|
17
|
+
else throw new Error("Either issueUrl or organizationSlug and issueId must be provided");
|
|
18
|
+
return [
|
|
19
|
+
`I want to use Seer to fix an issue in Sentry.`,
|
|
20
|
+
"",
|
|
21
|
+
issueMessage,
|
|
22
|
+
"",
|
|
23
|
+
"1. Call the tool `get_seer_issue_fix_status` to see if its already in progress.",
|
|
24
|
+
"2a. If it isn't, you can start it with the tool `begin_seer_issue_fix`.",
|
|
25
|
+
"2b. If it is, you can call the tool `get_seer_issue_fix_status` to check the status of the analysis.",
|
|
26
|
+
"3. Repeat step 2b until the task has completed.",
|
|
27
|
+
"4. Help me apply the fix to my application, if you are able to. Think carefully when doing this."
|
|
28
|
+
].join("\n");
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
Object.defineProperty(exports, 'PROMPT_HANDLERS', {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return PROMPT_HANDLERS;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=prompts-nfFU-zY-.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts-nfFU-zY-.cjs","names":["issueMessage: string"],"sources":["../src/prompts.ts"],"sourcesContent":["import type { PromptHandlers } from \"./types\";\n\nexport const PROMPT_HANDLERS = {\n find_errors_in_file: async (context, { organizationSlug, filename }) =>\n [\n `I want to find errors in Sentry, within the organization ${organizationSlug}, for the file ${filename}`,\n \"\",\n \"You should use the tool `search_errors` to find errors in Sentry.\",\n \"\",\n \"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should pass it in with its direct parent.\",\n \"For example: if the file is `app/utils/index.ts`, you should pass in `utils/index.ts` or `app/utils/index.ts` depending on if the file is actually part of the applications source path.\",\n ].join(\"\\n\"),\n fix_issue_with_seer: async (\n context,\n { organizationSlug, issueId, issueUrl },\n ) => {\n let issueMessage: string;\n if (issueUrl) {\n issueMessage = `The Sentry issue is ${issueUrl}`;\n } else if (organizationSlug && issueId) {\n issueMessage = `The Sentry issue is ${issueId} in the organization ${organizationSlug}`;\n } else {\n // TODO: this should be some kind of error message I imagine...\n throw new Error(\n \"Either issueUrl or organizationSlug and issueId must be provided\",\n );\n }\n return [\n `I want to use Seer to fix an issue in Sentry.`,\n \"\",\n issueMessage,\n \"\",\n \"1. Call the tool `get_seer_issue_fix_status` to see if its already in progress.\",\n \"2a. If it isn't, you can start it with the tool `begin_seer_issue_fix`.\",\n \"2b. If it is, you can call the tool `get_seer_issue_fix_status` to check the status of the analysis.\",\n \"3. Repeat step 2b until the task has completed.\",\n \"4. Help me apply the fix to my application, if you are able to. Think carefully when doing this.\",\n ].join(\"\\n\");\n },\n} satisfies PromptHandlers;\n"],"mappings":";;;AAEA,MAAa,kBAAkB;CAC7B,qBAAqB,OAAO,SAAS,EAAE,kBAAkB,UAAU,KACjE;GACG,2DAA2D,iBAAiB,iBAAiB,SAAS;EACvG;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACd,qBAAqB,OACnB,SACA,EAAE,kBAAkB,SAAS,UAAU,KACpC;EACH,IAAIA;AACJ,MAAI,SACF,iBAAgB,sBAAsB,SAAS;WACtC,oBAAoB,QAC7B,iBAAgB,sBAAsB,QAAQ,uBAAuB,iBAAiB;MAGtF,OAAM,IAAI,MACR;AAGJ,SAAO;IACJ;GACD;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;AACF"}
|
package/dist/prompts.cjs
CHANGED
package/dist/prompts.d.cts
CHANGED
|
@@ -1,22 +1,32 @@
|
|
|
1
|
+
import "./promptDefinitions-Dcz3d9wL.cjs";
|
|
2
|
+
import "./toolDefinitions-K_TVqaLU.cjs";
|
|
3
|
+
import { ServerContext } from "./types-TaJcaAVg.cjs";
|
|
4
|
+
|
|
1
5
|
//#region src/prompts.d.ts
|
|
2
6
|
declare const PROMPT_HANDLERS: {
|
|
3
|
-
find_errors_in_file: ({
|
|
7
|
+
find_errors_in_file: (context: ServerContext, {
|
|
4
8
|
organizationSlug,
|
|
5
9
|
filename
|
|
6
10
|
}: {
|
|
7
11
|
organizationSlug: string;
|
|
8
12
|
filename: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
issueId?: unknown;
|
|
14
|
+
issueUrl?: unknown;
|
|
15
|
+
}) => Promise<string>;
|
|
16
|
+
fix_issue_with_seer: (context: ServerContext, {
|
|
17
|
+
organizationSlug,
|
|
18
|
+
issueId,
|
|
19
|
+
issueUrl
|
|
20
|
+
}: {
|
|
21
|
+
organizationSlug: string | undefined;
|
|
22
|
+
issueId: string | undefined;
|
|
23
|
+
issueUrl: string | undefined;
|
|
24
|
+
filename?: unknown;
|
|
25
|
+
}) => Promise<string>;
|
|
26
|
+
};
|
|
19
27
|
|
|
28
|
+
//#endregion
|
|
20
29
|
//# sourceMappingURL=prompts.d.ts.map
|
|
30
|
+
|
|
21
31
|
export { PROMPT_HANDLERS };
|
|
22
32
|
//# sourceMappingURL=prompts.d.cts.map
|
package/dist/prompts.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.cts","names":[],"sources":["../src/prompts.ts"],"sourcesContent":null,"mappings":"
|
|
1
|
+
{"version":3,"file":"prompts.d.cts","names":[],"sources":["../src/prompts.ts"],"sourcesContent":null,"mappings":";;;;;cAEa;iCAqCa;;;EAAA;;;;IArCb,QAAA,CAAA,EAAA,OAqCa;EAAA,CAAA,EAAA,UAAA,CAAA,MAAA,CAAA;EAAA,mBAAA,EAAA,CAAA,OAAA,eAAA,EAAA;IAAA,gBAAA;IAAA,OAAA;IAAA;GAAA,EAAA"}
|
package/dist/prompts.d.ts
CHANGED
|
@@ -1,22 +1,32 @@
|
|
|
1
|
+
import "./promptDefinitions-DrGK-v8n.js";
|
|
2
|
+
import "./toolDefinitions-CCscRQoM.js";
|
|
3
|
+
import { ServerContext } from "./types-DyM4kaGZ.js";
|
|
4
|
+
|
|
1
5
|
//#region src/prompts.d.ts
|
|
2
6
|
declare const PROMPT_HANDLERS: {
|
|
3
|
-
find_errors_in_file: ({
|
|
7
|
+
find_errors_in_file: (context: ServerContext, {
|
|
4
8
|
organizationSlug,
|
|
5
9
|
filename
|
|
6
10
|
}: {
|
|
7
11
|
organizationSlug: string;
|
|
8
12
|
filename: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
issueId?: unknown;
|
|
14
|
+
issueUrl?: unknown;
|
|
15
|
+
}) => Promise<string>;
|
|
16
|
+
fix_issue_with_seer: (context: ServerContext, {
|
|
17
|
+
organizationSlug,
|
|
18
|
+
issueId,
|
|
19
|
+
issueUrl
|
|
20
|
+
}: {
|
|
21
|
+
organizationSlug: string | undefined;
|
|
22
|
+
issueId: string | undefined;
|
|
23
|
+
issueUrl: string | undefined;
|
|
24
|
+
filename?: unknown;
|
|
25
|
+
}) => Promise<string>;
|
|
26
|
+
};
|
|
19
27
|
|
|
28
|
+
//#endregion
|
|
20
29
|
//# sourceMappingURL=prompts.d.ts.map
|
|
30
|
+
|
|
21
31
|
export { PROMPT_HANDLERS };
|
|
22
32
|
//# sourceMappingURL=prompts.d.ts.map
|
package/dist/prompts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","names":[],"sources":["../src/prompts.ts"],"sourcesContent":null,"mappings":"
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","names":[],"sources":["../src/prompts.ts"],"sourcesContent":null,"mappings":";;;;;cAEa;iCAqCa;;;EAAA;;;;IArCb,QAAA,CAAA,EAAA,OAqCa;EAAA,CAAA,EAAA,UAAA,CAAA,MAAA,CAAA;EAAA,mBAAA,EAAA,CAAA,OAAA,eAAA,EAAA;IAAA,gBAAA;IAAA,OAAA;IAAA;GAAA,EAAA"}
|
package/dist/prompts.js
CHANGED
|
@@ -3,11 +3,11 @@ const require_chunk = require('./chunk-BtT13l48.cjs');
|
|
|
3
3
|
const zod = require_chunk.__toESM(require("zod"));
|
|
4
4
|
|
|
5
5
|
//#region src/schema.ts
|
|
6
|
-
const ParamOrganizationSlug = zod.z.string().describe("The organization's slug. This will default to the first org you have access to.");
|
|
7
|
-
const ParamTeamSlug = zod.z.string().describe("The team's slug. This will default to the first team you have access to.");
|
|
8
|
-
const ParamProjectSlug = zod.z.string().describe("The project's slug. This will default to all projects you have access to. It is encouraged to specify this when possible.");
|
|
9
|
-
const ParamIssueShortId = zod.z.string().describe("The Issue ID. e.g. `PROJECT-1Z43`");
|
|
10
|
-
const ParamPlatform = zod.z.string().describe("The platform for the project (e.g., python, javascript, react, etc.)");
|
|
6
|
+
const ParamOrganizationSlug = zod.z.string().toLowerCase().describe("The organization's slug. This will default to the first org you have access to.");
|
|
7
|
+
const ParamTeamSlug = zod.z.string().toLowerCase().describe("The team's slug. This will default to the first team you have access to.");
|
|
8
|
+
const ParamProjectSlug = zod.z.string().toLowerCase().describe("The project's slug. This will default to all projects you have access to. It is encouraged to specify this when possible.");
|
|
9
|
+
const ParamIssueShortId = zod.z.string().toUpperCase().describe("The Issue ID. e.g. `PROJECT-1Z43`");
|
|
10
|
+
const ParamPlatform = zod.z.string().toLowerCase().describe("The platform for the project (e.g., python, javascript, react, etc.)");
|
|
11
11
|
const ParamTransaction = zod.z.string().describe("The transaction name (also known as the endpoint, or route name).");
|
|
12
12
|
const ParamQuery = zod.z.string().describe(`The search query to apply. Use the \`help(subject="query_syntax")\` tool to get more information about the query syntax rather than guessing.`);
|
|
13
13
|
const ParamRegionUrl = zod.z.string().describe("The region URL for the organization you're querying, if known.");
|
|
@@ -61,4 +61,4 @@ Object.defineProperty(exports, 'ParamTransaction', {
|
|
|
61
61
|
return ParamTransaction;
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
//# sourceMappingURL=schema-
|
|
64
|
+
//# sourceMappingURL=schema-BCkBPgjj.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-BCkBPgjj.cjs","names":[],"sources":["../src/schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const ParamOrganizationSlug = z\n .string()\n .toLowerCase()\n .describe(\n \"The organization's slug. This will default to the first org you have access to.\",\n );\n\nexport const ParamTeamSlug = z\n .string()\n .toLowerCase()\n .describe(\n \"The team's slug. This will default to the first team you have access to.\",\n );\n\nexport const ParamProjectSlug = z\n .string()\n .toLowerCase()\n .describe(\n \"The project's slug. This will default to all projects you have access to. It is encouraged to specify this when possible.\",\n );\n\nexport const ParamIssueShortId = z\n .string()\n .toUpperCase()\n .describe(\"The Issue ID. e.g. `PROJECT-1Z43`\");\n\nexport const ParamPlatform = z\n .string()\n .toLowerCase()\n .describe(\n \"The platform for the project (e.g., python, javascript, react, etc.)\",\n );\n\nexport const ParamTransaction = z\n .string()\n .describe(\n \"The transaction name (also known as the endpoint, or route name).\",\n );\n\nexport const ParamQuery = z\n .string()\n .describe(\n `The search query to apply. Use the \\`help(subject=\"query_syntax\")\\` tool to get more information about the query syntax rather than guessing.`,\n );\n\nexport const ParamRegionUrl = z\n .string()\n .describe(\"The region URL for the organization you're querying, if known.\");\n"],"mappings":";;;;;AAEA,MAAa,wBAAwB,MAClC,QAAQ,CACR,aAAa,CACb,SACC,kFACD;AAEH,MAAa,gBAAgB,MAC1B,QAAQ,CACR,aAAa,CACb,SACC,2EACD;AAEH,MAAa,mBAAmB,MAC7B,QAAQ,CACR,aAAa,CACb,SACC,4HACD;AAEH,MAAa,oBAAoB,MAC9B,QAAQ,CACR,aAAa,CACb,SAAS,oCAAoC;AAEhD,MAAa,gBAAgB,MAC1B,QAAQ,CACR,aAAa,CACb,SACC,uEACD;AAEH,MAAa,mBAAmB,MAC7B,QAAQ,CACR,SACC,oEACD;AAEH,MAAa,aAAa,MACvB,QAAQ,CACR,UACE,+IACF;AAEH,MAAa,iBAAiB,MAC3B,QAAQ,CACR,SAAS,iEAAiE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/schema.ts
|
|
4
|
+
const ParamOrganizationSlug = z.string().toLowerCase().describe("The organization's slug. This will default to the first org you have access to.");
|
|
5
|
+
const ParamTeamSlug = z.string().toLowerCase().describe("The team's slug. This will default to the first team you have access to.");
|
|
6
|
+
const ParamProjectSlug = z.string().toLowerCase().describe("The project's slug. This will default to all projects you have access to. It is encouraged to specify this when possible.");
|
|
7
|
+
const ParamIssueShortId = z.string().toUpperCase().describe("The Issue ID. e.g. `PROJECT-1Z43`");
|
|
8
|
+
const ParamPlatform = z.string().toLowerCase().describe("The platform for the project (e.g., python, javascript, react, etc.)");
|
|
9
|
+
const ParamTransaction = z.string().describe("The transaction name (also known as the endpoint, or route name).");
|
|
10
|
+
const ParamQuery = z.string().describe(`The search query to apply. Use the \`help(subject="query_syntax")\` tool to get more information about the query syntax rather than guessing.`);
|
|
11
|
+
const ParamRegionUrl = z.string().describe("The region URL for the organization you're querying, if known.");
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ParamIssueShortId, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamQuery, ParamRegionUrl, ParamTeamSlug, ParamTransaction };
|
|
15
|
+
//# sourceMappingURL=schema-CJrk_GUH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-CJrk_GUH.js","names":[],"sources":["../src/schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const ParamOrganizationSlug = z\n .string()\n .toLowerCase()\n .describe(\n \"The organization's slug. This will default to the first org you have access to.\",\n );\n\nexport const ParamTeamSlug = z\n .string()\n .toLowerCase()\n .describe(\n \"The team's slug. This will default to the first team you have access to.\",\n );\n\nexport const ParamProjectSlug = z\n .string()\n .toLowerCase()\n .describe(\n \"The project's slug. This will default to all projects you have access to. It is encouraged to specify this when possible.\",\n );\n\nexport const ParamIssueShortId = z\n .string()\n .toUpperCase()\n .describe(\"The Issue ID. e.g. `PROJECT-1Z43`\");\n\nexport const ParamPlatform = z\n .string()\n .toLowerCase()\n .describe(\n \"The platform for the project (e.g., python, javascript, react, etc.)\",\n );\n\nexport const ParamTransaction = z\n .string()\n .describe(\n \"The transaction name (also known as the endpoint, or route name).\",\n );\n\nexport const ParamQuery = z\n .string()\n .describe(\n `The search query to apply. Use the \\`help(subject=\"query_syntax\")\\` tool to get more information about the query syntax rather than guessing.`,\n );\n\nexport const ParamRegionUrl = z\n .string()\n .describe(\"The region URL for the organization you're querying, if known.\");\n"],"mappings":";;;AAEA,MAAa,wBAAwB,EAClC,QAAQ,CACR,aAAa,CACb,SACC,kFACD;AAEH,MAAa,gBAAgB,EAC1B,QAAQ,CACR,aAAa,CACb,SACC,2EACD;AAEH,MAAa,mBAAmB,EAC7B,QAAQ,CACR,aAAa,CACb,SACC,4HACD;AAEH,MAAa,oBAAoB,EAC9B,QAAQ,CACR,aAAa,CACb,SAAS,oCAAoC;AAEhD,MAAa,gBAAgB,EAC1B,QAAQ,CACR,aAAa,CACb,SACC,uEACD;AAEH,MAAa,mBAAmB,EAC7B,QAAQ,CACR,SACC,oEACD;AAEH,MAAa,aAAa,EACvB,QAAQ,CACR,UACE,+IACF;AAEH,MAAa,iBAAiB,EAC3B,QAAQ,CACR,SAAS,iEAAiE"}
|