@sparkelf/dsh-dataops-managed 0.3.51 → 0.3.52
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 +216 -172
- package/lib/client.js.map +1 -1
- package/lib/index.js +1094 -29
- package/lib/types/browser-bridge-session.d.ts +349 -0
- package/lib/types/client/index.d.ts +0 -10
- package/lib/types/client/model-sync-client.d.ts +1 -1
- package/lib/types/client/review-client.d.ts +6 -6
- package/lib/types/client/skill-plaza-client.d.ts +1 -1
- package/lib/types/client/tool-timeout-client.d.ts +1 -1
- package/lib/types/client/workspace-limits-client.d.ts +1 -1
- package/lib/types/client/workspace-upgrade-client.d.ts +1 -1
- package/lib/types/connector-state.d.ts +35 -0
- package/package.json +1 -1
- package/skills/browser-bridge-companion/SKILL.md +61 -0
package/lib/client.js
CHANGED
|
@@ -98,7 +98,7 @@ window.__ModuleLoader__.load({
|
|
|
98
98
|
//#region src/client/model-sync-client.ts
|
|
99
99
|
/** Same-origin model-sync calls from the DataOps settings surface. */
|
|
100
100
|
/** Route the plugin's Host half serves for model sharing. */
|
|
101
|
-
const MODEL_SYNC_PATH = "
|
|
101
|
+
const MODEL_SYNC_PATH = "integrations/dataops/model-sync";
|
|
102
102
|
/** Narrow a response body to the status shape, rejecting anything else. */
|
|
103
103
|
function asStatus$2(value) {
|
|
104
104
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
@@ -164,7 +164,7 @@ window.__ModuleLoader__.load({
|
|
|
164
164
|
//#region src/client/workspace-limits-client.ts
|
|
165
165
|
/** Same-origin workspace-limits calls from the DataOps settings surface. */
|
|
166
166
|
/** Route the plugin's Host half serves for workspace limits. */
|
|
167
|
-
const WORKSPACE_LIMITS_PATH = "
|
|
167
|
+
const WORKSPACE_LIMITS_PATH = "integrations/dataops/workspace-limits";
|
|
168
168
|
/** Narrow a response body to the status, rejecting anything else. */
|
|
169
169
|
function asStatus$1(value) {
|
|
170
170
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
@@ -238,7 +238,7 @@ window.__ModuleLoader__.load({
|
|
|
238
238
|
//#region src/client/tool-timeout-client.ts
|
|
239
239
|
/** Same-origin tool-call timeout calls from the DataOps settings surface. */
|
|
240
240
|
/** Route the plugin's Host half serves for the tool-call timeout. */
|
|
241
|
-
const TOOL_TIMEOUT_PATH = "
|
|
241
|
+
const TOOL_TIMEOUT_PATH = "integrations/dataops/tool-timeout";
|
|
242
242
|
/** Narrow a response body to the timeout, rejecting anything else. */
|
|
243
243
|
function asTimeout(value) {
|
|
244
244
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
@@ -541,17 +541,17 @@ window.__ModuleLoader__.load({
|
|
|
541
541
|
//#endregion
|
|
542
542
|
//#region src/client/review-client.ts
|
|
543
543
|
/** Caller identity and review capability. */
|
|
544
|
-
const REVIEW_CONTEXT_PATH = "
|
|
544
|
+
const REVIEW_CONTEXT_PATH = "integrations/dataops/review-context";
|
|
545
545
|
/** Notification list and read receipts. */
|
|
546
|
-
const NOTIFICATIONS_PATH = "
|
|
546
|
+
const NOTIFICATIONS_PATH = "integrations/dataops/review-notifications";
|
|
547
547
|
/** AI scan and the human decision. */
|
|
548
|
-
const REVIEW_ACTION_PATH = "
|
|
548
|
+
const REVIEW_ACTION_PATH = "integrations/dataops/review";
|
|
549
549
|
/** Role matrix, members, departments, and resource scopes. */
|
|
550
|
-
const RBAC_PATH = "
|
|
550
|
+
const RBAC_PATH = "integrations/dataops/rbac";
|
|
551
551
|
/** The three plaza-review switches in the DataOps settings panel. */
|
|
552
|
-
const REVIEW_SETTINGS_PATH = "
|
|
552
|
+
const REVIEW_SETTINGS_PATH = "integrations/dataops/review-settings";
|
|
553
553
|
/** Department CRUD bridge (task-67). */
|
|
554
|
-
const DEPARTMENTS_PATH = "
|
|
554
|
+
const DEPARTMENTS_PATH = "integrations/dataops/departments";
|
|
555
555
|
/** The product defaults, used until DataOps returns its own value. */
|
|
556
556
|
const DEFAULT_REVIEW_SETTINGS = {
|
|
557
557
|
skillPlaza: true,
|
|
@@ -835,22 +835,22 @@ window.__ModuleLoader__.load({
|
|
|
835
835
|
document.head.appendChild(tag);
|
|
836
836
|
}
|
|
837
837
|
var ManagedDataOpsSection_module_css_default = {
|
|
838
|
-
"
|
|
839
|
-
"
|
|
838
|
+
"section": "_2dqzjG_section",
|
|
839
|
+
"actions": "_2dqzjG_actions",
|
|
840
|
+
"reviewActions": "_2dqzjG_reviewActions",
|
|
840
841
|
"copy": "_2dqzjG_copy",
|
|
841
|
-
"row": "_2dqzjG_row",
|
|
842
842
|
"title": "_2dqzjG_title",
|
|
843
|
-
"
|
|
844
|
-
"fields": "_2dqzjG_fields",
|
|
843
|
+
"meta": "_2dqzjG_meta",
|
|
845
844
|
"refusal": "_2dqzjG_refusal",
|
|
846
|
-
"
|
|
845
|
+
"reviewHint": "_2dqzjG_reviewHint",
|
|
846
|
+
"fields": "_2dqzjG_fields",
|
|
847
|
+
"heading": "_2dqzjG_heading",
|
|
847
848
|
"card": "_2dqzjG_card",
|
|
848
|
-
"
|
|
849
|
+
"row": "_2dqzjG_row",
|
|
850
|
+
"reviewRow": "_2dqzjG_reviewRow",
|
|
849
851
|
"status": "_2dqzjG_status",
|
|
850
|
-
"
|
|
851
|
-
"
|
|
852
|
-
"label": "_2dqzjG_label",
|
|
853
|
-
"reviewHint": "_2dqzjG_reviewHint"
|
|
852
|
+
"reviewRows": "_2dqzjG_reviewRows",
|
|
853
|
+
"label": "_2dqzjG_label"
|
|
854
854
|
};
|
|
855
855
|
//#endregion
|
|
856
856
|
//#region src/client/ReviewSettingsCard.tsx
|
|
@@ -1506,7 +1506,7 @@ window.__ModuleLoader__.load({
|
|
|
1506
1506
|
//#endregion
|
|
1507
1507
|
//#region src/client/skill-plaza-client.ts
|
|
1508
1508
|
/** Route the plugin's Host half serves for the plaza. */
|
|
1509
|
-
const SKILL_PLAZA_PATH = "
|
|
1509
|
+
const SKILL_PLAZA_PATH = "integrations/dataops/skill-plaza";
|
|
1510
1510
|
/** Narrow an unknown value to a plaza entry. */
|
|
1511
1511
|
function asSkill(value) {
|
|
1512
1512
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
@@ -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
|
-
"
|
|
1607
|
-
"risk": "_9FdZvq_risk",
|
|
1608
|
-
"emptyText": "_9FdZvq_emptyText",
|
|
1609
|
-
"riskSummary": "_9FdZvq_riskSummary",
|
|
1610
|
-
"reviewError": "_9FdZvq_reviewError",
|
|
1611
|
-
"cardMarks": "_9FdZvq_cardMarks",
|
|
1612
|
-
"empty": "_9FdZvq_empty",
|
|
1613
|
-
"detailButton": "_9FdZvq_detailButton",
|
|
1614
|
-
"dialog": "_9FdZvq_dialog",
|
|
1615
|
-
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1616
|
-
"cardEnd": "_9FdZvq_cardEnd",
|
|
1617
|
-
"cardTitle": "_9FdZvq_cardTitle",
|
|
1618
|
-
"detailRow": "_9FdZvq_detailRow",
|
|
1619
|
-
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
1603
|
+
"tabCount": "_9FdZvq_tabCount",
|
|
1604
|
+
"headRow": "_9FdZvq_headRow",
|
|
1605
|
+
"tagTop": "_9FdZvq_tagTop",
|
|
1606
|
+
"mark": "_9FdZvq_mark",
|
|
1620
1607
|
"cardIcon": "_9FdZvq_cardIcon",
|
|
1608
|
+
"titleCount": "_9FdZvq_titleCount",
|
|
1609
|
+
"empty": "_9FdZvq_empty",
|
|
1610
|
+
"sharedTag": "_9FdZvq_sharedTag",
|
|
1611
|
+
"audit": "_9FdZvq_audit",
|
|
1612
|
+
"findings": "_9FdZvq_findings",
|
|
1621
1613
|
"notice": "_9FdZvq_notice",
|
|
1622
|
-
"
|
|
1614
|
+
"finding": "_9FdZvq_finding",
|
|
1615
|
+
"noteField": "_9FdZvq_noteField",
|
|
1616
|
+
"detail": "_9FdZvq_detail",
|
|
1617
|
+
"findingText": "_9FdZvq_findingText",
|
|
1618
|
+
"cardDesc": "_9FdZvq_cardDesc",
|
|
1623
1619
|
"tabActive": "_9FdZvq_tabActive",
|
|
1624
|
-
"
|
|
1625
|
-
"
|
|
1620
|
+
"detailRow": "_9FdZvq_detailRow",
|
|
1621
|
+
"cardTitle": "_9FdZvq_cardTitle",
|
|
1622
|
+
"title": "_9FdZvq_title",
|
|
1623
|
+
"cards": "_9FdZvq_cards",
|
|
1626
1624
|
"auditFooter": "_9FdZvq_auditFooter",
|
|
1625
|
+
"riskFailed": "_9FdZvq_riskFailed",
|
|
1627
1626
|
"riskScore": "_9FdZvq_riskScore",
|
|
1628
|
-
"
|
|
1629
|
-
"
|
|
1630
|
-
"
|
|
1627
|
+
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1628
|
+
"auditDialog": "_9FdZvq_auditDialog",
|
|
1629
|
+
"card": "_9FdZvq_card",
|
|
1630
|
+
"pendingTag": "_9FdZvq_pendingTag",
|
|
1631
|
+
"tab": "_9FdZvq_tab",
|
|
1632
|
+
"reviewButton": "_9FdZvq_reviewButton",
|
|
1633
|
+
"risk": "_9FdZvq_risk",
|
|
1634
|
+
"emptyText": "_9FdZvq_emptyText",
|
|
1635
|
+
"cardMarks": "_9FdZvq_cardMarks",
|
|
1636
|
+
"head": "_9FdZvq_head",
|
|
1637
|
+
"mine": "_9FdZvq_mine",
|
|
1638
|
+
"riskHead": "_9FdZvq_riskHead",
|
|
1631
1639
|
"demoTag": "_9FdZvq_demoTag",
|
|
1632
|
-
"reviewNote": "_9FdZvq_reviewNote",
|
|
1633
1640
|
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
1634
1641
|
"departmentBar": "_9FdZvq_departmentBar",
|
|
1635
|
-
"
|
|
1636
|
-
"
|
|
1642
|
+
"riskSummary": "_9FdZvq_riskSummary",
|
|
1643
|
+
"severity": "_9FdZvq_severity",
|
|
1644
|
+
"detailValue": "_9FdZvq_detailValue",
|
|
1645
|
+
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
1637
1646
|
"status": "_9FdZvq_status",
|
|
1638
|
-
"
|
|
1639
|
-
"
|
|
1640
|
-
"
|
|
1641
|
-
"reviewButton": "_9FdZvq_reviewButton",
|
|
1642
|
-
"riskHead": "_9FdZvq_riskHead",
|
|
1643
|
-
"finding": "_9FdZvq_finding",
|
|
1644
|
-
"pendingTag": "_9FdZvq_pendingTag",
|
|
1645
|
-
"cardTop": "_9FdZvq_cardTop",
|
|
1646
|
-
"titleCount": "_9FdZvq_titleCount",
|
|
1647
|
-
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1648
|
-
"auditDialog": "_9FdZvq_auditDialog",
|
|
1649
|
-
"mine": "_9FdZvq_mine",
|
|
1647
|
+
"cardEnd": "_9FdZvq_cardEnd",
|
|
1648
|
+
"findingHint": "_9FdZvq_findingHint",
|
|
1649
|
+
"detailLabel": "_9FdZvq_detailLabel",
|
|
1650
1650
|
"tabs": "_9FdZvq_tabs",
|
|
1651
|
-
"
|
|
1652
|
-
"
|
|
1653
|
-
"
|
|
1654
|
-
"
|
|
1655
|
-
"
|
|
1656
|
-
"
|
|
1657
|
-
"
|
|
1658
|
-
"
|
|
1651
|
+
"detailButton": "_9FdZvq_detailButton",
|
|
1652
|
+
"dialog": "_9FdZvq_dialog",
|
|
1653
|
+
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
1654
|
+
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1655
|
+
"cardTop": "_9FdZvq_cardTop",
|
|
1656
|
+
"reviewNote": "_9FdZvq_reviewNote",
|
|
1657
|
+
"reviewError": "_9FdZvq_reviewError",
|
|
1658
|
+
"section": "_9FdZvq_section"
|
|
1659
1659
|
};
|
|
1660
1660
|
//#endregion
|
|
1661
1661
|
//#region src/client/SkillPlazaSection.tsx
|
|
@@ -2312,17 +2312,17 @@ window.__ModuleLoader__.load({
|
|
|
2312
2312
|
var WanxiangBrand_module_css_default = {
|
|
2313
2313
|
"unit-right": "s0HPxG_unit-right",
|
|
2314
2314
|
"unit-core": "s0HPxG_unit-core",
|
|
2315
|
-
"unitLeft": "s0HPxG_unitLeft",
|
|
2316
|
-
"unitTop": "s0HPxG_unitTop",
|
|
2317
|
-
"unitRight": "s0HPxG_unitRight",
|
|
2318
|
-
"unitCore": "s0HPxG_unitCore",
|
|
2319
2315
|
"mark": "s0HPxG_mark",
|
|
2316
|
+
"wordmark": "s0HPxG_wordmark",
|
|
2317
|
+
"unitTop": "s0HPxG_unitTop",
|
|
2320
2318
|
"animatedMark": "s0HPxG_animatedMark",
|
|
2319
|
+
"unitLeft": "s0HPxG_unitLeft",
|
|
2320
|
+
"unitCore": "s0HPxG_unitCore",
|
|
2321
|
+
"unit-left": "s0HPxG_unit-left",
|
|
2321
2322
|
"sidebarName": "s0HPxG_sidebarName",
|
|
2322
|
-
"
|
|
2323
|
-
"harness": "s0HPxG_harness",
|
|
2323
|
+
"unitRight": "s0HPxG_unitRight",
|
|
2324
2324
|
"unit-top": "s0HPxG_unit-top",
|
|
2325
|
-
"
|
|
2325
|
+
"harness": "s0HPxG_harness"
|
|
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
|
+
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
2736
|
+
"panel": "PNbOqW_panel",
|
|
2737
|
+
"copied": "PNbOqW_copied",
|
|
2738
|
+
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
2739
|
+
"candidates": "PNbOqW_candidates",
|
|
2740
|
+
"treeActions": "PNbOqW_treeActions",
|
|
2735
2741
|
"comboboxList": "PNbOqW_comboboxList",
|
|
2736
|
-
"deptAdmins": "PNbOqW_deptAdmins",
|
|
2737
|
-
"treeName": "PNbOqW_treeName",
|
|
2738
|
-
"rowActions": "PNbOqW_rowActions",
|
|
2739
2742
|
"head": "PNbOqW_head",
|
|
2740
|
-
"
|
|
2741
|
-
"
|
|
2743
|
+
"tabGroup": "PNbOqW_tabGroup",
|
|
2744
|
+
"treeRow": "PNbOqW_treeRow",
|
|
2745
|
+
"roleTags": "PNbOqW_roleTags",
|
|
2746
|
+
"subtitle": "PNbOqW_subtitle",
|
|
2747
|
+
"pager": "PNbOqW_pager",
|
|
2748
|
+
"panelHead": "PNbOqW_panelHead",
|
|
2749
|
+
"tabBadge": "PNbOqW_tabBadge",
|
|
2750
|
+
"matrixGroup": "PNbOqW_matrixGroup",
|
|
2751
|
+
"protected": "PNbOqW_protected",
|
|
2752
|
+
"treeRoot": "PNbOqW_treeRoot",
|
|
2753
|
+
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
2754
|
+
"roleGrant": "PNbOqW_roleGrant",
|
|
2755
|
+
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
2742
2756
|
"roleTag": "PNbOqW_roleTag",
|
|
2757
|
+
"page": "PNbOqW_page",
|
|
2743
2758
|
"tabDivider": "PNbOqW_tabDivider",
|
|
2744
|
-
"
|
|
2745
|
-
"
|
|
2746
|
-
"
|
|
2759
|
+
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
2760
|
+
"adminTag": "PNbOqW_adminTag",
|
|
2761
|
+
"tableScroll": "PNbOqW_tableScroll",
|
|
2762
|
+
"treeSpacer": "PNbOqW_treeSpacer",
|
|
2763
|
+
"treeToggle": "PNbOqW_treeToggle",
|
|
2764
|
+
"matrixRoleCell": "PNbOqW_matrixRoleCell",
|
|
2765
|
+
"matrixScroll": "PNbOqW_matrixScroll",
|
|
2766
|
+
"matrixNote": "PNbOqW_matrixNote",
|
|
2767
|
+
"muted": "PNbOqW_muted",
|
|
2768
|
+
"tabActive": "PNbOqW_tabActive",
|
|
2769
|
+
"matrixRoleHead": "PNbOqW_matrixRoleHead",
|
|
2770
|
+
"roleSearchWrap": "PNbOqW_roleSearchWrap",
|
|
2747
2771
|
"dialogBody": "PNbOqW_dialogBody",
|
|
2748
|
-
"
|
|
2749
|
-
"notice": "PNbOqW_notice",
|
|
2750
|
-
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
2751
|
-
"roleGrant": "PNbOqW_roleGrant",
|
|
2752
|
-
"panelFoot": "PNbOqW_panelFoot",
|
|
2753
|
-
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
2754
|
-
"pager": "PNbOqW_pager",
|
|
2755
|
-
"error": "PNbOqW_error",
|
|
2756
|
-
"matrixGroup": "PNbOqW_matrixGroup",
|
|
2757
|
-
"tabBadge": "PNbOqW_tabBadge",
|
|
2772
|
+
"headText": "PNbOqW_headText",
|
|
2758
2773
|
"search": "PNbOqW_search",
|
|
2759
|
-
"
|
|
2760
|
-
"
|
|
2761
|
-
"
|
|
2762
|
-
"
|
|
2763
|
-
"
|
|
2764
|
-
"
|
|
2765
|
-
"
|
|
2774
|
+
"roleSearchIcon": "PNbOqW_roleSearchIcon",
|
|
2775
|
+
"readOnly": "PNbOqW_readOnly",
|
|
2776
|
+
"field": "PNbOqW_field",
|
|
2777
|
+
"matrixModule": "PNbOqW_matrixModule",
|
|
2778
|
+
"permCopy": "PNbOqW_permCopy",
|
|
2779
|
+
"panelFoot": "PNbOqW_panelFoot",
|
|
2780
|
+
"departments": "PNbOqW_departments",
|
|
2766
2781
|
"onlyAdmin": "PNbOqW_onlyAdmin",
|
|
2767
|
-
"
|
|
2768
|
-
"
|
|
2769
|
-
"
|
|
2770
|
-
"
|
|
2782
|
+
"rowActions": "PNbOqW_rowActions",
|
|
2783
|
+
"detailGrid": "PNbOqW_detailGrid",
|
|
2784
|
+
"waiting": "PNbOqW_waiting",
|
|
2785
|
+
"department": "PNbOqW_department",
|
|
2786
|
+
"notice": "PNbOqW_notice",
|
|
2771
2787
|
"tab": "PNbOqW_tab",
|
|
2772
|
-
"protected": "PNbOqW_protected",
|
|
2773
|
-
"demo": "PNbOqW_demo",
|
|
2774
|
-
"headActions": "PNbOqW_headActions",
|
|
2775
|
-
"panel": "PNbOqW_panel",
|
|
2776
2788
|
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
2777
|
-
"matrixToolActive": "PNbOqW_matrixToolActive",
|
|
2778
|
-
"matrixRoleCell": "PNbOqW_matrixRoleCell",
|
|
2779
|
-
"roleSearchIcon": "PNbOqW_roleSearchIcon",
|
|
2780
|
-
"matrixHead": "PNbOqW_matrixHead",
|
|
2781
|
-
"matrixScroll": "PNbOqW_matrixScroll",
|
|
2782
|
-
"copied": "PNbOqW_copied",
|
|
2783
|
-
"roleTags": "PNbOqW_roleTags",
|
|
2784
|
-
"page": "PNbOqW_page",
|
|
2785
|
-
"roleRevoke": "PNbOqW_roleRevoke",
|
|
2786
|
-
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
2787
|
-
"table": "PNbOqW_table",
|
|
2788
2789
|
"candidate": "PNbOqW_candidate",
|
|
2789
|
-
"
|
|
2790
|
+
"treeName": "PNbOqW_treeName",
|
|
2791
|
+
"headActions": "PNbOqW_headActions",
|
|
2792
|
+
"empty": "PNbOqW_empty",
|
|
2793
|
+
"permission": "PNbOqW_permission",
|
|
2794
|
+
"error": "PNbOqW_error",
|
|
2795
|
+
"matrix": "PNbOqW_matrix",
|
|
2796
|
+
"matrixToolActive": "PNbOqW_matrixToolActive",
|
|
2797
|
+
"demo": "PNbOqW_demo",
|
|
2790
2798
|
"dialog": "PNbOqW_dialog",
|
|
2791
|
-
"candidates": "PNbOqW_candidates",
|
|
2792
|
-
"treeToggle": "PNbOqW_treeToggle",
|
|
2793
|
-
"tabGroup": "PNbOqW_tabGroup",
|
|
2794
|
-
"matrixTool": "PNbOqW_matrixTool",
|
|
2795
|
-
"panelHead": "PNbOqW_panelHead",
|
|
2796
|
-
"comboboxOption": "PNbOqW_comboboxOption",
|
|
2797
|
-
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
2798
|
-
"comboboxHint": "PNbOqW_comboboxHint",
|
|
2799
|
-
"field": "PNbOqW_field",
|
|
2800
|
-
"departments": "PNbOqW_departments",
|
|
2801
|
-
"matrixModule": "PNbOqW_matrixModule",
|
|
2802
|
-
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
2803
|
-
"headText": "PNbOqW_headText",
|
|
2804
|
-
"title": "PNbOqW_title",
|
|
2805
2799
|
"sectionTitle": "PNbOqW_sectionTitle",
|
|
2806
|
-
"
|
|
2807
|
-
"
|
|
2808
|
-
"
|
|
2809
|
-
"
|
|
2810
|
-
"
|
|
2811
|
-
"
|
|
2812
|
-
"
|
|
2813
|
-
"readOnly": "PNbOqW_readOnly",
|
|
2814
|
-
"roleCell": "PNbOqW_roleCell",
|
|
2815
|
-
"permission": "PNbOqW_permission",
|
|
2816
|
-
"subtitle": "PNbOqW_subtitle",
|
|
2817
|
-
"roleSearchWrap": "PNbOqW_roleSearchWrap",
|
|
2818
|
-
"treeActions": "PNbOqW_treeActions",
|
|
2800
|
+
"treeChildren": "PNbOqW_treeChildren",
|
|
2801
|
+
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
2802
|
+
"title": "PNbOqW_title",
|
|
2803
|
+
"comboboxHint": "PNbOqW_comboboxHint",
|
|
2804
|
+
"dialogHint": "PNbOqW_dialogHint",
|
|
2805
|
+
"dialogFooter": "PNbOqW_dialogFooter",
|
|
2806
|
+
"roleRevoke": "PNbOqW_roleRevoke",
|
|
2819
2807
|
"tabs": "PNbOqW_tabs",
|
|
2820
|
-
"
|
|
2808
|
+
"permDescription": "PNbOqW_permDescription",
|
|
2809
|
+
"deptAdmins": "PNbOqW_deptAdmins",
|
|
2810
|
+
"combobox": "PNbOqW_combobox",
|
|
2811
|
+
"roleSearch": "PNbOqW_roleSearch",
|
|
2812
|
+
"matrixPermission": "PNbOqW_matrixPermission",
|
|
2813
|
+
"matrixTool": "PNbOqW_matrixTool",
|
|
2814
|
+
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
2815
|
+
"roleCell": "PNbOqW_roleCell",
|
|
2816
|
+
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
2817
|
+
"table": "PNbOqW_table",
|
|
2818
|
+
"comboboxOption": "PNbOqW_comboboxOption",
|
|
2819
|
+
"matrixHead": "PNbOqW_matrixHead",
|
|
2820
|
+
"scopeBadge": "PNbOqW_scopeBadge"
|
|
2821
2821
|
};
|
|
2822
2822
|
//#endregion
|
|
2823
2823
|
//#region src/client/combobox.ts
|
|
@@ -4395,7 +4395,7 @@ window.__ModuleLoader__.load({
|
|
|
4395
4395
|
//#region src/client/workspace-upgrade-client.ts
|
|
4396
4396
|
/** Same-origin calls for the workspace image upgrade banner. */
|
|
4397
4397
|
/** Route the plugin's Host half serves for upgrade detection and start. */
|
|
4398
|
-
const WORKSPACE_UPGRADE_PATH = "
|
|
4398
|
+
const WORKSPACE_UPGRADE_PATH = "integrations/dataops/workspace-upgrade";
|
|
4399
4399
|
/** Narrow an unknown response into the status contract. */
|
|
4400
4400
|
function asStatus(value) {
|
|
4401
4401
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
@@ -4468,18 +4468,18 @@ window.__ModuleLoader__.load({
|
|
|
4468
4468
|
document.head.appendChild(tag);
|
|
4469
4469
|
}
|
|
4470
4470
|
var WorkspaceUpgradePrompt_module_css_default = {
|
|
4471
|
-
"body": "razUfG_body",
|
|
4472
|
-
"title": "razUfG_title",
|
|
4473
|
-
"sessionPath": "razUfG_sessionPath",
|
|
4474
4471
|
"actions": "razUfG_actions",
|
|
4475
|
-
"sessionRow": "razUfG_sessionRow",
|
|
4476
|
-
"sessionTitle": "razUfG_sessionTitle",
|
|
4477
4472
|
"banner": "razUfG_banner",
|
|
4478
|
-
"
|
|
4473
|
+
"title": "razUfG_title",
|
|
4474
|
+
"dialogBody": "razUfG_dialogBody",
|
|
4475
|
+
"dialogText": "razUfG_dialogText",
|
|
4479
4476
|
"sessionList": "razUfG_sessionList",
|
|
4477
|
+
"sessionRow": "razUfG_sessionRow",
|
|
4480
4478
|
"error": "razUfG_error",
|
|
4481
|
-
"
|
|
4482
|
-
"
|
|
4479
|
+
"copy": "razUfG_copy",
|
|
4480
|
+
"sessionTitle": "razUfG_sessionTitle",
|
|
4481
|
+
"body": "razUfG_body",
|
|
4482
|
+
"sessionPath": "razUfG_sessionPath"
|
|
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
|
-
"bell": "tE0trG_bell",
|
|
4796
|
-
"rowTime": "tE0trG_rowTime",
|
|
4797
|
-
"rowTitle": "tE0trG_rowTitle",
|
|
4798
4795
|
"row": "tE0trG_row",
|
|
4799
|
-
"
|
|
4800
|
-
"dialog": "tE0trG_dialog",
|
|
4801
|
-
"rowIcon": "tE0trG_rowIcon",
|
|
4796
|
+
"list": "tE0trG_list",
|
|
4802
4797
|
"rowBody": "tE0trG_rowBody",
|
|
4803
|
-
"
|
|
4804
|
-
"
|
|
4798
|
+
"actions": "tE0trG_actions",
|
|
4799
|
+
"dialog": "tE0trG_dialog",
|
|
4805
4800
|
"pager": "tE0trG_pager",
|
|
4801
|
+
"bell": "tE0trG_bell",
|
|
4802
|
+
"demo": "tE0trG_demo",
|
|
4803
|
+
"empty": "tE0trG_empty",
|
|
4806
4804
|
"rowMeta": "tE0trG_rowMeta",
|
|
4807
|
-
"
|
|
4808
|
-
"
|
|
4805
|
+
"badge": "tE0trG_badge",
|
|
4806
|
+
"rowTitle": "tE0trG_rowTitle",
|
|
4807
|
+
"rowText": "tE0trG_rowText",
|
|
4808
|
+
"button": "tE0trG_button",
|
|
4809
|
+
"rowIcon": "tE0trG_rowIcon",
|
|
4810
|
+
"rowTime": "tE0trG_rowTime",
|
|
4809
4811
|
"linkButton": "tE0trG_linkButton",
|
|
4810
|
-
"
|
|
4811
|
-
"list": "tE0trG_list",
|
|
4812
|
-
"badge": "tE0trG_badge"
|
|
4812
|
+
"dot": "tE0trG_dot"
|
|
4813
4813
|
};
|
|
4814
4814
|
//#endregion
|
|
4815
4815
|
//#region src/client/NotificationBell.tsx
|
|
@@ -5566,7 +5566,7 @@ window.__ModuleLoader__.load({
|
|
|
5566
5566
|
let live = true;
|
|
5567
5567
|
const load = async () => {
|
|
5568
5568
|
try {
|
|
5569
|
-
const response = await fetch("
|
|
5569
|
+
const response = await fetch("integrations/dataops/resource-tab/config", { cache: "no-store" });
|
|
5570
5570
|
if (!response.ok) throw new Error("HTTP " + response.status.toString());
|
|
5571
5571
|
const body = await response.json();
|
|
5572
5572
|
if (!live) return;
|
|
@@ -5792,7 +5792,7 @@ window.__ModuleLoader__.load({
|
|
|
5792
5792
|
*/
|
|
5793
5793
|
/** Tab id shared with the client registration. */
|
|
5794
5794
|
const RESOURCE_TAB_TYPE = "dataops-resources";
|
|
5795
|
-
const EVENTS_PATH = "
|
|
5795
|
+
const EVENTS_PATH = "integrations/dataops/open-resource/events";
|
|
5796
5796
|
const isOpenResourceEvent = (value) => {
|
|
5797
5797
|
if (typeof value !== "object" || value === null) return false;
|
|
5798
5798
|
const record = value;
|
|
@@ -6162,7 +6162,7 @@ window.__ModuleLoader__.load({
|
|
|
6162
6162
|
//#region src/client/index.ts
|
|
6163
6163
|
const NS = "settings.dataops-managed";
|
|
6164
6164
|
const AUTH_UPDATED_MESSAGE = "dataops-auth-updated";
|
|
6165
|
-
const MANAGED_AUTH_PATH = "
|
|
6165
|
+
const MANAGED_AUTH_PATH = "integrations/dataops/managed-auth";
|
|
6166
6166
|
/** Sidebar entry and main page id for the permission centre. */
|
|
6167
6167
|
const PERMISSION_PANEL_ID = "dataops-permissions";
|
|
6168
6168
|
/** Required client services for the managed DataOps Settings section and the resource tab bridge. */
|
|
@@ -6195,12 +6195,56 @@ window.__ModuleLoader__.load({
|
|
|
6195
6195
|
*
|
|
6196
6196
|
* @param ctx - DSH client context with locale, slots and the sidebar foot.
|
|
6197
6197
|
*/
|
|
6198
|
+
/**
|
|
6199
|
+
* 自动配对:DSH 页面本身就是用户已经打开的网页,不需要再让用户去另一个「桥接页面」。
|
|
6200
|
+
*
|
|
6201
|
+
* 页面加载后探测本机 Companion(127.0.0.1:8932)。如果它已启动但未配对,向 Host 要一个
|
|
6202
|
+
* 一次性配对码,直接 POST 给 Companion;Companion 自己建立出站隧道,插件随后自动建会话。
|
|
6203
|
+
* 整个过程用户无感;失败(未安装/未启动)就静默重试,不弹窗、不打断对话。
|
|
6204
|
+
*/
|
|
6205
|
+
const autoPairLocalBridge = async () => {
|
|
6206
|
+
try {
|
|
6207
|
+
const probe = new AbortController();
|
|
6208
|
+
const timer = window.setTimeout(() => probe.abort(), 1500);
|
|
6209
|
+
const status = await fetch("http://127.0.0.1:8932/status", {
|
|
6210
|
+
signal: probe.signal,
|
|
6211
|
+
cache: "no-store"
|
|
6212
|
+
});
|
|
6213
|
+
window.clearTimeout(timer);
|
|
6214
|
+
if (!status.ok) return;
|
|
6215
|
+
if ((await status.json()).paired === true) return;
|
|
6216
|
+
const created = await fetch("/integrations/dataops/browser-bridge/auto-pair", { method: "POST" });
|
|
6217
|
+
if (!created.ok) return;
|
|
6218
|
+
const payload = await created.json();
|
|
6219
|
+
if (typeof payload.code !== "string" || typeof payload.serverUrl !== "string") return;
|
|
6220
|
+
await fetch("http://127.0.0.1:8932/pair", {
|
|
6221
|
+
method: "POST",
|
|
6222
|
+
headers: { "content-type": "application/json" },
|
|
6223
|
+
body: JSON.stringify({
|
|
6224
|
+
code: payload.code,
|
|
6225
|
+
serverUrl: payload.serverUrl
|
|
6226
|
+
})
|
|
6227
|
+
});
|
|
6228
|
+
} catch {}
|
|
6229
|
+
};
|
|
6198
6230
|
function apply(ctx) {
|
|
6199
6231
|
ctx.effect(() => ctx.locale.register(NS, {
|
|
6200
6232
|
zh,
|
|
6201
6233
|
en
|
|
6202
6234
|
}), "dataops-managed: settings copy");
|
|
6203
6235
|
installWanxiangBranding(ctx);
|
|
6236
|
+
ctx.effect(() => {
|
|
6237
|
+
let disposed = false;
|
|
6238
|
+
const run = () => {
|
|
6239
|
+
if (!disposed) autoPairLocalBridge();
|
|
6240
|
+
};
|
|
6241
|
+
run();
|
|
6242
|
+
const timer = window.setInterval(run, 3e4);
|
|
6243
|
+
return () => {
|
|
6244
|
+
disposed = true;
|
|
6245
|
+
window.clearInterval(timer);
|
|
6246
|
+
};
|
|
6247
|
+
}, "dataops-managed: browser bridge auto pair");
|
|
6204
6248
|
/**
|
|
6205
6249
|
* The DSH logo returns to the portal page the reader entered from.
|
|
6206
6250
|
*
|