@sparkelf/dsh-dataops-managed 0.3.37 → 0.3.39
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 +150 -150
- package/lib/index.js +177 -3
- package/lib/types/admin-workspace-tools.d.ts +10 -0
- package/lib/types/tool-scope.d.ts +9 -0
- package/package.json +1 -1
- package/skills/admin-workspace-rescue/SKILL.md +5 -2
package/lib/client.js
CHANGED
|
@@ -834,22 +834,22 @@ window.__ModuleLoader__.load({
|
|
|
834
834
|
document.head.appendChild(tag);
|
|
835
835
|
}
|
|
836
836
|
var ManagedDataOpsSection_module_css_default = {
|
|
837
|
-
"card": "_2dqzjG_card",
|
|
838
|
-
"label": "_2dqzjG_label",
|
|
839
837
|
"row": "_2dqzjG_row",
|
|
840
|
-
"
|
|
841
|
-
"actions": "_2dqzjG_actions",
|
|
842
|
-
"heading": "_2dqzjG_heading",
|
|
838
|
+
"label": "_2dqzjG_label",
|
|
843
839
|
"fields": "_2dqzjG_fields",
|
|
840
|
+
"copy": "_2dqzjG_copy",
|
|
844
841
|
"refusal": "_2dqzjG_refusal",
|
|
845
|
-
"meta": "_2dqzjG_meta",
|
|
846
|
-
"reviewRow": "_2dqzjG_reviewRow",
|
|
847
842
|
"reviewRows": "_2dqzjG_reviewRows",
|
|
843
|
+
"title": "_2dqzjG_title",
|
|
848
844
|
"reviewHint": "_2dqzjG_reviewHint",
|
|
849
|
-
"copy": "_2dqzjG_copy",
|
|
850
|
-
"section": "_2dqzjG_section",
|
|
851
845
|
"status": "_2dqzjG_status",
|
|
852
|
-
"reviewActions": "_2dqzjG_reviewActions"
|
|
846
|
+
"reviewActions": "_2dqzjG_reviewActions",
|
|
847
|
+
"heading": "_2dqzjG_heading",
|
|
848
|
+
"reviewRow": "_2dqzjG_reviewRow",
|
|
849
|
+
"meta": "_2dqzjG_meta",
|
|
850
|
+
"card": "_2dqzjG_card",
|
|
851
|
+
"actions": "_2dqzjG_actions",
|
|
852
|
+
"section": "_2dqzjG_section"
|
|
853
853
|
};
|
|
854
854
|
//#endregion
|
|
855
855
|
//#region src/client/ReviewSettingsCard.tsx
|
|
@@ -1730,24 +1730,24 @@ window.__ModuleLoader__.load({
|
|
|
1730
1730
|
document.head.appendChild(tag);
|
|
1731
1731
|
}
|
|
1732
1732
|
var NotificationBell_module_css_default = {
|
|
1733
|
-
"
|
|
1733
|
+
"demo": "tE0trG_demo",
|
|
1734
|
+
"row": "tE0trG_row",
|
|
1734
1735
|
"linkButton": "tE0trG_linkButton",
|
|
1735
|
-
"
|
|
1736
|
+
"dot": "tE0trG_dot",
|
|
1737
|
+
"rowBody": "tE0trG_rowBody",
|
|
1738
|
+
"empty": "tE0trG_empty",
|
|
1739
|
+
"rowText": "tE0trG_rowText",
|
|
1740
|
+
"rowMeta": "tE0trG_rowMeta",
|
|
1741
|
+
"list": "tE0trG_list",
|
|
1736
1742
|
"bell": "tE0trG_bell",
|
|
1743
|
+
"actions": "tE0trG_actions",
|
|
1744
|
+
"dialog": "tE0trG_dialog",
|
|
1745
|
+
"button": "tE0trG_button",
|
|
1737
1746
|
"rowTitle": "tE0trG_rowTitle",
|
|
1738
|
-
"dot": "tE0trG_dot",
|
|
1739
1747
|
"rowTime": "tE0trG_rowTime",
|
|
1740
1748
|
"badge": "tE0trG_badge",
|
|
1741
|
-
"list": "tE0trG_list",
|
|
1742
|
-
"rowText": "tE0trG_rowText",
|
|
1743
1749
|
"pager": "tE0trG_pager",
|
|
1744
|
-
"
|
|
1745
|
-
"empty": "tE0trG_empty",
|
|
1746
|
-
"dialog": "tE0trG_dialog",
|
|
1747
|
-
"demo": "tE0trG_demo",
|
|
1748
|
-
"rowIcon": "tE0trG_rowIcon",
|
|
1749
|
-
"rowBody": "tE0trG_rowBody",
|
|
1750
|
-
"button": "tE0trG_button"
|
|
1750
|
+
"rowIcon": "tE0trG_rowIcon"
|
|
1751
1751
|
};
|
|
1752
1752
|
//#endregion
|
|
1753
1753
|
//#region src/client/NotificationBell.tsx
|
|
@@ -2038,62 +2038,62 @@ window.__ModuleLoader__.load({
|
|
|
2038
2038
|
document.head.appendChild(tag);
|
|
2039
2039
|
}
|
|
2040
2040
|
var SkillPlazaSection_module_css_default = {
|
|
2041
|
-
"
|
|
2042
|
-
"
|
|
2041
|
+
"tab": "_9FdZvq_tab",
|
|
2042
|
+
"severity": "_9FdZvq_severity",
|
|
2043
|
+
"detailRow": "_9FdZvq_detailRow",
|
|
2044
|
+
"cards": "_9FdZvq_cards",
|
|
2043
2045
|
"finding": "_9FdZvq_finding",
|
|
2044
2046
|
"emptyText": "_9FdZvq_emptyText",
|
|
2047
|
+
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
2045
2048
|
"findingText": "_9FdZvq_findingText",
|
|
2046
|
-
"section": "_9FdZvq_section",
|
|
2047
|
-
"mark": "_9FdZvq_mark",
|
|
2048
|
-
"detail": "_9FdZvq_detail",
|
|
2049
|
-
"head": "_9FdZvq_head",
|
|
2050
|
-
"reviewButton": "_9FdZvq_reviewButton",
|
|
2051
2049
|
"findingHint": "_9FdZvq_findingHint",
|
|
2052
|
-
"
|
|
2053
|
-
"
|
|
2050
|
+
"tabCount": "_9FdZvq_tabCount",
|
|
2051
|
+
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
2052
|
+
"departmentBar": "_9FdZvq_departmentBar",
|
|
2054
2053
|
"cardTop": "_9FdZvq_cardTop",
|
|
2054
|
+
"riskFailed": "_9FdZvq_riskFailed",
|
|
2055
|
+
"titleCount": "_9FdZvq_titleCount",
|
|
2056
|
+
"riskHead": "_9FdZvq_riskHead",
|
|
2057
|
+
"findings": "_9FdZvq_findings",
|
|
2058
|
+
"noteField": "_9FdZvq_noteField",
|
|
2059
|
+
"reviewError": "_9FdZvq_reviewError",
|
|
2060
|
+
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
2061
|
+
"cardMarks": "_9FdZvq_cardMarks",
|
|
2055
2062
|
"cardIcon": "_9FdZvq_cardIcon",
|
|
2063
|
+
"risk": "_9FdZvq_risk",
|
|
2056
2064
|
"auditDialog": "_9FdZvq_auditDialog",
|
|
2057
|
-
"riskSummary": "_9FdZvq_riskSummary",
|
|
2058
|
-
"audit": "_9FdZvq_audit",
|
|
2059
|
-
"tab": "_9FdZvq_tab",
|
|
2060
|
-
"title": "_9FdZvq_title",
|
|
2061
|
-
"cards": "_9FdZvq_cards",
|
|
2062
|
-
"severity": "_9FdZvq_severity",
|
|
2063
|
-
"riskFailed": "_9FdZvq_riskFailed",
|
|
2064
|
-
"tabActive": "_9FdZvq_tabActive",
|
|
2065
2065
|
"mine": "_9FdZvq_mine",
|
|
2066
|
+
"section": "_9FdZvq_section",
|
|
2067
|
+
"mark": "_9FdZvq_mark",
|
|
2068
|
+
"dialog": "_9FdZvq_dialog",
|
|
2066
2069
|
"detailValue": "_9FdZvq_detailValue",
|
|
2070
|
+
"empty": "_9FdZvq_empty",
|
|
2071
|
+
"tabs": "_9FdZvq_tabs",
|
|
2072
|
+
"pendingTag": "_9FdZvq_pendingTag",
|
|
2073
|
+
"riskScore": "_9FdZvq_riskScore",
|
|
2074
|
+
"riskSummary": "_9FdZvq_riskSummary",
|
|
2067
2075
|
"cardEnd": "_9FdZvq_cardEnd",
|
|
2068
|
-
"
|
|
2076
|
+
"demoTag": "_9FdZvq_demoTag",
|
|
2069
2077
|
"detailButton": "_9FdZvq_detailButton",
|
|
2070
|
-
"
|
|
2071
|
-
"findings": "_9FdZvq_findings",
|
|
2072
|
-
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
2078
|
+
"detail": "_9FdZvq_detail",
|
|
2073
2079
|
"cardDesc": "_9FdZvq_cardDesc",
|
|
2074
|
-
"reviewNote": "_9FdZvq_reviewNote",
|
|
2075
|
-
"reviewError": "_9FdZvq_reviewError",
|
|
2076
|
-
"status": "_9FdZvq_status",
|
|
2077
|
-
"cardMarks": "_9FdZvq_cardMarks",
|
|
2078
|
-
"cardTitle": "_9FdZvq_cardTitle",
|
|
2079
|
-
"titleCount": "_9FdZvq_titleCount",
|
|
2080
|
-
"card": "_9FdZvq_card",
|
|
2081
|
-
"sharedTag": "_9FdZvq_sharedTag",
|
|
2082
|
-
"dialog": "_9FdZvq_dialog",
|
|
2083
2080
|
"headRow": "_9FdZvq_headRow",
|
|
2084
|
-
"
|
|
2081
|
+
"sharedTag": "_9FdZvq_sharedTag",
|
|
2082
|
+
"reviewNote": "_9FdZvq_reviewNote",
|
|
2083
|
+
"audit": "_9FdZvq_audit",
|
|
2085
2084
|
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
2086
|
-
"notice": "_9FdZvq_notice",
|
|
2087
|
-
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
2088
2085
|
"auditFooter": "_9FdZvq_auditFooter",
|
|
2089
|
-
"
|
|
2090
|
-
"
|
|
2091
|
-
"tagTop": "_9FdZvq_tagTop",
|
|
2092
|
-
"tabs": "_9FdZvq_tabs",
|
|
2093
|
-
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
2094
|
-
"riskScore": "_9FdZvq_riskScore",
|
|
2086
|
+
"status": "_9FdZvq_status",
|
|
2087
|
+
"title": "_9FdZvq_title",
|
|
2095
2088
|
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
2096
|
-
"
|
|
2089
|
+
"tagTop": "_9FdZvq_tagTop",
|
|
2090
|
+
"head": "_9FdZvq_head",
|
|
2091
|
+
"tabActive": "_9FdZvq_tabActive",
|
|
2092
|
+
"card": "_9FdZvq_card",
|
|
2093
|
+
"reviewButton": "_9FdZvq_reviewButton",
|
|
2094
|
+
"cardTitle": "_9FdZvq_cardTitle",
|
|
2095
|
+
"notice": "_9FdZvq_notice",
|
|
2096
|
+
"detailLabel": "_9FdZvq_detailLabel"
|
|
2097
2097
|
};
|
|
2098
2098
|
//#endregion
|
|
2099
2099
|
//#region src/client/SkillPlazaSection.tsx
|
|
@@ -2758,19 +2758,19 @@ window.__ModuleLoader__.load({
|
|
|
2758
2758
|
document.head.appendChild(tag);
|
|
2759
2759
|
}
|
|
2760
2760
|
var WanxiangBrand_module_css_default = {
|
|
2761
|
-
"unitTop": "s0HPxG_unitTop",
|
|
2762
|
-
"unit-left": "s0HPxG_unit-left",
|
|
2763
2761
|
"unit-right": "s0HPxG_unit-right",
|
|
2764
|
-
"
|
|
2765
|
-
"animatedMark": "s0HPxG_animatedMark",
|
|
2766
|
-
"unit-core": "s0HPxG_unit-core",
|
|
2762
|
+
"unitCore": "s0HPxG_unitCore",
|
|
2767
2763
|
"sidebarName": "s0HPxG_sidebarName",
|
|
2768
|
-
"
|
|
2769
|
-
"unitLeft": "s0HPxG_unitLeft",
|
|
2770
|
-
"unitRight": "s0HPxG_unitRight",
|
|
2764
|
+
"unit-top": "s0HPxG_unit-top",
|
|
2771
2765
|
"mark": "s0HPxG_mark",
|
|
2766
|
+
"harness": "s0HPxG_harness",
|
|
2772
2767
|
"wordmark": "s0HPxG_wordmark",
|
|
2773
|
-
"
|
|
2768
|
+
"unitTop": "s0HPxG_unitTop",
|
|
2769
|
+
"unitRight": "s0HPxG_unitRight",
|
|
2770
|
+
"unit-left": "s0HPxG_unit-left",
|
|
2771
|
+
"unit-core": "s0HPxG_unit-core",
|
|
2772
|
+
"unitLeft": "s0HPxG_unitLeft",
|
|
2773
|
+
"animatedMark": "s0HPxG_animatedMark"
|
|
2774
2774
|
};
|
|
2775
2775
|
//#endregion
|
|
2776
2776
|
//#region src/client/WanxiangBrand.tsx
|
|
@@ -3187,92 +3187,92 @@ window.__ModuleLoader__.load({
|
|
|
3187
3187
|
document.head.appendChild(tag);
|
|
3188
3188
|
}
|
|
3189
3189
|
var PermissionCenterSection_module_css_default = {
|
|
3190
|
-
"
|
|
3191
|
-
"
|
|
3190
|
+
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
3191
|
+
"tab": "PNbOqW_tab",
|
|
3192
|
+
"adminTag": "PNbOqW_adminTag",
|
|
3193
|
+
"dialogHint": "PNbOqW_dialogHint",
|
|
3194
|
+
"permission": "PNbOqW_permission",
|
|
3195
|
+
"panelHead": "PNbOqW_panelHead",
|
|
3196
|
+
"matrixScroll": "PNbOqW_matrixScroll",
|
|
3197
|
+
"candidates": "PNbOqW_candidates",
|
|
3198
|
+
"matrixGroup": "PNbOqW_matrixGroup",
|
|
3199
|
+
"headActions": "PNbOqW_headActions",
|
|
3200
|
+
"rowActions": "PNbOqW_rowActions",
|
|
3201
|
+
"error": "PNbOqW_error",
|
|
3202
|
+
"tabDivider": "PNbOqW_tabDivider",
|
|
3203
|
+
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
3204
|
+
"demo": "PNbOqW_demo",
|
|
3205
|
+
"onlyAdmin": "PNbOqW_onlyAdmin",
|
|
3206
|
+
"tabBadge": "PNbOqW_tabBadge",
|
|
3207
|
+
"pager": "PNbOqW_pager",
|
|
3208
|
+
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
3209
|
+
"waiting": "PNbOqW_waiting",
|
|
3210
|
+
"roleCell": "PNbOqW_roleCell",
|
|
3211
|
+
"tabGroup": "PNbOqW_tabGroup",
|
|
3212
|
+
"matrixRoleCell": "PNbOqW_matrixRoleCell",
|
|
3192
3213
|
"treeRoot": "PNbOqW_treeRoot",
|
|
3214
|
+
"empty": "PNbOqW_empty",
|
|
3215
|
+
"matrixPermission": "PNbOqW_matrixPermission",
|
|
3216
|
+
"scopeBadge": "PNbOqW_scopeBadge",
|
|
3217
|
+
"subtitle": "PNbOqW_subtitle",
|
|
3218
|
+
"roleGrant": "PNbOqW_roleGrant",
|
|
3219
|
+
"comboboxHint": "PNbOqW_comboboxHint",
|
|
3220
|
+
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
3193
3221
|
"field": "PNbOqW_field",
|
|
3194
|
-
"
|
|
3195
|
-
"permDescription": "PNbOqW_permDescription",
|
|
3196
|
-
"combobox": "PNbOqW_combobox",
|
|
3197
|
-
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
3222
|
+
"matrixRoleHead": "PNbOqW_matrixRoleHead",
|
|
3198
3223
|
"table": "PNbOqW_table",
|
|
3199
|
-
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
3200
|
-
"tabs": "PNbOqW_tabs",
|
|
3201
|
-
"detailGrid": "PNbOqW_detailGrid",
|
|
3202
|
-
"pager": "PNbOqW_pager",
|
|
3203
|
-
"headActions": "PNbOqW_headActions",
|
|
3204
|
-
"candidate": "PNbOqW_candidate",
|
|
3205
3224
|
"comboboxOption": "PNbOqW_comboboxOption",
|
|
3206
|
-
"
|
|
3207
|
-
"
|
|
3208
|
-
"
|
|
3209
|
-
"matrixHead": "PNbOqW_matrixHead",
|
|
3210
|
-
"dialogHint": "PNbOqW_dialogHint",
|
|
3211
|
-
"tabBadge": "PNbOqW_tabBadge",
|
|
3212
|
-
"department": "PNbOqW_department",
|
|
3213
|
-
"roleSearchWrap": "PNbOqW_roleSearchWrap",
|
|
3225
|
+
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
3226
|
+
"matrixModule": "PNbOqW_matrixModule",
|
|
3227
|
+
"roleSearchIcon": "PNbOqW_roleSearchIcon",
|
|
3214
3228
|
"title": "PNbOqW_title",
|
|
3215
|
-
"
|
|
3216
|
-
"subtitle": "PNbOqW_subtitle",
|
|
3217
|
-
"departments": "PNbOqW_departments",
|
|
3229
|
+
"treeActions": "PNbOqW_treeActions",
|
|
3218
3230
|
"dialogFooter": "PNbOqW_dialogFooter",
|
|
3219
|
-
"
|
|
3220
|
-
"
|
|
3221
|
-
"
|
|
3222
|
-
"
|
|
3223
|
-
"
|
|
3224
|
-
"
|
|
3231
|
+
"treeRow": "PNbOqW_treeRow",
|
|
3232
|
+
"permDescription": "PNbOqW_permDescription",
|
|
3233
|
+
"copied": "PNbOqW_copied",
|
|
3234
|
+
"candidate": "PNbOqW_candidate",
|
|
3235
|
+
"roleSearch": "PNbOqW_roleSearch",
|
|
3236
|
+
"detailGrid": "PNbOqW_detailGrid",
|
|
3237
|
+
"matrix": "PNbOqW_matrix",
|
|
3238
|
+
"tabs": "PNbOqW_tabs",
|
|
3239
|
+
"permCopy": "PNbOqW_permCopy",
|
|
3240
|
+
"muted": "PNbOqW_muted",
|
|
3241
|
+
"combobox": "PNbOqW_combobox",
|
|
3225
3242
|
"treeToggle": "PNbOqW_treeToggle",
|
|
3226
|
-
"
|
|
3227
|
-
"
|
|
3243
|
+
"roleTag": "PNbOqW_roleTag",
|
|
3244
|
+
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
3245
|
+
"tableScroll": "PNbOqW_tableScroll",
|
|
3246
|
+
"treeName": "PNbOqW_treeName",
|
|
3247
|
+
"head": "PNbOqW_head",
|
|
3248
|
+
"headText": "PNbOqW_headText",
|
|
3249
|
+
"tabActive": "PNbOqW_tabActive",
|
|
3250
|
+
"readOnly": "PNbOqW_readOnly",
|
|
3228
3251
|
"sectionTitle": "PNbOqW_sectionTitle",
|
|
3229
|
-
"
|
|
3230
|
-
"comboboxHint": "PNbOqW_comboboxHint",
|
|
3231
|
-
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
3232
|
-
"matrixRoleHead": "PNbOqW_matrixRoleHead",
|
|
3233
|
-
"matrixRoleCell": "PNbOqW_matrixRoleCell",
|
|
3234
|
-
"matrixModule": "PNbOqW_matrixModule",
|
|
3235
|
-
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
3252
|
+
"department": "PNbOqW_department",
|
|
3236
3253
|
"protected": "PNbOqW_protected",
|
|
3237
|
-
"
|
|
3238
|
-
"
|
|
3254
|
+
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
3255
|
+
"dialog": "PNbOqW_dialog",
|
|
3239
3256
|
"dialogBody": "PNbOqW_dialogBody",
|
|
3257
|
+
"matrixTool": "PNbOqW_matrixTool",
|
|
3240
3258
|
"search": "PNbOqW_search",
|
|
3241
|
-
"
|
|
3242
|
-
"
|
|
3243
|
-
"
|
|
3244
|
-
"
|
|
3259
|
+
"treeChildren": "PNbOqW_treeChildren",
|
|
3260
|
+
"departments": "PNbOqW_departments",
|
|
3261
|
+
"matrixHead": "PNbOqW_matrixHead",
|
|
3262
|
+
"panelFoot": "PNbOqW_panelFoot",
|
|
3263
|
+
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
3264
|
+
"comboboxList": "PNbOqW_comboboxList",
|
|
3265
|
+
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
3266
|
+
"roleRevoke": "PNbOqW_roleRevoke",
|
|
3245
3267
|
"treeSpacer": "PNbOqW_treeSpacer",
|
|
3246
|
-
"
|
|
3247
|
-
"
|
|
3248
|
-
"permCopy": "PNbOqW_permCopy",
|
|
3249
|
-
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
3250
|
-
"candidates": "PNbOqW_candidates",
|
|
3268
|
+
"roleSearchWrap": "PNbOqW_roleSearchWrap",
|
|
3269
|
+
"notice": "PNbOqW_notice",
|
|
3251
3270
|
"deptAdmins": "PNbOqW_deptAdmins",
|
|
3252
|
-
"
|
|
3271
|
+
"matrixToolActive": "PNbOqW_matrixToolActive",
|
|
3272
|
+
"matrixNote": "PNbOqW_matrixNote",
|
|
3253
3273
|
"page": "PNbOqW_page",
|
|
3254
|
-
"dialog": "PNbOqW_dialog",
|
|
3255
3274
|
"roleTags": "PNbOqW_roleTags",
|
|
3256
|
-
"
|
|
3257
|
-
"treeRow": "PNbOqW_treeRow",
|
|
3258
|
-
"roleRevoke": "PNbOqW_roleRevoke",
|
|
3259
|
-
"matrixToolActive": "PNbOqW_matrixToolActive",
|
|
3260
|
-
"roleSearch": "PNbOqW_roleSearch",
|
|
3261
|
-
"panel": "PNbOqW_panel",
|
|
3262
|
-
"empty": "PNbOqW_empty",
|
|
3263
|
-
"tabDivider": "PNbOqW_tabDivider",
|
|
3264
|
-
"comboboxList": "PNbOqW_comboboxList",
|
|
3265
|
-
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
3266
|
-
"tabGroup": "PNbOqW_tabGroup",
|
|
3267
|
-
"panelFoot": "PNbOqW_panelFoot",
|
|
3268
|
-
"treeName": "PNbOqW_treeName",
|
|
3269
|
-
"matrixGroup": "PNbOqW_matrixGroup",
|
|
3270
|
-
"matrix": "PNbOqW_matrix",
|
|
3271
|
-
"permission": "PNbOqW_permission",
|
|
3272
|
-
"scopeBadge": "PNbOqW_scopeBadge",
|
|
3273
|
-
"matrixScroll": "PNbOqW_matrixScroll",
|
|
3274
|
-
"error": "PNbOqW_error",
|
|
3275
|
-
"matrixTool": "PNbOqW_matrixTool"
|
|
3275
|
+
"panel": "PNbOqW_panel"
|
|
3276
3276
|
};
|
|
3277
3277
|
//#endregion
|
|
3278
3278
|
//#region src/client/combobox.ts
|
|
@@ -4923,18 +4923,18 @@ window.__ModuleLoader__.load({
|
|
|
4923
4923
|
document.head.appendChild(tag);
|
|
4924
4924
|
}
|
|
4925
4925
|
var WorkspaceUpgradePrompt_module_css_default = {
|
|
4926
|
-
"dialogText": "razUfG_dialogText",
|
|
4927
|
-
"sessionTitle": "razUfG_sessionTitle",
|
|
4928
|
-
"body": "razUfG_body",
|
|
4929
|
-
"copy": "razUfG_copy",
|
|
4930
|
-
"sessionPath": "razUfG_sessionPath",
|
|
4931
4926
|
"dialogBody": "razUfG_dialogBody",
|
|
4927
|
+
"banner": "razUfG_banner",
|
|
4928
|
+
"sessionList": "razUfG_sessionList",
|
|
4929
|
+
"sessionPath": "razUfG_sessionPath",
|
|
4932
4930
|
"sessionRow": "razUfG_sessionRow",
|
|
4931
|
+
"sessionTitle": "razUfG_sessionTitle",
|
|
4932
|
+
"error": "razUfG_error",
|
|
4933
|
+
"copy": "razUfG_copy",
|
|
4933
4934
|
"title": "razUfG_title",
|
|
4935
|
+
"dialogText": "razUfG_dialogText",
|
|
4934
4936
|
"actions": "razUfG_actions",
|
|
4935
|
-
"
|
|
4936
|
-
"sessionList": "razUfG_sessionList",
|
|
4937
|
-
"banner": "razUfG_banner"
|
|
4937
|
+
"body": "razUfG_body"
|
|
4938
4938
|
};
|
|
4939
4939
|
//#endregion
|
|
4940
4940
|
//#region src/client/WorkspaceUpgradePrompt.tsx
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mkdir, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
1
|
+
import { chmod, mkdir, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
import { credentialRef } from "@deepseek-ai/dsh-credentials";
|
|
4
4
|
import * as McpClient from "@sparkelf/dsh-plugin-mcp-credentials";
|
|
@@ -901,7 +901,10 @@ const AI_TOOL_ACCESS = {
|
|
|
901
901
|
capability: "resource.manage",
|
|
902
902
|
adminOnly: true,
|
|
903
903
|
defaultEnabled: true
|
|
904
|
-
}
|
|
904
|
+
},
|
|
905
|
+
admin_workspace_restart: { superAdminOnly: true },
|
|
906
|
+
admin_workspace_tunnel_open: { superAdminOnly: true },
|
|
907
|
+
admin_workspace_tunnel_revoke: { superAdminOnly: true }
|
|
905
908
|
};
|
|
906
909
|
/** Every managed tool name, in the order the manager considers them. */
|
|
907
910
|
const AI_TOOL_NAMES = Object.keys(AI_TOOL_ACCESS);
|
|
@@ -2734,6 +2737,177 @@ function buildAiManagementTools(ctx, reviewApi, readScope, collectHub) {
|
|
|
2734
2737
|
];
|
|
2735
2738
|
}
|
|
2736
2739
|
//#endregion
|
|
2740
|
+
//#region src/admin-workspace-tools.ts
|
|
2741
|
+
/**
|
|
2742
|
+
* 超管代维工作区(`admin-workspace-*`)。
|
|
2743
|
+
*
|
|
2744
|
+
* 只注册给超级管理员(`AI_TOOL_ACCESS` 里都是 `superAdminOnly`),每次调用还会再校验一次
|
|
2745
|
+
* scope —— 工具注册只是可见性,真正的闸门在服务端和这里的二次判定。
|
|
2746
|
+
*
|
|
2747
|
+
* **私钥红线**:`tunnel_open` 拿到的私钥**不返回正文**,而是写进工作区里的 0600 一次性文件,
|
|
2748
|
+
* 工具只返回文件路径与 `ssh -i` 命令。私钥因此不会进对话、日志或审计;`revoke` 与到期清理
|
|
2749
|
+
* 负责删文件与目录。
|
|
2750
|
+
*/
|
|
2751
|
+
/** 工作区根目录(容器内是挂载卷;本机调试可用环境变量覆盖)。 */
|
|
2752
|
+
const workspaceRoot = () => process.env.DATAOPS_WORKSPACE_ROOT?.trim() || "/workspace";
|
|
2753
|
+
/** 隧道私钥目录:`<workspace>/.dataops/admin-tunnels/<workspaceId>/`。 */
|
|
2754
|
+
const tunnelDirectory = (workspaceId) => join(workspaceRoot(), ".dataops", "admin-tunnels", workspaceId);
|
|
2755
|
+
/** 私钥文件路径。 */
|
|
2756
|
+
const tunnelKeyPath = (workspaceId) => join(tunnelDirectory(workspaceId), "id_ed25519");
|
|
2757
|
+
/** 从 workspace 列表响应里找目标用户的 workspace id。 */
|
|
2758
|
+
const findWorkspaceId = (body, userId) => {
|
|
2759
|
+
const rows = Array.isArray(body) ? body : typeof body === "object" && body !== null && Array.isArray(body.workspaces) ? body.workspaces : [];
|
|
2760
|
+
for (const row of rows) {
|
|
2761
|
+
if (typeof row !== "object" || row === null) continue;
|
|
2762
|
+
const entry = row;
|
|
2763
|
+
if (entry.userId === userId || entry.ownerUserId === userId) {
|
|
2764
|
+
if (typeof entry.id === "string" && entry.id !== "") return entry.id;
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
return null;
|
|
2768
|
+
};
|
|
2769
|
+
/** 统一处理 DataOps 响应:401/403/409 给可读错误,其它非 2xx 带状态码抛出。 */
|
|
2770
|
+
const call = async (reviewApi, path, init = {}) => {
|
|
2771
|
+
const result = await reviewApi.request(path, init);
|
|
2772
|
+
const detail = result.body;
|
|
2773
|
+
const reason = typeof detail?.error === "string" ? detail.error : typeof detail?.message === "string" ? detail.message : "";
|
|
2774
|
+
if (result.status === 401) throw new Error("Unauthorized (401): DataOps 会话已过期,请重新登录");
|
|
2775
|
+
if (result.status === 403) throw new Error("Forbidden (403): " + (reason || "只有超级管理员可以代维工作区"));
|
|
2776
|
+
if (result.status === 404) throw new Error("Not Found (404): " + (reason || path + " 不存在(目标工作区或路由缺失)"));
|
|
2777
|
+
if (result.status < 200 || result.status >= 300) throw new Error("DataOps " + path + " failed: HTTP " + result.status.toString() + (reason ? ": " + reason : ""));
|
|
2778
|
+
return result.body;
|
|
2779
|
+
};
|
|
2780
|
+
/**
|
|
2781
|
+
* 构造三个超管代维工具。
|
|
2782
|
+
*
|
|
2783
|
+
* @param reviewApi - 同源桥(携带工作区 JWT)。
|
|
2784
|
+
* @param readScope - 当前 scope 的实时读取器;调用时再判一次超管。
|
|
2785
|
+
*/
|
|
2786
|
+
function buildAdminWorkspaceTools(reviewApi, readScope) {
|
|
2787
|
+
const assertSuperAdmin = (tool) => {
|
|
2788
|
+
const scope = readScope();
|
|
2789
|
+
if (scope === void 0 || !isSuperAdmin(scope)) throw new Error("Forbidden (403): " + tool + " 仅超级管理员可用");
|
|
2790
|
+
};
|
|
2791
|
+
/** 解析目标用户的 workspace id:优先新列表接口,退回旧的 userId 重启接口。 */
|
|
2792
|
+
const resolveWorkspaceId = async (userId) => {
|
|
2793
|
+
try {
|
|
2794
|
+
const body = await call(reviewApi, "/api/ai/workspaces");
|
|
2795
|
+
return findWorkspaceId(body, userId);
|
|
2796
|
+
} catch (error) {
|
|
2797
|
+
if (error instanceof Error && /\(404\)/.test(error.message)) return null;
|
|
2798
|
+
throw error;
|
|
2799
|
+
}
|
|
2800
|
+
};
|
|
2801
|
+
return [
|
|
2802
|
+
{
|
|
2803
|
+
name: "admin_workspace_restart",
|
|
2804
|
+
definition: defineTool({
|
|
2805
|
+
name: "admin_workspace_restart",
|
|
2806
|
+
description: "Restart one managed DSH workspace by owner userId. Super administrators only; audited by DataOps. Use after the tunnel-based repair, or when the user reports the workspace is stuck.",
|
|
2807
|
+
parameters: { user_id: {
|
|
2808
|
+
type: "string",
|
|
2809
|
+
required: true,
|
|
2810
|
+
description: "Owner userId of the target workspace (never guess it from a display name)."
|
|
2811
|
+
} },
|
|
2812
|
+
output: {
|
|
2813
|
+
schema: OPEN_OBJECT_SCHEMA,
|
|
2814
|
+
render: renderJson
|
|
2815
|
+
},
|
|
2816
|
+
execute: async (args) => {
|
|
2817
|
+
assertSuperAdmin("admin_workspace_restart");
|
|
2818
|
+
const userId = String(args.user_id);
|
|
2819
|
+
const workspaceId = await resolveWorkspaceId(userId);
|
|
2820
|
+
return {
|
|
2821
|
+
userId,
|
|
2822
|
+
workspaceId,
|
|
2823
|
+
result: (workspaceId === null ? await call(reviewApi, "/api/ai/workspace/restart?userId=" + encodeURIComponent(userId), { method: "POST" }) : await call(reviewApi, "/api/ai/workspaces/" + encodeURIComponent(workspaceId) + "/restart", { method: "POST" })) ?? {}
|
|
2824
|
+
};
|
|
2825
|
+
}
|
|
2826
|
+
})
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
name: "admin_workspace_tunnel_open",
|
|
2830
|
+
definition: defineTool({
|
|
2831
|
+
name: "admin_workspace_tunnel_open",
|
|
2832
|
+
description: "Open a temporary SSH tunnel into one user's workspace (24h, server-side expiry). Super administrators only; audited. The private key is NOT returned in the conversation: it is written once to a 0600 file under .dataops/admin-tunnels/<workspaceId>/, and this tool returns that path plus the ssh -i command. Revoke when done.",
|
|
2833
|
+
parameters: { user_id: {
|
|
2834
|
+
type: "string",
|
|
2835
|
+
required: true,
|
|
2836
|
+
description: "Owner userId of the target workspace."
|
|
2837
|
+
} },
|
|
2838
|
+
output: {
|
|
2839
|
+
schema: OPEN_OBJECT_SCHEMA,
|
|
2840
|
+
render: renderJson
|
|
2841
|
+
},
|
|
2842
|
+
execute: async (args) => {
|
|
2843
|
+
assertSuperAdmin("admin_workspace_tunnel_open");
|
|
2844
|
+
const userId = String(args.user_id);
|
|
2845
|
+
const workspaceId = await resolveWorkspaceId(userId);
|
|
2846
|
+
if (workspaceId === null) throw new Error("目标用户没有可代维的工作区(workspaces 列表里找不到 userId=" + userId + ")");
|
|
2847
|
+
const tunnel = await call(reviewApi, "/api/ai/workspaces/" + encodeURIComponent(workspaceId) + "/tunnel", { method: "POST" }) ?? {};
|
|
2848
|
+
const privateKey = typeof tunnel.privateKey === "string" ? tunnel.privateKey : "";
|
|
2849
|
+
if (privateKey === "") throw new Error("开通隧道的响应里没有 privateKey,无法建立一次性凭据");
|
|
2850
|
+
const directory = tunnelDirectory(workspaceId);
|
|
2851
|
+
await mkdir(directory, {
|
|
2852
|
+
recursive: true,
|
|
2853
|
+
mode: 448
|
|
2854
|
+
});
|
|
2855
|
+
await chmod(directory, 448);
|
|
2856
|
+
const keyPath = tunnelKeyPath(workspaceId);
|
|
2857
|
+
await writeFile(keyPath, privateKey, { mode: 384 });
|
|
2858
|
+
await chmod(keyPath, 384);
|
|
2859
|
+
const host = typeof tunnel.targetHost === "string" ? tunnel.targetHost : "127.0.0.1";
|
|
2860
|
+
const port = typeof tunnel.port === "number" ? tunnel.port : 22;
|
|
2861
|
+
return {
|
|
2862
|
+
userId,
|
|
2863
|
+
workspaceId,
|
|
2864
|
+
keyPath,
|
|
2865
|
+
sshCommand: "ssh -i " + keyPath + " -p " + String(port) + " root@" + host,
|
|
2866
|
+
targetHost: host,
|
|
2867
|
+
port,
|
|
2868
|
+
expiresAt: typeof tunnel.expiresAt === "string" ? tunnel.expiresAt : null,
|
|
2869
|
+
note: "私钥只写在上面这个 0600 文件里,不要把它贴进对话;用完调用 admin_workspace_tunnel_revoke 删除。"
|
|
2870
|
+
};
|
|
2871
|
+
}
|
|
2872
|
+
})
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
name: "admin_workspace_tunnel_revoke",
|
|
2876
|
+
definition: defineTool({
|
|
2877
|
+
name: "admin_workspace_tunnel_revoke",
|
|
2878
|
+
description: "Revoke the temporary SSH tunnel of one user's workspace and delete the local one-time key file. Super administrators only; audited.",
|
|
2879
|
+
parameters: { user_id: {
|
|
2880
|
+
type: "string",
|
|
2881
|
+
required: true,
|
|
2882
|
+
description: "Owner userId of the target workspace."
|
|
2883
|
+
} },
|
|
2884
|
+
output: {
|
|
2885
|
+
schema: OPEN_OBJECT_SCHEMA,
|
|
2886
|
+
render: renderJson
|
|
2887
|
+
},
|
|
2888
|
+
execute: async (args) => {
|
|
2889
|
+
assertSuperAdmin("admin_workspace_tunnel_revoke");
|
|
2890
|
+
const userId = String(args.user_id);
|
|
2891
|
+
const workspaceId = await resolveWorkspaceId(userId);
|
|
2892
|
+
if (workspaceId === null) throw new Error("目标用户没有可代维的工作区(workspaces 列表里找不到 userId=" + userId + ")");
|
|
2893
|
+
const body = await call(reviewApi, "/api/ai/workspaces/" + encodeURIComponent(workspaceId) + "/tunnel", { method: "DELETE" });
|
|
2894
|
+
await rm(tunnelKeyPath(workspaceId), { force: true });
|
|
2895
|
+
await rm(tunnelDirectory(workspaceId), {
|
|
2896
|
+
recursive: true,
|
|
2897
|
+
force: true
|
|
2898
|
+
});
|
|
2899
|
+
return {
|
|
2900
|
+
userId,
|
|
2901
|
+
workspaceId,
|
|
2902
|
+
revoked: true,
|
|
2903
|
+
result: body ?? {}
|
|
2904
|
+
};
|
|
2905
|
+
}
|
|
2906
|
+
})
|
|
2907
|
+
}
|
|
2908
|
+
];
|
|
2909
|
+
}
|
|
2910
|
+
//#endregion
|
|
2737
2911
|
//#region src/tool-manager.ts
|
|
2738
2912
|
/**
|
|
2739
2913
|
* Reconcile the managed tools with the current DataOps scope.
|
|
@@ -2759,7 +2933,7 @@ var AiToolManager = class {
|
|
|
2759
2933
|
this.ctx = ctx;
|
|
2760
2934
|
this.reviewApi = reviewApi;
|
|
2761
2935
|
this.collectHub = collectHub;
|
|
2762
|
-
this.definitions = new Map(buildAiManagementTools(ctx, reviewApi, () => this.scope, this.collectHub).map((tool) => [tool.name, tool.definition]));
|
|
2936
|
+
this.definitions = new Map([...buildAiManagementTools(ctx, reviewApi, () => this.scope, this.collectHub), ...buildAdminWorkspaceTools(reviewApi, () => this.scope)].map((tool) => [tool.name, tool.definition]));
|
|
2763
2937
|
this.unsubscribeExpiry = onAuthStateChange((state) => {
|
|
2764
2938
|
if (state === "expired") this.clear();
|
|
2765
2939
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReviewApi } from './review-api.ts';
|
|
2
|
+
import { type DataOpsScope } from './tool-scope.ts';
|
|
3
|
+
import type { AiManagedTool } from './tools.ts';
|
|
4
|
+
/**
|
|
5
|
+
* 构造三个超管代维工具。
|
|
6
|
+
*
|
|
7
|
+
* @param reviewApi - 同源桥(携带工作区 JWT)。
|
|
8
|
+
* @param readScope - 当前 scope 的实时读取器;调用时再判一次超管。
|
|
9
|
+
*/
|
|
10
|
+
export declare function buildAdminWorkspaceTools(reviewApi: ReviewApi, readScope: () => DataOpsScope | undefined): AiManagedTool[];
|
|
@@ -165,6 +165,15 @@ export declare const AI_TOOL_ACCESS: {
|
|
|
165
165
|
readonly adminOnly: true;
|
|
166
166
|
readonly defaultEnabled: true;
|
|
167
167
|
};
|
|
168
|
+
readonly admin_workspace_restart: {
|
|
169
|
+
readonly superAdminOnly: true;
|
|
170
|
+
};
|
|
171
|
+
readonly admin_workspace_tunnel_open: {
|
|
172
|
+
readonly superAdminOnly: true;
|
|
173
|
+
};
|
|
174
|
+
readonly admin_workspace_tunnel_revoke: {
|
|
175
|
+
readonly superAdminOnly: true;
|
|
176
|
+
};
|
|
168
177
|
};
|
|
169
178
|
/** Every managed tool name, in the order the manager considers them. */
|
|
170
179
|
export declare const AI_TOOL_NAMES: AiToolName[];
|
package/package.json
CHANGED
|
@@ -19,13 +19,16 @@ description: 超管代维另一个用户的 DSH 工作区时使用。包含临
|
|
|
19
19
|
|
|
20
20
|
两个工具:
|
|
21
21
|
|
|
22
|
-
- `admin_workspace_tunnel_open(userId)` →
|
|
22
|
+
- `admin_workspace_tunnel_open(userId)` → 私钥**不返回正文**:工具把它写成工作区内的 0600 一次性文件
|
|
23
|
+
(`/workspace/.dataops/admin-tunnels/<workspaceId>/id_ed25519`,目录 0700),只返回 `keyPath`、
|
|
24
|
+
`sshCommand`、`targetHost`、`port`、`expiresAt`。
|
|
23
25
|
- `admin_workspace_tunnel_revoke(userId)` → 立即撤销(删除对应的 `authorized_keys` 标记行并结束转发)。
|
|
24
26
|
|
|
25
27
|
规则:
|
|
26
28
|
|
|
27
29
|
1. 开通前先在门户里确认目标工作区 id 和 owner,**不要凭用户名猜 userId**;
|
|
28
|
-
2.
|
|
30
|
+
2. 私钥只存在于上面那个 0600 文件里(工具不会把正文给你);不要 `cat` 它、不要贴进聊天、
|
|
31
|
+
不要复制到别处;用完即 `revoke`,`revoke` 会同时删掉文件与目录;
|
|
29
32
|
3. 隧道默认 **24 小时**到期,服务端每 5 分钟清理过期标记;到期后连接立即失效,**不要依赖自己记时间**;
|
|
30
33
|
4. 同一目标不要并行开多条;用完就撤销,撤销后要复验「再连失败」再结束。
|
|
31
34
|
|