@decocms/bindings 1.1.2 → 1.2.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 +3 -2
- package/src/core/plugins.ts +8 -0
- package/src/index.ts +1 -8
- package/src/well-known/workflow.ts +14 -0
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decocms/bindings",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"check": "tsc --noEmit",
|
|
7
7
|
"test": "bun test"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@modelcontextprotocol/sdk": "1.25.
|
|
10
|
+
"@modelcontextprotocol/sdk": "1.25.3",
|
|
11
11
|
"@tanstack/react-router": "1.139.7",
|
|
12
12
|
"react": "^19.2.0",
|
|
13
13
|
"zod": "^4.0.0",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
".": "./src/index.ts",
|
|
22
22
|
"./collections": "./src/well-known/collections.ts",
|
|
23
23
|
"./llm": "./src/well-known/language-model.ts",
|
|
24
|
+
"./object-storage": "./src/well-known/object-storage.ts",
|
|
24
25
|
"./connection": "./src/core/connection.ts",
|
|
25
26
|
"./client": "./src/core/client/index.ts",
|
|
26
27
|
"./mcp": "./src/well-known/mcp.ts",
|
package/src/core/plugins.ts
CHANGED
|
@@ -95,3 +95,11 @@ export {
|
|
|
95
95
|
type RouteIds,
|
|
96
96
|
type RouteById,
|
|
97
97
|
} from "./plugin-router";
|
|
98
|
+
|
|
99
|
+
// Re-export plugin context provider and hook (React components)
|
|
100
|
+
export {
|
|
101
|
+
PluginContextProvider,
|
|
102
|
+
usePluginContext,
|
|
103
|
+
type PluginContextProviderProps,
|
|
104
|
+
type UsePluginContextOptions,
|
|
105
|
+
} from "./plugin-context-provider";
|
package/src/index.ts
CHANGED
|
@@ -17,7 +17,7 @@ export {
|
|
|
17
17
|
type ConnectionForBinding,
|
|
18
18
|
} from "./core/binder";
|
|
19
19
|
|
|
20
|
-
// Re-export plugin context types
|
|
20
|
+
// Re-export plugin context types (not the React provider - use @decocms/bindings/plugins for that)
|
|
21
21
|
export {
|
|
22
22
|
type PluginContext,
|
|
23
23
|
type PluginContextPartial,
|
|
@@ -27,13 +27,6 @@ export {
|
|
|
27
27
|
type TypedToolCaller,
|
|
28
28
|
} from "./core/plugin-context";
|
|
29
29
|
|
|
30
|
-
export {
|
|
31
|
-
PluginContextProvider,
|
|
32
|
-
usePluginContext,
|
|
33
|
-
type PluginContextProviderProps,
|
|
34
|
-
type UsePluginContextOptions,
|
|
35
|
-
} from "./core/plugin-context-provider";
|
|
36
|
-
|
|
37
30
|
// Re-export registry binding types
|
|
38
31
|
export {
|
|
39
32
|
MCPRegistryServerSchema,
|
|
@@ -137,6 +137,16 @@ export const StepSchema = z.object({
|
|
|
137
137
|
"Optional JSON Schema describing the expected output of the step.",
|
|
138
138
|
),
|
|
139
139
|
config: StepConfigSchema.optional().describe("Retry and timeout settings"),
|
|
140
|
+
forEach: z
|
|
141
|
+
.object({
|
|
142
|
+
ref: z.string().describe("@ ref to the step to iterate over"),
|
|
143
|
+
concurrency: z
|
|
144
|
+
.number()
|
|
145
|
+
.optional()
|
|
146
|
+
.default(1)
|
|
147
|
+
.describe("max parallel iterations. default is 1 (sequential)"),
|
|
148
|
+
})
|
|
149
|
+
.optional(),
|
|
140
150
|
});
|
|
141
151
|
|
|
142
152
|
export type Step = z.infer<typeof StepSchema>;
|
|
@@ -216,6 +226,10 @@ export const WorkflowExecutionSchema = BaseCollectionEntitySchema.extend({
|
|
|
216
226
|
})
|
|
217
227
|
.optional()
|
|
218
228
|
.describe("Names of the steps that were completed and their status"),
|
|
229
|
+
running_steps: z
|
|
230
|
+
.array(z.string())
|
|
231
|
+
.optional()
|
|
232
|
+
.describe("Names of the steps that are currently running"),
|
|
219
233
|
});
|
|
220
234
|
export type WorkflowExecution = z.infer<typeof WorkflowExecutionSchema>;
|
|
221
235
|
|