skedyul 0.2.135 → 0.2.136
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/.build-stamp +1 -1
- package/dist/config.d.ts +33 -0
- package/dist/schemas.d.ts +19 -0
- package/dist/schemas.js +21 -1
- package/package.json +1 -1
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1770176002055
|
package/dist/config.d.ts
CHANGED
|
@@ -649,6 +649,35 @@ export interface InstallConfig {
|
|
|
649
649
|
/** Tool name to invoke when app is uninstalled (for cleanup) */
|
|
650
650
|
onUninstall?: string;
|
|
651
651
|
}
|
|
652
|
+
/**
|
|
653
|
+
* Definition for an app-provided agent.
|
|
654
|
+
* Agents are created globally during provisioning and become available
|
|
655
|
+
* to workplaces that install the app.
|
|
656
|
+
*/
|
|
657
|
+
export interface AgentDefinition {
|
|
658
|
+
/** Unique identifier within the app (used for upserts) */
|
|
659
|
+
handle: string;
|
|
660
|
+
/** Display name */
|
|
661
|
+
name: string;
|
|
662
|
+
/** Description of what the agent does */
|
|
663
|
+
description: string;
|
|
664
|
+
/** System prompt (static, no templating) */
|
|
665
|
+
system: string;
|
|
666
|
+
/** Tool names to bind (must exist in this app's tools) */
|
|
667
|
+
tools: string[];
|
|
668
|
+
/** Optional LLM model override (defaults to workspace default) */
|
|
669
|
+
llmModelId?: string;
|
|
670
|
+
/**
|
|
671
|
+
* Parent agent that can call this agent.
|
|
672
|
+
* Creates an AGENT-type tool and binds it to the parent.
|
|
673
|
+
*
|
|
674
|
+
* Values:
|
|
675
|
+
* - 'composer' - Bind to the workspace's Composer agent
|
|
676
|
+
* - '<handle>' - Bind to another agent in this app (by handle)
|
|
677
|
+
* - undefined - Standalone agent (not callable by other agents)
|
|
678
|
+
*/
|
|
679
|
+
parentAgent?: string;
|
|
680
|
+
}
|
|
652
681
|
/** Provision-level configuration - auto-synced when app version is deployed */
|
|
653
682
|
export interface ProvisionConfig {
|
|
654
683
|
/** Global environment variables (developer-level, shared across all installs) */
|
|
@@ -691,6 +720,8 @@ export interface SkedyulConfig {
|
|
|
691
720
|
install?: InstallConfig | Promise<{
|
|
692
721
|
default: InstallConfig;
|
|
693
722
|
}>;
|
|
723
|
+
/** Agent definitions - multi-tenant agents with tool bindings */
|
|
724
|
+
agents?: AgentDefinition[];
|
|
694
725
|
}
|
|
695
726
|
export interface SerializableSkedyulConfig {
|
|
696
727
|
name: string;
|
|
@@ -703,6 +734,8 @@ export interface SerializableSkedyulConfig {
|
|
|
703
734
|
webhooks?: WebhookMetadata[];
|
|
704
735
|
/** Provision config (fully resolved) */
|
|
705
736
|
provision?: ProvisionConfig;
|
|
737
|
+
/** Agent definitions (stored as-is) */
|
|
738
|
+
agents?: AgentDefinition[];
|
|
706
739
|
}
|
|
707
740
|
export interface WebhookHandlerMetadata {
|
|
708
741
|
name: string;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -2788,6 +2788,16 @@ export declare const WebhooksSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
2788
2788
|
}>>;
|
|
2789
2789
|
handler: z.ZodUnknown;
|
|
2790
2790
|
}, z.core.$strip>>;
|
|
2791
|
+
export declare const AgentDefinitionSchema: z.ZodObject<{
|
|
2792
|
+
handle: z.ZodString;
|
|
2793
|
+
name: z.ZodString;
|
|
2794
|
+
description: z.ZodString;
|
|
2795
|
+
system: z.ZodString;
|
|
2796
|
+
tools: z.ZodArray<z.ZodString>;
|
|
2797
|
+
llmModelId: z.ZodOptional<z.ZodString>;
|
|
2798
|
+
parentAgent: z.ZodOptional<z.ZodString>;
|
|
2799
|
+
}, z.core.$strip>;
|
|
2800
|
+
export type AgentDefinition = z.infer<typeof AgentDefinitionSchema>;
|
|
2791
2801
|
export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
2792
2802
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2793
2803
|
label: z.ZodString;
|
|
@@ -4058,6 +4068,15 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
4058
4068
|
}, z.core.$strip>>;
|
|
4059
4069
|
}, z.core.$strip>>>;
|
|
4060
4070
|
}, z.core.$strip>, z.ZodUnknown]>>;
|
|
4071
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4072
|
+
handle: z.ZodString;
|
|
4073
|
+
name: z.ZodString;
|
|
4074
|
+
description: z.ZodString;
|
|
4075
|
+
system: z.ZodString;
|
|
4076
|
+
tools: z.ZodArray<z.ZodString>;
|
|
4077
|
+
llmModelId: z.ZodOptional<z.ZodString>;
|
|
4078
|
+
parentAgent: z.ZodOptional<z.ZodString>;
|
|
4079
|
+
}, z.core.$strip>>>;
|
|
4061
4080
|
}, z.core.$strip>;
|
|
4062
4081
|
export type ParsedSkedyulConfig = z.infer<typeof SkedyulConfigSchema>;
|
|
4063
4082
|
export declare function safeParseConfig(data: unknown): ParsedSkedyulConfig | null;
|
package/dist/schemas.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ListItemTemplateSchema = exports.FileSettingComponentDefinitionSchema = exports.ImageSettingComponentDefinitionSchema = exports.TimePickerComponentDefinitionSchema = exports.DatePickerComponentDefinitionSchema = exports.CheckboxComponentDefinitionSchema = exports.ComboboxComponentDefinitionSchema = exports.SelectComponentDefinitionSchema = exports.TextareaComponentDefinitionSchema = exports.InputComponentDefinitionSchema = exports.FormLayoutConfigDefinitionSchema = exports.FormLayoutRowDefinitionSchema = exports.FormLayoutColumnDefinitionSchema = exports.RelationshipExtensionSchema = exports.FieldSettingButtonPropsSchema = exports.FormV2StylePropsSchema = exports.PageActionDefinitionSchema = exports.PageFormHeaderSchema = exports.PageFieldSourceSchema = exports.PageFieldTypeSchema = exports.PageBlockTypeSchema = exports.PageTypeSchema = exports.WorkflowDefinitionSchema = exports.WorkflowActionSchema = exports.WorkflowActionInputSchema = exports.ChannelDefinitionSchema = exports.ChannelFieldDefinitionSchema = exports.ChannelCapabilitySchema = exports.ChannelCapabilityTypeSchema = exports.RelationshipDefinitionSchema = exports.RelationshipLinkSchema = exports.OnDeleteBehaviorSchema = exports.RelationshipCardinalitySchema = exports.ModelDefinitionSchema = exports.ModelFieldDefinitionSchema = exports.AppFieldVisibilitySchema = exports.InlineFieldDefinitionSchema = exports.FieldOptionSchema = exports.FieldDataTypeSchema = exports.ResourceDependencySchema = exports.WorkflowDependencySchema = exports.ChannelDependencySchema = exports.ModelDependencySchema = exports.StructuredFilterSchema = exports.FieldOwnerSchema = exports.ResourceScopeSchema = exports.ComputeLayerTypeSchema = exports.EnvSchemaSchema = exports.EnvVariableDefinitionSchema = exports.EnvVisibilitySchema = void 0;
|
|
4
|
-
exports.MessageSendOutputSchema = exports.MessageSendInputSchema = exports.MessageSendMessageSchema = exports.MessageSendContactSchema = exports.MessageSendSubscriptionSchema = exports.MessageSendChannelSchema = exports.SkedyulConfigSchema = exports.ProvisionConfigSchema = exports.WebhooksSchema = exports.WebhookHandlerDefinitionSchema = exports.WebhookTypeSchema = exports.WebhookHttpMethodSchema = exports.PageDefinitionSchema = exports.NavigationConfigSchema = exports.NavigationBreadcrumbSchema = exports.BreadcrumbItemSchema = exports.NavigationSidebarSchema = exports.NavigationSectionSchema = exports.NavigationItemSchema = exports.PageInstanceFilterSchema = exports.PageContextDefinitionSchema = exports.PageContextItemDefinitionSchema = exports.PageContextFiltersSchema = exports.PageContextModeSchema = exports.PageBlockDefinitionSchema = exports.ModelMapperBlockDefinitionSchema = exports.ListBlockDefinitionSchema = exports.LegacyFormBlockDefinitionSchema = exports.PageFieldDefinitionSchema = exports.CardBlockDefinitionSchema = exports.CardBlockHeaderSchema = exports.FormV2PropsDefinitionSchema = exports.FormV2ComponentDefinitionSchema = exports.FieldSettingComponentDefinitionSchema = exports.ModalFormDefinitionSchema = exports.AlertComponentDefinitionSchema = exports.EmptyFormComponentDefinitionSchema = exports.ListComponentDefinitionSchema = void 0;
|
|
4
|
+
exports.MessageSendOutputSchema = exports.MessageSendInputSchema = exports.MessageSendMessageSchema = exports.MessageSendContactSchema = exports.MessageSendSubscriptionSchema = exports.MessageSendChannelSchema = exports.SkedyulConfigSchema = exports.ProvisionConfigSchema = exports.AgentDefinitionSchema = exports.WebhooksSchema = exports.WebhookHandlerDefinitionSchema = exports.WebhookTypeSchema = exports.WebhookHttpMethodSchema = exports.PageDefinitionSchema = exports.NavigationConfigSchema = exports.NavigationBreadcrumbSchema = exports.BreadcrumbItemSchema = exports.NavigationSidebarSchema = exports.NavigationSectionSchema = exports.NavigationItemSchema = exports.PageInstanceFilterSchema = exports.PageContextDefinitionSchema = exports.PageContextItemDefinitionSchema = exports.PageContextFiltersSchema = exports.PageContextModeSchema = exports.PageBlockDefinitionSchema = exports.ModelMapperBlockDefinitionSchema = exports.ListBlockDefinitionSchema = exports.LegacyFormBlockDefinitionSchema = exports.PageFieldDefinitionSchema = exports.CardBlockDefinitionSchema = exports.CardBlockHeaderSchema = exports.FormV2PropsDefinitionSchema = exports.FormV2ComponentDefinitionSchema = exports.FieldSettingComponentDefinitionSchema = exports.ModalFormDefinitionSchema = exports.AlertComponentDefinitionSchema = exports.EmptyFormComponentDefinitionSchema = exports.ListComponentDefinitionSchema = void 0;
|
|
5
5
|
exports.safeParseConfig = safeParseConfig;
|
|
6
6
|
exports.isModelDependency = isModelDependency;
|
|
7
7
|
exports.isChannelDependency = isChannelDependency;
|
|
@@ -668,6 +668,25 @@ exports.WebhooksSchema = zod_1.z.record(zod_1.z.string(), exports.WebhookHandler
|
|
|
668
668
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
669
669
|
// Provision Config Schema
|
|
670
670
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
671
|
+
// Agent Definition Schema
|
|
672
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
673
|
+
exports.AgentDefinitionSchema = zod_1.z.object({
|
|
674
|
+
/** Unique identifier within the app (used for upserts) */
|
|
675
|
+
handle: zod_1.z.string().regex(/^[a-z0-9_-]+$/, 'Handle must be lowercase alphanumeric with dashes/underscores'),
|
|
676
|
+
/** Display name */
|
|
677
|
+
name: zod_1.z.string().min(1),
|
|
678
|
+
/** Description of what the agent does */
|
|
679
|
+
description: zod_1.z.string(),
|
|
680
|
+
/** System prompt (static, no templating) */
|
|
681
|
+
system: zod_1.z.string(),
|
|
682
|
+
/** Tool names to bind (can be empty for orchestrator agents) */
|
|
683
|
+
tools: zod_1.z.array(zod_1.z.string()),
|
|
684
|
+
/** Optional LLM model override */
|
|
685
|
+
llmModelId: zod_1.z.string().optional(),
|
|
686
|
+
/** Parent agent that can call this agent ('composer' or another agent handle) */
|
|
687
|
+
parentAgent: zod_1.z.string().optional(),
|
|
688
|
+
});
|
|
689
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
671
690
|
exports.ProvisionConfigSchema = zod_1.z.object({
|
|
672
691
|
env: exports.EnvSchemaSchema.optional(),
|
|
673
692
|
models: zod_1.z.array(exports.ModelDefinitionSchema).optional(),
|
|
@@ -689,6 +708,7 @@ exports.SkedyulConfigSchema = zod_1.z.object({
|
|
|
689
708
|
tools: zod_1.z.unknown().optional(),
|
|
690
709
|
webhooks: zod_1.z.unknown().optional(),
|
|
691
710
|
provision: zod_1.z.union([exports.ProvisionConfigSchema, zod_1.z.unknown()]).optional(),
|
|
711
|
+
agents: zod_1.z.array(exports.AgentDefinitionSchema).optional(),
|
|
692
712
|
});
|
|
693
713
|
function safeParseConfig(data) {
|
|
694
714
|
const result = exports.SkedyulConfigSchema.safeParse(data);
|