skedyul 1.7.28 → 1.7.30
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 +1 -0
- package/dist/.build-stamp +1 -1
- package/dist/cli/api/apps.d.ts +38 -0
- package/dist/cli/api/index.d.ts +5 -2
- package/dist/cli/api/index.js +64 -1
- package/dist/cli/api/playground.d.ts +92 -0
- package/dist/cli/commands/apps.d.ts +1 -0
- package/dist/cli/index.js +398 -2
- package/dist/config/types/entity.d.ts +41 -0
- package/dist/esm/index.mjs +475 -339
- package/dist/index.d.ts +2 -2
- package/dist/index.js +487 -339
- package/dist/schemas/agent-schema-v3.d.ts +3 -0
- package/dist/schemas/agent-schema-v3.js +56 -1
- package/dist/schemas/agent-schema-v3.mjs +56 -1
- package/dist/schemas/agent-schema.d.ts +248 -1
- package/dist/schemas/agent-schema.js +36 -1
- package/dist/schemas/agent-schema.mjs +36 -1
- package/dist/schemas/crm-schema.d.ts +16 -16
- package/dist/schemas.d.ts +282 -20
- package/dist/skills/index.d.ts +1 -1
- package/dist/skills/types.d.ts +176 -0
- package/dist/skills/types.js +57 -1
- package/dist/skills/types.mjs +53 -1
- package/package.json +1 -1
|
@@ -13,7 +13,16 @@ function parseToolReferenceString(ref) {
|
|
|
13
13
|
if (ref.startsWith("app:")) {
|
|
14
14
|
const parts = ref.split(":");
|
|
15
15
|
if (parts.length < 3) {
|
|
16
|
-
throw new Error(`Invalid app tool reference: "${ref}". Expected format: app:server:tool`);
|
|
16
|
+
throw new Error(`Invalid app tool reference: "${ref}". Expected format: app:server:tool or app:handle:entity:operation`);
|
|
17
|
+
}
|
|
18
|
+
const ENTITY_OPERATIONS = ["get", "list", "update", "create", "delete"];
|
|
19
|
+
if (parts.length === 4 && ENTITY_OPERATIONS.includes(parts[3])) {
|
|
20
|
+
return {
|
|
21
|
+
kind: "APP_ENTITY",
|
|
22
|
+
appHandle: parts[1],
|
|
23
|
+
entity: parts[2],
|
|
24
|
+
operation: parts[3]
|
|
25
|
+
};
|
|
17
26
|
}
|
|
18
27
|
const server = parts[1];
|
|
19
28
|
const tool = parts.slice(2).join(":");
|
|
@@ -83,6 +92,16 @@ function parseToolReference(input) {
|
|
|
83
92
|
displayName: input.name,
|
|
84
93
|
description: input.description
|
|
85
94
|
};
|
|
95
|
+
} else if (parsed.kind === "APP_ENTITY") {
|
|
96
|
+
return {
|
|
97
|
+
kind: "APP_ENTITY",
|
|
98
|
+
appHandle: parsed.appHandle,
|
|
99
|
+
entity: parsed.entity,
|
|
100
|
+
operation: parsed.operation,
|
|
101
|
+
handle: input.handle,
|
|
102
|
+
displayName: input.name,
|
|
103
|
+
description: input.description
|
|
104
|
+
};
|
|
86
105
|
}
|
|
87
106
|
}
|
|
88
107
|
throw new Error(`Invalid tool reference input: ${JSON.stringify(input)}`);
|
|
@@ -143,6 +162,22 @@ var ToolBindingZ = z.union([
|
|
|
143
162
|
executionMode: z.enum(["ALLOW_ALL", "REQUIRE_APPROVAL"]).optional(),
|
|
144
163
|
/** Approval timeout in ms (default: 86400000 = 1 day) */
|
|
145
164
|
approvalTimeoutMs: z.number().optional()
|
|
165
|
+
}),
|
|
166
|
+
z.object({
|
|
167
|
+
kind: z.literal("APP_ENTITY"),
|
|
168
|
+
/** App handle (e.g., 'bft') */
|
|
169
|
+
appHandle: z.string(),
|
|
170
|
+
/** Entity handle (e.g., 'member', 'booking') */
|
|
171
|
+
entity: z.string(),
|
|
172
|
+
/** Operation: get, list, update, create, delete */
|
|
173
|
+
operation: z.enum(["get", "list", "update", "create", "delete"]),
|
|
174
|
+
handle: z.string().optional(),
|
|
175
|
+
displayName: z.string().optional(),
|
|
176
|
+
description: z.string().optional(),
|
|
177
|
+
/** Execution mode: ALLOW_ALL (default) or REQUIRE_APPROVAL */
|
|
178
|
+
executionMode: z.enum(["ALLOW_ALL", "REQUIRE_APPROVAL"]).optional(),
|
|
179
|
+
/** Approval timeout in ms (default: 86400000 = 1 day) */
|
|
180
|
+
approvalTimeoutMs: z.number().optional()
|
|
146
181
|
})
|
|
147
182
|
]);
|
|
148
183
|
var StageBaseZ = z.object({
|
|
@@ -7,11 +7,11 @@ export declare const CRMFieldTypeSchema: z.ZodEnum<{
|
|
|
7
7
|
number: "number";
|
|
8
8
|
boolean: "boolean";
|
|
9
9
|
object: "object";
|
|
10
|
-
long_string: "long_string";
|
|
11
10
|
date: "date";
|
|
11
|
+
file: "file";
|
|
12
|
+
long_string: "long_string";
|
|
12
13
|
datetime: "datetime";
|
|
13
14
|
time: "time";
|
|
14
|
-
file: "file";
|
|
15
15
|
image: "image";
|
|
16
16
|
}>;
|
|
17
17
|
export type CRMFieldType = z.infer<typeof CRMFieldTypeSchema>;
|
|
@@ -20,8 +20,8 @@ export type CRMFieldType = z.infer<typeof CRMFieldTypeSchema>;
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const CRMFieldRequirementSchema: z.ZodEnum<{
|
|
22
22
|
optional: "optional";
|
|
23
|
-
on_create: "on_create";
|
|
24
23
|
required: "required";
|
|
24
|
+
on_create: "on_create";
|
|
25
25
|
}>;
|
|
26
26
|
export type CRMFieldRequirement = z.infer<typeof CRMFieldRequirementSchema>;
|
|
27
27
|
/**
|
|
@@ -83,8 +83,8 @@ export type CRMFieldAppearance = z.infer<typeof CRMFieldAppearanceSchemaZ>;
|
|
|
83
83
|
export declare const CRMFieldAiMetaSchemaZ: z.ZodObject<{
|
|
84
84
|
description: z.ZodOptional<z.ZodString>;
|
|
85
85
|
mutability: z.ZodOptional<z.ZodEnum<{
|
|
86
|
-
always: "always";
|
|
87
86
|
restricted: "restricted";
|
|
87
|
+
always: "always";
|
|
88
88
|
create_only: "create_only";
|
|
89
89
|
immutable: "immutable";
|
|
90
90
|
}>>;
|
|
@@ -101,11 +101,11 @@ export declare const CRMFieldSchemaZ: z.ZodObject<{
|
|
|
101
101
|
number: "number";
|
|
102
102
|
boolean: "boolean";
|
|
103
103
|
object: "object";
|
|
104
|
-
long_string: "long_string";
|
|
105
104
|
date: "date";
|
|
105
|
+
file: "file";
|
|
106
|
+
long_string: "long_string";
|
|
106
107
|
datetime: "datetime";
|
|
107
108
|
time: "time";
|
|
108
|
-
file: "file";
|
|
109
109
|
image: "image";
|
|
110
110
|
}>;
|
|
111
111
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -117,8 +117,8 @@ export declare const CRMFieldSchemaZ: z.ZodObject<{
|
|
|
117
117
|
}, z.core.$strip>>;
|
|
118
118
|
requirement: z.ZodOptional<z.ZodEnum<{
|
|
119
119
|
optional: "optional";
|
|
120
|
-
on_create: "on_create";
|
|
121
120
|
required: "required";
|
|
121
|
+
on_create: "on_create";
|
|
122
122
|
}>>;
|
|
123
123
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
124
124
|
list: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -139,8 +139,8 @@ export declare const CRMFieldSchemaZ: z.ZodObject<{
|
|
|
139
139
|
aiMeta: z.ZodOptional<z.ZodObject<{
|
|
140
140
|
description: z.ZodOptional<z.ZodString>;
|
|
141
141
|
mutability: z.ZodOptional<z.ZodEnum<{
|
|
142
|
-
always: "always";
|
|
143
142
|
restricted: "restricted";
|
|
143
|
+
always: "always";
|
|
144
144
|
create_only: "create_only";
|
|
145
145
|
immutable: "immutable";
|
|
146
146
|
}>>;
|
|
@@ -166,11 +166,11 @@ export declare const CRMModelSchemaZ: z.ZodObject<{
|
|
|
166
166
|
number: "number";
|
|
167
167
|
boolean: "boolean";
|
|
168
168
|
object: "object";
|
|
169
|
-
long_string: "long_string";
|
|
170
169
|
date: "date";
|
|
170
|
+
file: "file";
|
|
171
|
+
long_string: "long_string";
|
|
171
172
|
datetime: "datetime";
|
|
172
173
|
time: "time";
|
|
173
|
-
file: "file";
|
|
174
174
|
image: "image";
|
|
175
175
|
}>;
|
|
176
176
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -182,8 +182,8 @@ export declare const CRMModelSchemaZ: z.ZodObject<{
|
|
|
182
182
|
}, z.core.$strip>>;
|
|
183
183
|
requirement: z.ZodOptional<z.ZodEnum<{
|
|
184
184
|
optional: "optional";
|
|
185
|
-
on_create: "on_create";
|
|
186
185
|
required: "required";
|
|
186
|
+
on_create: "on_create";
|
|
187
187
|
}>>;
|
|
188
188
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
189
189
|
list: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -204,8 +204,8 @@ export declare const CRMModelSchemaZ: z.ZodObject<{
|
|
|
204
204
|
aiMeta: z.ZodOptional<z.ZodObject<{
|
|
205
205
|
description: z.ZodOptional<z.ZodString>;
|
|
206
206
|
mutability: z.ZodOptional<z.ZodEnum<{
|
|
207
|
-
always: "always";
|
|
208
207
|
restricted: "restricted";
|
|
208
|
+
always: "always";
|
|
209
209
|
create_only: "create_only";
|
|
210
210
|
immutable: "immutable";
|
|
211
211
|
}>>;
|
|
@@ -382,11 +382,11 @@ export declare const CRMSchemaZ: z.ZodObject<{
|
|
|
382
382
|
number: "number";
|
|
383
383
|
boolean: "boolean";
|
|
384
384
|
object: "object";
|
|
385
|
-
long_string: "long_string";
|
|
386
385
|
date: "date";
|
|
386
|
+
file: "file";
|
|
387
|
+
long_string: "long_string";
|
|
387
388
|
datetime: "datetime";
|
|
388
389
|
time: "time";
|
|
389
|
-
file: "file";
|
|
390
390
|
image: "image";
|
|
391
391
|
}>;
|
|
392
392
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -398,8 +398,8 @@ export declare const CRMSchemaZ: z.ZodObject<{
|
|
|
398
398
|
}, z.core.$strip>>;
|
|
399
399
|
requirement: z.ZodOptional<z.ZodEnum<{
|
|
400
400
|
optional: "optional";
|
|
401
|
-
on_create: "on_create";
|
|
402
401
|
required: "required";
|
|
402
|
+
on_create: "on_create";
|
|
403
403
|
}>>;
|
|
404
404
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
405
405
|
list: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -420,8 +420,8 @@ export declare const CRMSchemaZ: z.ZodObject<{
|
|
|
420
420
|
aiMeta: z.ZodOptional<z.ZodObject<{
|
|
421
421
|
description: z.ZodOptional<z.ZodString>;
|
|
422
422
|
mutability: z.ZodOptional<z.ZodEnum<{
|
|
423
|
-
always: "always";
|
|
424
423
|
restricted: "restricted";
|
|
424
|
+
always: "always";
|
|
425
425
|
create_only: "create_only";
|
|
426
426
|
immutable: "immutable";
|
|
427
427
|
}>>;
|