@qawolf/api-contracts 0.105.0 → 0.109.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.
Files changed (98) hide show
  1. package/dist/v1/agent/get.d.ts +1 -1
  2. package/dist/v1/agent/get.d.ts.map +1 -1
  3. package/dist/v1/agent/get.js +3 -3
  4. package/dist/v1/agent/get.js.map +1 -1
  5. package/dist/v1/agent/wait.d.ts +1 -0
  6. package/dist/v1/agent/wait.d.ts.map +1 -1
  7. package/dist/v1/agent/wait.js +1 -0
  8. package/dist/v1/agent/wait.js.map +1 -1
  9. package/dist/v1/build/index.d.ts +24 -0
  10. package/dist/v1/build/index.d.ts.map +1 -1
  11. package/dist/v1/build/index.js +2 -0
  12. package/dist/v1/build/index.js.map +1 -1
  13. package/dist/v1/build/requestDownload.d.ts +29 -0
  14. package/dist/v1/build/requestDownload.d.ts.map +1 -0
  15. package/dist/v1/build/requestDownload.js +37 -0
  16. package/dist/v1/build/requestDownload.js.map +1 -0
  17. package/dist/v1/deployment/verdict.d.ts +21 -0
  18. package/dist/v1/deployment/verdict.d.ts.map +1 -1
  19. package/dist/v1/deployment/verdict.js +7 -0
  20. package/dist/v1/deployment/verdict.js.map +1 -1
  21. package/dist/v1/deployment/verdictParts.js +1 -1
  22. package/dist/v1/deployment/verdictParts.js.map +1 -1
  23. package/dist/v1/environment/getVariable.d.ts +2 -1
  24. package/dist/v1/environment/getVariable.d.ts.map +1 -1
  25. package/dist/v1/environment/getVariable.js +4 -1
  26. package/dist/v1/environment/getVariable.js.map +1 -1
  27. package/dist/v1/index.d.ts +444 -8
  28. package/dist/v1/index.d.ts.map +1 -1
  29. package/dist/v1/index.js +2 -17
  30. package/dist/v1/index.js.map +1 -1
  31. package/dist/v1/issue/addFlows.d.ts +5 -0
  32. package/dist/v1/issue/addFlows.d.ts.map +1 -1
  33. package/dist/v1/issue/attachFiles.d.ts +71 -0
  34. package/dist/v1/issue/attachFiles.d.ts.map +1 -0
  35. package/dist/v1/issue/attachFiles.js +31 -0
  36. package/dist/v1/issue/attachFiles.js.map +1 -0
  37. package/dist/v1/issue/comment.d.ts +45 -0
  38. package/dist/v1/issue/comment.d.ts.map +1 -0
  39. package/dist/v1/issue/comment.js +36 -0
  40. package/dist/v1/issue/comment.js.map +1 -0
  41. package/dist/v1/issue/commentResource.d.ts +24 -0
  42. package/dist/v1/issue/commentResource.d.ts.map +1 -0
  43. package/dist/v1/issue/commentResource.js +28 -0
  44. package/dist/v1/issue/commentResource.js.map +1 -0
  45. package/dist/v1/issue/contracts.d.ts +765 -0
  46. package/dist/v1/issue/contracts.d.ts.map +1 -0
  47. package/dist/v1/issue/contracts.js +24 -0
  48. package/dist/v1/issue/contracts.js.map +1 -0
  49. package/dist/v1/issue/create.d.ts +6 -0
  50. package/dist/v1/issue/create.d.ts.map +1 -1
  51. package/dist/v1/issue/create.js +4 -0
  52. package/dist/v1/issue/create.js.map +1 -1
  53. package/dist/v1/issue/decideSuggestion.d.ts +5 -0
  54. package/dist/v1/issue/decideSuggestion.d.ts.map +1 -1
  55. package/dist/v1/issue/files.d.ts +11 -0
  56. package/dist/v1/issue/files.d.ts.map +1 -0
  57. package/dist/v1/issue/files.js +21 -0
  58. package/dist/v1/issue/files.js.map +1 -0
  59. package/dist/v1/issue/index.d.ts +15 -0
  60. package/dist/v1/issue/index.d.ts.map +1 -1
  61. package/dist/v1/issue/index.js +5 -0
  62. package/dist/v1/issue/index.js.map +1 -1
  63. package/dist/v1/issue/listComments.d.ts +47 -0
  64. package/dist/v1/issue/listComments.d.ts.map +1 -0
  65. package/dist/v1/issue/listComments.js +33 -0
  66. package/dist/v1/issue/listComments.js.map +1 -0
  67. package/dist/v1/issue/removeFlows.d.ts +5 -0
  68. package/dist/v1/issue/removeFlows.d.ts.map +1 -1
  69. package/dist/v1/issue/update.d.ts +5 -0
  70. package/dist/v1/issue/update.d.ts.map +1 -1
  71. package/dist/v1/mcpServer/connect.d.ts +1 -0
  72. package/dist/v1/mcpServer/connect.d.ts.map +1 -1
  73. package/dist/v1/mcpServer/connect.js +3 -0
  74. package/dist/v1/mcpServer/connect.js.map +1 -1
  75. package/dist/v1/mcpToolDescription.js +1 -1
  76. package/dist/v1/mcpToolDescription.js.map +1 -1
  77. package/dist/v1/run/diagnose.d.ts +5 -0
  78. package/dist/v1/run/diagnose.d.ts.map +1 -1
  79. package/dist/v1/run/get.d.ts +7 -1
  80. package/dist/v1/run/get.d.ts.map +1 -1
  81. package/dist/v1/run/get.js +15 -1
  82. package/dist/v1/run/get.js.map +1 -1
  83. package/dist/v1/run/wait.d.ts +7 -0
  84. package/dist/v1/run/wait.d.ts.map +1 -0
  85. package/dist/v1/run/wait.js +5 -0
  86. package/dist/v1/run/wait.js.map +1 -0
  87. package/dist/v1/runner/catalog.d.ts +1 -1
  88. package/dist/v1/runner/index.d.ts +1 -1
  89. package/dist/v1/runner/index.js +1 -1
  90. package/dist/v1/runner/index.js.map +1 -1
  91. package/dist/v1/runner/runFlow.d.ts.map +1 -1
  92. package/dist/v1/runner/runFlow.js +2 -8
  93. package/dist/v1/runner/runFlow.js.map +1 -1
  94. package/dist/v1/sharedSchemas.d.ts +3 -1
  95. package/dist/v1/sharedSchemas.d.ts.map +1 -1
  96. package/dist/v1/sharedSchemas.js +3 -1
  97. package/dist/v1/sharedSchemas.js.map +1 -1
  98. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAahD,eAAO,MAAM,kBAAkB,GAC7B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { makeAddFlowsToIssueContract } from "./addFlows.js";
2
+ import { makeAttachFilesToIssueContract } from "./attachFiles.js";
3
+ import { makeCommentOnIssueContract } from "./comment.js";
4
+ import { makeCreateIssueContract } from "./create.js";
5
+ import { makeDecideSuggestionContract } from "./decideSuggestion.js";
6
+ import { makeFindIssuesContract, makeGetIssueContract } from "./index.js";
7
+ import { makeListIssueActivityContract } from "./listActivity.js";
8
+ import { makeListIssueCommentsContract } from "./listComments.js";
9
+ import { makeRemoveFlowsFromIssueContract } from "./removeFlows.js";
10
+ import { makeUpdateIssueContract } from "./update.js";
11
+ export const makeIssueContracts = (ids) => ({
12
+ addFlows: makeAddFlowsToIssueContract(ids),
13
+ attachFiles: makeAttachFilesToIssueContract(ids),
14
+ comment: makeCommentOnIssueContract(ids),
15
+ create: makeCreateIssueContract(ids),
16
+ decideSuggestion: makeDecideSuggestionContract(ids),
17
+ find: makeFindIssuesContract(ids),
18
+ get: makeGetIssueContract(ids),
19
+ listActivity: makeListIssueActivityContract(ids),
20
+ listComments: makeListIssueCommentsContract(ids),
21
+ removeFlows: makeRemoveFlowsFromIssueContract(ids),
22
+ update: makeUpdateIssueContract(ids),
23
+ });
24
+ //# sourceMappingURL=contracts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/v1/issue/contracts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAMhC,GAOD,EAAE,EAAE,CAAC,CAAC;IACL,QAAQ,EAAE,2BAA2B,CAAC,GAAG,CAAC;IAC1C,WAAW,EAAE,8BAA8B,CAAC,GAAG,CAAC;IAChD,OAAO,EAAE,0BAA0B,CAAC,GAAG,CAAC;IACxC,MAAM,EAAE,uBAAuB,CAAC,GAAG,CAAC;IACpC,gBAAgB,EAAE,4BAA4B,CAAC,GAAG,CAAC;IACnD,IAAI,EAAE,sBAAsB,CAAC,GAAG,CAAC;IACjC,GAAG,EAAE,oBAAoB,CAAC,GAAG,CAAC;IAC9B,YAAY,EAAE,6BAA6B,CAAC,GAAG,CAAC;IAChD,YAAY,EAAE,6BAA6B,CAAC,GAAG,CAAC;IAChD,WAAW,EAAE,gCAAgC,CAAC,GAAG,CAAC;IAClD,MAAM,EAAE,uBAAuB,CAAC,GAAG,CAAC;CACrC,CAAC,CAAC"}
@@ -19,6 +19,7 @@ export declare const makeCreateIssueContract: <EnvironmentId extends PublicIdSch
19
19
  };
20
20
  readonly description: string;
21
21
  readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
22
+ filePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
23
  type: z.ZodLiteral<"bug">;
23
24
  description: z.ZodOptional<z.ZodString>;
24
25
  name: z.ZodString;
@@ -81,6 +82,11 @@ export declare const makeCreateIssueContract: <EnvironmentId extends PublicIdSch
81
82
  coveredFlowIds: z.ZodArray<FlowId>;
82
83
  createdAt: z.ZodCoercedDate<unknown>;
83
84
  description: z.ZodString;
85
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
86
+ fileId: z.ZodString;
87
+ name: z.ZodString;
88
+ sizeBytes: z.ZodNumber;
89
+ }, z.core.$strip>>>;
84
90
  issueId: IssueId;
85
91
  name: z.ZodString;
86
92
  number: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/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
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { attachedFilePathsDescription, attachedFilePathsSchema, } from "./files.js";
2
3
  import { issuePrioritySchema, makeIssueResourceSchema } from "./index.js";
3
4
  export const makeCreateIssueContract = (ids) => {
4
5
  const commonFields = {
@@ -18,6 +19,9 @@ export const makeCreateIssueContract = (ids) => {
18
19
  const input = z.discriminatedUnion("type", [
19
20
  z.object({
20
21
  ...commonFields,
22
+ filePaths: attachedFilePathsSchema
23
+ .optional()
24
+ .describe(attachedFilePathsDescription),
21
25
  type: z.literal("bug"),
22
26
  }),
23
27
  z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/v1/issue/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAMrC,GAMD,EAAE,EAAE;IACH,MAAM,YAAY,GAAG;QACnB,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,sIAAsI,CACvI;QACH,wEAAwE;QACxE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QACvC,QAAQ,EAAE,mBAAmB;aAC1B,QAAQ,EAAE;aACV,QAAQ,CACP,oEAAoE,CACrE;QACH,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,0GAA0G,CAC3G;KACJ,CAAC;IACF,MAAM,KAAK,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;QACzC,CAAC,CAAC,MAAM,CAAC;YACP,GAAG,YAAY;YACf,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;SACvB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coveredFlowIds: z.ZodArray<FlowId>;
40
40
  createdAt: z.ZodCoercedDate<unknown>;
41
41
  description: z.ZodString;
42
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
43
+ fileId: z.ZodString;
44
+ name: z.ZodString;
45
+ sizeBytes: z.ZodNumber;
46
+ }, z.core.$strip>>>;
42
47
  issueId: IssueId;
43
48
  name: z.ZodString;
44
49
  number: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"decideSuggestion.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/decideSuggestion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,4BAA4B,GACvC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDA,CAAC"}
1
+ {"version":3,"file":"decideSuggestion.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/decideSuggestion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,4BAA4B,GACvC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDA,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const maxAttachedFilesPerRequest = 10;
3
+ export declare const maxAttachedFileSizeBytes = 100000000;
4
+ export declare const attachedFilePathsSchema: z.ZodArray<z.ZodString>;
5
+ export declare const attachedFilePathsDescription: string;
6
+ export declare const issueFileSchema: z.ZodObject<{
7
+ fileId: z.ZodString;
8
+ name: z.ZodString;
9
+ sizeBytes: z.ZodNumber;
10
+ }, z.core.$strip>;
11
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C,eAAO,MAAM,wBAAwB,YAAc,CAAC;AAEpD,eAAO,MAAM,uBAAuB,yBAOjC,CAAC;AAEJ,eAAO,MAAM,4BAA4B,QAIqC,CAAC;AAE/E,eAAO,MAAM,eAAe;;;;iBAQ1B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ import { teamStoragePathSchema } from "../file/path.js";
3
+ export const maxAttachedFilesPerRequest = 10;
4
+ export const maxAttachedFileSizeBytes = 100_000_000;
5
+ export const attachedFilePathsSchema = z
6
+ .array(teamStoragePathSchema)
7
+ .min(1)
8
+ .max(maxAttachedFilesPerRequest)
9
+ .refine((filePaths) => new Set(filePaths).size === filePaths.length, "filePaths must be unique");
10
+ export const attachedFilePathsDescription = "Paths of files in the team's storage to attach to the bug report, such as the files the bug was reproduced with. " +
11
+ `At most ${maxAttachedFilesPerRequest} files, each at most 100 MB. ` +
12
+ "QA Wolf keeps a copy of each file as it is now, so later changes to the original do not change the report. " +
13
+ "If any path has no file, nothing is attached and the error names the path.";
14
+ export const issueFileSchema = z.object({
15
+ fileId: z.string().describe("The id of the attached file."),
16
+ name: z
17
+ .string()
18
+ .describe("The file's name, taken from the last segment of the path it was attached from."),
19
+ sizeBytes: z.number().int().nonnegative(),
20
+ });
21
+ //# sourceMappingURL=files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/v1/issue/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAE7C,MAAM,CAAC,MAAM,wBAAwB,GAAG,WAAW,CAAC;AAEpD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,KAAK,CAAC,qBAAqB,CAAC;KAC5B,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,0BAA0B,CAAC;KAC/B,MAAM,CACL,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,MAAM,EAC3D,0BAA0B,CAC3B,CAAC;AAEJ,MAAM,CAAC,MAAM,4BAA4B,GACvC,mHAAmH;IACnH,WAAW,0BAA0B,+BAA+B;IACpE,6GAA6G;IAC7G,4EAA4E,CAAC;AAE/E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC3D,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,gFAAgF,CACjF;IACH,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC1C,CAAC,CAAC"}
@@ -25,6 +25,11 @@ export declare const makeIssueResourceSchema: <EnvironmentId extends PublicIdSch
25
25
  coveredFlowIds: z.ZodArray<FlowId>;
26
26
  createdAt: z.ZodCoercedDate<unknown>;
27
27
  description: z.ZodString;
28
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
29
+ fileId: z.ZodString;
30
+ name: z.ZodString;
31
+ sizeBytes: z.ZodNumber;
32
+ }, z.core.$strip>>>;
28
33
  issueId: IssueId;
29
34
  name: z.ZodString;
30
35
  number: z.ZodNumber;
@@ -102,6 +107,11 @@ export declare const makeFindIssuesContract: <EnvironmentId extends PublicIdSche
102
107
  coveredFlowIds: z.ZodArray<FlowId>;
103
108
  createdAt: z.ZodCoercedDate<unknown>;
104
109
  description: z.ZodString;
110
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
111
+ fileId: z.ZodString;
112
+ name: z.ZodString;
113
+ sizeBytes: z.ZodNumber;
114
+ }, z.core.$strip>>>;
105
115
  issueId: IssueId;
106
116
  name: z.ZodString;
107
117
  number: z.ZodNumber;
@@ -165,6 +175,11 @@ export declare const makeGetIssueContract: <EnvironmentId extends PublicIdSchema
165
175
  coveredFlowIds: z.ZodArray<FlowId>;
166
176
  createdAt: z.ZodCoercedDate<unknown>;
167
177
  description: z.ZodString;
178
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
179
+ fileId: z.ZodString;
180
+ name: z.ZodString;
181
+ sizeBytes: z.ZodNumber;
182
+ }, z.core.$strip>>>;
168
183
  issueId: IssueId;
169
184
  name: z.ZodString;
170
185
  number: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,mBAAmB;;;;;;EAM9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;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BA,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { makePaginationInputFields, nextCursorSchema } from "../pagination.js";
3
3
  import { resource } from "../resource.js";
4
+ import { issueFileSchema } from "./files.js";
4
5
  export const issuePrioritySchema = z.enum([
5
6
  "unprioritized",
6
7
  "low",
@@ -30,6 +31,10 @@ export const makeIssueResourceSchema = (ids) => resource({
30
31
  .describe("The flows a coverage request covers. Always empty on bug reports and blockers, whose flows are listed under reproductions."),
31
32
  createdAt: z.coerce.date().describe("When the issue was created."),
32
33
  description: z.string().describe("The issue description in Markdown."),
34
+ files: z
35
+ .array(issueFileSchema)
36
+ .default([])
37
+ .describe("Files attached to a bug report, oldest first. Always empty on blockers and coverage requests."),
33
38
  issueId: ids.issue,
34
39
  name: z.string(),
35
40
  number: z.number().int(),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/issue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,eAAe;IACf,KAAK;IACL,QAAQ;IACR,MAAM;IACN,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC;IACtC,SAAS;IACT,SAAS;IACT,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;AAEhF,MAAM,iBAAiB,GAAG;IACxB,SAAS;IACT,SAAS;IACT,YAAY;IAC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+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const makeListIssueCommentsContract: <IssueId extends PublicIdSchema>(ids: {
4
+ issue: IssueId;
5
+ }) => {
6
+ readonly annotationJustifications: {
7
+ readonly destructiveHint: "Does not edit the issue or its comments.";
8
+ readonly openWorldHint: "Reads QA Wolf comments without reading or changing linked trackers.";
9
+ readonly readOnlyHint: "Lists the comments on one issue.";
10
+ };
11
+ readonly annotations: {
12
+ readonly destructiveHint: false;
13
+ readonly openWorldHint: false;
14
+ readonly readOnlyHint: true;
15
+ };
16
+ readonly description: "List the comments on a bug report, blocker (issue type `maintenance`), or coverage request, oldest first, with who wrote each one.";
17
+ readonly input: z.ZodObject<{
18
+ cursor: z.ZodOptional<z.ZodString>;
19
+ limit: z.ZodDefault<z.ZodNumber>;
20
+ issueId: IssueId;
21
+ }, z.core.$strip>;
22
+ readonly kind: "read";
23
+ readonly name: "issue.listComments";
24
+ readonly output: z.ZodObject<{
25
+ comments: z.ZodArray<z.ZodObject<{
26
+ author: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
+ email: z.ZodString;
28
+ name: z.ZodOptional<z.ZodString>;
29
+ type: z.ZodLiteral<"user">;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ type: z.ZodLiteral<"former-user">;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ type: z.ZodLiteral<"team-api-key">;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ type: z.ZodLiteral<"system">;
36
+ }, z.core.$strip>], "type">;
37
+ body: z.ZodString;
38
+ commentId: z.ZodString;
39
+ createdAt: z.ZodCoercedDate<unknown>;
40
+ issueId: IssueId;
41
+ viaQaWolfAi: z.ZodBoolean;
42
+ url: z.ZodURL;
43
+ }, z.core.$strip>>;
44
+ nextCursor: z.ZodOptional<z.ZodString>;
45
+ }, z.core.$strip>;
46
+ };
47
+ //# sourceMappingURL=listComments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listComments.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/listComments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,6BAA6B,GACxC,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,KAAK,EAAE,OAAO,CAAC;CAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCA,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ import { makePaginationInputFields, nextCursorSchema } from "../pagination.js";
3
+ import { makeIssueCommentResourceSchema } from "./commentResource.js";
4
+ export const makeListIssueCommentsContract = (ids) => {
5
+ const input = z.object({
6
+ issueId: ids.issue.describe("The bug report, blocker, or coverage request whose comments to list."),
7
+ ...makePaginationInputFields({ defaultLimit: 50, maxLimit: 200 }),
8
+ });
9
+ const output = z.object({
10
+ comments: z
11
+ .array(makeIssueCommentResourceSchema(ids))
12
+ .describe("The issue's comments, oldest first."),
13
+ nextCursor: nextCursorSchema,
14
+ });
15
+ return {
16
+ annotationJustifications: {
17
+ destructiveHint: "Does not edit the issue or its comments.",
18
+ openWorldHint: "Reads QA Wolf comments without reading or changing linked trackers.",
19
+ readOnlyHint: "Lists the comments on one issue.",
20
+ },
21
+ annotations: {
22
+ destructiveHint: false,
23
+ openWorldHint: false,
24
+ readOnlyHint: true,
25
+ },
26
+ description: "List the comments on a bug report, blocker (issue type `maintenance`), or coverage request, oldest first, with who wrote each one.",
27
+ input,
28
+ kind: "read",
29
+ name: "issue.listComments",
30
+ output,
31
+ };
32
+ };
33
+ //# sourceMappingURL=listComments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listComments.js","sourceRoot":"","sources":["../../../src/v1/issue/listComments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAEtE,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAE3C,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,QAAQ,CACzB,sEAAsE,CACvE;QACD,GAAG,yBAAyB,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;KAClE,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,QAAQ,EAAE,CAAC;aACR,KAAK,CAAC,8BAA8B,CAAC,GAAG,CAAC,CAAC;aAC1C,QAAQ,CAAC,qCAAqC,CAAC;QAClD,UAAU,EAAE,gBAAgB;KAC7B,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EAAE,0CAA0C;YAC3D,aAAa,EACX,qEAAqE;YACvE,YAAY,EAAE,kCAAkC;SACjD;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,oIAAoI;QACtI,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,oBAAoB;QAC1B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -29,6 +29,11 @@ export declare const makeRemoveFlowsFromIssueContract: <EnvironmentId extends Pu
29
29
  coveredFlowIds: z.ZodArray<FlowId>;
30
30
  createdAt: z.ZodCoercedDate<unknown>;
31
31
  description: z.ZodString;
32
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
33
+ fileId: z.ZodString;
34
+ name: z.ZodString;
35
+ sizeBytes: z.ZodNumber;
36
+ }, z.core.$strip>>>;
32
37
  issueId: IssueId;
33
38
  name: z.ZodString;
34
39
  number: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"removeFlows.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/removeFlows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,gCAAgC,GAC3C,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDA,CAAC"}
1
+ {"version":3,"file":"removeFlows.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/removeFlows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,gCAAgC,GAC3C,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDA,CAAC"}
@@ -45,6 +45,11 @@ export declare const makeUpdateIssueContract: <EnvironmentId extends PublicIdSch
45
45
  coveredFlowIds: z.ZodArray<FlowId>;
46
46
  createdAt: z.ZodCoercedDate<unknown>;
47
47
  description: z.ZodString;
48
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
49
+ fileId: z.ZodString;
50
+ name: z.ZodString;
51
+ sizeBytes: z.ZodNumber;
52
+ }, z.core.$strip>>>;
48
53
  issueId: IssueId;
49
54
  name: z.ZodString;
50
55
  number: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEA,CAAC"}
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEA,CAAC"}
@@ -22,6 +22,7 @@ export declare const makeConnectMcpServerContract: <WorkspaceId extends PublicId
22
22
  readonly name: "mcpServer.connect";
23
23
  readonly output: z.ZodObject<{
24
24
  authorizationUrl: z.ZodString;
25
+ connectionName: z.ZodString;
25
26
  serverName: z.ZodString;
26
27
  }, z.core.$strip>;
27
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/v1/mcpServer/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,eAAO,MAAM,4BAA4B,GACvC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;CAkDA,CAAC"}
1
+ {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/v1/mcpServer/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,eAAO,MAAM,4BAA4B,GACvC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;CAuDA,CAAC"}
@@ -15,6 +15,9 @@ export const makeConnectMcpServerContract = (ids) => {
15
15
  .string()
16
16
  .url()
17
17
  .describe("The server's sign-in page. Show it to the user: the connection is ready once they approve access there."),
18
+ connectionName: z
19
+ .string()
20
+ .describe("The name of the workspace connection the sign-in authorizes. It differs from serverName when the workspace already reaches the server under another name and that connection needs authorizing again."),
18
21
  serverName: z.string().describe("The catalog name of the server."),
19
22
  });
20
23
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../src/v1/mcpServer/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAE1C,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CACP,6EAA6E,CAC9E;QACH,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,4GAA4G,CAC7G;KACJ,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,gBAAgB,EAAE,CAAC;aAChB,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,CACP,yGAAyG,CAC1G;QACH,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;KACnE,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,qEAAqE;YACvE,aAAa,EACX,+DAA+D;YACjE,YAAY,EAAE,gDAAgD;SAC/D;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,oJAAoJ;QACtJ,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,mBAAmB;QACzB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../src/v1/mcpServer/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAE1C,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CACP,6EAA6E,CAC9E;QACH,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,4GAA4G,CAC7G;KACJ,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,gBAAgB,EAAE,CAAC;aAChB,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,CACP,yGAAyG,CAC1G;QACH,cAAc,EAAE,CAAC;aACd,MAAM,EAAE;aACR,QAAQ,CACP,uMAAuM,CACxM;QACH,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;KACnE,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,qEAAqE;YACvE,aAAa,EACX,+DAA+D;YACjE,YAAY,EAAE,gDAAgD;SAC/D;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,oJAAoJ;QACtJ,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,mBAAmB;QACzB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -5,7 +5,7 @@ const descriptionAddenda = {
5
5
  "run.create": "At least one flow or tag is required, so send flowIds, tagNames, or both. Send at most one of aiTaskId and chatSessionId. This call has no idempotency key, so a lost response cannot be safely resubmitted: read run.find before sending it again.",
6
6
  "run.get": 'Read a run with flowStatuses: ["failed"] first. A flow that passed on a retry reads passed, so when the flow you want is missing, add "passed" to the filter.',
7
7
  "runner.performAction": "Send withScreenshot: true for the screen the action led to in the same answer, rather than a second round trip through runner_takeScreenshot.",
8
- "runner.runFlow": "files must include the entry point and the run's package.json. Send env or environmentId, not both. A path may be sent in files or referenced in unchangedFiles, not both. This call has no idempotency key, so a lost response cannot be safely resubmitted: read the runner's run-status journal stream before sending it again.",
8
+ "runner.runFlow": "files must include the entry point and the run's package.json. env sent with environmentId adds to that environment's variables for this run only. A path may be sent in files or referenced in unchangedFiles, not both. This call has no idempotency key, so a lost response cannot be safely resubmitted: read the runner's run-status journal stream before sending it again.",
9
9
  "runner.takeScreenshot": "To see the screen an action led to, send withScreenshot: true on runner_performAction instead, which answers with the frame; call this on its own to look at the screen without acting on it.",
10
10
  };
11
11
  function readAddendum(contractName) {
@@ -1 +1 @@
1
- {"version":3,"file":"mcpToolDescription.js","sourceRoot":"","sources":["../../src/v1/mcpToolDescription.ts"],"names":[],"mappings":"AAWA,MAAM,kBAAkB,GAAgD;IACtE,oBAAoB,EAClB,0DAA0D;IAC5D,WAAW,EACT,yJAAyJ;IAC3J,cAAc,EACZ,oEAAoE;IACtE,YAAY,EACV,qPAAqP;IACvP,SAAS,EACP,+JAA+J;IACjK,sBAAsB,EACpB,+IAA+I;IACjJ,gBAAgB,EACd,oUAAoU;IACtU,uBAAuB,EACrB,+LAA+L;CAClM,CAAC;AAEF,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,MAAM,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAC5C,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,YAAY,CAClC,EAAE,CAAC,CAAC,CAAC,CAAC;AACT,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,QAA8B;IAE9B,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7C,OAAO,QAAQ;QACb,CAAC,CAAC,GAAG,QAAQ,CAAC,WAAW,IAAI,QAAQ,EAAE;QACvC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC;AAC3B,CAAC"}
1
+ {"version":3,"file":"mcpToolDescription.js","sourceRoot":"","sources":["../../src/v1/mcpToolDescription.ts"],"names":[],"mappings":"AAWA,MAAM,kBAAkB,GAAgD;IACtE,oBAAoB,EAClB,0DAA0D;IAC5D,WAAW,EACT,yJAAyJ;IAC3J,cAAc,EACZ,oEAAoE;IACtE,YAAY,EACV,qPAAqP;IACvP,SAAS,EACP,+JAA+J;IACjK,sBAAsB,EACpB,+IAA+I;IACjJ,gBAAgB,EACd,mXAAmX;IACrX,uBAAuB,EACrB,+LAA+L;CAClM,CAAC;AAEF,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,MAAM,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAC5C,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,YAAY,CAClC,EAAE,CAAC,CAAC,CAAC,CAAC;AACT,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,QAA8B;IAE9B,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7C,OAAO,QAAQ;QACb,CAAC,CAAC,GAAG,QAAQ,CAAC,WAAW,IAAI,QAAQ,EAAE;QACvC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC;AAC3B,CAAC"}
@@ -29,6 +29,11 @@ export declare const makeDiagnoseRunContract: <EnvironmentId extends PublicIdSch
29
29
  coveredFlowIds: z.ZodArray<FlowId>;
30
30
  createdAt: z.ZodCoercedDate<unknown>;
31
31
  description: z.ZodString;
32
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
33
+ fileId: z.ZodString;
34
+ name: z.ZodString;
35
+ sizeBytes: z.ZodNumber;
36
+ }, z.core.$strip>>>;
32
37
  issueId: IssueId;
33
38
  name: z.ZodString;
34
39
  number: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"diagnose.d.ts","sourceRoot":"","sources":["../../../src/v1/run/diagnose.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDA,CAAC"}
1
+ {"version":3,"file":"diagnose.d.ts","sourceRoot":"","sources":["../../../src/v1/run/diagnose.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDA,CAAC"}
@@ -18,7 +18,7 @@ export declare const makeGetRunContract: <EnvironmentId extends PublicIdSchema,
18
18
  readonly openWorldHint: false;
19
19
  readonly readOnlyHint: true;
20
20
  };
21
- readonly description: "Get a run's status, per-flow results, links, and how many of its bugs are blocking.";
21
+ readonly description: "Get a run's status, per-flow results, links, and how many of its bugs are blocking. Call it without waitSeconds for an immediate answer. To wait on a run that is still queued or running, pass waitSeconds up to 45: the server holds the check open and answers the moment the status changes. A held check also waits while the run is still being created. After a held check returns, call again only while status is queued or running. Stop when status is passed, failed, canceled, or superseded.";
22
22
  readonly input: z.ZodObject<{
23
23
  flowStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
24
24
  failed: "failed";
@@ -28,6 +28,7 @@ export declare const makeGetRunContract: <EnvironmentId extends PublicIdSchema,
28
28
  canceled: "canceled";
29
29
  }>>>;
30
30
  runId: RunId;
31
+ waitSeconds: z.ZodOptional<z.ZodNumber>;
31
32
  }, z.core.$strip>;
32
33
  readonly kind: "read";
33
34
  readonly name: "run.get";
@@ -193,6 +194,11 @@ export declare const makeGetRunContract: <EnvironmentId extends PublicIdSchema,
193
194
  origin: z.ZodString;
194
195
  warnings: z.ZodArray<z.ZodString>;
195
196
  }, z.core.$strip>>;
197
+ waitSeconds: z.ZodOptional<z.ZodNumber>;
198
+ wokeOn: z.ZodOptional<z.ZodEnum<{
199
+ status: "status";
200
+ timeout: "timeout";
201
+ }>>;
196
202
  completedAt: z.ZodOptional<z.ZodISODateTime>;
197
203
  createdAt: z.ZodISODateTime;
198
204
  git: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,kBAAkB,GAC7B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,YAAY,SAAS,cAAc,EACnC,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;IACX,UAAU,EAAE,YAAY,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHA,CAAC"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAShD,eAAO,MAAM,kBAAkB,GAC7B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,YAAY,SAAS,cAAc,EACnC,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;IACX,UAAU,EAAE,YAAY,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+HA,CAAC"}
@@ -1,10 +1,12 @@
1
1
  import { z } from "zod";
2
+ import { maxAgentWaitSeconds, maxAgentWaitSecondsWithProgress, } from "../agent/wait.js";
2
3
  import { makeBuildResourceSchema } from "../build/resource.js";
3
4
  import { resource } from "../resource.js";
4
5
  import { makeFlowAttemptsSchema } from "./flowAttempts.js";
5
6
  import { makeFlowFailureSchema } from "./flowFailure.js";
6
7
  import { makeRunSummaryFields, publicRunStatusValues } from "./summary.js";
7
8
  import { runBuildVersionSchema, runSiteVersionSchema } from "./versions.js";
9
+ import { runWakeReasonSchema } from "./wait.js";
8
10
  export const makeGetRunContract = (ids) => {
9
11
  const flowStatus = z.enum(publicRunStatusValues);
10
12
  const input = z.object({
@@ -18,6 +20,12 @@ export const makeGetRunContract = (ids) => {
18
20
  "passed when a flaky flow is missing from the answer. Omit to " +
19
21
  "return every flow. The run-level fields are unaffected."),
20
22
  runId: ids.run,
23
+ waitSeconds: z
24
+ .number()
25
+ .int()
26
+ .min(0)
27
+ .optional()
28
+ .describe(`How long the server may hold this check open, in seconds, waiting for the run's status to change. Defaults to 0, which answers at once. A larger value clamps to ${maxAgentWaitSeconds}, or to ${maxAgentWaitSecondsWithProgress} when the call carries a progress token. Pass more than ${maxAgentWaitSeconds} only when your instructions say your client keeps the call open while progress arrives. A held check answers the moment the status changes, and at once when the run is already terminal. A held check also waits while the run is still being created.`),
21
29
  });
22
30
  const attempts = makeFlowAttemptsSchema(ids);
23
31
  // We return one flat entry per flow, each carrying its own status, rather
@@ -70,6 +78,12 @@ export const makeGetRunContract = (ids) => {
70
78
  siteVersions: z
71
79
  .array(runSiteVersionSchema)
72
80
  .describe("The versions the run's attempts saw on each site origin, with warnings. Empty when no attempt reported one."),
81
+ waitSeconds: z
82
+ .number()
83
+ .int()
84
+ .optional()
85
+ .describe("The hold this check was allowed, in seconds, after clamping. Absent when the check did not wait."),
86
+ wokeOn: runWakeReasonSchema.optional(),
73
87
  }, { urlFieldDescription: "Absolute URL of the run page." });
74
88
  return {
75
89
  annotationJustifications: {
@@ -82,7 +96,7 @@ export const makeGetRunContract = (ids) => {
82
96
  openWorldHint: false,
83
97
  readOnlyHint: true,
84
98
  },
85
- description: "Get a run's status, per-flow results, links, and how many of its bugs are blocking.",
99
+ description: `Get a run's status, per-flow results, links, and how many of its bugs are blocking. Call it without waitSeconds for an immediate answer. To wait on a run that is still queued or running, pass waitSeconds up to ${maxAgentWaitSeconds}: the server holds the check open and answers the moment the status changes. A held check also waits while the run is still being created. After a held check returns, call again only while status is queued or running. Stop when status is passed, failed, canceled, or superseded.`,
86
100
  input,
87
101
  kind: "read",
88
102
  name: "run.get",
@@ -1 +1 @@
1
- {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE5E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAMhC,GAOD,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,YAAY,EAAE,CAAC;aACZ,KAAK,CAAC,UAAU,CAAC;aACjB,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,EAAE;aACV,QAAQ,CACP,sEAAsE;YACpE,gEAAgE;YAChE,+DAA+D;YAC/D,+DAA+D;YAC/D,yDAAyD,CAC5D;QACH,KAAK,EAAE,GAAG,CAAC,GAAG;KACf,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAC;IAE7C,0EAA0E;IAC1E,8EAA8E;IAC9E,yEAAyE;IACzE,0EAA0E;I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B,wRAAwR;QAC7gB,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,SAAS;QACf,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ export declare const runWakeReasonSchema: z.ZodEnum<{
3
+ status: "status";
4
+ timeout: "timeout";
5
+ }>;
6
+ export type RunWakeReason = z.infer<typeof runWakeReasonSchema>;
7
+ //# sourceMappingURL=wait.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait.d.ts","sourceRoot":"","sources":["../../../src/v1/run/wait.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;EAI7B,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export const runWakeReasonSchema = z
3
+ .enum(["status", "timeout"])
4
+ .describe('Why a held check answered. "status" means the run\'s status differs from the one the check started with, or the run was already terminal; "timeout" means the hold ran out with the status unchanged.');
5
+ //# sourceMappingURL=wait.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait.js","sourceRoot":"","sources":["../../../src/v1/run/wait.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;KAC3B,QAAQ,CACP,uMAAuM,CACxM,CAAC"}
@@ -683,7 +683,7 @@ export declare const makeRunnerContracts: <FlowId extends PublicIdSchema, Worksp
683
683
  readonly openWorldHint: true;
684
684
  readonly readOnlyHint: false;
685
685
  };
686
- readonly description: "Launch an interactive runner on the caller's team under an id the caller chooses. Send `initialUrl` so its browser comes up on the page the work starts from, which saves a separate navigation and the browser's cold start. Launching the same id again returns the runner already running rather than starting a second one, and the same id with a different runnerName is refused. A runner is not permanent: it terminates on its own after a period of inactivity, and launching the same id after that starts and bills a new runner, so read `alreadyRunning` to tell which happened. A success means the runner is answering: the call waits for the pod it started to come up, so the very next call to the runner reaches it. If the pod does not come up in time the call fails instead, leaving the runner running, and launching the same id again attaches to it.";
686
+ readonly description: "Launch an interactive runner on the caller's team under an id the caller chooses. Send `initialUrl` so its browser comes up on the page the work starts from, which saves a separate navigation and the browser's cold start. Launching the same id again returns the runner already running rather than starting a second one, whatever runnerName is sent, so read `runnerName` in the answer for what is running. A runner is not permanent: it terminates on its own after a period of inactivity, and launching the same id after that starts and bills a new runner, so read `alreadyRunning` to tell which happened. A success means the runner is answering: the call waits for the pod it started to come up, so the very next call to the runner reaches it. If the pod does not come up in time the call fails instead, leaving the runner running, and launching the same id again attaches to it.";
687
687
  readonly input: import("zod").ZodObject<{
688
688
  id: import("zod").ZodString;
689
689
  initialUrl: import("zod").ZodOptional<import("zod").ZodURL>;
@@ -13,7 +13,7 @@ export declare const makeLaunchRunnerContract: <WorkspaceId extends PublicIdSche
13
13
  readonly openWorldHint: true;
14
14
  readonly readOnlyHint: false;
15
15
  };
16
- readonly description: "Launch an interactive runner on the caller's team under an id the caller chooses. Send `initialUrl` so its browser comes up on the page the work starts from, which saves a separate navigation and the browser's cold start. Launching the same id again returns the runner already running rather than starting a second one, and the same id with a different runnerName is refused. A runner is not permanent: it terminates on its own after a period of inactivity, and launching the same id after that starts and bills a new runner, so read `alreadyRunning` to tell which happened. A success means the runner is answering: the call waits for the pod it started to come up, so the very next call to the runner reaches it. If the pod does not come up in time the call fails instead, leaving the runner running, and launching the same id again attaches to it.";
16
+ readonly description: "Launch an interactive runner on the caller's team under an id the caller chooses. Send `initialUrl` so its browser comes up on the page the work starts from, which saves a separate navigation and the browser's cold start. Launching the same id again returns the runner already running rather than starting a second one, whatever runnerName is sent, so read `runnerName` in the answer for what is running. A runner is not permanent: it terminates on its own after a period of inactivity, and launching the same id after that starts and bills a new runner, so read `alreadyRunning` to tell which happened. A success means the runner is answering: the call waits for the pod it started to come up, so the very next call to the runner reaches it. If the pod does not come up in time the call fails instead, leaving the runner running, and launching the same id again attaches to it.";
17
17
  readonly input: z.ZodObject<{
18
18
  id: z.ZodString;
19
19
  initialUrl: z.ZodOptional<z.ZodURL>;
@@ -37,7 +37,7 @@ export const makeLaunchRunnerContract = (ids) => {
37
37
  openWorldHint: true,
38
38
  readOnlyHint: false,
39
39
  },
40
- description: "Launch an interactive runner on the caller's team under an id the caller chooses. Send `initialUrl` so its browser comes up on the page the work starts from, which saves a separate navigation and the browser's cold start. Launching the same id again returns the runner already running rather than starting a second one, and the same id with a different runnerName is refused. A runner is not permanent: it terminates on its own after a period of inactivity, and launching the same id after that starts and bills a new runner, so read `alreadyRunning` to tell which happened. A success means the runner is answering: the call waits for the pod it started to come up, so the very next call to the runner reaches it. If the pod does not come up in time the call fails instead, leaving the runner running, and launching the same id again attaches to it.",
40
+ description: "Launch an interactive runner on the caller's team under an id the caller chooses. Send `initialUrl` so its browser comes up on the page the work starts from, which saves a separate navigation and the browser's cold start. Launching the same id again returns the runner already running rather than starting a second one, whatever runnerName is sent, so read `runnerName` in the answer for what is running. A runner is not permanent: it terminates on its own after a period of inactivity, and launching the same id after that starts and bills a new runner, so read `alreadyRunning` to tell which happened. A success means the runner is answering: the call waits for the pod it started to come up, so the very next call to the runner reaches it. If the pod does not come up in time the call fails instead, leaving the runner running, and launching the same id again attaches to it.",
41
41
  input,
42
42
  kind: "write",
43
43
  name: "runner.launch",