SuperAPI AI 工具集

contract-cli-contract

办公与效率

查看项目

更新于 10-15 22:41

技能介绍

用途:通过 contract-cli contract ... 子命令操作合同相关接口,覆盖详情、搜索、创建、同步用户组、读取正文、分类、模板与文件上传。

主要能力:contract get、search、create、sync-user-groups、text、category list、template list/get/instantiate 九条命令同时支持 --as user 和 --as bot;contract upload-file 当前仅支持 --as bot;其余命令仅支持 --as user。contract create 直接接收原始请求体,不暴露 --template;bot 创建走 POST /open-apis/contract/v1/contracts,请求体须自带 create_user_id,阅读顺序为 references/create-contract-fields.md、create-contract-field-tree.md、create-contract-enums.md。--user-id-type/--user-id 为通用 query 参数,不区分身份、不做命令级校验。upload-file 用 multipart/form-data 字段 file_name、file_type、file,--file 是本地真实路径,不接受 --input-file/--data,本地限制不超过 200MB。

使用方式:先按身份执行 auth login --as user 或 --as bot;复杂请求体用 --input-file,脚本消费加 --output json,需原始 envelope 加 --raw。

限制:审批、授权、付款不在本技能覆盖范围。不要对 enum 传 --as bot、不要对 upload-file 传 --as user、不要用 --file 传 JSON 请求体、不要把 contract template fields 当作已实现能力。