@sparkelf/dsh-dataops-managed 0.4.2 → 0.4.4
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 +225 -164
- package/lib/client.js.map +1 -1
- package/lib/index.js +40 -0
- package/lib/types/client/tab-url.d.ts +11 -0
- package/package.json +1 -1
- package/skills/admin-workspace-rescue/SKILL.md +2 -1
- package/skills/api-connector-authoring/SKILL.md +1 -0
- package/skills/browser/SKILL.md +2 -1
- package/skills/data-insight-analysis/SKILL.md +86 -0
- package/skills/data-insight-analysis/i18n/zh.json +10 -0
- package/skills/data-insight-analysis/references/_template.md +23 -0
- package/skills/data-insight-analysis/references/functions/_index.md +16 -0
- package/skills/data-insight-analysis/references/functions/equipment-om.md +24 -0
- package/skills/data-insight-analysis/references/functions/finance-ops.md +23 -0
- package/skills/data-insight-analysis/references/functions/hr-workforce.md +23 -0
- package/skills/data-insight-analysis/references/functions/hse-safety-esg.md +21 -0
- package/skills/data-insight-analysis/references/functions/it-aiops-finops.md +23 -0
- package/skills/data-insight-analysis/references/functions/legal-audit-compliance.md +22 -0
- package/skills/data-insight-analysis/references/functions/marketing-growth.md +22 -0
- package/skills/data-insight-analysis/references/functions/project-engineering.md +22 -0
- package/skills/data-insight-analysis/references/functions/service-ticket-12345.md +23 -0
- package/skills/data-insight-analysis/references/functions/supply-chain.md +23 -0
- package/skills/data-insight-analysis/references/industries/_index.md +54 -0
- package/skills/data-insight-analysis/references/industries/consumer-service/ecommerce-retail.md +22 -0
- package/skills/data-insight-analysis/references/industries/consumer-service/fnb-catering.md +22 -0
- package/skills/data-insight-analysis/references/industries/consumer-service/hospitality-hotel.md +23 -0
- package/skills/data-insight-analysis/references/industries/consumer-service/media-sports-entertainment.md +20 -0
- package/skills/data-insight-analysis/references/industries/consumer-service/tourism-scenic.md +22 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/agriculture-agritech.md +20 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/energy-petrochemical.md +22 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/investment-asset.md +21 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/public-utilities.md +20 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/real-estate-property.md +20 -0
- package/skills/data-insight-analysis/references/industries/energy-infra-agri/transport-infra.md +22 -0
- package/skills/data-insight-analysis/references/industries/finance-tech/b2b-sales-crm.md +20 -0
- package/skills/data-insight-analysis/references/industries/finance-tech/financial-risk-credit.md +20 -0
- package/skills/data-insight-analysis/references/industries/finance-tech/insurance-wealth.md +20 -0
- package/skills/data-insight-analysis/references/industries/finance-tech/internet-product-ops.md +20 -0
- package/skills/data-insight-analysis/references/industries/finance-tech/telecom-operator.md +20 -0
- package/skills/data-insight-analysis/references/industries/industry-logistics/logistics-express.md +21 -0
- package/skills/data-insight-analysis/references/industries/industry-logistics/manufacturing-quality.md +21 -0
- package/skills/data-insight-analysis/references/industries/industry-logistics/pharma-life-science.md +20 -0
- package/skills/data-insight-analysis/references/industries/livelihood-culture/education-university.md +21 -0
- package/skills/data-insight-analysis/references/industries/livelihood-culture/healthcare-ops.md +20 -0
- package/skills/data-insight-analysis/references/industries/livelihood-culture/library-museum-culture.md +20 -0
- package/skills/data-insight-analysis/references/industries/public-sector/emergency-fire.md +20 -0
- package/skills/data-insight-analysis/references/industries/public-sector/gov-city-ops.md +21 -0
- package/skills/data-insight-analysis/references/industries/public-sector/judicial-prosecution.md +22 -0
- package/skills/data-insight-analysis/references/industries/public-sector/policing.md +23 -0
- package/skills/data-insight-analysis/references/industries/public-sector/tax-customs-social.md +21 -0
- package/skills/dataops-collect/SKILL.md +2 -1
- package/skills/dataops-governance/SKILL.md +3 -2
- package/skills/dataops-governance/references/03-metadata-write.md +1 -1
- package/skills/dataops-metadata-optimizer/SKILL.md +1 -0
- package/skills/dataops-metadata-optimizer/references/04-apply-and-measure.md +1 -1
- package/skills/dataops-query/SKILL.md +45 -3
- package/skills/dataops-query/i18n/zh.json +1 -1
- package/skills/dataops-synonym-governance/SKILL.md +1 -0
- package/skills/prefect-script-authoring/SKILL.md +2 -1
- package/skills/skill-provisioning/SKILL.md +2 -1
package/lib/client.js
CHANGED
|
@@ -835,22 +835,22 @@ window.__ModuleLoader__.load({
|
|
|
835
835
|
document.head.appendChild(tag);
|
|
836
836
|
}
|
|
837
837
|
var ManagedDataOpsSection_module_css_default = {
|
|
838
|
+
"status": "_2dqzjG_status",
|
|
839
|
+
"reviewRows": "_2dqzjG_reviewRows",
|
|
838
840
|
"reviewHint": "_2dqzjG_reviewHint",
|
|
839
|
-
"
|
|
841
|
+
"copy": "_2dqzjG_copy",
|
|
842
|
+
"card": "_2dqzjG_card",
|
|
843
|
+
"row": "_2dqzjG_row",
|
|
840
844
|
"label": "_2dqzjG_label",
|
|
845
|
+
"title": "_2dqzjG_title",
|
|
846
|
+
"section": "_2dqzjG_section",
|
|
847
|
+
"heading": "_2dqzjG_heading",
|
|
841
848
|
"meta": "_2dqzjG_meta",
|
|
842
|
-
"
|
|
843
|
-
"reviewActions": "_2dqzjG_reviewActions",
|
|
844
|
-
"row": "_2dqzjG_row",
|
|
849
|
+
"actions": "_2dqzjG_actions",
|
|
845
850
|
"refusal": "_2dqzjG_refusal",
|
|
846
|
-
"copy": "_2dqzjG_copy",
|
|
847
|
-
"status": "_2dqzjG_status",
|
|
848
|
-
"section": "_2dqzjG_section",
|
|
849
851
|
"fields": "_2dqzjG_fields",
|
|
850
852
|
"reviewRow": "_2dqzjG_reviewRow",
|
|
851
|
-
"
|
|
852
|
-
"actions": "_2dqzjG_actions",
|
|
853
|
-
"title": "_2dqzjG_title"
|
|
853
|
+
"reviewActions": "_2dqzjG_reviewActions"
|
|
854
854
|
};
|
|
855
855
|
//#endregion
|
|
856
856
|
//#region src/client/ReviewSettingsCard.tsx
|
|
@@ -1600,62 +1600,62 @@ window.__ModuleLoader__.load({
|
|
|
1600
1600
|
document.head.appendChild(tag);
|
|
1601
1601
|
}
|
|
1602
1602
|
var SkillPlazaSection_module_css_default = {
|
|
1603
|
-
"
|
|
1604
|
-
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
1603
|
+
"cardTop": "_9FdZvq_cardTop",
|
|
1605
1604
|
"audit": "_9FdZvq_audit",
|
|
1606
1605
|
"risk": "_9FdZvq_risk",
|
|
1607
|
-
"detailRow": "_9FdZvq_detailRow",
|
|
1608
|
-
"detailValue": "_9FdZvq_detailValue",
|
|
1609
|
-
"cardEnd": "_9FdZvq_cardEnd",
|
|
1610
|
-
"tab": "_9FdZvq_tab",
|
|
1611
|
-
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
1612
|
-
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1613
|
-
"emptyText": "_9FdZvq_emptyText",
|
|
1614
|
-
"head": "_9FdZvq_head",
|
|
1615
|
-
"card": "_9FdZvq_card",
|
|
1616
|
-
"notice": "_9FdZvq_notice",
|
|
1617
|
-
"cardTitle": "_9FdZvq_cardTitle",
|
|
1618
|
-
"tabCount": "_9FdZvq_tabCount",
|
|
1619
|
-
"tagTop": "_9FdZvq_tagTop",
|
|
1620
|
-
"pendingTag": "_9FdZvq_pendingTag",
|
|
1621
|
-
"auditFooter": "_9FdZvq_auditFooter",
|
|
1622
|
-
"finding": "_9FdZvq_finding",
|
|
1623
|
-
"findings": "_9FdZvq_findings",
|
|
1624
|
-
"section": "_9FdZvq_section",
|
|
1625
|
-
"findingText": "_9FdZvq_findingText",
|
|
1626
|
-
"mine": "_9FdZvq_mine",
|
|
1627
|
-
"cardDesc": "_9FdZvq_cardDesc",
|
|
1628
|
-
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1629
|
-
"status": "_9FdZvq_status",
|
|
1630
1606
|
"cards": "_9FdZvq_cards",
|
|
1631
|
-
"detailLabel": "_9FdZvq_detailLabel",
|
|
1632
|
-
"title": "_9FdZvq_title",
|
|
1633
|
-
"mark": "_9FdZvq_mark",
|
|
1634
|
-
"demoTag": "_9FdZvq_demoTag",
|
|
1635
|
-
"headRow": "_9FdZvq_headRow",
|
|
1636
|
-
"tabActive": "_9FdZvq_tabActive",
|
|
1637
1607
|
"departmentBar": "_9FdZvq_departmentBar",
|
|
1638
|
-
"
|
|
1608
|
+
"cardMarks": "_9FdZvq_cardMarks",
|
|
1609
|
+
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
1610
|
+
"reviewNote": "_9FdZvq_reviewNote",
|
|
1611
|
+
"tab": "_9FdZvq_tab",
|
|
1612
|
+
"cardDesc": "_9FdZvq_cardDesc",
|
|
1639
1613
|
"sharedTag": "_9FdZvq_sharedTag",
|
|
1640
|
-
"
|
|
1614
|
+
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
1615
|
+
"riskHead": "_9FdZvq_riskHead",
|
|
1616
|
+
"titleCount": "_9FdZvq_titleCount",
|
|
1641
1617
|
"tabs": "_9FdZvq_tabs",
|
|
1642
|
-
"cardTop": "_9FdZvq_cardTop",
|
|
1643
|
-
"detailButton": "_9FdZvq_detailButton",
|
|
1644
|
-
"dialog": "_9FdZvq_dialog",
|
|
1645
1618
|
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
1619
|
+
"riskFailed": "_9FdZvq_riskFailed",
|
|
1620
|
+
"demoTag": "_9FdZvq_demoTag",
|
|
1646
1621
|
"riskSummary": "_9FdZvq_riskSummary",
|
|
1622
|
+
"reviewError": "_9FdZvq_reviewError",
|
|
1623
|
+
"pendingTag": "_9FdZvq_pendingTag",
|
|
1624
|
+
"detailRow": "_9FdZvq_detailRow",
|
|
1625
|
+
"finding": "_9FdZvq_finding",
|
|
1626
|
+
"head": "_9FdZvq_head",
|
|
1647
1627
|
"riskScore": "_9FdZvq_riskScore",
|
|
1648
|
-
"riskHead": "_9FdZvq_riskHead",
|
|
1649
1628
|
"severity": "_9FdZvq_severity",
|
|
1650
|
-
"
|
|
1651
|
-
"
|
|
1629
|
+
"mine": "_9FdZvq_mine",
|
|
1630
|
+
"reviewButton": "_9FdZvq_reviewButton",
|
|
1631
|
+
"findingText": "_9FdZvq_findingText",
|
|
1632
|
+
"auditDialog": "_9FdZvq_auditDialog",
|
|
1633
|
+
"card": "_9FdZvq_card",
|
|
1652
1634
|
"cardIcon": "_9FdZvq_cardIcon",
|
|
1653
|
-
"
|
|
1654
|
-
"reviewNote": "_9FdZvq_reviewNote",
|
|
1655
|
-
"riskFailed": "_9FdZvq_riskFailed",
|
|
1635
|
+
"auditFooter": "_9FdZvq_auditFooter",
|
|
1656
1636
|
"findingHint": "_9FdZvq_findingHint",
|
|
1657
|
-
"
|
|
1658
|
-
"
|
|
1637
|
+
"mark": "_9FdZvq_mark",
|
|
1638
|
+
"noteField": "_9FdZvq_noteField",
|
|
1639
|
+
"dialog": "_9FdZvq_dialog",
|
|
1640
|
+
"findings": "_9FdZvq_findings",
|
|
1641
|
+
"headRow": "_9FdZvq_headRow",
|
|
1642
|
+
"detail": "_9FdZvq_detail",
|
|
1643
|
+
"empty": "_9FdZvq_empty",
|
|
1644
|
+
"title": "_9FdZvq_title",
|
|
1645
|
+
"notice": "_9FdZvq_notice",
|
|
1646
|
+
"cardTitle": "_9FdZvq_cardTitle",
|
|
1647
|
+
"cardEnd": "_9FdZvq_cardEnd",
|
|
1648
|
+
"detailButton": "_9FdZvq_detailButton",
|
|
1649
|
+
"detailLabel": "_9FdZvq_detailLabel",
|
|
1650
|
+
"section": "_9FdZvq_section",
|
|
1651
|
+
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1652
|
+
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1653
|
+
"detailValue": "_9FdZvq_detailValue",
|
|
1654
|
+
"tabActive": "_9FdZvq_tabActive",
|
|
1655
|
+
"tabCount": "_9FdZvq_tabCount",
|
|
1656
|
+
"tagTop": "_9FdZvq_tagTop",
|
|
1657
|
+
"emptyText": "_9FdZvq_emptyText",
|
|
1658
|
+
"status": "_9FdZvq_status"
|
|
1659
1659
|
};
|
|
1660
1660
|
//#endregion
|
|
1661
1661
|
//#region src/client/SkillPlazaSection.tsx
|
|
@@ -2310,19 +2310,19 @@ window.__ModuleLoader__.load({
|
|
|
2310
2310
|
document.head.appendChild(tag);
|
|
2311
2311
|
}
|
|
2312
2312
|
var WanxiangBrand_module_css_default = {
|
|
2313
|
-
"
|
|
2313
|
+
"unit-core": "s0HPxG_unit-core",
|
|
2314
2314
|
"sidebarName": "s0HPxG_sidebarName",
|
|
2315
|
-
"unitRight": "s0HPxG_unitRight",
|
|
2316
|
-
"unitCore": "s0HPxG_unitCore",
|
|
2317
|
-
"unit-top": "s0HPxG_unit-top",
|
|
2318
|
-
"unitTop": "s0HPxG_unitTop",
|
|
2319
|
-
"harness": "s0HPxG_harness",
|
|
2320
|
-
"unit-left": "s0HPxG_unit-left",
|
|
2321
2315
|
"animatedMark": "s0HPxG_animatedMark",
|
|
2322
|
-
"wordmark": "s0HPxG_wordmark",
|
|
2323
2316
|
"unitLeft": "s0HPxG_unitLeft",
|
|
2317
|
+
"mark": "s0HPxG_mark",
|
|
2318
|
+
"wordmark": "s0HPxG_wordmark",
|
|
2319
|
+
"unitTop": "s0HPxG_unitTop",
|
|
2320
|
+
"unit-left": "s0HPxG_unit-left",
|
|
2321
|
+
"unitRight": "s0HPxG_unitRight",
|
|
2324
2322
|
"unit-right": "s0HPxG_unit-right",
|
|
2325
|
-
"unit-
|
|
2323
|
+
"unit-top": "s0HPxG_unit-top",
|
|
2324
|
+
"unitCore": "s0HPxG_unitCore",
|
|
2325
|
+
"harness": "s0HPxG_harness"
|
|
2326
2326
|
};
|
|
2327
2327
|
//#endregion
|
|
2328
2328
|
//#region src/client/WanxiangBrand.tsx
|
|
@@ -2559,6 +2559,25 @@ window.__ModuleLoader__.load({
|
|
|
2559
2559
|
}, "dataops-managed: Wanxiang shell branding");
|
|
2560
2560
|
}
|
|
2561
2561
|
//#endregion
|
|
2562
|
+
//#region src/client/tab-url.ts
|
|
2563
|
+
/**
|
|
2564
|
+
* Resolve a workspace root path against the document base.
|
|
2565
|
+
*
|
|
2566
|
+
* The portal serves DSH under a per-tab path prefix (`/dsh/t/<token>/`); the route
|
|
2567
|
+
* token must ride on every workspace request. At a root mount (standalone DSH) the
|
|
2568
|
+
* result is the unchanged root path. Evaluated per call so a route-token renewal
|
|
2569
|
+
* (which swaps the document base in place) takes effect immediately.
|
|
2570
|
+
*/
|
|
2571
|
+
const tabUrl = (path) => {
|
|
2572
|
+
const base = new URL(document.baseURI);
|
|
2573
|
+
return (base.pathname.endsWith("/") ? base.pathname : `${base.pathname}/`) + path.replace(/^\/+/u, "");
|
|
2574
|
+
};
|
|
2575
|
+
/** 当前挂载的 per-tab 路由令牌;独立部署(根挂载)时返回 null。 */
|
|
2576
|
+
const currentTabToken = () => {
|
|
2577
|
+
const matched = /^\/dsh\/t\/([^/]+)/u.exec(window.location.pathname);
|
|
2578
|
+
return matched ? matched[1] : null;
|
|
2579
|
+
};
|
|
2580
|
+
//#endregion
|
|
2562
2581
|
//#region src/client/ReloginPrompt.tsx
|
|
2563
2582
|
/**
|
|
2564
2583
|
* The "sign in again" prompt shown when this workspace's DataOps session has ended.
|
|
@@ -2589,7 +2608,7 @@ window.__ModuleLoader__.load({
|
|
|
2589
2608
|
*/
|
|
2590
2609
|
const readAuthState = async () => {
|
|
2591
2610
|
try {
|
|
2592
|
-
const response = await fetch(new URL("/integrations/dataops/auth-state", window.location.origin), { credentials: "same-origin" });
|
|
2611
|
+
const response = await fetch(new URL(tabUrl("/integrations/dataops/auth-state"), window.location.origin), { credentials: "same-origin" });
|
|
2593
2612
|
if (!response.ok) return void 0;
|
|
2594
2613
|
const state = (await response.json()).state;
|
|
2595
2614
|
return state === "expired" || state === "valid" || state === "unknown" ? state : void 0;
|
|
@@ -2732,92 +2751,92 @@ window.__ModuleLoader__.load({
|
|
|
2732
2751
|
document.head.appendChild(tag);
|
|
2733
2752
|
}
|
|
2734
2753
|
var PermissionCenterSection_module_css_default = {
|
|
2735
|
-
"matrixRoleCell": "PNbOqW_matrixRoleCell",
|
|
2736
|
-
"candidate": "PNbOqW_candidate",
|
|
2737
|
-
"treeRow": "PNbOqW_treeRow",
|
|
2738
|
-
"muted": "PNbOqW_muted",
|
|
2739
2754
|
"detailGrid": "PNbOqW_detailGrid",
|
|
2755
|
+
"matrixRoleHead": "PNbOqW_matrixRoleHead",
|
|
2740
2756
|
"treeToggle": "PNbOqW_treeToggle",
|
|
2741
|
-
"
|
|
2742
|
-
"
|
|
2757
|
+
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
2758
|
+
"permDescription": "PNbOqW_permDescription",
|
|
2759
|
+
"dialogHint": "PNbOqW_dialogHint",
|
|
2760
|
+
"treeSpacer": "PNbOqW_treeSpacer",
|
|
2761
|
+
"pager": "PNbOqW_pager",
|
|
2762
|
+
"title": "PNbOqW_title",
|
|
2743
2763
|
"tab": "PNbOqW_tab",
|
|
2744
|
-
"
|
|
2745
|
-
"
|
|
2746
|
-
"
|
|
2747
|
-
"
|
|
2748
|
-
"comboboxList": "PNbOqW_comboboxList",
|
|
2749
|
-
"tabDivider": "PNbOqW_tabDivider",
|
|
2750
|
-
"tableScroll": "PNbOqW_tableScroll",
|
|
2751
|
-
"matrix": "PNbOqW_matrix",
|
|
2764
|
+
"department": "PNbOqW_department",
|
|
2765
|
+
"field": "PNbOqW_field",
|
|
2766
|
+
"rowActions": "PNbOqW_rowActions",
|
|
2767
|
+
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
2752
2768
|
"notice": "PNbOqW_notice",
|
|
2753
2769
|
"sectionTitle": "PNbOqW_sectionTitle",
|
|
2754
|
-
"
|
|
2755
|
-
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
2756
|
-
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
2757
|
-
"treeActions": "PNbOqW_treeActions",
|
|
2758
|
-
"panel": "PNbOqW_panel",
|
|
2759
|
-
"pager": "PNbOqW_pager",
|
|
2760
|
-
"copied": "PNbOqW_copied",
|
|
2761
|
-
"waiting": "PNbOqW_waiting",
|
|
2762
|
-
"readOnly": "PNbOqW_readOnly",
|
|
2763
|
-
"roleTag": "PNbOqW_roleTag",
|
|
2764
|
-
"roleGrant": "PNbOqW_roleGrant",
|
|
2765
|
-
"dialogHint": "PNbOqW_dialogHint",
|
|
2766
|
-
"panelHead": "PNbOqW_panelHead",
|
|
2767
|
-
"matrixGroup": "PNbOqW_matrixGroup",
|
|
2768
|
-
"head": "PNbOqW_head",
|
|
2769
|
-
"permDescription": "PNbOqW_permDescription",
|
|
2770
|
+
"matrix": "PNbOqW_matrix",
|
|
2770
2771
|
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
2771
|
-
"
|
|
2772
|
-
"
|
|
2773
|
-
"
|
|
2774
|
-
"
|
|
2775
|
-
"
|
|
2776
|
-
"rowActions": "PNbOqW_rowActions",
|
|
2777
|
-
"permCopy": "PNbOqW_permCopy",
|
|
2778
|
-
"tabs": "PNbOqW_tabs",
|
|
2779
|
-
"deptAdmins": "PNbOqW_deptAdmins",
|
|
2780
|
-
"treeRoot": "PNbOqW_treeRoot",
|
|
2781
|
-
"matrixPermission": "PNbOqW_matrixPermission",
|
|
2782
|
-
"roleRevoke": "PNbOqW_roleRevoke",
|
|
2783
|
-
"comboboxOption": "PNbOqW_comboboxOption",
|
|
2784
|
-
"comboboxHint": "PNbOqW_comboboxHint",
|
|
2785
|
-
"tabActive": "PNbOqW_tabActive",
|
|
2786
|
-
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
2787
|
-
"dialogFooter": "PNbOqW_dialogFooter",
|
|
2788
|
-
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
2772
|
+
"matrixHead": "PNbOqW_matrixHead",
|
|
2773
|
+
"roleTags": "PNbOqW_roleTags",
|
|
2774
|
+
"roleCell": "PNbOqW_roleCell",
|
|
2775
|
+
"empty": "PNbOqW_empty",
|
|
2776
|
+
"tableScroll": "PNbOqW_tableScroll",
|
|
2789
2777
|
"departments": "PNbOqW_departments",
|
|
2778
|
+
"error": "PNbOqW_error",
|
|
2779
|
+
"roleGrant": "PNbOqW_roleGrant",
|
|
2780
|
+
"headActions": "PNbOqW_headActions",
|
|
2781
|
+
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
2782
|
+
"roleSearch": "PNbOqW_roleSearch",
|
|
2783
|
+
"treeRoot": "PNbOqW_treeRoot",
|
|
2784
|
+
"combobox": "PNbOqW_combobox",
|
|
2785
|
+
"candidates": "PNbOqW_candidates",
|
|
2786
|
+
"head": "PNbOqW_head",
|
|
2787
|
+
"roleSearchWrap": "PNbOqW_roleSearchWrap",
|
|
2790
2788
|
"matrixNote": "PNbOqW_matrixNote",
|
|
2791
2789
|
"dialog": "PNbOqW_dialog",
|
|
2792
|
-
"
|
|
2793
|
-
"
|
|
2794
|
-
"
|
|
2790
|
+
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
2791
|
+
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
2792
|
+
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
2793
|
+
"matrixScroll": "PNbOqW_matrixScroll",
|
|
2794
|
+
"candidate": "PNbOqW_candidate",
|
|
2795
|
+
"treeName": "PNbOqW_treeName",
|
|
2796
|
+
"comboboxOption": "PNbOqW_comboboxOption",
|
|
2797
|
+
"roleTag": "PNbOqW_roleTag",
|
|
2795
2798
|
"dialogBody": "PNbOqW_dialogBody",
|
|
2796
|
-
"
|
|
2797
|
-
"
|
|
2799
|
+
"copied": "PNbOqW_copied",
|
|
2800
|
+
"table": "PNbOqW_table",
|
|
2801
|
+
"roleRevoke": "PNbOqW_roleRevoke",
|
|
2798
2802
|
"matrixModule": "PNbOqW_matrixModule",
|
|
2799
|
-
"
|
|
2800
|
-
"
|
|
2801
|
-
"
|
|
2802
|
-
"
|
|
2803
|
-
"
|
|
2804
|
-
"error": "PNbOqW_error",
|
|
2803
|
+
"treeActions": "PNbOqW_treeActions",
|
|
2804
|
+
"tabGroup": "PNbOqW_tabGroup",
|
|
2805
|
+
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
2806
|
+
"treeRow": "PNbOqW_treeRow",
|
|
2807
|
+
"permCopy": "PNbOqW_permCopy",
|
|
2805
2808
|
"subtitle": "PNbOqW_subtitle",
|
|
2806
|
-
"
|
|
2807
|
-
"
|
|
2808
|
-
"
|
|
2809
|
-
"
|
|
2810
|
-
"
|
|
2811
|
-
"
|
|
2812
|
-
"
|
|
2813
|
-
"
|
|
2814
|
-
"
|
|
2809
|
+
"matrixRoleCell": "PNbOqW_matrixRoleCell",
|
|
2810
|
+
"matrixGroup": "PNbOqW_matrixGroup",
|
|
2811
|
+
"page": "PNbOqW_page",
|
|
2812
|
+
"matrixTool": "PNbOqW_matrixTool",
|
|
2813
|
+
"comboboxHint": "PNbOqW_comboboxHint",
|
|
2814
|
+
"waiting": "PNbOqW_waiting",
|
|
2815
|
+
"demo": "PNbOqW_demo",
|
|
2816
|
+
"tabDivider": "PNbOqW_tabDivider",
|
|
2817
|
+
"deptAdmins": "PNbOqW_deptAdmins",
|
|
2815
2818
|
"protected": "PNbOqW_protected",
|
|
2816
2819
|
"search": "PNbOqW_search",
|
|
2817
|
-
"
|
|
2820
|
+
"matrixToolActive": "PNbOqW_matrixToolActive",
|
|
2818
2821
|
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
2819
|
-
"
|
|
2820
|
-
"
|
|
2822
|
+
"tabBadge": "PNbOqW_tabBadge",
|
|
2823
|
+
"scopeBadge": "PNbOqW_scopeBadge",
|
|
2824
|
+
"adminTag": "PNbOqW_adminTag",
|
|
2825
|
+
"panelFoot": "PNbOqW_panelFoot",
|
|
2826
|
+
"panel": "PNbOqW_panel",
|
|
2827
|
+
"dialogFooter": "PNbOqW_dialogFooter",
|
|
2828
|
+
"matrixPermission": "PNbOqW_matrixPermission",
|
|
2829
|
+
"onlyAdmin": "PNbOqW_onlyAdmin",
|
|
2830
|
+
"permission": "PNbOqW_permission",
|
|
2831
|
+
"treeChildren": "PNbOqW_treeChildren",
|
|
2832
|
+
"tabs": "PNbOqW_tabs",
|
|
2833
|
+
"muted": "PNbOqW_muted",
|
|
2834
|
+
"panelHead": "PNbOqW_panelHead",
|
|
2835
|
+
"readOnly": "PNbOqW_readOnly",
|
|
2836
|
+
"roleSearchIcon": "PNbOqW_roleSearchIcon",
|
|
2837
|
+
"headText": "PNbOqW_headText",
|
|
2838
|
+
"comboboxList": "PNbOqW_comboboxList",
|
|
2839
|
+
"tabActive": "PNbOqW_tabActive"
|
|
2821
2840
|
};
|
|
2822
2841
|
//#endregion
|
|
2823
2842
|
//#region src/client/combobox.ts
|
|
@@ -4468,16 +4487,16 @@ window.__ModuleLoader__.load({
|
|
|
4468
4487
|
document.head.appendChild(tag);
|
|
4469
4488
|
}
|
|
4470
4489
|
var WorkspaceUpgradePrompt_module_css_default = {
|
|
4490
|
+
"sessionRow": "razUfG_sessionRow",
|
|
4471
4491
|
"error": "razUfG_error",
|
|
4492
|
+
"title": "razUfG_title",
|
|
4493
|
+
"dialogText": "razUfG_dialogText",
|
|
4472
4494
|
"actions": "razUfG_actions",
|
|
4495
|
+
"body": "razUfG_body",
|
|
4496
|
+
"banner": "razUfG_banner",
|
|
4473
4497
|
"copy": "razUfG_copy",
|
|
4474
4498
|
"dialogBody": "razUfG_dialogBody",
|
|
4475
|
-
"dialogText": "razUfG_dialogText",
|
|
4476
4499
|
"sessionList": "razUfG_sessionList",
|
|
4477
|
-
"banner": "razUfG_banner",
|
|
4478
|
-
"body": "razUfG_body",
|
|
4479
|
-
"title": "razUfG_title",
|
|
4480
|
-
"sessionRow": "razUfG_sessionRow",
|
|
4481
4500
|
"sessionTitle": "razUfG_sessionTitle",
|
|
4482
4501
|
"sessionPath": "razUfG_sessionPath"
|
|
4483
4502
|
};
|
|
@@ -4858,24 +4877,24 @@ window.__ModuleLoader__.load({
|
|
|
4858
4877
|
document.head.appendChild(tag);
|
|
4859
4878
|
}
|
|
4860
4879
|
var NotificationBell_module_css_default = {
|
|
4861
|
-
"rowTime": "tE0trG_rowTime",
|
|
4862
|
-
"dialog": "tE0trG_dialog",
|
|
4863
|
-
"linkButton": "tE0trG_linkButton",
|
|
4864
4880
|
"button": "tE0trG_button",
|
|
4865
|
-
"badge": "tE0trG_badge",
|
|
4866
|
-
"rowTitle": "tE0trG_rowTitle",
|
|
4867
4881
|
"row": "tE0trG_row",
|
|
4868
|
-
"
|
|
4882
|
+
"bell": "tE0trG_bell",
|
|
4883
|
+
"actions": "tE0trG_actions",
|
|
4884
|
+
"rowBody": "tE0trG_rowBody",
|
|
4869
4885
|
"dot": "tE0trG_dot",
|
|
4870
|
-
"demo": "tE0trG_demo",
|
|
4871
|
-
"rowIcon": "tE0trG_rowIcon",
|
|
4872
4886
|
"rowMeta": "tE0trG_rowMeta",
|
|
4873
|
-
"
|
|
4874
|
-
"
|
|
4887
|
+
"dialog": "tE0trG_dialog",
|
|
4888
|
+
"badge": "tE0trG_badge",
|
|
4875
4889
|
"rowText": "tE0trG_rowText",
|
|
4876
|
-
"
|
|
4877
|
-
"
|
|
4878
|
-
"pager": "tE0trG_pager"
|
|
4890
|
+
"demo": "tE0trG_demo",
|
|
4891
|
+
"rowTime": "tE0trG_rowTime",
|
|
4892
|
+
"pager": "tE0trG_pager",
|
|
4893
|
+
"empty": "tE0trG_empty",
|
|
4894
|
+
"list": "tE0trG_list",
|
|
4895
|
+
"rowTitle": "tE0trG_rowTitle",
|
|
4896
|
+
"rowIcon": "tE0trG_rowIcon",
|
|
4897
|
+
"linkButton": "tE0trG_linkButton"
|
|
4879
4898
|
};
|
|
4880
4899
|
//#endregion
|
|
4881
4900
|
//#region src/client/NotificationBell.tsx
|
|
@@ -5253,10 +5272,10 @@ window.__ModuleLoader__.load({
|
|
|
5253
5272
|
const load = async () => {
|
|
5254
5273
|
try {
|
|
5255
5274
|
const [treeResponse, listResponse, favoriteResponse, pinnedResponse] = await Promise.all([
|
|
5256
|
-
fetch("/integrations/dataops/resources/folder-tree", { headers: { accept: "application/json" } }),
|
|
5257
|
-
fetch("/integrations/dataops/resources?page=1&pageSize=100", { headers: { accept: "application/json" } }),
|
|
5258
|
-
fetch("/integrations/dataops/resources/favorites?page=1&pageSize=100", { headers: { accept: "application/json" } }),
|
|
5259
|
-
fetch("/integrations/dataops/resources/pinned?page=1&pageSize=100", { headers: { accept: "application/json" } })
|
|
5275
|
+
fetch(tabUrl("/integrations/dataops/resources/folder-tree"), { headers: { accept: "application/json" } }),
|
|
5276
|
+
fetch(tabUrl("/integrations/dataops/resources?page=1&pageSize=100"), { headers: { accept: "application/json" } }),
|
|
5277
|
+
fetch(tabUrl("/integrations/dataops/resources/favorites?page=1&pageSize=100"), { headers: { accept: "application/json" } }),
|
|
5278
|
+
fetch(tabUrl("/integrations/dataops/resources/pinned?page=1&pageSize=100"), { headers: { accept: "application/json" } })
|
|
5260
5279
|
]);
|
|
5261
5280
|
if (!live) return false;
|
|
5262
5281
|
if (!treeResponse.ok) throw new Error("HTTP " + String(treeResponse.status));
|
|
@@ -5348,7 +5367,7 @@ window.__ModuleLoader__.load({
|
|
|
5348
5367
|
setActive("node:" + String(node.id));
|
|
5349
5368
|
setOpenKeys((previous) => new Set(previous).add(node.id));
|
|
5350
5369
|
try {
|
|
5351
|
-
const response = await fetch("/integrations/dataops/resources?catalogNodeId=" + String(node.id) + "&page=1&pageSize=100", { headers: { accept: "application/json" } });
|
|
5370
|
+
const response = await fetch(tabUrl("/integrations/dataops/resources?catalogNodeId=" + String(node.id) + "&page=1&pageSize=100"), { headers: { accept: "application/json" } });
|
|
5352
5371
|
if (!response.ok) return;
|
|
5353
5372
|
const page = await response.json();
|
|
5354
5373
|
onFilter({
|
|
@@ -6235,8 +6254,11 @@ window.__ModuleLoader__.load({
|
|
|
6235
6254
|
//#endregion
|
|
6236
6255
|
//#region src/client/index.ts
|
|
6237
6256
|
const NS = "settings.dataops-managed";
|
|
6238
|
-
const AUTH_UPDATED_MESSAGE = "dataops-auth-updated";
|
|
6239
6257
|
const MANAGED_AUTH_PATH = "integrations/dataops/managed-auth";
|
|
6258
|
+
/** 父页续期 per-tab 路由令牌后投递的消息;iframe 原地换前缀,不重挂。 */
|
|
6259
|
+
const ROUTE_TOKEN_MESSAGE = "dataops-route-token";
|
|
6260
|
+
/** 交互地图预览链接:点击时附上当前 tab 路由令牌(导航无法带头部)。 */
|
|
6261
|
+
const CASE_PERSON_MAP_PATH = "/api/ai/case-person-map/";
|
|
6240
6262
|
/** Sidebar entry and main page id for the permission centre. */
|
|
6241
6263
|
const PERMISSION_PANEL_ID = "dataops-permissions";
|
|
6242
6264
|
/** Required client services for the managed DataOps Settings section and the resource tab bridge. */
|
|
@@ -6287,7 +6309,7 @@ window.__ModuleLoader__.load({
|
|
|
6287
6309
|
window.clearTimeout(timer);
|
|
6288
6310
|
if (!status.ok) return;
|
|
6289
6311
|
if ((await status.json()).paired === true) return;
|
|
6290
|
-
const created = await fetch("/integrations/dataops/browser-bridge/auto-pair", { method: "POST" });
|
|
6312
|
+
const created = await fetch(tabUrl("/integrations/dataops/browser-bridge/auto-pair"), { method: "POST" });
|
|
6291
6313
|
if (!created.ok) return;
|
|
6292
6314
|
const payload = await created.json();
|
|
6293
6315
|
if (typeof payload.code !== "string" || typeof payload.serverUrl !== "string") return;
|
|
@@ -6589,21 +6611,60 @@ window.__ModuleLoader__.load({
|
|
|
6589
6611
|
};
|
|
6590
6612
|
}, "dataops-managed: resource tab and open bridge");
|
|
6591
6613
|
const synchronizeJwt = async () => {
|
|
6592
|
-
const response = await fetch(new URL(MANAGED_AUTH_PATH,
|
|
6614
|
+
const response = await fetch(new URL(MANAGED_AUTH_PATH, document.baseURI), {
|
|
6593
6615
|
method: "POST",
|
|
6594
6616
|
credentials: "same-origin"
|
|
6595
6617
|
});
|
|
6596
6618
|
if (!response.ok) throw new Error(`DataOps managed JWT synchronization failed with HTTP ${String(response.status)}`);
|
|
6597
6619
|
};
|
|
6620
|
+
/**
|
|
6621
|
+
* 原地替换 per-tab 路由令牌。
|
|
6622
|
+
*
|
|
6623
|
+
* DSH 的相对请求按 document.baseURI 解析,而 <base href="./"> 在文档解析时冻结;
|
|
6624
|
+
* 因此续期要同时 replaceState 换路径段并重设 base 元素,后续相对请求与插件
|
|
6625
|
+
* tabUrl() 才都携带新令牌。已建立的 WS 观察流不受影响(路由只在升级时校验)。
|
|
6626
|
+
*/
|
|
6627
|
+
const applyRouteToken = (token) => {
|
|
6628
|
+
const url = new URL(window.location.href);
|
|
6629
|
+
const next = url.pathname.replace(/^\/dsh\/t\/[^/]+/u, `/dsh/t/${token}`);
|
|
6630
|
+
if (next === url.pathname) return;
|
|
6631
|
+
window.history.replaceState(null, "", next + url.search + url.hash);
|
|
6632
|
+
document.querySelector("base")?.setAttribute("href", "./");
|
|
6633
|
+
};
|
|
6598
6634
|
const onMessage = (event) => {
|
|
6599
|
-
if (event.source !== window.parent || event.
|
|
6600
|
-
|
|
6635
|
+
if (event.source !== window.parent || event.origin !== window.location.origin) return;
|
|
6636
|
+
const data = event.data;
|
|
6637
|
+
if (data?.type !== ROUTE_TOKEN_MESSAGE || typeof data.token !== "string" || data.token === "") return;
|
|
6638
|
+
applyRouteToken(data.token);
|
|
6601
6639
|
};
|
|
6602
6640
|
ctx.effect(() => {
|
|
6603
6641
|
window.addEventListener("message", onMessage);
|
|
6604
6642
|
synchronizeJwt().catch((error) => console.error("dataops-managed.jwt_sync_failed", error));
|
|
6605
6643
|
return () => window.removeEventListener("message", onMessage);
|
|
6606
|
-
}, "dataops-managed: JWT synchronization");
|
|
6644
|
+
}, "dataops-managed: JWT synchronization and route token renewal");
|
|
6645
|
+
/**
|
|
6646
|
+
* 交互地图预览链接在点击时附上当前 tab 路由令牌。
|
|
6647
|
+
*
|
|
6648
|
+
* 链接 URL 由技能脚本生成(不含浏览器 tab 上下文),导航请求无法携带头部;
|
|
6649
|
+
* 后端 AuthGuard 的 tab 兜底从 dsh_tab query 读取令牌。只处理同源地图路由,
|
|
6650
|
+
* 根挂载(独立 DSH,无令牌)时不改写。
|
|
6651
|
+
*/
|
|
6652
|
+
ctx.effect(() => {
|
|
6653
|
+
const onLinkClick = (event) => {
|
|
6654
|
+
const token = currentTabToken();
|
|
6655
|
+
if (token === null) return;
|
|
6656
|
+
const target = event.target;
|
|
6657
|
+
if (!(target instanceof Element)) return;
|
|
6658
|
+
const anchor = target.closest("a[href]");
|
|
6659
|
+
if (anchor === null) return;
|
|
6660
|
+
const url = new URL(anchor.getAttribute("href") ?? "", window.location.href);
|
|
6661
|
+
if (url.origin !== window.location.origin || !url.pathname.startsWith(CASE_PERSON_MAP_PATH)) return;
|
|
6662
|
+
url.searchParams.set("dsh_tab", token);
|
|
6663
|
+
anchor.setAttribute("href", url.pathname + url.search + url.hash);
|
|
6664
|
+
};
|
|
6665
|
+
document.addEventListener("click", onLinkClick, true);
|
|
6666
|
+
return () => document.removeEventListener("click", onLinkClick, true);
|
|
6667
|
+
}, "dataops-managed: case-person-map link tab token");
|
|
6607
6668
|
}
|
|
6608
6669
|
//#endregion
|
|
6609
6670
|
exports.apply = apply;
|