@crediolabs/policy-builder-mcp 0.5.5 → 0.5.6
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/src/schemas.d.ts +13 -0
- package/dist/src/schemas.js +7 -0
- package/dist-cjs/src/schemas.d.ts +13 -0
- package/dist-cjs/src/schemas.js +7 -0
- package/package.json +2 -2
- package/src/schemas.ts +7 -0
package/dist/src/schemas.d.ts
CHANGED
|
@@ -845,6 +845,19 @@ export declare const DeclarePolicyToolShape: {
|
|
|
845
845
|
readonly contract: z.ZodOptional<z.ZodString>;
|
|
846
846
|
readonly maxAmount: z.ZodOptional<z.ZodString>;
|
|
847
847
|
readonly amountArgIndex: z.ZodOptional<z.ZodNumber>;
|
|
848
|
+
readonly amountPath: z.ZodOptional<z.ZodObject<{
|
|
849
|
+
argIndex: z.ZodNumber;
|
|
850
|
+
field: z.ZodString;
|
|
851
|
+
elements: z.ZodOptional<z.ZodNumber>;
|
|
852
|
+
}, "strip", z.ZodTypeAny, {
|
|
853
|
+
argIndex: number;
|
|
854
|
+
field: string;
|
|
855
|
+
elements?: number | undefined;
|
|
856
|
+
}, {
|
|
857
|
+
argIndex: number;
|
|
858
|
+
field: string;
|
|
859
|
+
elements?: number | undefined;
|
|
860
|
+
}>>;
|
|
848
861
|
readonly recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
849
862
|
readonly recipientArgIndex: z.ZodOptional<z.ZodNumber>;
|
|
850
863
|
readonly allowZeroCap: z.ZodOptional<z.ZodBoolean>;
|
package/dist/src/schemas.js
CHANGED
|
@@ -95,6 +95,13 @@ export const DeclarePolicyToolShape = {
|
|
|
95
95
|
contract: z.string().optional(),
|
|
96
96
|
maxAmount: z.string().optional(),
|
|
97
97
|
amountArgIndex: z.number().int().nonnegative().optional(),
|
|
98
|
+
amountPath: z
|
|
99
|
+
.object({
|
|
100
|
+
argIndex: z.number().int().nonnegative(),
|
|
101
|
+
field: z.string().min(1),
|
|
102
|
+
elements: z.number().int().min(1).optional(),
|
|
103
|
+
})
|
|
104
|
+
.optional(),
|
|
98
105
|
recipients: z.array(z.string()).optional(),
|
|
99
106
|
recipientArgIndex: z.number().int().nonnegative().optional(),
|
|
100
107
|
allowZeroCap: z.boolean().optional(),
|
|
@@ -845,6 +845,19 @@ export declare const DeclarePolicyToolShape: {
|
|
|
845
845
|
readonly contract: z.ZodOptional<z.ZodString>;
|
|
846
846
|
readonly maxAmount: z.ZodOptional<z.ZodString>;
|
|
847
847
|
readonly amountArgIndex: z.ZodOptional<z.ZodNumber>;
|
|
848
|
+
readonly amountPath: z.ZodOptional<z.ZodObject<{
|
|
849
|
+
argIndex: z.ZodNumber;
|
|
850
|
+
field: z.ZodString;
|
|
851
|
+
elements: z.ZodOptional<z.ZodNumber>;
|
|
852
|
+
}, "strip", z.ZodTypeAny, {
|
|
853
|
+
argIndex: number;
|
|
854
|
+
field: string;
|
|
855
|
+
elements?: number | undefined;
|
|
856
|
+
}, {
|
|
857
|
+
argIndex: number;
|
|
858
|
+
field: string;
|
|
859
|
+
elements?: number | undefined;
|
|
860
|
+
}>>;
|
|
848
861
|
readonly recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
849
862
|
readonly recipientArgIndex: z.ZodOptional<z.ZodNumber>;
|
|
850
863
|
readonly allowZeroCap: z.ZodOptional<z.ZodBoolean>;
|
package/dist-cjs/src/schemas.js
CHANGED
|
@@ -103,6 +103,13 @@ exports.DeclarePolicyToolShape = {
|
|
|
103
103
|
contract: zod_1.z.string().optional(),
|
|
104
104
|
maxAmount: zod_1.z.string().optional(),
|
|
105
105
|
amountArgIndex: zod_1.z.number().int().nonnegative().optional(),
|
|
106
|
+
amountPath: zod_1.z
|
|
107
|
+
.object({
|
|
108
|
+
argIndex: zod_1.z.number().int().nonnegative(),
|
|
109
|
+
field: zod_1.z.string().min(1),
|
|
110
|
+
elements: zod_1.z.number().int().min(1).optional(),
|
|
111
|
+
})
|
|
112
|
+
.optional(),
|
|
106
113
|
recipients: zod_1.z.array(zod_1.z.string()).optional(),
|
|
107
114
|
recipientArgIndex: zod_1.z.number().int().nonnegative().optional(),
|
|
108
115
|
allowZeroCap: zod_1.z.boolean().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crediolabs/policy-builder-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "MCP server exposing the OZ policy-synth core (record_transaction + synthesize_policy) over stdio and Streamable HTTP transports.",
|
|
6
6
|
"type": "module",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"prepack": "bun run build"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@crediolabs/policy-synth": "0.5.
|
|
66
|
+
"@crediolabs/policy-synth": "0.5.6",
|
|
67
67
|
"@modelcontextprotocol/sdk": "1.30.0",
|
|
68
68
|
"@stellar/stellar-sdk": "14.4.0",
|
|
69
69
|
"zod": "3.25.76"
|
package/src/schemas.ts
CHANGED
|
@@ -135,6 +135,13 @@ export const DeclarePolicyToolShape = {
|
|
|
135
135
|
contract: z.string().optional(),
|
|
136
136
|
maxAmount: z.string().optional(),
|
|
137
137
|
amountArgIndex: z.number().int().nonnegative().optional(),
|
|
138
|
+
amountPath: z
|
|
139
|
+
.object({
|
|
140
|
+
argIndex: z.number().int().nonnegative(),
|
|
141
|
+
field: z.string().min(1),
|
|
142
|
+
elements: z.number().int().min(1).optional(),
|
|
143
|
+
})
|
|
144
|
+
.optional(),
|
|
138
145
|
recipients: z.array(z.string()).optional(),
|
|
139
146
|
recipientArgIndex: z.number().int().nonnegative().optional(),
|
|
140
147
|
allowZeroCap: z.boolean().optional(),
|