基于 skill-template 脚手架开发,包含: - payroll_config(费率配置,可编辑)+ payslip_snapshots(解析历史,只读)2 张业务表 - 全国默认 + 北上广 4 套费率(社保/公积金/个税起征点/7 级税率表) - 5 个业务 Action:calculate-payslip-simple / calculate-payslip-full / explain-term / view-config / edit-config - 个税累计预扣法计算,支持多月历史累加 - 20 个薪资名词库(社保/公积金/个税/全勤/加班费等) - 完整市场文档(README/TUTORIAL/DEMO/CHANGELOG) - 296 测试全部通过
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"id": "item-import",
|
|
"label": "导入记录",
|
|
"description": "由宿主「导入数据」面板调用:解析 Excel/CSV 并写入业务表(含领域校验与派生字段)。",
|
|
"replaces": "import",
|
|
"placements": [],
|
|
"executionProfile": "sync",
|
|
"interaction": "form",
|
|
"bind": {
|
|
"tables": ["items"]
|
|
},
|
|
"hostEffects": {
|
|
"onSuccess": ["reloadTable"]
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["filePath"],
|
|
"properties": {
|
|
"filePath": {
|
|
"type": "string",
|
|
"title": "导入文件",
|
|
"description": "由宿主导入面板传入的 Excel/CSV 路径。",
|
|
"format": "file"
|
|
},
|
|
"onError": {
|
|
"type": "string",
|
|
"title": "导入规则(出错时)",
|
|
"enum": ["跳过该行,继续导入", "立即停止,不再导入后续行"],
|
|
"default": "跳过该行,继续导入"
|
|
}
|
|
}
|
|
},
|
|
"entrypoint": {
|
|
"type": "cli",
|
|
"command": "item",
|
|
"args": ["import", "--file", "{{filePath}}", "--on-error", "{{onError}}"]
|
|
}
|
|
}
|