@sparkelf/dsh-dataops-managed 0.3.53 → 0.3.54
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/lib/client.js +152 -152
- package/lib/index.js +60 -0
- package/package.json +1 -1
- package/skills/browser/SKILL.md +70 -0
- package/skills/browser-headless/SKILL.md +112 -0
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
|
-
"title": "_2dqzjG_title",
|
|
839
|
-
"row": "_2dqzjG_row",
|
|
840
838
|
"reviewRow": "_2dqzjG_reviewRow",
|
|
841
|
-
"
|
|
842
|
-
"heading": "_2dqzjG_heading",
|
|
843
|
-
"status": "_2dqzjG_status",
|
|
844
|
-
"fields": "_2dqzjG_fields",
|
|
839
|
+
"copy": "_2dqzjG_copy",
|
|
845
840
|
"card": "_2dqzjG_card",
|
|
846
841
|
"reviewHint": "_2dqzjG_reviewHint",
|
|
842
|
+
"section": "_2dqzjG_section",
|
|
847
843
|
"reviewActions": "_2dqzjG_reviewActions",
|
|
848
|
-
"
|
|
844
|
+
"heading": "_2dqzjG_heading",
|
|
849
845
|
"label": "_2dqzjG_label",
|
|
846
|
+
"row": "_2dqzjG_row",
|
|
847
|
+
"meta": "_2dqzjG_meta",
|
|
850
848
|
"actions": "_2dqzjG_actions",
|
|
851
|
-
"
|
|
852
|
-
"
|
|
853
|
-
"
|
|
849
|
+
"fields": "_2dqzjG_fields",
|
|
850
|
+
"status": "_2dqzjG_status",
|
|
851
|
+
"title": "_2dqzjG_title",
|
|
852
|
+
"refusal": "_2dqzjG_refusal",
|
|
853
|
+
"reviewRows": "_2dqzjG_reviewRows"
|
|
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
|
-
"
|
|
1604
|
-
"
|
|
1605
|
-
"
|
|
1606
|
-
"
|
|
1603
|
+
"pendingTag": "_9FdZvq_pendingTag",
|
|
1604
|
+
"cardMarks": "_9FdZvq_cardMarks",
|
|
1605
|
+
"detailValue": "_9FdZvq_detailValue",
|
|
1606
|
+
"audit": "_9FdZvq_audit",
|
|
1607
|
+
"status": "_9FdZvq_status",
|
|
1608
|
+
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1609
|
+
"mine": "_9FdZvq_mine",
|
|
1610
|
+
"dialog": "_9FdZvq_dialog",
|
|
1611
|
+
"auditFooter": "_9FdZvq_auditFooter",
|
|
1612
|
+
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
1613
|
+
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1614
|
+
"section": "_9FdZvq_section",
|
|
1607
1615
|
"card": "_9FdZvq_card",
|
|
1608
|
-
"
|
|
1609
|
-
"
|
|
1610
|
-
"
|
|
1616
|
+
"detail": "_9FdZvq_detail",
|
|
1617
|
+
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
1618
|
+
"tabCount": "_9FdZvq_tabCount",
|
|
1611
1619
|
"reviewNote": "_9FdZvq_reviewNote",
|
|
1620
|
+
"auditDialog": "_9FdZvq_auditDialog",
|
|
1621
|
+
"riskFailed": "_9FdZvq_riskFailed",
|
|
1622
|
+
"riskScore": "_9FdZvq_riskScore",
|
|
1623
|
+
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
1624
|
+
"severity": "_9FdZvq_severity",
|
|
1612
1625
|
"findings": "_9FdZvq_findings",
|
|
1626
|
+
"departmentBar": "_9FdZvq_departmentBar",
|
|
1613
1627
|
"finding": "_9FdZvq_finding",
|
|
1614
1628
|
"demoTag": "_9FdZvq_demoTag",
|
|
1615
|
-
"
|
|
1616
|
-
"
|
|
1617
|
-
"detailValue": "_9FdZvq_detailValue",
|
|
1618
|
-
"detailButton": "_9FdZvq_detailButton",
|
|
1619
|
-
"titleCount": "_9FdZvq_titleCount",
|
|
1620
|
-
"cards": "_9FdZvq_cards",
|
|
1621
|
-
"findingText": "_9FdZvq_findingText",
|
|
1622
|
-
"cardEnd": "_9FdZvq_cardEnd",
|
|
1623
|
-
"cardMarks": "_9FdZvq_cardMarks",
|
|
1624
|
-
"riskSummary": "_9FdZvq_riskSummary",
|
|
1625
|
-
"departmentBar": "_9FdZvq_departmentBar",
|
|
1626
|
-
"audit": "_9FdZvq_audit",
|
|
1629
|
+
"title": "_9FdZvq_title",
|
|
1630
|
+
"headRow": "_9FdZvq_headRow",
|
|
1627
1631
|
"riskHead": "_9FdZvq_riskHead",
|
|
1628
|
-
"
|
|
1629
|
-
"
|
|
1630
|
-
"
|
|
1631
|
-
"
|
|
1632
|
-
"tagTop": "_9FdZvq_tagTop",
|
|
1633
|
-
"auditFooter": "_9FdZvq_auditFooter",
|
|
1634
|
-
"severity": "_9FdZvq_severity",
|
|
1635
|
-
"noteField": "_9FdZvq_noteField",
|
|
1636
|
-
"tabActive": "_9FdZvq_tabActive",
|
|
1637
|
-
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
1632
|
+
"empty": "_9FdZvq_empty",
|
|
1633
|
+
"findingText": "_9FdZvq_findingText",
|
|
1634
|
+
"tabs": "_9FdZvq_tabs",
|
|
1635
|
+
"tab": "_9FdZvq_tab",
|
|
1638
1636
|
"findingHint": "_9FdZvq_findingHint",
|
|
1639
1637
|
"notice": "_9FdZvq_notice",
|
|
1640
|
-
"section": "_9FdZvq_section",
|
|
1641
1638
|
"emptyText": "_9FdZvq_emptyText",
|
|
1642
|
-
"headRow": "_9FdZvq_headRow",
|
|
1643
|
-
"sharedTag": "_9FdZvq_sharedTag",
|
|
1644
|
-
"riskScore": "_9FdZvq_riskScore",
|
|
1645
|
-
"status": "_9FdZvq_status",
|
|
1646
|
-
"detailRow": "_9FdZvq_detailRow",
|
|
1647
|
-
"tab": "_9FdZvq_tab",
|
|
1648
1639
|
"risk": "_9FdZvq_risk",
|
|
1649
|
-
"
|
|
1650
|
-
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1640
|
+
"noteField": "_9FdZvq_noteField",
|
|
1651
1641
|
"reviewButton": "_9FdZvq_reviewButton",
|
|
1652
|
-
"
|
|
1653
|
-
"
|
|
1654
|
-
"
|
|
1655
|
-
"
|
|
1642
|
+
"detailLabel": "_9FdZvq_detailLabel",
|
|
1643
|
+
"mark": "_9FdZvq_mark",
|
|
1644
|
+
"tagTop": "_9FdZvq_tagTop",
|
|
1645
|
+
"riskSummary": "_9FdZvq_riskSummary",
|
|
1656
1646
|
"reviewError": "_9FdZvq_reviewError",
|
|
1657
1647
|
"cardTitle": "_9FdZvq_cardTitle",
|
|
1658
|
-
"
|
|
1648
|
+
"detailRow": "_9FdZvq_detailRow",
|
|
1649
|
+
"sharedTag": "_9FdZvq_sharedTag",
|
|
1650
|
+
"tabActive": "_9FdZvq_tabActive",
|
|
1651
|
+
"cardEnd": "_9FdZvq_cardEnd",
|
|
1652
|
+
"cardIcon": "_9FdZvq_cardIcon",
|
|
1653
|
+
"titleCount": "_9FdZvq_titleCount",
|
|
1654
|
+
"cardDesc": "_9FdZvq_cardDesc",
|
|
1655
|
+
"head": "_9FdZvq_head",
|
|
1656
|
+
"detailButton": "_9FdZvq_detailButton",
|
|
1657
|
+
"cards": "_9FdZvq_cards",
|
|
1658
|
+
"cardTop": "_9FdZvq_cardTop"
|
|
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
|
-
"
|
|
2313
|
+
"unit-left": "s0HPxG_unit-left",
|
|
2314
|
+
"unitRight": "s0HPxG_unitRight",
|
|
2315
|
+
"unit-top": "s0HPxG_unit-top",
|
|
2316
|
+
"unit-right": "s0HPxG_unit-right",
|
|
2314
2317
|
"harness": "s0HPxG_harness",
|
|
2315
|
-
"unitCore": "s0HPxG_unitCore",
|
|
2316
2318
|
"mark": "s0HPxG_mark",
|
|
2317
|
-
"
|
|
2318
|
-
"unit-top": "s0HPxG_unit-top",
|
|
2319
|
-
"unit-left": "s0HPxG_unit-left",
|
|
2319
|
+
"unit-core": "s0HPxG_unit-core",
|
|
2320
2320
|
"unitTop": "s0HPxG_unitTop",
|
|
2321
2321
|
"unitLeft": "s0HPxG_unitLeft",
|
|
2322
|
-
"
|
|
2323
|
-
"unit-core": "s0HPxG_unit-core",
|
|
2322
|
+
"unitCore": "s0HPxG_unitCore",
|
|
2324
2323
|
"animatedMark": "s0HPxG_animatedMark",
|
|
2325
|
-
"
|
|
2324
|
+
"wordmark": "s0HPxG_wordmark",
|
|
2325
|
+
"sidebarName": "s0HPxG_sidebarName"
|
|
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
|
-
"
|
|
2736
|
-
"
|
|
2735
|
+
"error": "PNbOqW_error",
|
|
2736
|
+
"matrixModule": "PNbOqW_matrixModule",
|
|
2737
|
+
"dialogBody": "PNbOqW_dialogBody",
|
|
2738
|
+
"adminTag": "PNbOqW_adminTag",
|
|
2739
|
+
"department": "PNbOqW_department",
|
|
2740
|
+
"headActions": "PNbOqW_headActions",
|
|
2741
|
+
"roleSearch": "PNbOqW_roleSearch",
|
|
2742
|
+
"panelFoot": "PNbOqW_panelFoot",
|
|
2743
|
+
"tabActive": "PNbOqW_tabActive",
|
|
2744
|
+
"dialogHint": "PNbOqW_dialogHint",
|
|
2745
|
+
"combobox": "PNbOqW_combobox",
|
|
2746
|
+
"roleCell": "PNbOqW_roleCell",
|
|
2747
|
+
"treeToggle": "PNbOqW_treeToggle",
|
|
2748
|
+
"head": "PNbOqW_head",
|
|
2737
2749
|
"deptAdmins": "PNbOqW_deptAdmins",
|
|
2738
|
-
"treeSpacer": "PNbOqW_treeSpacer",
|
|
2739
|
-
"tabs": "PNbOqW_tabs",
|
|
2740
2750
|
"pager": "PNbOqW_pager",
|
|
2741
|
-
"
|
|
2742
|
-
"candidates": "PNbOqW_candidates",
|
|
2743
|
-
"title": "PNbOqW_title",
|
|
2744
|
-
"comboboxList": "PNbOqW_comboboxList",
|
|
2745
|
-
"permission": "PNbOqW_permission",
|
|
2746
|
-
"matrixRoleCell": "PNbOqW_matrixRoleCell",
|
|
2747
|
-
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
2748
|
-
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
2749
|
-
"roleRevoke": "PNbOqW_roleRevoke",
|
|
2750
|
-
"comboboxHint": "PNbOqW_comboboxHint",
|
|
2751
|
-
"muted": "PNbOqW_muted",
|
|
2752
|
-
"matrixModule": "PNbOqW_matrixModule",
|
|
2751
|
+
"matrixTool": "PNbOqW_matrixTool",
|
|
2753
2752
|
"matrixGroup": "PNbOqW_matrixGroup",
|
|
2754
|
-
"
|
|
2755
|
-
"permDescription": "PNbOqW_permDescription",
|
|
2756
|
-
"permCopy": "PNbOqW_permCopy",
|
|
2757
|
-
"waiting": "PNbOqW_waiting",
|
|
2758
|
-
"matrixPermission": "PNbOqW_matrixPermission",
|
|
2759
|
-
"headActions": "PNbOqW_headActions",
|
|
2760
|
-
"demo": "PNbOqW_demo",
|
|
2761
|
-
"dialog": "PNbOqW_dialog",
|
|
2762
|
-
"copied": "PNbOqW_copied",
|
|
2763
|
-
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
2764
|
-
"sectionTitle": "PNbOqW_sectionTitle",
|
|
2765
|
-
"matrixHead": "PNbOqW_matrixHead",
|
|
2766
|
-
"treeRow": "PNbOqW_treeRow",
|
|
2753
|
+
"scopeBadge": "PNbOqW_scopeBadge",
|
|
2767
2754
|
"roleGrant": "PNbOqW_roleGrant",
|
|
2768
|
-
"matrixRoleHead": "PNbOqW_matrixRoleHead",
|
|
2769
|
-
"roleSearchIcon": "PNbOqW_roleSearchIcon",
|
|
2770
2755
|
"tableScroll": "PNbOqW_tableScroll",
|
|
2771
|
-
"
|
|
2772
|
-
"
|
|
2773
|
-
"
|
|
2774
|
-
"
|
|
2756
|
+
"candidate": "PNbOqW_candidate",
|
|
2757
|
+
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
2758
|
+
"roleSearchIcon": "PNbOqW_roleSearchIcon",
|
|
2759
|
+
"matrixRoleHead": "PNbOqW_matrixRoleHead",
|
|
2760
|
+
"field": "PNbOqW_field",
|
|
2761
|
+
"empty": "PNbOqW_empty",
|
|
2762
|
+
"matrixScroll": "PNbOqW_matrixScroll",
|
|
2775
2763
|
"table": "PNbOqW_table",
|
|
2776
|
-
"treeName": "PNbOqW_treeName",
|
|
2777
|
-
"tabActive": "PNbOqW_tabActive",
|
|
2778
|
-
"department": "PNbOqW_department",
|
|
2779
|
-
"dialogFooter": "PNbOqW_dialogFooter",
|
|
2780
|
-
"search": "PNbOqW_search",
|
|
2781
2764
|
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
2782
|
-
"
|
|
2783
|
-
"
|
|
2784
|
-
"panelHead": "PNbOqW_panelHead",
|
|
2785
|
-
"treeRoot": "PNbOqW_treeRoot",
|
|
2786
|
-
"comboboxOption": "PNbOqW_comboboxOption",
|
|
2787
|
-
"treeActions": "PNbOqW_treeActions",
|
|
2788
|
-
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
2789
|
-
"rowActions": "PNbOqW_rowActions",
|
|
2765
|
+
"comboboxHint": "PNbOqW_comboboxHint",
|
|
2766
|
+
"matrixHead": "PNbOqW_matrixHead",
|
|
2790
2767
|
"readOnly": "PNbOqW_readOnly",
|
|
2791
|
-
"
|
|
2792
|
-
"
|
|
2793
|
-
"
|
|
2794
|
-
"
|
|
2768
|
+
"demo": "PNbOqW_demo",
|
|
2769
|
+
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
2770
|
+
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
2771
|
+
"dialog": "PNbOqW_dialog",
|
|
2795
2772
|
"matrixToolActive": "PNbOqW_matrixToolActive",
|
|
2796
|
-
"
|
|
2797
|
-
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
2798
|
-
"roleTags": "PNbOqW_roleTags",
|
|
2773
|
+
"treeActions": "PNbOqW_treeActions",
|
|
2799
2774
|
"tab": "PNbOqW_tab",
|
|
2800
|
-
"
|
|
2775
|
+
"roleTag": "PNbOqW_roleTag",
|
|
2801
2776
|
"tabDivider": "PNbOqW_tabDivider",
|
|
2802
|
-
"tabBadge": "PNbOqW_tabBadge",
|
|
2803
|
-
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
2804
2777
|
"matrix": "PNbOqW_matrix",
|
|
2805
|
-
"
|
|
2778
|
+
"comboboxList": "PNbOqW_comboboxList",
|
|
2779
|
+
"roleTags": "PNbOqW_roleTags",
|
|
2780
|
+
"treeRoot": "PNbOqW_treeRoot",
|
|
2781
|
+
"panelHead": "PNbOqW_panelHead",
|
|
2782
|
+
"treeSpacer": "PNbOqW_treeSpacer",
|
|
2806
2783
|
"departments": "PNbOqW_departments",
|
|
2807
|
-
"
|
|
2808
|
-
"
|
|
2809
|
-
"
|
|
2810
|
-
"
|
|
2811
|
-
"
|
|
2812
|
-
"
|
|
2813
|
-
"
|
|
2814
|
-
"
|
|
2815
|
-
"
|
|
2816
|
-
"dialogHint": "PNbOqW_dialogHint",
|
|
2817
|
-
"adminTag": "PNbOqW_adminTag",
|
|
2784
|
+
"copied": "PNbOqW_copied",
|
|
2785
|
+
"comboboxOption": "PNbOqW_comboboxOption",
|
|
2786
|
+
"permCopy": "PNbOqW_permCopy",
|
|
2787
|
+
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
2788
|
+
"permDescription": "PNbOqW_permDescription",
|
|
2789
|
+
"protected": "PNbOqW_protected",
|
|
2790
|
+
"rowActions": "PNbOqW_rowActions",
|
|
2791
|
+
"title": "PNbOqW_title",
|
|
2792
|
+
"notice": "PNbOqW_notice",
|
|
2818
2793
|
"roleSearchWrap": "PNbOqW_roleSearchWrap",
|
|
2794
|
+
"matrixNote": "PNbOqW_matrixNote",
|
|
2795
|
+
"tabGroup": "PNbOqW_tabGroup",
|
|
2796
|
+
"headText": "PNbOqW_headText",
|
|
2797
|
+
"permission": "PNbOqW_permission",
|
|
2798
|
+
"search": "PNbOqW_search",
|
|
2799
|
+
"subtitle": "PNbOqW_subtitle",
|
|
2800
|
+
"panel": "PNbOqW_panel",
|
|
2819
2801
|
"page": "PNbOqW_page",
|
|
2820
|
-
"
|
|
2802
|
+
"treeChildren": "PNbOqW_treeChildren",
|
|
2803
|
+
"treeRow": "PNbOqW_treeRow",
|
|
2804
|
+
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
2805
|
+
"onlyAdmin": "PNbOqW_onlyAdmin",
|
|
2806
|
+
"sectionTitle": "PNbOqW_sectionTitle",
|
|
2807
|
+
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
2808
|
+
"detailGrid": "PNbOqW_detailGrid",
|
|
2809
|
+
"waiting": "PNbOqW_waiting",
|
|
2810
|
+
"muted": "PNbOqW_muted",
|
|
2811
|
+
"dialogFooter": "PNbOqW_dialogFooter",
|
|
2812
|
+
"candidates": "PNbOqW_candidates",
|
|
2813
|
+
"tabBadge": "PNbOqW_tabBadge",
|
|
2814
|
+
"tabs": "PNbOqW_tabs",
|
|
2815
|
+
"treeName": "PNbOqW_treeName",
|
|
2816
|
+
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
2817
|
+
"matrixPermission": "PNbOqW_matrixPermission",
|
|
2818
|
+
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
2819
|
+
"matrixRoleCell": "PNbOqW_matrixRoleCell",
|
|
2820
|
+
"roleRevoke": "PNbOqW_roleRevoke"
|
|
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
|
-
"
|
|
4472
|
-
"
|
|
4473
|
-
"body": "razUfG_body",
|
|
4474
|
-
"sessionPath": "razUfG_sessionPath",
|
|
4475
|
-
"title": "razUfG_title",
|
|
4471
|
+
"sessionTitle": "razUfG_sessionTitle",
|
|
4472
|
+
"sessionRow": "razUfG_sessionRow",
|
|
4476
4473
|
"dialogBody": "razUfG_dialogBody",
|
|
4474
|
+
"title": "razUfG_title",
|
|
4475
|
+
"sessionPath": "razUfG_sessionPath",
|
|
4476
|
+
"body": "razUfG_body",
|
|
4477
|
+
"sessionList": "razUfG_sessionList",
|
|
4477
4478
|
"error": "razUfG_error",
|
|
4478
4479
|
"banner": "razUfG_banner",
|
|
4479
4480
|
"copy": "razUfG_copy",
|
|
4480
4481
|
"actions": "razUfG_actions",
|
|
4481
|
-
"
|
|
4482
|
-
"sessionTitle": "razUfG_sessionTitle"
|
|
4482
|
+
"dialogText": "razUfG_dialogText"
|
|
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
|
-
"row": "tE0trG_row",
|
|
4796
|
-
"rowTime": "tE0trG_rowTime",
|
|
4797
4795
|
"actions": "tE0trG_actions",
|
|
4798
|
-
"linkButton": "tE0trG_linkButton",
|
|
4799
|
-
"rowIcon": "tE0trG_rowIcon",
|
|
4800
|
-
"button": "tE0trG_button",
|
|
4801
|
-
"rowText": "tE0trG_rowText",
|
|
4802
|
-
"rowBody": "tE0trG_rowBody",
|
|
4803
|
-
"dot": "tE0trG_dot",
|
|
4804
|
-
"rowTitle": "tE0trG_rowTitle",
|
|
4805
4796
|
"dialog": "tE0trG_dialog",
|
|
4797
|
+
"demo": "tE0trG_demo",
|
|
4806
4798
|
"badge": "tE0trG_badge",
|
|
4807
|
-
"
|
|
4808
|
-
"
|
|
4809
|
-
"
|
|
4799
|
+
"rowIcon": "tE0trG_rowIcon",
|
|
4800
|
+
"dot": "tE0trG_dot",
|
|
4801
|
+
"linkButton": "tE0trG_linkButton",
|
|
4810
4802
|
"list": "tE0trG_list",
|
|
4803
|
+
"rowBody": "tE0trG_rowBody",
|
|
4804
|
+
"empty": "tE0trG_empty",
|
|
4805
|
+
"rowText": "tE0trG_rowText",
|
|
4806
|
+
"button": "tE0trG_button",
|
|
4807
|
+
"pager": "tE0trG_pager",
|
|
4808
|
+
"row": "tE0trG_row",
|
|
4809
|
+
"rowTime": "tE0trG_rowTime",
|
|
4811
4810
|
"rowMeta": "tE0trG_rowMeta",
|
|
4812
|
-
"
|
|
4811
|
+
"bell": "tE0trG_bell",
|
|
4812
|
+
"rowTitle": "tE0trG_rowTitle"
|
|
4813
4813
|
};
|
|
4814
4814
|
//#endregion
|
|
4815
4815
|
//#region src/client/NotificationBell.tsx
|
package/lib/index.js
CHANGED
|
@@ -5276,6 +5276,64 @@ const browserSkillProvider = {
|
|
|
5276
5276
|
};
|
|
5277
5277
|
}
|
|
5278
5278
|
};
|
|
5279
|
+
/** The browser entry skill: chooses headless scraping or the local companion. */
|
|
5280
|
+
const BROWSER_GUIDE_SKILL_NAME = "browser";
|
|
5281
|
+
const BROWSER_GUIDE_SKILL_FILE = new URL("../skills/browser/SKILL.md", import.meta.url);
|
|
5282
|
+
const BROWSER_GUIDE_SKILL = {
|
|
5283
|
+
name: BROWSER_GUIDE_SKILL_NAME,
|
|
5284
|
+
description: "浏览器自动化总入口。默认用工作区 Playwright headless 抓取网页/大屏;只有用户明确要求“本地浏览器/已登录 Chrome/companion”才使用 Browser Bridge。账号密码登录走凭据插件,不强制 Companion。",
|
|
5285
|
+
invocation: {
|
|
5286
|
+
modelInvocable: true,
|
|
5287
|
+
userInvocable: true
|
|
5288
|
+
},
|
|
5289
|
+
provider: BROWSER_GUIDE_SKILL_NAME,
|
|
5290
|
+
source: "bundled",
|
|
5291
|
+
resourceBase: {
|
|
5292
|
+
kind: "directory",
|
|
5293
|
+
path: fileURLToPath(new URL("../", import.meta.url))
|
|
5294
|
+
},
|
|
5295
|
+
rank: BUNDLED_SKILL_RANK,
|
|
5296
|
+
locator: BROWSER_GUIDE_SKILL_FILE
|
|
5297
|
+
};
|
|
5298
|
+
const browserGuideSkillProvider = {
|
|
5299
|
+
name: BROWSER_GUIDE_SKILL_NAME,
|
|
5300
|
+
list: () => Promise.resolve([BROWSER_GUIDE_SKILL]),
|
|
5301
|
+
async get() {
|
|
5302
|
+
return {
|
|
5303
|
+
...BROWSER_GUIDE_SKILL,
|
|
5304
|
+
content: await readFile(BROWSER_GUIDE_SKILL_FILE, "utf8")
|
|
5305
|
+
};
|
|
5306
|
+
}
|
|
5307
|
+
};
|
|
5308
|
+
/** The headless scraping skill the browser entry points at as the default mode. */
|
|
5309
|
+
const BROWSER_HEADLESS_SKILL_NAME = "browser-headless";
|
|
5310
|
+
const BROWSER_HEADLESS_SKILL_FILE = new URL("../skills/browser-headless/SKILL.md", import.meta.url);
|
|
5311
|
+
const BROWSER_HEADLESS_SKILL = {
|
|
5312
|
+
name: BROWSER_HEADLESS_SKILL_NAME,
|
|
5313
|
+
description: "用工作区 Playwright + Chromium 无头抓取网页/大屏数据。默认模式;支持账号密码登录(凭据插件注入)、表格/文本/截图/JSON 输出。需要用户已登录的本地浏览器时改用 browser-bridge-companion。",
|
|
5314
|
+
invocation: {
|
|
5315
|
+
modelInvocable: true,
|
|
5316
|
+
userInvocable: true
|
|
5317
|
+
},
|
|
5318
|
+
provider: BROWSER_HEADLESS_SKILL_NAME,
|
|
5319
|
+
source: "bundled",
|
|
5320
|
+
resourceBase: {
|
|
5321
|
+
kind: "directory",
|
|
5322
|
+
path: fileURLToPath(new URL("../", import.meta.url))
|
|
5323
|
+
},
|
|
5324
|
+
rank: BUNDLED_SKILL_RANK,
|
|
5325
|
+
locator: BROWSER_HEADLESS_SKILL_FILE
|
|
5326
|
+
};
|
|
5327
|
+
const browserHeadlessSkillProvider = {
|
|
5328
|
+
name: BROWSER_HEADLESS_SKILL_NAME,
|
|
5329
|
+
list: () => Promise.resolve([BROWSER_HEADLESS_SKILL]),
|
|
5330
|
+
async get() {
|
|
5331
|
+
return {
|
|
5332
|
+
...BROWSER_HEADLESS_SKILL,
|
|
5333
|
+
content: await readFile(BROWSER_HEADLESS_SKILL_FILE, "utf8")
|
|
5334
|
+
};
|
|
5335
|
+
}
|
|
5336
|
+
};
|
|
5279
5337
|
const PROVISIONING_SKILL_NAME = "skill-provisioning";
|
|
5280
5338
|
const PROVISIONING_SKILL_FILE = new URL("../skills/skill-provisioning/SKILL.md", import.meta.url);
|
|
5281
5339
|
/** 该技能只对持有 `skill:manage` 的身份展示:它驱动的分配工具使用同一能力。 */
|
|
@@ -5344,6 +5402,8 @@ async function apply(ctx, config) {
|
|
|
5344
5402
|
ctx.skills.registerProvider(() => prefectScriptSkillProvider);
|
|
5345
5403
|
ctx.skills.registerProvider(() => provisioningSkillProvider);
|
|
5346
5404
|
ctx.skills.registerProvider(() => browserSkillProvider);
|
|
5405
|
+
ctx.skills.registerProvider(() => browserGuideSkillProvider);
|
|
5406
|
+
ctx.skills.registerProvider(() => browserHeadlessSkillProvider);
|
|
5347
5407
|
const ensureMcp = async () => {
|
|
5348
5408
|
if (mcpFiber !== void 0 && mcpFiber.uid !== null) return;
|
|
5349
5409
|
const fiber = ctx.plugin(McpClient, {
|
package/package.json
CHANGED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: browser
|
|
3
|
+
description: 浏览器自动化总入口。默认用工作区 Playwright headless 抓取网页/大屏;只有用户明确要求“本地浏览器/已登录 Chrome/companion”才使用 Browser Bridge。账号密码登录走凭据插件,不强制 Companion。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Browser
|
|
7
|
+
|
|
8
|
+
## 先选模式
|
|
9
|
+
|
|
10
|
+
```text
|
|
11
|
+
默认:headless
|
|
12
|
+
只有用户明确要求本地浏览器 → companion
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
| 用户意图 | 模式 |
|
|
16
|
+
|---|---|
|
|
17
|
+
| “抓取这个大屏/网页/表格” | headless |
|
|
18
|
+
| 给了账号密码 | headless + 凭据插件 |
|
|
19
|
+
| “用我电脑上的浏览器” | companion |
|
|
20
|
+
| “用我已经登录的 Chrome” | companion |
|
|
21
|
+
| “用 companion” | companion |
|
|
22
|
+
|
|
23
|
+
Agent 不得自行切 companion;需要时先询问。
|
|
24
|
+
|
|
25
|
+
## Headless
|
|
26
|
+
|
|
27
|
+
先读 `browser-headless` 技能,然后:
|
|
28
|
+
|
|
29
|
+
1. 写 Playwright 脚本;
|
|
30
|
+
2. 用工作区 Chromium 运行;
|
|
31
|
+
3. 产出 `result.json` + `screenshot.png`;
|
|
32
|
+
4. 校验数据条数/字段/接口状态。
|
|
33
|
+
|
|
34
|
+
## Companion
|
|
35
|
+
|
|
36
|
+
只有用户明确要求本地浏览器时:
|
|
37
|
+
|
|
38
|
+
1. 先 `browser_bridge_status`;
|
|
39
|
+
2. 未连接则 `browser_bridge_connect`;
|
|
40
|
+
3. 用 `browser_navigate` / `browser_snapshot` 等现有工具;
|
|
41
|
+
4. 不要用 headless 脚本冒充 companion。
|
|
42
|
+
|
|
43
|
+
## 凭据
|
|
44
|
+
|
|
45
|
+
- 账号密码存凭据插件,Agent 只拿 `secretRef`;
|
|
46
|
+
- 密码不得出现在 prompt、脚本、日志、截图;
|
|
47
|
+
- headless 通过环境变量/secretRef 登录;
|
|
48
|
+
- 登录失败先询问,不自动切 companion。
|
|
49
|
+
|
|
50
|
+
## 安全
|
|
51
|
+
|
|
52
|
+
- 只访问用户明确给出的域名;
|
|
53
|
+
- 禁止 localhost、127.0.0.1、169.254.169.254、内网管理端口;
|
|
54
|
+
- 并发 1,默认超时 60s;
|
|
55
|
+
- 不持久化 cookie;
|
|
56
|
+
- 提交/下单/删除/发布前必须用户确认。
|
|
57
|
+
|
|
58
|
+
## 输出
|
|
59
|
+
|
|
60
|
+
- `result.json`:数据、来源 URL、抓取时间;
|
|
61
|
+
- `screenshot.png`:关键页面;
|
|
62
|
+
- 摘要:条数、字段、异常;
|
|
63
|
+
- 不以“点击成功”作为成功判据。
|
|
64
|
+
|
|
65
|
+
## 相关技能
|
|
66
|
+
|
|
67
|
+
- `browser-headless`:默认 headless 实现;
|
|
68
|
+
- `browser-cdp-automation`:接管真实 Chrome/CDP;
|
|
69
|
+
- `browser-bridge-companion`:Companion 工具;
|
|
70
|
+
- `browser-bridge-chrome-install`:Companion 安装。
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: browser-headless
|
|
3
|
+
description: 用工作区 Playwright + Chromium 无头抓取网页/大屏数据。默认模式;支持账号密码登录(凭据插件注入)、表格/文本/截图/JSON 输出。需要用户已登录的本地浏览器时改用 browser-bridge-companion。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Browser Headless
|
|
7
|
+
|
|
8
|
+
## 前置
|
|
9
|
+
|
|
10
|
+
- 工作区已安装 Playwright 和 Chromium;
|
|
11
|
+
- 检查:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
node -e "console.log(require.resolve('playwright'))"
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- 不需要安装无头浏览器;缺依赖时才报告。
|
|
18
|
+
|
|
19
|
+
## 工作流
|
|
20
|
+
|
|
21
|
+
1. 明确目标 URL、要抓的字段/表格、是否需要登录;
|
|
22
|
+
2. 在 `/workspace/outputs/browser/<task>/` 写 `scrape.mjs`;
|
|
23
|
+
3. headless 启动 Chromium;
|
|
24
|
+
4. 登录(仅使用凭据插件注入的环境变量);
|
|
25
|
+
5. 等待页面稳定,优先抓接口返回/表格,不只看 DOM;
|
|
26
|
+
6. 保存 `result.json` + `screenshot.png`;
|
|
27
|
+
7. 校验条数/字段,再把摘要回复用户。
|
|
28
|
+
|
|
29
|
+
## 脚本模板
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
const { chromium } = require('/usr/local/lib/node_modules/playwright');
|
|
33
|
+
const fs = require('node:fs');
|
|
34
|
+
const path = require('node:path');
|
|
35
|
+
|
|
36
|
+
const out = '/workspace/outputs/browser/task';
|
|
37
|
+
fs.mkdirSync(out, { recursive: true });
|
|
38
|
+
|
|
39
|
+
const browser = await chromium.launch({
|
|
40
|
+
headless: true,
|
|
41
|
+
args: ['--no-sandbox', '--disable-dev-shm-usage'],
|
|
42
|
+
});
|
|
43
|
+
const context = await browser.newContext({ viewport: { width: 1600, height: 1000 } });
|
|
44
|
+
const page = await context.newPage();
|
|
45
|
+
|
|
46
|
+
try {
|
|
47
|
+
await page.goto(process.env.TARGET_URL, { waitUntil: 'domcontentloaded', timeout: 60000 });
|
|
48
|
+
|
|
49
|
+
if (process.env.BROWSER_USERNAME) {
|
|
50
|
+
await page.fill('input[autocomplete="username"], input[name="username"]', process.env.BROWSER_USERNAME);
|
|
51
|
+
await page.fill('input[type="password"]', process.env.BROWSER_PASSWORD);
|
|
52
|
+
await page.click('button[type="submit"], button:has-text("登录")');
|
|
53
|
+
await page.waitForLoadState('networkidle', { timeout: 60000 }).catch(() => {});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const rows = await page.locator('table tbody tr').evaluateAll((trs) =>
|
|
57
|
+
trs.map((tr) => Array.from(tr.querySelectorAll('td')).map((td) => td.innerText.trim())));
|
|
58
|
+
|
|
59
|
+
fs.writeFileSync(path.join(out, 'result.json'), JSON.stringify({ url: page.url(), rows }, null, 2));
|
|
60
|
+
await page.screenshot({ path: path.join(out, 'screenshot.png'), fullPage: true });
|
|
61
|
+
console.log(JSON.stringify({ ok: true, rows: rows.length, out }));
|
|
62
|
+
} finally {
|
|
63
|
+
await browser.close();
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
按实际页面替换选择器;不要硬编码不存在的按钮。
|
|
68
|
+
|
|
69
|
+
## 登录与凭据
|
|
70
|
+
|
|
71
|
+
- 用户账号密码先存凭据插件;
|
|
72
|
+
- 脚本只读环境变量:
|
|
73
|
+
- `BROWSER_USERNAME`
|
|
74
|
+
- `BROWSER_PASSWORD`
|
|
75
|
+
- 不把密码写入脚本、日志、截图;
|
|
76
|
+
- 登录失败/验证码/短信时停止并询问用户;
|
|
77
|
+
- 不自动切 Companion。
|
|
78
|
+
|
|
79
|
+
## 大屏抓取
|
|
80
|
+
|
|
81
|
+
- 先看页面是否直接暴露 JSON 接口;优先 `page.waitForResponse`/接口抓取;
|
|
82
|
+
- 表格:抓 `tbody tr`;图表:优先接口数据,不要 OCR;
|
|
83
|
+
- 需要点击切换 tab 时,每次点击后校验数据变化;
|
|
84
|
+
- 动态加载等待 `networkidle` 或目标元素出现;
|
|
85
|
+
- 保存完整 HTML 仅用于调试,不作为最终数据。
|
|
86
|
+
|
|
87
|
+
## 安全
|
|
88
|
+
|
|
89
|
+
- 只访问用户给出的域名;
|
|
90
|
+
- 禁止 localhost/127.0.0.1/169.254.169.254/内网管理端口;
|
|
91
|
+
- 并发 1,超时 60s;
|
|
92
|
+
- 独立 context,不持久化 cookie;
|
|
93
|
+
- 提交/下单/删除/发布前必须用户确认。
|
|
94
|
+
|
|
95
|
+
## 失败处理
|
|
96
|
+
|
|
97
|
+
| 现象 | 动作 |
|
|
98
|
+
|---|---|
|
|
99
|
+
| 401/403 | 检查凭据;仍失败则询问用户 |
|
|
100
|
+
| 验证码/短信 | 停止,询问;用户明确要求本地浏览器才走 companion |
|
|
101
|
+
| 页面结构变化 | 重新快照,调整选择器;不要猜数据 |
|
|
102
|
+
| 数据为空 | 检查接口/筛选条件,报告空结果,不伪造 |
|
|
103
|
+
|
|
104
|
+
## 输出
|
|
105
|
+
|
|
106
|
+
```text
|
|
107
|
+
/workspace/outputs/browser/<task>/
|
|
108
|
+
├── result.json
|
|
109
|
+
└── screenshot.png
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
回复用户:数据条数、字段、来源 URL、异常;不要把整页 HTML 贴进回答。
|