@qawolf/api-contracts 0.68.0 → 0.70.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.
@@ -8,7 +8,7 @@ export const agentSessionStatuses = [
8
8
  ];
9
9
  export const agentSessionStatusSchema = z
10
10
  .enum(agentSessionStatuses)
11
- .describe('Where the work stands. "working" means the AI is still on it. "waiting-for-you" means it asked a question and cannot continue until agent.send answers it. "completed", "failed" and "cancelled" are settled and will not change.');
11
+ .describe('Where the work stands. "working" means the AI is still on it. "waiting-for-you" means it asked a question and cannot continue until agent.send answers it. "completed" means it finished what it was asked, and a new agent.send continues it. "failed" and "cancelled" are settled and will not change.');
12
12
  export const agentReplySchema = z.object({
13
13
  askedAt: z.iso
14
14
  .datetime()
@@ -1 +1 @@
1
- {"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/v1/agent/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,SAAS;IACT,iBAAiB;IACjB,WAAW;IACX,QAAQ;IACR,WAAW;CACH,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,IAAI,CAAC,oBAAoB,CAAC;KAC1B,QAAQ,CACP,mOAAmO,CACpO,CAAC;AAEJ,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,GAAG;SACX,QAAQ,EAAE;SACV,QAAQ,CAAC,mDAAmD,CAAC;IAChE,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACP,4IAA4I,CAC7I;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;CAC/C,CAAC,CAAC"}
1
+ {"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/v1/agent/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,SAAS;IACT,iBAAiB;IACjB,WAAW;IACX,QAAQ;IACR,WAAW;CACH,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,IAAI,CAAC,oBAAoB,CAAC;KAC1B,QAAQ,CACP,0SAA0S,CAC3S,CAAC;AAEJ,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,GAAG;SACX,QAAQ,EAAE;SACV,QAAQ,CAAC,mDAAmD,CAAC;IAChE,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACP,4IAA4I,CAC7I;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;CAC/C,CAAC,CAAC"}
@@ -973,6 +973,73 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
973
973
  }, z.core.$strip>;
974
974
  };
975
975
  };
976
+ investigation: {
977
+ get: {
978
+ readonly annotations: {
979
+ readonly destructiveHint: false;
980
+ readonly openWorldHint: false;
981
+ readonly readOnlyHint: true;
982
+ };
983
+ readonly description: string;
984
+ readonly input: z.ZodObject<{
985
+ runId: RunId;
986
+ }, z.core.$strip>;
987
+ readonly kind: "read";
988
+ readonly name: "investigation.get";
989
+ readonly output: z.ZodObject<{
990
+ findings: z.ZodArray<z.ZodObject<{
991
+ actual: z.ZodOptional<z.ZodString>;
992
+ commitHash: z.ZodOptional<z.ZodString>;
993
+ decidedBy: z.ZodOptional<z.ZodEnum<{
994
+ user: "user";
995
+ agent: "agent";
996
+ }>>;
997
+ disputeReason: z.ZodOptional<z.ZodString>;
998
+ expected: z.ZodOptional<z.ZodString>;
999
+ findingId: z.ZodString;
1000
+ flowIds: z.ZodArray<FlowId>;
1001
+ headline: z.ZodOptional<z.ZodString>;
1002
+ issueId: z.ZodOptional<IssueId>;
1003
+ kind: z.ZodString;
1004
+ matchReason: z.ZodOptional<z.ZodString>;
1005
+ priority: z.ZodOptional<z.ZodEnum<{
1006
+ unprioritized: "unprioritized";
1007
+ low: "low";
1008
+ medium: "medium";
1009
+ high: "high";
1010
+ urgent: "urgent";
1011
+ }>>;
1012
+ question: z.ZodOptional<z.ZodObject<{
1013
+ answers: z.ZodArray<z.ZodObject<{
1014
+ description: z.ZodOptional<z.ZodString>;
1015
+ title: z.ZodString;
1016
+ value: z.ZodString;
1017
+ }, z.core.$strip>>;
1018
+ text: z.ZodString;
1019
+ }, z.core.$strip>>;
1020
+ response: z.ZodOptional<z.ZodObject<{
1021
+ answer: z.ZodOptional<z.ZodString>;
1022
+ at: z.ZodISODateTime;
1023
+ reason: z.ZodOptional<z.ZodString>;
1024
+ type: z.ZodString;
1025
+ }, z.core.$strip>>;
1026
+ state: z.ZodString;
1027
+ steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1028
+ subSessionIds: z.ZodArray<ChatSessionId>;
1029
+ summary: z.ZodOptional<z.ZodString>;
1030
+ updatedAt: z.ZodISODateTime;
1031
+ }, z.core.$strip>>;
1032
+ runId: RunId;
1033
+ sessionId: z.ZodOptional<ChatSessionId>;
1034
+ status: z.ZodEnum<{
1035
+ investigating: "investigating";
1036
+ finished: "finished";
1037
+ "not-investigated": "not-investigated";
1038
+ }>;
1039
+ url: z.ZodURL;
1040
+ }, z.core.$strip>;
1041
+ };
1042
+ };
976
1043
  issue: {
977
1044
  addFlows: {
978
1045
  readonly annotations: {
@@ -4429,6 +4496,73 @@ export declare const publicContractsV1: {
4429
4496
  }, z.core.$strip>;
4430
4497
  };
4431
4498
  };
4499
+ investigation: {
4500
+ get: {
4501
+ readonly annotations: {
4502
+ readonly destructiveHint: false;
4503
+ readonly openWorldHint: false;
4504
+ readonly readOnlyHint: true;
4505
+ };
4506
+ readonly description: string;
4507
+ readonly input: z.ZodObject<{
4508
+ runId: PublicIdSchema;
4509
+ }, z.core.$strip>;
4510
+ readonly kind: "read";
4511
+ readonly name: "investigation.get";
4512
+ readonly output: z.ZodObject<{
4513
+ findings: z.ZodArray<z.ZodObject<{
4514
+ actual: z.ZodOptional<z.ZodString>;
4515
+ commitHash: z.ZodOptional<z.ZodString>;
4516
+ decidedBy: z.ZodOptional<z.ZodEnum<{
4517
+ user: "user";
4518
+ agent: "agent";
4519
+ }>>;
4520
+ disputeReason: z.ZodOptional<z.ZodString>;
4521
+ expected: z.ZodOptional<z.ZodString>;
4522
+ findingId: z.ZodString;
4523
+ flowIds: z.ZodArray<PublicIdSchema>;
4524
+ headline: z.ZodOptional<z.ZodString>;
4525
+ issueId: z.ZodOptional<PublicIdSchema>;
4526
+ kind: z.ZodString;
4527
+ matchReason: z.ZodOptional<z.ZodString>;
4528
+ priority: z.ZodOptional<z.ZodEnum<{
4529
+ unprioritized: "unprioritized";
4530
+ low: "low";
4531
+ medium: "medium";
4532
+ high: "high";
4533
+ urgent: "urgent";
4534
+ }>>;
4535
+ question: z.ZodOptional<z.ZodObject<{
4536
+ answers: z.ZodArray<z.ZodObject<{
4537
+ description: z.ZodOptional<z.ZodString>;
4538
+ title: z.ZodString;
4539
+ value: z.ZodString;
4540
+ }, z.core.$strip>>;
4541
+ text: z.ZodString;
4542
+ }, z.core.$strip>>;
4543
+ response: z.ZodOptional<z.ZodObject<{
4544
+ answer: z.ZodOptional<z.ZodString>;
4545
+ at: z.ZodISODateTime;
4546
+ reason: z.ZodOptional<z.ZodString>;
4547
+ type: z.ZodString;
4548
+ }, z.core.$strip>>;
4549
+ state: z.ZodString;
4550
+ steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
4551
+ subSessionIds: z.ZodArray<PublicIdSchema>;
4552
+ summary: z.ZodOptional<z.ZodString>;
4553
+ updatedAt: z.ZodISODateTime;
4554
+ }, z.core.$strip>>;
4555
+ runId: PublicIdSchema;
4556
+ sessionId: z.ZodOptional<PublicIdSchema>;
4557
+ status: z.ZodEnum<{
4558
+ investigating: "investigating";
4559
+ finished: "finished";
4560
+ "not-investigated": "not-investigated";
4561
+ }>;
4562
+ url: z.ZodURL;
4563
+ }, z.core.$strip>;
4564
+ };
4565
+ };
4432
4566
  issue: {
4433
4567
  addFlows: {
4434
4568
  readonly annotations: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,cAAc,oBAAoB,CAAC;AAMnC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAuB5D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEvB,MAAM,UAAU,CAAC;AAoBlB,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,oBAAoB,IAAI,CAAC,CAAC,KAAK,CACpE,GAAG,CAAC,OAAO,CAAC,CACb,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,GAAG,SAAS,oBAAoB,IAAI,CAAC,CAAC,KAAK,CACrE,GAAG,CAAC,QAAQ,CAAC,CACd,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,GAAG,cAAc,EAC/C,WAAW,SAAS,cAAc,GAAG,cAAc,EACnD,QAAQ,SAAS,cAAc,GAAG,cAAc,EAChD,aAAa,SAAS,cAAc,GAAG,cAAc,EACrD,SAAS,SAAS,cAAc,GAAG,cAAc,EACjD,YAAY,SAAS,cAAc,GAAG,cAAc,EACpD,eAAe,SAAS,cAAc,GAAG,cAAc,EAEvD,KAAK,iBAAiB,CACpB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
package/dist/v1/index.js CHANGED
@@ -22,6 +22,7 @@ import { makeListFlowsContract } from "./flow/index.js";
22
22
  import { makeRemoveTagFromFlowsContract } from "./flow/removeTag.js";
23
23
  import { makeUpdateFlowContract } from "./flow/update.js";
24
24
  import { defaultIdSchemas, } from "./ids.js";
25
+ import { makeInvestigationContracts } from "./investigation/index.js";
25
26
  import { makeAddFlowsToIssueContract } from "./issue/addFlows.js";
26
27
  import { makeCreateIssueContract } from "./issue/create.js";
27
28
  import { makeFindIssuesContract, makeGetIssueContract } from "./issue/index.js";
@@ -84,6 +85,7 @@ export const makeContractsV1 = (ids) => {
84
85
  removeTag: makeRemoveTagFromFlowsContract(resolvedIds),
85
86
  update: makeUpdateFlowContract(resolvedIds),
86
87
  },
88
+ investigation: makeInvestigationContracts(resolvedIds),
87
89
  issue: {
88
90
  addFlows: makeAddFlowsToIssueContract(resolvedIds),
89
91
  create: makeCreateIssueContract(resolvedIds),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAEA,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,oCAAoC,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AAEjG,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,qCAAqC,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EACL,0BAA0B,EAC1B,wCAAwC,EACxC,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CA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ACtD,KAAK,EAAE;YACL,QAAQ,EAAE,2BAA2B,CAAC,WAAW,CAAC;YAClD,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC;YAC5C,IAAI,EAAE,sBAAsB,CAAC,WAAW,CAAC;YACzC,GAAG,EAAE,oBAAoB,CAAC,WAAW,CAAC;YACtC,WAAW,EAAE,gCAAgC,CAAC,WAAW,CAAC;YAC1D,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC;SAC7C;QACD,aAAa,EAAE,0BAA0B,CAAC,WAAW,CAAC;QACtD,GAAG,EAAE;YACH,MAAM,EAAE,qBAAqB,CAAC,WAAW,CAAC;YAC1C,QAAQ,EAAE,uBAAuB,CAAC,WAAW,CAAC;YAC9C,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC;YACvC,GAAG,EAAE,kBAAkB,CAAC,WAAW,CAAC;YACpC,SAAS,EAAE,wBAAwB,CAAC,WAAW,CAAC;YAChD,IAAI,EAAE,mBAAmB,CAAC,WAAW,CAAC;YACtC,MAAM,EAAE,qBAAqB,CAAC,WAAW,CAAC;SAC3C;QACD,MAAM,EAAE,mBAAmB,CAAC,WAAW,CAAC;QACxC,6EAA6E;QAC7E,KAAK,EAAE,kBAAkB,EAAE;QAC3B,GAAG,EAAE;YACH,MAAM,EAAE,qBAAqB,CAAC,WAAW,CAAC;YAC1C,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC;SACxC;QACD,OAAO,EAAE,oBAAoB,CAAC,WAAW,CAAC;KAC3C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const investigationFindingStateDescription = "What the investigation concluded about the cause. Known values: \"investigating\", \"fixed\", \"fix-proposed\", \"reported\", \"report-proposed\", \"flake\", \"question\" and \"dismissed\". New values can appear.";
4
+ export declare const makeInvestigationFindingSchema: <ChatSessionId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema>(ids: {
5
+ [key: string]: unknown;
6
+ chatSession: ChatSessionId;
7
+ flow: FlowId;
8
+ issue: IssueId;
9
+ }) => z.ZodObject<{
10
+ actual: z.ZodOptional<z.ZodString>;
11
+ commitHash: z.ZodOptional<z.ZodString>;
12
+ decidedBy: z.ZodOptional<z.ZodEnum<{
13
+ user: "user";
14
+ agent: "agent";
15
+ }>>;
16
+ disputeReason: z.ZodOptional<z.ZodString>;
17
+ expected: z.ZodOptional<z.ZodString>;
18
+ findingId: z.ZodString;
19
+ flowIds: z.ZodArray<FlowId>;
20
+ headline: z.ZodOptional<z.ZodString>;
21
+ issueId: z.ZodOptional<IssueId>;
22
+ kind: z.ZodString;
23
+ matchReason: z.ZodOptional<z.ZodString>;
24
+ priority: z.ZodOptional<z.ZodEnum<{
25
+ unprioritized: "unprioritized";
26
+ low: "low";
27
+ medium: "medium";
28
+ high: "high";
29
+ urgent: "urgent";
30
+ }>>;
31
+ question: z.ZodOptional<z.ZodObject<{
32
+ answers: z.ZodArray<z.ZodObject<{
33
+ description: z.ZodOptional<z.ZodString>;
34
+ title: z.ZodString;
35
+ value: z.ZodString;
36
+ }, z.core.$strip>>;
37
+ text: z.ZodString;
38
+ }, z.core.$strip>>;
39
+ response: z.ZodOptional<z.ZodObject<{
40
+ answer: z.ZodOptional<z.ZodString>;
41
+ at: z.ZodISODateTime;
42
+ reason: z.ZodOptional<z.ZodString>;
43
+ type: z.ZodString;
44
+ }, z.core.$strip>>;
45
+ state: z.ZodString;
46
+ steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
+ subSessionIds: z.ZodArray<ChatSessionId>;
48
+ summary: z.ZodOptional<z.ZodString>;
49
+ updatedAt: z.ZodISODateTime;
50
+ }, z.core.$strip>;
51
+ //# sourceMappingURL=finding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finding.d.ts","sourceRoot":"","sources":["../../../src/v1/investigation/finding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,oCAAoC,yNACuJ,CAAC;AAEzM,eAAO,MAAM,8BAA8B,GACzC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiEG,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { z } from "zod";
2
+ import { issuePrioritySchema } from "../issue/index.js";
3
+ export const investigationFindingStateDescription = 'What the investigation concluded about the cause. Known values: "investigating", "fixed", "fix-proposed", "reported", "report-proposed", "flake", "question" and "dismissed". New values can appear.';
4
+ export const makeInvestigationFindingSchema = (ids) => z.object({
5
+ actual: z.string().optional(),
6
+ commitHash: z.string().optional(),
7
+ decidedBy: z
8
+ .enum(["agent", "user"])
9
+ .optional()
10
+ .describe("Who decided: the AI on its own, or a person who approved or dismissed it. Absent until someone decides."),
11
+ disputeReason: z
12
+ .string()
13
+ .optional()
14
+ .describe("Why a person disputed what the AI did. Present on a proposal the AI made again after that dispute."),
15
+ expected: z.string().optional(),
16
+ findingId: z.string(),
17
+ flowIds: z.array(ids.flow),
18
+ headline: z.string().optional(),
19
+ issueId: ids.issue.optional(),
20
+ kind: z
21
+ .string()
22
+ .describe('What the failure is. Known values: "maintenance", "bug", "flake" and "unknown". New values can appear.'),
23
+ matchReason: z.string().optional(),
24
+ priority: issuePrioritySchema.optional(),
25
+ question: z
26
+ .object({
27
+ answers: z.array(z.object({
28
+ description: z.string().optional(),
29
+ title: z.string(),
30
+ value: z
31
+ .string()
32
+ .describe('What choosing this answer means. Known values: "apply", "dismiss", "report", "maintenance" and "bug". New values can appear.'),
33
+ })),
34
+ text: z.string(),
35
+ })
36
+ .optional()
37
+ .describe("The question waiting for a person, with the answers offered."),
38
+ response: z
39
+ .object({
40
+ answer: z.string().optional(),
41
+ at: z.iso.datetime(),
42
+ reason: z.string().optional(),
43
+ type: z
44
+ .string()
45
+ .describe('Known values: "answer" and "dispute". New values can appear.'),
46
+ })
47
+ .optional()
48
+ .describe("A person's answer or dispute that the investigation hasn't acted on yet."),
49
+ state: z.string().describe(investigationFindingStateDescription),
50
+ steps: z.array(z.string()).optional(),
51
+ subSessionIds: z.array(ids.chatSession),
52
+ summary: z.string().optional(),
53
+ updatedAt: z.iso.datetime(),
54
+ });
55
+ //# sourceMappingURL=finding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finding.js","sourceRoot":"","sources":["../../../src/v1/investigation/finding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,oCAAoC,GAC/C,sMAAsM,CAAC;AAEzM,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAI5C,GAKD,EAAE,EAAE,CACH,CAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,CAAC;SACT,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;SACvB,QAAQ,EAAE;SACV,QAAQ,CACP,yGAAyG,CAC1G;IACH,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oGAAoG,CACrG;IACH,QAAQ,EAAE,CAAC,C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C,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IAChE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const makeGetInvestigationContract: <ChatSessionId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: {
4
+ [key: string]: unknown;
5
+ chatSession: ChatSessionId;
6
+ flow: FlowId;
7
+ issue: IssueId;
8
+ run: RunId;
9
+ }) => {
10
+ readonly annotations: {
11
+ readonly destructiveHint: false;
12
+ readonly openWorldHint: false;
13
+ readonly readOnlyHint: true;
14
+ };
15
+ readonly description: string;
16
+ readonly input: z.ZodObject<{
17
+ runId: RunId;
18
+ }, z.core.$strip>;
19
+ readonly kind: "read";
20
+ readonly name: "investigation.get";
21
+ readonly output: z.ZodObject<{
22
+ findings: z.ZodArray<z.ZodObject<{
23
+ actual: z.ZodOptional<z.ZodString>;
24
+ commitHash: z.ZodOptional<z.ZodString>;
25
+ decidedBy: z.ZodOptional<z.ZodEnum<{
26
+ user: "user";
27
+ agent: "agent";
28
+ }>>;
29
+ disputeReason: z.ZodOptional<z.ZodString>;
30
+ expected: z.ZodOptional<z.ZodString>;
31
+ findingId: z.ZodString;
32
+ flowIds: z.ZodArray<FlowId>;
33
+ headline: z.ZodOptional<z.ZodString>;
34
+ issueId: z.ZodOptional<IssueId>;
35
+ kind: z.ZodString;
36
+ matchReason: z.ZodOptional<z.ZodString>;
37
+ priority: z.ZodOptional<z.ZodEnum<{
38
+ unprioritized: "unprioritized";
39
+ low: "low";
40
+ medium: "medium";
41
+ high: "high";
42
+ urgent: "urgent";
43
+ }>>;
44
+ question: z.ZodOptional<z.ZodObject<{
45
+ answers: z.ZodArray<z.ZodObject<{
46
+ description: z.ZodOptional<z.ZodString>;
47
+ title: z.ZodString;
48
+ value: z.ZodString;
49
+ }, z.core.$strip>>;
50
+ text: z.ZodString;
51
+ }, z.core.$strip>>;
52
+ response: z.ZodOptional<z.ZodObject<{
53
+ answer: z.ZodOptional<z.ZodString>;
54
+ at: z.ZodISODateTime;
55
+ reason: z.ZodOptional<z.ZodString>;
56
+ type: z.ZodString;
57
+ }, z.core.$strip>>;
58
+ state: z.ZodString;
59
+ steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
+ subSessionIds: z.ZodArray<ChatSessionId>;
61
+ summary: z.ZodOptional<z.ZodString>;
62
+ updatedAt: z.ZodISODateTime;
63
+ }, z.core.$strip>>;
64
+ runId: RunId;
65
+ sessionId: z.ZodOptional<ChatSessionId>;
66
+ status: z.ZodEnum<{
67
+ investigating: "investigating";
68
+ finished: "finished";
69
+ "not-investigated": "not-investigated";
70
+ }>;
71
+ url: z.ZodURL;
72
+ }, z.core.$strip>;
73
+ };
74
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/investigation/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,4BAA4B,GACvC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,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;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCA,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ import { resource } from "../resource.js";
3
+ import { makeInvestigationFindingSchema } from "./finding.js";
4
+ export const makeGetInvestigationContract = (ids) => {
5
+ const input = z.object({ runId: ids.run });
6
+ const output = resource({
7
+ findings: z.array(makeInvestigationFindingSchema(ids)),
8
+ runId: ids.run,
9
+ sessionId: ids.chatSession
10
+ .optional()
11
+ .describe("The investigation session. Absent when the run has none."),
12
+ status: z
13
+ .enum(["investigating", "finished", "not-investigated"])
14
+ .describe('Whether the investigation session is still working. "not-investigated" when the run has no investigation.'),
15
+ }, { urlFieldDescription: "The run in the QA Wolf app." });
16
+ return {
17
+ annotations: {
18
+ destructiveHint: false,
19
+ openWorldHint: false,
20
+ readOnlyHint: true,
21
+ },
22
+ description: "Read what the QA Wolf AI investigating a run has concluded: one finding per cause of its failures, " +
23
+ "with the question waiting for a person and any answer or dispute the investigation hasn't acted on yet.",
24
+ input,
25
+ kind: "read",
26
+ name: "investigation.get",
27
+ output,
28
+ };
29
+ };
30
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/v1/investigation/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAE9D,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAK1C,GAMD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;IAE3C,MAAM,MAAM,GAAG,QAAQ,CACrB;QACE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC,GAAG,CAAC,CAAC;QACtD,KAAK,EAAE,GAAG,CAAC,GAAG;QACd,SAAS,EAAE,GAAG,CAAC,WAAW;aACvB,QAAQ,EAAE;aACV,QAAQ,CAAC,0DAA0D,CAAC;QACvE,MAAM,EAAE,CAAC;aACN,IAAI,CAAC,CAAC,eAAe,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAC;aACvD,QAAQ,CACP,2GAA2G,CAC5G;KACJ,EACD,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,CACvD,CAAC;IAEF,OAAO;QACL,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,qGAAqG;YACrG,yGAAyG;QAC3G,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mBAAmB;QACzB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,75 @@
1
+ import type { PublicIdSchema } from "../ids.js";
2
+ export declare const makeInvestigationContracts: <ChatSessionId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: {
3
+ [key: string]: unknown;
4
+ chatSession: ChatSessionId;
5
+ flow: FlowId;
6
+ issue: IssueId;
7
+ run: RunId;
8
+ }) => {
9
+ get: {
10
+ readonly annotations: {
11
+ readonly destructiveHint: false;
12
+ readonly openWorldHint: false;
13
+ readonly readOnlyHint: true;
14
+ };
15
+ readonly description: string;
16
+ readonly input: import("zod").ZodObject<{
17
+ runId: RunId;
18
+ }, import("zod/v4/core").$strip>;
19
+ readonly kind: "read";
20
+ readonly name: "investigation.get";
21
+ readonly output: import("zod").ZodObject<{
22
+ findings: import("zod").ZodArray<import("zod").ZodObject<{
23
+ actual: import("zod").ZodOptional<import("zod").ZodString>;
24
+ commitHash: import("zod").ZodOptional<import("zod").ZodString>;
25
+ decidedBy: import("zod").ZodOptional<import("zod").ZodEnum<{
26
+ user: "user";
27
+ agent: "agent";
28
+ }>>;
29
+ disputeReason: import("zod").ZodOptional<import("zod").ZodString>;
30
+ expected: import("zod").ZodOptional<import("zod").ZodString>;
31
+ findingId: import("zod").ZodString;
32
+ flowIds: import("zod").ZodArray<FlowId>;
33
+ headline: import("zod").ZodOptional<import("zod").ZodString>;
34
+ issueId: import("zod").ZodOptional<IssueId>;
35
+ kind: import("zod").ZodString;
36
+ matchReason: import("zod").ZodOptional<import("zod").ZodString>;
37
+ priority: import("zod").ZodOptional<import("zod").ZodEnum<{
38
+ unprioritized: "unprioritized";
39
+ low: "low";
40
+ medium: "medium";
41
+ high: "high";
42
+ urgent: "urgent";
43
+ }>>;
44
+ question: import("zod").ZodOptional<import("zod").ZodObject<{
45
+ answers: import("zod").ZodArray<import("zod").ZodObject<{
46
+ description: import("zod").ZodOptional<import("zod").ZodString>;
47
+ title: import("zod").ZodString;
48
+ value: import("zod").ZodString;
49
+ }, import("zod/v4/core").$strip>>;
50
+ text: import("zod").ZodString;
51
+ }, import("zod/v4/core").$strip>>;
52
+ response: import("zod").ZodOptional<import("zod").ZodObject<{
53
+ answer: import("zod").ZodOptional<import("zod").ZodString>;
54
+ at: import("zod").ZodISODateTime;
55
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
56
+ type: import("zod").ZodString;
57
+ }, import("zod/v4/core").$strip>>;
58
+ state: import("zod").ZodString;
59
+ steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
60
+ subSessionIds: import("zod").ZodArray<ChatSessionId>;
61
+ summary: import("zod").ZodOptional<import("zod").ZodString>;
62
+ updatedAt: import("zod").ZodISODateTime;
63
+ }, import("zod/v4/core").$strip>>;
64
+ runId: RunId;
65
+ sessionId: import("zod").ZodOptional<ChatSessionId>;
66
+ status: import("zod").ZodEnum<{
67
+ investigating: "investigating";
68
+ finished: "finished";
69
+ "not-investigated": "not-investigated";
70
+ }>;
71
+ url: import("zod").ZodURL;
72
+ }, import("zod/v4/core").$strip>;
73
+ };
74
+ };
75
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/investigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,0BAA0B,GACrC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,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;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { makeGetInvestigationContract } from "./get.js";
2
+ export const makeInvestigationContracts = (ids) => ({
3
+ get: makeGetInvestigationContract(ids),
4
+ });
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/investigation/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAKxC,GAMD,EAAE,EAAE,CAAC,CAAC;IACL,GAAG,EAAE,4BAA4B,CAAC,GAAG,CAAC;CACvC,CAAC,CAAC"}
@@ -5,5 +5,11 @@ export type McpInputSchema = {
5
5
  required?: string[];
6
6
  type: "object";
7
7
  };
8
+ /**
9
+ * Converts a contract input to the JSON Schema an MCP tool advertises: always
10
+ * one flat object, with no `allOf`, `anyOf` or `oneOf` at the root. The
11
+ * contract still validates every call, so the rules a flat object cannot
12
+ * enforce, such as a field required for one kind only, stay enforced there.
13
+ */
8
14
  export declare function toMcpInputSchema(input: z.ZodType): McpInputSchema;
9
15
  //# sourceMappingURL=mcpInputSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mcpInputSchema.d.ts","sourceRoot":"","sources":["../../src/v1/mcpInputSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AA2BF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,CAAC,CAAC,OAAO,GAAG,cAAc,CAYjE"}
1
+ {"version":3,"file":"mcpInputSchema.d.ts","sourceRoot":"","sources":["../../src/v1/mcpInputSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAsDF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,CAAC,CAAC,OAAO,GAAG,cAAc,CAYjE"}
@@ -1,30 +1,61 @@
1
1
  import { z } from "zod";
2
- function toObjectProperties(properties) {
3
- return Object.fromEntries(Object.entries(properties).map(([key, schema]) => {
4
- if (typeof schema !== "boolean")
5
- return [key, schema];
6
- return [key, schema ? {} : { not: {} }];
7
- }));
2
+ import { declarationsOf, oneOrAll, propertyNamesOf, toSchemaObject, unique, } from "./mcpInputShape.js";
3
+ import { mergeDiscriminatedUnion } from "./mcpInputUnion.js";
4
+ const structuralKeys = new Set([
5
+ "$schema",
6
+ "allOf",
7
+ "anyOf",
8
+ "oneOf",
9
+ "properties",
10
+ "required",
11
+ "type",
12
+ ]);
13
+ function mergeIntersection(shapes) {
14
+ return {
15
+ properties: Object.fromEntries(propertyNamesOf(shapes).map((name) => [
16
+ name,
17
+ oneOrAll(declarationsOf(shapes, name), "allOf"),
18
+ ])),
19
+ required: unique(shapes.flatMap((shape) => shape.required)),
20
+ };
8
21
  }
9
- function requiringWorkspaceId(schema) {
10
- const { allOf, properties, required = [] } = schema;
11
- const declaresWorkspaceId = properties !== undefined && "workspaceId" in properties;
22
+ function toObjectShape(schema) {
23
+ if (schema.allOf)
24
+ return mergeIntersection(schema.allOf.map(toObjectShape));
25
+ const alternatives = schema.oneOf ?? schema.anyOf;
26
+ if (alternatives)
27
+ return mergeDiscriminatedUnion(alternatives.map(toObjectShape));
28
+ if (schema.type !== "object") {
29
+ throw Error(`An MCP tool input must be an object schema, not ${schema.type ?? "an untyped schema"}.`);
30
+ }
12
31
  return {
13
- ...schema,
14
- ...(allOf ? { allOf: allOf.map(requiringWorkspaceId) } : {}),
15
- ...(declaresWorkspaceId && !required.includes("workspaceId")
16
- ? { required: [...required, "workspaceId"] }
17
- : {}),
32
+ properties: Object.fromEntries(Object.entries(schema.properties ?? {}).map(([name, property]) => [
33
+ name,
34
+ toSchemaObject(property),
35
+ ])),
36
+ required: schema.required ?? [],
18
37
  };
19
38
  }
39
+ function requiringWorkspaceId(shape) {
40
+ const declaresWorkspaceId = "workspaceId" in shape.properties;
41
+ if (!declaresWorkspaceId || shape.required.includes("workspaceId"))
42
+ return shape;
43
+ return { ...shape, required: [...shape.required, "workspaceId"] };
44
+ }
45
+ /**
46
+ * Converts a contract input to the JSON Schema an MCP tool advertises: always
47
+ * one flat object, with no `allOf`, `anyOf` or `oneOf` at the root. The
48
+ * contract still validates every call, so the rules a flat object cannot
49
+ * enforce, such as a field required for one kind only, stay enforced there.
50
+ */
20
51
  export function toMcpInputSchema(input) {
21
- const generated = requiringWorkspaceId(z.toJSONSchema(input, { io: "input" }));
22
- delete generated.$schema;
23
- const { properties, required, ...rest } = generated;
52
+ const generated = z.toJSONSchema(input, { io: "input" });
53
+ const shape = requiringWorkspaceId(toObjectShape(generated));
54
+ const annotations = Object.fromEntries(Object.entries(generated).filter(([key]) => !structuralKeys.has(key)));
24
55
  return {
25
- ...rest,
26
- ...(properties ? { properties: toObjectProperties(properties) } : {}),
27
- ...(required ? { required } : {}),
56
+ ...annotations,
57
+ properties: shape.properties,
58
+ ...(shape.required.length > 0 ? { required: shape.required } : {}),
28
59
  type: "object",
29
60
  };
30
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mcpInputSchema.js","sourceRoot":"","sources":["../../src/v1/mcpInputSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,SAAS,kBAAkB,CACzB,UAA4C;IAE5C,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE;QAC/C,IAAI,OAAO,MAAM,KAAK,SAAS;YAAE,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACtD,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC,CACH,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAkB;IAC9C,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ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}
@@ -0,0 +1,13 @@
1
+ import type { z } from "zod";
2
+ export type JsonSchema = z.core.JSONSchema.JSONSchema;
3
+ export type ObjectShape = {
4
+ properties: Record<string, JsonSchema>;
5
+ required: string[];
6
+ };
7
+ export declare function unique<Item>(items: Item[]): Item[];
8
+ export declare function toSchemaObject(schema: z.core.JSONSchema._JSONSchema): JsonSchema;
9
+ export declare function propertyOf(shape: ObjectShape, name: string): JsonSchema | undefined;
10
+ export declare function declarationsOf(shapes: ObjectShape[], name: string): JsonSchema[];
11
+ export declare function propertyNamesOf(shapes: ObjectShape[]): string[];
12
+ export declare function oneOrAll(schemas: JsonSchema[], combinator: "allOf" | "anyOf"): JsonSchema;
13
+ //# sourceMappingURL=mcpInputShape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcpInputShape.d.ts","sourceRoot":"","sources":["../../src/v1/mcpInputShape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACvC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,wBAAgB,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAElD;AASD,wBAAgB,cAAc,CAC5B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,GACpC,UAAU,CAGZ;AAED,wBAAgB,UAAU,CACxB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,MAAM,GACX,UAAU,GAAG,SAAS,CAExB;AAED,wBAAgB,cAAc,CAC5B,MAAM,EAAE,WAAW,EAAE,EACrB,IAAI,EAAE,MAAM,GACX,UAAU,EAAE,CAKd;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,EAAE,CAE/D;AAED,wBAAgB,QAAQ,CACtB,OAAO,EAAE,UAAU,EAAE,EACrB,UAAU,EAAE,OAAO,GAAG,OAAO,GAC5B,UAAU,CAIZ"}
@@ -0,0 +1,31 @@
1
+ export function unique(items) {
2
+ return [...new Set(items)];
3
+ }
4
+ function distinctSchemas(schemas) {
5
+ const byJson = new Map(schemas.map((schema) => [JSON.stringify(schema), schema]));
6
+ return [...byJson.values()];
7
+ }
8
+ export function toSchemaObject(schema) {
9
+ if (typeof schema !== "boolean")
10
+ return schema;
11
+ return schema ? {} : { not: {} };
12
+ }
13
+ export function propertyOf(shape, name) {
14
+ return Object.entries(shape.properties).find(([key]) => key === name)?.[1];
15
+ }
16
+ export function declarationsOf(shapes, name) {
17
+ return shapes.flatMap((shape) => {
18
+ const property = propertyOf(shape, name);
19
+ return property === undefined ? [] : [property];
20
+ });
21
+ }
22
+ export function propertyNamesOf(shapes) {
23
+ return unique(shapes.flatMap((shape) => Object.keys(shape.properties)));
24
+ }
25
+ export function oneOrAll(schemas, combinator) {
26
+ const [only, ...others] = distinctSchemas(schemas);
27
+ if (!only)
28
+ throw Error("Cannot merge a property no branch declares.");
29
+ return others.length === 0 ? only : { [combinator]: [only, ...others] };
30
+ }
31
+ //# sourceMappingURL=mcpInputShape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcpInputShape.js","sourceRoot":"","sources":["../../src/v1/mcpInputShape.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,MAAM,CAAO,KAAa;IACxC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,eAAe,CAAC,OAAqB;IAC5C,MAAM,MAAM,GAAG,IAAI,GAAG,CACpB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EA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AAK,CAAC,6CAA6C,CAAC,CAAC;IACtE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;AAC1E,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ObjectShape } from "./mcpInputShape.js";
2
+ export declare function mergeDiscriminatedUnion(shapes: ObjectShape[]): ObjectShape;
3
+ //# sourceMappingURL=mcpInputUnion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcpInputUnion.d.ts","sourceRoot":"","sources":["../../src/v1/mcpInputUnion.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAKjB,MAAM,oBAAoB,CAAC;AA+E5B,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,WAAW,CAyC1E"}
@@ -0,0 +1,83 @@
1
+ import { declarationsOf, oneOrAll, propertyNamesOf, propertyOf, } from "./mcpInputShape.js";
2
+ function pinnedValueOf(shape, name) {
3
+ const pinned = propertyOf(shape, name)?.const;
4
+ return typeof pinned === "string" ? pinned : undefined;
5
+ }
6
+ function branchesPinnedBy(shapes, name) {
7
+ return shapes.flatMap((shape) => {
8
+ const value = pinnedValueOf(shape, name);
9
+ return value === undefined ? [] : [{ shape, value }];
10
+ });
11
+ }
12
+ function findDiscriminator(shapes) {
13
+ return propertyNamesOf(shapes)
14
+ .map((name) => ({ branches: branchesPinnedBy(shapes, name), name }))
15
+ .find(({ branches }) => branches.length === shapes.length &&
16
+ new Set(branches.map((branch) => branch.value)).size === shapes.length);
17
+ }
18
+ function listAlternatives(values) {
19
+ const quoted = values.map((value) => JSON.stringify(value));
20
+ if (quoted.length < 2)
21
+ return quoted.join("");
22
+ return `${quoted.slice(0, -1).join(", ")} or ${quoted.slice(-1).join("")}`;
23
+ }
24
+ function describeCondition(options) {
25
+ const { branchCount, discriminator, presentIn, requiredIn } = options;
26
+ const onlySome = presentIn.length < branchCount;
27
+ const requiredInSome = requiredIn.length > 0 && requiredIn.length < branchCount;
28
+ const when = (values) => `${discriminator} is ${listAlternatives(values)}`;
29
+ if (onlySome && requiredIn.length === presentIn.length)
30
+ return `Applies only when ${when(presentIn)}, and is required then.`;
31
+ const sentences = [
32
+ ...(onlySome ? [`Applies only when ${when(presentIn)}.`] : []),
33
+ ...(requiredInSome ? [`Required when ${when(requiredIn)}.`] : []),
34
+ ];
35
+ return sentences.length === 0 ? undefined : sentences.join(" ");
36
+ }
37
+ function withCondition(schema, condition) {
38
+ if (condition === undefined)
39
+ return schema;
40
+ const description = typeof schema.description === "string"
41
+ ? `${schema.description} ${condition}`
42
+ : condition;
43
+ return { ...schema, description };
44
+ }
45
+ function withoutPin(schema) {
46
+ return Object.fromEntries(Object.entries(schema).filter(([key]) => key !== "const"));
47
+ }
48
+ // The Claude API refuses a combinator at the root of a tool's input schema,
49
+ // and clients that flatten it themselves either drop branches or leave array
50
+ // fields untyped. A discriminated union keeps every branch: the discriminator
51
+ // becomes an enum, and a field that belongs to some branches says which.
52
+ export function mergeDiscriminatedUnion(shapes) {
53
+ const found = findDiscriminator(shapes);
54
+ if (found === undefined) {
55
+ throw Error("An MCP tool input that is a union needs a discriminator: a property every branch pins to a distinct string.");
56
+ }
57
+ const { branches, name: discriminator } = found;
58
+ const valuesWhere = (matches) => branches.filter(({ shape }) => matches(shape)).map(({ value }) => value);
59
+ const properties = propertyNamesOf(shapes).map((name) => {
60
+ const declared = declarationsOf(shapes, name);
61
+ if (name === discriminator) {
62
+ return [
63
+ name,
64
+ {
65
+ ...oneOrAll(declared.map(withoutPin), "anyOf"),
66
+ enum: branches.map(({ value }) => value),
67
+ },
68
+ ];
69
+ }
70
+ const condition = describeCondition({
71
+ branchCount: shapes.length,
72
+ discriminator,
73
+ presentIn: valuesWhere((shape) => propertyOf(shape, name) !== undefined),
74
+ requiredIn: valuesWhere((shape) => shape.required.includes(name)),
75
+ });
76
+ return [name, withCondition(oneOrAll(declared, "anyOf"), condition)];
77
+ });
78
+ return {
79
+ properties: Object.fromEntries(properties),
80
+ required: propertyNamesOf(shapes).filter((name) => shapes.every((shape) => shape.required.includes(name))),
81
+ };
82
+ }
83
+ //# sourceMappingURL=mcpInputUnion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcpInputUnion.js","sourceRoot":"","sources":["../../src/v1/mcpInputUnion.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EACd,QAAQ,EACR,eAAe,EACf,UAAU,GACX,MAAM,oBAAoB,CAAC;AAE5B,SAAS,aAAa,CAAC,KAAkB,EAAE,IAAY;IACrD,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAC9C,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACzD,CAAC;AAID,SAAS,gBAAgB,CAAC,MAAqB,EAAE,IAAY;IAC3D,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAC9B,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACzC,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,iBAAiB,CACxB,MAAqB;IAErB,OAAO,eAAe,CAAC,MAAM,CAAC;SAC3B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;SACnE,IAAI,CACH,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACf,QAAQ,CAAC,MAAM,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M,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAChD,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACvD;KACF,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qawolf/api-contracts",
3
- "version": "0.68.0",
3
+ "version": "0.70.0",
4
4
  "private": false,
5
5
  "description": "Versioned contracts for the QA Wolf public API",
6
6
  "repository": {