18 Commits

Author SHA1 Message Date
770440a885 feat(core): RoleSpec.deliverable_types角色合法交付类型声明+deliverable_type码表扩充14项+pipeline_deliverables.files_json本体文件清单列——配套service交付件类型守卫(2026-09-14 pbls:需求交付被LLM照抄示例标成design_doc,文件名-XI6..._design_doc.md);deliverable技能补角色类型表与本体vs摘要语义 2026-09-15 00:13:20 +08:00
f8b370b958 docs+chore: 孤儿表清零——README移除pipeline_versions/llm死表条目+治理清单办结(DROP见m0027,编号按并行会话占用重排);git rm models/pipeline_versions.json(页面08-28已删0行);两处SKILL.md会话表指引sd_conversations→pipeline_conversations(旧表m0027 DROP) 2026-09-10 19:06:09 +08:00
b399663863 feat(agent): 五级作用域工具解析+patch_file+原生视觉上传构造
1. tool_sources.py(新): global/org/pipeline/role/project 五级工具作用域解析
   - 策略表 pipeline_tool_policies allow/deny(配套 models+CRUD json)
   - capability 两层语义: 映射手册(all/概念技能,含global层) + 声明注入
     (仅org/pipeline/role/project/user层)——防 generic 会话经 global 概念
     技能拿到~70个产线工具,击穿七层隔离(单测 29/29 含此回归)
   - role 白名单是过滤器非添加器,且作用于 base+capability 全集
2. agent_config: GENERAL_TOOLS 加 patch_file(定点替换,唯一性校验);
   write_file 描述引导改文件优先用 patch_file
3. upload_tools: is_image + build_image_parts(OpenAI多模态data URL,
   8MB/张+4张/条上限,超限显式告知不静默丢)
4. agent_chat/agent_chat_generic: 图片分流不进文本上下文,
   image_paths 传 gateway
5. load_path: 策略管理页注册
2026-09-10 18:36:06 +08:00
62c39ffe3f feat(agent): 记忆多租户隔离+memory/manage_skill/process/subagent工具对齐Hermes
- memory_store: org_id/user_id归属列、可见性规则(visible_to)、key掺租户维度、
  分区淘汰(不碰种子/他租户)、写后失效缓存(多worker一致)
- agent_config: GENERAL_TOOLS 新增 memory/manage_skill/process/subagent 四工具;
  run_command 加 background/timeout; ToolDefinition 加显式 required 字段
  (可选参数不再被 native FC 标成 required)
- tool_registry: to_openai_schema 尊重显式 required
- models: pipeline_user_memory 加 org_id/user_id(配套迁移 m0023)
2026-09-10 17:09:28 +08:00
889b450a6e fix(r4): sd_project_role_models两个坏下拉——codes改指llm_model(status=active)+补sd_role字典组8项(与get_role_options.dspy对齐);原role指appcodes_kv parentid=sd_role但字典组不存在,model_name指已停用旧llm表(8行残留) 2026-09-10 14:25:43 +08:00
4b2fd4cd7a feat(ownership): 三张跨产线表归属迁入——sd_projects/sd_project_role_models/pipeline_deliverables models+CRUD json+15个api dspy+手写角色模型页自pipeline-sdlc迁入(第2轮迁归属)
- models: 3张表JSON迁入(sd_projects全产线项目容器/pipeline_deliverables被bidding+service+core写681行实证/sd_project_role_models被pipeline-service三处消费)——分层倒置修复:core的agent_config.py裸查sd_projects/pipeline_deliverables,低层查高层表
- json: sd_project_list.json/pipeline_deliverables_list.json迁入,subtables迭代/仓库页改绝对路径/pipeline-sdlc/**(跨模块相对路径会解析到core不存在的目录)
- api: 15个CRUD页面依赖的dspy迁入(get_project_options等,entire_url('../api/')相对解析跟页面走);get_module_dbname('pipeline_sdlc')→pipeline_core(app层一律返pipeline,行为不变仅语义归位)
- init/data.json: 4组字典随表迁(sd_project_status/sd_project_type/deliverable_type/review_status)——normalize幂等键{parentid}_{k}不变,import_init重跑无副作用
- .gitignore: 补wwwroot/sd_projects/+wwwroot/pipeline_deliverables/(xls2ui生成目录,build.sh第7步清单已含pipeline_core,重生成不脏工作树)
2026-09-10 12:33:30 +08:00
d3c5b4f7e1 feat(models): add pipelines/pipeline_versions/pipeline_steps/pipeline_user_memory JSONs (was handwritten mysql.ddl.sql only) 2026-09-08 15:24:40 +08:00
e134cde44e feat(pipeline): 产线产品化接入 product_management——计费层+产品接口+定价映射表
产线使用费(订阅制)照 account_resource/storage_resource 范式接入产品层:
- models/pipeline_pricing_map.json: pipeline_id × charge_mode(month/year) → ppid
  (月付 months=1/valid_days=30;年付 months=10/valid_days=365,即月费×10 付10个月用12个月)
- pipeline_pricing.py: 定价映射 CRUD + calculate_pipeline_amount
  (buffered_charging(ppid, {months}) 算原价;无定价方案/金额0 均抛异常不静默)
- product_interface.py: 7 个标准接口(load_product_category_product 导入用;
  get_product_display 展示月/年双档价;execute_product_service 开订阅权益)
- init.py load_pipeline_core: 注册 env.product_interface(module_name='pipeline_core')
  + env.pipeline_pricing_map_save/get_pipeline_ppid/calculate_pipeline_amount

资源主表复用 pipelines(status='published' 才可售),不建 usage 表——
订阅购买是同步实时记账(purchase_realtime → product_accounting_generic 写 biz_order)。

用户定稿的商业模型(2026-09-06):账号免费只管并发配额;产线单独包月
(商机100/投标150/开发200,年付=月×10);模型按量加价;存储 1元/GB月。
2026-09-06 16:55:30 +08:00
0d5c5ea00f refactor(llm): 模型选择收敛到模型治理模块——agent_model_options改薄壳委托;旧llm CRUD(json/models/wwwroot/llm+init.py函数)删除;agent_config缺省模型名清空(交机构策略);llm_v1端点委托统一推理引擎 2026-09-04 17:05:00 +08:00
34a13ebf37 refactor(pipeline_core): 移除产线管理三功能(产线定义/产线步骤/发布记录)死库存
- 证据: pipeline_steps、pipeline_versions 表恒为0行, 三功能上线后从未使用
- 产线定义已收敛为代码能力包(PipelineAbility)+pipelines表元数据,
  页面无法定义新能力(每种能力需先写代码注册handler), 在线开发属伪命题
- 删除: wwwroot 下 pipelines/pipeline_steps/pipeline_versions/pipeline_editor
  页面目录与配套 API dspy、json/models CRUD 定义、init.py 死函数、
  load_path.py 权限注册
- 保留: pipelines 表(agent 运行时读 name/default_model)、executor 引擎、
  agent/llm/skill_proposals 等模块主体
2026-08-28 16:34:02 +08:00
d30fa89b51 feat: llm 表加 capabilities 能力分类字段
cockpit/agent 两个模型下拉 dspy 都读 capabilities 列但表里没有,报 Unknown column。
models/llm.json 加 capabilities(str len20 default text),
mysql_v2.ddl.sql 加 ALTER 固化(ADD COLUMN IF NOT EXISTS,MariaDB 语法)。
取值: text=纯文本 / vision=图像理解 / multimodal=多模态。
2026-08-16 22:26:36 +08:00
17ad169829 refactor(team-communication): 移除配置表,规范改为 skill
团队角色/问题类型/冒泡路径不再用 DB 表 + CRUD,改为 team-communication skill
(产线默认规范,项目可覆盖):
- 删 pipeline_team_roles/pipeline_problem_types 两表 model+json+api dspy
- 回退 pipeline_core/init.py CRUD 函数 + load_path.py 路段
- 重写 team-communication SKILL.md 为分层可覆盖规范文档
2026-08-16 22:08:01 +08:00
ff02533cb6 feat(team-communication): 团队沟通配置 — 团队角色(+agentid) + 问题类型(冒泡路径)
新增通用问题冒泡的数据模型与配置 CRUD:
- models/json: pipeline_team_roles(角色+agentid,多agent区分) + pipeline_problem_types(escalation_path)
- pipeline_core/init.py: _simple_crud 通用 CRUD + 6 个 create/update/delete 注册
- wwwroot/api: 6 个 dspy 端点
- scripts/load_path.py: RBAC 路径
- skills_library/all/team-communication/SKILL.md: 团队沟通技能
2026-08-16 21:25:38 +08:00
08f628dba1 feat: 技能提议管理(skill_proposals表+管理API+列表UI+界面)+agent自省propose_skill工具 2026-08-16 19:16:52 +08:00
p
8d431721fa feat: llm 组织隔离(org_id) + 产线缺省模型(default_model) + load_agent_config 缺省查找 2026-08-14 18:03:01 +08:00
827bbb80b4 feat: UI pages, build.sh, deployment scripts, model uitype fixes
- Add SDLC dashboard, pipeline editor, ops center UI
- build.sh: clone business modules to pkgs/, xls2ui CRUD, fix created_by
- global_func.py: password_encode None-safe wrapper
- pipeline_app.py: permission cache warmup removed
- load_path.py: RBAC permission registration for all modules
- scripts/merge_i18n.py: i18n merge tool
- bin/init_perms.py, bin/init_data.py: init scripts
- set_role_perm.py: single permission registration
- Model uitype fields set for form editing
- pipeline_core/pipeline_ops load_path.py scripts
2026-08-03 16:09:55 +08:00
91160d6d96 fix: init/data.json格式修正+model codes补全
pipeline-core:
- pipelines.json codes cond: id -> parentid

pipeline-ops:
- init/data.json: 转为Format B(parentid/parentname/items)
- pipeline_pricing.json: +4 codes(pricing_type/currency/status/pipeline_id)
- pipeline_capacity.json: +2 codes(capacity_status/pipeline_id)
- pipeline_usage_log.json: +2 codes(usage_status/pipeline_id)

pipeline-dist:
- init/data.json: 转为Format B(parentid/parentname/items)
- distributors.json: +1 code(distributor_status)
- distributor_pipeline.json: +4 codes(markup_type/dp_status/外键)
2026-08-03 16:09:55 +08:00
d9a1903d7a feat: pipeline-app独立产线后端服务
3个业务模块:
- pipeline_core: 产线定义(pipelines/steps/versions)
- pipeline_ops: 运营(定价/供应量/使用记录)
- pipeline_dist: 分销(分销商/独立定价/API密钥)

- ahserver独立部署(端口9090)
- 独立数据库pipeline
- 80个文件, 符合module/db-table/crud三规范
2026-08-03 16:09:55 +08:00