agent-qa 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1031,13 +1031,13 @@ const anchorSchema = zod.z.discriminatedUnion("t", [
1031
1031
  message: zod.z.string()
1032
1032
  }).strict()
1033
1033
  ]);
1034
- const wireBundleSchema = zod.z.object({
1034
+ const wireBundleSchema = zod.z.looseObject({
1035
1035
  kind: bundleKindSchema,
1036
1036
  subtype: factSubtypeSchema.optional(),
1037
1037
  anchors: zod.z.array(anchorSchema).min(1),
1038
1038
  summary: zod.z.string(),
1039
1039
  body: zod.z.string()
1040
- }).passthrough().superRefine((bundle, context) => {
1040
+ }).superRefine((bundle, context) => {
1041
1041
  if (bundle.kind === "fact" && bundle.subtype === void 0) context.addIssue({
1042
1042
  code: "custom",
1043
1043
  path: ["subtype"],
@@ -1050,44 +1050,44 @@ const wireBundleSchema = zod.z.object({
1050
1050
  });
1051
1051
  });
1052
1052
  const wireDeltaSchema = zod.z.discriminatedUnion("kind", [
1053
- zod.z.object({
1053
+ zod.z.looseObject({
1054
1054
  kind: zod.z.literal("Add"),
1055
1055
  citedAliases: citedAliasesSchema,
1056
1056
  bundle: wireBundleSchema
1057
- }).passthrough(),
1058
- zod.z.object({
1057
+ }),
1058
+ zod.z.looseObject({
1059
1059
  kind: zod.z.literal("Confirm"),
1060
1060
  citedAliases: citedAliasesSchema,
1061
1061
  targetAlias: aliasSchema
1062
- }).passthrough(),
1063
- zod.z.object({
1062
+ }),
1063
+ zod.z.looseObject({
1064
1064
  kind: zod.z.literal("Supersede"),
1065
1065
  citedAliases: citedAliasesSchema,
1066
1066
  victimAlias: aliasSchema,
1067
1067
  newBundle: wireBundleSchema
1068
- }).passthrough(),
1069
- zod.z.object({
1068
+ }),
1069
+ zod.z.looseObject({
1070
1070
  kind: zod.z.literal("Deprecate"),
1071
1071
  citedAliases: citedAliasesSchema,
1072
1072
  targetAlias: aliasSchema,
1073
1073
  reason: zod.z.string().min(1)
1074
- }).passthrough(),
1075
- zod.z.object({
1074
+ }),
1075
+ zod.z.looseObject({
1076
1076
  kind: zod.z.literal("MintUnknown"),
1077
1077
  citedAliases: citedAliasesSchema,
1078
- conflict: zod.z.object({
1078
+ conflict: zod.z.looseObject({
1079
1079
  aliases: zod.z.array(aliasSchema).min(1),
1080
1080
  kind: zod.z.enum([
1081
1081
  "contradiction",
1082
1082
  "drift",
1083
1083
  "clarification"
1084
1084
  ])
1085
- }).passthrough()
1086
- }).passthrough(),
1087
- zod.z.object({
1085
+ })
1086
+ }),
1087
+ zod.z.looseObject({
1088
1088
  kind: zod.z.literal("Noop"),
1089
1089
  citedAliases: citedAliasesSchema
1090
- }).passthrough()
1090
+ })
1091
1091
  ]);
1092
1092
  const DELTA_KINDS = /* @__PURE__ */ new Set([
1093
1093
  "Add",
@@ -1449,22 +1449,22 @@ const procedureParamTypeSchema = zod.z.enum([
1449
1449
  "boolean",
1450
1450
  "secret"
1451
1451
  ]);
1452
- const extractionParameterSchema = zod.z.object({
1452
+ const extractionParameterSchema = zod.z.looseObject({
1453
1453
  name: zod.z.string().min(1),
1454
1454
  type: procedureParamTypeSchema,
1455
1455
  required: zod.z.boolean(),
1456
- appliesTo: zod.z.array(zod.z.object({
1456
+ appliesTo: zod.z.array(zod.z.looseObject({
1457
1457
  stepOrdinal: zod.z.number().int().nonnegative(),
1458
1458
  field: zod.z.string().min(1)
1459
- }).passthrough()).min(1)
1460
- }).passthrough();
1461
- const extractionCandidateSchema = zod.z.object({
1459
+ })).min(1)
1460
+ });
1461
+ const extractionCandidateSchema = zod.z.looseObject({
1462
1462
  flowName: zod.z.string().min(1),
1463
1463
  stepSpan: zod.z.tuple([zod.z.number().int().nonnegative(), zod.z.number().int().nonnegative()]),
1464
1464
  parameters: zod.z.array(extractionParameterSchema),
1465
1465
  successAssertion: zod.z.string()
1466
- }).passthrough();
1467
- const extractionProposalSchema = zod.z.object({ candidates: zod.z.array(extractionCandidateSchema).min(1) }).passthrough();
1466
+ });
1467
+ const extractionProposalSchema = zod.z.looseObject({ candidates: zod.z.array(extractionCandidateSchema).min(1) });
1468
1468
  function isReplayableTrajectoryStep(step) {
1469
1469
  if (step.action === void 0 || step.pageRoute === void 0) return false;
1470
1470
  const laneKeys = Object.keys(step.action.targets);
@@ -1879,7 +1879,7 @@ function buildCuratorAuthor(deps) {
1879
1879
  maxRetries: 0,
1880
1880
  temperature: 0,
1881
1881
  maxOutputTokens: ceilings.maxOutput,
1882
- system: systemMessage.content,
1882
+ instructions: systemMessage.content,
1883
1883
  messages: turnMessages,
1884
1884
  ...deps.signal === void 0 ? {} : { abortSignal: deps.signal }
1885
1885
  });
@@ -1942,7 +1942,7 @@ function buildCuratorAuthor(deps) {
1942
1942
  maxRetries: 0,
1943
1943
  temperature: 0,
1944
1944
  maxOutputTokens: prompt.maxOutputTokens,
1945
- system: systemMessage.content,
1945
+ instructions: systemMessage.content,
1946
1946
  messages: turnMessages,
1947
1947
  ...deps.signal === void 0 ? {} : { abortSignal: deps.signal }
1948
1948
  });
@@ -1975,10 +1975,10 @@ zod.z.object({
1975
1975
  kind: zod.z.literal("candidates-enqueued"),
1976
1976
  requireReceipt: zod.z.boolean().default(false)
1977
1977
  }).strict();
1978
- const nudgeResponseSchema = zod.z.object({ sessionId: zod.z.string().uuid() }).strict();
1978
+ const nudgeResponseSchema = zod.z.object({ sessionId: zod.z.uuid() }).strict();
1979
1979
  const daemonIdentitySchema = zod.z.object({
1980
1980
  schemaVersion: zod.z.literal(2),
1981
- instanceId: zod.z.string().uuid(),
1981
+ instanceId: zod.z.uuid(),
1982
1982
  pid: zod.z.number().int().positive()
1983
1983
  }).strict();
1984
1984
  Object.freeze({
@@ -2077,7 +2077,7 @@ const DAEMON_REGISTRATION_FILE = "daemon.json";
2077
2077
  const DAEMON_IDENTITY_HANDSHAKE_TIMEOUT_MS = 1e3;
2078
2078
  const daemonRegistrationSchema = zod.z.object({
2079
2079
  schemaVersion: zod.z.literal(2),
2080
- instanceId: zod.z.string().uuid(),
2080
+ instanceId: zod.z.uuid(),
2081
2081
  pid: zod.z.number().int().positive(),
2082
2082
  socketPath: zod.z.string().min(1),
2083
2083
  startedAtMs: zod.z.number().int().nonnegative()