@burdenoff/microfe-theglobalfuel 2026.705.5 → 2026.709.2
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/README.md +3 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +18199 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +43046 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -1
- package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts +5 -0
- package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +1 -0
- package/dist/theglobalfuel/TheGlobalFuelRoot.js +106 -104
- package/dist/theglobalfuel/TheGlobalFuelRoot.js.map +1 -1
- package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +4 -0
- package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +1 -0
- package/dist/theglobalfuel/TheGlobalFuelRoutes.js +60 -38
- package/dist/theglobalfuel/TheGlobalFuelRoutes.js.map +1 -1
- package/dist/theglobalfuel/components/DataTable.d.ts +30 -0
- package/dist/theglobalfuel/components/DataTable.d.ts.map +1 -0
- package/dist/theglobalfuel/components/DataTable.js.map +1 -1
- package/dist/theglobalfuel/components/EmptyState.d.ts +18 -0
- package/dist/theglobalfuel/components/EmptyState.d.ts.map +1 -0
- package/dist/theglobalfuel/components/EvidenceUpload.d.ts +14 -0
- package/dist/theglobalfuel/components/EvidenceUpload.d.ts.map +1 -0
- package/dist/theglobalfuel/components/FileLink.d.ts +15 -0
- package/dist/theglobalfuel/components/FileLink.d.ts.map +1 -0
- package/dist/theglobalfuel/components/FilterTabs.d.ts +18 -0
- package/dist/theglobalfuel/components/FilterTabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/MetricsCard.d.ts +23 -0
- package/dist/theglobalfuel/components/MetricsCard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/MiniBar.d.ts +16 -0
- package/dist/theglobalfuel/components/MiniBar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/PageLayout.d.ts +18 -0
- package/dist/theglobalfuel/components/PageLayout.d.ts.map +1 -0
- package/dist/theglobalfuel/components/PageLayout.js +2 -1
- package/dist/theglobalfuel/components/PageLayout.js.map +1 -1
- package/dist/theglobalfuel/components/Pagination.d.ts +22 -0
- package/dist/theglobalfuel/components/Pagination.d.ts.map +1 -0
- package/dist/theglobalfuel/components/StateViews.d.ts +24 -0
- package/dist/theglobalfuel/components/StateViews.d.ts.map +1 -0
- package/dist/theglobalfuel/components/StatusBadge.d.ts +9 -0
- package/dist/theglobalfuel/components/StatusBadge.d.ts.map +1 -0
- package/dist/theglobalfuel/components/Tabs.d.ts +17 -0
- package/dist/theglobalfuel/components/Tabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/TheDiscussion.d.ts +18 -0
- package/dist/theglobalfuel/components/TheDiscussion.d.ts.map +1 -0
- package/dist/theglobalfuel/components/TheTags.d.ts +17 -0
- package/dist/theglobalfuel/components/TheTags.d.ts.map +1 -0
- package/dist/theglobalfuel/components/WorldMap.d.ts +18 -0
- package/dist/theglobalfuel/components/WorldMap.d.ts.map +1 -0
- package/dist/theglobalfuel/components/WorldMap.js.map +1 -1
- package/dist/theglobalfuel/components/index.d.ts +21 -0
- package/dist/theglobalfuel/components/index.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/AllocationBar.d.ts +21 -0
- package/dist/theglobalfuel/components/viz/AllocationBar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/AreaChart.d.ts +18 -0
- package/dist/theglobalfuel/components/viz/AreaChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/AvatarStack.d.ts +13 -0
- package/dist/theglobalfuel/components/viz/AvatarStack.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/BarChart.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/BarChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/CertificateCard.d.ts +14 -0
- package/dist/theglobalfuel/components/viz/CertificateCard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/DonutChart.d.ts +20 -0
- package/dist/theglobalfuel/components/viz/DonutChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/Heatmap.d.ts +26 -0
- package/dist/theglobalfuel/components/viz/Heatmap.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/LineChart.d.ts +20 -0
- package/dist/theglobalfuel/components/viz/LineChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/OrgTree.d.ts +14 -0
- package/dist/theglobalfuel/components/viz/OrgTree.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/PathSteps.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/PathSteps.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/ProgressRing.d.ts +20 -0
- package/dist/theglobalfuel/components/viz/ProgressRing.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/RatingStars.d.ts +14 -0
- package/dist/theglobalfuel/components/viz/RatingStars.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts +26 -0
- package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/SkillBar.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/SkillBar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/Sparkline.d.ts +16 -0
- package/dist/theglobalfuel/components/viz/Sparkline.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/StatCard.d.ts +22 -0
- package/dist/theglobalfuel/components/viz/StatCard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/StepProgress.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/StepProgress.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/Timeline.d.ts +21 -0
- package/dist/theglobalfuel/components/viz/Timeline.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/index.d.ts +35 -0
- package/dist/theglobalfuel/components/viz/index.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts +15 -0
- package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts +44 -0
- package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts +27 -0
- package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/format.d.ts +10 -0
- package/dist/theglobalfuel/components/viz/lib/format.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/geometry.d.ts +41 -0
- package/dist/theglobalfuel/components/viz/lib/geometry.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/hooks.d.ts +18 -0
- package/dist/theglobalfuel/components/viz/lib/hooks.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/palette.d.ts +31 -0
- package/dist/theglobalfuel/components/viz/lib/palette.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/types.d.ts +27 -0
- package/dist/theglobalfuel/components/viz/lib/types.d.ts.map +1 -0
- package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts +16 -0
- package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts.map +1 -0
- package/dist/theglobalfuel/context/index.d.ts +6 -0
- package/dist/theglobalfuel/context/index.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/index.d.ts +15 -0
- package/dist/theglobalfuel/hooks/index.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/index.js +4 -0
- package/dist/theglobalfuel/hooks/useCursorPager.d.ts +26 -0
- package/dist/theglobalfuel/hooks/useCursorPager.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useNotify.d.ts +23 -0
- package/dist/theglobalfuel/hooks/useNotify.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts +38 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.js +46 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.js.map +1 -0
- package/dist/theglobalfuel/hooks/useTheComments.d.ts +36 -0
- package/dist/theglobalfuel/hooks/useTheComments.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheFiles.d.ts +47 -0
- package/dist/theglobalfuel/hooks/useTheFiles.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts +79 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js +2 -9
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js.map +1 -1
- package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts +20 -0
- package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheNativeControls.js +22 -0
- package/dist/theglobalfuel/hooks/useTheNativeControls.js.map +1 -0
- package/dist/theglobalfuel/hooks/useThePageView.d.ts +10 -0
- package/dist/theglobalfuel/hooks/useThePageView.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useThePageView.js +13 -0
- package/dist/theglobalfuel/hooks/useThePageView.js.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTags.d.ts +44 -0
- package/dist/theglobalfuel/hooks/useTheTags.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.d.ts +4 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.js +12 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.js.map +1 -0
- package/dist/theglobalfuel/index.d.ts +11 -0
- package/dist/theglobalfuel/index.d.ts.map +1 -0
- package/dist/theglobalfuel/index.js +2 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts +13 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.js +395 -353
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.js.map +1 -1
- package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts +10 -0
- package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/assets/AssetsPage.js +152 -146
- package/dist/theglobalfuel/pages/assets/AssetsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts +11 -0
- package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js +233 -229
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js.map +1 -1
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts +9 -0
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js +410 -389
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js.map +1 -1
- package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts +8 -0
- package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js +237 -231
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts +17 -0
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.js +255 -250
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts +13 -0
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js +154 -150
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js +151 -147
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js.map +1 -1
- package/dist/theglobalfuel/pages/production/ProductionPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/production/ProductionPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/production/ProductionPage.js +175 -171
- package/dist/theglobalfuel/pages/production/ProductionPage.js.map +1 -1
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts +23 -0
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.js +153 -146
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.js.map +1 -1
- package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts +10 -0
- package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js +168 -164
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js.map +1 -1
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js +179 -175
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js.map +1 -1
- package/dist/theglobalfuel/services/assistantApi.d.ts +25 -0
- package/dist/theglobalfuel/services/assistantApi.d.ts.map +1 -0
- package/dist/theglobalfuel/services/assistantApi.js +225 -0
- package/dist/theglobalfuel/services/assistantApi.js.map +1 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts +38 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts.map +1 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.js +120 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.js.map +1 -0
- package/dist/theglobalfuel/services/index.d.ts +7 -0
- package/dist/theglobalfuel/services/index.d.ts.map +1 -0
- package/dist/theglobalfuel/types/assistant.d.ts +65 -0
- package/dist/theglobalfuel/types/assistant.d.ts.map +1 -0
- package/dist/theglobalfuel/types/index.d.ts +376 -0
- package/dist/theglobalfuel/types/index.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/cn.d.ts +4 -0
- package/dist/theglobalfuel/utils/cn.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/formatters.d.ts +44 -0
- package/dist/theglobalfuel/utils/formatters.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/i18n.d.ts +5 -0
- package/dist/theglobalfuel/utils/i18n.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/i18n.js +15 -0
- package/dist/theglobalfuel/utils/i18n.js.map +1 -0
- package/dist/theglobalfuel/utils/index.d.ts +10 -0
- package/dist/theglobalfuel/utils/index.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/navigation.d.ts +14 -0
- package/dist/theglobalfuel/utils/navigation.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/pageContext.d.ts +26 -0
- package/dist/theglobalfuel/utils/pageContext.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/pageContext.js +65 -0
- package/dist/theglobalfuel/utils/pageContext.js.map +1 -0
- package/dist/theglobalfuel/utils/transitions.d.ts +17 -0
- package/dist/theglobalfuel/utils/transitions.d.ts.map +1 -0
- package/package.json +5 -1
- package/dist/node_modules/clsx/dist/clsx.js +0 -18
- package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1716
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { createAssistantSandbox as e, createAssistantSession as t, extendAssistantSandboxTTL as n, findExistingSandbox as r, getAssistantMessages as i, sendAssistantPromptAsync as a, waitForAssistantServiceReady as o, waitForSandboxReady as s } from "./assistantApi.js";
|
|
2
|
+
import { gatherPageContext as c } from "../utils/pageContext.js";
|
|
3
|
+
import { useCallback as l, useMemo as u, useRef as d } from "react";
|
|
4
|
+
import { useGatewayClient as f } from "@burdenoff/fe-libs/shared/graphql";
|
|
5
|
+
import { useAuthToken as p } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
6
|
+
//#region src/theglobalfuel/services/createSandboxAssistantTransport.ts
|
|
7
|
+
var m = "assistant", h = 18e4, g = 1500, _ = 3e4;
|
|
8
|
+
function v(e) {
|
|
9
|
+
try {
|
|
10
|
+
let t = e === "workspaceId" ? "burdenoff-active-context-workspace" : "burdenoff-active-context-organization", n = localStorage.getItem(t);
|
|
11
|
+
if (n) return n;
|
|
12
|
+
let r = sessionStorage.getItem("bf-active-profile");
|
|
13
|
+
if (!r) return "";
|
|
14
|
+
let i = localStorage.getItem(`bf-p-${r}-context`);
|
|
15
|
+
return i ? JSON.parse(i)[e] ?? "" : "";
|
|
16
|
+
} catch {
|
|
17
|
+
return "";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function y() {
|
|
21
|
+
return new URLSearchParams(window.location.search).get("workspace") ?? v("workspaceId");
|
|
22
|
+
}
|
|
23
|
+
function b() {
|
|
24
|
+
return new URLSearchParams(window.location.search).get("org") ?? v("organizationId");
|
|
25
|
+
}
|
|
26
|
+
function x(e) {
|
|
27
|
+
return e.info?.time?.created ?? 0;
|
|
28
|
+
}
|
|
29
|
+
function S(e) {
|
|
30
|
+
return (e ?? []).filter((e) => e.type === "text" && typeof e.text == "string").map((e) => e.text?.trim() ?? "").filter(Boolean).join("\n");
|
|
31
|
+
}
|
|
32
|
+
function C(e) {
|
|
33
|
+
return (e ?? []).filter((e) => e.type === "tool" && e.tool).map((e) => {
|
|
34
|
+
let t = e.state?.status ?? "running", n = e.tool ?? "tool";
|
|
35
|
+
return t === "completed" ? `Completed: ${n}` : t === "failed" ? `Failed: ${n}` : `Running: ${n}`;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function w(e, t) {
|
|
39
|
+
let n = e.filter((e) => e.info?.role === "assistant" && x(e) >= t).sort((e, t) => x(e) - x(t));
|
|
40
|
+
if (n.length === 0) return {
|
|
41
|
+
content: "Thinking…",
|
|
42
|
+
done: !1
|
|
43
|
+
};
|
|
44
|
+
let r = n[n.length - 1], i = S(r.parts), a = C(r.parts);
|
|
45
|
+
return {
|
|
46
|
+
content: [i, ...a].filter(Boolean).join("\n\n") || "Thinking…",
|
|
47
|
+
done: !!r.info?.time?.completed && (!!i || a.length > 0)
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function T(e) {
|
|
51
|
+
return e.replace(/(Authorization\s*:\s*Bearer\s+)[^\s\n]+/gi, "$1[REDACTED]").replace(/(X-Workspace-Authorization\s*:\s*Bearer\s+)[^\s\n]+/gi, "$1[REDACTED]").replace(/\beyJ[A-Za-z0-9_-]+\.[A-Za-z0-9._-]+\.[A-Za-z0-9._-]+\b/g, "[REDACTED_JWT]").replace(/\bsk-ant-[A-Za-z0-9-]+\b/g, "[REDACTED_API_KEY]");
|
|
52
|
+
}
|
|
53
|
+
function E(e) {
|
|
54
|
+
let t = e instanceof Error ? e.message.toLowerCase() : String(e).toLowerCase();
|
|
55
|
+
return t.includes("rate limit exceeded") || t.includes("unauthorized") || t.includes("k8s api error 401") ? !1 : [
|
|
56
|
+
"sandbox not found",
|
|
57
|
+
"sandbox is not running",
|
|
58
|
+
"sandbox service not available yet",
|
|
59
|
+
"sandbox failed",
|
|
60
|
+
"sandbox startup timed out",
|
|
61
|
+
"assistant service did not become healthy",
|
|
62
|
+
"proxy error: 404",
|
|
63
|
+
"proxy error: 502",
|
|
64
|
+
"proxy error: 503"
|
|
65
|
+
].some((e) => t.includes(e));
|
|
66
|
+
}
|
|
67
|
+
function D() {
|
|
68
|
+
f("workspace");
|
|
69
|
+
let { getAccessToken: v, getWorkspaceToken: x, userId: S } = p(), C = d(null), D = d(null), O = l(async (n, i) => {
|
|
70
|
+
let a = C.current;
|
|
71
|
+
if (!a) {
|
|
72
|
+
if (a = await r(n, m, i), !a) {
|
|
73
|
+
if (!v()) throw Error("API Calls mode requires an authenticated session. Please sign in again.");
|
|
74
|
+
a = await e(m, n, i);
|
|
75
|
+
}
|
|
76
|
+
await s(a, n, i), await o(a, n, i), C.current = a;
|
|
77
|
+
}
|
|
78
|
+
let c = D.current;
|
|
79
|
+
return c || (c = (await t(a, n, m, i)).sessionId, D.current = c), {
|
|
80
|
+
sandboxId: a,
|
|
81
|
+
sessionId: c
|
|
82
|
+
};
|
|
83
|
+
}, [v]), k = l(async ({ prompt: e, onProgress: t, signal: r }) => {
|
|
84
|
+
let o = y();
|
|
85
|
+
if (!o) throw Error("The assistant needs an active workspace. Open a workspace and try again.");
|
|
86
|
+
let s = {
|
|
87
|
+
accessToken: v(),
|
|
88
|
+
workspaceToken: x(),
|
|
89
|
+
userId: S,
|
|
90
|
+
organizationId: b()
|
|
91
|
+
}, l = async (u) => {
|
|
92
|
+
try {
|
|
93
|
+
let { sandboxId: l, sessionId: u } = await O(o, s), d = Date.now();
|
|
94
|
+
await a(l, o, u, e, m, c(), s);
|
|
95
|
+
let f = Date.now() + h, p = Date.now(), v = w([], d);
|
|
96
|
+
for (; Date.now() < f;) {
|
|
97
|
+
if (r.aborted) throw Error("Cancelled");
|
|
98
|
+
if (v = w(await i(l, o, u, s, 50), d), t(T(v.content)), v.done) break;
|
|
99
|
+
Date.now() - p > _ && (await n(l, o, 600, s).catch(() => void 0), p = Date.now()), await new Promise((e) => setTimeout(e, g));
|
|
100
|
+
}
|
|
101
|
+
if (!v.done) throw Error("The assistant timed out while responding. Please try again.");
|
|
102
|
+
return { text: T(v.content) };
|
|
103
|
+
} catch (e) {
|
|
104
|
+
if (u === 1 && E(e)) return C.current = null, D.current = null, l(2);
|
|
105
|
+
throw e;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
return l(1);
|
|
109
|
+
}, [
|
|
110
|
+
O,
|
|
111
|
+
v,
|
|
112
|
+
x,
|
|
113
|
+
S
|
|
114
|
+
]);
|
|
115
|
+
return u(() => ({ sendPrompt: k }), [k]);
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
export { D as useSandboxAssistantTransport };
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=createSandboxAssistantTransport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSandboxAssistantTransport.js","names":[],"sources":["../../../src/theglobalfuel/services/createSandboxAssistantTransport.ts"],"sourcesContent":["/**\n * TheGlobalFuel adapter for the shared fe-libs AssistantWidget.\n * @module theglobalfuel/services\n *\n * The floating widget (fe-libs, Layer 1) is backend-agnostic — it calls an\n * injected `AssistantTransport`. This hook builds a transport that reuses the\n * sandbox `api-calls` agent: it provisions/reuses a sandbox, opens a session,\n * dispatches the prompt async, then polls for the streamed answer.\n */\n\nimport { useCallback, useMemo, useRef } from 'react';\nimport { useGatewayClient } from '@burdenoff/fe-libs/shared/graphql';\nimport { useAuthToken } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n createAssistantSandbox,\n createAssistantSession,\n extendAssistantSandboxTTL,\n findExistingSandbox,\n getAssistantMessages,\n sendAssistantPromptAsync,\n waitForAssistantServiceReady,\n waitForSandboxReady,\n type AssistantRawMessage,\n type AssistantSandboxAuthContext,\n} from './assistantApi';\nimport { gatherPageContext } from '../utils/pageContext';\nimport type { AssistantMode } from '../types/assistant';\n\n/**\n * Locally-defined mirror of the fe-libs `AssistantTransport` contract.\n *\n * We intentionally do NOT import the type from `@burdenoff/fe-libs` here:\n * microfe's tsconfig maps `@burdenoff/fe-libs/*` to fe-libs *source*, so\n * vite-plugin-dts would rewrite a cross-package type used in this hook's\n * public signature to a broken source-relative path in the emitted `.d.ts`.\n * Structural typing makes this shape assignable to fe-libs' `AssistantTransport`\n * at the call site (theglobalfuel-app's AppShell), which is where compatibility\n * is enforced — drift there fails the app type-check.\n */\ninterface AssistantSendArgs {\n prompt: string;\n onProgress: (partialText: string) => void;\n signal: AbortSignal;\n}\n\nexport interface AssistantTransport {\n sendPrompt: (args: AssistantSendArgs) => Promise<{ text: string }>;\n}\n\nconst MODE: AssistantMode = 'assistant';\nconst STREAM_BUDGET_MS = 180_000;\nconst POLL_INTERVAL_MS = 1500;\nconst TTL_EXTEND_INTERVAL_MS = 30_000;\n\n// ── Context helpers (mirror AssistantChatArea's resolution) ──────────\n\nfunction getProfileContextValue(key: 'workspaceId' | 'organizationId'): string {\n try {\n const activeContextKey =\n key === 'workspaceId'\n ? 'burdenoff-active-context-workspace'\n : 'burdenoff-active-context-organization';\n const activeContextValue = localStorage.getItem(activeContextKey);\n if (activeContextValue) return activeContextValue;\n\n const activeProfileId = sessionStorage.getItem('bf-active-profile');\n if (!activeProfileId) return '';\n const raw = localStorage.getItem(`bf-p-${activeProfileId}-context`);\n if (!raw) return '';\n const context = JSON.parse(raw) as { workspaceId?: string; organizationId?: string };\n return context[key] ?? '';\n } catch {\n return '';\n }\n}\n\nfunction getWorkspaceId(): string {\n const params = new URLSearchParams(window.location.search);\n return params.get('workspace') ?? getProfileContextValue('workspaceId');\n}\n\nfunction getOrganizationId(): string {\n const params = new URLSearchParams(window.location.search);\n return params.get('org') ?? getProfileContextValue('organizationId');\n}\n\n// ── Message-progress helpers (pure; mirror AssistantChatArea) ────────\n\nfunction getRawMessageCreatedAt(message: AssistantRawMessage): number {\n return message.info?.time?.created ?? 0;\n}\n\nfunction getAssistantText(parts: AssistantRawMessage['parts']): string {\n return (parts ?? [])\n .filter((part) => part.type === 'text' && typeof part.text === 'string')\n .map((part) => part.text?.trim() ?? '')\n .filter(Boolean)\n .join('\\n');\n}\n\nfunction getToolProgress(parts: AssistantRawMessage['parts']): string[] {\n return (parts ?? [])\n .filter((part) => part.type === 'tool' && part.tool)\n .map((part) => {\n const status = part.state?.status ?? 'running';\n const tool = part.tool ?? 'tool';\n if (status === 'completed') return `Completed: ${tool}`;\n if (status === 'failed') return `Failed: ${tool}`;\n return `Running: ${tool}`;\n });\n}\n\nfunction buildProgress(\n messages: AssistantRawMessage[],\n sinceMs: number\n): { content: string; done: boolean } {\n const relevant = messages\n .filter(\n (message) => message.info?.role === 'assistant' && getRawMessageCreatedAt(message) >= sinceMs\n )\n .sort((left, right) => getRawMessageCreatedAt(left) - getRawMessageCreatedAt(right));\n\n if (relevant.length === 0) return { content: 'Thinking…', done: false };\n\n const latest = relevant[relevant.length - 1]!;\n const text = getAssistantText(latest.parts);\n const toolProgress = getToolProgress(latest.parts);\n const content = [text, ...toolProgress].filter(Boolean).join('\\n\\n') || 'Thinking…';\n\n return {\n content,\n done: Boolean(latest.info?.time?.completed) && (Boolean(text) || toolProgress.length > 0),\n };\n}\n\nfunction sanitize(response: string): string {\n return response\n .replace(/(Authorization\\s*:\\s*Bearer\\s+)[^\\s\\n]+/gi, '$1[REDACTED]')\n .replace(/(X-Workspace-Authorization\\s*:\\s*Bearer\\s+)[^\\s\\n]+/gi, '$1[REDACTED]')\n .replace(/\\beyJ[A-Za-z0-9_-]+\\.[A-Za-z0-9._-]+\\.[A-Za-z0-9._-]+\\b/g, '[REDACTED_JWT]')\n .replace(/\\bsk-ant-[A-Za-z0-9-]+\\b/g, '[REDACTED_API_KEY]');\n}\n\nfunction isRecoverable(error: unknown): boolean {\n const message =\n error instanceof Error ? error.message.toLowerCase() : String(error).toLowerCase();\n if (\n message.includes('rate limit exceeded') ||\n message.includes('unauthorized') ||\n message.includes('k8s api error 401')\n ) {\n return false;\n }\n return [\n 'sandbox not found',\n 'sandbox is not running',\n 'sandbox service not available yet',\n 'sandbox failed',\n 'sandbox startup timed out',\n 'assistant service did not become healthy',\n 'proxy error: 404',\n 'proxy error: 502',\n 'proxy error: 503',\n ].some((fragment) => message.includes(fragment));\n}\n\n/**\n * Returns a memoized `AssistantTransport` wired to the TheGlobalFuel sandbox\n * `api-calls` agent. The sandbox + session are cached in refs so follow-up\n * turns reuse the warm environment for the lifetime of the host shell.\n */\nexport function useSandboxAssistantTransport(): AssistantTransport {\n // Apollo client is kept for API-surface consistency with VibeControls; the\n // transport below uses graphqlFetch for its GraphQL calls.\n useGatewayClient('workspace');\n const { getAccessToken, getWorkspaceToken, userId } = useAuthToken();\n\n const sandboxIdRef = useRef<string | null>(null);\n const sessionIdRef = useRef<string | null>(null);\n\n const ensureRuntime = useCallback(\n async (\n workspaceId: string,\n authContext: AssistantSandboxAuthContext\n ): Promise<{ sandboxId: string; sessionId: string }> => {\n let sandboxId = sandboxIdRef.current;\n if (!sandboxId) {\n sandboxId = await findExistingSandbox(workspaceId, MODE, authContext);\n if (!sandboxId) {\n if (!getAccessToken()) {\n throw new Error(\n 'API Calls mode requires an authenticated session. Please sign in again.'\n );\n }\n sandboxId = await createAssistantSandbox(MODE, workspaceId, authContext);\n }\n await waitForSandboxReady(sandboxId, workspaceId, authContext);\n await waitForAssistantServiceReady(sandboxId, workspaceId, authContext);\n sandboxIdRef.current = sandboxId;\n }\n\n let sessionId = sessionIdRef.current;\n if (!sessionId) {\n const result = await createAssistantSession(sandboxId, workspaceId, MODE, authContext);\n sessionId = result.sessionId;\n sessionIdRef.current = sessionId;\n }\n\n return { sandboxId, sessionId };\n },\n [getAccessToken]\n );\n\n const sendPrompt = useCallback(\n async ({ prompt, onProgress, signal }: AssistantSendArgs): Promise<{ text: string }> => {\n const workspaceId = getWorkspaceId();\n if (!workspaceId) {\n throw new Error('The assistant needs an active workspace. Open a workspace and try again.');\n }\n const authContext: AssistantSandboxAuthContext = {\n accessToken: getAccessToken(),\n workspaceToken: getWorkspaceToken(),\n userId,\n organizationId: getOrganizationId(),\n };\n\n const run = async (attempt: 1 | 2): Promise<{ text: string }> => {\n try {\n const { sandboxId, sessionId } = await ensureRuntime(workspaceId, authContext);\n\n const startedAt = Date.now();\n await sendAssistantPromptAsync(\n sandboxId,\n workspaceId,\n sessionId,\n prompt,\n MODE,\n gatherPageContext(),\n authContext\n );\n\n const timeoutAt = Date.now() + STREAM_BUDGET_MS;\n let lastTtlExtensionAt = Date.now();\n let progress = buildProgress([], startedAt);\n\n while (Date.now() < timeoutAt) {\n if (signal.aborted) throw new Error('Cancelled');\n\n const messages = await getAssistantMessages(\n sandboxId,\n workspaceId,\n sessionId,\n authContext,\n 50\n );\n progress = buildProgress(messages, startedAt);\n onProgress(sanitize(progress.content));\n if (progress.done) break;\n\n if (Date.now() - lastTtlExtensionAt > TTL_EXTEND_INTERVAL_MS) {\n await extendAssistantSandboxTTL(sandboxId, workspaceId, 600, authContext).catch(\n () => undefined\n );\n lastTtlExtensionAt = Date.now();\n }\n\n await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS));\n }\n\n if (!progress.done) {\n throw new Error('The assistant timed out while responding. Please try again.');\n }\n\n return { text: sanitize(progress.content) };\n } catch (error) {\n if (attempt === 1 && isRecoverable(error)) {\n sandboxIdRef.current = null;\n sessionIdRef.current = null;\n return run(2);\n }\n throw error;\n }\n };\n\n return run(1);\n },\n [ensureRuntime, getAccessToken, getWorkspaceToken, userId]\n );\n\n return useMemo<AssistantTransport>(() => ({ sendPrompt }), [sendPrompt]);\n}\n"],"mappings":";;;;;;AAiDA,IAAM,IAAsB,aACtB,IAAmB,MACnB,IAAmB,MACnB,IAAyB;AAI/B,SAAS,EAAuB,GAA+C;AAC7E,KAAI;EACF,IAAM,IACJ,MAAQ,gBACJ,uCACA,yCACA,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,EAAE;AAEf,UAAM;;;AAIV,SAAO,EAAI,EAAE;IAEf;EAAC;EAAe;EAAgB;EAAmB;EAAO,CAC3D;AAED,QAAO,SAAmC,EAAE,eAAY,GAAG,CAAC,EAAW,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TheGlobalFuel shared services.
|
|
3
|
+
* @module theglobalfuel/services
|
|
4
|
+
*/
|
|
5
|
+
export { useSandboxAssistantTransport, type AssistantTransport, } from './createSandboxAssistantTransport';
|
|
6
|
+
export type { AssistantMode, AssistantArtifact, AssistantPromptResult, AssistantRawMessage, AssistantSandboxAuthContext, AssistantSessionInfo, DownloadedAssistantArtifact, } from '../types/assistant';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/services/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,4BAA4B,EAC5B,KAAK,kBAAkB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,2BAA2B,EAC3B,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI Assistant types for TheGlobalFuel.
|
|
3
|
+
* @module theglobalfuel/types
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the fe-libs AssistantWidget contract and the sandbox api-calls agent
|
|
6
|
+
* payload shapes so the MFE can expose a self-contained transport adapter.
|
|
7
|
+
*/
|
|
8
|
+
export type AssistantMode = 'general' | 'api-calls' | 'vibe-plugins' | 'assistant';
|
|
9
|
+
export interface AssistantArtifact {
|
|
10
|
+
name: string;
|
|
11
|
+
mimeType?: string;
|
|
12
|
+
size?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface AssistantPromptResult {
|
|
15
|
+
response: string;
|
|
16
|
+
tokens?: {
|
|
17
|
+
input: number;
|
|
18
|
+
output: number;
|
|
19
|
+
};
|
|
20
|
+
artifacts?: AssistantArtifact[];
|
|
21
|
+
}
|
|
22
|
+
export interface AssistantRawMessagePart {
|
|
23
|
+
type?: string;
|
|
24
|
+
text?: string;
|
|
25
|
+
tool?: string;
|
|
26
|
+
state?: {
|
|
27
|
+
status?: string;
|
|
28
|
+
input?: unknown;
|
|
29
|
+
output?: unknown;
|
|
30
|
+
raw?: unknown;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export interface AssistantRawMessage {
|
|
34
|
+
info?: {
|
|
35
|
+
id?: string;
|
|
36
|
+
role?: string;
|
|
37
|
+
providerID?: string;
|
|
38
|
+
modelID?: string;
|
|
39
|
+
tokens?: {
|
|
40
|
+
input: number;
|
|
41
|
+
output: number;
|
|
42
|
+
};
|
|
43
|
+
time?: {
|
|
44
|
+
created?: number;
|
|
45
|
+
completed?: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
parts?: AssistantRawMessagePart[];
|
|
49
|
+
}
|
|
50
|
+
export interface AssistantSessionInfo {
|
|
51
|
+
id: string;
|
|
52
|
+
mode: string;
|
|
53
|
+
}
|
|
54
|
+
export interface AssistantSandboxAuthContext {
|
|
55
|
+
accessToken?: string | null;
|
|
56
|
+
workspaceToken?: string | null;
|
|
57
|
+
userId?: string | null;
|
|
58
|
+
organizationId?: string | null;
|
|
59
|
+
}
|
|
60
|
+
export interface DownloadedAssistantArtifact {
|
|
61
|
+
filename: string;
|
|
62
|
+
mimeType: string;
|
|
63
|
+
contentBase64: string;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=assistant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/types/assistant.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,M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,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface NavItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
path: string;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
badge?: number;
|
|
9
|
+
order?: number;
|
|
10
|
+
group?: string;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
external?: boolean;
|
|
13
|
+
children?: NavItem[];
|
|
14
|
+
}
|
|
15
|
+
export interface FooterItem {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
icon?: string;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
type?: 'status' | 'action' | 'info';
|
|
21
|
+
order?: number;
|
|
22
|
+
badge?: string;
|
|
23
|
+
section?: 'left' | 'center' | 'right';
|
|
24
|
+
visible?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Props for the TheGlobalFuelRoot component. Host-contract preserving: the app
|
|
28
|
+
* shell spreads `workspaceBaseProps` (basePath, currentUser, workspaceId,
|
|
29
|
+
* tenantId, apiGatewayUrl, authToken, navigate, registerNavItems,
|
|
30
|
+
* registerFooterItems) onto this component.
|
|
31
|
+
*/
|
|
32
|
+
export interface TheGlobalFuelRootProps {
|
|
33
|
+
basePath?: string;
|
|
34
|
+
workspaceId?: string;
|
|
35
|
+
tenantId?: string;
|
|
36
|
+
apiGatewayUrl?: string;
|
|
37
|
+
authToken?: string;
|
|
38
|
+
navigate?: (path: string) => void;
|
|
39
|
+
currentUser?: {
|
|
40
|
+
id: string;
|
|
41
|
+
email: string;
|
|
42
|
+
firstName?: string;
|
|
43
|
+
lastName?: string;
|
|
44
|
+
avatar?: string;
|
|
45
|
+
username?: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
role?: string;
|
|
48
|
+
} | null;
|
|
49
|
+
registerNavItems?: (items: NavItem | NavItem[]) => () => void;
|
|
50
|
+
registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
|
|
51
|
+
}
|
|
52
|
+
export type TrendDirection = 'up' | 'down' | 'neutral';
|
|
53
|
+
/**
|
|
54
|
+
* The svc `PaginationInput` accepts { limit, offset, cursor }; the connection
|
|
55
|
+
* resolvers page by cursor+limit. We drive pages by cursor: pass
|
|
56
|
+
* `pagination.cursor = previous pageInfo.cursor` for the next page, and OMIT
|
|
57
|
+
* cursor entirely for page 1 (an explicit `cursor: null` can 500 greenfield
|
|
58
|
+
* resolvers).
|
|
59
|
+
*/
|
|
60
|
+
export interface PaginationInput {
|
|
61
|
+
limit?: number;
|
|
62
|
+
offset?: number;
|
|
63
|
+
cursor?: string | null;
|
|
64
|
+
}
|
|
65
|
+
/** `ThePageInfo` — the svc cursor page-info shape. */
|
|
66
|
+
export interface ThePageInfo {
|
|
67
|
+
cursor: string | null;
|
|
68
|
+
hasMore: boolean;
|
|
69
|
+
}
|
|
70
|
+
/** A cursor-paginated connection (`The*Connection`). */
|
|
71
|
+
export interface TheConnection<T> {
|
|
72
|
+
items: T[];
|
|
73
|
+
pageInfo: ThePageInfo;
|
|
74
|
+
}
|
|
75
|
+
export type TheCommodityType = 'CRUDE_OIL' | 'NATURAL_GAS' | 'LNG' | 'COAL' | 'ELECTRICITY' | 'HYDROGEN' | 'BIOFUEL' | 'IRON_ORE' | 'COPPER' | 'BAUXITE' | 'GOLD' | 'LITHIUM' | 'RARE_EARTH';
|
|
76
|
+
export type TheUnit = 'BARRELS' | 'CUBIC_METERS' | 'TONNES' | 'KILOGRAMS' | 'MWH' | 'GJ' | 'MCF';
|
|
77
|
+
export type TheAssetKind = 'OIL_FIELD' | 'GAS_FIELD' | 'WELL' | 'MINE' | 'QUARRY' | 'REFINERY' | 'PROCESSING_PLANT' | 'POWER_PLANT' | 'SOLAR_FARM' | 'WIND_FARM' | 'STORAGE_TERMINAL' | 'PIPELINE';
|
|
78
|
+
export type TheAssetStatus = 'EXPLORATION' | 'APPRAISAL' | 'DEVELOPMENT' | 'PRODUCING' | 'SUSPENDED' | 'DECOMMISSIONING' | 'RETIRED';
|
|
79
|
+
export interface TheAsset {
|
|
80
|
+
id: string;
|
|
81
|
+
workspaceId: string;
|
|
82
|
+
name: string;
|
|
83
|
+
code?: string | null;
|
|
84
|
+
kind: TheAssetKind;
|
|
85
|
+
commodity: TheCommodityType;
|
|
86
|
+
status: TheAssetStatus;
|
|
87
|
+
location?: string | null;
|
|
88
|
+
latitude?: number | null;
|
|
89
|
+
longitude?: number | null;
|
|
90
|
+
capacityPerDay: number;
|
|
91
|
+
capacityUnit: TheUnit;
|
|
92
|
+
workingInterestPct: number;
|
|
93
|
+
operatorLeadId?: string | null;
|
|
94
|
+
commissionedAt?: string | null;
|
|
95
|
+
decommissionedAt?: string | null;
|
|
96
|
+
tags: string[];
|
|
97
|
+
createdAt: string;
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
productionRecords?: TheProductionRecord[];
|
|
100
|
+
reserveEstimates?: TheReserveEstimate[];
|
|
101
|
+
}
|
|
102
|
+
export interface TheCreateAssetInput {
|
|
103
|
+
name: string;
|
|
104
|
+
code?: string | null;
|
|
105
|
+
kind?: TheAssetKind;
|
|
106
|
+
commodity: TheCommodityType;
|
|
107
|
+
status?: TheAssetStatus;
|
|
108
|
+
location?: string | null;
|
|
109
|
+
latitude?: number | null;
|
|
110
|
+
longitude?: number | null;
|
|
111
|
+
capacityPerDay?: number | null;
|
|
112
|
+
capacityUnit?: TheUnit;
|
|
113
|
+
workingInterestPct?: number | null;
|
|
114
|
+
operatorLeadId?: string | null;
|
|
115
|
+
commissionedAt?: string | null;
|
|
116
|
+
tags?: string[];
|
|
117
|
+
}
|
|
118
|
+
export interface TheUpdateAssetInput {
|
|
119
|
+
name?: string;
|
|
120
|
+
code?: string | null;
|
|
121
|
+
kind?: TheAssetKind;
|
|
122
|
+
commodity?: TheCommodityType;
|
|
123
|
+
location?: string | null;
|
|
124
|
+
latitude?: number | null;
|
|
125
|
+
longitude?: number | null;
|
|
126
|
+
capacityPerDay?: number | null;
|
|
127
|
+
capacityUnit?: TheUnit;
|
|
128
|
+
workingInterestPct?: number | null;
|
|
129
|
+
operatorLeadId?: string | null;
|
|
130
|
+
commissionedAt?: string | null;
|
|
131
|
+
decommissionedAt?: string | null;
|
|
132
|
+
tags?: string[];
|
|
133
|
+
}
|
|
134
|
+
export interface TheProductionRecord {
|
|
135
|
+
id: string;
|
|
136
|
+
workspaceId: string;
|
|
137
|
+
assetId: string;
|
|
138
|
+
asset?: TheAsset | null;
|
|
139
|
+
periodStart: string;
|
|
140
|
+
periodEnd: string;
|
|
141
|
+
volume: number;
|
|
142
|
+
unit: TheUnit;
|
|
143
|
+
grade?: number | null;
|
|
144
|
+
downtimeHours: number;
|
|
145
|
+
notes?: string | null;
|
|
146
|
+
createdAt: string;
|
|
147
|
+
updatedAt: string;
|
|
148
|
+
}
|
|
149
|
+
export interface TheRecordProductionInput {
|
|
150
|
+
assetId: string;
|
|
151
|
+
periodStart: string;
|
|
152
|
+
periodEnd: string;
|
|
153
|
+
volume: number;
|
|
154
|
+
unit?: TheUnit;
|
|
155
|
+
grade?: number | null;
|
|
156
|
+
downtimeHours?: number | null;
|
|
157
|
+
notes?: string | null;
|
|
158
|
+
}
|
|
159
|
+
export type TheReserveCategory = 'PROVED' | 'PROBABLE' | 'POSSIBLE' | 'CONTINGENT' | 'PROSPECTIVE';
|
|
160
|
+
export interface TheReserveEstimate {
|
|
161
|
+
id: string;
|
|
162
|
+
workspaceId: string;
|
|
163
|
+
assetId: string;
|
|
164
|
+
asset?: TheAsset | null;
|
|
165
|
+
category: TheReserveCategory;
|
|
166
|
+
asOfDate: string;
|
|
167
|
+
recoverable: number;
|
|
168
|
+
recoveryFactor?: number | null;
|
|
169
|
+
unit: TheUnit;
|
|
170
|
+
methodology?: string | null;
|
|
171
|
+
notes?: string | null;
|
|
172
|
+
createdAt: string;
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
}
|
|
175
|
+
export interface TheCreateReserveEstimateInput {
|
|
176
|
+
assetId: string;
|
|
177
|
+
category?: TheReserveCategory;
|
|
178
|
+
asOfDate: string;
|
|
179
|
+
recoverable: number;
|
|
180
|
+
recoveryFactor?: number | null;
|
|
181
|
+
unit?: TheUnit;
|
|
182
|
+
methodology?: string | null;
|
|
183
|
+
notes?: string | null;
|
|
184
|
+
}
|
|
185
|
+
export type TheContractSide = 'BUY' | 'SELL';
|
|
186
|
+
export type TheContractStatus = 'DRAFT' | 'NEGOTIATION' | 'SIGNED' | 'ACTIVE' | 'COMPLETED' | 'SUSPENDED' | 'TERMINATED';
|
|
187
|
+
export type ThePricingBasis = 'FIXED' | 'INDEX_LINKED' | 'FORMULA' | 'SPOT';
|
|
188
|
+
export interface TheOfftakeContract {
|
|
189
|
+
id: string;
|
|
190
|
+
workspaceId: string;
|
|
191
|
+
reference: string;
|
|
192
|
+
counterparty: string;
|
|
193
|
+
commodity: TheCommodityType;
|
|
194
|
+
side: TheContractSide;
|
|
195
|
+
status: TheContractStatus;
|
|
196
|
+
pricingBasis: ThePricingBasis;
|
|
197
|
+
pricePerUnit: number;
|
|
198
|
+
priceIndex?: string | null;
|
|
199
|
+
currency: string;
|
|
200
|
+
contractedVolume: number;
|
|
201
|
+
deliveredVolume: number;
|
|
202
|
+
unit: TheUnit;
|
|
203
|
+
deliveryLocation?: string | null;
|
|
204
|
+
startDate?: string | null;
|
|
205
|
+
endDate?: string | null;
|
|
206
|
+
signedAt?: string | null;
|
|
207
|
+
notes?: string | null;
|
|
208
|
+
tags: string[];
|
|
209
|
+
createdAt: string;
|
|
210
|
+
updatedAt: string;
|
|
211
|
+
shipments?: TheShipment[];
|
|
212
|
+
}
|
|
213
|
+
export interface TheCreateOfftakeContractInput {
|
|
214
|
+
reference: string;
|
|
215
|
+
counterparty: string;
|
|
216
|
+
commodity: TheCommodityType;
|
|
217
|
+
side?: TheContractSide;
|
|
218
|
+
pricingBasis?: ThePricingBasis;
|
|
219
|
+
pricePerUnit?: number | null;
|
|
220
|
+
priceIndex?: string | null;
|
|
221
|
+
currency?: string;
|
|
222
|
+
contractedVolume?: number | null;
|
|
223
|
+
unit?: TheUnit;
|
|
224
|
+
deliveryLocation?: string | null;
|
|
225
|
+
startDate?: string | null;
|
|
226
|
+
endDate?: string | null;
|
|
227
|
+
notes?: string | null;
|
|
228
|
+
tags?: string[];
|
|
229
|
+
}
|
|
230
|
+
export interface TheUpdateOfftakeContractInput {
|
|
231
|
+
counterparty?: string;
|
|
232
|
+
pricePerUnit?: number | null;
|
|
233
|
+
priceIndex?: string | null;
|
|
234
|
+
pricingBasis?: ThePricingBasis;
|
|
235
|
+
currency?: string;
|
|
236
|
+
contractedVolume?: number | null;
|
|
237
|
+
unit?: TheUnit;
|
|
238
|
+
deliveryLocation?: string | null;
|
|
239
|
+
startDate?: string | null;
|
|
240
|
+
endDate?: string | null;
|
|
241
|
+
notes?: string | null;
|
|
242
|
+
tags?: string[];
|
|
243
|
+
}
|
|
244
|
+
export type TheShipmentStatus = 'SCHEDULED' | 'LOADING' | 'IN_TRANSIT' | 'DELIVERED' | 'CANCELLED';
|
|
245
|
+
export type TheTransportMode = 'PIPELINE' | 'TANKER' | 'VESSEL_BULK' | 'RAIL' | 'TRUCK' | 'GRID';
|
|
246
|
+
export interface TheShipment {
|
|
247
|
+
id: string;
|
|
248
|
+
workspaceId: string;
|
|
249
|
+
contractId: string;
|
|
250
|
+
contract?: TheOfftakeContract | null;
|
|
251
|
+
reference: string;
|
|
252
|
+
mode: TheTransportMode;
|
|
253
|
+
status: TheShipmentStatus;
|
|
254
|
+
carrier?: string | null;
|
|
255
|
+
origin?: string | null;
|
|
256
|
+
destination?: string | null;
|
|
257
|
+
volume: number;
|
|
258
|
+
unit: TheUnit;
|
|
259
|
+
scheduledAt?: string | null;
|
|
260
|
+
departedAt?: string | null;
|
|
261
|
+
deliveredAt?: string | null;
|
|
262
|
+
document?: {
|
|
263
|
+
id: string;
|
|
264
|
+
} | null;
|
|
265
|
+
notes?: string | null;
|
|
266
|
+
createdAt: string;
|
|
267
|
+
updatedAt: string;
|
|
268
|
+
}
|
|
269
|
+
export interface TheCreateShipmentInput {
|
|
270
|
+
contractId: string;
|
|
271
|
+
reference: string;
|
|
272
|
+
mode?: TheTransportMode;
|
|
273
|
+
carrier?: string | null;
|
|
274
|
+
origin?: string | null;
|
|
275
|
+
destination?: string | null;
|
|
276
|
+
volume: number;
|
|
277
|
+
unit?: TheUnit;
|
|
278
|
+
scheduledAt?: string | null;
|
|
279
|
+
documentFileId?: string | null;
|
|
280
|
+
notes?: string | null;
|
|
281
|
+
}
|
|
282
|
+
export type TheInventoryStatus = 'AVAILABLE' | 'RESERVED' | 'IN_TRANSIT' | 'CONSUMED' | 'WRITTEN_OFF';
|
|
283
|
+
export interface TheInventoryLot {
|
|
284
|
+
id: string;
|
|
285
|
+
workspaceId: string;
|
|
286
|
+
lotCode: string;
|
|
287
|
+
commodity: TheCommodityType;
|
|
288
|
+
assetId?: string | null;
|
|
289
|
+
quantity: number;
|
|
290
|
+
unit: TheUnit;
|
|
291
|
+
grade?: number | null;
|
|
292
|
+
status: TheInventoryStatus;
|
|
293
|
+
location?: string | null;
|
|
294
|
+
unitValue: number;
|
|
295
|
+
currency: string;
|
|
296
|
+
producedAt?: string | null;
|
|
297
|
+
notes?: string | null;
|
|
298
|
+
createdAt: string;
|
|
299
|
+
updatedAt: string;
|
|
300
|
+
}
|
|
301
|
+
export interface TheCreateInventoryLotInput {
|
|
302
|
+
lotCode: string;
|
|
303
|
+
commodity: TheCommodityType;
|
|
304
|
+
assetId?: string | null;
|
|
305
|
+
quantity: number;
|
|
306
|
+
unit?: TheUnit;
|
|
307
|
+
grade?: number | null;
|
|
308
|
+
location?: string | null;
|
|
309
|
+
unitValue?: number | null;
|
|
310
|
+
currency?: string;
|
|
311
|
+
producedAt?: string | null;
|
|
312
|
+
notes?: string | null;
|
|
313
|
+
}
|
|
314
|
+
export type TheEmissionScope = 'SCOPE_1' | 'SCOPE_2' | 'SCOPE_3';
|
|
315
|
+
export interface TheEmissionRecord {
|
|
316
|
+
id: string;
|
|
317
|
+
workspaceId: string;
|
|
318
|
+
assetId?: string | null;
|
|
319
|
+
scope: TheEmissionScope;
|
|
320
|
+
co2eTonnes: number;
|
|
321
|
+
periodStart: string;
|
|
322
|
+
periodEnd: string;
|
|
323
|
+
source?: string | null;
|
|
324
|
+
methodology?: string | null;
|
|
325
|
+
verified: boolean;
|
|
326
|
+
verifiedAt?: string | null;
|
|
327
|
+
notes?: string | null;
|
|
328
|
+
createdAt: string;
|
|
329
|
+
updatedAt: string;
|
|
330
|
+
}
|
|
331
|
+
export interface TheRecordEmissionInput {
|
|
332
|
+
assetId?: string | null;
|
|
333
|
+
scope?: TheEmissionScope;
|
|
334
|
+
co2eTonnes: number;
|
|
335
|
+
periodStart: string;
|
|
336
|
+
periodEnd: string;
|
|
337
|
+
source?: string | null;
|
|
338
|
+
methodology?: string | null;
|
|
339
|
+
notes?: string | null;
|
|
340
|
+
}
|
|
341
|
+
export type TheComplianceCategory = 'EXTRACTION_LICENSE' | 'ENVIRONMENTAL_PERMIT' | 'EXPORT_LICENSE' | 'SAFETY_AUDIT' | 'EMISSIONS_REPORT' | 'CARBON_CREDIT' | 'CHAIN_OF_CUSTODY';
|
|
342
|
+
export type TheComplianceStatus = 'PENDING' | 'SUBMITTED' | 'APPROVED' | 'REJECTED' | 'EXPIRED' | 'REVOKED';
|
|
343
|
+
export interface TheComplianceCert {
|
|
344
|
+
id: string;
|
|
345
|
+
workspaceId: string;
|
|
346
|
+
title: string;
|
|
347
|
+
category: TheComplianceCategory;
|
|
348
|
+
status: TheComplianceStatus;
|
|
349
|
+
assetId?: string | null;
|
|
350
|
+
authority?: string | null;
|
|
351
|
+
certNumber?: string | null;
|
|
352
|
+
ownerId?: string | null;
|
|
353
|
+
issuedAt?: string | null;
|
|
354
|
+
expiresAt?: string | null;
|
|
355
|
+
evidence?: {
|
|
356
|
+
id: string;
|
|
357
|
+
} | null;
|
|
358
|
+
notes?: string | null;
|
|
359
|
+
tags: string[];
|
|
360
|
+
createdAt: string;
|
|
361
|
+
updatedAt: string;
|
|
362
|
+
}
|
|
363
|
+
export interface TheCreateComplianceCertInput {
|
|
364
|
+
title: string;
|
|
365
|
+
category?: TheComplianceCategory;
|
|
366
|
+
assetId?: string | null;
|
|
367
|
+
authority?: string | null;
|
|
368
|
+
certNumber?: string | null;
|
|
369
|
+
ownerId?: string | null;
|
|
370
|
+
issuedAt?: string | null;
|
|
371
|
+
expiresAt?: string | null;
|
|
372
|
+
evidenceFileId?: string | null;
|
|
373
|
+
notes?: string | null;
|
|
374
|
+
tags?: string[];
|
|
375
|
+
}
|
|
376
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KA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