@decocms/bindings 1.3.4 → 1.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.
package/package.json
CHANGED
package/src/core/plugins.ts
CHANGED
|
@@ -67,8 +67,14 @@ export interface ClientPlugin<TBinding extends Binder = Binder> {
|
|
|
67
67
|
/**
|
|
68
68
|
* Binding schema used to filter compatible connections.
|
|
69
69
|
* Omit for plugins that manage their own connection (e.g. self MCP).
|
|
70
|
+
* @deprecated Use bindingName for server-side filtering instead.
|
|
70
71
|
*/
|
|
71
72
|
binding?: TBinding;
|
|
73
|
+
/**
|
|
74
|
+
* Server-side binding name to filter connections (e.g., "WORKFLOW", "LLM").
|
|
75
|
+
* Preferred over `binding` as it avoids loading all connections client-side.
|
|
76
|
+
*/
|
|
77
|
+
bindingName?: string;
|
|
72
78
|
setup?: PluginSetup;
|
|
73
79
|
/**
|
|
74
80
|
* Optional custom layout component for this plugin.
|
|
@@ -695,6 +695,11 @@ const LLM_COLLECTION_BINDING = createCollectionBindings(
|
|
|
695
695
|
* - LLM_DO_GENERATE: Generate a language model response
|
|
696
696
|
* - COLLECTION_LLM_LIST: List available AI models with their capabilities
|
|
697
697
|
* - COLLECTION_LLM_GET: Get a single model by ID
|
|
698
|
+
*
|
|
699
|
+
* @deprecated Use native AI SDK provider adapters instead. The llm-binding
|
|
700
|
+
* abstraction wraps MCP connections as AI SDK v2 language models, but the
|
|
701
|
+
* AI SDK now expects v3. The decopilot stream path already uses native
|
|
702
|
+
* providers. This binding will be removed in a future release.
|
|
698
703
|
*/
|
|
699
704
|
export const LANGUAGE_MODEL_BINDING = [
|
|
700
705
|
{
|
|
@@ -717,4 +722,7 @@ export const LANGUAGE_MODEL_BINDING = [
|
|
|
717
722
|
...LLM_COLLECTION_BINDING,
|
|
718
723
|
] satisfies ToolBinder[];
|
|
719
724
|
|
|
725
|
+
/**
|
|
726
|
+
* @deprecated Use native AI SDK provider adapters instead. See {@link LANGUAGE_MODEL_BINDING}.
|
|
727
|
+
*/
|
|
720
728
|
export const LanguageModelBinding = bindingClient(LANGUAGE_MODEL_BINDING);
|
|
@@ -68,6 +68,8 @@ export const TriggerConfigureInputSchema = z.object({
|
|
|
68
68
|
type: z.string(),
|
|
69
69
|
params: z.record(z.string(), z.string()),
|
|
70
70
|
enabled: z.boolean(),
|
|
71
|
+
callbackUrl: z.url().optional(),
|
|
72
|
+
callbackToken: z.string().min(1).optional(),
|
|
71
73
|
});
|
|
72
74
|
|
|
73
75
|
export type TriggerConfigureInput = z.infer<typeof TriggerConfigureInputSchema>;
|