agents 0.20.1 → 0.22.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.
- package/README.md +51 -12
- package/dist/{agent-tool-types-BC-WFlsz.d.ts → agent-routing-CnkaHb-v.d.ts} +3305 -3138
- package/dist/agent-routing.d.ts +14 -0
- package/dist/agent-routing.js +187 -0
- package/dist/agent-routing.js.map +1 -0
- package/dist/agent-tool-types.d.ts +26 -26
- package/dist/{agent-tools-DeHe9Xov.d.ts → agent-tools-C0XJqWzB.d.ts} +7 -7
- package/dist/agent-tools.d.ts +44 -28
- package/dist/agent-tools.js +16 -7
- package/dist/agent-tools.js.map +1 -1
- package/dist/browser/ai.d.ts +5 -3
- package/dist/browser/ai.js +88 -8
- package/dist/browser/ai.js.map +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/tanstack-ai.js +13 -1
- package/dist/browser/tanstack-ai.js.map +1 -1
- package/dist/capability-BjSKYpzg.js +42 -0
- package/dist/capability-BjSKYpzg.js.map +1 -0
- package/dist/capability-runner-CvHGZqUu.d.ts +150 -0
- package/dist/chat/index.d.ts +51 -15
- package/dist/chat/index.js +59 -4
- package/dist/chat/index.js.map +1 -1
- package/dist/chat/react.d.ts +19 -180
- package/dist/chat/react.js +93 -600
- package/dist/chat/react.js.map +1 -1
- package/dist/chat/transport.d.ts +10 -0
- package/dist/chat/transport.js +2 -0
- package/dist/chat-sdk/index.d.ts +4 -4
- package/dist/chat-sdk/index.js +1 -1
- package/dist/{client-zqKcsyFa.js → client-jagG8a9_.js} +129 -37
- package/dist/client-jagG8a9_.js.map +1 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/{cloudflare-BduZwmYK.js → cloudflare-Dzvc7V2N.js} +10 -3
- package/dist/{cloudflare-BduZwmYK.js.map → cloudflare-Dzvc7V2N.js.map} +1 -1
- package/dist/{connector-v2M1zlZp.d.ts → connector-CkQD4MK3.d.ts} +20 -3
- package/dist/{connector-KEJnl6e5.js → connector-CptFKzRh.js} +158 -40
- package/dist/connector-CptFKzRh.js.map +1 -0
- package/dist/current-agent-CuMErtly.d.ts +283 -0
- package/dist/current-agent-DhoDkSnH.js +51 -0
- package/dist/current-agent-DhoDkSnH.js.map +1 -0
- package/dist/diagnostics-CaBjfz4J.js +41 -0
- package/dist/diagnostics-CaBjfz4J.js.map +1 -0
- package/dist/{do-oauth-client-provider-VTZj2VtM.d.ts → do-oauth-client-provider-Tmf1vgKz.d.ts} +2 -2
- package/dist/durable-object-lifecycle-D6nNQJJd.js +862 -0
- package/dist/durable-object-lifecycle-D6nNQJJd.js.map +1 -0
- package/dist/{email-CL27preh.d.ts → email-7TatiTnl.d.ts} +38 -9
- package/dist/email-send.d.ts +15 -0
- package/dist/email-send.js +32 -0
- package/dist/email-send.js.map +1 -0
- package/dist/email.d.ts +14 -10
- package/dist/email.js.map +1 -1
- package/dist/experimental/memory/session/index.d.ts +3 -2
- package/dist/experimental/memory/session/index.js +15 -10
- package/dist/experimental/memory/session/index.js.map +1 -1
- package/dist/{handler-stateless-C_bo-Ytq.d.ts → handler-stateless-DxYpJ_XF.d.ts} +3 -3
- package/dist/{handler-stateless-CIkKPETH.js → handler-stateless-VvrWSAVA.js} +5 -5
- package/dist/handler-stateless-VvrWSAVA.js.map +1 -0
- package/dist/{index-BRnybD6X.d.ts → index-DcSAZKsB.d.ts} +19 -31
- package/dist/index.d.ts +102 -91
- package/dist/index.js +12 -7235
- package/dist/internal_context-BlxFEWfn.d.ts +19 -0
- package/dist/internal_context.d.ts +10 -4
- package/dist/internal_context.js +1 -10
- package/dist/{client-invoker-BNSZxAkv.d.ts → invoker-CG0_p_Wq.d.ts} +2 -2
- package/dist/{client-invoker-VNZ7X0nn.js → invoker-CHMnoxIA.js} +2 -2
- package/dist/invoker-CHMnoxIA.js.map +1 -0
- package/dist/lifecycle/index.d.ts +48 -0
- package/dist/lifecycle/index.js +4 -0
- package/dist/mcp/{do-oauth-client-provider.d.ts → client/do-oauth-client-provider.d.ts} +1 -1
- package/dist/mcp/{do-oauth-client-provider.js → client/do-oauth-client-provider.js} +1 -1
- package/dist/mcp/client/do-oauth-client-provider.js.map +1 -0
- package/dist/mcp/client/index.d.ts +42 -0
- package/dist/mcp/{client.js → client/index.js} +1 -1
- package/dist/mcp/{x402.d.ts → client/x402.d.ts} +2 -2
- package/dist/mcp/{x402.js → client/x402.js} +2 -2
- package/dist/mcp/client/x402.js.map +1 -0
- package/dist/mcp/index.d.ts +36 -36
- package/dist/mcp/index.js +14 -16
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/{server.d.ts → server/index.d.ts} +1 -1
- package/dist/mcp/{server.js → server/index.js} +1 -1
- package/dist/observability/ai/index.d.ts +1 -130
- package/dist/observability/ai/index.js +88 -433
- package/dist/observability/ai/index.js.map +1 -1
- package/dist/observability/index.d.ts +4 -4
- package/dist/observability/index.js +3 -50
- package/dist/observability/index.js.map +1 -1
- package/dist/{wire-types-CU9rLoeS.js → protocol-B0nh6KNf.js} +20 -66
- package/dist/protocol-B0nh6KNf.js.map +1 -0
- package/dist/react.d.ts +4 -4
- package/dist/react.js +6 -9
- package/dist/react.js.map +1 -1
- package/dist/schedule.d.ts +25 -94
- package/dist/schedule.js +1 -98
- package/dist/schedule.js.map +1 -1
- package/dist/scheduler-CR9RHGos.js +857 -0
- package/dist/scheduler-CR9RHGos.js.map +1 -0
- package/dist/scheduler-DQoTGoAW.d.ts +224 -0
- package/dist/schedules/index.d.ts +22 -0
- package/dist/schedules/index.js +2 -0
- package/dist/schedules/parser.d.ts +79 -0
- package/dist/schedules/parser.js +103 -0
- package/dist/schedules/parser.js.map +1 -0
- package/dist/serializable.d.ts +1 -1
- package/dist/sql-error-CPY-GXyI.d.ts +12 -0
- package/dist/sql-error.d.ts +2 -0
- package/dist/sql-error.js +16 -0
- package/dist/sql-error.js.map +1 -0
- package/dist/src-5W6JNKVb.js +6613 -0
- package/dist/src-5W6JNKVb.js.map +1 -0
- package/dist/sub-routing.d.ts +18 -6
- package/dist/sub-routing.js +92 -2
- package/dist/sub-routing.js.map +1 -1
- package/dist/wire-types-CnMt6_HR.js +47 -0
- package/dist/wire-types-CnMt6_HR.js.map +1 -0
- package/dist/workflow-types.d.ts +25 -25
- package/dist/workflow-types.js.map +1 -1
- package/dist/workflows.d.ts +22 -22
- package/dist/workflows.js +2 -1
- package/dist/workflows.js.map +1 -1
- package/dist/ws-chat-transport-UNRIS2xl.d.ts +184 -0
- package/dist/ws-chat-transport-rWwta645.js +698 -0
- package/dist/ws-chat-transport-rWwta645.js.map +1 -0
- package/docs/adding-to-existing-project.md +4 -2
- package/docs/agent-class.md +29 -87
- package/docs/agent-tools.md +29 -0
- package/docs/browse-the-web.md +16 -1
- package/docs/chat-agents.md +16 -13
- package/docs/client-sdk.md +12 -8
- package/docs/configuration.md +7 -1
- package/docs/cross-domain-authentication.md +7 -35
- package/docs/durable-execution.md +1 -1
- package/docs/email.md +2 -13
- package/docs/http-websockets.md +1 -11
- package/docs/human-in-the-loop.md +16 -13
- package/docs/index.md +1 -0
- package/docs/lifecycle.md +323 -0
- package/docs/long-running-agents.md +13 -15
- package/docs/mcp-client.md +55 -0
- package/docs/mcp-servers.md +6 -0
- package/docs/mcp-transports.md +18 -12
- package/docs/migration-to-ai-sdk-v5.md +2 -2
- package/docs/migration-to-ai-sdk-v6.md +5 -1
- package/docs/observability.md +33 -77
- package/docs/resumable-streaming.md +1 -1
- package/docs/routing.md +27 -0
- package/docs/scheduling.md +175 -15
- package/docs/server-driven-messages.md +1 -1
- package/docs/sub-agents.md +47 -2
- package/docs/webhooks.md +109 -136
- package/docs/workflows.md +9 -1
- package/package.json +41 -23
- package/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +0 -26
- package/dist/cli/index.js.map +0 -1
- package/dist/client-invoker-VNZ7X0nn.js.map +0 -1
- package/dist/client-zqKcsyFa.js.map +0 -1
- package/dist/connector-KEJnl6e5.js.map +0 -1
- package/dist/handler-stateless-CIkKPETH.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/internal_context-Dg4Cgjcu.d.ts +0 -37
- package/dist/internal_context.js.map +0 -1
- package/dist/mcp/client.d.ts +0 -42
- package/dist/mcp/do-oauth-client-provider.js.map +0 -1
- package/dist/mcp/x402.js.map +0 -1
- package/dist/wire-types-CU9rLoeS.js.map +0 -1
- package/dist/workflow-types-Baz_PO5v.d.ts +0 -280
package/dist/schedule.d.ts
CHANGED
|
@@ -1,130 +1,61 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ParsedSchedule,
|
|
3
|
+
getSchedulePrompt,
|
|
4
|
+
scheduleSchema
|
|
5
|
+
} from "./schedules/parser.js";
|
|
2
6
|
|
|
3
7
|
//#region src/schedule.d.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
|
-
*/
|
|
9
|
-
declare function getSchedulePrompt(event: { date: Date }): string;
|
|
10
8
|
/**
|
|
11
9
|
* @deprecated this has been renamed to getSchedulePrompt, and unstable_getSchedulePrompt will be removed in the next major version
|
|
12
10
|
* @param event - The event to get the schedule prompt for
|
|
13
11
|
* @returns The schedule prompt
|
|
14
12
|
*/
|
|
15
13
|
declare function unstable_getSchedulePrompt(event: { date: Date }): string;
|
|
16
|
-
/**
|
|
17
|
-
* The schema for parsing natural language scheduling requests.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```typescript
|
|
21
|
-
* import { generateObject } from "ai";
|
|
22
|
-
* import { scheduleSchema, getSchedulePrompt } from "agents/schedule";
|
|
23
|
-
*
|
|
24
|
-
* const result = await generateObject({
|
|
25
|
-
* model,
|
|
26
|
-
* prompt: `${getSchedulePrompt({ date: new Date() })} Input: "${userInput}"`,
|
|
27
|
-
* schema: scheduleSchema,
|
|
28
|
-
* // Required for OpenAI to avoid strict JSON schema validation errors
|
|
29
|
-
* providerOptions: {
|
|
30
|
-
* openai: { strictJsonSchema: false }
|
|
31
|
-
* }
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* When using this schema with OpenAI models via the AI SDK, you must pass
|
|
37
|
-
* `providerOptions: { openai: { strictJsonSchema: false } }` to `generateObject`.
|
|
38
|
-
* This is because the schema uses a discriminated union which is not compatible
|
|
39
|
-
* with OpenAI's strict structured outputs mode.
|
|
40
|
-
*/
|
|
41
|
-
declare const scheduleSchema: z.ZodObject<
|
|
42
|
-
{
|
|
43
|
-
description: z.ZodString;
|
|
44
|
-
when: z.ZodDiscriminatedUnion<
|
|
45
|
-
[
|
|
46
|
-
z.ZodObject<
|
|
47
|
-
{
|
|
48
|
-
type: z.ZodLiteral<"scheduled">;
|
|
49
|
-
date: z.ZodString;
|
|
50
|
-
},
|
|
51
|
-
z.core.$strip
|
|
52
|
-
>,
|
|
53
|
-
z.ZodObject<
|
|
54
|
-
{
|
|
55
|
-
type: z.ZodLiteral<"delayed">;
|
|
56
|
-
delayInSeconds: z.ZodNumber;
|
|
57
|
-
},
|
|
58
|
-
z.core.$strip
|
|
59
|
-
>,
|
|
60
|
-
z.ZodObject<
|
|
61
|
-
{
|
|
62
|
-
type: z.ZodLiteral<"cron">;
|
|
63
|
-
cron: z.ZodString;
|
|
64
|
-
},
|
|
65
|
-
z.core.$strip
|
|
66
|
-
>,
|
|
67
|
-
z.ZodObject<
|
|
68
|
-
{
|
|
69
|
-
type: z.ZodLiteral<"no-schedule">;
|
|
70
|
-
},
|
|
71
|
-
z.core.$strip
|
|
72
|
-
>
|
|
73
|
-
],
|
|
74
|
-
"type"
|
|
75
|
-
>;
|
|
76
|
-
},
|
|
77
|
-
z.core.$strip
|
|
78
|
-
>;
|
|
79
|
-
/**
|
|
80
|
-
* The type for the schedule prompt
|
|
81
|
-
*/
|
|
82
|
-
type Schedule = z.infer<typeof scheduleSchema>;
|
|
83
14
|
/**
|
|
84
15
|
* @deprecated this has been renamed to scheduleSchema, and unstable_scheduleSchema will be removed in the next major version
|
|
85
16
|
* @returns The schedule schema
|
|
86
17
|
*/
|
|
87
|
-
declare const unstable_scheduleSchema:
|
|
18
|
+
declare const unstable_scheduleSchema: import("zod").ZodObject<
|
|
88
19
|
{
|
|
89
|
-
description:
|
|
90
|
-
when:
|
|
20
|
+
description: import("zod").ZodString;
|
|
21
|
+
when: import("zod").ZodDiscriminatedUnion<
|
|
91
22
|
[
|
|
92
|
-
|
|
23
|
+
import("zod").ZodObject<
|
|
93
24
|
{
|
|
94
|
-
type:
|
|
95
|
-
date:
|
|
25
|
+
type: import("zod").ZodLiteral<"scheduled">;
|
|
26
|
+
date: import("zod").ZodString;
|
|
96
27
|
},
|
|
97
|
-
|
|
28
|
+
import("zod/v4/core").$strip
|
|
98
29
|
>,
|
|
99
|
-
|
|
30
|
+
import("zod").ZodObject<
|
|
100
31
|
{
|
|
101
|
-
type:
|
|
102
|
-
delayInSeconds:
|
|
32
|
+
type: import("zod").ZodLiteral<"delayed">;
|
|
33
|
+
delayInSeconds: import("zod").ZodNumber;
|
|
103
34
|
},
|
|
104
|
-
|
|
35
|
+
import("zod/v4/core").$strip
|
|
105
36
|
>,
|
|
106
|
-
|
|
37
|
+
import("zod").ZodObject<
|
|
107
38
|
{
|
|
108
|
-
type:
|
|
109
|
-
cron:
|
|
39
|
+
type: import("zod").ZodLiteral<"cron">;
|
|
40
|
+
cron: import("zod").ZodString;
|
|
110
41
|
},
|
|
111
|
-
|
|
42
|
+
import("zod/v4/core").$strip
|
|
112
43
|
>,
|
|
113
|
-
|
|
44
|
+
import("zod").ZodObject<
|
|
114
45
|
{
|
|
115
|
-
type:
|
|
46
|
+
type: import("zod").ZodLiteral<"no-schedule">;
|
|
116
47
|
},
|
|
117
|
-
|
|
48
|
+
import("zod/v4/core").$strip
|
|
118
49
|
>
|
|
119
50
|
],
|
|
120
51
|
"type"
|
|
121
52
|
>;
|
|
122
53
|
},
|
|
123
|
-
|
|
54
|
+
import("zod/v4/core").$strip
|
|
124
55
|
>;
|
|
125
56
|
//#endregion
|
|
126
57
|
export {
|
|
127
|
-
Schedule,
|
|
58
|
+
type ParsedSchedule as Schedule,
|
|
128
59
|
getSchedulePrompt,
|
|
129
60
|
scheduleSchema,
|
|
130
61
|
unstable_getSchedulePrompt,
|
package/dist/schedule.js
CHANGED
|
@@ -1,59 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getSchedulePrompt, scheduleSchema } from "./schedules/parser.js";
|
|
2
2
|
//#region src/schedule.ts
|
|
3
|
-
/**
|
|
4
|
-
* Get the schedule prompt for a given event
|
|
5
|
-
* @param event - The event to get the schedule prompt for
|
|
6
|
-
* @returns The schedule prompt
|
|
7
|
-
*/
|
|
8
|
-
function getSchedulePrompt(event) {
|
|
9
|
-
return `
|
|
10
|
-
[Schedule Parser Component]
|
|
11
|
-
|
|
12
|
-
Current time: ${event.date.toUTCString()}
|
|
13
|
-
|
|
14
|
-
This component parses natural language scheduling requests into a structured format. It extracts:
|
|
15
|
-
1. A clean task description (without timing information)
|
|
16
|
-
2. Scheduling details in one of these formats:
|
|
17
|
-
- scheduled: Specific date/time events
|
|
18
|
-
- delayed: Relative time delays (in seconds)
|
|
19
|
-
- cron: Recurring patterns
|
|
20
|
-
- no-schedule: Tasks without timing
|
|
21
|
-
|
|
22
|
-
Rules:
|
|
23
|
-
- Task descriptions should be clean and focused on the action
|
|
24
|
-
- Use numbers (0-6) for days in cron patterns (0=Sunday)
|
|
25
|
-
- For recurring tasks, use standard cron syntax
|
|
26
|
-
- For relative times, convert to seconds
|
|
27
|
-
- For specific dates, use the current time as reference
|
|
28
|
-
|
|
29
|
-
Example outputs:
|
|
30
|
-
{
|
|
31
|
-
"description": "meeting with team",
|
|
32
|
-
"when": {
|
|
33
|
-
"type": "scheduled",
|
|
34
|
-
"date": "tomorrow at 14:00"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
{
|
|
39
|
-
"description": "backup database",
|
|
40
|
-
"when": {
|
|
41
|
-
"type": "cron",
|
|
42
|
-
"cron": "0 0 * * *"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
"description": "send report",
|
|
48
|
-
"when": {
|
|
49
|
-
"type": "delayed",
|
|
50
|
-
"delayInSeconds": 1800
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
[End Schedule Parser Component]
|
|
55
|
-
`;
|
|
56
|
-
}
|
|
57
3
|
let didWarnAboutUnstableGetSchedulePrompt = false;
|
|
58
4
|
/**
|
|
59
5
|
* @deprecated this has been renamed to getSchedulePrompt, and unstable_getSchedulePrompt will be removed in the next major version
|
|
@@ -68,49 +14,6 @@ function unstable_getSchedulePrompt(event) {
|
|
|
68
14
|
return getSchedulePrompt(event);
|
|
69
15
|
}
|
|
70
16
|
/**
|
|
71
|
-
* The schema for parsing natural language scheduling requests.
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```typescript
|
|
75
|
-
* import { generateObject } from "ai";
|
|
76
|
-
* import { scheduleSchema, getSchedulePrompt } from "agents/schedule";
|
|
77
|
-
*
|
|
78
|
-
* const result = await generateObject({
|
|
79
|
-
* model,
|
|
80
|
-
* prompt: `${getSchedulePrompt({ date: new Date() })} Input: "${userInput}"`,
|
|
81
|
-
* schema: scheduleSchema,
|
|
82
|
-
* // Required for OpenAI to avoid strict JSON schema validation errors
|
|
83
|
-
* providerOptions: {
|
|
84
|
-
* openai: { strictJsonSchema: false }
|
|
85
|
-
* }
|
|
86
|
-
* });
|
|
87
|
-
* ```
|
|
88
|
-
*
|
|
89
|
-
* @remarks
|
|
90
|
-
* When using this schema with OpenAI models via the AI SDK, you must pass
|
|
91
|
-
* `providerOptions: { openai: { strictJsonSchema: false } }` to `generateObject`.
|
|
92
|
-
* This is because the schema uses a discriminated union which is not compatible
|
|
93
|
-
* with OpenAI's strict structured outputs mode.
|
|
94
|
-
*/
|
|
95
|
-
const scheduleSchema = z.object({
|
|
96
|
-
description: z.string().describe("A description of the task"),
|
|
97
|
-
when: z.discriminatedUnion("type", [
|
|
98
|
-
z.object({
|
|
99
|
-
type: z.literal("scheduled"),
|
|
100
|
-
date: z.string().describe("Execute task at the specified date and time in ISO 8601 format")
|
|
101
|
-
}),
|
|
102
|
-
z.object({
|
|
103
|
-
type: z.literal("delayed"),
|
|
104
|
-
delayInSeconds: z.number().describe("Execute task after a delay in seconds")
|
|
105
|
-
}),
|
|
106
|
-
z.object({
|
|
107
|
-
type: z.literal("cron"),
|
|
108
|
-
cron: z.string().describe("Execute task on a recurring interval specified as cron syntax")
|
|
109
|
-
}),
|
|
110
|
-
z.object({ type: z.literal("no-schedule") })
|
|
111
|
-
])
|
|
112
|
-
});
|
|
113
|
-
/**
|
|
114
17
|
* @deprecated this has been renamed to scheduleSchema, and unstable_scheduleSchema will be removed in the next major version
|
|
115
18
|
* @returns The schedule schema
|
|
116
19
|
*/
|
package/dist/schedule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule.js","names":[],"sources":["../src/schedule.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"schedule.js","names":[],"sources":["../src/schedule.ts"],"sourcesContent":["/**\n * @deprecated Import schedule parsing helpers from `agents/schedules/parser`.\n * This compatibility entry point will be removed in a future major release.\n */\nexport { getSchedulePrompt, scheduleSchema } from \"./schedules/parser\";\n/**\n * @deprecated Import `ParsedSchedule` from `agents/schedules/parser`.\n */\nexport type { ParsedSchedule as Schedule } from \"./schedules/parser\";\n\nimport { getSchedulePrompt, scheduleSchema } from \"./schedules/parser\";\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 * @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":";;AAYA,IAAI,wCAAwC;;;;;;AAO5C,SAAgB,2BAA2B,OAAuB;CAChE,IAAI,CAAC,uCAAuC;EAC1C,wCAAwC;EACxC,QAAQ,KACN,gJACF;CACF;CACA,OAAO,kBAAkB,KAAK;AAChC;;;;;AAMA,MAAa,0BAA0B"}
|