@sparkelf/dsh-dataops-managed 0.3.50 → 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 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 = "/integrations/dataops/model-sync";
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 = "/integrations/dataops/workspace-limits";
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 = "/integrations/dataops/tool-timeout";
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 = "/integrations/dataops/review-context";
544
+ const REVIEW_CONTEXT_PATH = "integrations/dataops/review-context";
545
545
  /** Notification list and read receipts. */
546
- const NOTIFICATIONS_PATH = "/integrations/dataops/review-notifications";
546
+ const NOTIFICATIONS_PATH = "integrations/dataops/review-notifications";
547
547
  /** AI scan and the human decision. */
548
- const REVIEW_ACTION_PATH = "/integrations/dataops/review";
548
+ const REVIEW_ACTION_PATH = "integrations/dataops/review";
549
549
  /** Role matrix, members, departments, and resource scopes. */
550
- const RBAC_PATH = "/integrations/dataops/rbac";
550
+ const RBAC_PATH = "integrations/dataops/rbac";
551
551
  /** The three plaza-review switches in the DataOps settings panel. */
552
- const REVIEW_SETTINGS_PATH = "/integrations/dataops/review-settings";
552
+ const REVIEW_SETTINGS_PATH = "integrations/dataops/review-settings";
553
553
  /** Department CRUD bridge (task-67). */
554
- const DEPARTMENTS_PATH = "/integrations/dataops/departments";
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
- "refusal": "_2dqzjG_refusal",
839
- "title": "_2dqzjG_title",
840
- "reviewActions": "_2dqzjG_reviewActions",
841
- "reviewRow": "_2dqzjG_reviewRow",
838
+ "section": "_2dqzjG_section",
842
839
  "actions": "_2dqzjG_actions",
843
- "row": "_2dqzjG_row",
840
+ "reviewActions": "_2dqzjG_reviewActions",
841
+ "copy": "_2dqzjG_copy",
842
+ "title": "_2dqzjG_title",
844
843
  "meta": "_2dqzjG_meta",
845
- "status": "_2dqzjG_status",
846
- "section": "_2dqzjG_section",
847
- "card": "_2dqzjG_card",
844
+ "refusal": "_2dqzjG_refusal",
845
+ "reviewHint": "_2dqzjG_reviewHint",
848
846
  "fields": "_2dqzjG_fields",
849
847
  "heading": "_2dqzjG_heading",
850
- "label": "_2dqzjG_label",
848
+ "card": "_2dqzjG_card",
849
+ "row": "_2dqzjG_row",
850
+ "reviewRow": "_2dqzjG_reviewRow",
851
+ "status": "_2dqzjG_status",
851
852
  "reviewRows": "_2dqzjG_reviewRows",
852
- "reviewHint": "_2dqzjG_reviewHint",
853
- "copy": "_2dqzjG_copy"
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 = "/integrations/dataops/skill-plaza";
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
- "riskSummary": "_9FdZvq_riskSummary",
1604
- "detailRow": "_9FdZvq_detailRow",
1605
- "departmentSelect": "_9FdZvq_departmentSelect",
1606
- "departmentBar": "_9FdZvq_departmentBar",
1607
- "notice": "_9FdZvq_notice",
1608
- "section": "_9FdZvq_section",
1609
- "tabs": "_9FdZvq_tabs",
1610
- "risk": "_9FdZvq_risk",
1611
- "riskHead": "_9FdZvq_riskHead",
1612
- "noteField": "_9FdZvq_noteField",
1613
- "cards": "_9FdZvq_cards",
1614
- "mine": "_9FdZvq_mine",
1615
- "severity": "_9FdZvq_severity",
1616
- "riskEmpty": "_9FdZvq_riskEmpty",
1603
+ "tabCount": "_9FdZvq_tabCount",
1617
1604
  "headRow": "_9FdZvq_headRow",
1605
+ "tagTop": "_9FdZvq_tagTop",
1618
1606
  "mark": "_9FdZvq_mark",
1619
- "emptyText": "_9FdZvq_emptyText",
1607
+ "cardIcon": "_9FdZvq_cardIcon",
1608
+ "titleCount": "_9FdZvq_titleCount",
1620
1609
  "empty": "_9FdZvq_empty",
1621
- "reviewError": "_9FdZvq_reviewError",
1610
+ "sharedTag": "_9FdZvq_sharedTag",
1611
+ "audit": "_9FdZvq_audit",
1612
+ "findings": "_9FdZvq_findings",
1613
+ "notice": "_9FdZvq_notice",
1614
+ "finding": "_9FdZvq_finding",
1615
+ "noteField": "_9FdZvq_noteField",
1622
1616
  "detail": "_9FdZvq_detail",
1623
- "cardIcon": "_9FdZvq_cardIcon",
1624
- "tagTop": "_9FdZvq_tagTop",
1625
- "detailValue": "_9FdZvq_detailValue",
1617
+ "findingText": "_9FdZvq_findingText",
1618
+ "cardDesc": "_9FdZvq_cardDesc",
1619
+ "tabActive": "_9FdZvq_tabActive",
1620
+ "detailRow": "_9FdZvq_detailRow",
1626
1621
  "cardTitle": "_9FdZvq_cardTitle",
1627
- "cardMarks": "_9FdZvq_cardMarks",
1628
- "detailButton": "_9FdZvq_detailButton",
1629
- "finding": "_9FdZvq_finding",
1630
1622
  "title": "_9FdZvq_title",
1631
- "cardEnd": "_9FdZvq_cardEnd",
1623
+ "cards": "_9FdZvq_cards",
1624
+ "auditFooter": "_9FdZvq_auditFooter",
1632
1625
  "riskFailed": "_9FdZvq_riskFailed",
1633
- "status": "_9FdZvq_status",
1634
- "findingText": "_9FdZvq_findingText",
1635
- "tab": "_9FdZvq_tab",
1636
- "pendingTag": "_9FdZvq_pendingTag",
1637
- "audit": "_9FdZvq_audit",
1638
- "tabCount": "_9FdZvq_tabCount",
1639
1626
  "riskScore": "_9FdZvq_riskScore",
1640
- "departmentLabel": "_9FdZvq_departmentLabel",
1641
- "tabActive": "_9FdZvq_tabActive",
1642
- "rejectedTag": "_9FdZvq_rejectedTag",
1643
- "findingHint": "_9FdZvq_findingHint",
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",
1644
1636
  "head": "_9FdZvq_head",
1637
+ "mine": "_9FdZvq_mine",
1638
+ "riskHead": "_9FdZvq_riskHead",
1645
1639
  "demoTag": "_9FdZvq_demoTag",
1646
- "reviewButton": "_9FdZvq_reviewButton",
1640
+ "riskEmpty": "_9FdZvq_riskEmpty",
1641
+ "departmentBar": "_9FdZvq_departmentBar",
1642
+ "riskSummary": "_9FdZvq_riskSummary",
1643
+ "severity": "_9FdZvq_severity",
1644
+ "detailValue": "_9FdZvq_detailValue",
1645
+ "emptyIcon": "_9FdZvq_emptyIcon",
1646
+ "status": "_9FdZvq_status",
1647
+ "cardEnd": "_9FdZvq_cardEnd",
1648
+ "findingHint": "_9FdZvq_findingHint",
1647
1649
  "detailLabel": "_9FdZvq_detailLabel",
1648
- "titleCount": "_9FdZvq_titleCount",
1650
+ "tabs": "_9FdZvq_tabs",
1651
+ "detailButton": "_9FdZvq_detailButton",
1649
1652
  "dialog": "_9FdZvq_dialog",
1653
+ "rejectedTag": "_9FdZvq_rejectedTag",
1654
+ "departmentLabel": "_9FdZvq_departmentLabel",
1650
1655
  "cardTop": "_9FdZvq_cardTop",
1651
- "auditDialog": "_9FdZvq_auditDialog",
1652
- "card": "_9FdZvq_card",
1653
1656
  "reviewNote": "_9FdZvq_reviewNote",
1654
- "emptyIcon": "_9FdZvq_emptyIcon",
1655
- "sharedTag": "_9FdZvq_sharedTag",
1656
- "cardDesc": "_9FdZvq_cardDesc",
1657
- "findings": "_9FdZvq_findings",
1658
- "auditFooter": "_9FdZvq_auditFooter"
1657
+ "reviewError": "_9FdZvq_reviewError",
1658
+ "section": "_9FdZvq_section"
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
- "harness": "s0HPxG_harness",
2314
- "unitRight": "s0HPxG_unitRight",
2315
- "mark": "s0HPxG_mark",
2313
+ "unit-right": "s0HPxG_unit-right",
2316
2314
  "unit-core": "s0HPxG_unit-core",
2317
- "unitCore": "s0HPxG_unitCore",
2315
+ "mark": "s0HPxG_mark",
2316
+ "wordmark": "s0HPxG_wordmark",
2317
+ "unitTop": "s0HPxG_unitTop",
2318
2318
  "animatedMark": "s0HPxG_animatedMark",
2319
2319
  "unitLeft": "s0HPxG_unitLeft",
2320
- "unit-top": "s0HPxG_unit-top",
2321
- "sidebarName": "s0HPxG_sidebarName",
2322
- "unit-right": "s0HPxG_unit-right",
2323
- "unitTop": "s0HPxG_unitTop",
2320
+ "unitCore": "s0HPxG_unitCore",
2324
2321
  "unit-left": "s0HPxG_unit-left",
2325
- "wordmark": "s0HPxG_wordmark"
2322
+ "sidebarName": "s0HPxG_sidebarName",
2323
+ "unitRight": "s0HPxG_unitRight",
2324
+ "unit-top": "s0HPxG_unit-top",
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
- "field": "PNbOqW_field",
2736
- "title": "PNbOqW_title",
2737
- "matrixTool": "PNbOqW_matrixTool",
2738
- "deptAdmins": "PNbOqW_deptAdmins",
2739
- "permCopy": "PNbOqW_permCopy",
2740
- "dialog": "PNbOqW_dialog",
2735
+ "comboboxSearch": "PNbOqW_comboboxSearch",
2736
+ "panel": "PNbOqW_panel",
2741
2737
  "copied": "PNbOqW_copied",
2742
- "treeRow": "PNbOqW_treeRow",
2738
+ "comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
2739
+ "candidates": "PNbOqW_candidates",
2740
+ "treeActions": "PNbOqW_treeActions",
2743
2741
  "comboboxList": "PNbOqW_comboboxList",
2744
- "roleSearchIcon": "PNbOqW_roleSearchIcon",
2745
- "onlyAdmin": "PNbOqW_onlyAdmin",
2746
- "permDescription": "PNbOqW_permDescription",
2747
- "treeSpacer": "PNbOqW_treeSpacer",
2748
- "matrixPermission": "PNbOqW_matrixPermission",
2749
- "comboboxOptionActive": "PNbOqW_comboboxOptionActive",
2750
- "roleGrant": "PNbOqW_roleGrant",
2751
- "matrixScroll": "PNbOqW_matrixScroll",
2752
- "roleRevoke": "PNbOqW_roleRevoke",
2753
- "muted": "PNbOqW_muted",
2754
- "comboboxEmpty": "PNbOqW_comboboxEmpty",
2755
- "panel": "PNbOqW_panel",
2756
- "department": "PNbOqW_department",
2757
- "roleCell": "PNbOqW_roleCell",
2758
- "headText": "PNbOqW_headText",
2759
- "comboboxMenu": "PNbOqW_comboboxMenu",
2760
- "panelHead": "PNbOqW_panelHead",
2761
- "error": "PNbOqW_error",
2762
- "waiting": "PNbOqW_waiting",
2763
- "treeToggle": "PNbOqW_treeToggle",
2764
- "candidate": "PNbOqW_candidate",
2765
- "permission": "PNbOqW_permission",
2766
2742
  "head": "PNbOqW_head",
2767
- "treeActions": "PNbOqW_treeActions",
2768
- "treeChildren": "PNbOqW_treeChildren",
2769
- "matrixHeadLeft": "PNbOqW_matrixHeadLeft",
2770
- "roleSearchWrap": "PNbOqW_roleSearchWrap",
2771
- "roleSearch": "PNbOqW_roleSearch",
2772
- "empty": "PNbOqW_empty",
2773
- "panelFoot": "PNbOqW_panelFoot",
2774
- "comboboxOption": "PNbOqW_comboboxOption",
2743
+ "tabGroup": "PNbOqW_tabGroup",
2744
+ "treeRow": "PNbOqW_treeRow",
2745
+ "roleTags": "PNbOqW_roleTags",
2746
+ "subtitle": "PNbOqW_subtitle",
2747
+ "pager": "PNbOqW_pager",
2748
+ "panelHead": "PNbOqW_panelHead",
2775
2749
  "tabBadge": "PNbOqW_tabBadge",
2776
- "matrixHead": "PNbOqW_matrixHead",
2777
- "tableScroll": "PNbOqW_tableScroll",
2778
- "notice": "PNbOqW_notice",
2779
- "readOnly": "PNbOqW_readOnly",
2780
- "departments": "PNbOqW_departments",
2781
- "combobox": "PNbOqW_combobox",
2750
+ "matrixGroup": "PNbOqW_matrixGroup",
2751
+ "protected": "PNbOqW_protected",
2752
+ "treeRoot": "PNbOqW_treeRoot",
2782
2753
  "comboboxCheck": "PNbOqW_comboboxCheck",
2754
+ "roleGrant": "PNbOqW_roleGrant",
2755
+ "comboboxOptionActive": "PNbOqW_comboboxOptionActive",
2783
2756
  "roleTag": "PNbOqW_roleTag",
2784
- "scopeBadge": "PNbOqW_scopeBadge",
2785
- "matrix": "PNbOqW_matrix",
2786
- "tabActive": "PNbOqW_tabActive",
2787
- "table": "PNbOqW_table",
2788
- "adminTag": "PNbOqW_adminTag",
2789
- "matrixModule": "PNbOqW_matrixModule",
2790
- "comboboxSearch": "PNbOqW_comboboxSearch",
2791
- "roleTags": "PNbOqW_roleTags",
2792
2757
  "page": "PNbOqW_page",
2793
- "detailGrid": "PNbOqW_detailGrid",
2794
- "search": "PNbOqW_search",
2795
- "treeName": "PNbOqW_treeName",
2796
- "matrixGroup": "PNbOqW_matrixGroup",
2797
- "dialogFooter": "PNbOqW_dialogFooter",
2798
- "demo": "PNbOqW_demo",
2799
- "matrixToolActive": "PNbOqW_matrixToolActive",
2758
+ "tabDivider": "PNbOqW_tabDivider",
2800
2759
  "comboboxTrigger": "PNbOqW_comboboxTrigger",
2801
- "protected": "PNbOqW_protected",
2802
- "treeRoot": "PNbOqW_treeRoot",
2803
- "tabs": "PNbOqW_tabs",
2804
- "subtitle": "PNbOqW_subtitle",
2760
+ "adminTag": "PNbOqW_adminTag",
2761
+ "tableScroll": "PNbOqW_tableScroll",
2762
+ "treeSpacer": "PNbOqW_treeSpacer",
2763
+ "treeToggle": "PNbOqW_treeToggle",
2764
+ "matrixRoleCell": "PNbOqW_matrixRoleCell",
2765
+ "matrixScroll": "PNbOqW_matrixScroll",
2805
2766
  "matrixNote": "PNbOqW_matrixNote",
2767
+ "muted": "PNbOqW_muted",
2768
+ "tabActive": "PNbOqW_tabActive",
2769
+ "matrixRoleHead": "PNbOqW_matrixRoleHead",
2770
+ "roleSearchWrap": "PNbOqW_roleSearchWrap",
2806
2771
  "dialogBody": "PNbOqW_dialogBody",
2807
- "matrixRoleCell": "PNbOqW_matrixRoleCell",
2808
- "dialogHint": "PNbOqW_dialogHint",
2809
- "comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
2810
- "comboboxHint": "PNbOqW_comboboxHint",
2811
- "tab": "PNbOqW_tab",
2812
- "matrixPermHead": "PNbOqW_matrixPermHead",
2772
+ "headText": "PNbOqW_headText",
2773
+ "search": "PNbOqW_search",
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",
2781
+ "onlyAdmin": "PNbOqW_onlyAdmin",
2813
2782
  "rowActions": "PNbOqW_rowActions",
2814
- "matrixRoleHead": "PNbOqW_matrixRoleHead",
2815
- "pager": "PNbOqW_pager",
2783
+ "detailGrid": "PNbOqW_detailGrid",
2784
+ "waiting": "PNbOqW_waiting",
2785
+ "department": "PNbOqW_department",
2786
+ "notice": "PNbOqW_notice",
2787
+ "tab": "PNbOqW_tab",
2788
+ "matrixHeadLeft": "PNbOqW_matrixHeadLeft",
2789
+ "candidate": "PNbOqW_candidate",
2790
+ "treeName": "PNbOqW_treeName",
2816
2791
  "headActions": "PNbOqW_headActions",
2817
- "tabGroup": "PNbOqW_tabGroup",
2792
+ "empty": "PNbOqW_empty",
2793
+ "permission": "PNbOqW_permission",
2794
+ "error": "PNbOqW_error",
2795
+ "matrix": "PNbOqW_matrix",
2796
+ "matrixToolActive": "PNbOqW_matrixToolActive",
2797
+ "demo": "PNbOqW_demo",
2798
+ "dialog": "PNbOqW_dialog",
2818
2799
  "sectionTitle": "PNbOqW_sectionTitle",
2819
- "tabDivider": "PNbOqW_tabDivider",
2820
- "candidates": "PNbOqW_candidates"
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",
2807
+ "tabs": "PNbOqW_tabs",
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 = "/integrations/dataops/workspace-upgrade";
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
+ "actions": "razUfG_actions",
4471
4472
  "banner": "razUfG_banner",
4472
4473
  "title": "razUfG_title",
4473
- "actions": "razUfG_actions",
4474
- "copy": "razUfG_copy",
4475
- "sessionTitle": "razUfG_sessionTitle",
4476
- "error": "razUfG_error",
4477
- "sessionRow": "razUfG_sessionRow",
4478
- "dialogText": "razUfG_dialogText",
4479
4474
  "dialogBody": "razUfG_dialogBody",
4475
+ "dialogText": "razUfG_dialogText",
4480
4476
  "sessionList": "razUfG_sessionList",
4481
- "sessionPath": "razUfG_sessionPath",
4482
- "body": "razUfG_body"
4477
+ "sessionRow": "razUfG_sessionRow",
4478
+ "error": "razUfG_error",
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
- "actions": "tE0trG_actions",
4795
+ "row": "tE0trG_row",
4796
4796
  "list": "tE0trG_list",
4797
- "rowMeta": "tE0trG_rowMeta",
4798
- "rowIcon": "tE0trG_rowIcon",
4799
- "linkButton": "tE0trG_linkButton",
4797
+ "rowBody": "tE0trG_rowBody",
4798
+ "actions": "tE0trG_actions",
4799
+ "dialog": "tE0trG_dialog",
4800
+ "pager": "tE0trG_pager",
4800
4801
  "bell": "tE0trG_bell",
4801
4802
  "demo": "tE0trG_demo",
4803
+ "empty": "tE0trG_empty",
4804
+ "rowMeta": "tE0trG_rowMeta",
4805
+ "badge": "tE0trG_badge",
4806
+ "rowTitle": "tE0trG_rowTitle",
4802
4807
  "rowText": "tE0trG_rowText",
4803
4808
  "button": "tE0trG_button",
4804
- "rowBody": "tE0trG_rowBody",
4805
- "pager": "tE0trG_pager",
4806
- "dialog": "tE0trG_dialog",
4809
+ "rowIcon": "tE0trG_rowIcon",
4807
4810
  "rowTime": "tE0trG_rowTime",
4808
- "dot": "tE0trG_dot",
4809
- "row": "tE0trG_row",
4810
- "empty": "tE0trG_empty",
4811
- "badge": "tE0trG_badge",
4812
- "rowTitle": "tE0trG_rowTitle"
4811
+ "linkButton": "tE0trG_linkButton",
4812
+ "dot": "tE0trG_dot"
4813
4813
  };
4814
4814
  //#endregion
4815
4815
  //#region src/client/NotificationBell.tsx
@@ -5194,7 +5194,17 @@ window.__ModuleLoader__.load({
5194
5194
  ]);
5195
5195
  if (!live) return false;
5196
5196
  if (!treeResponse.ok) throw new Error("HTTP " + String(treeResponse.status));
5197
- const roots = ((await treeResponse.json()).nodes ?? []).map(normalizeNode);
5197
+ const tree = await treeResponse.json();
5198
+ const roots = (tree.nodes ?? []).map(normalizeNode);
5199
+ const accounted = roots.reduce((sum, node) => sum + node.count, 0);
5200
+ const treeTotal = typeof tree.total === "number" ? tree.total : accounted;
5201
+ if (treeTotal > accounted) roots.push({
5202
+ id: -1,
5203
+ name: "未纳入目录",
5204
+ label: "未纳入目录",
5205
+ count: treeTotal - accounted,
5206
+ children: []
5207
+ });
5198
5208
  setFolders(roots);
5199
5209
  if (!expandedOnce) {
5200
5210
  setOpenKeys(new Set(roots.filter((node) => node.children.length > 0).map((node) => node.id)));
@@ -5202,7 +5212,7 @@ window.__ModuleLoader__.load({
5202
5212
  }
5203
5213
  if (listResponse.ok) {
5204
5214
  const list = await listResponse.json();
5205
- setTotal(typeof list.total === "number" ? list.total : (list.items ?? []).length);
5215
+ setTotal(typeof tree.total === "number" ? tree.total : typeof list.total === "number" ? list.total : (list.items ?? []).length);
5206
5216
  }
5207
5217
  if (favoriteResponse.ok) {
5208
5218
  const page = await favoriteResponse.json();
@@ -5556,7 +5566,7 @@ window.__ModuleLoader__.load({
5556
5566
  let live = true;
5557
5567
  const load = async () => {
5558
5568
  try {
5559
- const response = await fetch("/integrations/dataops/resource-tab/config", { cache: "no-store" });
5569
+ const response = await fetch("integrations/dataops/resource-tab/config", { cache: "no-store" });
5560
5570
  if (!response.ok) throw new Error("HTTP " + response.status.toString());
5561
5571
  const body = await response.json();
5562
5572
  if (!live) return;
@@ -5782,7 +5792,7 @@ window.__ModuleLoader__.load({
5782
5792
  */
5783
5793
  /** Tab id shared with the client registration. */
5784
5794
  const RESOURCE_TAB_TYPE = "dataops-resources";
5785
- const EVENTS_PATH = "/integrations/dataops/open-resource/events";
5795
+ const EVENTS_PATH = "integrations/dataops/open-resource/events";
5786
5796
  const isOpenResourceEvent = (value) => {
5787
5797
  if (typeof value !== "object" || value === null) return false;
5788
5798
  const record = value;
@@ -6152,7 +6162,7 @@ window.__ModuleLoader__.load({
6152
6162
  //#region src/client/index.ts
6153
6163
  const NS = "settings.dataops-managed";
6154
6164
  const AUTH_UPDATED_MESSAGE = "dataops-auth-updated";
6155
- const MANAGED_AUTH_PATH = "/integrations/dataops/managed-auth";
6165
+ const MANAGED_AUTH_PATH = "integrations/dataops/managed-auth";
6156
6166
  /** Sidebar entry and main page id for the permission centre. */
6157
6167
  const PERMISSION_PANEL_ID = "dataops-permissions";
6158
6168
  /** Required client services for the managed DataOps Settings section and the resource tab bridge. */
@@ -6185,12 +6195,56 @@ window.__ModuleLoader__.load({
6185
6195
  *
6186
6196
  * @param ctx - DSH client context with locale, slots and the sidebar foot.
6187
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
+ };
6188
6230
  function apply(ctx) {
6189
6231
  ctx.effect(() => ctx.locale.register(NS, {
6190
6232
  zh,
6191
6233
  en
6192
6234
  }), "dataops-managed: settings copy");
6193
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");
6194
6248
  /**
6195
6249
  * The DSH logo returns to the portal page the reader entered from.
6196
6250
  *