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.d.cts CHANGED
@@ -87,7 +87,7 @@ interface BuildCuratorAuthorDependencies {
87
87
  */
88
88
  export declare function buildCuratorAuthor(deps: BuildCuratorAuthorDependencies): CuratorAuthor;
89
89
  declare const nudgeResponseSchema: z.ZodObject<{
90
- sessionId: z.ZodString;
90
+ sessionId: z.ZodUUID;
91
91
  }, z.core.$strict>;
92
92
  type NudgeResponse = z.infer<typeof nudgeResponseSchema>;
93
93
  interface NudgeDaemonOptions {
package/dist/index.d.ts CHANGED
@@ -87,7 +87,7 @@ interface BuildCuratorAuthorDependencies {
87
87
  */
88
88
  export declare function buildCuratorAuthor(deps: BuildCuratorAuthorDependencies): CuratorAuthor;
89
89
  declare const nudgeResponseSchema: z.ZodObject<{
90
- sessionId: z.ZodString;
90
+ sessionId: z.ZodUUID;
91
91
  }, z.core.$strict>;
92
92
  type NudgeResponse = z.infer<typeof nudgeResponseSchema>;
93
93
  interface NudgeDaemonOptions {
package/dist/index.js CHANGED
@@ -1011,13 +1011,13 @@ const anchorSchema = z.discriminatedUnion("t", [
1011
1011
  message: z.string()
1012
1012
  }).strict()
1013
1013
  ]);
1014
- const wireBundleSchema = z.object({
1014
+ const wireBundleSchema = z.looseObject({
1015
1015
  kind: bundleKindSchema,
1016
1016
  subtype: factSubtypeSchema.optional(),
1017
1017
  anchors: z.array(anchorSchema).min(1),
1018
1018
  summary: z.string(),
1019
1019
  body: z.string()
1020
- }).passthrough().superRefine((bundle, context) => {
1020
+ }).superRefine((bundle, context) => {
1021
1021
  if (bundle.kind === "fact" && bundle.subtype === void 0) context.addIssue({
1022
1022
  code: "custom",
1023
1023
  path: ["subtype"],
@@ -1030,44 +1030,44 @@ const wireBundleSchema = z.object({
1030
1030
  });
1031
1031
  });
1032
1032
  const wireDeltaSchema = z.discriminatedUnion("kind", [
1033
- z.object({
1033
+ z.looseObject({
1034
1034
  kind: z.literal("Add"),
1035
1035
  citedAliases: citedAliasesSchema,
1036
1036
  bundle: wireBundleSchema
1037
- }).passthrough(),
1038
- z.object({
1037
+ }),
1038
+ z.looseObject({
1039
1039
  kind: z.literal("Confirm"),
1040
1040
  citedAliases: citedAliasesSchema,
1041
1041
  targetAlias: aliasSchema
1042
- }).passthrough(),
1043
- z.object({
1042
+ }),
1043
+ z.looseObject({
1044
1044
  kind: z.literal("Supersede"),
1045
1045
  citedAliases: citedAliasesSchema,
1046
1046
  victimAlias: aliasSchema,
1047
1047
  newBundle: wireBundleSchema
1048
- }).passthrough(),
1049
- z.object({
1048
+ }),
1049
+ z.looseObject({
1050
1050
  kind: z.literal("Deprecate"),
1051
1051
  citedAliases: citedAliasesSchema,
1052
1052
  targetAlias: aliasSchema,
1053
1053
  reason: z.string().min(1)
1054
- }).passthrough(),
1055
- z.object({
1054
+ }),
1055
+ z.looseObject({
1056
1056
  kind: z.literal("MintUnknown"),
1057
1057
  citedAliases: citedAliasesSchema,
1058
- conflict: z.object({
1058
+ conflict: z.looseObject({
1059
1059
  aliases: z.array(aliasSchema).min(1),
1060
1060
  kind: z.enum([
1061
1061
  "contradiction",
1062
1062
  "drift",
1063
1063
  "clarification"
1064
1064
  ])
1065
- }).passthrough()
1066
- }).passthrough(),
1067
- z.object({
1065
+ })
1066
+ }),
1067
+ z.looseObject({
1068
1068
  kind: z.literal("Noop"),
1069
1069
  citedAliases: citedAliasesSchema
1070
- }).passthrough()
1070
+ })
1071
1071
  ]);
1072
1072
  const DELTA_KINDS = /* @__PURE__ */ new Set([
1073
1073
  "Add",
@@ -1429,22 +1429,22 @@ const procedureParamTypeSchema = z.enum([
1429
1429
  "boolean",
1430
1430
  "secret"
1431
1431
  ]);
1432
- const extractionParameterSchema = z.object({
1432
+ const extractionParameterSchema = z.looseObject({
1433
1433
  name: z.string().min(1),
1434
1434
  type: procedureParamTypeSchema,
1435
1435
  required: z.boolean(),
1436
- appliesTo: z.array(z.object({
1436
+ appliesTo: z.array(z.looseObject({
1437
1437
  stepOrdinal: z.number().int().nonnegative(),
1438
1438
  field: z.string().min(1)
1439
- }).passthrough()).min(1)
1440
- }).passthrough();
1441
- const extractionCandidateSchema = z.object({
1439
+ })).min(1)
1440
+ });
1441
+ const extractionCandidateSchema = z.looseObject({
1442
1442
  flowName: z.string().min(1),
1443
1443
  stepSpan: z.tuple([z.number().int().nonnegative(), z.number().int().nonnegative()]),
1444
1444
  parameters: z.array(extractionParameterSchema),
1445
1445
  successAssertion: z.string()
1446
- }).passthrough();
1447
- const extractionProposalSchema = z.object({ candidates: z.array(extractionCandidateSchema).min(1) }).passthrough();
1446
+ });
1447
+ const extractionProposalSchema = z.looseObject({ candidates: z.array(extractionCandidateSchema).min(1) });
1448
1448
  function isReplayableTrajectoryStep(step) {
1449
1449
  if (step.action === void 0 || step.pageRoute === void 0) return false;
1450
1450
  const laneKeys = Object.keys(step.action.targets);
@@ -1859,7 +1859,7 @@ function buildCuratorAuthor(deps) {
1859
1859
  maxRetries: 0,
1860
1860
  temperature: 0,
1861
1861
  maxOutputTokens: ceilings.maxOutput,
1862
- system: systemMessage.content,
1862
+ instructions: systemMessage.content,
1863
1863
  messages: turnMessages,
1864
1864
  ...deps.signal === void 0 ? {} : { abortSignal: deps.signal }
1865
1865
  });
@@ -1922,7 +1922,7 @@ function buildCuratorAuthor(deps) {
1922
1922
  maxRetries: 0,
1923
1923
  temperature: 0,
1924
1924
  maxOutputTokens: prompt.maxOutputTokens,
1925
- system: systemMessage.content,
1925
+ instructions: systemMessage.content,
1926
1926
  messages: turnMessages,
1927
1927
  ...deps.signal === void 0 ? {} : { abortSignal: deps.signal }
1928
1928
  });
@@ -1955,10 +1955,10 @@ z.object({
1955
1955
  kind: z.literal("candidates-enqueued"),
1956
1956
  requireReceipt: z.boolean().default(false)
1957
1957
  }).strict();
1958
- const nudgeResponseSchema = z.object({ sessionId: z.string().uuid() }).strict();
1958
+ const nudgeResponseSchema = z.object({ sessionId: z.uuid() }).strict();
1959
1959
  const daemonIdentitySchema = z.object({
1960
1960
  schemaVersion: z.literal(2),
1961
- instanceId: z.string().uuid(),
1961
+ instanceId: z.uuid(),
1962
1962
  pid: z.number().int().positive()
1963
1963
  }).strict();
1964
1964
  Object.freeze({
@@ -2057,7 +2057,7 @@ const DAEMON_REGISTRATION_FILE = "daemon.json";
2057
2057
  const DAEMON_IDENTITY_HANDSHAKE_TIMEOUT_MS = 1e3;
2058
2058
  const daemonRegistrationSchema = z.object({
2059
2059
  schemaVersion: z.literal(2),
2060
- instanceId: z.string().uuid(),
2060
+ instanceId: z.uuid(),
2061
2061
  pid: z.number().int().positive(),
2062
2062
  socketPath: z.string().min(1),
2063
2063
  startedAtMs: z.number().int().nonnegative()