@sparkelf/dsh-dataops-managed 0.3.51 → 0.3.53
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 +212 -168
- package/lib/client.js.map +1 -1
- package/lib/index.js +1096 -30
- 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
|
-
"heading": "_2dqzjG_heading",
|
|
839
|
-
"reviewRows": "_2dqzjG_reviewRows",
|
|
840
|
-
"copy": "_2dqzjG_copy",
|
|
841
|
-
"row": "_2dqzjG_row",
|
|
842
838
|
"title": "_2dqzjG_title",
|
|
843
|
-
"
|
|
844
|
-
"fields": "_2dqzjG_fields",
|
|
845
|
-
"refusal": "_2dqzjG_refusal",
|
|
839
|
+
"row": "_2dqzjG_row",
|
|
846
840
|
"reviewRow": "_2dqzjG_reviewRow",
|
|
847
|
-
"
|
|
848
|
-
"
|
|
841
|
+
"refusal": "_2dqzjG_refusal",
|
|
842
|
+
"heading": "_2dqzjG_heading",
|
|
849
843
|
"status": "_2dqzjG_status",
|
|
850
|
-
"
|
|
844
|
+
"fields": "_2dqzjG_fields",
|
|
845
|
+
"card": "_2dqzjG_card",
|
|
846
|
+
"reviewHint": "_2dqzjG_reviewHint",
|
|
847
|
+
"reviewActions": "_2dqzjG_reviewActions",
|
|
851
848
|
"meta": "_2dqzjG_meta",
|
|
852
849
|
"label": "_2dqzjG_label",
|
|
853
|
-
"
|
|
850
|
+
"actions": "_2dqzjG_actions",
|
|
851
|
+
"reviewRows": "_2dqzjG_reviewRows",
|
|
852
|
+
"section": "_2dqzjG_section",
|
|
853
|
+
"copy": "_2dqzjG_copy"
|
|
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
|
-
"
|
|
1608
|
-
"emptyText": "_9FdZvq_emptyText",
|
|
1609
|
-
"riskSummary": "_9FdZvq_riskSummary",
|
|
1610
|
-
"reviewError": "_9FdZvq_reviewError",
|
|
1611
|
-
"cardMarks": "_9FdZvq_cardMarks",
|
|
1603
|
+
"title": "_9FdZvq_title",
|
|
1604
|
+
"detailLabel": "_9FdZvq_detailLabel",
|
|
1605
|
+
"mark": "_9FdZvq_mark",
|
|
1606
|
+
"cardTop": "_9FdZvq_cardTop",
|
|
1607
|
+
"card": "_9FdZvq_card",
|
|
1612
1608
|
"empty": "_9FdZvq_empty",
|
|
1609
|
+
"cardIcon": "_9FdZvq_cardIcon",
|
|
1610
|
+
"tabs": "_9FdZvq_tabs",
|
|
1611
|
+
"reviewNote": "_9FdZvq_reviewNote",
|
|
1612
|
+
"findings": "_9FdZvq_findings",
|
|
1613
|
+
"finding": "_9FdZvq_finding",
|
|
1614
|
+
"demoTag": "_9FdZvq_demoTag",
|
|
1615
|
+
"cardDesc": "_9FdZvq_cardDesc",
|
|
1616
|
+
"tabCount": "_9FdZvq_tabCount",
|
|
1617
|
+
"detailValue": "_9FdZvq_detailValue",
|
|
1613
1618
|
"detailButton": "_9FdZvq_detailButton",
|
|
1614
|
-
"
|
|
1615
|
-
"
|
|
1619
|
+
"titleCount": "_9FdZvq_titleCount",
|
|
1620
|
+
"cards": "_9FdZvq_cards",
|
|
1621
|
+
"findingText": "_9FdZvq_findingText",
|
|
1616
1622
|
"cardEnd": "_9FdZvq_cardEnd",
|
|
1617
|
-
"
|
|
1618
|
-
"
|
|
1623
|
+
"cardMarks": "_9FdZvq_cardMarks",
|
|
1624
|
+
"riskSummary": "_9FdZvq_riskSummary",
|
|
1625
|
+
"departmentBar": "_9FdZvq_departmentBar",
|
|
1626
|
+
"audit": "_9FdZvq_audit",
|
|
1627
|
+
"riskHead": "_9FdZvq_riskHead",
|
|
1628
|
+
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
1619
1629
|
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
1620
|
-
"
|
|
1621
|
-
"
|
|
1622
|
-
"tab": "_9FdZvq_tab",
|
|
1623
|
-
"tabActive": "_9FdZvq_tabActive",
|
|
1630
|
+
"dialog": "_9FdZvq_dialog",
|
|
1631
|
+
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1624
1632
|
"tagTop": "_9FdZvq_tagTop",
|
|
1625
|
-
"sharedTag": "_9FdZvq_sharedTag",
|
|
1626
1633
|
"auditFooter": "_9FdZvq_auditFooter",
|
|
1627
|
-
"riskScore": "_9FdZvq_riskScore",
|
|
1628
1634
|
"severity": "_9FdZvq_severity",
|
|
1629
|
-
"
|
|
1635
|
+
"noteField": "_9FdZvq_noteField",
|
|
1636
|
+
"tabActive": "_9FdZvq_tabActive",
|
|
1637
|
+
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
1630
1638
|
"findingHint": "_9FdZvq_findingHint",
|
|
1631
|
-
"
|
|
1632
|
-
"reviewNote": "_9FdZvq_reviewNote",
|
|
1633
|
-
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
1634
|
-
"departmentBar": "_9FdZvq_departmentBar",
|
|
1635
|
-
"findings": "_9FdZvq_findings",
|
|
1639
|
+
"notice": "_9FdZvq_notice",
|
|
1636
1640
|
"section": "_9FdZvq_section",
|
|
1641
|
+
"emptyText": "_9FdZvq_emptyText",
|
|
1642
|
+
"headRow": "_9FdZvq_headRow",
|
|
1643
|
+
"sharedTag": "_9FdZvq_sharedTag",
|
|
1644
|
+
"riskScore": "_9FdZvq_riskScore",
|
|
1637
1645
|
"status": "_9FdZvq_status",
|
|
1638
|
-
"
|
|
1639
|
-
"
|
|
1640
|
-
"
|
|
1641
|
-
"reviewButton": "_9FdZvq_reviewButton",
|
|
1642
|
-
"riskHead": "_9FdZvq_riskHead",
|
|
1643
|
-
"finding": "_9FdZvq_finding",
|
|
1646
|
+
"detailRow": "_9FdZvq_detailRow",
|
|
1647
|
+
"tab": "_9FdZvq_tab",
|
|
1648
|
+
"risk": "_9FdZvq_risk",
|
|
1644
1649
|
"pendingTag": "_9FdZvq_pendingTag",
|
|
1645
|
-
"
|
|
1646
|
-
"
|
|
1647
|
-
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1648
|
-
"auditDialog": "_9FdZvq_auditDialog",
|
|
1649
|
-
"mine": "_9FdZvq_mine",
|
|
1650
|
-
"tabs": "_9FdZvq_tabs",
|
|
1650
|
+
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1651
|
+
"reviewButton": "_9FdZvq_reviewButton",
|
|
1651
1652
|
"riskFailed": "_9FdZvq_riskFailed",
|
|
1652
|
-
"
|
|
1653
|
-
"
|
|
1654
|
-
"
|
|
1655
|
-
"
|
|
1656
|
-
"
|
|
1657
|
-
"
|
|
1658
|
-
"detailLabel": "_9FdZvq_detailLabel"
|
|
1653
|
+
"mine": "_9FdZvq_mine",
|
|
1654
|
+
"detail": "_9FdZvq_detail",
|
|
1655
|
+
"auditDialog": "_9FdZvq_auditDialog",
|
|
1656
|
+
"reviewError": "_9FdZvq_reviewError",
|
|
1657
|
+
"cardTitle": "_9FdZvq_cardTitle",
|
|
1658
|
+
"head": "_9FdZvq_head"
|
|
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
|
-
"
|
|
2314
|
-
"
|
|
2315
|
-
"unitLeft": "s0HPxG_unitLeft",
|
|
2316
|
-
"unitTop": "s0HPxG_unitTop",
|
|
2317
|
-
"unitRight": "s0HPxG_unitRight",
|
|
2313
|
+
"wordmark": "s0HPxG_wordmark",
|
|
2314
|
+
"harness": "s0HPxG_harness",
|
|
2318
2315
|
"unitCore": "s0HPxG_unitCore",
|
|
2319
2316
|
"mark": "s0HPxG_mark",
|
|
2320
|
-
"animatedMark": "s0HPxG_animatedMark",
|
|
2321
2317
|
"sidebarName": "s0HPxG_sidebarName",
|
|
2322
|
-
"wordmark": "s0HPxG_wordmark",
|
|
2323
|
-
"harness": "s0HPxG_harness",
|
|
2324
2318
|
"unit-top": "s0HPxG_unit-top",
|
|
2325
|
-
"unit-left": "s0HPxG_unit-left"
|
|
2319
|
+
"unit-left": "s0HPxG_unit-left",
|
|
2320
|
+
"unitTop": "s0HPxG_unitTop",
|
|
2321
|
+
"unitLeft": "s0HPxG_unitLeft",
|
|
2322
|
+
"unit-right": "s0HPxG_unit-right",
|
|
2323
|
+
"unit-core": "s0HPxG_unit-core",
|
|
2324
|
+
"animatedMark": "s0HPxG_animatedMark",
|
|
2325
|
+
"unitRight": "s0HPxG_unitRight"
|
|
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
|
-
"
|
|
2735
|
+
"headText": "PNbOqW_headText",
|
|
2736
|
+
"matrixTool": "PNbOqW_matrixTool",
|
|
2736
2737
|
"deptAdmins": "PNbOqW_deptAdmins",
|
|
2737
|
-
"
|
|
2738
|
-
"
|
|
2739
|
-
"
|
|
2738
|
+
"treeSpacer": "PNbOqW_treeSpacer",
|
|
2739
|
+
"tabs": "PNbOqW_tabs",
|
|
2740
|
+
"pager": "PNbOqW_pager",
|
|
2741
|
+
"treeChildren": "PNbOqW_treeChildren",
|
|
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",
|
|
2753
|
+
"matrixGroup": "PNbOqW_matrixGroup",
|
|
2754
|
+
"subtitle": "PNbOqW_subtitle",
|
|
2755
|
+
"permDescription": "PNbOqW_permDescription",
|
|
2740
2756
|
"permCopy": "PNbOqW_permCopy",
|
|
2741
|
-
"detailGrid": "PNbOqW_detailGrid",
|
|
2742
|
-
"roleTag": "PNbOqW_roleTag",
|
|
2743
|
-
"tabDivider": "PNbOqW_tabDivider",
|
|
2744
|
-
"empty": "PNbOqW_empty",
|
|
2745
2757
|
"waiting": "PNbOqW_waiting",
|
|
2746
2758
|
"matrixPermission": "PNbOqW_matrixPermission",
|
|
2747
|
-
"
|
|
2748
|
-
"
|
|
2749
|
-
"
|
|
2759
|
+
"headActions": "PNbOqW_headActions",
|
|
2760
|
+
"demo": "PNbOqW_demo",
|
|
2761
|
+
"dialog": "PNbOqW_dialog",
|
|
2762
|
+
"copied": "PNbOqW_copied",
|
|
2750
2763
|
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
2764
|
+
"sectionTitle": "PNbOqW_sectionTitle",
|
|
2765
|
+
"matrixHead": "PNbOqW_matrixHead",
|
|
2766
|
+
"treeRow": "PNbOqW_treeRow",
|
|
2751
2767
|
"roleGrant": "PNbOqW_roleGrant",
|
|
2752
|
-
"
|
|
2753
|
-
"
|
|
2754
|
-
"
|
|
2768
|
+
"matrixRoleHead": "PNbOqW_matrixRoleHead",
|
|
2769
|
+
"roleSearchIcon": "PNbOqW_roleSearchIcon",
|
|
2770
|
+
"tableScroll": "PNbOqW_tableScroll",
|
|
2771
|
+
"matrixNote": "PNbOqW_matrixNote",
|
|
2755
2772
|
"error": "PNbOqW_error",
|
|
2756
|
-
"matrixGroup": "PNbOqW_matrixGroup",
|
|
2757
|
-
"tabBadge": "PNbOqW_tabBadge",
|
|
2758
|
-
"search": "PNbOqW_search",
|
|
2759
|
-
"dialogFooter": "PNbOqW_dialogFooter",
|
|
2760
|
-
"roleSearch": "PNbOqW_roleSearch",
|
|
2761
|
-
"matrix": "PNbOqW_matrix",
|
|
2762
|
-
"department": "PNbOqW_department",
|
|
2763
|
-
"dialogHint": "PNbOqW_dialogHint",
|
|
2764
|
-
"combobox": "PNbOqW_combobox",
|
|
2765
|
-
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
2766
2773
|
"onlyAdmin": "PNbOqW_onlyAdmin",
|
|
2767
|
-
"
|
|
2774
|
+
"roleTag": "PNbOqW_roleTag",
|
|
2775
|
+
"table": "PNbOqW_table",
|
|
2776
|
+
"treeName": "PNbOqW_treeName",
|
|
2777
|
+
"tabActive": "PNbOqW_tabActive",
|
|
2778
|
+
"department": "PNbOqW_department",
|
|
2779
|
+
"dialogFooter": "PNbOqW_dialogFooter",
|
|
2780
|
+
"search": "PNbOqW_search",
|
|
2781
|
+
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
2782
|
+
"empty": "PNbOqW_empty",
|
|
2783
|
+
"dialogBody": "PNbOqW_dialogBody",
|
|
2784
|
+
"panelHead": "PNbOqW_panelHead",
|
|
2768
2785
|
"treeRoot": "PNbOqW_treeRoot",
|
|
2769
|
-
"
|
|
2770
|
-
"
|
|
2771
|
-
"
|
|
2786
|
+
"comboboxOption": "PNbOqW_comboboxOption",
|
|
2787
|
+
"treeActions": "PNbOqW_treeActions",
|
|
2788
|
+
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
2789
|
+
"rowActions": "PNbOqW_rowActions",
|
|
2790
|
+
"readOnly": "PNbOqW_readOnly",
|
|
2791
|
+
"roleCell": "PNbOqW_roleCell",
|
|
2792
|
+
"tabGroup": "PNbOqW_tabGroup",
|
|
2793
|
+
"notice": "PNbOqW_notice",
|
|
2772
2794
|
"protected": "PNbOqW_protected",
|
|
2773
|
-
"demo": "PNbOqW_demo",
|
|
2774
|
-
"headActions": "PNbOqW_headActions",
|
|
2775
|
-
"panel": "PNbOqW_panel",
|
|
2776
|
-
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
2777
2795
|
"matrixToolActive": "PNbOqW_matrixToolActive",
|
|
2778
|
-
"
|
|
2779
|
-
"
|
|
2780
|
-
"matrixHead": "PNbOqW_matrixHead",
|
|
2781
|
-
"matrixScroll": "PNbOqW_matrixScroll",
|
|
2782
|
-
"copied": "PNbOqW_copied",
|
|
2796
|
+
"combobox": "PNbOqW_combobox",
|
|
2797
|
+
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
2783
2798
|
"roleTags": "PNbOqW_roleTags",
|
|
2784
|
-
"
|
|
2785
|
-
"
|
|
2786
|
-
"
|
|
2787
|
-
"
|
|
2799
|
+
"tab": "PNbOqW_tab",
|
|
2800
|
+
"roleSearch": "PNbOqW_roleSearch",
|
|
2801
|
+
"tabDivider": "PNbOqW_tabDivider",
|
|
2802
|
+
"tabBadge": "PNbOqW_tabBadge",
|
|
2803
|
+
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
2804
|
+
"matrix": "PNbOqW_matrix",
|
|
2805
|
+
"panelFoot": "PNbOqW_panelFoot",
|
|
2806
|
+
"departments": "PNbOqW_departments",
|
|
2788
2807
|
"candidate": "PNbOqW_candidate",
|
|
2789
|
-
"tabActive": "PNbOqW_tabActive",
|
|
2790
|
-
"dialog": "PNbOqW_dialog",
|
|
2791
|
-
"candidates": "PNbOqW_candidates",
|
|
2792
2808
|
"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
2809
|
"field": "PNbOqW_field",
|
|
2800
|
-
"
|
|
2801
|
-
"
|
|
2802
|
-
"
|
|
2803
|
-
"
|
|
2804
|
-
"
|
|
2805
|
-
"
|
|
2806
|
-
"
|
|
2807
|
-
"
|
|
2808
|
-
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
2809
|
-
"treeRow": "PNbOqW_treeRow",
|
|
2810
|
-
"matrixRoleHead": "PNbOqW_matrixRoleHead",
|
|
2811
|
-
"tableScroll": "PNbOqW_tableScroll",
|
|
2812
|
-
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
2813
|
-
"readOnly": "PNbOqW_readOnly",
|
|
2814
|
-
"roleCell": "PNbOqW_roleCell",
|
|
2815
|
-
"permission": "PNbOqW_permission",
|
|
2816
|
-
"subtitle": "PNbOqW_subtitle",
|
|
2810
|
+
"detailGrid": "PNbOqW_detailGrid",
|
|
2811
|
+
"matrixScroll": "PNbOqW_matrixScroll",
|
|
2812
|
+
"panel": "PNbOqW_panel",
|
|
2813
|
+
"head": "PNbOqW_head",
|
|
2814
|
+
"scopeBadge": "PNbOqW_scopeBadge",
|
|
2815
|
+
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
2816
|
+
"dialogHint": "PNbOqW_dialogHint",
|
|
2817
|
+
"adminTag": "PNbOqW_adminTag",
|
|
2817
2818
|
"roleSearchWrap": "PNbOqW_roleSearchWrap",
|
|
2818
|
-
"
|
|
2819
|
-
"
|
|
2820
|
-
"matrixNote": "PNbOqW_matrixNote"
|
|
2819
|
+
"page": "PNbOqW_page",
|
|
2820
|
+
"comboboxCheck": "PNbOqW_comboboxCheck"
|
|
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
|
+
"dialogText": "razUfG_dialogText",
|
|
4472
|
+
"sessionList": "razUfG_sessionList",
|
|
4471
4473
|
"body": "razUfG_body",
|
|
4472
|
-
"title": "razUfG_title",
|
|
4473
4474
|
"sessionPath": "razUfG_sessionPath",
|
|
4474
|
-
"
|
|
4475
|
-
"
|
|
4476
|
-
"
|
|
4475
|
+
"title": "razUfG_title",
|
|
4476
|
+
"dialogBody": "razUfG_dialogBody",
|
|
4477
|
+
"error": "razUfG_error",
|
|
4477
4478
|
"banner": "razUfG_banner",
|
|
4478
4479
|
"copy": "razUfG_copy",
|
|
4479
|
-
"
|
|
4480
|
-
"
|
|
4481
|
-
"
|
|
4482
|
-
"dialogText": "razUfG_dialogText"
|
|
4480
|
+
"actions": "razUfG_actions",
|
|
4481
|
+
"sessionRow": "razUfG_sessionRow",
|
|
4482
|
+
"sessionTitle": "razUfG_sessionTitle"
|
|
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
|
-
"
|
|
4796
|
+
"rowTime": "tE0trG_rowTime",
|
|
4797
|
+
"actions": "tE0trG_actions",
|
|
4798
|
+
"linkButton": "tE0trG_linkButton",
|
|
4801
4799
|
"rowIcon": "tE0trG_rowIcon",
|
|
4802
|
-
"rowBody": "tE0trG_rowBody",
|
|
4803
|
-
"rowText": "tE0trG_rowText",
|
|
4804
4800
|
"button": "tE0trG_button",
|
|
4805
|
-
"
|
|
4806
|
-
"
|
|
4801
|
+
"rowText": "tE0trG_rowText",
|
|
4802
|
+
"rowBody": "tE0trG_rowBody",
|
|
4807
4803
|
"dot": "tE0trG_dot",
|
|
4808
|
-
"
|
|
4809
|
-
"
|
|
4804
|
+
"rowTitle": "tE0trG_rowTitle",
|
|
4805
|
+
"dialog": "tE0trG_dialog",
|
|
4806
|
+
"badge": "tE0trG_badge",
|
|
4807
|
+
"bell": "tE0trG_bell",
|
|
4808
|
+
"pager": "tE0trG_pager",
|
|
4810
4809
|
"empty": "tE0trG_empty",
|
|
4811
4810
|
"list": "tE0trG_list",
|
|
4812
|
-
"
|
|
4811
|
+
"rowMeta": "tE0trG_rowMeta",
|
|
4812
|
+
"demo": "tE0trG_demo"
|
|
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
|
*
|