@finalai/agent-definition 0.1.9 → 0.4.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 (63) hide show
  1. package/THIRD_PARTY_NOTICES.md +565 -0
  2. package/dist/compiler-assets/{chunk-YW7HDGQA.ts → chunk-2LYL3UFK.ts} +4 -4
  3. package/dist/compiler-assets/{chunk-PFLSBTJA.ts → chunk-36MVFRMA.ts} +2 -2
  4. package/dist/compiler-assets/{chunk-2ZRYQO4Q.ts → chunk-4ERFBLH7.ts} +4 -4
  5. package/dist/compiler-assets/{chunk-Z2UDHIJK.ts → chunk-6MVG5NYI.ts} +13 -13
  6. package/dist/compiler-assets/{chunk-7XUPKRZU.ts → chunk-7KPWSOMK.ts} +1 -1
  7. package/dist/compiler-assets/{chunk-JGQ2KAN7.ts → chunk-7MDGEPFT.ts} +1 -1
  8. package/dist/compiler-assets/{chunk-TJZS457N.ts → chunk-BLF6KTBB.ts} +3 -3
  9. package/dist/compiler-assets/{chunk-4X2DS5BR.ts → chunk-FU5VHNO4.ts} +1 -1
  10. package/dist/compiler-assets/{chunk-APU2VKLW.ts → chunk-GOIK7WNT.ts} +3 -3
  11. package/dist/compiler-assets/{chunk-KGIUNNCX.ts → chunk-ISYIPH2T.ts} +3 -3
  12. package/dist/compiler-assets/{chunk-34O434BK.ts → chunk-JFNLGXQM.ts} +2 -2
  13. package/dist/compiler-assets/{chunk-TJ536HI4.ts → chunk-JW4Y5OAP.ts} +6 -6
  14. package/dist/compiler-assets/{chunk-4E5HECVD.ts → chunk-KNFPKVUS.ts} +1 -1
  15. package/dist/compiler-assets/{chunk-QJ26GEUM.ts → chunk-KTBNDKGJ.ts} +1 -1
  16. package/dist/compiler-assets/{chunk-3K4C4SVG.ts → chunk-KTXTYIF4.ts} +209 -1
  17. package/dist/compiler-assets/{chunk-RSWGFPNZ.ts → chunk-L7E6UQX3.ts} +3 -3
  18. package/dist/compiler-assets/{chunk-W6DOJA4W.ts → chunk-O3JKMLDP.ts} +3 -3
  19. package/dist/compiler-assets/{chunk-K6D7ZK74.ts → chunk-OBFQTLWC.ts} +3 -3
  20. package/dist/compiler-assets/{chunk-TM36NO3C.ts → chunk-OX46N5EP.ts} +1 -1
  21. package/dist/compiler-assets/{chunk-GCFSHHH2.ts → chunk-QVHDGZAN.ts} +2 -2
  22. package/dist/compiler-assets/{chunk-MSE7X5YG.ts → chunk-R4IHPPTB.ts} +2 -2
  23. package/dist/compiler-assets/chunk-S5ON7OBR.ts +8081 -0
  24. package/dist/compiler-assets/{chunk-4A66SVBJ.ts → chunk-TFPXCL5W.ts} +4 -4
  25. package/dist/compiler-assets/{chunk-5PWY25HA.ts → chunk-V5E4RKG6.ts} +4 -4
  26. package/dist/compiler-assets/chunk-VI5WBWUX.ts +97 -0
  27. package/dist/compiler-assets/{chunk-LHMUAIYJ.ts → chunk-WJPAUIVM.ts} +1 -1
  28. package/dist/compiler-assets/{chunk-ULI5WWRR.ts → chunk-XJNO7EHQ.ts} +2 -2
  29. package/dist/compiler-assets/{chunk-UBR53WBH.ts → chunk-YOE37BRR.ts} +7 -7
  30. package/dist/compiler-assets/{chunk-D3SB4CCB.ts → chunk-Z7HGOUC2.ts} +1 -1
  31. package/dist/compiler-assets/{chunk-5NTKRRMC.ts → chunk-ZICJVGG7.ts} +7 -7
  32. package/dist/compiler-assets/src/authoring/agent.ts +4 -4
  33. package/dist/compiler-assets/src/authoring/approval.ts +7 -7
  34. package/dist/compiler-assets/src/authoring/brand.ts +3 -3
  35. package/dist/compiler-assets/src/authoring/channels.ts +6 -6
  36. package/dist/compiler-assets/src/authoring/connections.ts +11 -11
  37. package/dist/compiler-assets/src/authoring/credentials.ts +7 -7
  38. package/dist/compiler-assets/src/authoring/dynamic.ts +8 -8
  39. package/dist/compiler-assets/src/authoring/harness.ts +9 -9
  40. package/dist/compiler-assets/src/authoring/hooks.ts +10 -10
  41. package/dist/compiler-assets/src/authoring/index.ts +26 -26
  42. package/dist/compiler-assets/src/authoring/instructions.ts +9 -9
  43. package/dist/compiler-assets/src/authoring/sandbox.ts +11 -10
  44. package/dist/compiler-assets/src/authoring/schedules.ts +4 -4
  45. package/dist/compiler-assets/src/authoring/skills.ts +4 -4
  46. package/dist/compiler-assets/src/authoring/tools.ts +9 -9
  47. package/dist/compiler-assets/src/compatibility.ts +6 -6
  48. package/dist/compiler-assets/src/hosted-bindings.ts +6 -6
  49. package/dist/compiler-assets/src/index.ts +27 -27
  50. package/dist/compiler-assets/src/manifest.ts +4 -4
  51. package/dist/compiler-assets/src/resolve.ts +5 -5
  52. package/dist/compiler-assets/src/runtime/bundle.ts +18 -18
  53. package/dist/compiler-assets/src/runtime/describe.ts +14 -14
  54. package/dist/compiler-assets/src/runtime/described.ts +13 -13
  55. package/dist/compiler-assets/src/runtime/isolate.ts +17 -17
  56. package/dist/compiler-assets/src/runtime/lower.ts +13 -13
  57. package/dist/compiler-assets/src/runtime/schema-validation.ts +4 -4
  58. package/dist/compiler-assets/src/runtime/values.ts +2 -2
  59. package/dist/compiler-assets/webapi-JYYAFVXR.ts +2480 -0
  60. package/dist/modules/authoring/channels.d.mts +2 -2
  61. package/package.json +3 -3
  62. package/dist/compiler-assets/chunk-CIWWFQHL.ts +0 -0
  63. package/dist/compiler-assets/chunk-OEXIS2VK.ts +0 -43
@@ -8,48 +8,48 @@ import {
8
8
  lowerSkill,
9
9
  lowerTool,
10
10
  toJson
11
- } from "./chunk-5NTKRRMC.ts";
11
+ } from "./chunk-ZICJVGG7.ts";
12
12
  import {
13
13
  AUTHORED_SERVER_KEY
14
14
  } from "./chunk-NMYHO2QN.ts";
15
15
  import {
16
16
  hookHandlersFor
17
- } from "./chunk-TJZS457N.ts";
17
+ } from "./chunk-BLF6KTBB.ts";
18
18
  import {
19
19
  unopenedRequestOf
20
- } from "./chunk-4E5HECVD.ts";
20
+ } from "./chunk-KNFPKVUS.ts";
21
21
  import {
22
22
  registerToolName,
23
23
  toolLabelSchema
24
- } from "./chunk-2ZRYQO4Q.ts";
24
+ } from "./chunk-4ERFBLH7.ts";
25
25
  import {
26
26
  lowerApproval
27
- } from "./chunk-4A66SVBJ.ts";
27
+ } from "./chunk-TFPXCL5W.ts";
28
28
  import {
29
29
  ConversationKind,
30
30
  ParticipantKind
31
- } from "./chunk-34O434BK.ts";
31
+ } from "./chunk-JFNLGXQM.ts";
32
32
  import {
33
33
  mcpServerBindingSchema,
34
34
  providerRefSchema
35
- } from "./chunk-APU2VKLW.ts";
35
+ } from "./chunk-GOIK7WNT.ts";
36
36
  import {
37
37
  TranscriptRole
38
38
  } from "./chunk-RWUIMTBI.ts";
39
39
  import {
40
40
  validateSchemaValue
41
- } from "./chunk-W6DOJA4W.ts";
41
+ } from "./chunk-O3JKMLDP.ts";
42
42
  import {
43
43
  DynamicEvent
44
- } from "./chunk-MSE7X5YG.ts";
44
+ } from "./chunk-R4IHPPTB.ts";
45
45
  import {
46
46
  jsonObjectSchema,
47
47
  jsonValueSchema
48
- } from "./chunk-4X2DS5BR.ts";
48
+ } from "./chunk-FU5VHNO4.ts";
49
49
  import {
50
50
  authoredKindOf,
51
51
  stamp
52
- } from "./chunk-QJ26GEUM.ts";
52
+ } from "./chunk-KTBNDKGJ.ts";
53
53
  import {
54
54
  authoredRecordSchema,
55
55
  callableSchema,
@@ -61,7 +61,7 @@ import {
61
61
  isPlainObject,
62
62
  messageOf,
63
63
  optionalValueSchema
64
- } from "./chunk-TM36NO3C.ts";
64
+ } from "./chunk-OX46N5EP.ts";
65
65
  import {
66
66
  array,
67
67
  boolean,
@@ -70,7 +70,7 @@ import {
70
70
  number,
71
71
  object,
72
72
  string
73
- } from "./chunk-3K4C4SVG.ts";
73
+ } from "./chunk-KTXTYIF4.ts";
74
74
 
75
75
  // src/runtime/isolate.ts
76
76
  var jsonOf = (value, path) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  stamp
3
- } from "./chunk-QJ26GEUM.ts";
3
+ } from "./chunk-KTBNDKGJ.ts";
4
4
 
5
5
  // src/authoring/agent.ts
6
6
  var defineAgent = (definition) => stamp({ ...definition }, "agent" /* Agent */);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  stamp
3
- } from "./chunk-QJ26GEUM.ts";
3
+ } from "./chunk-KTBNDKGJ.ts";
4
4
 
5
5
  // src/authoring/schedules.ts
6
6
  var defineSchedule = (definition) => stamp({ ...definition }, "schedule" /* Schedule */);
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  stamp
3
- } from "./chunk-QJ26GEUM.ts";
3
+ } from "./chunk-KTBNDKGJ.ts";
4
4
  import {
5
5
  authoredRecordSchema,
6
6
  isCallable
7
- } from "./chunk-TM36NO3C.ts";
7
+ } from "./chunk-OX46N5EP.ts";
8
8
  import {
9
9
  looseObject
10
- } from "./chunk-3K4C4SVG.ts";
10
+ } from "./chunk-KTXTYIF4.ts";
11
11
 
12
12
  // src/authoring/hooks.ts
13
13
  var HookEvent = /* @__PURE__ */ ((HookEvent2) => {
@@ -7,7 +7,7 @@ import {
7
7
  record,
8
8
  string,
9
9
  union
10
- } from "./chunk-3K4C4SVG.ts";
10
+ } from "./chunk-KTXTYIF4.ts";
11
11
 
12
12
  // ../agent-provider/src/json.ts
13
13
  var jsonValueSchema = lazy(
@@ -2,12 +2,12 @@ import {
2
2
  DynamicEvent,
3
3
  containsDynamicSlot,
4
4
  maybeDynamic
5
- } from "./chunk-MSE7X5YG.ts";
5
+ } from "./chunk-R4IHPPTB.ts";
6
6
  import {
7
7
  jsonObjectSchema,
8
8
  jsonSchemaSchema,
9
9
  jsonValueSchema
10
- } from "./chunk-4X2DS5BR.ts";
10
+ } from "./chunk-FU5VHNO4.ts";
11
11
  import {
12
12
  array,
13
13
  boolean,
@@ -20,7 +20,7 @@ import {
20
20
  strictObject,
21
21
  string,
22
22
  union
23
- } from "./chunk-3K4C4SVG.ts";
23
+ } from "./chunk-KTXTYIF4.ts";
24
24
 
25
25
  // ../agent-protocol/src/avatar.ts
26
26
  var avatarMediaSchema = discriminatedUnion("type", [
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  jsonObjectSchema
3
- } from "./chunk-4X2DS5BR.ts";
3
+ } from "./chunk-FU5VHNO4.ts";
4
4
  import {
5
5
  stamp
6
- } from "./chunk-QJ26GEUM.ts";
6
+ } from "./chunk-KTBNDKGJ.ts";
7
7
  import {
8
8
  array,
9
9
  object,
10
10
  string
11
- } from "./chunk-3K4C4SVG.ts";
11
+ } from "./chunk-KTXTYIF4.ts";
12
12
 
13
13
  // ../agent-provider/src/channel-context.ts
14
14
  var channelInputReceiptSchema = object({
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  jsonObjectSchema,
3
3
  jsonValueSchema
4
- } from "./chunk-4X2DS5BR.ts";
4
+ } from "./chunk-FU5VHNO4.ts";
5
5
  import {
6
6
  _null,
7
7
  array,
@@ -11,7 +11,7 @@ import {
11
11
  object,
12
12
  string,
13
13
  union
14
- } from "./chunk-3K4C4SVG.ts";
14
+ } from "./chunk-KTXTYIF4.ts";
15
15
 
16
16
  // ../agent-provider/src/channel.ts
17
17
  var ChannelPrincipalType = /* @__PURE__ */ ((ChannelPrincipalType2) => {
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  mcpAuthSchema
3
- } from "./chunk-APU2VKLW.ts";
3
+ } from "./chunk-GOIK7WNT.ts";
4
4
  import {
5
5
  defineDynamic
6
- } from "./chunk-PFLSBTJA.ts";
6
+ } from "./chunk-36MVFRMA.ts";
7
7
  import {
8
8
  requireHostedBinding
9
- } from "./chunk-MSE7X5YG.ts";
9
+ } from "./chunk-R4IHPPTB.ts";
10
10
  import {
11
11
  jsonObjectSchema
12
- } from "./chunk-4X2DS5BR.ts";
12
+ } from "./chunk-FU5VHNO4.ts";
13
13
  import {
14
14
  stamp
15
- } from "./chunk-QJ26GEUM.ts";
15
+ } from "./chunk-KTBNDKGJ.ts";
16
16
  import {
17
17
  record,
18
18
  strictObject,
19
19
  string,
20
20
  toJSONSchema
21
- } from "./chunk-3K4C4SVG.ts";
21
+ } from "./chunk-KTXTYIF4.ts";
22
22
 
23
23
  // src/authoring/connections.ts
24
24
  var defineMcpClientConnection = (definition) => stamp({ ...definition }, "connection" /* Connection */);
@@ -7,7 +7,7 @@ import {
7
7
  object,
8
8
  string,
9
9
  unknown
10
- } from "./chunk-3K4C4SVG.ts";
10
+ } from "./chunk-KTXTYIF4.ts";
11
11
 
12
12
  // ../agent-provider/src/sandbox/open-scope.ts
13
13
  var openRequestFieldsSchema = looseObject({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isObjectLike
3
- } from "./chunk-TM36NO3C.ts";
3
+ } from "./chunk-OX46N5EP.ts";
4
4
 
5
5
  // src/authoring/brand.ts
6
6
  var AuthoredKind = /* @__PURE__ */ ((AuthoredKind2) => {
@@ -84,6 +84,9 @@ __export(util_exports, {
84
84
 
85
85
  // ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
86
86
  var _a;
87
+ var NEVER = /* @__PURE__ */ Object.freeze({
88
+ status: "aborted"
89
+ });
87
90
  var _zodDesc = { value: void 0, enumerable: false };
88
91
  var _E = "captureStackTrace" in Error ? Error : null;
89
92
  function newError(Definition) {
@@ -1017,6 +1020,7 @@ function datetime(args) {
1017
1020
  return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
1018
1021
  }
1019
1022
  var anyString = /^[\s\S]{0,}$/;
1023
+ var bigint = /^-?\d+n?$/;
1020
1024
  var integer = /^-?\d+$/;
1021
1025
  var number = /^-?\d+(?:\.\d+)?$/;
1022
1026
  var boolean = /^(?:true|false)$/i;
@@ -2195,6 +2199,26 @@ var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
2195
2199
  return payload;
2196
2200
  };
2197
2201
  });
2202
+ var $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
2203
+ $ZodType.init(inst, def);
2204
+ inst._zod.pattern = bigint;
2205
+ inst._zod.parse = (payload, _ctx) => {
2206
+ if (def.coerce)
2207
+ try {
2208
+ payload.value = BigInt(payload.value);
2209
+ } catch (_) {
2210
+ }
2211
+ if (typeof payload.value === "bigint")
2212
+ return payload;
2213
+ payload.issues.push({
2214
+ expected: "bigint",
2215
+ code: "invalid_type",
2216
+ input: payload.value,
2217
+ inst
2218
+ });
2219
+ return payload;
2220
+ };
2221
+ });
2198
2222
  var $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
2199
2223
  $ZodType.init(inst, def);
2200
2224
  inst._zod.pattern = _null;
@@ -2212,6 +2236,10 @@ var $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
2212
2236
  return payload;
2213
2237
  };
2214
2238
  });
2239
+ var $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => {
2240
+ $ZodType.init(inst, def);
2241
+ inst._zod.parse = (payload) => payload;
2242
+ });
2215
2243
  var $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
2216
2244
  $ZodType.init(inst, def);
2217
2245
  inst._zod.parse = (payload) => payload;
@@ -2228,6 +2256,30 @@ var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
2228
2256
  return payload;
2229
2257
  };
2230
2258
  });
2259
+ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
2260
+ $ZodType.init(inst, def);
2261
+ inst._zod.parse = (payload, _ctx) => {
2262
+ if (def.coerce) {
2263
+ try {
2264
+ payload.value = new Date(payload.value);
2265
+ } catch (_err) {
2266
+ }
2267
+ }
2268
+ const input = payload.value;
2269
+ const isDate = input instanceof Date;
2270
+ const isValidDate = isDate && !Number.isNaN(input.getTime());
2271
+ if (isValidDate)
2272
+ return payload;
2273
+ payload.issues.push({
2274
+ expected: "date",
2275
+ code: "invalid_type",
2276
+ input,
2277
+ ...isDate ? { received: "Invalid Date" } : {},
2278
+ inst
2279
+ });
2280
+ return payload;
2281
+ };
2282
+ });
2231
2283
  function handleArrayResult(result, final, index) {
2232
2284
  if (result.issues.length) {
2233
2285
  final.issues.push(...prefixIssues(index, result.issues));
@@ -3364,6 +3416,9 @@ function handlePipeResult(left, next, ctx) {
3364
3416
  }
3365
3417
  return next._zod.run({ value: left.value, issues: left.issues }, ctx);
3366
3418
  }
3419
+ var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
3420
+ $ZodPipe.init(inst, def);
3421
+ });
3367
3422
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
3368
3423
  $ZodType.init(inst, def);
3369
3424
  defineLazyInternal(inst, "propValues", (zod) => zod.def.innerType._zod.propValues);
@@ -5250,6 +5305,10 @@ function _string(Class2, params) {
5250
5305
  return new Class2(snapshotChecks({ type: "string", ...normalizeParams(params) }));
5251
5306
  }
5252
5307
  // @__NO_SIDE_EFFECTS__
5308
+ function _coercedString(Class2, params) {
5309
+ return new Class2(snapshotChecks({ type: "string", coerce: true, ...normalizeParams(params) }));
5310
+ }
5311
+ // @__NO_SIDE_EFFECTS__
5253
5312
  function _email(Class2, params) {
5254
5313
  return new Class2({
5255
5314
  type: "string",
@@ -5517,6 +5576,10 @@ function _number(Class2, params) {
5517
5576
  return new Class2(snapshotChecks({ type: "number", checks: [], ...normalizeParams(params) }));
5518
5577
  }
5519
5578
  // @__NO_SIDE_EFFECTS__
5579
+ function _coercedNumber(Class2, params) {
5580
+ return new Class2(snapshotChecks({ type: "number", coerce: true, checks: [], ...normalizeParams(params) }));
5581
+ }
5582
+ // @__NO_SIDE_EFFECTS__
5520
5583
  function _int(Class2, params) {
5521
5584
  return new Class2({
5522
5585
  type: "number",
@@ -5534,6 +5597,22 @@ function _boolean(Class2, params) {
5534
5597
  });
5535
5598
  }
5536
5599
  // @__NO_SIDE_EFFECTS__
5600
+ function _coercedBoolean(Class2, params) {
5601
+ return new Class2({
5602
+ type: "boolean",
5603
+ coerce: true,
5604
+ ...normalizeParams(params)
5605
+ });
5606
+ }
5607
+ // @__NO_SIDE_EFFECTS__
5608
+ function _coercedBigint(Class2, params) {
5609
+ return new Class2({
5610
+ type: "bigint",
5611
+ coerce: true,
5612
+ ...normalizeParams(params)
5613
+ });
5614
+ }
5615
+ // @__NO_SIDE_EFFECTS__
5537
5616
  function _null2(Class2, params) {
5538
5617
  return new Class2({
5539
5618
  type: "null",
@@ -5541,6 +5620,12 @@ function _null2(Class2, params) {
5541
5620
  });
5542
5621
  }
5543
5622
  // @__NO_SIDE_EFFECTS__
5623
+ function _any(Class2) {
5624
+ return new Class2({
5625
+ type: "any"
5626
+ });
5627
+ }
5628
+ // @__NO_SIDE_EFFECTS__
5544
5629
  function _unknown(Class2) {
5545
5630
  return new Class2({
5546
5631
  type: "unknown"
@@ -5554,6 +5639,14 @@ function _never(Class2, params) {
5554
5639
  });
5555
5640
  }
5556
5641
  // @__NO_SIDE_EFFECTS__
5642
+ function _coercedDate(Class2, params) {
5643
+ return new Class2({
5644
+ type: "date",
5645
+ coerce: true,
5646
+ ...normalizeParams(params)
5647
+ });
5648
+ }
5649
+ // @__NO_SIDE_EFFECTS__
5557
5650
  function _lt(value, params) {
5558
5651
  return new $ZodCheckLessThan({
5559
5652
  check: "less_than",
@@ -6178,6 +6271,9 @@ var ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
6178
6271
  $ZodEmail.init(inst, def);
6179
6272
  ZodStringFormat.init(inst, def);
6180
6273
  });
6274
+ function email2(params) {
6275
+ return _email(ZodEmail, params);
6276
+ }
6181
6277
  var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
6182
6278
  $ZodGUID.init(inst, def);
6183
6279
  ZodStringFormat.init(inst, def);
@@ -6341,6 +6437,53 @@ var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
6341
6437
  function boolean2(params) {
6342
6438
  return _boolean(ZodBoolean, params);
6343
6439
  }
6440
+ var ZodBigInt = /* @__PURE__ */ $constructor(
6441
+ "ZodBigInt",
6442
+ (inst, def) => {
6443
+ $ZodBigInt.init(inst, def);
6444
+ ZodType.init(inst, def);
6445
+ inst._zod.processJSONSchema = (ctx, json2, params) => bigintProcessor(inst, ctx, json2, params);
6446
+ },
6447
+ /* @__PURE__ */ util_exports.derived({
6448
+ minValue: (inst) => aggregateChecks(inst).minimum ?? null,
6449
+ maxValue: (inst) => aggregateChecks(inst).maximum ?? null,
6450
+ format: (inst) => aggregateChecks(inst).format ?? null
6451
+ }, {
6452
+ gte(value, params) {
6453
+ return this.check(_gte(value, params));
6454
+ },
6455
+ min(value, params) {
6456
+ return this.check(_gte(value, params));
6457
+ },
6458
+ gt(value, params) {
6459
+ return this.check(_gt(value, params));
6460
+ },
6461
+ lt(value, params) {
6462
+ return this.check(_lt(value, params));
6463
+ },
6464
+ lte(value, params) {
6465
+ return this.check(_lte(value, params));
6466
+ },
6467
+ max(value, params) {
6468
+ return this.check(_lte(value, params));
6469
+ },
6470
+ positive(params) {
6471
+ return this.check(_gt(BigInt(0), params));
6472
+ },
6473
+ negative(params) {
6474
+ return this.check(_lt(BigInt(0), params));
6475
+ },
6476
+ nonpositive(params) {
6477
+ return this.check(_lte(BigInt(0), params));
6478
+ },
6479
+ nonnegative(params) {
6480
+ return this.check(_gte(BigInt(0), params));
6481
+ },
6482
+ multipleOf(value, params) {
6483
+ return this.check(_multipleOf(value, params));
6484
+ }
6485
+ })
6486
+ );
6344
6487
  var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
6345
6488
  $ZodNull.init(inst, def);
6346
6489
  ZodType.init(inst, def);
@@ -6349,6 +6492,14 @@ var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
6349
6492
  function _null3(params) {
6350
6493
  return _null2(ZodNull, params);
6351
6494
  }
6495
+ var ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
6496
+ $ZodAny.init(inst, def);
6497
+ ZodType.init(inst, def);
6498
+ inst._zod.processJSONSchema = (ctx, json2, params) => anyProcessor(inst, ctx, json2, params);
6499
+ });
6500
+ function any() {
6501
+ return _any(ZodAny);
6502
+ }
6352
6503
  var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
6353
6504
  $ZodUnknown.init(inst, def);
6354
6505
  ZodType.init(inst, def);
@@ -6365,6 +6516,26 @@ var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
6365
6516
  function never(params) {
6366
6517
  return _never(ZodNever, params);
6367
6518
  }
6519
+ var ZodDate = /* @__PURE__ */ $constructor(
6520
+ "ZodDate",
6521
+ (inst, def) => {
6522
+ $ZodDate.init(inst, def);
6523
+ ZodType.init(inst, def);
6524
+ inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
6525
+ inst.min = (value, params) => inst.check(_gte(value, params));
6526
+ inst.max = (value, params) => inst.check(_lte(value, params));
6527
+ },
6528
+ /* @__PURE__ */ util_exports.derived({
6529
+ minDate: (inst) => {
6530
+ const { minimum } = aggregateChecks(inst);
6531
+ return minimum ? new Date(minimum) : null;
6532
+ },
6533
+ maxDate: (inst) => {
6534
+ const { maximum } = aggregateChecks(inst);
6535
+ return maximum ? new Date(maximum) : null;
6536
+ }
6537
+ }, {})
6538
+ );
6368
6539
  var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
6369
6540
  _ensureDefaultMemoizer();
6370
6541
  $ZodArray.init(inst, def);
@@ -6791,6 +6962,10 @@ function pipe(in_, out) {
6791
6962
  // ...util.normalizeParams(params),
6792
6963
  });
6793
6964
  }
6965
+ var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
6966
+ ZodPipe.init(inst, def);
6967
+ $ZodPreprocess.init(inst, def);
6968
+ });
6794
6969
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
6795
6970
  $ZodReadonly.init(inst, def);
6796
6971
  ZodType.init(inst, def);
@@ -6847,28 +7022,61 @@ function json(params) {
6847
7022
  });
6848
7023
  return jsonSchema;
6849
7024
  }
7025
+ function preprocess(fn, schema) {
7026
+ return new ZodPreprocess({
7027
+ type: "pipe",
7028
+ in: transform(fn),
7029
+ out: schema
7030
+ });
7031
+ }
6850
7032
 
6851
7033
  export {
7034
+ NEVER,
7035
+ _coercedString,
7036
+ _isoDateTime,
7037
+ _isoDate,
7038
+ _isoTime,
7039
+ _isoDuration,
7040
+ _coercedNumber,
7041
+ _coercedBoolean,
7042
+ _coercedBigint,
7043
+ _coercedDate,
6852
7044
  toJSONSchema,
7045
+ safeParse,
6853
7046
  ZodType,
7047
+ ZodString,
6854
7048
  string2 as string,
7049
+ ZodISODateTime,
7050
+ ZodISODate,
7051
+ ZodISOTime,
7052
+ ZodISODuration,
7053
+ email2 as email,
6855
7054
  url,
7055
+ ZodNumber,
6856
7056
  number2 as number,
7057
+ ZodBoolean,
6857
7058
  boolean2 as boolean,
7059
+ ZodBigInt,
6858
7060
  _null3 as _null,
7061
+ any,
6859
7062
  unknown,
7063
+ ZodDate,
6860
7064
  array,
6861
7065
  object,
6862
7066
  strictObject,
6863
7067
  looseObject,
6864
7068
  union,
6865
7069
  discriminatedUnion,
7070
+ intersection,
6866
7071
  record,
6867
7072
  partialRecord,
7073
+ _enum,
6868
7074
  nativeEnum,
6869
7075
  literal,
7076
+ optional,
6870
7077
  lazy,
6871
7078
  _function,
6872
7079
  custom,
6873
- json
7080
+ json,
7081
+ preprocess
6874
7082
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  harnessDescriptionSchema
3
- } from "./chunk-5PWY25HA.ts";
3
+ } from "./chunk-V5E4RKG6.ts";
4
4
  import {
5
5
  bundleRef
6
- } from "./chunk-APU2VKLW.ts";
6
+ } from "./chunk-GOIK7WNT.ts";
7
7
  import {
8
8
  registerPending
9
- } from "./chunk-QJ26GEUM.ts";
9
+ } from "./chunk-KTBNDKGJ.ts";
10
10
 
11
11
  // src/authoring/harness.ts
12
12
  var completeHarnessDescription = (authored) => {
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  jsonObjectSchema,
6
6
  jsonValueSchema
7
- } from "./chunk-4X2DS5BR.ts";
7
+ } from "./chunk-FU5VHNO4.ts";
8
8
  import {
9
9
  callableSchema,
10
10
  fieldOf
11
- } from "./chunk-TM36NO3C.ts";
11
+ } from "./chunk-OX46N5EP.ts";
12
12
  import {
13
13
  array,
14
14
  boolean,
@@ -18,7 +18,7 @@ import {
18
18
  record,
19
19
  string,
20
20
  unknown
21
- } from "./chunk-3K4C4SVG.ts";
21
+ } from "./chunk-KTXTYIF4.ts";
22
22
  import {
23
23
  __commonJS,
24
24
  __toESM
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  credentials
3
- } from "./chunk-GCFSHHH2.ts";
3
+ } from "./chunk-QVHDGZAN.ts";
4
4
  import {
5
5
  DynamicEvent
6
- } from "./chunk-MSE7X5YG.ts";
6
+ } from "./chunk-R4IHPPTB.ts";
7
7
  import {
8
8
  isAuthored,
9
9
  registerPending
10
- } from "./chunk-QJ26GEUM.ts";
10
+ } from "./chunk-KTBNDKGJ.ts";
11
11
 
12
12
  // src/authoring/credentials.ts
13
13
  var DYNAMIC_EVENTS = Object.values(DynamicEvent);
@@ -7,7 +7,7 @@ import {
7
7
  record,
8
8
  string,
9
9
  unknown
10
- } from "./chunk-3K4C4SVG.ts";
10
+ } from "./chunk-KTXTYIF4.ts";
11
11
 
12
12
  // src/runtime/values.ts
13
13
  var authoredValueSchema = unknown();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DynamicEvent
3
- } from "./chunk-MSE7X5YG.ts";
3
+ } from "./chunk-R4IHPPTB.ts";
4
4
  import {
5
5
  array,
6
6
  literal,
@@ -8,7 +8,7 @@ import {
8
8
  object,
9
9
  string,
10
10
  union
11
- } from "./chunk-3K4C4SVG.ts";
11
+ } from "./chunk-KTXTYIF4.ts";
12
12
 
13
13
  // ../agent-provider/src/credentials.ts
14
14
  var CredentialPayer = /* @__PURE__ */ ((CredentialPayer2) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  jsonSchemaSchema,
3
3
  jsonValueSchema
4
- } from "./chunk-4X2DS5BR.ts";
4
+ } from "./chunk-FU5VHNO4.ts";
5
5
  import {
6
6
  array,
7
7
  json,
@@ -11,7 +11,7 @@ import {
11
11
  string,
12
12
  union,
13
13
  unknown
14
- } from "./chunk-3K4C4SVG.ts";
14
+ } from "./chunk-KTXTYIF4.ts";
15
15
 
16
16
  // ../agent-provider/src/hosted-bindings.ts
17
17
  var requireHostedBinding = async (options) => {