agents 0.0.0-b4d83b9 → 0.0.0-b507395

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 (104) hide show
  1. package/README.md +5 -3
  2. package/dist/ai-chat-agent.d.ts +100 -20
  3. package/dist/ai-chat-agent.js +812 -644
  4. package/dist/ai-chat-agent.js.map +1 -1
  5. package/dist/ai-chat-v5-migration-DguhuLKF.js +155 -0
  6. package/dist/ai-chat-v5-migration-DguhuLKF.js.map +1 -0
  7. package/dist/ai-chat-v5-migration.d.ts +7 -4
  8. package/dist/ai-chat-v5-migration.js +3 -20
  9. package/dist/ai-react.d.ts +20 -24
  10. package/dist/ai-react.js +408 -349
  11. package/dist/ai-react.js.map +1 -1
  12. package/dist/ai-types-CwgHzwUb.js +24 -0
  13. package/dist/ai-types-CwgHzwUb.js.map +1 -0
  14. package/dist/ai-types-D_hTbf25.d.ts +103 -0
  15. package/dist/ai-types.d.ts +6 -92
  16. package/dist/ai-types.js +3 -8
  17. package/dist/cli/index.d.ts +1 -0
  18. package/dist/cli/index.js +28 -0
  19. package/dist/cli/index.js.map +1 -0
  20. package/dist/client-CcyhkGfN.js +117 -0
  21. package/dist/client-CcyhkGfN.js.map +1 -0
  22. package/dist/client-ClORm6f0.d.ts +104 -0
  23. package/dist/client-DfIOsabL.d.ts +834 -0
  24. package/dist/client-QZa2Rq0l.js +1105 -0
  25. package/dist/client-QZa2Rq0l.js.map +1 -0
  26. package/dist/client.d.ts +11 -92
  27. package/dist/client.js +4 -13
  28. package/dist/codemode/ai.d.ts +19 -17
  29. package/dist/codemode/ai.js +91 -5139
  30. package/dist/codemode/ai.js.map +1 -1
  31. package/dist/context-BkKbAa1R.js +8 -0
  32. package/dist/context-BkKbAa1R.js.map +1 -0
  33. package/dist/context-_sPQqJWv.d.ts +24 -0
  34. package/dist/context.d.ts +6 -0
  35. package/dist/context.js +3 -0
  36. package/dist/do-oauth-client-provider-B-ryFIPr.d.ts +70 -0
  37. package/dist/do-oauth-client-provider-B1fVIshX.js +155 -0
  38. package/dist/do-oauth-client-provider-B1fVIshX.js.map +1 -0
  39. package/dist/index-CyDpAVHZ.d.ts +58 -0
  40. package/dist/index-DPJ32qQn.d.ts +577 -0
  41. package/dist/index.d.ts +55 -542
  42. package/dist/index.js +8 -32
  43. package/dist/mcp/client.d.ts +4 -12
  44. package/dist/mcp/client.js +4 -10
  45. package/dist/mcp/do-oauth-client-provider.d.ts +2 -42
  46. package/dist/mcp/do-oauth-client-provider.js +3 -8
  47. package/dist/mcp/index.d.ts +191 -76
  48. package/dist/mcp/index.js +1429 -1080
  49. package/dist/mcp/index.js.map +1 -1
  50. package/dist/mcp/x402.d.ts +22 -27
  51. package/dist/mcp/x402.js +190 -3187
  52. package/dist/mcp/x402.js.map +1 -1
  53. package/dist/{mcp-BH1fJeiU.d.ts → mcp-CzbSsLfc.d.ts} +6 -3
  54. package/dist/observability/index.d.ts +3 -34
  55. package/dist/observability/index.js +8 -12
  56. package/dist/react-MaOSl7Pr.d.ts +113 -0
  57. package/dist/react.d.ts +11 -127
  58. package/dist/react.js +173 -200
  59. package/dist/react.js.map +1 -1
  60. package/dist/schedule.d.ts +13 -10
  61. package/dist/schedule.js +43 -33
  62. package/dist/schedule.js.map +1 -1
  63. package/dist/serializable-C4GLimgv.d.ts +39 -0
  64. package/dist/serializable.d.ts +7 -32
  65. package/dist/serializable.js +1 -1
  66. package/dist/src-BmbDclOA.js +1181 -0
  67. package/dist/src-BmbDclOA.js.map +1 -0
  68. package/package.json +56 -30
  69. package/dist/_esm-LV5FJ3HK.js +0 -3922
  70. package/dist/_esm-LV5FJ3HK.js.map +0 -1
  71. package/dist/ai-chat-v5-migration.js.map +0 -1
  72. package/dist/ai-types.js.map +0 -1
  73. package/dist/ccip-CMBYN64O.js +0 -15
  74. package/dist/ccip-CMBYN64O.js.map +0 -1
  75. package/dist/chunk-5Y6BEZDY.js +0 -276
  76. package/dist/chunk-5Y6BEZDY.js.map +0 -1
  77. package/dist/chunk-BER7KXUJ.js +0 -18
  78. package/dist/chunk-BER7KXUJ.js.map +0 -1
  79. package/dist/chunk-C2OEBJZ2.js +0 -113
  80. package/dist/chunk-C2OEBJZ2.js.map +0 -1
  81. package/dist/chunk-JJBFIGUC.js +0 -5202
  82. package/dist/chunk-JJBFIGUC.js.map +0 -1
  83. package/dist/chunk-PR4QN5HX.js +0 -43
  84. package/dist/chunk-PR4QN5HX.js.map +0 -1
  85. package/dist/chunk-QEVM4BVL.js +0 -116
  86. package/dist/chunk-QEVM4BVL.js.map +0 -1
  87. package/dist/chunk-TYAY6AU6.js +0 -159
  88. package/dist/chunk-TYAY6AU6.js.map +0 -1
  89. package/dist/chunk-UJVEAURM.js +0 -150
  90. package/dist/chunk-UJVEAURM.js.map +0 -1
  91. package/dist/chunk-XGMKNUJA.js +0 -1343
  92. package/dist/chunk-XGMKNUJA.js.map +0 -1
  93. package/dist/chunk-ZMMHNOMZ.js +0 -942
  94. package/dist/chunk-ZMMHNOMZ.js.map +0 -1
  95. package/dist/client-DVoPb3-C.d.ts +0 -5120
  96. package/dist/client.js.map +0 -1
  97. package/dist/index.js.map +0 -1
  98. package/dist/mcp/client.js.map +0 -1
  99. package/dist/mcp/do-oauth-client-provider.js.map +0 -1
  100. package/dist/observability/index.js.map +0 -1
  101. package/dist/secp256k1-M22GZP2U.js +0 -2193
  102. package/dist/secp256k1-M22GZP2U.js.map +0 -1
  103. package/dist/serializable.js.map +0 -1
  104. package/src/index.ts +0 -2031
package/dist/schedule.js CHANGED
@@ -1,9 +1,13 @@
1
- import "./chunk-PR4QN5HX.js";
2
-
3
- // src/schedule.ts
4
1
  import { z } from "zod";
2
+
3
+ //#region src/schedule.ts
4
+ /**
5
+ * Get the schedule prompt for a given event
6
+ * @param event - The event to get the schedule prompt for
7
+ * @returns The schedule prompt
8
+ */
5
9
  function getSchedulePrompt(event) {
6
- return `
10
+ return `
7
11
  [Schedule Parser Component]
8
12
 
9
13
  Current time: ${event.date.toUTCString()}
@@ -51,36 +55,42 @@ Example outputs:
51
55
  [End Schedule Parser Component]
52
56
  `;
53
57
  }
54
- var didWarnAboutUnstableGetSchedulePrompt = false;
58
+ let didWarnAboutUnstableGetSchedulePrompt = false;
59
+ /**
60
+ * @deprecated this has been renamed to getSchedulePrompt, and unstable_getSchedulePrompt will be removed in the next major version
61
+ * @param event - The event to get the schedule prompt for
62
+ * @returns The schedule prompt
63
+ */
55
64
  function unstable_getSchedulePrompt(event) {
56
- if (!didWarnAboutUnstableGetSchedulePrompt) {
57
- didWarnAboutUnstableGetSchedulePrompt = true;
58
- console.warn(
59
- "unstable_getSchedulePrompt is deprecated, use getSchedulePrompt instead. unstable_getSchedulePrompt will be removed in the next major version."
60
- );
61
- }
62
- return getSchedulePrompt(event);
65
+ if (!didWarnAboutUnstableGetSchedulePrompt) {
66
+ didWarnAboutUnstableGetSchedulePrompt = true;
67
+ console.warn("unstable_getSchedulePrompt is deprecated, use getSchedulePrompt instead. unstable_getSchedulePrompt will be removed in the next major version.");
68
+ }
69
+ return getSchedulePrompt(event);
63
70
  }
64
- var scheduleSchema = z.object({
65
- description: z.string().describe("A description of the task"),
66
- when: z.object({
67
- cron: z.string().optional().describe(
68
- "execute task on a recurring interval specified as cron syntax (only use if the type is cron)"
69
- ),
70
- date: z.coerce.date().optional().describe(
71
- "execute task at the specified date and time (only use if the type is scheduled)"
72
- ),
73
- delayInSeconds: z.number().optional().describe(
74
- "execute task after a delay in seconds (only use if the type is delayed)"
75
- ),
76
- type: z.enum(["scheduled", "delayed", "cron", "no-schedule"]).describe("The type of scheduling details")
77
- })
71
+ /**
72
+ * The schema for the schedule prompt
73
+ */
74
+ const scheduleSchema = z.object({
75
+ description: z.string().describe("A description of the task"),
76
+ when: z.object({
77
+ cron: z.string().optional().describe("execute task on a recurring interval specified as cron syntax (only use if the type is cron)"),
78
+ date: z.coerce.date().optional().describe("execute task at the specified date and time (only use if the type is scheduled)"),
79
+ delayInSeconds: z.number().optional().describe("execute task after a delay in seconds (only use if the type is delayed)"),
80
+ type: z.enum([
81
+ "scheduled",
82
+ "delayed",
83
+ "cron",
84
+ "no-schedule"
85
+ ]).describe("The type of scheduling details")
86
+ })
78
87
  });
79
- var unstable_scheduleSchema = scheduleSchema;
80
- export {
81
- getSchedulePrompt,
82
- scheduleSchema,
83
- unstable_getSchedulePrompt,
84
- unstable_scheduleSchema
85
- };
88
+ /**
89
+ * @deprecated this has been renamed to scheduleSchema, and unstable_scheduleSchema will be removed in the next major version
90
+ * @returns The schedule schema
91
+ */
92
+ const unstable_scheduleSchema = scheduleSchema;
93
+
94
+ //#endregion
95
+ export { getSchedulePrompt, scheduleSchema, unstable_getSchedulePrompt, unstable_scheduleSchema };
86
96
  //# sourceMappingURL=schedule.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schedule.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Get the schedule prompt for a given event\n * @param event - The event to get the schedule prompt for\n * @returns The schedule prompt\n */\nexport function getSchedulePrompt(event: { date: Date }) {\n return `\n[Schedule Parser Component]\n\nCurrent time: ${event.date.toUTCString()}\n\nThis component parses natural language scheduling requests into a structured format. It extracts:\n1. A clean task description (without timing information)\n2. Scheduling details in one of these formats:\n - scheduled: Specific date/time events\n - delayed: Relative time delays (in seconds)\n - cron: Recurring patterns\n - no-schedule: Tasks without timing\n\nRules:\n- Task descriptions should be clean and focused on the action\n- Use numbers (0-6) for days in cron patterns (0=Sunday)\n- For recurring tasks, use standard cron syntax\n- For relative times, convert to seconds\n- For specific dates, use the current time as reference\n\nExample outputs:\n{\n \"description\": \"meeting with team\",\n \"when\": {\n \"type\": \"scheduled\",\n \"date\": \"tomorrow at 14:00\"\n }\n}\n\n{\n \"description\": \"backup database\",\n \"when\": {\n \"type\": \"cron\",\n \"cron\": \"0 0 * * *\"\n }\n}\n\n{\n \"description\": \"send report\",\n \"when\": {\n \"type\": \"delayed\",\n \"delayInSeconds\": 1800\n }\n}\n\n[End Schedule Parser Component]\n`;\n}\n\nlet didWarnAboutUnstableGetSchedulePrompt = false;\n\n/**\n * @deprecated this has been renamed to getSchedulePrompt, and unstable_getSchedulePrompt will be removed in the next major version\n * @param event - The event to get the schedule prompt for\n * @returns The schedule prompt\n */\nexport function unstable_getSchedulePrompt(event: { date: Date }) {\n if (!didWarnAboutUnstableGetSchedulePrompt) {\n didWarnAboutUnstableGetSchedulePrompt = true;\n console.warn(\n \"unstable_getSchedulePrompt is deprecated, use getSchedulePrompt instead. unstable_getSchedulePrompt will be removed in the next major version.\"\n );\n }\n return getSchedulePrompt(event);\n}\n\n/**\n * The schema for the schedule prompt\n */\nexport const scheduleSchema = z.object({\n description: z.string().describe(\"A description of the task\"),\n when: z.object({\n cron: z\n .string()\n .optional()\n .describe(\n \"execute task on a recurring interval specified as cron syntax (only use if the type is cron)\"\n ),\n date: z.coerce\n .date()\n .optional()\n .describe(\n \"execute task at the specified date and time (only use if the type is scheduled)\"\n ),\n delayInSeconds: z\n .number()\n .optional()\n .describe(\n \"execute task after a delay in seconds (only use if the type is delayed)\"\n ),\n type: z\n .enum([\"scheduled\", \"delayed\", \"cron\", \"no-schedule\"])\n .describe(\"The type of scheduling details\")\n })\n});\n\n/**\n * The type for the schedule prompt\n */\nexport type Schedule = z.infer<typeof scheduleSchema>;\n\n/**\n * @deprecated this has been renamed to scheduleSchema, and unstable_scheduleSchema will be removed in the next major version\n * @returns The schedule schema\n */\nexport const unstable_scheduleSchema = scheduleSchema;\n"],"mappings":";;;AAAA,SAAS,SAAS;AAOX,SAAS,kBAAkB,OAAuB;AACvD,SAAO;AAAA;AAAA;AAAA,gBAGO,MAAM,KAAK,YAAY,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4CxC;AAEA,IAAI,wCAAwC;AAOrC,SAAS,2BAA2B,OAAuB;AAChE,MAAI,CAAC,uCAAuC;AAC1C,4CAAwC;AACxC,YAAQ;AAAA,MACN;AAAA,IACF;AAAA,EACF;AACA,SAAO,kBAAkB,KAAK;AAChC;AAKO,IAAM,iBAAiB,EAAE,OAAO;AAAA,EACrC,aAAa,EAAE,OAAO,EAAE,SAAS,2BAA2B;AAAA,EAC5D,MAAM,EAAE,OAAO;AAAA,IACb,MAAM,EACH,OAAO,EACP,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,IACF,MAAM,EAAE,OACL,KAAK,EACL,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,IACF,gBAAgB,EACb,OAAO,EACP,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,IACF,MAAM,EACH,KAAK,CAAC,aAAa,WAAW,QAAQ,aAAa,CAAC,EACpD,SAAS,gCAAgC;AAAA,EAC9C,CAAC;AACH,CAAC;AAWM,IAAM,0BAA0B;","names":[]}
1
+ {"version":3,"file":"schedule.js","names":[],"sources":["../src/schedule.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Get the schedule prompt for a given event\n * @param event - The event to get the schedule prompt for\n * @returns The schedule prompt\n */\nexport function getSchedulePrompt(event: { date: Date }) {\n return `\n[Schedule Parser Component]\n\nCurrent time: ${event.date.toUTCString()}\n\nThis component parses natural language scheduling requests into a structured format. It extracts:\n1. A clean task description (without timing information)\n2. Scheduling details in one of these formats:\n - scheduled: Specific date/time events\n - delayed: Relative time delays (in seconds)\n - cron: Recurring patterns\n - no-schedule: Tasks without timing\n\nRules:\n- Task descriptions should be clean and focused on the action\n- Use numbers (0-6) for days in cron patterns (0=Sunday)\n- For recurring tasks, use standard cron syntax\n- For relative times, convert to seconds\n- For specific dates, use the current time as reference\n\nExample outputs:\n{\n \"description\": \"meeting with team\",\n \"when\": {\n \"type\": \"scheduled\",\n \"date\": \"tomorrow at 14:00\"\n }\n}\n\n{\n \"description\": \"backup database\",\n \"when\": {\n \"type\": \"cron\",\n \"cron\": \"0 0 * * *\"\n }\n}\n\n{\n \"description\": \"send report\",\n \"when\": {\n \"type\": \"delayed\",\n \"delayInSeconds\": 1800\n }\n}\n\n[End Schedule Parser Component]\n`;\n}\n\nlet didWarnAboutUnstableGetSchedulePrompt = false;\n\n/**\n * @deprecated this has been renamed to getSchedulePrompt, and unstable_getSchedulePrompt will be removed in the next major version\n * @param event - The event to get the schedule prompt for\n * @returns The schedule prompt\n */\nexport function unstable_getSchedulePrompt(event: { date: Date }) {\n if (!didWarnAboutUnstableGetSchedulePrompt) {\n didWarnAboutUnstableGetSchedulePrompt = true;\n console.warn(\n \"unstable_getSchedulePrompt is deprecated, use getSchedulePrompt instead. unstable_getSchedulePrompt will be removed in the next major version.\"\n );\n }\n return getSchedulePrompt(event);\n}\n\n/**\n * The schema for the schedule prompt\n */\nexport const scheduleSchema = z.object({\n description: z.string().describe(\"A description of the task\"),\n when: z.object({\n cron: z\n .string()\n .optional()\n .describe(\n \"execute task on a recurring interval specified as cron syntax (only use if the type is cron)\"\n ),\n date: z.coerce\n .date()\n .optional()\n .describe(\n \"execute task at the specified date and time (only use if the type is scheduled)\"\n ),\n delayInSeconds: z\n .number()\n .optional()\n .describe(\n \"execute task after a delay in seconds (only use if the type is delayed)\"\n ),\n type: z\n .enum([\"scheduled\", \"delayed\", \"cron\", \"no-schedule\"])\n .describe(\"The type of scheduling details\")\n })\n});\n\n/**\n * The type for the schedule prompt\n */\nexport type Schedule = z.infer<typeof scheduleSchema>;\n\n/**\n * @deprecated this has been renamed to scheduleSchema, and unstable_scheduleSchema will be removed in the next major version\n * @returns The schedule schema\n */\nexport const unstable_scheduleSchema = scheduleSchema;\n"],"mappings":";;;;;;;;AAOA,SAAgB,kBAAkB,OAAuB;AACvD,QAAO;;;gBAGO,MAAM,KAAK,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CzC,IAAI,wCAAwC;;;;;;AAO5C,SAAgB,2BAA2B,OAAuB;AAChE,KAAI,CAAC,uCAAuC;AAC1C,0CAAwC;AACxC,UAAQ,KACN,iJACD;;AAEH,QAAO,kBAAkB,MAAM;;;;;AAMjC,MAAa,iBAAiB,EAAE,OAAO;CACrC,aAAa,EAAE,QAAQ,CAAC,SAAS,4BAA4B;CAC7D,MAAM,EAAE,OAAO;EACb,MAAM,EACH,QAAQ,CACR,UAAU,CACV,SACC,+FACD;EACH,MAAM,EAAE,OACL,MAAM,CACN,UAAU,CACV,SACC,kFACD;EACH,gBAAgB,EACb,QAAQ,CACR,UAAU,CACV,SACC,0EACD;EACH,MAAM,EACH,KAAK;GAAC;GAAa;GAAW;GAAQ;GAAc,CAAC,CACrD,SAAS,iCAAiC;EAC9C,CAAC;CACH,CAAC;;;;;AAWF,MAAa,0BAA0B"}
@@ -0,0 +1,39 @@
1
+ //#region src/serializable.d.ts
2
+ type SerializableValue =
3
+ | undefined
4
+ | null
5
+ | string
6
+ | number
7
+ | boolean
8
+ | {
9
+ [key: string]: SerializableValue;
10
+ }
11
+ | SerializableValue[];
12
+ type SerializableReturnValue =
13
+ | SerializableValue
14
+ | void
15
+ | Promise<SerializableValue>
16
+ | Promise<void>;
17
+ type AllSerializableValues<A$1> = A$1 extends [infer First, ...infer Rest]
18
+ ? First extends SerializableValue
19
+ ? AllSerializableValues<Rest>
20
+ : false
21
+ : true;
22
+ type Method = (...args: any[]) => any;
23
+ type RPCMethod<T = Method> = T extends Method
24
+ ? T extends (...arg: infer A) => infer R
25
+ ? AllSerializableValues<A> extends true
26
+ ? R extends SerializableReturnValue
27
+ ? T
28
+ : never
29
+ : never
30
+ : never
31
+ : never;
32
+ //#endregion
33
+ export {
34
+ SerializableValue as i,
35
+ RPCMethod as n,
36
+ SerializableReturnValue as r,
37
+ Method as t
38
+ };
39
+ //# sourceMappingURL=serializable-C4GLimgv.d.ts.map
@@ -1,32 +1,7 @@
1
- type SerializableValue =
2
- | undefined
3
- | null
4
- | string
5
- | number
6
- | boolean
7
- | {
8
- [key: string]: SerializableValue;
9
- }
10
- | SerializableValue[];
11
- type SerializableReturnValue =
12
- | SerializableValue
13
- | void
14
- | Promise<SerializableValue>
15
- | Promise<void>;
16
- type AllSerializableValues<A> = A extends [infer First, ...infer Rest]
17
- ? First extends SerializableValue
18
- ? AllSerializableValues<Rest>
19
- : false
20
- : true;
21
- type Method = (...args: any[]) => any;
22
- type RPCMethod<T = Method> = T extends Method
23
- ? T extends (...arg: infer A) => infer R
24
- ? AllSerializableValues<A> extends true
25
- ? R extends SerializableReturnValue
26
- ? T
27
- : never
28
- : never
29
- : never
30
- : never;
31
-
32
- export type { Method, RPCMethod, SerializableReturnValue, SerializableValue };
1
+ import {
2
+ i as SerializableValue,
3
+ n as RPCMethod,
4
+ r as SerializableReturnValue,
5
+ t as Method
6
+ } from "./serializable-C4GLimgv.js";
7
+ export { Method, RPCMethod, SerializableReturnValue, SerializableValue };
@@ -1 +1 @@
1
- //# sourceMappingURL=serializable.js.map
1
+ export { };