@sparkelf/dsh-dataops-managed 0.3.47 → 0.3.48

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/README.md CHANGED
@@ -18,7 +18,7 @@ DataOps设置中的“应用万相品牌”默认开启,并在本机浏览器
18
18
 
19
19
  ### 工具按权限披露
20
20
 
21
- 工作区的DataOps角色决定模型能看到哪些技能/审核工具:插件在JWT变更、首次连接和审核上下文刷新时读取`/api/ai/review/context`,按`skill:*`能力与审核角色注册或注销工具;没有能力的工具不会出现在模型工具列表中。工具执行时不再重复读取角色,DataOps后端仍对每次API调用做最终授权、参数校验、审批与审计。`dataops_api_docs`只向「超级管理员」披露,用于只读检索`/api/openapi.json`。同一份 scope 还会通过`ctx.skills.useViewer`约束技能目录;技能中心的连接器 Tab 读取`/api/dsh-skill-center/connectors`,未授权能力不会出现在目录中。
21
+ 工作区的DataOps角色决定模型能看到哪些技能/审核工具:插件在JWT变更、首次连接和审核上下文刷新时读取`/api/ai/review/context`,按`skill:*`能力与审核角色注册或注销工具;没有能力的工具不会出现在模型工具列表中。工具执行时不再重复读取角色,DataOps后端仍对每次API调用做最终授权、参数校验、审批与审计。`dataops_api_docs`只向「超级管理员」披露,用于只读检索`/api/openapi.json`。后端 MCP 工作流工具`workflow_query`/`workflow_definition`/`workflow_deployment`/`workflow_run_control`同样只向「超级管理员」披露:它们在模型侧的名称是`mcp__<serverName>__<name>`,插件把该名称映射回声明表后参与会话级披露,群聊房间会按发言人身份隐藏非超管不可见的工具。同一份 scope 还会通过`ctx.skills.useViewer`约束技能目录;技能中心的连接器 Tab 读取`/api/dsh-skill-center/connectors`,未授权能力不会出现在目录中。
22
22
 
23
23
  ### 已知限制
24
24
 
@@ -42,7 +42,7 @@ The package adds namespaced DataOps MCP tool schemas but never places the JWT in
42
42
 
43
43
  ### Permission-Based Tool Disclosure
44
44
 
45
- The workspace's DataOps role decides which skill and review tools the model can see. The plugin reads `/api/ai/review/context` when the JWT changes, on the first connect, and whenever the review-context route refreshes, then registers or disposes tools according to the `skill:*` capabilities and review role. A tool the principal cannot use is never offered. Execution does not re-read the role; DataOps still performs final authorization, parameter validation, approval and audit on every API call. `dataops_api_docs` is disclosed only to 超级管理员 and searches `/api/openapi.json` read-only. The same scope is applied to the skill catalog through `ctx.skills.useViewer`; the skill center's connector tab reads `/api/dsh-skill-center/connectors`, which omits capabilities the account cannot use.
45
+ The workspace's DataOps role decides which skill and review tools the model can see. The plugin reads `/api/ai/review/context` when the JWT changes, on the first connect, and whenever the review-context route refreshes, then registers or disposes tools according to the `skill:*` capabilities and review role. A tool the principal cannot use is never offered. Execution does not re-read the role; DataOps still performs final authorization, parameter validation, approval and audit on every API call. `dataops_api_docs` is disclosed only to 超级管理员 and searches `/api/openapi.json` read-only. The backend's MCP workflow tools — `workflow_query`, `workflow_definition`, `workflow_deployment`, and `workflow_run_control` — are likewise disclosed only to 超级管理员: their model-facing names are `mcp__<serverName>__<name>`, and the plugin maps that name back to the declaration so a group-chat room hides any tool its speaker could not use. The same scope is applied to the skill catalog through `ctx.skills.useViewer`; the skill center's connector tab reads `/api/dsh-skill-center/connectors`, which omits capabilities the account cannot use.
46
46
 
47
47
  ### Known Limitations
48
48
 
package/lib/client.js CHANGED
@@ -835,22 +835,22 @@ window.__ModuleLoader__.load({
835
835
  document.head.appendChild(tag);
836
836
  }
837
837
  var ManagedDataOpsSection_module_css_default = {
838
- "reviewHint": "_2dqzjG_reviewHint",
839
- "label": "_2dqzjG_label",
840
838
  "fields": "_2dqzjG_fields",
841
- "row": "_2dqzjG_row",
839
+ "reviewRow": "_2dqzjG_reviewRow",
842
840
  "title": "_2dqzjG_title",
843
- "refusal": "_2dqzjG_refusal",
841
+ "status": "_2dqzjG_status",
844
842
  "copy": "_2dqzjG_copy",
845
- "actions": "_2dqzjG_actions",
843
+ "card": "_2dqzjG_card",
844
+ "heading": "_2dqzjG_heading",
845
+ "refusal": "_2dqzjG_refusal",
846
846
  "reviewRows": "_2dqzjG_reviewRows",
847
+ "meta": "_2dqzjG_meta",
848
+ "reviewHint": "_2dqzjG_reviewHint",
849
+ "label": "_2dqzjG_label",
847
850
  "reviewActions": "_2dqzjG_reviewActions",
848
851
  "section": "_2dqzjG_section",
849
- "status": "_2dqzjG_status",
850
- "card": "_2dqzjG_card",
851
- "reviewRow": "_2dqzjG_reviewRow",
852
- "meta": "_2dqzjG_meta",
853
- "heading": "_2dqzjG_heading"
852
+ "actions": "_2dqzjG_actions",
853
+ "row": "_2dqzjG_row"
854
854
  };
855
855
  //#endregion
856
856
  //#region src/client/ReviewSettingsCard.tsx
@@ -1600,62 +1600,62 @@ window.__ModuleLoader__.load({
1600
1600
  document.head.appendChild(tag);
1601
1601
  }
1602
1602
  var SkillPlazaSection_module_css_default = {
1603
- "tagTop": "_9FdZvq_tagTop",
1604
- "departmentBar": "_9FdZvq_departmentBar",
1605
- "riskSummary": "_9FdZvq_riskSummary",
1606
- "departmentSelect": "_9FdZvq_departmentSelect",
1607
- "detailButton": "_9FdZvq_detailButton",
1608
- "detailLabel": "_9FdZvq_detailLabel",
1609
- "emptyText": "_9FdZvq_emptyText",
1610
- "demoTag": "_9FdZvq_demoTag",
1611
1603
  "tab": "_9FdZvq_tab",
1612
- "pendingTag": "_9FdZvq_pendingTag",
1613
- "findingText": "_9FdZvq_findingText",
1614
- "cardTop": "_9FdZvq_cardTop",
1615
- "mine": "_9FdZvq_mine",
1616
- "riskHead": "_9FdZvq_riskHead",
1617
- "sharedTag": "_9FdZvq_sharedTag",
1618
- "findingHint": "_9FdZvq_findingHint",
1619
- "notice": "_9FdZvq_notice",
1620
- "reviewError": "_9FdZvq_reviewError",
1604
+ "tagTop": "_9FdZvq_tagTop",
1605
+ "reviewNote": "_9FdZvq_reviewNote",
1621
1606
  "cards": "_9FdZvq_cards",
1622
- "cardIcon": "_9FdZvq_cardIcon",
1623
- "empty": "_9FdZvq_empty",
1624
- "noteField": "_9FdZvq_noteField",
1625
- "section": "_9FdZvq_section",
1626
- "rejectedTag": "_9FdZvq_rejectedTag",
1627
- "headRow": "_9FdZvq_headRow",
1607
+ "departmentLabel": "_9FdZvq_departmentLabel",
1628
1608
  "audit": "_9FdZvq_audit",
1629
- "card": "_9FdZvq_card",
1630
- "emptyIcon": "_9FdZvq_emptyIcon",
1631
- "tabs": "_9FdZvq_tabs",
1632
- "tabActive": "_9FdZvq_tabActive",
1633
1609
  "titleCount": "_9FdZvq_titleCount",
1634
1610
  "cardMarks": "_9FdZvq_cardMarks",
1635
- "cardEnd": "_9FdZvq_cardEnd",
1636
- "auditDialog": "_9FdZvq_auditDialog",
1611
+ "cardTop": "_9FdZvq_cardTop",
1637
1612
  "auditFooter": "_9FdZvq_auditFooter",
1638
- "severity": "_9FdZvq_severity",
1639
- "findings": "_9FdZvq_findings",
1640
- "cardDesc": "_9FdZvq_cardDesc",
1641
- "departmentLabel": "_9FdZvq_departmentLabel",
1642
- "detailRow": "_9FdZvq_detailRow",
1643
- "cardTitle": "_9FdZvq_cardTitle",
1644
- "detailValue": "_9FdZvq_detailValue",
1645
- "head": "_9FdZvq_head",
1646
- "title": "_9FdZvq_title",
1647
- "tabCount": "_9FdZvq_tabCount",
1648
- "dialog": "_9FdZvq_dialog",
1649
- "reviewButton": "_9FdZvq_reviewButton",
1650
1613
  "risk": "_9FdZvq_risk",
1651
- "reviewNote": "_9FdZvq_reviewNote",
1652
- "riskEmpty": "_9FdZvq_riskEmpty",
1614
+ "section": "_9FdZvq_section",
1615
+ "headRow": "_9FdZvq_headRow",
1653
1616
  "riskFailed": "_9FdZvq_riskFailed",
1654
- "status": "_9FdZvq_status",
1655
- "detail": "_9FdZvq_detail",
1656
1617
  "riskScore": "_9FdZvq_riskScore",
1618
+ "dialog": "_9FdZvq_dialog",
1619
+ "demoTag": "_9FdZvq_demoTag",
1620
+ "detail": "_9FdZvq_detail",
1621
+ "rejectedTag": "_9FdZvq_rejectedTag",
1622
+ "card": "_9FdZvq_card",
1623
+ "detailButton": "_9FdZvq_detailButton",
1624
+ "reviewButton": "_9FdZvq_reviewButton",
1625
+ "sharedTag": "_9FdZvq_sharedTag",
1626
+ "mine": "_9FdZvq_mine",
1627
+ "auditDialog": "_9FdZvq_auditDialog",
1628
+ "riskSummary": "_9FdZvq_riskSummary",
1629
+ "severity": "_9FdZvq_severity",
1657
1630
  "finding": "_9FdZvq_finding",
1658
- "mark": "_9FdZvq_mark"
1631
+ "findingText": "_9FdZvq_findingText",
1632
+ "findingHint": "_9FdZvq_findingHint",
1633
+ "noteField": "_9FdZvq_noteField",
1634
+ "status": "_9FdZvq_status",
1635
+ "reviewError": "_9FdZvq_reviewError",
1636
+ "notice": "_9FdZvq_notice",
1637
+ "pendingTag": "_9FdZvq_pendingTag",
1638
+ "tabs": "_9FdZvq_tabs",
1639
+ "riskEmpty": "_9FdZvq_riskEmpty",
1640
+ "findings": "_9FdZvq_findings",
1641
+ "title": "_9FdZvq_title",
1642
+ "riskHead": "_9FdZvq_riskHead",
1643
+ "emptyText": "_9FdZvq_emptyText",
1644
+ "detailLabel": "_9FdZvq_detailLabel",
1645
+ "mark": "_9FdZvq_mark",
1646
+ "cardIcon": "_9FdZvq_cardIcon",
1647
+ "detailValue": "_9FdZvq_detailValue",
1648
+ "tabActive": "_9FdZvq_tabActive",
1649
+ "tabCount": "_9FdZvq_tabCount",
1650
+ "empty": "_9FdZvq_empty",
1651
+ "emptyIcon": "_9FdZvq_emptyIcon",
1652
+ "departmentBar": "_9FdZvq_departmentBar",
1653
+ "cardTitle": "_9FdZvq_cardTitle",
1654
+ "head": "_9FdZvq_head",
1655
+ "cardDesc": "_9FdZvq_cardDesc",
1656
+ "cardEnd": "_9FdZvq_cardEnd",
1657
+ "detailRow": "_9FdZvq_detailRow",
1658
+ "departmentSelect": "_9FdZvq_departmentSelect"
1659
1659
  };
1660
1660
  //#endregion
1661
1661
  //#region src/client/SkillPlazaSection.tsx
@@ -2310,19 +2310,19 @@ window.__ModuleLoader__.load({
2310
2310
  document.head.appendChild(tag);
2311
2311
  }
2312
2312
  var WanxiangBrand_module_css_default = {
2313
+ "unit-top": "s0HPxG_unit-top",
2314
+ "unit-left": "s0HPxG_unit-left",
2315
+ "harness": "s0HPxG_harness",
2316
+ "unitTop": "s0HPxG_unitTop",
2317
+ "unitRight": "s0HPxG_unitRight",
2313
2318
  "mark": "s0HPxG_mark",
2314
2319
  "animatedMark": "s0HPxG_animatedMark",
2315
- "unitCore": "s0HPxG_unitCore",
2316
- "harness": "s0HPxG_harness",
2317
- "unit-top": "s0HPxG_unit-top",
2318
2320
  "unit-core": "s0HPxG_unit-core",
2319
- "unitTop": "s0HPxG_unitTop",
2320
- "unitLeft": "s0HPxG_unitLeft",
2321
2321
  "sidebarName": "s0HPxG_sidebarName",
2322
- "unitRight": "s0HPxG_unitRight",
2323
- "unit-left": "s0HPxG_unit-left",
2322
+ "unitLeft": "s0HPxG_unitLeft",
2323
+ "wordmark": "s0HPxG_wordmark",
2324
2324
  "unit-right": "s0HPxG_unit-right",
2325
- "wordmark": "s0HPxG_wordmark"
2325
+ "unitCore": "s0HPxG_unitCore"
2326
2326
  };
2327
2327
  //#endregion
2328
2328
  //#region src/client/WanxiangBrand.tsx
@@ -2732,92 +2732,92 @@ window.__ModuleLoader__.load({
2732
2732
  document.head.appendChild(tag);
2733
2733
  }
2734
2734
  var PermissionCenterSection_module_css_default = {
2735
- "dialogHint": "PNbOqW_dialogHint",
2736
- "sectionTitle": "PNbOqW_sectionTitle",
2737
- "notice": "PNbOqW_notice",
2738
- "panelHead": "PNbOqW_panelHead",
2739
- "treeRoot": "PNbOqW_treeRoot",
2740
- "tabs": "PNbOqW_tabs",
2741
- "dialog": "PNbOqW_dialog",
2742
- "protected": "PNbOqW_protected",
2743
- "rowActions": "PNbOqW_rowActions",
2744
- "copied": "PNbOqW_copied",
2745
- "roleCell": "PNbOqW_roleCell",
2746
- "search": "PNbOqW_search",
2747
- "comboboxCheck": "PNbOqW_comboboxCheck",
2748
- "deptAdmins": "PNbOqW_deptAdmins",
2749
- "comboboxList": "PNbOqW_comboboxList",
2750
2735
  "adminTag": "PNbOqW_adminTag",
2751
- "comboboxEmpty": "PNbOqW_comboboxEmpty",
2752
- "comboboxSearch": "PNbOqW_comboboxSearch",
2753
- "headActions": "PNbOqW_headActions",
2754
- "treeRow": "PNbOqW_treeRow",
2755
- "tabBadge": "PNbOqW_tabBadge",
2756
- "matrixRoleHead": "PNbOqW_matrixRoleHead",
2757
- "matrixToolActive": "PNbOqW_matrixToolActive",
2758
- "matrixRoleCell": "PNbOqW_matrixRoleCell",
2759
- "treeSpacer": "PNbOqW_treeSpacer",
2760
- "department": "PNbOqW_department",
2761
- "roleSearchIcon": "PNbOqW_roleSearchIcon",
2762
- "treeActions": "PNbOqW_treeActions",
2763
- "permCopy": "PNbOqW_permCopy",
2764
- "table": "PNbOqW_table",
2736
+ "title": "PNbOqW_title",
2765
2737
  "dialogBody": "PNbOqW_dialogBody",
2766
- "candidates": "PNbOqW_candidates",
2767
- "detailGrid": "PNbOqW_detailGrid",
2768
- "waiting": "PNbOqW_waiting",
2769
- "comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
2770
- "tabGroup": "PNbOqW_tabGroup",
2771
- "matrixTool": "PNbOqW_matrixTool",
2772
- "empty": "PNbOqW_empty",
2738
+ "headActions": "PNbOqW_headActions",
2773
2739
  "tableScroll": "PNbOqW_tableScroll",
2774
- "demo": "PNbOqW_demo",
2775
- "readOnly": "PNbOqW_readOnly",
2776
- "head": "PNbOqW_head",
2777
- "roleSearch": "PNbOqW_roleSearch",
2778
- "matrix": "PNbOqW_matrix",
2740
+ "comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
2741
+ "roleCell": "PNbOqW_roleCell",
2742
+ "matrixHead": "PNbOqW_matrixHead",
2743
+ "matrixPermHead": "PNbOqW_matrixPermHead",
2744
+ "permission": "PNbOqW_permission",
2745
+ "tabDivider": "PNbOqW_tabDivider",
2779
2746
  "treeToggle": "PNbOqW_treeToggle",
2780
- "onlyAdmin": "PNbOqW_onlyAdmin",
2781
- "comboboxTrigger": "PNbOqW_comboboxTrigger",
2747
+ "readOnly": "PNbOqW_readOnly",
2748
+ "panel": "PNbOqW_panel",
2749
+ "matrixToolActive": "PNbOqW_matrixToolActive",
2750
+ "headText": "PNbOqW_headText",
2751
+ "treeActions": "PNbOqW_treeActions",
2782
2752
  "comboboxOption": "PNbOqW_comboboxOption",
2783
- "comboboxOptionActive": "PNbOqW_comboboxOptionActive",
2753
+ "treeName": "PNbOqW_treeName",
2754
+ "tabActive": "PNbOqW_tabActive",
2755
+ "matrixTool": "PNbOqW_matrixTool",
2756
+ "comboboxMenu": "PNbOqW_comboboxMenu",
2757
+ "matrixModule": "PNbOqW_matrixModule",
2784
2758
  "comboboxHint": "PNbOqW_comboboxHint",
2785
- "title": "PNbOqW_title",
2786
- "matrixPermHead": "PNbOqW_matrixPermHead",
2787
- "matrixNote": "PNbOqW_matrixNote",
2788
- "scopeBadge": "PNbOqW_scopeBadge",
2789
2759
  "candidate": "PNbOqW_candidate",
2790
- "muted": "PNbOqW_muted",
2791
- "headText": "PNbOqW_headText",
2792
- "tabActive": "PNbOqW_tabActive",
2793
- "error": "PNbOqW_error",
2794
- "departments": "PNbOqW_departments",
2795
- "field": "PNbOqW_field",
2760
+ "roleTag": "PNbOqW_roleTag",
2761
+ "treeRow": "PNbOqW_treeRow",
2762
+ "treeChildren": "PNbOqW_treeChildren",
2796
2763
  "panelFoot": "PNbOqW_panelFoot",
2764
+ "search": "PNbOqW_search",
2765
+ "protected": "PNbOqW_protected",
2766
+ "matrixNote": "PNbOqW_matrixNote",
2767
+ "comboboxCheck": "PNbOqW_comboboxCheck",
2768
+ "matrixRoleHead": "PNbOqW_matrixRoleHead",
2769
+ "tab": "PNbOqW_tab",
2770
+ "departments": "PNbOqW_departments",
2771
+ "subtitle": "PNbOqW_subtitle",
2772
+ "table": "PNbOqW_table",
2773
+ "treeSpacer": "PNbOqW_treeSpacer",
2774
+ "matrixGroup": "PNbOqW_matrixGroup",
2775
+ "candidates": "PNbOqW_candidates",
2776
+ "demo": "PNbOqW_demo",
2777
+ "dialogFooter": "PNbOqW_dialogFooter",
2797
2778
  "matrixHeadLeft": "PNbOqW_matrixHeadLeft",
2779
+ "roleSearchWrap": "PNbOqW_roleSearchWrap",
2780
+ "department": "PNbOqW_department",
2781
+ "error": "PNbOqW_error",
2798
2782
  "page": "PNbOqW_page",
2799
- "matrixModule": "PNbOqW_matrixModule",
2800
- "roleTag": "PNbOqW_roleTag",
2801
- "panel": "PNbOqW_panel",
2802
- "matrixPermission": "PNbOqW_matrixPermission",
2783
+ "scopeBadge": "PNbOqW_scopeBadge",
2784
+ "roleTags": "PNbOqW_roleTags",
2785
+ "field": "PNbOqW_field",
2786
+ "head": "PNbOqW_head",
2787
+ "notice": "PNbOqW_notice",
2788
+ "deptAdmins": "PNbOqW_deptAdmins",
2789
+ "onlyAdmin": "PNbOqW_onlyAdmin",
2790
+ "comboboxList": "PNbOqW_comboboxList",
2791
+ "roleSearchIcon": "PNbOqW_roleSearchIcon",
2803
2792
  "roleRevoke": "PNbOqW_roleRevoke",
2804
- "tabDivider": "PNbOqW_tabDivider",
2805
- "permission": "PNbOqW_permission",
2806
- "tab": "PNbOqW_tab",
2807
- "treeChildren": "PNbOqW_treeChildren",
2793
+ "matrixPermission": "PNbOqW_matrixPermission",
2794
+ "tabBadge": "PNbOqW_tabBadge",
2795
+ "detailGrid": "PNbOqW_detailGrid",
2796
+ "roleSearch": "PNbOqW_roleSearch",
2797
+ "copied": "PNbOqW_copied",
2798
+ "comboboxEmpty": "PNbOqW_comboboxEmpty",
2799
+ "roleGrant": "PNbOqW_roleGrant",
2800
+ "sectionTitle": "PNbOqW_sectionTitle",
2801
+ "tabs": "PNbOqW_tabs",
2802
+ "comboboxTrigger": "PNbOqW_comboboxTrigger",
2803
+ "treeRoot": "PNbOqW_treeRoot",
2804
+ "waiting": "PNbOqW_waiting",
2805
+ "empty": "PNbOqW_empty",
2806
+ "matrix": "PNbOqW_matrix",
2807
+ "permCopy": "PNbOqW_permCopy",
2808
+ "pager": "PNbOqW_pager",
2809
+ "panelHead": "PNbOqW_panelHead",
2808
2810
  "combobox": "PNbOqW_combobox",
2809
- "dialogFooter": "PNbOqW_dialogFooter",
2810
- "roleSearchWrap": "PNbOqW_roleSearchWrap",
2811
- "matrixGroup": "PNbOqW_matrixGroup",
2812
2811
  "permDescription": "PNbOqW_permDescription",
2813
- "roleTags": "PNbOqW_roleTags",
2814
- "matrixHead": "PNbOqW_matrixHead",
2812
+ "comboboxOptionActive": "PNbOqW_comboboxOptionActive",
2813
+ "tabGroup": "PNbOqW_tabGroup",
2814
+ "matrixRoleCell": "PNbOqW_matrixRoleCell",
2815
+ "dialog": "PNbOqW_dialog",
2816
+ "muted": "PNbOqW_muted",
2817
+ "comboboxSearch": "PNbOqW_comboboxSearch",
2818
+ "rowActions": "PNbOqW_rowActions",
2815
2819
  "matrixScroll": "PNbOqW_matrixScroll",
2816
- "pager": "PNbOqW_pager",
2817
- "treeName": "PNbOqW_treeName",
2818
- "roleGrant": "PNbOqW_roleGrant",
2819
- "subtitle": "PNbOqW_subtitle",
2820
- "comboboxMenu": "PNbOqW_comboboxMenu"
2820
+ "dialogHint": "PNbOqW_dialogHint"
2821
2821
  };
2822
2822
  //#endregion
2823
2823
  //#region src/client/combobox.ts
@@ -4468,18 +4468,18 @@ window.__ModuleLoader__.load({
4468
4468
  document.head.appendChild(tag);
4469
4469
  }
4470
4470
  var WorkspaceUpgradePrompt_module_css_default = {
4471
- "actions": "razUfG_actions",
4472
- "copy": "razUfG_copy",
4473
4471
  "error": "razUfG_error",
4474
- "sessionPath": "razUfG_sessionPath",
4475
- "sessionRow": "razUfG_sessionRow",
4476
- "banner": "razUfG_banner",
4477
- "dialogBody": "razUfG_dialogBody",
4478
4472
  "dialogText": "razUfG_dialogText",
4473
+ "sessionRow": "razUfG_sessionRow",
4479
4474
  "title": "razUfG_title",
4480
- "sessionList": "razUfG_sessionList",
4475
+ "dialogBody": "razUfG_dialogBody",
4476
+ "body": "razUfG_body",
4477
+ "banner": "razUfG_banner",
4478
+ "actions": "razUfG_actions",
4481
4479
  "sessionTitle": "razUfG_sessionTitle",
4482
- "body": "razUfG_body"
4480
+ "sessionList": "razUfG_sessionList",
4481
+ "sessionPath": "razUfG_sessionPath",
4482
+ "copy": "razUfG_copy"
4483
4483
  };
4484
4484
  //#endregion
4485
4485
  //#region src/client/WorkspaceUpgradePrompt.tsx
@@ -4792,24 +4792,24 @@ window.__ModuleLoader__.load({
4792
4792
  document.head.appendChild(tag);
4793
4793
  }
4794
4794
  var NotificationBell_module_css_default = {
4795
- "badge": "tE0trG_badge",
4796
- "rowText": "tE0trG_rowText",
4797
- "row": "tE0trG_row",
4798
- "rowBody": "tE0trG_rowBody",
4799
- "dialog": "tE0trG_dialog",
4795
+ "pager": "tE0trG_pager",
4796
+ "linkButton": "tE0trG_linkButton",
4800
4797
  "bell": "tE0trG_bell",
4798
+ "demo": "tE0trG_demo",
4799
+ "row": "tE0trG_row",
4801
4800
  "rowTitle": "tE0trG_rowTitle",
4802
- "rowTime": "tE0trG_rowTime",
4803
- "button": "tE0trG_button",
4804
- "list": "tE0trG_list",
4805
- "rowMeta": "tE0trG_rowMeta",
4806
4801
  "rowIcon": "tE0trG_rowIcon",
4807
- "linkButton": "tE0trG_linkButton",
4808
- "dot": "tE0trG_dot",
4802
+ "rowBody": "tE0trG_rowBody",
4809
4803
  "actions": "tE0trG_actions",
4804
+ "dot": "tE0trG_dot",
4805
+ "list": "tE0trG_list",
4806
+ "badge": "tE0trG_badge",
4810
4807
  "empty": "tE0trG_empty",
4811
- "pager": "tE0trG_pager",
4812
- "demo": "tE0trG_demo"
4808
+ "rowText": "tE0trG_rowText",
4809
+ "button": "tE0trG_button",
4810
+ "rowMeta": "tE0trG_rowMeta",
4811
+ "dialog": "tE0trG_dialog",
4812
+ "rowTime": "tE0trG_rowTime"
4813
4813
  };
4814
4814
  //#endregion
4815
4815
  //#region src/client/NotificationBell.tsx
package/lib/index.js CHANGED
@@ -872,6 +872,10 @@ const AI_TOOL_ACCESS = {
872
872
  review_notifications_list: {},
873
873
  review_notifications_read: {},
874
874
  dataops_api_docs: { superAdminOnly: true },
875
+ workflow_query: { superAdminOnly: true },
876
+ workflow_definition: { superAdminOnly: true },
877
+ workflow_deployment: { superAdminOnly: true },
878
+ workflow_run_control: { superAdminOnly: true },
875
879
  dataops_collect_preview: { permission: "data:resource:manage" },
876
880
  dataops_collect_plan: { permission: "data:resource:manage" },
877
881
  dataops_collect_execute: { permission: "data:resource:manage" },
@@ -909,6 +913,23 @@ const AI_TOOL_ACCESS = {
909
913
  /** Every managed tool name, in the order the manager considers them. */
910
914
  const AI_TOOL_NAMES = Object.keys(AI_TOOL_ACCESS);
911
915
  /**
916
+ * The declared managed tool behind a namespaced MCP tool name.
917
+ *
918
+ * The MCP bridge publishes a server's raw tool as `mcp__<serverName>__<rawName>`. A raw name that
919
+ * appears in {@link AI_TOOL_ACCESS} must reach the same disclosure rule as the plugin's own
920
+ * `dataops_*` tools; an MCP tool this table does not name is not the table's to judge and stays
921
+ * outside the filter.
922
+ * @param publicName - the ToolRuntime name the MCP bridge registered.
923
+ * @param serverName - the MCP server namespace from this plugin's config.
924
+ * @returns the declared tool name, or undefined when the table says nothing about the tool.
925
+ */
926
+ function declaredMcpToolName(publicName, serverName) {
927
+ const prefix = `mcp__${serverName}__`;
928
+ if (!publicName.startsWith(prefix)) return void 0;
929
+ const rawName = publicName.slice(prefix.length);
930
+ return Object.hasOwn(AI_TOOL_ACCESS, rawName) ? rawName : void 0;
931
+ }
932
+ /**
912
933
  * Backend permission aliases.
913
934
  *
914
935
  * The DataOps role matrix stores the capability family as `skill:capability:*`; this task's
@@ -4058,6 +4079,38 @@ const connectorSkillProvider = {
4058
4079
  };
4059
4080
  }
4060
4081
  };
4082
+ const PREFECT_SCRIPT_SKILL_NAME = "prefect-script-authoring";
4083
+ const PREFECT_SCRIPT_SKILL_FILE = new URL("../skills/prefect-script-authoring/SKILL.md", import.meta.url);
4084
+ /** 该技能只对超级管理员展示:它驱动的四个 workflow MCP 工具同样只对超管注册。 */
4085
+ const PREFECT_SCRIPT_SKILL = {
4086
+ name: PREFECT_SCRIPT_SKILL_NAME,
4087
+ metadata: { permissions: ["automation:workflow:create"] },
4088
+ description: "用纯 Prefect Python(@flow/@task)编写 DataOps 工作流定义、发布部署并运行;通过 workflow_query / workflow_definition / workflow_deployment / workflow_run_control 操作时使用。",
4089
+ invocation: {
4090
+ modelInvocable: true,
4091
+ userInvocable: true
4092
+ },
4093
+ provider: PREFECT_SCRIPT_SKILL_NAME,
4094
+ source: "bundled",
4095
+ resourceBase: {
4096
+ kind: "directory",
4097
+ path: fileURLToPath(new URL("../", import.meta.url))
4098
+ },
4099
+ rank: BUNDLED_SKILL_RANK,
4100
+ locator: PREFECT_SCRIPT_SKILL_FILE
4101
+ };
4102
+ let prefectScriptSkillAllowed = () => false;
4103
+ const prefectScriptSkillProvider = {
4104
+ name: PREFECT_SCRIPT_SKILL_NAME,
4105
+ list: () => Promise.resolve(prefectScriptSkillAllowed() ? [PREFECT_SCRIPT_SKILL] : []),
4106
+ async get() {
4107
+ if (!prefectScriptSkillAllowed()) throw new Error("prefect script skill is not available for this account");
4108
+ return {
4109
+ ...PREFECT_SCRIPT_SKILL,
4110
+ content: await readFile(PREFECT_SCRIPT_SKILL_FILE, "utf8")
4111
+ };
4112
+ }
4113
+ };
4061
4114
  /** Serve the collection skill to the catalog. */
4062
4115
  const collectSkillProvider = {
4063
4116
  name: COLLECT_SKILL_NAME,
@@ -4082,6 +4135,7 @@ async function apply(ctx, config) {
4082
4135
  ctx.skills.registerProvider(() => querySkillProvider);
4083
4136
  ctx.skills.registerProvider(() => collectSkillProvider);
4084
4137
  ctx.skills.registerProvider(() => connectorSkillProvider);
4138
+ ctx.skills.registerProvider(() => prefectScriptSkillProvider);
4085
4139
  const ensureMcp = async () => {
4086
4140
  if (mcpFiber !== void 0 && mcpFiber.uid !== null) return;
4087
4141
  const fiber = ctx.plugin(McpClient, {
@@ -4310,6 +4364,10 @@ async function apply(ctx, config) {
4310
4364
  if (scope === void 0) return false;
4311
4365
  return (scope.permissions ?? scope.permissionKeys ?? []).includes(CONNECTOR_SKILL_PERMISSION);
4312
4366
  };
4367
+ prefectScriptSkillAllowed = () => {
4368
+ const scope = aiTools.currentScope();
4369
+ return scope !== void 0 && isSuperAdmin(scope);
4370
+ };
4313
4371
  ctx.effect(() => () => aiTools.dispose(), "dataops-managed: skill and review tool disclosure");
4314
4372
  /**
4315
4373
  * Per-session disclosure.
@@ -4323,9 +4381,21 @@ async function apply(ctx, config) {
4323
4381
  const tools = ctx.tools;
4324
4382
  const skills = ctx.skills;
4325
4383
  const disposers = [];
4384
+ /**
4385
+ * Resolve one model-facing name to the managed name this table declares.
4386
+ *
4387
+ * `dataops_*` tools are registered here and are already the declared name. The backend's MCP
4388
+ * workflow tools arrive as `mcp__<serverName>__<rawName>`; mapping them back lets the same
4389
+ * declaration hide them from a Session acting for a non-super-administrator, which is what the
4390
+ * bridge cannot do before it executes the call.
4391
+ */
4392
+ const managedName = (name) => name.startsWith("dataops_") ? Object.hasOwn(AI_TOOL_ACCESS, name) ? name : void 0 : declaredMcpToolName(name, config.serverName);
4326
4393
  if (typeof tools.addVisibilityFilter === "function") disposers.push(tools.addVisibilityFilter({
4327
- appliesTo: (tool) => tool.name.startsWith("dataops_"),
4328
- hidden: (session, tool) => sessionHidesTool(tool.name, session?.actor, aiTools.currentScope())
4394
+ appliesTo: (tool) => managedName(tool.name) !== void 0,
4395
+ hidden: (session, tool) => {
4396
+ const name = managedName(tool.name);
4397
+ return name === void 0 || sessionHidesTool(name, session?.actor, aiTools.currentScope());
4398
+ }
4329
4399
  }));
4330
4400
  if (typeof skills.addVisibilityFilter === "function") disposers.push(skills.addVisibilityFilter({
4331
4401
  appliesTo: (candidate) => skillPermissions(candidate.metadata).length > 0,
@@ -127,6 +127,18 @@ export declare const AI_TOOL_ACCESS: {
127
127
  readonly dataops_api_docs: {
128
128
  readonly superAdminOnly: true;
129
129
  };
130
+ readonly workflow_query: {
131
+ readonly superAdminOnly: true;
132
+ };
133
+ readonly workflow_definition: {
134
+ readonly superAdminOnly: true;
135
+ };
136
+ readonly workflow_deployment: {
137
+ readonly superAdminOnly: true;
138
+ };
139
+ readonly workflow_run_control: {
140
+ readonly superAdminOnly: true;
141
+ };
130
142
  readonly dataops_collect_preview: {
131
143
  readonly permission: "data:resource:manage";
132
144
  };
@@ -179,6 +191,18 @@ export declare const AI_TOOL_ACCESS: {
179
191
  export declare const AI_TOOL_NAMES: AiToolName[];
180
192
  /** One managed tool name. */
181
193
  export type AiToolName = keyof typeof AI_TOOL_ACCESS;
194
+ /**
195
+ * The declared managed tool behind a namespaced MCP tool name.
196
+ *
197
+ * The MCP bridge publishes a server's raw tool as `mcp__<serverName>__<rawName>`. A raw name that
198
+ * appears in {@link AI_TOOL_ACCESS} must reach the same disclosure rule as the plugin's own
199
+ * `dataops_*` tools; an MCP tool this table does not name is not the table's to judge and stays
200
+ * outside the filter.
201
+ * @param publicName - the ToolRuntime name the MCP bridge registered.
202
+ * @param serverName - the MCP server namespace from this plugin's config.
203
+ * @returns the declared tool name, or undefined when the table says nothing about the tool.
204
+ */
205
+ export declare function declaredMcpToolName(publicName: string, serverName: string): AiToolName | undefined;
182
206
  /** Whether the context carries the stable super-administrator role. */
183
207
  export declare const isSuperAdmin: (scope: DataOpsScope) => boolean;
184
208
  /** Whether the context carries an administrator or super-administrator role. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkelf/dsh-dataops-managed",
3
- "version": "0.3.47",
3
+ "version": "0.3.48",
4
4
  "description": "DataOps JWT intake and credential-backed MCP tools for managed DeepSeek Harness workspaces.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -44,8 +44,15 @@
44
44
  "skills/dataops-collect/SKILL.md",
45
45
  "skills/admin-workspace-rescue/SKILL.md",
46
46
  "README.md",
47
- "LICENSE"
47
+ "LICENSE",
48
+ "skills/**/SKILL.md"
48
49
  ],
50
+ "scripts": {
51
+ "build": "rm -rf lib && tsc -p tsconfig.build.json && tsdown",
52
+ "bundle": "tsdown",
53
+ "prepack": "pnpm run build",
54
+ "prepublishOnly": "node ../../scripts/prepublish-guard.mjs"
55
+ },
49
56
  "engines": {
50
57
  "node": "^22.19.0 || >=24.0.0"
51
58
  },
@@ -97,9 +104,5 @@
97
104
  "lightningcss": "^1.32.0",
98
105
  "react": "^18.2.0",
99
106
  "tsdown": "^0.22.2"
100
- },
101
- "scripts": {
102
- "build": "rm -rf lib && tsc -p tsconfig.build.json && tsdown",
103
- "bundle": "tsdown"
104
107
  }
105
- }
108
+ }
@@ -0,0 +1,117 @@
1
+ ---
2
+ name: api-connector-authoring
3
+ description: 从接口文档(OpenAPI/Swagger/接口说明)创建 API Connector 并导入为接口资源时使用
4
+ metadata:
5
+ permissions:
6
+ - data:connector:authoring
7
+ ---
8
+
9
+ # API Connector 作者
10
+
11
+ 用户给一份**接口文档**(上传文件或直接粘贴文本),要把它变成 DataOps 里的**接口连接器 + 接口资源**时用本技能。**只有超级管理员能看到这个技能**,因为它一次能创建一批资源。
12
+
13
+ 不适用:只是要调一个接口(用 `dataops-query` 或 `api_prepare_request`);手工调请求参数。
14
+
15
+ ## 一、先判断文档能不能干活
16
+
17
+ 1. 拿到文档 → 判断格式:OpenAPI 3 / Swagger 2 / 还是「人写的接口说明」。
18
+ 2. **人写的说明**也要能用:只要每个接口有「方法 + 路径 + 参数 + 返回字段」就能建连接器。
19
+ 3. 缺关键信息(比如只有接口名没有路径)→ 停下来问用户,**不要猜路径**。
20
+
21
+ ## 二、定粒度(这一步由你判断,但要说明理由)
22
+
23
+ - 一份文档通常 = **一个 connector**;`connectorKey` 用业务语义命名(如 `toll_operation`),不要用 `api_v1`。
24
+ - operation 的取舍:
25
+ - **只导入用户真正要用的那组接口**,不要把文档里 200 个接口全导进来;
26
+ - 同一组增删改查如果用户只要查询,就只导查询;
27
+ - 粒度判断完,在预览里写清「导入了哪 N 个接口、为什么跳过其余」。
28
+
29
+ ## 三、做语义治理(资源命名与目录)
30
+
31
+ - `displayName` 用业务名(「通行费日报」),不用接口名(`getTollDaily`)。
32
+ - 资源目录(catalog)按业务域归类(如「交通运营」「经营分析」),**和现有目录保持一致**,不要新建一个只放一条的目录。
33
+ - 字段命名:接口返回的英文缩写字段(`toll_amt`)要在 `responseFields` 里给出中文语义名,便于后续取数。
34
+
35
+ ## 四、写 session.json(唯一需要你手写的文件)
36
+
37
+ ```json
38
+ {
39
+ "connectorKey": "toll_operation",
40
+ "displayName": "通行运营接口",
41
+ "sourceSystem": "toll-operation",
42
+ "sourceDept": "交通运营部",
43
+ "accessLevel": "PROTECTED",
44
+ "tags": ["api", "toll"],
45
+ "auth": { "mode": "bearer" },
46
+ "connection": {
47
+ "code": "toll_operation_conn",
48
+ "name": "通行运营连接",
49
+ "baseUrl": "https://example.internal/api",
50
+ "config": { "authMode": "bearer" },
51
+ "secretConfig": { "token": "" },
52
+ "enabled": true,
53
+ "allowedHostPatterns": ["example.internal"]
54
+ },
55
+ "operations": [
56
+ {
57
+ "operationKey": "toll_daily",
58
+ "summary": "通行费日报",
59
+ "method": "GET",
60
+ "pathTemplate": "/toll/daily",
61
+ "parameters": [{ "name": "date", "in": "query", "required": true, "type": "string" }],
62
+ "requestBodyFields": [],
63
+ "resultPath": "data.items",
64
+ "responseFields": [{ "name": "tollAmt", "type": "number" }]
65
+ }
66
+ ]
67
+ }
68
+ ```
69
+
70
+ **认证**:`auth.mode` 取 `bearer` / `apiKey` / `basic` / `none`;真实密钥**不要写进 session.json**(`secretConfig` 留空),导入后由管理员在凭据页填写。
71
+
72
+ ## 五、用表格 + 文字汇报预览(必须)
73
+
74
+ 导入前必须给用户一份**可读的预览**,包含:
75
+
76
+ - 连接器名、业务域、目录、可见范围;
77
+ - 要导入的 operation 清单(方法 + 路径 + 中文名);
78
+ - 认证方式,以及「密钥需要你稍后在凭据页填」;
79
+ - 被跳过的接口及原因;
80
+ - 一句话风险提示:**导入会创建资源并对授权范围内的人可见**。
81
+
82
+ 用表格 + 文字汇报预览,不要生成按钮/表单;确认靠用户回一句话。
83
+
84
+ ## 六、等用户确认
85
+
86
+ - **必须由用户用自然语言明确确认**(「确认」「可以导入」「就这样」)才能继续;
87
+ - 用户改需求 → 回到第二节重新定粒度,并**重新出预览**;
88
+ - **不允许**跳过预览直接导入,也不允许把「我觉得可以」当成确认。
89
+
90
+ ## 七、生成包并导入
91
+
92
+ 确认后按顺序执行:
93
+
94
+ ```bash
95
+ # 1) 写 session.json 到工作区目录
96
+ # 2) 生成预览产物(会校验 schema)
97
+ python3 /root/projects/dataops/python/api_connector_materializer.py preview --session <dir>
98
+
99
+ # 3) 打成可导入的包
100
+ python3 /root/projects/dataops/python/api_connector_materializer.py package --session <dir> --output <dir>/connector.zip
101
+
102
+ # 4) 导入(需要 data:connector:manage 权限的 token)
103
+ curl -sS -X POST "$DATAOPS_API_BASE/api/resources/connectors/import-package" \
104
+ -H "authorization: Bearer $DATAOPS_ACCESS_TOKEN" \
105
+ -F "file=@<dir>/connector.zip"
106
+ ```
107
+
108
+ - 导入返回 `connectorKey` 与资源数后,用表格 + 文字汇报**结果**(连接器、资源数、需要补密钥的提示),不要生成按钮/表单;
109
+ - 失败时把**后端原始错误**给用户(常见:`session.json 与 preview.manifest.json 的 connectorKey 不一致`、`preview.resources.json 至少需要包含 1 条资源`),不要自己改写错误信息。
110
+
111
+ ## 八、禁止
112
+
113
+ - 不猜接口路径、不猜返回字段;
114
+ - 不在 session.json 里写真实密钥;
115
+ - 不跳过预览、不跳过用户确认;
116
+ - 不把整份文档的所有接口一次性导入;
117
+ - 不新建重复目录(先看现有目录)。
@@ -0,0 +1,97 @@
1
+ ---
2
+ name: prefect-script-authoring
3
+ description: 用纯 Prefect Python(@flow/@task)编写 DataOps 工作流定义、发布部署并运行;通过 workflow_query / workflow_definition / workflow_deployment / workflow_run_control 四个超管工具操作时使用
4
+ metadata:
5
+ permissions:
6
+ - automation:workflow:create
7
+ ---
8
+
9
+ # Prefect 脚本作者
10
+
11
+ 用户要「写一个每天跑的 Prefect 工作流」「把这段 Python 变成平台工作流」「部署并跑一次」时用本技能。
12
+ 工作流定义的事实源是**一段纯 Prefect Python 脚本**;平台会解析出图(只读投影),执行时跑脚本本身。
13
+
14
+ 只有超级管理员能看到这四个工具(`workflow_query` / `workflow_definition` / `workflow_deployment` /
15
+ `workflow_run_control`)。不要试图绕过它们直接调 Prefect API。
16
+
17
+ ## 一、写脚本的硬约束
18
+
19
+ 1. **一个 `@flow` 入口**,其余业务步骤用 `@task` 拆分;入口名会被解析成 `flowName`。
20
+ 2. 只 import 可用的库:`prefect`、`pandas/polars`、`requests/httpx`、`sqlalchemy`、`pymysql`、
21
+ `psycopg`、`sqlglot`、`pyarrow` 等镜像内已装依赖;不要 pip install。
22
+ 3. 数据连接从环境变量或平台凭据读取,**不要把密码/Token 写进源码**。
23
+ 4. 有副作用的写操作要幂等(按主键 upsert / 先删后插限定分区)。
24
+ 5. 不要写 `while True`、无限重试或长时间 sleep;单次运行应可结束。
25
+ 6. `if __name__ == "__main__"` 可以留,但平台执行时不会触发(wrapper 以非 `__main__` 命名空间执行)。
26
+
27
+ 最小示例:
28
+
29
+ ```python
30
+ from prefect import flow, task
31
+
32
+ @task(retries=2, retry_delay_seconds=30)
33
+ def extract() -> list[dict]:
34
+ """从源表抽取当日订单。"""
35
+ ...
36
+
37
+ @task
38
+ def load(rows: list[dict]) -> int:
39
+ """写入汇总表,返回写入行数。"""
40
+ ...
41
+
42
+ @flow(name="order_daily")
43
+ def pipeline() -> int:
44
+ rows = extract()
45
+ return load(rows)
46
+ ```
47
+
48
+ ## 二、提交定义
49
+
50
+ 1. 先把脚本写成工作区文件(如 `/workspace/flows/order_daily.py`)。
51
+ 2. 调 `workflow_definition`:
52
+ - `create`:`code`、`englishName`、`chineseName`、`description`、`tags`、`source`(或先上传文件用 `sourceFileId`);
53
+ - 后端会解析成图并返回 `diagnostics`;`severity=error` 时保存被拒绝,按提示改脚本。
54
+ 3. 图只是投影:`approximate=true` 表示有动态控制流(if/for 里的 task),**不影响执行**,
55
+ 但要在回复里说明「图是近似结构」。
56
+
57
+ ## 三、配置部署
58
+
59
+ `workflow_deployment` 的 `create`:
60
+
61
+ | 字段 | 说明 |
62
+ |---|---|
63
+ | `workflowId` | 上一步返回的定义 id |
64
+ | `name` | 部署名(同一工作流可多个运行时配置) |
65
+ | `workPoolName` | 默认 `local-pool`,除非用户指定 |
66
+ | `schedule` | cron 数组,如 `[{ "cron": "0 2 * * *", "timezone": "Asia/Shanghai" }]`;手动触发传 `[]` |
67
+ | `parameters` | 脚本入口参数(dict) |
68
+ | `concurrencyLimit` | 可选并发上限 |
69
+ | `lineageStrategy` | SCRIPT 定义固定 `OFF`(服务端会强制),不要传 STATIC/RUNTIME |
70
+
71
+ 发布成功后返回 `deploymentId` 与 `bundleSha256`;**不要**把 bundle 路径或 sha 当入参再次提交。
72
+
73
+ ## 四、运行与排障
74
+
75
+ - 立即跑一次:`workflow_deployment` 的 `run_now`(必须显式传 action),等待到终态;
76
+ - 看结果:`workflow_query` 的 `list_runs` / `get_run_logs`;
77
+ - 取消/重试:`workflow_run_control`(`cancel` / `retry`);
78
+ - 常见错误:
79
+ - `400 field=source` + diagnostics:脚本语法/缺 `@flow`/多 `@flow` 且无法判定入口;
80
+ - `节点缺少脚本快照`:说明走了 GRAPH 路径(定义 origin 不是 SCRIPT),检查创建参数;
81
+ - `WORKFLOW_SCRIPT` 不被接受:worker 镜像太旧,需要重建 worker 镜像;
82
+ - `BPMN_SERVICE_UNAVAILABLE`:与工作流无关,是审批服务不可用。
83
+
84
+ ## 五、何时必须先问用户
85
+
86
+ - 要写生产表、删除数据、改调度时间;
87
+ - 要用 `lineageStrategy=STATIC/RUNTIME`(当前 SCRIPT 不支持,需改走图定义);
88
+ - 脚本需要镜像里没有的依赖;
89
+ - 用户没说清数据源、目标表或调度时区。
90
+
91
+ ## 六、回复模板
92
+
93
+ > 已创建工作流「订单日报」(脚本定义,解析出 3 个节点,图有 1 处近似)。
94
+ > 部署 `order_daily/每日2点` 已发布,bundle `abc123…`,下次运行 2026-11-10 02:00(Asia/Shanghai)。
95
+ > 已手动跑一次:flow run `...` 成功,2 个 task 完成,写入 128,450 行。
96
+
97
+ **不要**在回复里贴完整脚本或凭据;给定义 id、部署 id、运行 id 和结果摘要即可。